vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,151 +1,151 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
2
|
+
import { At as t, C as n, Dt as r, E as i, Gt as a, J as o, K as s, Kt as c, Nt as l, Q as ee, Rt as te, W as ne, Wt as re, Y as u, bt as ie, et as ae, ft as oe, g as se, i as d, qt as ce, r as le, t as ue, w as de, x as fe, yt as pe } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as he } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-D8NuRneO.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
+
import { t as Se } from "./img-CNdXiUfZ.js";
|
|
11
|
+
import { n as Ce } from "./Title-Cr3jP7Qd.js";
|
|
12
|
+
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Te } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Ee } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as Oe } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
17
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Me } from "./Legend-5VQGLnmx.js";
|
|
21
|
+
import { t as Ne } from "./vue_ui_history_plot-CuN63VEc.js";
|
|
22
|
+
import { Fragment as f, Teleport as Pe, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Re, nextTick as ze, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Be, onMounted as Ve, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as D, toRefs as We, unref as O, watch as Ge, watchEffect as Ke, withCtx as k } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-history-plot.vue
|
|
24
|
-
var
|
|
24
|
+
var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"viewBox",
|
|
27
27
|
"aria-describedby"
|
|
28
|
-
],
|
|
28
|
+
], $e = [
|
|
29
29
|
"x",
|
|
30
30
|
"y",
|
|
31
31
|
"width",
|
|
32
32
|
"height"
|
|
33
|
-
],
|
|
33
|
+
], et = { key: 1 }, tt = [
|
|
34
34
|
"id",
|
|
35
35
|
"x1",
|
|
36
36
|
"y1",
|
|
37
37
|
"x2",
|
|
38
38
|
"y2"
|
|
39
|
-
],
|
|
39
|
+
], nt = ["stop-color", "offset"], rt = { key: 2 }, it = [
|
|
40
40
|
"x1",
|
|
41
41
|
"x2",
|
|
42
42
|
"y1",
|
|
43
43
|
"y2",
|
|
44
44
|
"stroke",
|
|
45
45
|
"stroke-width"
|
|
46
|
-
],
|
|
46
|
+
], at = { key: 3 }, ot = [
|
|
47
47
|
"stroke",
|
|
48
48
|
"stroke-width",
|
|
49
49
|
"x1",
|
|
50
50
|
"x2",
|
|
51
51
|
"y1",
|
|
52
52
|
"y2"
|
|
53
|
-
],
|
|
53
|
+
], st = [
|
|
54
54
|
"x",
|
|
55
55
|
"y",
|
|
56
56
|
"fill",
|
|
57
57
|
"font-size"
|
|
58
|
-
],
|
|
58
|
+
], ct = [
|
|
59
59
|
"transform",
|
|
60
60
|
"font-size",
|
|
61
61
|
"fill",
|
|
62
62
|
"font-weight"
|
|
63
|
-
],
|
|
63
|
+
], lt = { key: 6 }, ut = [
|
|
64
64
|
"x1",
|
|
65
65
|
"x2",
|
|
66
66
|
"y1",
|
|
67
67
|
"y2",
|
|
68
68
|
"stroke",
|
|
69
69
|
"stroke-width"
|
|
70
|
-
],
|
|
70
|
+
], dt = { key: 7 }, ft = [
|
|
71
71
|
"stroke",
|
|
72
72
|
"stroke-width",
|
|
73
73
|
"x1",
|
|
74
74
|
"x2",
|
|
75
75
|
"y1",
|
|
76
76
|
"y2"
|
|
77
|
-
],
|
|
77
|
+
], pt = [
|
|
78
78
|
"transform",
|
|
79
79
|
"fill",
|
|
80
80
|
"font-size",
|
|
81
81
|
"text-anchor"
|
|
82
|
-
],
|
|
82
|
+
], mt = [
|
|
83
83
|
"x",
|
|
84
84
|
"y",
|
|
85
85
|
"font-size",
|
|
86
86
|
"fill",
|
|
87
87
|
"font-weight"
|
|
88
|
-
],
|
|
88
|
+
], ht = [
|
|
89
89
|
"x1",
|
|
90
90
|
"x2",
|
|
91
91
|
"y1",
|
|
92
92
|
"y2",
|
|
93
93
|
"stroke",
|
|
94
94
|
"stroke-width"
|
|
95
|
-
],
|
|
95
|
+
], gt = [
|
|
96
96
|
"x1",
|
|
97
97
|
"x2",
|
|
98
98
|
"y1",
|
|
99
99
|
"y2",
|
|
100
100
|
"stroke",
|
|
101
101
|
"stroke-width"
|
|
102
|
-
],
|
|
102
|
+
], _t = [
|
|
103
103
|
"d",
|
|
104
104
|
"stroke",
|
|
105
105
|
"stroke-width"
|
|
106
|
-
],
|
|
106
|
+
], vt = [
|
|
107
107
|
"d",
|
|
108
108
|
"stroke",
|
|
109
109
|
"stroke-width"
|
|
110
|
-
],
|
|
110
|
+
], yt = [
|
|
111
111
|
"cx",
|
|
112
112
|
"cy",
|
|
113
113
|
"fill",
|
|
114
114
|
"r"
|
|
115
|
-
],
|
|
115
|
+
], bt = [
|
|
116
116
|
"cx",
|
|
117
117
|
"cy",
|
|
118
118
|
"fill",
|
|
119
119
|
"r",
|
|
120
120
|
"stroke",
|
|
121
121
|
"stroke-width"
|
|
122
|
-
],
|
|
122
|
+
], xt = { key: 1 }, St = [
|
|
123
123
|
"x",
|
|
124
124
|
"y",
|
|
125
125
|
"font-size",
|
|
126
126
|
"fill",
|
|
127
127
|
"font-weight"
|
|
128
|
-
],
|
|
128
|
+
], Ct = [
|
|
129
129
|
"x",
|
|
130
130
|
"y",
|
|
131
131
|
"font-size",
|
|
132
132
|
"fill",
|
|
133
133
|
"font-weight",
|
|
134
134
|
"innerHTML"
|
|
135
|
-
],
|
|
135
|
+
], wt = { key: 2 }, Tt = [
|
|
136
136
|
"x",
|
|
137
137
|
"y",
|
|
138
138
|
"font-size",
|
|
139
139
|
"font-weight",
|
|
140
140
|
"fill"
|
|
141
|
-
],
|
|
141
|
+
], Et = [
|
|
142
142
|
"cx",
|
|
143
143
|
"cy",
|
|
144
144
|
"r",
|
|
145
145
|
"onMouseenter",
|
|
146
146
|
"onMouseleave",
|
|
147
147
|
"onClick"
|
|
148
|
-
],
|
|
148
|
+
], Dt = {
|
|
149
149
|
key: 0,
|
|
150
150
|
style: {
|
|
151
151
|
position: "absolute",
|
|
@@ -155,10 +155,10 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
155
155
|
},
|
|
156
156
|
"data-dom-to-png-ignore": "",
|
|
157
157
|
"aria-hidden": "true"
|
|
158
|
-
},
|
|
158
|
+
}, Ot = {
|
|
159
159
|
key: 5,
|
|
160
160
|
class: "vue-data-ui-watermark"
|
|
161
|
-
},
|
|
161
|
+
}, kt = ["id"], At = ["onClick"], jt = ["innerHTML"], Mt = /*#__PURE__*/ we({
|
|
162
162
|
__name: "vue-ui-history-plot",
|
|
163
163
|
props: {
|
|
164
164
|
config: {
|
|
@@ -179,83 +179,83 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
179
179
|
"selectDatapoint",
|
|
180
180
|
"copyAlt"
|
|
181
181
|
],
|
|
182
|
-
setup(e, { expose:
|
|
183
|
-
let
|
|
182
|
+
setup(e, { expose: we, emit: qe }) {
|
|
183
|
+
let Mt = v(() => import("./Tooltip-CDbLl3TD.js")), Nt = v(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), Pt = v(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Ft = v(() => import("./DataTable-ByZy5gt1.js")), It = v(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Lt = v(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Rt = v(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), zt = v(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_history_plot: Bt } = me(), { isThemeValid: Vt, warnInvalidTheme: Ht } = be(), A = e, j = w(null), Ut = w(null), Wt = w(0), Gt = w(null), Kt = w(0), qt = w(0), Jt = w(0), M = Ue(null), N = Ue(null), Yt = w(null), P = w(s()), Xt = w(!1), Zt = w(""), F = w([]), I = w(!1), L = w(null), Qt = w(!1), $t = w(null), en = w(!1), tn = w(null), nn = w(null), rn = w(!1), an = w(!1), on = w(null), sn = w(null), cn = w(null), ln = w(null), R = w(null), z = w(null), un = w({
|
|
184
184
|
x: 0,
|
|
185
185
|
y: 0
|
|
186
|
-
}), dn =
|
|
187
|
-
get: () => !!
|
|
186
|
+
}), dn = w("pointer"), fn = w(!1), pn = p({
|
|
187
|
+
get: () => !!A.dataset && A.dataset.length,
|
|
188
188
|
set: (e) => e
|
|
189
|
-
}), mn =
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
}), mn = qe;
|
|
190
|
+
Ve(() => {
|
|
191
|
+
en.value = !0, gn();
|
|
192
192
|
});
|
|
193
|
-
let hn =
|
|
193
|
+
let hn = p(() => !!B.value.debug);
|
|
194
194
|
function gn() {
|
|
195
|
-
if (
|
|
195
|
+
if (t(A.dataset) ? (ae({
|
|
196
196
|
componentName: "VueUiHistoryPlot",
|
|
197
197
|
type: "dataset",
|
|
198
198
|
debug: hn.value
|
|
199
|
-
}), xn.value = !0) :
|
|
200
|
-
|
|
199
|
+
}), xn.value = !0) : A.dataset.forEach((e, t) => {
|
|
200
|
+
oe({
|
|
201
201
|
datasetObject: e,
|
|
202
202
|
requiredAttributes: ["name", "values"]
|
|
203
203
|
}).forEach((e) => {
|
|
204
|
-
pn.value = !1,
|
|
204
|
+
pn.value = !1, ae({
|
|
205
205
|
componentName: "VueUiHistoryPlot",
|
|
206
206
|
type: "datasetSerieAttribute",
|
|
207
207
|
property: e,
|
|
208
|
-
index:
|
|
208
|
+
index: t,
|
|
209
209
|
debug: hn.value
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
|
-
}),
|
|
213
|
-
let e =
|
|
214
|
-
let { width: e, height: t } =
|
|
215
|
-
chart:
|
|
216
|
-
title: B.value.style.chart.title.text ?
|
|
217
|
-
noTitle:
|
|
218
|
-
legend: B.value.style.chart.legend.show ?
|
|
219
|
-
source:
|
|
212
|
+
}), t(A.dataset) || (xn.value = B.value.loading), B.value.responsive) {
|
|
213
|
+
let e = Te(() => {
|
|
214
|
+
let { width: e, height: t } = Ee({
|
|
215
|
+
chart: j.value,
|
|
216
|
+
title: B.value.style.chart.title.text ? Ut.value : null,
|
|
217
|
+
noTitle: Yt.value,
|
|
218
|
+
legend: B.value.style.chart.legend.show ? Gt.value : null,
|
|
219
|
+
source: $t.value
|
|
220
220
|
});
|
|
221
221
|
requestAnimationFrame(() => {
|
|
222
|
-
W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots =
|
|
222
|
+
W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = c({
|
|
223
223
|
relator: Math.min(e, t),
|
|
224
224
|
adjuster: 600,
|
|
225
225
|
source: B.value.style.chart.plots.radius,
|
|
226
226
|
threshold: 3,
|
|
227
227
|
fallback: 3
|
|
228
|
-
}), K.value.indexLabels =
|
|
228
|
+
}), K.value.indexLabels = c({
|
|
229
229
|
relator: Math.min(e, t),
|
|
230
230
|
adjuster: 600,
|
|
231
231
|
source: B.value.style.chart.plots.indexLabels.fontSize,
|
|
232
232
|
threshold: 6,
|
|
233
233
|
fallback: 6
|
|
234
|
-
}), K.value.labels =
|
|
234
|
+
}), K.value.labels = c({
|
|
235
235
|
relator: Math.min(e, t),
|
|
236
236
|
adjuster: 600,
|
|
237
237
|
source: B.value.style.chart.plots.labels.fontSize,
|
|
238
238
|
threshold: 6,
|
|
239
239
|
fallback: 6
|
|
240
|
-
}), K.value.xAxisLabels =
|
|
240
|
+
}), K.value.xAxisLabels = c({
|
|
241
241
|
relator: Math.min(e, t),
|
|
242
242
|
adjuster: 600,
|
|
243
243
|
source: B.value.style.chart.axes.x.labels.fontSize,
|
|
244
244
|
threshold: 6,
|
|
245
245
|
fallback: 6
|
|
246
|
-
}), K.value.xAxisName =
|
|
246
|
+
}), K.value.xAxisName = c({
|
|
247
247
|
relator: Math.min(e, t),
|
|
248
248
|
adjuster: 600,
|
|
249
249
|
source: B.value.style.chart.axes.x.name.fontSize,
|
|
250
250
|
threshold: 6,
|
|
251
251
|
fallback: 6
|
|
252
|
-
}), K.value.yAxisLabels =
|
|
252
|
+
}), K.value.yAxisLabels = c({
|
|
253
253
|
relator: Math.min(e, t),
|
|
254
254
|
adjuster: 600,
|
|
255
255
|
source: B.value.style.chart.axes.y.labels.fontSize,
|
|
256
256
|
threshold: 6,
|
|
257
257
|
fallback: 6
|
|
258
|
-
}), K.value.yAxisName =
|
|
258
|
+
}), K.value.yAxisName = c({
|
|
259
259
|
relator: Math.min(e, t),
|
|
260
260
|
adjuster: 600,
|
|
261
261
|
source: B.value.style.chart.axes.y.name.fontSize,
|
|
@@ -264,35 +264,35 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
264
264
|
})) : (K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
|
-
|
|
267
|
+
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = j.value.parentNode, M.value.observe(N.value);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
Be(() => {
|
|
271
|
+
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
|
|
272
272
|
});
|
|
273
273
|
function _n() {
|
|
274
|
-
let e =
|
|
275
|
-
userConfig:
|
|
276
|
-
defaultConfig:
|
|
274
|
+
let e = ye({
|
|
275
|
+
userConfig: A.config,
|
|
276
|
+
defaultConfig: Bt
|
|
277
277
|
}), t = {}, n = e.theme;
|
|
278
|
-
if (n) if (!
|
|
278
|
+
if (n) if (!Vt.value(e)) Ht(e), t = e;
|
|
279
279
|
else {
|
|
280
|
-
let r =
|
|
281
|
-
userConfig:
|
|
280
|
+
let r = ye({
|
|
281
|
+
userConfig: Ne[n] || A.config,
|
|
282
282
|
defaultConfig: e
|
|
283
283
|
});
|
|
284
284
|
t = {
|
|
285
|
-
...
|
|
286
|
-
userConfig:
|
|
285
|
+
...ye({
|
|
286
|
+
userConfig: A.config,
|
|
287
287
|
defaultConfig: r
|
|
288
288
|
}),
|
|
289
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
289
|
+
customPalette: e.customPalette.length ? e.customPalette : a[n] || l
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
else t = e;
|
|
293
293
|
return t;
|
|
294
294
|
}
|
|
295
|
-
let B =
|
|
295
|
+
let B = w(_n()), V = p(() => B.value.userOptions.useCursorPointer), vn = p(() => ce({
|
|
296
296
|
defaultConfig: {
|
|
297
297
|
userOptions: { show: !1 },
|
|
298
298
|
table: { show: !1 },
|
|
@@ -331,11 +331,11 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
331
331
|
} }
|
|
332
332
|
},
|
|
333
333
|
userConfig: B.value.skeletonConfig ?? {}
|
|
334
|
-
})), { loading: yn, FINAL_DATASET: bn, manualLoading: xn } =
|
|
335
|
-
...
|
|
334
|
+
})), { loading: yn, FINAL_DATASET: bn, manualLoading: xn } = ge({
|
|
335
|
+
...We(A),
|
|
336
336
|
FINAL_CONFIG: B,
|
|
337
337
|
prepareConfig: _n,
|
|
338
|
-
skeletonDataset:
|
|
338
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
339
339
|
name: "",
|
|
340
340
|
color: "#CACACA",
|
|
341
341
|
values: [
|
|
@@ -361,34 +361,34 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
361
361
|
}
|
|
362
362
|
]
|
|
363
363
|
}],
|
|
364
|
-
skeletonConfig:
|
|
364
|
+
skeletonConfig: ce({
|
|
365
365
|
defaultConfig: B.value,
|
|
366
366
|
userConfig: vn.value
|
|
367
367
|
})
|
|
368
|
-
}), { userOptionsVisible: Sn, setUserOptionsVisibility: Cn, keepUserOptionState: wn } =
|
|
369
|
-
|
|
370
|
-
yn.value || (B.value = _n()), Sn.value = !B.value.userOptions.showOnChartHover, gn(),
|
|
371
|
-
}, { deep: !0 }),
|
|
368
|
+
}), { userOptionsVisible: Sn, setUserOptionsVisibility: Cn, keepUserOptionState: wn } = Ae({ config: B.value }), { svgRef: H } = je({ config: B.value.style.chart.title });
|
|
369
|
+
Ge(() => A.config, (e) => {
|
|
370
|
+
yn.value || (B.value = _n()), Sn.value = !B.value.userOptions.showOnChartHover, gn(), Wt.value += 1, qt.value += 1, Kt.value += 1, W.value.height = B.value.style.chart.height, W.value.width = B.value.style.chart.width, K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, U.value.showTable = B.value.table.show, U.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
371
|
+
}, { deep: !0 }), Ge(() => A.dataset, (e) => {
|
|
372
372
|
Array.isArray(e) && e.length > 0 && (xn.value = !1);
|
|
373
373
|
}, { deep: !0 });
|
|
374
|
-
let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } =
|
|
375
|
-
elementId: `history_plot_${
|
|
374
|
+
let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } = he({
|
|
375
|
+
elementId: `history_plot_${P.value}`,
|
|
376
376
|
fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
|
|
377
377
|
options: B.value.userOptions.print
|
|
378
|
-
}), kn =
|
|
378
|
+
}), kn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), An = p(() => n(B.value.customPalette)), U = w({
|
|
379
379
|
showTable: B.value.table.show,
|
|
380
380
|
showTooltip: B.value.style.chart.tooltip.show
|
|
381
381
|
});
|
|
382
|
-
|
|
382
|
+
Ge(B, () => {
|
|
383
383
|
U.value = {
|
|
384
384
|
showTable: B.value.table.show,
|
|
385
385
|
showTooltip: B.value.style.chart.tooltip.show
|
|
386
386
|
};
|
|
387
387
|
}, { immediate: !0 });
|
|
388
|
-
let W =
|
|
388
|
+
let W = w({
|
|
389
389
|
height: B.value.style.chart.height,
|
|
390
390
|
width: B.value.style.chart.width
|
|
391
|
-
}), jn =
|
|
391
|
+
}), jn = p(() => W.value.width), Mn = p(() => W.value.height);
|
|
392
392
|
function Nn() {
|
|
393
393
|
let e = 0;
|
|
394
394
|
ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -398,10 +398,10 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
398
398
|
let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
|
|
399
399
|
return e + t + (t ? 24 : 0);
|
|
400
400
|
}
|
|
401
|
-
let Pn =
|
|
401
|
+
let Pn = w(0), Fn = Te((e) => {
|
|
402
402
|
Pn.value = e;
|
|
403
403
|
});
|
|
404
|
-
|
|
404
|
+
Ke((e) => {
|
|
405
405
|
let t = cn.value;
|
|
406
406
|
if (!t) return;
|
|
407
407
|
let n = new ResizeObserver((e) => {
|
|
@@ -409,12 +409,12 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
409
409
|
});
|
|
410
410
|
n.observe(t), e(() => n.disconnect());
|
|
411
411
|
});
|
|
412
|
-
let In =
|
|
412
|
+
let In = p(() => {
|
|
413
413
|
let e = 0;
|
|
414
414
|
on.value && (e = on.value.getBBox().height + K.value.xAxisName / 2);
|
|
415
415
|
let t = 0;
|
|
416
416
|
return cn.value && (t = Pn.value), e + t;
|
|
417
|
-
}), G =
|
|
417
|
+
}), G = p(() => {
|
|
418
418
|
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Nn(), r = B.value.style.chart.plots.radius;
|
|
419
419
|
return {
|
|
420
420
|
left: e + n + B.value.style.chart.axes.y.name.offsetX,
|
|
@@ -424,7 +424,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
424
424
|
width: W.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
|
|
425
425
|
height: W.value.height - t - B.value.style.chart.padding.bottom - In.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
|
|
426
426
|
};
|
|
427
|
-
}), K =
|
|
427
|
+
}), K = w({
|
|
428
428
|
plots: B.value.style.chart.plots.radius,
|
|
429
429
|
indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
|
|
430
430
|
labels: B.value.style.chart.plots.labels.fontSize,
|
|
@@ -432,11 +432,11 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
432
432
|
xAxisName: B.value.style.chart.axes.x.name.fontSize,
|
|
433
433
|
yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
|
|
434
434
|
yAxisName: B.value.style.chart.axes.y.name.fontSize
|
|
435
|
-
}), q =
|
|
436
|
-
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) =>
|
|
435
|
+
}), q = p(() => bn.value.map((e, t) => {
|
|
436
|
+
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => fe(e)) : void 0;
|
|
437
437
|
return {
|
|
438
438
|
...e,
|
|
439
|
-
color: e.color ?
|
|
439
|
+
color: e.color ? fe(e.color) : An.value[t] || l[t] || l[t % l.length],
|
|
440
440
|
temperatureColors: n,
|
|
441
441
|
temperatureAngle: Ln(e.temperatureAngle),
|
|
442
442
|
temperatureIndependant: e.temperatureIndependant === !0,
|
|
@@ -448,14 +448,14 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
448
448
|
let t = Number(e);
|
|
449
449
|
return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
|
|
450
450
|
}
|
|
451
|
-
let Rn =
|
|
452
|
-
let e = Math.min(...q.value.filter((e) => !
|
|
451
|
+
let Rn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), zn = p(() => {
|
|
452
|
+
let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
|
|
453
453
|
return e < 0 ? e : 0;
|
|
454
|
-
}), Bn =
|
|
455
|
-
let e = Math.min(...q.value.filter((e) => !
|
|
454
|
+
}), Bn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Vn = p(() => {
|
|
455
|
+
let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
|
|
456
456
|
return e < 0 ? e : 0;
|
|
457
|
-
}), J =
|
|
458
|
-
let e =
|
|
457
|
+
}), J = p(() => {
|
|
458
|
+
let e = se(B.value.style.chart.axes.x.scaleMin ?? zn.value, B.value.style.chart.axes.x.scaleMax ?? Rn.value, B.value.style.chart.axes.x.ticks), t = se(B.value.style.chart.axes.y.scaleMin ?? Vn.value, B.value.style.chart.axes.y.scaleMax ?? Bn.value, B.value.style.chart.axes.y.ticks);
|
|
459
459
|
return {
|
|
460
460
|
x: e,
|
|
461
461
|
y: t,
|
|
@@ -481,8 +481,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
481
481
|
let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
|
|
482
482
|
return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
|
|
483
483
|
}
|
|
484
|
-
let Y =
|
|
485
|
-
let
|
|
484
|
+
let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, t) => {
|
|
485
|
+
let n = e.values.map((t, n) => ({
|
|
486
486
|
valueX: t.x,
|
|
487
487
|
valueY: t.y,
|
|
488
488
|
label: t.label,
|
|
@@ -490,16 +490,16 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
490
490
|
y: Un(t.y),
|
|
491
491
|
color: e.color,
|
|
492
492
|
seriesName: e.name,
|
|
493
|
-
id:
|
|
494
|
-
})),
|
|
493
|
+
id: s()
|
|
494
|
+
})), r = e.smooth ? de(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
|
|
495
495
|
return {
|
|
496
496
|
...e,
|
|
497
497
|
gradientIndex: t,
|
|
498
|
-
plots:
|
|
499
|
-
path: `M${
|
|
498
|
+
plots: n,
|
|
499
|
+
path: `M${r}`
|
|
500
500
|
};
|
|
501
|
-
})), Wn =
|
|
502
|
-
if (
|
|
501
|
+
})), Wn = p(() => {
|
|
502
|
+
if (L.value === null || R.value === null) return Y.value;
|
|
503
503
|
let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
|
|
504
504
|
if (e === -1) return Y.value;
|
|
505
505
|
let t = Y.value[e];
|
|
@@ -508,14 +508,14 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
508
508
|
...Y.value.slice(e + 1),
|
|
509
509
|
t
|
|
510
510
|
];
|
|
511
|
-
}), Gn =
|
|
512
|
-
function X(e) {
|
|
513
|
-
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
514
|
-
}
|
|
511
|
+
}), Gn = p(() => Y.value.some((e) => Kn(e)));
|
|
515
512
|
function Kn(e) {
|
|
516
|
-
return
|
|
513
|
+
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
517
514
|
}
|
|
518
515
|
function qn(e) {
|
|
516
|
+
return Kn(e) && e.usePlotTemperatureColors;
|
|
517
|
+
}
|
|
518
|
+
function Jn(e) {
|
|
519
519
|
let t = Array.isArray(e?.plots) ? e.plots : [];
|
|
520
520
|
if (!t.length) return {
|
|
521
521
|
minX: 0,
|
|
@@ -535,7 +535,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
535
535
|
height: s - o
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Yn() {
|
|
539
539
|
let e = G.value;
|
|
540
540
|
return {
|
|
541
541
|
minX: e.left,
|
|
@@ -546,11 +546,11 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
546
546
|
height: e.height
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
function Yn(e) {
|
|
550
|
-
return e?.temperatureIndependant ? qn(e) : Jn();
|
|
551
|
-
}
|
|
552
549
|
function Xn(e) {
|
|
553
|
-
|
|
550
|
+
return e?.temperatureIndependant ? Jn(e) : Yn();
|
|
551
|
+
}
|
|
552
|
+
function Zn(e) {
|
|
553
|
+
let t = Ln(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Xn(e), a = i.minX + i.width / 2, o = i.minY + i.height / 2, s = (Math.abs(n) * i.width + Math.abs(r) * i.height) / 2 || 1;
|
|
554
554
|
return {
|
|
555
555
|
x1: a - n * s,
|
|
556
556
|
y1: o - r * s,
|
|
@@ -558,78 +558,78 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
558
558
|
y2: o + r * s
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
let { x1: n, y1: r, x2: i, y2: a } =
|
|
561
|
+
function Qn(e, t) {
|
|
562
|
+
let { x1: n, y1: r, x2: i, y2: a } = Zn(e), o = i - n, s = a - r, c = o * o + s * s;
|
|
563
563
|
if (!c) return 0;
|
|
564
564
|
let l = ((t.x - n) * o + (t.y - r) * s) / c;
|
|
565
565
|
return Math.min(1, Math.max(0, l));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function X(e, t) {
|
|
568
568
|
return pe({
|
|
569
569
|
colors: e.temperatureColors,
|
|
570
|
-
ratio:
|
|
570
|
+
ratio: Qn(e, t)
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${
|
|
575
|
-
}
|
|
576
|
-
function $n(e, t, n) {
|
|
577
|
-
return Kn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${Qn(e, t)})` : Z(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${N.value})` : t.color;
|
|
573
|
+
function $n(e, t) {
|
|
574
|
+
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
|
|
578
575
|
}
|
|
579
|
-
function er(e, t) {
|
|
580
|
-
return
|
|
576
|
+
function er(e, t, n) {
|
|
577
|
+
return qn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${$n(e, t)})` : X(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
|
|
581
578
|
}
|
|
582
579
|
function tr(e, t) {
|
|
583
|
-
return
|
|
580
|
+
return qn(e) ? X(e, t) : e.color;
|
|
584
581
|
}
|
|
585
582
|
function nr(e, t) {
|
|
586
|
-
|
|
587
|
-
return n && Kn(n) ? Z(n, t) : t.color;
|
|
583
|
+
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(tr(e, t)) : B.value.style.chart.plots.indexLabels.color;
|
|
588
584
|
}
|
|
589
|
-
function rr(e) {
|
|
590
|
-
|
|
585
|
+
function rr(e, t) {
|
|
586
|
+
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
587
|
+
return n && qn(n) ? X(n, t) : t.color;
|
|
591
588
|
}
|
|
592
589
|
function ir(e) {
|
|
593
|
-
return
|
|
590
|
+
return Kn(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
|
|
594
591
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
function Q() {
|
|
598
|
-
return B.value.useCssAnimation && !yn.value && !ar.value;
|
|
592
|
+
function ar(e) {
|
|
593
|
+
return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
|
|
599
594
|
}
|
|
600
|
-
|
|
601
|
-
|
|
595
|
+
p(() => L.value !== null && R.value !== null);
|
|
596
|
+
let or = w(!1);
|
|
597
|
+
function Z() {
|
|
598
|
+
return B.value.useCssAnimation && !yn.value && !or.value;
|
|
602
599
|
}
|
|
603
600
|
function sr() {
|
|
604
|
-
|
|
605
|
-
P.value.push(e.seriesIndex);
|
|
606
|
-
}), mn("selectLegend", Y.value);
|
|
601
|
+
return "opacity 0.2s ease-in-out";
|
|
607
602
|
}
|
|
608
|
-
function cr(
|
|
609
|
-
|
|
603
|
+
function cr() {
|
|
604
|
+
F.value.length ? F.value = [] : Q.value.forEach((e) => {
|
|
605
|
+
F.value.push(e.seriesIndex);
|
|
606
|
+
}), mn("selectLegend", Y.value);
|
|
610
607
|
}
|
|
611
608
|
function lr(e) {
|
|
612
|
-
|
|
609
|
+
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), mn("selectLegend", Y.value);
|
|
613
610
|
}
|
|
614
611
|
function ur(e) {
|
|
615
|
-
|
|
616
|
-
t !== null && P.value.includes(t.seriesIndex) && cr(t.seriesIndex);
|
|
612
|
+
return q.value.length ? q.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
|
|
617
613
|
}
|
|
618
614
|
function dr(e) {
|
|
619
|
-
let t =
|
|
620
|
-
t !== null &&
|
|
615
|
+
let t = ur(e);
|
|
616
|
+
t !== null && F.value.includes(t.seriesIndex) && lr(t.seriesIndex);
|
|
617
|
+
}
|
|
618
|
+
function fr(e) {
|
|
619
|
+
let t = ur(e);
|
|
620
|
+
t !== null && (F.value.includes(t.seriesIndex) || lr(t.seriesIndex));
|
|
621
621
|
}
|
|
622
|
-
let
|
|
623
|
-
let t =
|
|
622
|
+
let Q = p(() => q.value.map((e) => {
|
|
623
|
+
let t = Kn(e) ? e.temperatureColors : null;
|
|
624
624
|
return {
|
|
625
625
|
...e,
|
|
626
626
|
gradientColors: t,
|
|
627
|
-
opacity:
|
|
628
|
-
segregate: () =>
|
|
629
|
-
isSegregated:
|
|
627
|
+
opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
|
|
628
|
+
segregate: () => lr(e.seriesIndex),
|
|
629
|
+
isSegregated: F.value.includes(e.seriesIndex),
|
|
630
630
|
shape: t ? "gradient" : "circle"
|
|
631
631
|
};
|
|
632
|
-
})), pr =
|
|
632
|
+
})), pr = p(() => ({
|
|
633
633
|
cy: "history-plot-div-legend",
|
|
634
634
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
635
635
|
color: B.value.style.chart.legend.color,
|
|
@@ -648,9 +648,9 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
648
648
|
}), mn("selectDatapoint", e);
|
|
649
649
|
}
|
|
650
650
|
function hr(e) {
|
|
651
|
-
|
|
651
|
+
I.value = e, Jt.value += 1;
|
|
652
652
|
}
|
|
653
|
-
let gr =
|
|
653
|
+
let gr = w(null);
|
|
654
654
|
function _r({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
655
655
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
656
656
|
datapoint: {
|
|
@@ -659,7 +659,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
659
659
|
seriesIndex: n
|
|
660
660
|
},
|
|
661
661
|
seriesIndex: n
|
|
662
|
-
}), !(dn.value === "keyboard" && R.value === n && z.value === t) && (
|
|
662
|
+
}), !(dn.value === "keyboard" && R.value === n && z.value === t) && (Xt.value = !1, L.value = null);
|
|
663
663
|
}
|
|
664
664
|
function vr(e, t) {
|
|
665
665
|
if (!H.value) return;
|
|
@@ -678,8 +678,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
678
678
|
seriesIndex: n
|
|
679
679
|
},
|
|
680
680
|
seriesIndex: n
|
|
681
|
-
}), R.value = n, z.value = t, dn.value = r,
|
|
682
|
-
let i =
|
|
681
|
+
}), R.value = n, z.value = t, dn.value = r, or.value = !0;
|
|
682
|
+
let i = rr(n, e), a = {
|
|
683
683
|
...e,
|
|
684
684
|
color: i
|
|
685
685
|
};
|
|
@@ -690,10 +690,10 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
690
690
|
plotIndex: t,
|
|
691
691
|
config: B.value,
|
|
692
692
|
series: q.value
|
|
693
|
-
},
|
|
694
|
-
let
|
|
695
|
-
if (
|
|
696
|
-
let e =
|
|
693
|
+
}, L.value = e;
|
|
694
|
+
let o = B.value.style.chart.tooltip.customFormat;
|
|
695
|
+
if (Qt.value = !1, ie(o)) try {
|
|
696
|
+
let e = o({
|
|
697
697
|
seriesIndex: n,
|
|
698
698
|
datapoint: a,
|
|
699
699
|
color: i,
|
|
@@ -701,33 +701,33 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
701
701
|
series: q.value,
|
|
702
702
|
config: B.value
|
|
703
703
|
});
|
|
704
|
-
typeof e == "string" && (
|
|
704
|
+
typeof e == "string" && (Zt.value = e, Qt.value = !0);
|
|
705
705
|
} catch {
|
|
706
|
-
console.warn("Custom format cannot be applied."),
|
|
706
|
+
console.warn("Custom format cannot be applied."), Qt.value = !1;
|
|
707
707
|
}
|
|
708
|
-
if (!
|
|
708
|
+
if (!Qt.value) {
|
|
709
709
|
let t = "";
|
|
710
|
-
t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${B.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${B.value.style.chart.axes.x.name.text || "x"}: ${
|
|
710
|
+
t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${B.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${B.value.style.chart.axes.x.name.text || "x"}: ${d(B.value.style.chart.axes.x.labels.formatter, e.valueX, u({
|
|
711
711
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
712
712
|
v: e.valueX,
|
|
713
713
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
714
714
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
715
|
-
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${
|
|
715
|
+
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${d(B.value.style.chart.axes.y.labels.formatter, e.valueY, u({
|
|
716
716
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
717
717
|
v: e.valueY,
|
|
718
718
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
719
719
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
720
|
-
}))}</div>`,
|
|
720
|
+
}))}</div>`, Zt.value = `<div>${t}</div>`;
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
Xt.value = !0, r === "keyboard" && ze(() => {
|
|
723
723
|
vr(n, t);
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
|
-
|
|
726
|
+
p(() => ({ head: Y.value.map((e) => ({
|
|
727
727
|
name: e.name,
|
|
728
728
|
color: e.color
|
|
729
729
|
})) }));
|
|
730
|
-
let $ =
|
|
730
|
+
let $ = p(() => {
|
|
731
731
|
let e = [
|
|
732
732
|
B.value.table.columnNames.series,
|
|
733
733
|
B.value.table.columnNames.datapoint,
|
|
@@ -742,13 +742,13 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
742
742
|
name: e.seriesName
|
|
743
743
|
},
|
|
744
744
|
e.label,
|
|
745
|
-
|
|
745
|
+
d(B.value.style.chart.axes.x.labels.formatter, e.valueX, u({
|
|
746
746
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
747
747
|
v: e.valueX,
|
|
748
748
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
749
749
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
750
750
|
})),
|
|
751
|
-
|
|
751
|
+
d(B.value.style.chart.axes.y.labels.formatter, e.valueY, u({
|
|
752
752
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
753
753
|
v: e.valueY,
|
|
754
754
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
@@ -772,7 +772,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
772
772
|
};
|
|
773
773
|
});
|
|
774
774
|
function br(e = null) {
|
|
775
|
-
|
|
775
|
+
ze(() => {
|
|
776
776
|
let t = [
|
|
777
777
|
[B.value.table.columnNames.series],
|
|
778
778
|
[B.value.table.columnNames.datapoint],
|
|
@@ -783,18 +783,18 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
783
783
|
[e.label],
|
|
784
784
|
[e.valueX],
|
|
785
785
|
[e.valueY]
|
|
786
|
-
])), r =
|
|
786
|
+
])), r = i([
|
|
787
787
|
[B.value.style.chart.title.text],
|
|
788
788
|
[B.value.style.chart.title.subtitle.text],
|
|
789
789
|
t
|
|
790
790
|
].concat(n));
|
|
791
|
-
e ? e(r) :
|
|
791
|
+
e ? e(r) : ee({
|
|
792
792
|
csvContent: r,
|
|
793
793
|
title: B.value.style.chart.title.text || "vue-ui-history-plot"
|
|
794
794
|
});
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
|
-
let xr =
|
|
797
|
+
let xr = w(!1);
|
|
798
798
|
function Sr() {
|
|
799
799
|
xr.value = !xr.value;
|
|
800
800
|
}
|
|
@@ -808,9 +808,9 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
808
808
|
return Y.value;
|
|
809
809
|
}
|
|
810
810
|
async function Er({ scale: e = 2 } = {}) {
|
|
811
|
-
if (!
|
|
812
|
-
let { width: t, height: n } =
|
|
813
|
-
domElement:
|
|
811
|
+
if (!j.value) return;
|
|
812
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
813
|
+
domElement: j.value,
|
|
814
814
|
base64: !0,
|
|
815
815
|
img: !0,
|
|
816
816
|
scale: e
|
|
@@ -824,10 +824,10 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
824
824
|
aspectRatio: r
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
xe({
|
|
828
828
|
timeLabelsEls: cn,
|
|
829
|
-
timeLabels:
|
|
830
|
-
slicer:
|
|
829
|
+
timeLabels: p(() => J.value.tickX),
|
|
830
|
+
slicer: p(() => ({
|
|
831
831
|
start: 0,
|
|
832
832
|
end: J.value.tickX.length
|
|
833
833
|
})),
|
|
@@ -855,18 +855,18 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
855
855
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
856
856
|
rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
|
|
857
857
|
});
|
|
858
|
-
let Dr =
|
|
858
|
+
let Dr = p(() => {
|
|
859
859
|
let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
|
|
860
860
|
return {
|
|
861
|
-
component: e ?
|
|
861
|
+
component: e ? zt : Pt,
|
|
862
862
|
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
863
863
|
props: e ? {
|
|
864
864
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
865
865
|
color: B.value.table.th.color,
|
|
866
866
|
headerColor: B.value.table.th.color,
|
|
867
867
|
headerBg: B.value.table.th.backgroundColor,
|
|
868
|
-
isFullscreen:
|
|
869
|
-
fullscreenParent:
|
|
868
|
+
isFullscreen: I.value,
|
|
869
|
+
fullscreenParent: j.value,
|
|
870
870
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
871
871
|
} : {
|
|
872
872
|
hideDetails: !0,
|
|
@@ -885,21 +885,21 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
});
|
|
888
|
-
|
|
889
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
888
|
+
Ge(() => U.value.showTable, (e) => {
|
|
889
|
+
B.value.table.show || (e && B.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
|
|
890
890
|
});
|
|
891
891
|
function Or() {
|
|
892
892
|
U.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
|
|
893
893
|
}
|
|
894
|
-
let kr =
|
|
894
|
+
let kr = p(() => B.value.style.chart.backgroundColor), Ar = p(() => B.value.style.chart.legend), { exportSvg: jr, getSvg: Mr } = ve({
|
|
895
895
|
svg: H,
|
|
896
|
-
title:
|
|
896
|
+
title: p(() => B.value.style.chart.title),
|
|
897
897
|
legend: Ar,
|
|
898
|
-
legendItems:
|
|
898
|
+
legendItems: Q,
|
|
899
899
|
backgroundColor: kr
|
|
900
900
|
});
|
|
901
901
|
async function Nr({ isCb: e }) {
|
|
902
|
-
an.value = !0, await
|
|
902
|
+
an.value = !0, await ze();
|
|
903
903
|
try {
|
|
904
904
|
if (e) {
|
|
905
905
|
let { blob: e, url: t, text: n, dataUrl: r } = await Mr();
|
|
@@ -938,7 +938,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
938
938
|
dataset: Y.value
|
|
939
939
|
}));
|
|
940
940
|
}
|
|
941
|
-
let Ir =
|
|
941
|
+
let Ir = p(() => ({
|
|
942
942
|
head: $.value.head,
|
|
943
943
|
body: $.value.body.map((e) => [
|
|
944
944
|
e[0]?.name || "",
|
|
@@ -961,7 +961,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
961
961
|
seriesIndex: R.value
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
R.value = null, z.value = null, dn.value = "pointer",
|
|
964
|
+
R.value = null, z.value = null, dn.value = "pointer", Xt.value = !1, L.value = null;
|
|
965
965
|
}
|
|
966
966
|
function zr() {
|
|
967
967
|
R.value = null, z.value = null, fn.value = !0;
|
|
@@ -1051,40 +1051,40 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1051
1051
|
triggerMode: "keyboard"
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
-
return
|
|
1054
|
+
return we({
|
|
1055
1055
|
getData: Tr,
|
|
1056
1056
|
getImage: Er,
|
|
1057
1057
|
generatePdf: Dn,
|
|
1058
1058
|
generateCsv: br,
|
|
1059
1059
|
generateImage: On,
|
|
1060
1060
|
generateSvg: Nr,
|
|
1061
|
-
hideSeries:
|
|
1062
|
-
showSeries:
|
|
1061
|
+
hideSeries: fr,
|
|
1062
|
+
showSeries: dr,
|
|
1063
1063
|
toggleTable: Cr,
|
|
1064
1064
|
toggleTooltip: wr,
|
|
1065
1065
|
toggleAnnotator: Sr,
|
|
1066
1066
|
toggleFullscreen: hr,
|
|
1067
1067
|
copyAlt: Fr
|
|
1068
|
-
}), (e, t) => (
|
|
1069
|
-
id: `history_plot_${
|
|
1068
|
+
}), (e, t) => (C(), g("div", {
|
|
1069
|
+
id: `history_plot_${P.value}`,
|
|
1070
1070
|
ref_key: "historyPlotChart",
|
|
1071
|
-
ref:
|
|
1072
|
-
class:
|
|
1071
|
+
ref: j,
|
|
1072
|
+
class: b({
|
|
1073
1073
|
"vue-data-ui-component": !0,
|
|
1074
1074
|
"vue-ui-history-plot": !0,
|
|
1075
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1075
|
+
"vue-data-ui-wrapper-fullscreen": I.value
|
|
1076
1076
|
}),
|
|
1077
|
-
style:
|
|
1078
|
-
onMouseenter: t[2] ||= () =>
|
|
1079
|
-
onMouseleave: t[3] ||= () =>
|
|
1077
|
+
style: S(`background:${B.value.style.chart.backgroundColor};color:${B.value.style.chart.color};font-family:${B.value.style.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1078
|
+
onMouseenter: t[2] ||= () => O(Cn)(!0),
|
|
1079
|
+
onMouseleave: t[3] ||= () => O(Cn)(!1)
|
|
1080
1080
|
}, [
|
|
1081
|
-
|
|
1082
|
-
id: `chart-instructions-${
|
|
1081
|
+
_("div", {
|
|
1082
|
+
id: `chart-instructions-${P.value}`,
|
|
1083
1083
|
class: "sr-only"
|
|
1084
|
-
}, [
|
|
1085
|
-
Ir.value.body.length ? (
|
|
1084
|
+
}, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1085
|
+
Ir.value.body.length ? (C(), m(ke, {
|
|
1086
1086
|
key: 0,
|
|
1087
|
-
uid:
|
|
1087
|
+
uid: P.value,
|
|
1088
1088
|
head: Ir.value.head,
|
|
1089
1089
|
body: Ir.value.body,
|
|
1090
1090
|
caption: Ir.value.caption,
|
|
@@ -1095,23 +1095,23 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1095
1095
|
"body",
|
|
1096
1096
|
"caption",
|
|
1097
1097
|
"notice"
|
|
1098
|
-
])) :
|
|
1099
|
-
|
|
1100
|
-
B.value.userOptions.buttons.annotator ? (
|
|
1098
|
+
])) : h("", !0),
|
|
1099
|
+
E(e.$slots, "userConfig", {}, void 0, !0),
|
|
1100
|
+
B.value.userOptions.buttons.annotator ? (C(), m(O(It), {
|
|
1101
1101
|
key: 1,
|
|
1102
|
-
svgRef:
|
|
1102
|
+
svgRef: O(H),
|
|
1103
1103
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1104
1104
|
color: B.value.style.chart.color,
|
|
1105
1105
|
active: xr.value,
|
|
1106
1106
|
isCursorPointer: V.value,
|
|
1107
1107
|
onClose: Sr
|
|
1108
1108
|
}, {
|
|
1109
|
-
"annotator-action-close":
|
|
1110
|
-
"annotator-action-color":
|
|
1111
|
-
"annotator-action-draw":
|
|
1112
|
-
"annotator-action-undo":
|
|
1113
|
-
"annotator-action-redo":
|
|
1114
|
-
"annotator-action-delete":
|
|
1109
|
+
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1110
|
+
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
1111
|
+
"annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
|
|
1112
|
+
"annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
|
|
1113
|
+
"annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
|
|
1114
|
+
"annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
|
|
1115
1115
|
_: 3
|
|
1116
1116
|
}, 8, [
|
|
1117
1117
|
"svgRef",
|
|
@@ -1119,22 +1119,22 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1119
1119
|
"color",
|
|
1120
1120
|
"active",
|
|
1121
1121
|
"isCursorPointer"
|
|
1122
|
-
])) :
|
|
1123
|
-
kn.value ? (
|
|
1122
|
+
])) : h("", !0),
|
|
1123
|
+
kn.value ? (C(), g("div", {
|
|
1124
1124
|
key: 2,
|
|
1125
1125
|
ref_key: "noTitle",
|
|
1126
|
-
ref:
|
|
1126
|
+
ref: Yt,
|
|
1127
1127
|
class: "vue-data-ui-no-title-space",
|
|
1128
1128
|
style: "height:36px; width: 100%;background:transparent"
|
|
1129
|
-
}, null, 512)) :
|
|
1130
|
-
B.value.style.chart.title.text ? (
|
|
1129
|
+
}, null, 512)) : h("", !0),
|
|
1130
|
+
B.value.style.chart.title.text ? (C(), g("div", {
|
|
1131
1131
|
key: 3,
|
|
1132
1132
|
ref_key: "chartTitle",
|
|
1133
|
-
ref:
|
|
1133
|
+
ref: Ut,
|
|
1134
1134
|
class: "vue-ui-xy-title",
|
|
1135
|
-
style:
|
|
1136
|
-
}, [(
|
|
1137
|
-
key: `title_${
|
|
1135
|
+
style: S(`font-family:${B.value.style.fontFamily}`)
|
|
1136
|
+
}, [(C(), m(Ce, {
|
|
1137
|
+
key: `title_${Wt.value}`,
|
|
1138
1138
|
config: {
|
|
1139
1139
|
title: {
|
|
1140
1140
|
cy: "history-plot-div-title",
|
|
@@ -1145,17 +1145,17 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1145
1145
|
...B.value.style.chart.title.subtitle
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
}, null, 8, ["config"]))], 4)) :
|
|
1149
|
-
|
|
1150
|
-
B.value.userOptions.show && pn.value && (
|
|
1148
|
+
}, null, 8, ["config"]))], 4)) : h("", !0),
|
|
1149
|
+
_("div", { id: `legend-top-${P.value}` }, null, 8, Xe),
|
|
1150
|
+
B.value.userOptions.show && pn.value && (O(wn) || O(Sn)) ? (C(), m(O(Lt), {
|
|
1151
1151
|
ref_key: "userOptionsRef",
|
|
1152
1152
|
ref: nn,
|
|
1153
|
-
key: `user_option_${
|
|
1153
|
+
key: `user_option_${Jt.value}`,
|
|
1154
1154
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1155
1155
|
color: B.value.style.chart.color,
|
|
1156
|
-
isPrinting:
|
|
1157
|
-
isImaging:
|
|
1158
|
-
uid:
|
|
1156
|
+
isPrinting: O(Tn),
|
|
1157
|
+
isImaging: O(En),
|
|
1158
|
+
uid: P.value,
|
|
1159
1159
|
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1160
1160
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1161
1161
|
hasImg: B.value.userOptions.buttons.img,
|
|
@@ -1165,8 +1165,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1165
1165
|
hasLabel: !1,
|
|
1166
1166
|
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1167
1167
|
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1168
|
-
isFullscreen:
|
|
1169
|
-
chartElement:
|
|
1168
|
+
isFullscreen: I.value,
|
|
1169
|
+
chartElement: j.value,
|
|
1170
1170
|
position: B.value.userOptions.position,
|
|
1171
1171
|
isTooltip: U.value.showTooltip,
|
|
1172
1172
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
@@ -1177,7 +1177,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1177
1177
|
tableDialog: B.value.table.useDialog,
|
|
1178
1178
|
isCursorPointer: V.value,
|
|
1179
1179
|
onToggleFullscreen: hr,
|
|
1180
|
-
onGeneratePdf:
|
|
1180
|
+
onGeneratePdf: O(Dn),
|
|
1181
1181
|
onGenerateCsv: br,
|
|
1182
1182
|
onGenerateImage: Pr,
|
|
1183
1183
|
onGenerateSvg: Nr,
|
|
@@ -1185,11 +1185,11 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1185
1185
|
onToggleTooltip: wr,
|
|
1186
1186
|
onToggleAnnotator: Sr,
|
|
1187
1187
|
onCopyAlt: Fr,
|
|
1188
|
-
style:
|
|
1189
|
-
},
|
|
1188
|
+
style: S({ visibility: O(wn) ? O(Sn) ? "visible" : "hidden" : "visible" })
|
|
1189
|
+
}, Fe({ _: 2 }, [
|
|
1190
1190
|
e.$slots.menuIcon ? {
|
|
1191
1191
|
name: "menuIcon",
|
|
1192
|
-
fn:
|
|
1192
|
+
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
|
|
1193
1193
|
isOpen: t,
|
|
1194
1194
|
color: n
|
|
1195
1195
|
})), void 0, !0)]),
|
|
@@ -1197,37 +1197,37 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1197
1197
|
} : void 0,
|
|
1198
1198
|
e.$slots.optionTooltip ? {
|
|
1199
1199
|
name: "optionTooltip",
|
|
1200
|
-
fn:
|
|
1200
|
+
fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1201
1201
|
key: "1"
|
|
1202
1202
|
} : void 0,
|
|
1203
1203
|
e.$slots.optionPdf ? {
|
|
1204
1204
|
name: "optionPdf",
|
|
1205
|
-
fn:
|
|
1205
|
+
fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1206
1206
|
key: "2"
|
|
1207
1207
|
} : void 0,
|
|
1208
1208
|
e.$slots.optionCsv ? {
|
|
1209
1209
|
name: "optionCsv",
|
|
1210
|
-
fn:
|
|
1210
|
+
fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1211
1211
|
key: "3"
|
|
1212
1212
|
} : void 0,
|
|
1213
1213
|
e.$slots.optionImg ? {
|
|
1214
1214
|
name: "optionImg",
|
|
1215
|
-
fn:
|
|
1215
|
+
fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1216
1216
|
key: "4"
|
|
1217
1217
|
} : void 0,
|
|
1218
1218
|
e.$slots.optionSvg ? {
|
|
1219
1219
|
name: "optionSvg",
|
|
1220
|
-
fn:
|
|
1220
|
+
fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1221
1221
|
key: "5"
|
|
1222
1222
|
} : void 0,
|
|
1223
1223
|
e.$slots.optionTable ? {
|
|
1224
1224
|
name: "optionTable",
|
|
1225
|
-
fn:
|
|
1225
|
+
fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1226
1226
|
key: "6"
|
|
1227
1227
|
} : void 0,
|
|
1228
1228
|
e.$slots.optionFullscreen ? {
|
|
1229
1229
|
name: "optionFullscreen",
|
|
1230
|
-
fn:
|
|
1230
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
|
|
1231
1231
|
toggleFullscreen: t,
|
|
1232
1232
|
isFullscreen: n
|
|
1233
1233
|
})), void 0, !0)]),
|
|
@@ -1235,7 +1235,7 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1235
1235
|
} : void 0,
|
|
1236
1236
|
e.$slots.optionAnnotator ? {
|
|
1237
1237
|
name: "optionAnnotator",
|
|
1238
|
-
fn:
|
|
1238
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
|
|
1239
1239
|
toggleAnnotator: t,
|
|
1240
1240
|
isAnnotator: n
|
|
1241
1241
|
})), void 0, !0)]),
|
|
@@ -1243,55 +1243,55 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1243
1243
|
} : void 0,
|
|
1244
1244
|
e.$slots.optionAltCopy ? {
|
|
1245
1245
|
name: "optionAltCopy",
|
|
1246
|
-
fn:
|
|
1246
|
+
fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
1247
1247
|
key: "9"
|
|
1248
1248
|
} : void 0,
|
|
1249
1249
|
e.$slots["custom-menu-before"] ? {
|
|
1250
1250
|
name: "custom-menu-before",
|
|
1251
|
-
fn:
|
|
1251
|
+
fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1252
1252
|
key: "10"
|
|
1253
1253
|
} : void 0,
|
|
1254
1254
|
e.$slots["custom-menu-after"] ? {
|
|
1255
1255
|
name: "custom-menu-after",
|
|
1256
|
-
fn:
|
|
1256
|
+
fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1257
1257
|
key: "11"
|
|
1258
1258
|
} : void 0
|
|
1259
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1260
|
-
|
|
1259
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
|
|
1260
|
+
_("div", Ze, [(C(), g("svg", {
|
|
1261
1261
|
ref_key: "svgRef",
|
|
1262
1262
|
ref: H,
|
|
1263
|
-
xmlns:
|
|
1263
|
+
xmlns: O(ue),
|
|
1264
1264
|
viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
|
|
1265
|
-
style:
|
|
1266
|
-
"aria-describedby": `chart-instructions-${
|
|
1265
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
|
|
1266
|
+
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1267
1267
|
tabindex: "0",
|
|
1268
1268
|
onFocus: zr,
|
|
1269
1269
|
onBlur: Br,
|
|
1270
1270
|
onKeydown: Ur
|
|
1271
1271
|
}, [
|
|
1272
|
-
|
|
1273
|
-
e.$slots["chart-background"] ? (
|
|
1272
|
+
Le(O(Rt)),
|
|
1273
|
+
e.$slots["chart-background"] ? (C(), g("foreignObject", {
|
|
1274
1274
|
key: 0,
|
|
1275
1275
|
x: G.value.left,
|
|
1276
1276
|
y: G.value.top,
|
|
1277
1277
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1278
1278
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1279
1279
|
style: { pointerEvents: "none" }
|
|
1280
|
-
}, [
|
|
1281
|
-
B.value.style.chart.plots.gradient.show || Gn.value ? (
|
|
1280
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : h("", !0),
|
|
1281
|
+
B.value.style.chart.plots.gradient.show || Gn.value ? (C(), g("defs", et, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(Y.value, (e, t) => (C(), m(De, {
|
|
1282
1282
|
t: "radial",
|
|
1283
|
-
key: `gradient_${t}_${
|
|
1284
|
-
id: `gradient_${t}_${
|
|
1283
|
+
key: `gradient_${t}_${P.value}`,
|
|
1284
|
+
id: `gradient_${t}_${P.value}`,
|
|
1285
1285
|
fy: "30%",
|
|
1286
1286
|
stops: [
|
|
1287
1287
|
[
|
|
1288
1288
|
"10%",
|
|
1289
|
-
|
|
1289
|
+
O(r)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
|
|
1290
1290
|
1
|
|
1291
1291
|
],
|
|
1292
1292
|
[
|
|
1293
1293
|
"90%",
|
|
1294
|
-
|
|
1294
|
+
O(o)(e.color, .1),
|
|
1295
1295
|
1
|
|
1296
1296
|
],
|
|
1297
1297
|
[
|
|
@@ -1300,42 +1300,42 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1300
1300
|
1
|
|
1301
1301
|
]
|
|
1302
1302
|
]
|
|
1303
|
-
}, null, 8, ["id", "stops"]))), 128)) :
|
|
1303
|
+
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(Y.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && qn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(De, {
|
|
1304
1304
|
t: "radial",
|
|
1305
|
-
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${
|
|
1306
|
-
id:
|
|
1305
|
+
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
|
|
1306
|
+
id: $n(e, t),
|
|
1307
1307
|
fy: "30%",
|
|
1308
1308
|
stops: [
|
|
1309
1309
|
[
|
|
1310
1310
|
"10%",
|
|
1311
|
-
|
|
1311
|
+
O(r)(X(e, t), B.value.style.chart.plots.gradient.intensity / 100),
|
|
1312
1312
|
1
|
|
1313
1313
|
],
|
|
1314
1314
|
[
|
|
1315
1315
|
"90%",
|
|
1316
|
-
|
|
1316
|
+
O(o)(X(e, t), .1),
|
|
1317
1317
|
1
|
|
1318
1318
|
],
|
|
1319
1319
|
[
|
|
1320
1320
|
"100%",
|
|
1321
|
-
|
|
1321
|
+
X(e, t),
|
|
1322
1322
|
1
|
|
1323
1323
|
]
|
|
1324
1324
|
]
|
|
1325
|
-
}, null, 8, ["id", "stops"]))), 128)) :
|
|
1325
|
+
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), Kn(e) ? (C(), g("linearGradient", {
|
|
1326
1326
|
key: 1,
|
|
1327
|
-
id: `temperature_grad_history_${e.seriesIndex}_${
|
|
1327
|
+
id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
|
|
1328
1328
|
gradientUnits: "userSpaceOnUse",
|
|
1329
|
-
x1:
|
|
1330
|
-
y1:
|
|
1331
|
-
x2:
|
|
1332
|
-
y2:
|
|
1333
|
-
}, [(
|
|
1334
|
-
key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${
|
|
1329
|
+
x1: Zn(e).x1,
|
|
1330
|
+
y1: Zn(e).y1,
|
|
1331
|
+
x2: Zn(e).x2,
|
|
1332
|
+
y2: Zn(e).y2
|
|
1333
|
+
}, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
|
|
1334
|
+
key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
|
|
1335
1335
|
"stop-color": t,
|
|
1336
|
-
offset: e.temperatureColors.length === 1 ? "0%" :
|
|
1337
|
-
}, null, 8,
|
|
1338
|
-
B.value.style.chart.grid.verticalLines.show ? (
|
|
1336
|
+
offset: e.temperatureColors.length === 1 ? "0%" : O(te)(n, e.temperatureColors.length)
|
|
1337
|
+
}, null, 8, nt))), 128))], 8, tt)) : h("", !0)], 64))), 128))])) : h("", !0),
|
|
1338
|
+
B.value.style.chart.grid.verticalLines.show ? (C(), g("g", rt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
|
|
1339
1339
|
x1: e.x,
|
|
1340
1340
|
x2: e.x,
|
|
1341
1341
|
y1: e.y1,
|
|
@@ -1343,8 +1343,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1343
1343
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1344
1344
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1345
1345
|
"stroke-linecap": "round"
|
|
1346
|
-
}, null, 8,
|
|
1347
|
-
B.value.style.chart.axes.y.labels.show ? (
|
|
1346
|
+
}, null, 8, it))), 256))])) : h("", !0),
|
|
1347
|
+
B.value.style.chart.axes.y.labels.show ? (C(), g("g", at, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
|
|
1348
1348
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1349
1349
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1350
1350
|
"stroke-linecap": "round",
|
|
@@ -1352,24 +1352,24 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1352
1352
|
x2: G.value.left,
|
|
1353
1353
|
y1: e.y,
|
|
1354
1354
|
y2: e.y
|
|
1355
|
-
}, null, 8,
|
|
1356
|
-
B.value.style.chart.axes.y.labels.show ? (
|
|
1355
|
+
}, null, 8, ot))), 256))])) : h("", !0),
|
|
1356
|
+
B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
|
|
1357
1357
|
key: 4,
|
|
1358
1358
|
ref_key: "yAxisScales",
|
|
1359
1359
|
ref: ln
|
|
1360
|
-
}, [(
|
|
1360
|
+
}, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
|
|
1361
1361
|
x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
|
|
1362
1362
|
y: e.y + K.value.yAxisLabels / 3,
|
|
1363
1363
|
fill: B.value.style.chart.axes.y.labels.color,
|
|
1364
1364
|
"font-size": K.value.yAxisLabels,
|
|
1365
1365
|
"text-anchor": "end"
|
|
1366
|
-
},
|
|
1366
|
+
}, D(O(d)(B.value.style.chart.axes.y.labels.formatter, e.value, O(u)({
|
|
1367
1367
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
1368
1368
|
v: e.value,
|
|
1369
1369
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
1370
1370
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
1371
|
-
}))), 9,
|
|
1372
|
-
B.value.style.chart.axes.y.name.text ? (
|
|
1371
|
+
}))), 9, st))), 256))], 512)) : h("", !0),
|
|
1372
|
+
B.value.style.chart.axes.y.name.text ? (C(), g("text", {
|
|
1373
1373
|
key: 5,
|
|
1374
1374
|
ref_key: "yAxisLabel",
|
|
1375
1375
|
ref: sn,
|
|
@@ -1378,8 +1378,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1378
1378
|
fill: B.value.style.chart.axes.y.name.color,
|
|
1379
1379
|
"font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1380
1380
|
"text-anchor": "middle"
|
|
1381
|
-
},
|
|
1382
|
-
B.value.style.chart.grid.horizontalLines.show ? (
|
|
1381
|
+
}, D(B.value.style.chart.axes.y.name.text), 9, ct)) : h("", !0),
|
|
1382
|
+
B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", lt, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
|
|
1383
1383
|
x1: e.x1,
|
|
1384
1384
|
x2: e.x2,
|
|
1385
1385
|
y1: e.y,
|
|
@@ -1387,8 +1387,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1387
1387
|
stroke: B.value.style.chart.grid.horizontalLines.stroke,
|
|
1388
1388
|
"stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1389
1389
|
"stroke-linecap": "round"
|
|
1390
|
-
}, null, 8,
|
|
1391
|
-
B.value.style.chart.axes.x.labels.show ? (
|
|
1390
|
+
}, null, 8, ut))), 256))])) : h("", !0),
|
|
1391
|
+
B.value.style.chart.axes.x.labels.show ? (C(), g("g", dt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
|
|
1392
1392
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1393
1393
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1394
1394
|
"stroke-linecap": "round",
|
|
@@ -1396,24 +1396,24 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1396
1396
|
x2: e.x,
|
|
1397
1397
|
y1: G.value.bottom,
|
|
1398
1398
|
y2: G.value.bottom + 5
|
|
1399
|
-
}, null, 8,
|
|
1400
|
-
B.value.style.chart.axes.x.labels.show ? (
|
|
1399
|
+
}, null, 8, ft))), 256))])) : h("", !0),
|
|
1400
|
+
B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
|
|
1401
1401
|
key: 8,
|
|
1402
1402
|
ref_key: "xAxisScales",
|
|
1403
1403
|
ref: cn
|
|
1404
|
-
}, [(
|
|
1404
|
+
}, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
|
|
1405
1405
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
1406
1406
|
transform: `translate(${e.x}, ${G.value.bottom + B.value.style.chart.axes.x.labels.offsetY + K.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
|
|
1407
1407
|
fill: B.value.style.chart.axes.x.labels.color,
|
|
1408
1408
|
"font-size": K.value.xAxisLabels,
|
|
1409
1409
|
"text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1410
|
-
},
|
|
1410
|
+
}, D(O(d)(B.value.style.chart.axes.x.labels.formatter, e.value, O(u)({
|
|
1411
1411
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
1412
1412
|
v: e.value,
|
|
1413
1413
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
1414
1414
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
1415
|
-
}))), 9,
|
|
1416
|
-
B.value.style.chart.axes.x.name.text ? (
|
|
1415
|
+
}))), 9, pt))), 256))], 512)) : h("", !0),
|
|
1416
|
+
B.value.style.chart.axes.x.name.text ? (C(), g("text", {
|
|
1417
1417
|
key: 9,
|
|
1418
1418
|
ref_key: "xAxisLabel",
|
|
1419
1419
|
ref: on,
|
|
@@ -1423,8 +1423,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1423
1423
|
fill: B.value.style.chart.axes.x.name.color,
|
|
1424
1424
|
"font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1425
1425
|
"text-anchor": "middle"
|
|
1426
|
-
},
|
|
1427
|
-
B.value.style.chart.grid.xAxis.show ? (
|
|
1426
|
+
}, D(B.value.style.chart.axes.x.name.text), 9, mt)) : h("", !0),
|
|
1427
|
+
B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
|
|
1428
1428
|
key: 10,
|
|
1429
1429
|
x1: G.value.left,
|
|
1430
1430
|
x2: G.value.left + G.value.width,
|
|
@@ -1433,8 +1433,8 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1433
1433
|
stroke: B.value.style.chart.grid.xAxis.stroke,
|
|
1434
1434
|
"stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
|
|
1435
1435
|
"stroke-linecap": "round"
|
|
1436
|
-
}, null, 8,
|
|
1437
|
-
B.value.style.chart.grid.yAxis.show ? (
|
|
1436
|
+
}, null, 8, ht)) : h("", !0),
|
|
1437
|
+
B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
|
|
1438
1438
|
key: 11,
|
|
1439
1439
|
x1: G.value.left,
|
|
1440
1440
|
x2: G.value.left,
|
|
@@ -1443,49 +1443,49 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1443
1443
|
stroke: B.value.style.chart.grid.yAxis.stroke,
|
|
1444
1444
|
"stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
|
|
1445
1445
|
"stroke-linecap": "round"
|
|
1446
|
-
}, null, 8,
|
|
1447
|
-
(
|
|
1448
|
-
B.value.style.chart.paths.show ? (
|
|
1446
|
+
}, null, 8, gt)) : h("", !0),
|
|
1447
|
+
(C(!0), g(f, null, T(Wn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
|
|
1448
|
+
B.value.style.chart.paths.show ? (C(), g("g", {
|
|
1449
1449
|
key: 0,
|
|
1450
|
-
style:
|
|
1451
|
-
}, [
|
|
1450
|
+
style: S({ opacity: ar(e.seriesIndex) })
|
|
1451
|
+
}, [_("path", {
|
|
1452
1452
|
d: e.path,
|
|
1453
1453
|
stroke: B.value.style.chart.backgroundColor,
|
|
1454
1454
|
"stroke-width": B.value.style.chart.paths.strokeWidth + 4,
|
|
1455
1455
|
fill: "none",
|
|
1456
1456
|
"stroke-linecap": "round",
|
|
1457
1457
|
"stroke-linejoin": "round",
|
|
1458
|
-
class:
|
|
1459
|
-
}, null, 10,
|
|
1458
|
+
class: b({ animated: Z() })
|
|
1459
|
+
}, null, 10, _t), _("path", {
|
|
1460
1460
|
d: e.path,
|
|
1461
|
-
stroke:
|
|
1461
|
+
stroke: ir(e),
|
|
1462
1462
|
"stroke-width": B.value.style.chart.paths.strokeWidth,
|
|
1463
1463
|
fill: "none",
|
|
1464
1464
|
"stroke-linecap": "round",
|
|
1465
1465
|
"stroke-linejoin": "round",
|
|
1466
|
-
class:
|
|
1467
|
-
}, null, 10,
|
|
1468
|
-
(
|
|
1466
|
+
class: b({ animated: Z() })
|
|
1467
|
+
}, null, 10, vt)], 4)) : h("", !0),
|
|
1468
|
+
(C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
|
|
1469
1469
|
cx: e.x,
|
|
1470
1470
|
cy: e.y,
|
|
1471
1471
|
fill: B.value.style.chart.backgroundColor,
|
|
1472
1472
|
r: K.value.plots,
|
|
1473
1473
|
stroke: "none"
|
|
1474
|
-
}, null, 8,
|
|
1475
|
-
(
|
|
1474
|
+
}, null, 8, yt))), 256)),
|
|
1475
|
+
(C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
|
|
1476
1476
|
cx: t.x,
|
|
1477
1477
|
cy: t.y,
|
|
1478
|
-
fill:
|
|
1478
|
+
fill: er(e, t, e.gradientIndex),
|
|
1479
1479
|
r: K.value.plots,
|
|
1480
1480
|
stroke: B.value.style.chart.plots.stroke,
|
|
1481
1481
|
"stroke-width": B.value.style.chart.plots.strokeWidth,
|
|
1482
|
-
class:
|
|
1483
|
-
style:
|
|
1484
|
-
opacity:
|
|
1485
|
-
transition:
|
|
1482
|
+
class: b({ animated: Z() }),
|
|
1483
|
+
style: S({
|
|
1484
|
+
opacity: ar(e.seriesIndex),
|
|
1485
|
+
transition: sr()
|
|
1486
1486
|
})
|
|
1487
|
-
}, null, 14,
|
|
1488
|
-
B.value.style.chart.plots.labels.show ? (
|
|
1487
|
+
}, null, 14, bt))), 256)),
|
|
1488
|
+
B.value.style.chart.plots.labels.show ? (C(), g("g", xt, [(C(!0), g(f, null, T(e.plots, (t) => (C(), g("g", null, [String(t.label).includes("\n") ? (C(), g("text", {
|
|
1489
1489
|
key: 1,
|
|
1490
1490
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1491
1491
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
@@ -1493,19 +1493,19 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1493
1493
|
fill: B.value.style.chart.plots.labels.color,
|
|
1494
1494
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1495
1495
|
"text-anchor": "middle",
|
|
1496
|
-
class:
|
|
1497
|
-
style:
|
|
1498
|
-
opacity:
|
|
1499
|
-
transition:
|
|
1496
|
+
class: b({ animated: Z() }),
|
|
1497
|
+
style: S({
|
|
1498
|
+
opacity: ar(e.seriesIndex),
|
|
1499
|
+
transition: sr()
|
|
1500
1500
|
}),
|
|
1501
|
-
innerHTML:
|
|
1501
|
+
innerHTML: O(ne)({
|
|
1502
1502
|
content: String(t.label),
|
|
1503
1503
|
fontSize: K.value.labels,
|
|
1504
1504
|
fill: B.value.style.chart.plots.labels.color,
|
|
1505
1505
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1506
1506
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
|
|
1507
1507
|
})
|
|
1508
|
-
}, null, 14,
|
|
1508
|
+
}, null, 14, Ct)) : (C(), g("text", {
|
|
1509
1509
|
key: 0,
|
|
1510
1510
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1511
1511
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
@@ -1513,27 +1513,27 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1513
1513
|
fill: B.value.style.chart.plots.labels.color,
|
|
1514
1514
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1515
1515
|
"text-anchor": "middle",
|
|
1516
|
-
class:
|
|
1517
|
-
style:
|
|
1518
|
-
opacity:
|
|
1519
|
-
transition:
|
|
1516
|
+
class: b({ animated: Z() }),
|
|
1517
|
+
style: S({
|
|
1518
|
+
opacity: ar(e.seriesIndex),
|
|
1519
|
+
transition: sr()
|
|
1520
1520
|
})
|
|
1521
|
-
},
|
|
1522
|
-
B.value.style.chart.plots.indexLabels.show ? (
|
|
1521
|
+
}, D(t.label), 15, St))]))), 256))])) : h("", !0),
|
|
1522
|
+
B.value.style.chart.plots.indexLabels.show ? (C(), g("g", wt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
|
|
1523
1523
|
x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
|
|
1524
1524
|
y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
|
|
1525
1525
|
"font-size": K.value.indexLabels,
|
|
1526
1526
|
"font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1527
|
-
fill:
|
|
1527
|
+
fill: nr(e, t),
|
|
1528
1528
|
"text-anchor": "middle",
|
|
1529
|
-
class:
|
|
1530
|
-
style:
|
|
1531
|
-
opacity:
|
|
1532
|
-
transition:
|
|
1529
|
+
class: b({ animated: Z() }),
|
|
1530
|
+
style: S({
|
|
1531
|
+
opacity: ar(e.seriesIndex),
|
|
1532
|
+
transition: sr()
|
|
1533
1533
|
})
|
|
1534
|
-
},
|
|
1534
|
+
}, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Tt))), 256))])) : h("", !0)
|
|
1535
1535
|
]))), 128)),
|
|
1536
|
-
(
|
|
1536
|
+
(C(!0), g(f, null, T(Wn.value, (e) => (C(), g("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${P.value}` }, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("circle", {
|
|
1537
1537
|
cx: t.x,
|
|
1538
1538
|
cy: t.y,
|
|
1539
1539
|
fill: "transparent",
|
|
@@ -1555,68 +1555,68 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1555
1555
|
plotIndex: n,
|
|
1556
1556
|
seriesIndex: e.seriesIndex
|
|
1557
1557
|
})
|
|
1558
|
-
}, null, 40,
|
|
1559
|
-
|
|
1558
|
+
}, null, 40, Et))), 256))]))), 128)),
|
|
1559
|
+
E(e.$slots, "svg", { svg: {
|
|
1560
1560
|
...W.value,
|
|
1561
1561
|
drawingArea: G.value,
|
|
1562
|
-
isPrintingImg:
|
|
1562
|
+
isPrintingImg: O(Tn) || O(En) || rn.value,
|
|
1563
1563
|
isPrintingSvg: an.value
|
|
1564
1564
|
} }, void 0, !0)
|
|
1565
|
-
], 44,
|
|
1565
|
+
], 44, Qe)), e.$slots.hint ? (C(), g("div", Dt, [E(e.$slots, "hint", x(y({
|
|
1566
1566
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1567
1567
|
isVisible: fn.value
|
|
1568
|
-
})), void 0, !0)])) :
|
|
1569
|
-
e.$slots.watermark ? (
|
|
1570
|
-
|
|
1571
|
-
|
|
1568
|
+
})), void 0, !0)])) : h("", !0)]),
|
|
1569
|
+
e.$slots.watermark ? (C(), g("div", Ot, [E(e.$slots, "watermark", x(y({ isPrinting: O(Tn) || O(En) || rn.value || an.value })), void 0, !0)])) : h("", !0),
|
|
1570
|
+
_("div", { id: `legend-bottom-${P.value}` }, null, 8, kt),
|
|
1571
|
+
en.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Pe, {
|
|
1572
1572
|
key: 6,
|
|
1573
|
-
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1574
|
-
}, [
|
|
1573
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
1574
|
+
}, [_("div", {
|
|
1575
1575
|
ref_key: "chartLegend",
|
|
1576
|
-
ref:
|
|
1577
|
-
}, [
|
|
1578
|
-
key: `legend_${
|
|
1579
|
-
legendSet:
|
|
1576
|
+
ref: Gt
|
|
1577
|
+
}, [E(e.$slots, "legend", { legend: Q.value }, () => [B.value.style.chart.legend.show && pn.value ? (C(), m(Me, {
|
|
1578
|
+
key: `legend_${Kt.value}`,
|
|
1579
|
+
legendSet: Q.value,
|
|
1580
1580
|
config: pr.value,
|
|
1581
1581
|
isCursorPointer: V.value,
|
|
1582
1582
|
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1583
|
-
|
|
1583
|
+
lr(e.seriesIndex);
|
|
1584
1584
|
}
|
|
1585
1585
|
}, {
|
|
1586
|
-
item:
|
|
1586
|
+
item: k(({ legend: e, index: t }) => [_("div", {
|
|
1587
1587
|
onClick: (t) => e.segregate(),
|
|
1588
|
-
style:
|
|
1589
|
-
},
|
|
1590
|
-
legendToggle:
|
|
1588
|
+
style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
|
|
1589
|
+
}, D(e.name), 13, At)]),
|
|
1590
|
+
legendToggle: k(() => [Q.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(yn) ? (C(), m(Oe, {
|
|
1591
1591
|
key: 0,
|
|
1592
1592
|
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1593
1593
|
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1594
1594
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
1595
|
-
checked:
|
|
1595
|
+
checked: F.value.length > 0,
|
|
1596
1596
|
isCursorPointer: V.value,
|
|
1597
|
-
onToggle:
|
|
1597
|
+
onToggle: cr
|
|
1598
1598
|
}, null, 8, [
|
|
1599
1599
|
"backgroundColor",
|
|
1600
1600
|
"color",
|
|
1601
1601
|
"fontSize",
|
|
1602
1602
|
"checked",
|
|
1603
1603
|
"isCursorPointer"
|
|
1604
|
-
])) :
|
|
1604
|
+
])) : h("", !0)]),
|
|
1605
1605
|
_: 1
|
|
1606
1606
|
}, 8, [
|
|
1607
1607
|
"legendSet",
|
|
1608
1608
|
"config",
|
|
1609
1609
|
"isCursorPointer"
|
|
1610
|
-
])) :
|
|
1611
|
-
e.$slots.source ? (
|
|
1610
|
+
])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
|
|
1611
|
+
e.$slots.source ? (C(), g("div", {
|
|
1612
1612
|
key: 7,
|
|
1613
1613
|
ref_key: "source",
|
|
1614
|
-
ref:
|
|
1614
|
+
ref: $t,
|
|
1615
1615
|
dir: "auto"
|
|
1616
|
-
}, [
|
|
1617
|
-
|
|
1616
|
+
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1617
|
+
Le(O(Mt), {
|
|
1618
1618
|
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1619
|
-
show: U.value.showTooltip &&
|
|
1619
|
+
show: U.value.showTooltip && Xt.value,
|
|
1620
1620
|
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1621
1621
|
color: B.value.style.chart.tooltip.color,
|
|
1622
1622
|
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
@@ -1627,10 +1627,10 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1627
1627
|
position: B.value.style.chart.tooltip.position,
|
|
1628
1628
|
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1629
1629
|
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1630
|
-
parent:
|
|
1631
|
-
content:
|
|
1632
|
-
isCustom:
|
|
1633
|
-
isFullscreen:
|
|
1630
|
+
parent: j.value,
|
|
1631
|
+
content: Zt.value,
|
|
1632
|
+
isCustom: Qt.value,
|
|
1633
|
+
isFullscreen: I.value,
|
|
1634
1634
|
smooth: B.value.style.chart.tooltip.smooth,
|
|
1635
1635
|
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1636
1636
|
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
@@ -1638,9 +1638,9 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1638
1638
|
isA11yMode: dn.value === "keyboard",
|
|
1639
1639
|
a11yPosition: un.value
|
|
1640
1640
|
}, {
|
|
1641
|
-
"tooltip-before":
|
|
1642
|
-
tooltip:
|
|
1643
|
-
"tooltip-after":
|
|
1641
|
+
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...gr.value })), void 0, !0)]),
|
|
1642
|
+
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...gr.value })), void 0, !0)]),
|
|
1643
|
+
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...gr.value })), void 0, !0)]),
|
|
1644
1644
|
_: 3
|
|
1645
1645
|
}, 8, [
|
|
1646
1646
|
"teleportTo",
|
|
@@ -1666,13 +1666,13 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1666
1666
|
"isA11yMode",
|
|
1667
1667
|
"a11yPosition"
|
|
1668
1668
|
]),
|
|
1669
|
-
pn.value && B.value.userOptions.buttons.table ? (
|
|
1669
|
+
pn.value && B.value.userOptions.buttons.table ? (C(), m(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
|
|
1670
1670
|
ref_key: "tableUnit",
|
|
1671
|
-
ref:
|
|
1671
|
+
ref: tn,
|
|
1672
1672
|
onClose: Or
|
|
1673
|
-
}),
|
|
1674
|
-
content:
|
|
1675
|
-
key: `table_${
|
|
1673
|
+
}), Fe({
|
|
1674
|
+
content: k(() => [(C(), m(O(Ft), {
|
|
1675
|
+
key: `table_${qt.value}`,
|
|
1676
1676
|
colNames: $.value.colNames,
|
|
1677
1677
|
head: $.value.head,
|
|
1678
1678
|
body: $.value.body,
|
|
@@ -1682,14 +1682,14 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1682
1682
|
isCursorPointer: V.value,
|
|
1683
1683
|
onClose: Or
|
|
1684
1684
|
}, {
|
|
1685
|
-
th:
|
|
1685
|
+
th: k(({ th: e }) => [_("div", {
|
|
1686
1686
|
innerHTML: e,
|
|
1687
1687
|
style: {
|
|
1688
1688
|
display: "flex",
|
|
1689
1689
|
"align-items": "center"
|
|
1690
1690
|
}
|
|
1691
|
-
}, null, 8,
|
|
1692
|
-
td:
|
|
1691
|
+
}, null, 8, jt)]),
|
|
1692
|
+
td: k(({ td: e }) => [Ie(D(e.name || e), 1)]),
|
|
1693
1693
|
_: 1
|
|
1694
1694
|
}, 8, [
|
|
1695
1695
|
"colNames",
|
|
@@ -1703,24 +1703,24 @@ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1703
1703
|
_: 2
|
|
1704
1704
|
}, [B.value.table.useDialog ? {
|
|
1705
1705
|
name: "title",
|
|
1706
|
-
fn:
|
|
1706
|
+
fn: k(() => [Ie(D(Dr.value.title), 1)]),
|
|
1707
1707
|
key: "0"
|
|
1708
1708
|
} : void 0, B.value.table.useDialog ? {
|
|
1709
1709
|
name: "actions",
|
|
1710
|
-
fn:
|
|
1710
|
+
fn: k(() => [_("button", {
|
|
1711
1711
|
tabindex: "0",
|
|
1712
1712
|
class: "vue-ui-user-options-button",
|
|
1713
1713
|
onClick: t[1] ||= (e) => br(B.value.userOptions.callbacks.csv),
|
|
1714
|
-
style:
|
|
1715
|
-
}, [
|
|
1714
|
+
style: S({ cursor: V.value ? "pointer" : "default" })
|
|
1715
|
+
}, [Le(O(Nt), {
|
|
1716
1716
|
name: "fileCsv",
|
|
1717
1717
|
stroke: Dr.value.props.color
|
|
1718
1718
|
}, null, 8, ["stroke"])], 4)]),
|
|
1719
1719
|
key: "1"
|
|
1720
|
-
} : void 0]), 1040)) :
|
|
1721
|
-
|
|
1722
|
-
], 46,
|
|
1720
|
+
} : void 0]), 1040)) : h("", !0),
|
|
1721
|
+
E(e.$slots, "skeleton", {}, () => [O(yn) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
|
|
1722
|
+
], 46, Je));
|
|
1723
1723
|
}
|
|
1724
1724
|
}, [["__scopeId", "data-v-9751197b"]]);
|
|
1725
1725
|
//#endregion
|
|
1726
|
-
export {
|
|
1726
|
+
export { qe as n, Mt as t };
|