vue-data-ui 3.22.8 → 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-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- 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-16uF1ayB.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-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.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/style.css +1 -1
- 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-AZZ9Cq-4.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-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.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-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- 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-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.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-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.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-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- 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-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.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/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,26 +1,27 @@
|
|
|
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
|
|
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";
|
|
16
17
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
18
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
19
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Me } from "./Legend-
|
|
20
|
+
import { t as Me } from "./Legend-5VQGLnmx.js";
|
|
20
21
|
import { t as Ne } from "./vue_ui_history_plot-CuN63VEc.js";
|
|
21
|
-
import { Fragment as
|
|
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";
|
|
22
23
|
//#region src/components/vue-ui-history-plot.vue
|
|
23
|
-
var qe = /* @__PURE__ */ e({ default: () =>
|
|
24
|
+
var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"viewBox",
|
|
26
27
|
"aria-describedby"
|
|
@@ -29,122 +30,122 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
29
30
|
"y",
|
|
30
31
|
"width",
|
|
31
32
|
"height"
|
|
32
|
-
], et = { key: 1 }, tt = [
|
|
33
|
+
], et = { key: 1 }, tt = [
|
|
33
34
|
"id",
|
|
34
35
|
"x1",
|
|
35
36
|
"y1",
|
|
36
37
|
"x2",
|
|
37
38
|
"y2"
|
|
38
|
-
],
|
|
39
|
+
], nt = ["stop-color", "offset"], rt = { key: 2 }, it = [
|
|
39
40
|
"x1",
|
|
40
41
|
"x2",
|
|
41
42
|
"y1",
|
|
42
43
|
"y2",
|
|
43
44
|
"stroke",
|
|
44
45
|
"stroke-width"
|
|
45
|
-
],
|
|
46
|
+
], at = { key: 3 }, ot = [
|
|
46
47
|
"stroke",
|
|
47
48
|
"stroke-width",
|
|
48
49
|
"x1",
|
|
49
50
|
"x2",
|
|
50
51
|
"y1",
|
|
51
52
|
"y2"
|
|
52
|
-
],
|
|
53
|
+
], st = [
|
|
53
54
|
"x",
|
|
54
55
|
"y",
|
|
55
56
|
"fill",
|
|
56
57
|
"font-size"
|
|
57
|
-
],
|
|
58
|
+
], ct = [
|
|
58
59
|
"transform",
|
|
59
60
|
"font-size",
|
|
60
61
|
"fill",
|
|
61
62
|
"font-weight"
|
|
62
|
-
],
|
|
63
|
+
], lt = { key: 6 }, ut = [
|
|
63
64
|
"x1",
|
|
64
65
|
"x2",
|
|
65
66
|
"y1",
|
|
66
67
|
"y2",
|
|
67
68
|
"stroke",
|
|
68
69
|
"stroke-width"
|
|
69
|
-
],
|
|
70
|
+
], dt = { key: 7 }, ft = [
|
|
70
71
|
"stroke",
|
|
71
72
|
"stroke-width",
|
|
72
73
|
"x1",
|
|
73
74
|
"x2",
|
|
74
75
|
"y1",
|
|
75
76
|
"y2"
|
|
76
|
-
],
|
|
77
|
+
], pt = [
|
|
77
78
|
"transform",
|
|
78
79
|
"fill",
|
|
79
80
|
"font-size",
|
|
80
81
|
"text-anchor"
|
|
81
|
-
],
|
|
82
|
+
], mt = [
|
|
82
83
|
"x",
|
|
83
84
|
"y",
|
|
84
85
|
"font-size",
|
|
85
86
|
"fill",
|
|
86
87
|
"font-weight"
|
|
87
|
-
],
|
|
88
|
+
], ht = [
|
|
88
89
|
"x1",
|
|
89
90
|
"x2",
|
|
90
91
|
"y1",
|
|
91
92
|
"y2",
|
|
92
93
|
"stroke",
|
|
93
94
|
"stroke-width"
|
|
94
|
-
],
|
|
95
|
+
], gt = [
|
|
95
96
|
"x1",
|
|
96
97
|
"x2",
|
|
97
98
|
"y1",
|
|
98
99
|
"y2",
|
|
99
100
|
"stroke",
|
|
100
101
|
"stroke-width"
|
|
101
|
-
],
|
|
102
|
+
], _t = [
|
|
102
103
|
"d",
|
|
103
104
|
"stroke",
|
|
104
105
|
"stroke-width"
|
|
105
|
-
],
|
|
106
|
+
], vt = [
|
|
106
107
|
"d",
|
|
107
108
|
"stroke",
|
|
108
109
|
"stroke-width"
|
|
109
|
-
],
|
|
110
|
+
], yt = [
|
|
110
111
|
"cx",
|
|
111
112
|
"cy",
|
|
112
113
|
"fill",
|
|
113
114
|
"r"
|
|
114
|
-
],
|
|
115
|
+
], bt = [
|
|
115
116
|
"cx",
|
|
116
117
|
"cy",
|
|
117
118
|
"fill",
|
|
118
119
|
"r",
|
|
119
120
|
"stroke",
|
|
120
121
|
"stroke-width"
|
|
121
|
-
],
|
|
122
|
+
], xt = { key: 1 }, St = [
|
|
122
123
|
"x",
|
|
123
124
|
"y",
|
|
124
125
|
"font-size",
|
|
125
126
|
"fill",
|
|
126
127
|
"font-weight"
|
|
127
|
-
],
|
|
128
|
+
], Ct = [
|
|
128
129
|
"x",
|
|
129
130
|
"y",
|
|
130
131
|
"font-size",
|
|
131
132
|
"fill",
|
|
132
133
|
"font-weight",
|
|
133
134
|
"innerHTML"
|
|
134
|
-
],
|
|
135
|
+
], wt = { key: 2 }, Tt = [
|
|
135
136
|
"x",
|
|
136
137
|
"y",
|
|
137
138
|
"font-size",
|
|
138
139
|
"font-weight",
|
|
139
140
|
"fill"
|
|
140
|
-
],
|
|
141
|
+
], Et = [
|
|
141
142
|
"cx",
|
|
142
143
|
"cy",
|
|
143
144
|
"r",
|
|
144
145
|
"onMouseenter",
|
|
145
146
|
"onMouseleave",
|
|
146
147
|
"onClick"
|
|
147
|
-
],
|
|
148
|
+
], Dt = {
|
|
148
149
|
key: 0,
|
|
149
150
|
style: {
|
|
150
151
|
position: "absolute",
|
|
@@ -154,10 +155,10 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
154
155
|
},
|
|
155
156
|
"data-dom-to-png-ignore": "",
|
|
156
157
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
158
|
+
}, Ot = {
|
|
158
159
|
key: 5,
|
|
159
160
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
161
|
+
}, kt = ["id"], At = ["onClick"], jt = ["innerHTML"], Mt = /*#__PURE__*/ we({
|
|
161
162
|
__name: "vue-ui-history-plot",
|
|
162
163
|
props: {
|
|
163
164
|
config: {
|
|
@@ -178,83 +179,83 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
178
179
|
"selectDatapoint",
|
|
179
180
|
"copyAlt"
|
|
180
181
|
],
|
|
181
|
-
setup(e, { expose:
|
|
182
|
-
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({
|
|
183
184
|
x: 0,
|
|
184
185
|
y: 0
|
|
185
|
-
}),
|
|
186
|
-
get: () => !!
|
|
186
|
+
}), dn = w("pointer"), fn = w(!1), pn = p({
|
|
187
|
+
get: () => !!A.dataset && A.dataset.length,
|
|
187
188
|
set: (e) => e
|
|
188
|
-
}),
|
|
189
|
+
}), mn = qe;
|
|
189
190
|
Ve(() => {
|
|
190
|
-
|
|
191
|
+
en.value = !0, gn();
|
|
191
192
|
});
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
193
|
+
let hn = p(() => !!B.value.debug);
|
|
194
|
+
function gn() {
|
|
195
|
+
if (t(A.dataset) ? (ae({
|
|
195
196
|
componentName: "VueUiHistoryPlot",
|
|
196
197
|
type: "dataset",
|
|
197
|
-
debug:
|
|
198
|
-
}),
|
|
199
|
-
|
|
198
|
+
debug: hn.value
|
|
199
|
+
}), xn.value = !0) : A.dataset.forEach((e, t) => {
|
|
200
|
+
oe({
|
|
200
201
|
datasetObject: e,
|
|
201
202
|
requiredAttributes: ["name", "values"]
|
|
202
203
|
}).forEach((e) => {
|
|
203
|
-
|
|
204
|
+
pn.value = !1, ae({
|
|
204
205
|
componentName: "VueUiHistoryPlot",
|
|
205
206
|
type: "datasetSerieAttribute",
|
|
206
207
|
property: e,
|
|
207
|
-
index:
|
|
208
|
-
debug:
|
|
208
|
+
index: t,
|
|
209
|
+
debug: hn.value
|
|
209
210
|
});
|
|
210
211
|
});
|
|
211
|
-
}),
|
|
212
|
-
let e =
|
|
213
|
-
let { width: e, height: t } =
|
|
214
|
-
chart:
|
|
215
|
-
title: B.value.style.chart.title.text ?
|
|
216
|
-
noTitle:
|
|
217
|
-
legend: B.value.style.chart.legend.show ?
|
|
218
|
-
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
|
|
219
220
|
});
|
|
220
221
|
requestAnimationFrame(() => {
|
|
221
|
-
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({
|
|
222
223
|
relator: Math.min(e, t),
|
|
223
224
|
adjuster: 600,
|
|
224
225
|
source: B.value.style.chart.plots.radius,
|
|
225
226
|
threshold: 3,
|
|
226
227
|
fallback: 3
|
|
227
|
-
}), K.value.indexLabels =
|
|
228
|
+
}), K.value.indexLabels = c({
|
|
228
229
|
relator: Math.min(e, t),
|
|
229
230
|
adjuster: 600,
|
|
230
231
|
source: B.value.style.chart.plots.indexLabels.fontSize,
|
|
231
232
|
threshold: 6,
|
|
232
233
|
fallback: 6
|
|
233
|
-
}), K.value.labels =
|
|
234
|
+
}), K.value.labels = c({
|
|
234
235
|
relator: Math.min(e, t),
|
|
235
236
|
adjuster: 600,
|
|
236
237
|
source: B.value.style.chart.plots.labels.fontSize,
|
|
237
238
|
threshold: 6,
|
|
238
239
|
fallback: 6
|
|
239
|
-
}), K.value.xAxisLabels =
|
|
240
|
+
}), K.value.xAxisLabels = c({
|
|
240
241
|
relator: Math.min(e, t),
|
|
241
242
|
adjuster: 600,
|
|
242
243
|
source: B.value.style.chart.axes.x.labels.fontSize,
|
|
243
244
|
threshold: 6,
|
|
244
245
|
fallback: 6
|
|
245
|
-
}), K.value.xAxisName =
|
|
246
|
+
}), K.value.xAxisName = c({
|
|
246
247
|
relator: Math.min(e, t),
|
|
247
248
|
adjuster: 600,
|
|
248
249
|
source: B.value.style.chart.axes.x.name.fontSize,
|
|
249
250
|
threshold: 6,
|
|
250
251
|
fallback: 6
|
|
251
|
-
}), K.value.yAxisLabels =
|
|
252
|
+
}), K.value.yAxisLabels = c({
|
|
252
253
|
relator: Math.min(e, t),
|
|
253
254
|
adjuster: 600,
|
|
254
255
|
source: B.value.style.chart.axes.y.labels.fontSize,
|
|
255
256
|
threshold: 6,
|
|
256
257
|
fallback: 6
|
|
257
|
-
}), K.value.yAxisName =
|
|
258
|
+
}), K.value.yAxisName = c({
|
|
258
259
|
relator: Math.min(e, t),
|
|
259
260
|
adjuster: 600,
|
|
260
261
|
source: B.value.style.chart.axes.y.name.fontSize,
|
|
@@ -263,35 +264,35 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
263
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);
|
|
264
265
|
});
|
|
265
266
|
});
|
|
266
|
-
|
|
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);
|
|
267
268
|
}
|
|
268
269
|
}
|
|
269
270
|
Be(() => {
|
|
270
|
-
|
|
271
|
+
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
|
|
271
272
|
});
|
|
272
|
-
function
|
|
273
|
-
let e =
|
|
274
|
-
userConfig:
|
|
275
|
-
defaultConfig:
|
|
273
|
+
function _n() {
|
|
274
|
+
let e = ye({
|
|
275
|
+
userConfig: A.config,
|
|
276
|
+
defaultConfig: Bt
|
|
276
277
|
}), t = {}, n = e.theme;
|
|
277
|
-
if (n) if (!
|
|
278
|
+
if (n) if (!Vt.value(e)) Ht(e), t = e;
|
|
278
279
|
else {
|
|
279
|
-
let r =
|
|
280
|
-
userConfig: Ne[n] ||
|
|
280
|
+
let r = ye({
|
|
281
|
+
userConfig: Ne[n] || A.config,
|
|
281
282
|
defaultConfig: e
|
|
282
283
|
});
|
|
283
284
|
t = {
|
|
284
|
-
...
|
|
285
|
-
userConfig:
|
|
285
|
+
...ye({
|
|
286
|
+
userConfig: A.config,
|
|
286
287
|
defaultConfig: r
|
|
287
288
|
}),
|
|
288
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
289
|
+
customPalette: e.customPalette.length ? e.customPalette : a[n] || l
|
|
289
290
|
};
|
|
290
291
|
}
|
|
291
292
|
else t = e;
|
|
292
293
|
return t;
|
|
293
294
|
}
|
|
294
|
-
let B =
|
|
295
|
+
let B = w(_n()), V = p(() => B.value.userOptions.useCursorPointer), vn = p(() => ce({
|
|
295
296
|
defaultConfig: {
|
|
296
297
|
userOptions: { show: !1 },
|
|
297
298
|
table: { show: !1 },
|
|
@@ -330,11 +331,11 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
330
331
|
} }
|
|
331
332
|
},
|
|
332
333
|
userConfig: B.value.skeletonConfig ?? {}
|
|
333
|
-
})), { loading:
|
|
334
|
-
...We(
|
|
334
|
+
})), { loading: yn, FINAL_DATASET: bn, manualLoading: xn } = ge({
|
|
335
|
+
...We(A),
|
|
335
336
|
FINAL_CONFIG: B,
|
|
336
|
-
prepareConfig:
|
|
337
|
-
skeletonDataset:
|
|
337
|
+
prepareConfig: _n,
|
|
338
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
338
339
|
name: "",
|
|
339
340
|
color: "#CACACA",
|
|
340
341
|
values: [
|
|
@@ -360,21 +361,21 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
360
361
|
}
|
|
361
362
|
]
|
|
362
363
|
}],
|
|
363
|
-
skeletonConfig:
|
|
364
|
+
skeletonConfig: ce({
|
|
364
365
|
defaultConfig: B.value,
|
|
365
|
-
userConfig:
|
|
366
|
+
userConfig: vn.value
|
|
366
367
|
})
|
|
367
|
-
}), { userOptionsVisible:
|
|
368
|
-
Ge(() =>
|
|
369
|
-
|
|
370
|
-
}, { deep: !0 }), Ge(() =>
|
|
371
|
-
Array.isArray(e) && e.length > 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
|
+
Array.isArray(e) && e.length > 0 && (xn.value = !1);
|
|
372
373
|
}, { deep: !0 });
|
|
373
|
-
let { isPrinting:
|
|
374
|
-
elementId: `history_plot_${
|
|
374
|
+
let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } = he({
|
|
375
|
+
elementId: `history_plot_${P.value}`,
|
|
375
376
|
fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
|
|
376
377
|
options: B.value.userOptions.print
|
|
377
|
-
}),
|
|
378
|
+
}), kn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), An = p(() => n(B.value.customPalette)), U = w({
|
|
378
379
|
showTable: B.value.table.show,
|
|
379
380
|
showTooltip: B.value.style.chart.tooltip.show
|
|
380
381
|
});
|
|
@@ -384,46 +385,46 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
384
385
|
showTooltip: B.value.style.chart.tooltip.show
|
|
385
386
|
};
|
|
386
387
|
}, { immediate: !0 });
|
|
387
|
-
let W =
|
|
388
|
+
let W = w({
|
|
388
389
|
height: B.value.style.chart.height,
|
|
389
390
|
width: B.value.style.chart.width
|
|
390
|
-
}),
|
|
391
|
-
function
|
|
391
|
+
}), jn = p(() => W.value.width), Mn = p(() => W.value.height);
|
|
392
|
+
function Nn() {
|
|
392
393
|
let e = 0;
|
|
393
|
-
|
|
394
|
+
ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
|
|
394
395
|
let n = t.getComputedTextLength();
|
|
395
396
|
return n > e ? n : e;
|
|
396
397
|
}, 0));
|
|
397
|
-
let t =
|
|
398
|
+
let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
|
|
398
399
|
return e + t + (t ? 24 : 0);
|
|
399
400
|
}
|
|
400
|
-
let
|
|
401
|
-
|
|
401
|
+
let Pn = w(0), Fn = Te((e) => {
|
|
402
|
+
Pn.value = e;
|
|
402
403
|
});
|
|
403
404
|
Ke((e) => {
|
|
404
|
-
let t =
|
|
405
|
+
let t = cn.value;
|
|
405
406
|
if (!t) return;
|
|
406
407
|
let n = new ResizeObserver((e) => {
|
|
407
|
-
|
|
408
|
+
Fn(e[0].contentRect.height);
|
|
408
409
|
});
|
|
409
410
|
n.observe(t), e(() => n.disconnect());
|
|
410
411
|
});
|
|
411
|
-
let
|
|
412
|
+
let In = p(() => {
|
|
412
413
|
let e = 0;
|
|
413
|
-
|
|
414
|
+
on.value && (e = on.value.getBBox().height + K.value.xAxisName / 2);
|
|
414
415
|
let t = 0;
|
|
415
|
-
return
|
|
416
|
-
}), G =
|
|
417
|
-
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n =
|
|
416
|
+
return cn.value && (t = Pn.value), e + t;
|
|
417
|
+
}), G = p(() => {
|
|
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;
|
|
418
419
|
return {
|
|
419
420
|
left: e + n + B.value.style.chart.axes.y.name.offsetX,
|
|
420
421
|
top: t + r,
|
|
421
422
|
right: W.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
|
|
422
|
-
bottom: W.value.height - B.value.style.chart.padding.bottom -
|
|
423
|
+
bottom: W.value.height - B.value.style.chart.padding.bottom - In.value - r - B.value.style.chart.axes.x.name.offsetY,
|
|
423
424
|
width: W.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
|
|
424
|
-
height: W.value.height - t - B.value.style.chart.padding.bottom -
|
|
425
|
+
height: W.value.height - t - B.value.style.chart.padding.bottom - In.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
|
|
425
426
|
};
|
|
426
|
-
}), K =
|
|
427
|
+
}), K = w({
|
|
427
428
|
plots: B.value.style.chart.plots.radius,
|
|
428
429
|
indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
|
|
429
430
|
labels: B.value.style.chart.plots.labels.fontSize,
|
|
@@ -431,30 +432,30 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
431
432
|
xAxisName: B.value.style.chart.axes.x.name.fontSize,
|
|
432
433
|
yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
|
|
433
434
|
yAxisName: B.value.style.chart.axes.y.name.fontSize
|
|
434
|
-
}), q =
|
|
435
|
-
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;
|
|
436
437
|
return {
|
|
437
438
|
...e,
|
|
438
|
-
color: e.color ?
|
|
439
|
+
color: e.color ? fe(e.color) : An.value[t] || l[t] || l[t % l.length],
|
|
439
440
|
temperatureColors: n,
|
|
440
|
-
temperatureAngle:
|
|
441
|
+
temperatureAngle: Ln(e.temperatureAngle),
|
|
441
442
|
temperatureIndependant: e.temperatureIndependant === !0,
|
|
442
443
|
usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
|
|
443
444
|
seriesIndex: t
|
|
444
445
|
};
|
|
445
446
|
}));
|
|
446
|
-
function
|
|
447
|
+
function Ln(e = 0) {
|
|
447
448
|
let t = Number(e);
|
|
448
449
|
return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
|
|
449
450
|
}
|
|
450
|
-
let
|
|
451
|
-
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)));
|
|
452
453
|
return e < 0 ? e : 0;
|
|
453
|
-
}),
|
|
454
|
-
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)));
|
|
455
456
|
return e < 0 ? e : 0;
|
|
456
|
-
}), J =
|
|
457
|
-
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);
|
|
458
459
|
return {
|
|
459
460
|
x: e,
|
|
460
461
|
y: t,
|
|
@@ -472,33 +473,33 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
472
473
|
}))
|
|
473
474
|
};
|
|
474
475
|
});
|
|
475
|
-
function
|
|
476
|
+
function Hn(e) {
|
|
476
477
|
let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
|
|
477
478
|
return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
+
function Un(e) {
|
|
480
481
|
let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
|
|
481
482
|
return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
|
|
482
483
|
}
|
|
483
|
-
let Y =
|
|
484
|
-
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) => ({
|
|
485
486
|
valueX: t.x,
|
|
486
487
|
valueY: t.y,
|
|
487
488
|
label: t.label,
|
|
488
|
-
x:
|
|
489
|
-
y:
|
|
489
|
+
x: Hn(t.x),
|
|
490
|
+
y: Un(t.y),
|
|
490
491
|
color: e.color,
|
|
491
492
|
seriesName: e.name,
|
|
492
|
-
id:
|
|
493
|
-
})),
|
|
493
|
+
id: s()
|
|
494
|
+
})), r = e.smooth ? de(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
|
|
494
495
|
return {
|
|
495
496
|
...e,
|
|
496
497
|
gradientIndex: t,
|
|
497
|
-
plots:
|
|
498
|
-
path: `M${
|
|
498
|
+
plots: n,
|
|
499
|
+
path: `M${r}`
|
|
499
500
|
};
|
|
500
|
-
})),
|
|
501
|
-
if (
|
|
501
|
+
})), Wn = p(() => {
|
|
502
|
+
if (L.value === null || R.value === null) return Y.value;
|
|
502
503
|
let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
|
|
503
504
|
if (e === -1) return Y.value;
|
|
504
505
|
let t = Y.value[e];
|
|
@@ -507,14 +508,14 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
507
508
|
...Y.value.slice(e + 1),
|
|
508
509
|
t
|
|
509
510
|
];
|
|
510
|
-
}),
|
|
511
|
-
function
|
|
511
|
+
}), Gn = p(() => Y.value.some((e) => Kn(e)));
|
|
512
|
+
function Kn(e) {
|
|
512
513
|
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
513
514
|
}
|
|
514
|
-
function
|
|
515
|
-
return
|
|
515
|
+
function qn(e) {
|
|
516
|
+
return Kn(e) && e.usePlotTemperatureColors;
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
+
function Jn(e) {
|
|
518
519
|
let t = Array.isArray(e?.plots) ? e.plots : [];
|
|
519
520
|
if (!t.length) return {
|
|
520
521
|
minX: 0,
|
|
@@ -534,7 +535,7 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
534
535
|
height: s - o
|
|
535
536
|
};
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
+
function Yn() {
|
|
538
539
|
let e = G.value;
|
|
539
540
|
return {
|
|
540
541
|
minX: e.left,
|
|
@@ -545,11 +546,11 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
545
546
|
height: e.height
|
|
546
547
|
};
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
-
return e?.temperatureIndependant ?
|
|
549
|
+
function Xn(e) {
|
|
550
|
+
return e?.temperatureIndependant ? Jn(e) : Yn();
|
|
550
551
|
}
|
|
551
|
-
function
|
|
552
|
-
let t =
|
|
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;
|
|
553
554
|
return {
|
|
554
555
|
x1: a - n * s,
|
|
555
556
|
y1: o - r * s,
|
|
@@ -557,78 +558,78 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
557
558
|
y2: o + r * s
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
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;
|
|
562
563
|
if (!c) return 0;
|
|
563
564
|
let l = ((t.x - n) * o + (t.y - r) * s) / c;
|
|
564
565
|
return Math.min(1, Math.max(0, l));
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
+
function X(e, t) {
|
|
567
568
|
return pe({
|
|
568
569
|
colors: e.temperatureColors,
|
|
569
|
-
ratio:
|
|
570
|
+
ratio: Qn(e, t)
|
|
570
571
|
});
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
-
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${
|
|
573
|
+
function $n(e, t) {
|
|
574
|
+
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
|
|
574
575
|
}
|
|
575
|
-
function
|
|
576
|
-
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;
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
579
|
+
function tr(e, t) {
|
|
580
|
+
return qn(e) ? X(e, t) : e.color;
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
-
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
582
|
+
function nr(e, t) {
|
|
583
|
+
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(tr(e, t)) : B.value.style.chart.plots.indexLabels.color;
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
+
function rr(e, t) {
|
|
585
586
|
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
586
|
-
return n &&
|
|
587
|
+
return n && qn(n) ? X(n, t) : t.color;
|
|
587
588
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
589
|
+
function ir(e) {
|
|
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;
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
592
|
+
function ar(e) {
|
|
593
|
+
return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
|
|
593
594
|
}
|
|
594
|
-
|
|
595
|
-
let
|
|
596
|
-
function
|
|
597
|
-
return B.value.useCssAnimation && !
|
|
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;
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
+
function sr() {
|
|
600
601
|
return "opacity 0.2s ease-in-out";
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
}),
|
|
603
|
+
function cr() {
|
|
604
|
+
F.value.length ? F.value = [] : Q.value.forEach((e) => {
|
|
605
|
+
F.value.push(e.seriesIndex);
|
|
606
|
+
}), mn("selectLegend", Y.value);
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
-
|
|
608
|
+
function lr(e) {
|
|
609
|
+
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), mn("selectLegend", Y.value);
|
|
609
610
|
}
|
|
610
|
-
function
|
|
611
|
+
function ur(e) {
|
|
611
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);
|
|
612
613
|
}
|
|
613
|
-
function
|
|
614
|
-
let t =
|
|
615
|
-
t !== null &&
|
|
614
|
+
function dr(e) {
|
|
615
|
+
let t = ur(e);
|
|
616
|
+
t !== null && F.value.includes(t.seriesIndex) && lr(t.seriesIndex);
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
let t =
|
|
619
|
-
t !== null && (
|
|
618
|
+
function fr(e) {
|
|
619
|
+
let t = ur(e);
|
|
620
|
+
t !== null && (F.value.includes(t.seriesIndex) || lr(t.seriesIndex));
|
|
620
621
|
}
|
|
621
|
-
let
|
|
622
|
-
let t =
|
|
622
|
+
let Q = p(() => q.value.map((e) => {
|
|
623
|
+
let t = Kn(e) ? e.temperatureColors : null;
|
|
623
624
|
return {
|
|
624
625
|
...e,
|
|
625
626
|
gradientColors: t,
|
|
626
|
-
opacity:
|
|
627
|
-
segregate: () =>
|
|
628
|
-
isSegregated:
|
|
627
|
+
opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
|
|
628
|
+
segregate: () => lr(e.seriesIndex),
|
|
629
|
+
isSegregated: F.value.includes(e.seriesIndex),
|
|
629
630
|
shape: t ? "gradient" : "circle"
|
|
630
631
|
};
|
|
631
|
-
})),
|
|
632
|
+
})), pr = p(() => ({
|
|
632
633
|
cy: "history-plot-div-legend",
|
|
633
634
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
634
635
|
color: B.value.style.chart.legend.color,
|
|
@@ -636,7 +637,7 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
636
637
|
paddingBottom: 12,
|
|
637
638
|
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
638
639
|
}));
|
|
639
|
-
function
|
|
640
|
+
function mr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
640
641
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
641
642
|
datapoint: {
|
|
642
643
|
...e,
|
|
@@ -644,13 +645,13 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
644
645
|
seriesIndex: n
|
|
645
646
|
},
|
|
646
647
|
seriesIndex: n
|
|
647
|
-
}),
|
|
648
|
+
}), mn("selectDatapoint", e);
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
650
|
+
function hr(e) {
|
|
651
|
+
I.value = e, Jt.value += 1;
|
|
651
652
|
}
|
|
652
|
-
let
|
|
653
|
-
function
|
|
653
|
+
let gr = w(null);
|
|
654
|
+
function _r({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
654
655
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
655
656
|
datapoint: {
|
|
656
657
|
...e,
|
|
@@ -658,18 +659,18 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
658
659
|
seriesIndex: n
|
|
659
660
|
},
|
|
660
661
|
seriesIndex: n
|
|
661
|
-
}), !(
|
|
662
|
+
}), !(dn.value === "keyboard" && R.value === n && z.value === t) && (Xt.value = !1, L.value = null);
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function vr(e, t) {
|
|
664
665
|
if (!H.value) return;
|
|
665
666
|
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
666
667
|
if (!n) return;
|
|
667
668
|
let r = n.plots[t];
|
|
668
669
|
if (!r) return;
|
|
669
670
|
let i = re(r.x, r.y, H.value);
|
|
670
|
-
i && (
|
|
671
|
+
i && (un.value = i);
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function yr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
673
674
|
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
674
675
|
datapoint: {
|
|
675
676
|
...e,
|
|
@@ -677,22 +678,22 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
677
678
|
seriesIndex: n
|
|
678
679
|
},
|
|
679
680
|
seriesIndex: n
|
|
680
|
-
}), R.value = n, z.value = t,
|
|
681
|
-
let i =
|
|
681
|
+
}), R.value = n, z.value = t, dn.value = r, or.value = !0;
|
|
682
|
+
let i = rr(n, e), a = {
|
|
682
683
|
...e,
|
|
683
684
|
color: i
|
|
684
685
|
};
|
|
685
|
-
|
|
686
|
+
gr.value = {
|
|
686
687
|
datapoint: a,
|
|
687
688
|
color: i,
|
|
688
689
|
seriesIndex: n,
|
|
689
690
|
plotIndex: t,
|
|
690
691
|
config: B.value,
|
|
691
692
|
series: q.value
|
|
692
|
-
},
|
|
693
|
-
let
|
|
694
|
-
if (
|
|
695
|
-
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({
|
|
696
697
|
seriesIndex: n,
|
|
697
698
|
datapoint: a,
|
|
698
699
|
color: i,
|
|
@@ -700,33 +701,33 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
700
701
|
series: q.value,
|
|
701
702
|
config: B.value
|
|
702
703
|
});
|
|
703
|
-
typeof e == "string" && (
|
|
704
|
+
typeof e == "string" && (Zt.value = e, Qt.value = !0);
|
|
704
705
|
} catch {
|
|
705
|
-
console.warn("Custom format cannot be applied."),
|
|
706
|
+
console.warn("Custom format cannot be applied."), Qt.value = !1;
|
|
706
707
|
}
|
|
707
|
-
if (!
|
|
708
|
+
if (!Qt.value) {
|
|
708
709
|
let t = "";
|
|
709
|
-
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({
|
|
710
711
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
711
712
|
v: e.valueX,
|
|
712
713
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
713
714
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
714
|
-
}))}</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({
|
|
715
716
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
716
717
|
v: e.valueY,
|
|
717
718
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
718
719
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
719
|
-
}))}</div>`,
|
|
720
|
+
}))}</div>`, Zt.value = `<div>${t}</div>`;
|
|
720
721
|
}
|
|
721
|
-
|
|
722
|
-
|
|
722
|
+
Xt.value = !0, r === "keyboard" && ze(() => {
|
|
723
|
+
vr(n, t);
|
|
723
724
|
});
|
|
724
725
|
}
|
|
725
|
-
|
|
726
|
+
p(() => ({ head: Y.value.map((e) => ({
|
|
726
727
|
name: e.name,
|
|
727
728
|
color: e.color
|
|
728
729
|
})) }));
|
|
729
|
-
let $ =
|
|
730
|
+
let $ = p(() => {
|
|
730
731
|
let e = [
|
|
731
732
|
B.value.table.columnNames.series,
|
|
732
733
|
B.value.table.columnNames.datapoint,
|
|
@@ -741,13 +742,13 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
741
742
|
name: e.seriesName
|
|
742
743
|
},
|
|
743
744
|
e.label,
|
|
744
|
-
|
|
745
|
+
d(B.value.style.chart.axes.x.labels.formatter, e.valueX, u({
|
|
745
746
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
746
747
|
v: e.valueX,
|
|
747
748
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
748
749
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
749
750
|
})),
|
|
750
|
-
|
|
751
|
+
d(B.value.style.chart.axes.y.labels.formatter, e.valueY, u({
|
|
751
752
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
752
753
|
v: e.valueY,
|
|
753
754
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
@@ -770,7 +771,7 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
770
771
|
colNames: e
|
|
771
772
|
};
|
|
772
773
|
});
|
|
773
|
-
function
|
|
774
|
+
function br(e = null) {
|
|
774
775
|
ze(() => {
|
|
775
776
|
let t = [
|
|
776
777
|
[B.value.table.columnNames.series],
|
|
@@ -782,34 +783,34 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
782
783
|
[e.label],
|
|
783
784
|
[e.valueX],
|
|
784
785
|
[e.valueY]
|
|
785
|
-
])), r =
|
|
786
|
+
])), r = i([
|
|
786
787
|
[B.value.style.chart.title.text],
|
|
787
788
|
[B.value.style.chart.title.subtitle.text],
|
|
788
789
|
t
|
|
789
790
|
].concat(n));
|
|
790
|
-
e ? e(r) :
|
|
791
|
+
e ? e(r) : ee({
|
|
791
792
|
csvContent: r,
|
|
792
793
|
title: B.value.style.chart.title.text || "vue-ui-history-plot"
|
|
793
794
|
});
|
|
794
795
|
});
|
|
795
796
|
}
|
|
796
|
-
let
|
|
797
|
-
function
|
|
798
|
-
|
|
797
|
+
let xr = w(!1);
|
|
798
|
+
function Sr() {
|
|
799
|
+
xr.value = !xr.value;
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
+
function Cr() {
|
|
801
802
|
U.value.showTable = !U.value.showTable;
|
|
802
803
|
}
|
|
803
|
-
function
|
|
804
|
+
function wr() {
|
|
804
805
|
U.value.showTooltip = !U.value.showTooltip;
|
|
805
806
|
}
|
|
806
|
-
function
|
|
807
|
+
function Tr() {
|
|
807
808
|
return Y.value;
|
|
808
809
|
}
|
|
809
|
-
async function
|
|
810
|
-
if (!
|
|
811
|
-
let { width: t, height: n } =
|
|
812
|
-
domElement:
|
|
810
|
+
async function Er({ scale: e = 2 } = {}) {
|
|
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,
|
|
813
814
|
base64: !0,
|
|
814
815
|
img: !0,
|
|
815
816
|
scale: e
|
|
@@ -823,10 +824,10 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
823
824
|
aspectRatio: r
|
|
824
825
|
};
|
|
825
826
|
}
|
|
826
|
-
|
|
827
|
-
timeLabelsEls:
|
|
828
|
-
timeLabels:
|
|
829
|
-
slicer:
|
|
827
|
+
xe({
|
|
828
|
+
timeLabelsEls: cn,
|
|
829
|
+
timeLabels: p(() => J.value.tickX),
|
|
830
|
+
slicer: p(() => ({
|
|
830
831
|
start: 0,
|
|
831
832
|
end: J.value.tickX.length
|
|
832
833
|
})),
|
|
@@ -849,23 +850,23 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
849
850
|
"enable"
|
|
850
851
|
],
|
|
851
852
|
isAutoSize: !1,
|
|
852
|
-
width:
|
|
853
|
-
height:
|
|
853
|
+
width: jn,
|
|
854
|
+
height: Mn,
|
|
854
855
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
855
856
|
rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
|
|
856
857
|
});
|
|
857
|
-
let
|
|
858
|
+
let Dr = p(() => {
|
|
858
859
|
let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
|
|
859
860
|
return {
|
|
860
|
-
component: e ?
|
|
861
|
+
component: e ? zt : Pt,
|
|
861
862
|
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
862
863
|
props: e ? {
|
|
863
864
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
864
865
|
color: B.value.table.th.color,
|
|
865
866
|
headerColor: B.value.table.th.color,
|
|
866
867
|
headerBg: B.value.table.th.backgroundColor,
|
|
867
|
-
isFullscreen:
|
|
868
|
-
fullscreenParent:
|
|
868
|
+
isFullscreen: I.value,
|
|
869
|
+
fullscreenParent: j.value,
|
|
869
870
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
870
871
|
} : {
|
|
871
872
|
hideDetails: !0,
|
|
@@ -885,47 +886,47 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
885
886
|
};
|
|
886
887
|
});
|
|
887
888
|
Ge(() => U.value.showTable, (e) => {
|
|
888
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
889
|
+
B.value.table.show || (e && B.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
|
|
889
890
|
});
|
|
890
|
-
function
|
|
891
|
-
U.value.showTable = !1,
|
|
891
|
+
function Or() {
|
|
892
|
+
U.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
|
|
892
893
|
}
|
|
893
|
-
let
|
|
894
|
+
let kr = p(() => B.value.style.chart.backgroundColor), Ar = p(() => B.value.style.chart.legend), { exportSvg: jr, getSvg: Mr } = ve({
|
|
894
895
|
svg: H,
|
|
895
|
-
title:
|
|
896
|
-
legend:
|
|
897
|
-
legendItems:
|
|
898
|
-
backgroundColor:
|
|
896
|
+
title: p(() => B.value.style.chart.title),
|
|
897
|
+
legend: Ar,
|
|
898
|
+
legendItems: Q,
|
|
899
|
+
backgroundColor: kr
|
|
899
900
|
});
|
|
900
|
-
async function
|
|
901
|
-
|
|
901
|
+
async function Nr({ isCb: e }) {
|
|
902
|
+
an.value = !0, await ze();
|
|
902
903
|
try {
|
|
903
904
|
if (e) {
|
|
904
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
905
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Mr();
|
|
905
906
|
await Promise.resolve(B.value.userOptions.callbacks.svg({
|
|
906
907
|
blob: e,
|
|
907
908
|
url: t,
|
|
908
909
|
text: n,
|
|
909
910
|
dataUrl: r
|
|
910
911
|
}));
|
|
911
|
-
} else await Promise.resolve(
|
|
912
|
+
} else await Promise.resolve(jr());
|
|
912
913
|
} finally {
|
|
913
|
-
|
|
914
|
+
an.value = !1;
|
|
914
915
|
}
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
+
function Pr(e) {
|
|
917
918
|
if (e?.stage === "start") {
|
|
918
|
-
|
|
919
|
+
rn.value = !0;
|
|
919
920
|
return;
|
|
920
921
|
}
|
|
921
922
|
if (e?.stage === "end") {
|
|
922
|
-
|
|
923
|
+
rn.value = !1;
|
|
923
924
|
return;
|
|
924
925
|
}
|
|
925
|
-
|
|
926
|
+
On();
|
|
926
927
|
}
|
|
927
|
-
async function
|
|
928
|
-
if (
|
|
928
|
+
async function Fr() {
|
|
929
|
+
if (mn("copyAlt", {
|
|
929
930
|
config: B.value,
|
|
930
931
|
dataset: Y.value
|
|
931
932
|
}), !B.value.userOptions.callbacks.altCopy) {
|
|
@@ -937,7 +938,7 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
937
938
|
dataset: Y.value
|
|
938
939
|
}));
|
|
939
940
|
}
|
|
940
|
-
let
|
|
941
|
+
let Ir = p(() => ({
|
|
941
942
|
head: $.value.head,
|
|
942
943
|
body: $.value.body.map((e) => [
|
|
943
944
|
e[0]?.name || "",
|
|
@@ -948,39 +949,39 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
948
949
|
caption: B.value.a11y.translations.tableCaption,
|
|
949
950
|
notice: B.value.a11y.translations.tableAvailable
|
|
950
951
|
}));
|
|
951
|
-
function
|
|
952
|
+
function Lr(e) {
|
|
952
953
|
return Y.value.findIndex((t) => t.seriesIndex === e);
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
+
function Rr() {
|
|
955
956
|
if (R.value !== null && z.value !== null) {
|
|
956
957
|
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
957
|
-
e &&
|
|
958
|
+
e && _r({
|
|
958
959
|
datapoint: e,
|
|
959
960
|
plotIndex: z.value,
|
|
960
961
|
seriesIndex: R.value
|
|
961
962
|
});
|
|
962
963
|
}
|
|
963
|
-
R.value = null, z.value = null,
|
|
964
|
+
R.value = null, z.value = null, dn.value = "pointer", Xt.value = !1, L.value = null;
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
-
R.value = null, z.value = null,
|
|
966
|
+
function zr() {
|
|
967
|
+
R.value = null, z.value = null, fn.value = !0;
|
|
967
968
|
}
|
|
968
|
-
function
|
|
969
|
-
|
|
969
|
+
function Br() {
|
|
970
|
+
Rr(), fn.value = !1;
|
|
970
971
|
}
|
|
971
|
-
function
|
|
972
|
+
function Vr(e, t) {
|
|
972
973
|
if (!e?.plots?.length) return null;
|
|
973
974
|
let n = e.plots.length;
|
|
974
975
|
return (t % n + n) % n;
|
|
975
976
|
}
|
|
976
|
-
function
|
|
977
|
+
function Hr({ seriesIndex: e, plotIndex: t, direction: n }) {
|
|
977
978
|
if (!Y.value.length) return null;
|
|
978
|
-
let r =
|
|
979
|
+
let r = Lr(e);
|
|
979
980
|
if (r === -1) return null;
|
|
980
981
|
if (n === "up" || n === "down") {
|
|
981
982
|
let e = Y.value[r];
|
|
982
983
|
if (!e?.plots?.length) return null;
|
|
983
|
-
let i =
|
|
984
|
+
let i = Vr(e, t + (n === "up" ? -1 : 1));
|
|
984
985
|
return {
|
|
985
986
|
seriesIndex: e.seriesIndex,
|
|
986
987
|
plotIndex: i
|
|
@@ -997,19 +998,19 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
997
998
|
}
|
|
998
999
|
return null;
|
|
999
1000
|
}
|
|
1000
|
-
function
|
|
1001
|
-
if (!H.value ||
|
|
1001
|
+
function Ur(e) {
|
|
1002
|
+
if (!H.value || xr.value || document.activeElement !== H.value || !Y.value.length) return;
|
|
1002
1003
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1003
1004
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1004
1005
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1005
|
-
|
|
1006
|
+
Rr();
|
|
1006
1007
|
return;
|
|
1007
1008
|
}
|
|
1008
1009
|
if (a) {
|
|
1009
1010
|
if (R.value === null || z.value === null) return;
|
|
1010
1011
|
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
1011
1012
|
if (!e) return;
|
|
1012
|
-
|
|
1013
|
+
mr({
|
|
1013
1014
|
datapoint: e,
|
|
1014
1015
|
plotIndex: z.value,
|
|
1015
1016
|
seriesIndex: R.value
|
|
@@ -1024,93 +1025,93 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1024
1025
|
seriesIndex: e.seriesIndex,
|
|
1025
1026
|
plotIndex: 0
|
|
1026
1027
|
};
|
|
1027
|
-
} else r ? s =
|
|
1028
|
+
} else r ? s = Hr({
|
|
1028
1029
|
seriesIndex: R.value,
|
|
1029
1030
|
plotIndex: z.value,
|
|
1030
1031
|
direction: "up"
|
|
1031
|
-
}) : i ? s =
|
|
1032
|
+
}) : i ? s = Hr({
|
|
1032
1033
|
seriesIndex: R.value,
|
|
1033
1034
|
plotIndex: z.value,
|
|
1034
1035
|
direction: "down"
|
|
1035
|
-
}) : t ? s =
|
|
1036
|
+
}) : t ? s = Hr({
|
|
1036
1037
|
seriesIndex: R.value,
|
|
1037
1038
|
plotIndex: z.value,
|
|
1038
1039
|
direction: "left"
|
|
1039
|
-
}) : n && (s =
|
|
1040
|
+
}) : n && (s = Hr({
|
|
1040
1041
|
seriesIndex: R.value,
|
|
1041
1042
|
plotIndex: z.value,
|
|
1042
1043
|
direction: "right"
|
|
1043
1044
|
}));
|
|
1044
1045
|
if (!s) return;
|
|
1045
1046
|
let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
|
|
1046
|
-
c &&
|
|
1047
|
+
c && yr({
|
|
1047
1048
|
datapoint: c,
|
|
1048
1049
|
plotIndex: s.plotIndex,
|
|
1049
1050
|
seriesIndex: s.seriesIndex,
|
|
1050
1051
|
triggerMode: "keyboard"
|
|
1051
1052
|
});
|
|
1052
1053
|
}
|
|
1053
|
-
return
|
|
1054
|
-
getData:
|
|
1055
|
-
getImage:
|
|
1056
|
-
generatePdf:
|
|
1057
|
-
generateCsv:
|
|
1058
|
-
generateImage:
|
|
1059
|
-
generateSvg:
|
|
1060
|
-
hideSeries:
|
|
1061
|
-
showSeries:
|
|
1062
|
-
toggleTable:
|
|
1063
|
-
toggleTooltip:
|
|
1064
|
-
toggleAnnotator:
|
|
1065
|
-
toggleFullscreen:
|
|
1066
|
-
copyAlt:
|
|
1067
|
-
}), (e, t) => (
|
|
1068
|
-
id: `history_plot_${
|
|
1054
|
+
return we({
|
|
1055
|
+
getData: Tr,
|
|
1056
|
+
getImage: Er,
|
|
1057
|
+
generatePdf: Dn,
|
|
1058
|
+
generateCsv: br,
|
|
1059
|
+
generateImage: On,
|
|
1060
|
+
generateSvg: Nr,
|
|
1061
|
+
hideSeries: fr,
|
|
1062
|
+
showSeries: dr,
|
|
1063
|
+
toggleTable: Cr,
|
|
1064
|
+
toggleTooltip: wr,
|
|
1065
|
+
toggleAnnotator: Sr,
|
|
1066
|
+
toggleFullscreen: hr,
|
|
1067
|
+
copyAlt: Fr
|
|
1068
|
+
}), (e, t) => (C(), g("div", {
|
|
1069
|
+
id: `history_plot_${P.value}`,
|
|
1069
1070
|
ref_key: "historyPlotChart",
|
|
1070
|
-
ref:
|
|
1071
|
-
class:
|
|
1071
|
+
ref: j,
|
|
1072
|
+
class: b({
|
|
1072
1073
|
"vue-data-ui-component": !0,
|
|
1073
1074
|
"vue-ui-history-plot": !0,
|
|
1074
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1075
|
+
"vue-data-ui-wrapper-fullscreen": I.value
|
|
1075
1076
|
}),
|
|
1076
|
-
style:
|
|
1077
|
-
onMouseenter: t[2] ||= () =>
|
|
1078
|
-
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)
|
|
1079
1080
|
}, [
|
|
1080
|
-
|
|
1081
|
-
id: `chart-instructions-${
|
|
1081
|
+
_("div", {
|
|
1082
|
+
id: `chart-instructions-${P.value}`,
|
|
1082
1083
|
class: "sr-only"
|
|
1083
|
-
}, [
|
|
1084
|
-
|
|
1084
|
+
}, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1085
|
+
Ir.value.body.length ? (C(), m(ke, {
|
|
1085
1086
|
key: 0,
|
|
1086
|
-
uid:
|
|
1087
|
-
head:
|
|
1088
|
-
body:
|
|
1089
|
-
caption:
|
|
1090
|
-
notice:
|
|
1087
|
+
uid: P.value,
|
|
1088
|
+
head: Ir.value.head,
|
|
1089
|
+
body: Ir.value.body,
|
|
1090
|
+
caption: Ir.value.caption,
|
|
1091
|
+
notice: Ir.value.notice
|
|
1091
1092
|
}, null, 8, [
|
|
1092
1093
|
"uid",
|
|
1093
1094
|
"head",
|
|
1094
1095
|
"body",
|
|
1095
1096
|
"caption",
|
|
1096
1097
|
"notice"
|
|
1097
|
-
])) :
|
|
1098
|
-
|
|
1099
|
-
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), {
|
|
1100
1101
|
key: 1,
|
|
1101
|
-
svgRef:
|
|
1102
|
+
svgRef: O(H),
|
|
1102
1103
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1103
1104
|
color: B.value.style.chart.color,
|
|
1104
|
-
active:
|
|
1105
|
+
active: xr.value,
|
|
1105
1106
|
isCursorPointer: V.value,
|
|
1106
|
-
onClose:
|
|
1107
|
+
onClose: Sr
|
|
1107
1108
|
}, {
|
|
1108
|
-
"annotator-action-close":
|
|
1109
|
-
"annotator-action-color":
|
|
1110
|
-
"annotator-action-draw":
|
|
1111
|
-
"annotator-action-undo":
|
|
1112
|
-
"annotator-action-redo":
|
|
1113
|
-
"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)]),
|
|
1114
1115
|
_: 3
|
|
1115
1116
|
}, 8, [
|
|
1116
1117
|
"svgRef",
|
|
@@ -1118,22 +1119,22 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1118
1119
|
"color",
|
|
1119
1120
|
"active",
|
|
1120
1121
|
"isCursorPointer"
|
|
1121
|
-
])) :
|
|
1122
|
-
|
|
1122
|
+
])) : h("", !0),
|
|
1123
|
+
kn.value ? (C(), g("div", {
|
|
1123
1124
|
key: 2,
|
|
1124
1125
|
ref_key: "noTitle",
|
|
1125
|
-
ref:
|
|
1126
|
+
ref: Yt,
|
|
1126
1127
|
class: "vue-data-ui-no-title-space",
|
|
1127
1128
|
style: "height:36px; width: 100%;background:transparent"
|
|
1128
|
-
}, null, 512)) :
|
|
1129
|
-
B.value.style.chart.title.text ? (
|
|
1129
|
+
}, null, 512)) : h("", !0),
|
|
1130
|
+
B.value.style.chart.title.text ? (C(), g("div", {
|
|
1130
1131
|
key: 3,
|
|
1131
1132
|
ref_key: "chartTitle",
|
|
1132
|
-
ref:
|
|
1133
|
+
ref: Ut,
|
|
1133
1134
|
class: "vue-ui-xy-title",
|
|
1134
|
-
style:
|
|
1135
|
-
}, [(
|
|
1136
|
-
key: `title_${
|
|
1135
|
+
style: S(`font-family:${B.value.style.fontFamily}`)
|
|
1136
|
+
}, [(C(), m(Ce, {
|
|
1137
|
+
key: `title_${Wt.value}`,
|
|
1137
1138
|
config: {
|
|
1138
1139
|
title: {
|
|
1139
1140
|
cy: "history-plot-div-title",
|
|
@@ -1144,17 +1145,17 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1144
1145
|
...B.value.style.chart.title.subtitle
|
|
1145
1146
|
}
|
|
1146
1147
|
}
|
|
1147
|
-
}, null, 8, ["config"]))], 4)) :
|
|
1148
|
-
|
|
1149
|
-
B.value.userOptions.show &&
|
|
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), {
|
|
1150
1151
|
ref_key: "userOptionsRef",
|
|
1151
|
-
ref:
|
|
1152
|
-
key: `user_option_${
|
|
1152
|
+
ref: nn,
|
|
1153
|
+
key: `user_option_${Jt.value}`,
|
|
1153
1154
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1154
1155
|
color: B.value.style.chart.color,
|
|
1155
|
-
isPrinting:
|
|
1156
|
-
isImaging:
|
|
1157
|
-
uid:
|
|
1156
|
+
isPrinting: O(Tn),
|
|
1157
|
+
isImaging: O(En),
|
|
1158
|
+
uid: P.value,
|
|
1158
1159
|
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1159
1160
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1160
1161
|
hasImg: B.value.userOptions.buttons.img,
|
|
@@ -1164,31 +1165,31 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1164
1165
|
hasLabel: !1,
|
|
1165
1166
|
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1166
1167
|
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1167
|
-
isFullscreen:
|
|
1168
|
-
chartElement:
|
|
1168
|
+
isFullscreen: I.value,
|
|
1169
|
+
chartElement: j.value,
|
|
1169
1170
|
position: B.value.userOptions.position,
|
|
1170
1171
|
isTooltip: U.value.showTooltip,
|
|
1171
1172
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
1172
1173
|
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1173
|
-
isAnnotation:
|
|
1174
|
+
isAnnotation: xr.value,
|
|
1174
1175
|
callbacks: B.value.userOptions.callbacks,
|
|
1175
1176
|
printScale: B.value.userOptions.print.scale,
|
|
1176
1177
|
tableDialog: B.value.table.useDialog,
|
|
1177
1178
|
isCursorPointer: V.value,
|
|
1178
|
-
onToggleFullscreen:
|
|
1179
|
-
onGeneratePdf:
|
|
1180
|
-
onGenerateCsv:
|
|
1181
|
-
onGenerateImage:
|
|
1182
|
-
onGenerateSvg:
|
|
1183
|
-
onToggleTable:
|
|
1184
|
-
onToggleTooltip:
|
|
1185
|
-
onToggleAnnotator:
|
|
1186
|
-
onCopyAlt:
|
|
1187
|
-
style:
|
|
1179
|
+
onToggleFullscreen: hr,
|
|
1180
|
+
onGeneratePdf: O(Dn),
|
|
1181
|
+
onGenerateCsv: br,
|
|
1182
|
+
onGenerateImage: Pr,
|
|
1183
|
+
onGenerateSvg: Nr,
|
|
1184
|
+
onToggleTable: Cr,
|
|
1185
|
+
onToggleTooltip: wr,
|
|
1186
|
+
onToggleAnnotator: Sr,
|
|
1187
|
+
onCopyAlt: Fr,
|
|
1188
|
+
style: S({ visibility: O(wn) ? O(Sn) ? "visible" : "hidden" : "visible" })
|
|
1188
1189
|
}, Fe({ _: 2 }, [
|
|
1189
1190
|
e.$slots.menuIcon ? {
|
|
1190
1191
|
name: "menuIcon",
|
|
1191
|
-
fn:
|
|
1192
|
+
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
|
|
1192
1193
|
isOpen: t,
|
|
1193
1194
|
color: n
|
|
1194
1195
|
})), void 0, !0)]),
|
|
@@ -1196,37 +1197,37 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1196
1197
|
} : void 0,
|
|
1197
1198
|
e.$slots.optionTooltip ? {
|
|
1198
1199
|
name: "optionTooltip",
|
|
1199
|
-
fn:
|
|
1200
|
+
fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1200
1201
|
key: "1"
|
|
1201
1202
|
} : void 0,
|
|
1202
1203
|
e.$slots.optionPdf ? {
|
|
1203
1204
|
name: "optionPdf",
|
|
1204
|
-
fn:
|
|
1205
|
+
fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1205
1206
|
key: "2"
|
|
1206
1207
|
} : void 0,
|
|
1207
1208
|
e.$slots.optionCsv ? {
|
|
1208
1209
|
name: "optionCsv",
|
|
1209
|
-
fn:
|
|
1210
|
+
fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1210
1211
|
key: "3"
|
|
1211
1212
|
} : void 0,
|
|
1212
1213
|
e.$slots.optionImg ? {
|
|
1213
1214
|
name: "optionImg",
|
|
1214
|
-
fn:
|
|
1215
|
+
fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1215
1216
|
key: "4"
|
|
1216
1217
|
} : void 0,
|
|
1217
1218
|
e.$slots.optionSvg ? {
|
|
1218
1219
|
name: "optionSvg",
|
|
1219
|
-
fn:
|
|
1220
|
+
fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1220
1221
|
key: "5"
|
|
1221
1222
|
} : void 0,
|
|
1222
1223
|
e.$slots.optionTable ? {
|
|
1223
1224
|
name: "optionTable",
|
|
1224
|
-
fn:
|
|
1225
|
+
fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1225
1226
|
key: "6"
|
|
1226
1227
|
} : void 0,
|
|
1227
1228
|
e.$slots.optionFullscreen ? {
|
|
1228
1229
|
name: "optionFullscreen",
|
|
1229
|
-
fn:
|
|
1230
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
|
|
1230
1231
|
toggleFullscreen: t,
|
|
1231
1232
|
isFullscreen: n
|
|
1232
1233
|
})), void 0, !0)]),
|
|
@@ -1234,7 +1235,7 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1234
1235
|
} : void 0,
|
|
1235
1236
|
e.$slots.optionAnnotator ? {
|
|
1236
1237
|
name: "optionAnnotator",
|
|
1237
|
-
fn:
|
|
1238
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
|
|
1238
1239
|
toggleAnnotator: t,
|
|
1239
1240
|
isAnnotator: n
|
|
1240
1241
|
})), void 0, !0)]),
|
|
@@ -1242,89 +1243,99 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1242
1243
|
} : void 0,
|
|
1243
1244
|
e.$slots.optionAltCopy ? {
|
|
1244
1245
|
name: "optionAltCopy",
|
|
1245
|
-
fn:
|
|
1246
|
+
fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
1246
1247
|
key: "9"
|
|
1247
1248
|
} : void 0,
|
|
1248
1249
|
e.$slots["custom-menu-before"] ? {
|
|
1249
1250
|
name: "custom-menu-before",
|
|
1250
|
-
fn:
|
|
1251
|
+
fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1251
1252
|
key: "10"
|
|
1252
1253
|
} : void 0,
|
|
1253
1254
|
e.$slots["custom-menu-after"] ? {
|
|
1254
1255
|
name: "custom-menu-after",
|
|
1255
|
-
fn:
|
|
1256
|
+
fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1256
1257
|
key: "11"
|
|
1257
1258
|
} : void 0
|
|
1258
|
-
]), 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("."))) :
|
|
1259
|
-
|
|
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", {
|
|
1260
1261
|
ref_key: "svgRef",
|
|
1261
1262
|
ref: H,
|
|
1262
|
-
xmlns:
|
|
1263
|
+
xmlns: O(ue),
|
|
1263
1264
|
viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
|
|
1264
|
-
style:
|
|
1265
|
-
"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}`,
|
|
1266
1267
|
tabindex: "0",
|
|
1267
|
-
onFocus:
|
|
1268
|
-
onBlur:
|
|
1269
|
-
onKeydown:
|
|
1268
|
+
onFocus: zr,
|
|
1269
|
+
onBlur: Br,
|
|
1270
|
+
onKeydown: Ur
|
|
1270
1271
|
}, [
|
|
1271
|
-
Le(
|
|
1272
|
-
e.$slots["chart-background"] ? (
|
|
1272
|
+
Le(O(Rt)),
|
|
1273
|
+
e.$slots["chart-background"] ? (C(), g("foreignObject", {
|
|
1273
1274
|
key: 0,
|
|
1274
1275
|
x: G.value.left,
|
|
1275
1276
|
y: G.value.top,
|
|
1276
1277
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1277
1278
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1278
1279
|
style: { pointerEvents: "none" }
|
|
1279
|
-
}, [
|
|
1280
|
-
B.value.style.chart.plots.gradient.show ||
|
|
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
|
-
|
|
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
|
+
t: "radial",
|
|
1283
|
+
key: `gradient_${t}_${P.value}`,
|
|
1284
|
+
id: `gradient_${t}_${P.value}`,
|
|
1285
|
+
fy: "30%",
|
|
1286
|
+
stops: [
|
|
1287
|
+
[
|
|
1288
|
+
"10%",
|
|
1289
|
+
O(r)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
|
|
1290
|
+
1
|
|
1291
|
+
],
|
|
1292
|
+
[
|
|
1293
|
+
"90%",
|
|
1294
|
+
O(o)(e.color, .1),
|
|
1295
|
+
1
|
|
1296
|
+
],
|
|
1297
|
+
[
|
|
1298
|
+
"100%",
|
|
1299
|
+
e.color,
|
|
1300
|
+
1
|
|
1301
|
+
]
|
|
1302
|
+
]
|
|
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
|
+
t: "radial",
|
|
1305
|
+
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
|
|
1306
|
+
id: $n(e, t),
|
|
1307
|
+
fy: "30%",
|
|
1308
|
+
stops: [
|
|
1309
|
+
[
|
|
1310
|
+
"10%",
|
|
1311
|
+
O(r)(X(e, t), B.value.style.chart.plots.gradient.intensity / 100),
|
|
1312
|
+
1
|
|
1313
|
+
],
|
|
1314
|
+
[
|
|
1315
|
+
"90%",
|
|
1316
|
+
O(o)(X(e, t), .1),
|
|
1317
|
+
1
|
|
1318
|
+
],
|
|
1319
|
+
[
|
|
1320
|
+
"100%",
|
|
1321
|
+
X(e, t),
|
|
1322
|
+
1
|
|
1323
|
+
]
|
|
1324
|
+
]
|
|
1325
|
+
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), Kn(e) ? (C(), g("linearGradient", {
|
|
1315
1326
|
key: 1,
|
|
1316
|
-
id: `temperature_grad_history_${e.seriesIndex}_${
|
|
1327
|
+
id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
|
|
1317
1328
|
gradientUnits: "userSpaceOnUse",
|
|
1318
|
-
x1:
|
|
1319
|
-
y1:
|
|
1320
|
-
x2:
|
|
1321
|
-
y2:
|
|
1322
|
-
}, [(
|
|
1323
|
-
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}`,
|
|
1324
1335
|
"stop-color": t,
|
|
1325
|
-
offset: e.temperatureColors.length === 1 ? "0%" :
|
|
1326
|
-
}, null, 8,
|
|
1327
|
-
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", {
|
|
1328
1339
|
x1: e.x,
|
|
1329
1340
|
x2: e.x,
|
|
1330
1341
|
y1: e.y1,
|
|
@@ -1332,8 +1343,8 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1332
1343
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1333
1344
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1334
1345
|
"stroke-linecap": "round"
|
|
1335
|
-
}, null, 8,
|
|
1336
|
-
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", {
|
|
1337
1348
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1338
1349
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1339
1350
|
"stroke-linecap": "round",
|
|
@@ -1341,34 +1352,34 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1341
1352
|
x2: G.value.left,
|
|
1342
1353
|
y1: e.y,
|
|
1343
1354
|
y2: e.y
|
|
1344
|
-
}, null, 8,
|
|
1345
|
-
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", {
|
|
1346
1357
|
key: 4,
|
|
1347
1358
|
ref_key: "yAxisScales",
|
|
1348
|
-
ref:
|
|
1349
|
-
}, [(
|
|
1359
|
+
ref: ln
|
|
1360
|
+
}, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
|
|
1350
1361
|
x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
|
|
1351
1362
|
y: e.y + K.value.yAxisLabels / 3,
|
|
1352
1363
|
fill: B.value.style.chart.axes.y.labels.color,
|
|
1353
1364
|
"font-size": K.value.yAxisLabels,
|
|
1354
1365
|
"text-anchor": "end"
|
|
1355
|
-
},
|
|
1366
|
+
}, D(O(d)(B.value.style.chart.axes.y.labels.formatter, e.value, O(u)({
|
|
1356
1367
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
1357
1368
|
v: e.value,
|
|
1358
1369
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
1359
1370
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
1360
|
-
}))), 9,
|
|
1361
|
-
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", {
|
|
1362
1373
|
key: 5,
|
|
1363
1374
|
ref_key: "yAxisLabel",
|
|
1364
|
-
ref:
|
|
1375
|
+
ref: sn,
|
|
1365
1376
|
transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1366
1377
|
"font-size": K.value.yAxisName,
|
|
1367
1378
|
fill: B.value.style.chart.axes.y.name.color,
|
|
1368
1379
|
"font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1369
1380
|
"text-anchor": "middle"
|
|
1370
|
-
},
|
|
1371
|
-
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", {
|
|
1372
1383
|
x1: e.x1,
|
|
1373
1384
|
x2: e.x2,
|
|
1374
1385
|
y1: e.y,
|
|
@@ -1376,8 +1387,8 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1376
1387
|
stroke: B.value.style.chart.grid.horizontalLines.stroke,
|
|
1377
1388
|
"stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1378
1389
|
"stroke-linecap": "round"
|
|
1379
|
-
}, null, 8,
|
|
1380
|
-
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", {
|
|
1381
1392
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1382
1393
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1383
1394
|
"stroke-linecap": "round",
|
|
@@ -1385,35 +1396,35 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1385
1396
|
x2: e.x,
|
|
1386
1397
|
y1: G.value.bottom,
|
|
1387
1398
|
y2: G.value.bottom + 5
|
|
1388
|
-
}, null, 8,
|
|
1389
|
-
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", {
|
|
1390
1401
|
key: 8,
|
|
1391
1402
|
ref_key: "xAxisScales",
|
|
1392
|
-
ref:
|
|
1393
|
-
}, [(
|
|
1403
|
+
ref: cn
|
|
1404
|
+
}, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
|
|
1394
1405
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
1395
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})`,
|
|
1396
1407
|
fill: B.value.style.chart.axes.x.labels.color,
|
|
1397
1408
|
"font-size": K.value.xAxisLabels,
|
|
1398
1409
|
"text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1399
|
-
},
|
|
1410
|
+
}, D(O(d)(B.value.style.chart.axes.x.labels.formatter, e.value, O(u)({
|
|
1400
1411
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
1401
1412
|
v: e.value,
|
|
1402
1413
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
1403
1414
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
1404
|
-
}))), 9,
|
|
1405
|
-
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", {
|
|
1406
1417
|
key: 9,
|
|
1407
1418
|
ref_key: "xAxisLabel",
|
|
1408
|
-
ref:
|
|
1419
|
+
ref: on,
|
|
1409
1420
|
x: W.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
|
|
1410
1421
|
y: W.value.height,
|
|
1411
1422
|
"font-size": K.value.xAxisName,
|
|
1412
1423
|
fill: B.value.style.chart.axes.x.name.color,
|
|
1413
1424
|
"font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1414
1425
|
"text-anchor": "middle"
|
|
1415
|
-
},
|
|
1416
|
-
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", {
|
|
1417
1428
|
key: 10,
|
|
1418
1429
|
x1: G.value.left,
|
|
1419
1430
|
x2: G.value.left + G.value.width,
|
|
@@ -1422,8 +1433,8 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1422
1433
|
stroke: B.value.style.chart.grid.xAxis.stroke,
|
|
1423
1434
|
"stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
|
|
1424
1435
|
"stroke-linecap": "round"
|
|
1425
|
-
}, null, 8,
|
|
1426
|
-
B.value.style.chart.grid.yAxis.show ? (
|
|
1436
|
+
}, null, 8, ht)) : h("", !0),
|
|
1437
|
+
B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
|
|
1427
1438
|
key: 11,
|
|
1428
1439
|
x1: G.value.left,
|
|
1429
1440
|
x2: G.value.left,
|
|
@@ -1432,49 +1443,49 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1432
1443
|
stroke: B.value.style.chart.grid.yAxis.stroke,
|
|
1433
1444
|
"stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
|
|
1434
1445
|
"stroke-linecap": "round"
|
|
1435
|
-
}, null, 8,
|
|
1436
|
-
(
|
|
1437
|
-
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", {
|
|
1438
1449
|
key: 0,
|
|
1439
|
-
style:
|
|
1440
|
-
}, [
|
|
1450
|
+
style: S({ opacity: ar(e.seriesIndex) })
|
|
1451
|
+
}, [_("path", {
|
|
1441
1452
|
d: e.path,
|
|
1442
1453
|
stroke: B.value.style.chart.backgroundColor,
|
|
1443
1454
|
"stroke-width": B.value.style.chart.paths.strokeWidth + 4,
|
|
1444
1455
|
fill: "none",
|
|
1445
1456
|
"stroke-linecap": "round",
|
|
1446
1457
|
"stroke-linejoin": "round",
|
|
1447
|
-
class:
|
|
1448
|
-
}, null, 10,
|
|
1458
|
+
class: b({ animated: Z() })
|
|
1459
|
+
}, null, 10, _t), _("path", {
|
|
1449
1460
|
d: e.path,
|
|
1450
|
-
stroke:
|
|
1461
|
+
stroke: ir(e),
|
|
1451
1462
|
"stroke-width": B.value.style.chart.paths.strokeWidth,
|
|
1452
1463
|
fill: "none",
|
|
1453
1464
|
"stroke-linecap": "round",
|
|
1454
1465
|
"stroke-linejoin": "round",
|
|
1455
|
-
class:
|
|
1456
|
-
}, null, 10,
|
|
1457
|
-
(
|
|
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", {
|
|
1458
1469
|
cx: e.x,
|
|
1459
1470
|
cy: e.y,
|
|
1460
1471
|
fill: B.value.style.chart.backgroundColor,
|
|
1461
1472
|
r: K.value.plots,
|
|
1462
1473
|
stroke: "none"
|
|
1463
|
-
}, null, 8,
|
|
1464
|
-
(
|
|
1474
|
+
}, null, 8, yt))), 256)),
|
|
1475
|
+
(C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
|
|
1465
1476
|
cx: t.x,
|
|
1466
1477
|
cy: t.y,
|
|
1467
|
-
fill:
|
|
1478
|
+
fill: er(e, t, e.gradientIndex),
|
|
1468
1479
|
r: K.value.plots,
|
|
1469
1480
|
stroke: B.value.style.chart.plots.stroke,
|
|
1470
1481
|
"stroke-width": B.value.style.chart.plots.strokeWidth,
|
|
1471
|
-
class:
|
|
1472
|
-
style:
|
|
1473
|
-
opacity:
|
|
1474
|
-
transition:
|
|
1482
|
+
class: b({ animated: Z() }),
|
|
1483
|
+
style: S({
|
|
1484
|
+
opacity: ar(e.seriesIndex),
|
|
1485
|
+
transition: sr()
|
|
1475
1486
|
})
|
|
1476
|
-
}, null, 14,
|
|
1477
|
-
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", {
|
|
1478
1489
|
key: 1,
|
|
1479
1490
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1480
1491
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
@@ -1482,19 +1493,19 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1482
1493
|
fill: B.value.style.chart.plots.labels.color,
|
|
1483
1494
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1484
1495
|
"text-anchor": "middle",
|
|
1485
|
-
class:
|
|
1486
|
-
style:
|
|
1487
|
-
opacity:
|
|
1488
|
-
transition:
|
|
1496
|
+
class: b({ animated: Z() }),
|
|
1497
|
+
style: S({
|
|
1498
|
+
opacity: ar(e.seriesIndex),
|
|
1499
|
+
transition: sr()
|
|
1489
1500
|
}),
|
|
1490
|
-
innerHTML:
|
|
1501
|
+
innerHTML: O(ne)({
|
|
1491
1502
|
content: String(t.label),
|
|
1492
1503
|
fontSize: K.value.labels,
|
|
1493
1504
|
fill: B.value.style.chart.plots.labels.color,
|
|
1494
1505
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1495
1506
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
|
|
1496
1507
|
})
|
|
1497
|
-
}, null, 14,
|
|
1508
|
+
}, null, 14, Ct)) : (C(), g("text", {
|
|
1498
1509
|
key: 0,
|
|
1499
1510
|
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1500
1511
|
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
@@ -1502,110 +1513,110 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1502
1513
|
fill: B.value.style.chart.plots.labels.color,
|
|
1503
1514
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1504
1515
|
"text-anchor": "middle",
|
|
1505
|
-
class:
|
|
1506
|
-
style:
|
|
1507
|
-
opacity:
|
|
1508
|
-
transition:
|
|
1516
|
+
class: b({ animated: Z() }),
|
|
1517
|
+
style: S({
|
|
1518
|
+
opacity: ar(e.seriesIndex),
|
|
1519
|
+
transition: sr()
|
|
1509
1520
|
})
|
|
1510
|
-
},
|
|
1511
|
-
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", {
|
|
1512
1523
|
x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
|
|
1513
1524
|
y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
|
|
1514
1525
|
"font-size": K.value.indexLabels,
|
|
1515
1526
|
"font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1516
|
-
fill:
|
|
1527
|
+
fill: nr(e, t),
|
|
1517
1528
|
"text-anchor": "middle",
|
|
1518
|
-
class:
|
|
1519
|
-
style:
|
|
1520
|
-
opacity:
|
|
1521
|
-
transition:
|
|
1529
|
+
class: b({ animated: Z() }),
|
|
1530
|
+
style: S({
|
|
1531
|
+
opacity: ar(e.seriesIndex),
|
|
1532
|
+
transition: sr()
|
|
1522
1533
|
})
|
|
1523
|
-
},
|
|
1534
|
+
}, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Tt))), 256))])) : h("", !0)
|
|
1524
1535
|
]))), 128)),
|
|
1525
|
-
(
|
|
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", {
|
|
1526
1537
|
cx: t.x,
|
|
1527
1538
|
cy: t.y,
|
|
1528
1539
|
fill: "transparent",
|
|
1529
1540
|
r: K.value.plots,
|
|
1530
1541
|
stroke: "none",
|
|
1531
|
-
onMouseenter: (r) =>
|
|
1542
|
+
onMouseenter: (r) => yr({
|
|
1532
1543
|
datapoint: t,
|
|
1533
1544
|
plotIndex: n,
|
|
1534
1545
|
seriesIndex: e.seriesIndex,
|
|
1535
1546
|
triggerMode: "pointer"
|
|
1536
1547
|
}),
|
|
1537
|
-
onMouseleave: (r) =>
|
|
1548
|
+
onMouseleave: (r) => _r({
|
|
1538
1549
|
datapoint: t,
|
|
1539
1550
|
plotIndex: n,
|
|
1540
1551
|
seriesIndex: e.seriesIndex
|
|
1541
1552
|
}),
|
|
1542
|
-
onClick: (r) =>
|
|
1553
|
+
onClick: (r) => mr({
|
|
1543
1554
|
datapoint: t,
|
|
1544
1555
|
plotIndex: n,
|
|
1545
1556
|
seriesIndex: e.seriesIndex
|
|
1546
1557
|
})
|
|
1547
|
-
}, null, 40,
|
|
1548
|
-
|
|
1558
|
+
}, null, 40, Et))), 256))]))), 128)),
|
|
1559
|
+
E(e.$slots, "svg", { svg: {
|
|
1549
1560
|
...W.value,
|
|
1550
1561
|
drawingArea: G.value,
|
|
1551
|
-
isPrintingImg:
|
|
1552
|
-
isPrintingSvg:
|
|
1562
|
+
isPrintingImg: O(Tn) || O(En) || rn.value,
|
|
1563
|
+
isPrintingSvg: an.value
|
|
1553
1564
|
} }, void 0, !0)
|
|
1554
|
-
], 44, Qe)), e.$slots.hint ? (
|
|
1565
|
+
], 44, Qe)), e.$slots.hint ? (C(), g("div", Dt, [E(e.$slots, "hint", x(y({
|
|
1555
1566
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1556
|
-
isVisible:
|
|
1557
|
-
})), void 0, !0)])) :
|
|
1558
|
-
e.$slots.watermark ? (
|
|
1559
|
-
|
|
1560
|
-
|
|
1567
|
+
isVisible: fn.value
|
|
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, {
|
|
1561
1572
|
key: 6,
|
|
1562
|
-
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1563
|
-
}, [
|
|
1573
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
1574
|
+
}, [_("div", {
|
|
1564
1575
|
ref_key: "chartLegend",
|
|
1565
|
-
ref:
|
|
1566
|
-
}, [
|
|
1567
|
-
key: `legend_${
|
|
1568
|
-
legendSet:
|
|
1569
|
-
config:
|
|
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
|
+
config: pr.value,
|
|
1570
1581
|
isCursorPointer: V.value,
|
|
1571
1582
|
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1572
|
-
|
|
1583
|
+
lr(e.seriesIndex);
|
|
1573
1584
|
}
|
|
1574
1585
|
}, {
|
|
1575
|
-
item:
|
|
1586
|
+
item: k(({ legend: e, index: t }) => [_("div", {
|
|
1576
1587
|
onClick: (t) => e.segregate(),
|
|
1577
|
-
style:
|
|
1578
|
-
},
|
|
1579
|
-
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, {
|
|
1580
1591
|
key: 0,
|
|
1581
1592
|
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1582
1593
|
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1583
1594
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
1584
|
-
checked:
|
|
1595
|
+
checked: F.value.length > 0,
|
|
1585
1596
|
isCursorPointer: V.value,
|
|
1586
|
-
onToggle:
|
|
1597
|
+
onToggle: cr
|
|
1587
1598
|
}, null, 8, [
|
|
1588
1599
|
"backgroundColor",
|
|
1589
1600
|
"color",
|
|
1590
1601
|
"fontSize",
|
|
1591
1602
|
"checked",
|
|
1592
1603
|
"isCursorPointer"
|
|
1593
|
-
])) :
|
|
1604
|
+
])) : h("", !0)]),
|
|
1594
1605
|
_: 1
|
|
1595
1606
|
}, 8, [
|
|
1596
1607
|
"legendSet",
|
|
1597
1608
|
"config",
|
|
1598
1609
|
"isCursorPointer"
|
|
1599
|
-
])) :
|
|
1600
|
-
e.$slots.source ? (
|
|
1610
|
+
])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
|
|
1611
|
+
e.$slots.source ? (C(), g("div", {
|
|
1601
1612
|
key: 7,
|
|
1602
1613
|
ref_key: "source",
|
|
1603
|
-
ref:
|
|
1614
|
+
ref: $t,
|
|
1604
1615
|
dir: "auto"
|
|
1605
|
-
}, [
|
|
1606
|
-
Le(
|
|
1616
|
+
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1617
|
+
Le(O(Mt), {
|
|
1607
1618
|
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1608
|
-
show: U.value.showTooltip &&
|
|
1619
|
+
show: U.value.showTooltip && Xt.value,
|
|
1609
1620
|
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1610
1621
|
color: B.value.style.chart.tooltip.color,
|
|
1611
1622
|
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
@@ -1616,20 +1627,20 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1616
1627
|
position: B.value.style.chart.tooltip.position,
|
|
1617
1628
|
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1618
1629
|
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1619
|
-
parent:
|
|
1620
|
-
content:
|
|
1621
|
-
isCustom:
|
|
1622
|
-
isFullscreen:
|
|
1630
|
+
parent: j.value,
|
|
1631
|
+
content: Zt.value,
|
|
1632
|
+
isCustom: Qt.value,
|
|
1633
|
+
isFullscreen: I.value,
|
|
1623
1634
|
smooth: B.value.style.chart.tooltip.smooth,
|
|
1624
1635
|
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1625
1636
|
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1626
1637
|
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1627
|
-
isA11yMode:
|
|
1628
|
-
a11yPosition:
|
|
1638
|
+
isA11yMode: dn.value === "keyboard",
|
|
1639
|
+
a11yPosition: un.value
|
|
1629
1640
|
}, {
|
|
1630
|
-
"tooltip-before":
|
|
1631
|
-
tooltip:
|
|
1632
|
-
"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)]),
|
|
1633
1644
|
_: 3
|
|
1634
1645
|
}, 8, [
|
|
1635
1646
|
"teleportTo",
|
|
@@ -1655,30 +1666,30 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1655
1666
|
"isA11yMode",
|
|
1656
1667
|
"a11yPosition"
|
|
1657
1668
|
]),
|
|
1658
|
-
|
|
1669
|
+
pn.value && B.value.userOptions.buttons.table ? (C(), m(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
|
|
1659
1670
|
ref_key: "tableUnit",
|
|
1660
|
-
ref:
|
|
1661
|
-
onClose:
|
|
1671
|
+
ref: tn,
|
|
1672
|
+
onClose: Or
|
|
1662
1673
|
}), Fe({
|
|
1663
|
-
content:
|
|
1664
|
-
key: `table_${
|
|
1674
|
+
content: k(() => [(C(), m(O(Ft), {
|
|
1675
|
+
key: `table_${qt.value}`,
|
|
1665
1676
|
colNames: $.value.colNames,
|
|
1666
1677
|
head: $.value.head,
|
|
1667
1678
|
body: $.value.body,
|
|
1668
1679
|
config: $.value.config,
|
|
1669
|
-
title: B.value.table.useDialog ? "" :
|
|
1680
|
+
title: B.value.table.useDialog ? "" : Dr.value.title,
|
|
1670
1681
|
withCloseButton: !B.value.table.useDialog,
|
|
1671
1682
|
isCursorPointer: V.value,
|
|
1672
|
-
onClose:
|
|
1683
|
+
onClose: Or
|
|
1673
1684
|
}, {
|
|
1674
|
-
th:
|
|
1685
|
+
th: k(({ th: e }) => [_("div", {
|
|
1675
1686
|
innerHTML: e,
|
|
1676
1687
|
style: {
|
|
1677
1688
|
display: "flex",
|
|
1678
1689
|
"align-items": "center"
|
|
1679
1690
|
}
|
|
1680
|
-
}, null, 8,
|
|
1681
|
-
td:
|
|
1691
|
+
}, null, 8, jt)]),
|
|
1692
|
+
td: k(({ td: e }) => [Ie(D(e.name || e), 1)]),
|
|
1682
1693
|
_: 1
|
|
1683
1694
|
}, 8, [
|
|
1684
1695
|
"colNames",
|
|
@@ -1692,24 +1703,24 @@ var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1692
1703
|
_: 2
|
|
1693
1704
|
}, [B.value.table.useDialog ? {
|
|
1694
1705
|
name: "title",
|
|
1695
|
-
fn:
|
|
1706
|
+
fn: k(() => [Ie(D(Dr.value.title), 1)]),
|
|
1696
1707
|
key: "0"
|
|
1697
1708
|
} : void 0, B.value.table.useDialog ? {
|
|
1698
1709
|
name: "actions",
|
|
1699
|
-
fn:
|
|
1710
|
+
fn: k(() => [_("button", {
|
|
1700
1711
|
tabindex: "0",
|
|
1701
1712
|
class: "vue-ui-user-options-button",
|
|
1702
|
-
onClick: t[1] ||= (e) =>
|
|
1703
|
-
style:
|
|
1704
|
-
}, [Le(
|
|
1713
|
+
onClick: t[1] ||= (e) => br(B.value.userOptions.callbacks.csv),
|
|
1714
|
+
style: S({ cursor: V.value ? "pointer" : "default" })
|
|
1715
|
+
}, [Le(O(Nt), {
|
|
1705
1716
|
name: "fileCsv",
|
|
1706
|
-
stroke:
|
|
1717
|
+
stroke: Dr.value.props.color
|
|
1707
1718
|
}, null, 8, ["stroke"])], 4)]),
|
|
1708
1719
|
key: "1"
|
|
1709
|
-
} : void 0]), 1040)) :
|
|
1710
|
-
|
|
1720
|
+
} : void 0]), 1040)) : h("", !0),
|
|
1721
|
+
E(e.$slots, "skeleton", {}, () => [O(yn) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
|
|
1711
1722
|
], 46, Je));
|
|
1712
1723
|
}
|
|
1713
|
-
}, [["__scopeId", "data-v-
|
|
1724
|
+
}, [["__scopeId", "data-v-9751197b"]]);
|
|
1714
1725
|
//#endregion
|
|
1715
|
-
export { qe as n,
|
|
1726
|
+
export { qe as n, Mt as t };
|