vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,150 +1,149 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as De } from "./
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
2
|
+
import { $ as t, D as n, G as r, Gt as i, Jt as a, Kt as o, Ot as s, Pt as c, S as ee, T as te, X as l, Y as ne, _ as re, bt as ie, i as u, jt as ae, pt as oe, q as se, qt as d, r as ce, t as le, tt as ue, w as de, xt as fe, zt as pe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ge } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as be } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as xe } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ce } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Te } from "./img-DIQG5q8T.js";
|
|
13
|
+
import { n as Ee } from "./Title-BODtwViI.js";
|
|
14
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as je } from "./BaseLegendToggle-CtAPwzr2.js";
|
|
18
|
+
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Fe } from "./Legend-CQTRlzK-.js";
|
|
22
|
+
import { t as Ie } from "./vue_ui_history_plot-CuN63VEc.js";
|
|
23
|
+
import { Fragment as f, Teleport as Le, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ve, nextTick as He, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ue, onMounted as We, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as D, toRefs as qe, unref as O, watch as Je, watchEffect as Ye, withCtx as k } from "vue";
|
|
22
24
|
//#region src/components/vue-ui-history-plot.vue
|
|
23
|
-
var
|
|
25
|
+
var Xe = /* @__PURE__ */ e({ default: () => Ft }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
24
26
|
"xmlns",
|
|
25
27
|
"viewBox",
|
|
26
28
|
"aria-describedby"
|
|
27
|
-
],
|
|
29
|
+
], nt = [
|
|
28
30
|
"x",
|
|
29
31
|
"y",
|
|
30
32
|
"width",
|
|
31
33
|
"height"
|
|
32
|
-
],
|
|
34
|
+
], rt = { key: 1 }, it = [
|
|
33
35
|
"id",
|
|
34
36
|
"x1",
|
|
35
37
|
"y1",
|
|
36
38
|
"x2",
|
|
37
39
|
"y2"
|
|
38
|
-
],
|
|
40
|
+
], at = ["stop-color", "offset"], ot = { key: 2 }, st = [
|
|
39
41
|
"x1",
|
|
40
42
|
"x2",
|
|
41
43
|
"y1",
|
|
42
44
|
"y2",
|
|
43
45
|
"stroke",
|
|
44
46
|
"stroke-width"
|
|
45
|
-
],
|
|
47
|
+
], ct = { key: 3 }, lt = [
|
|
46
48
|
"stroke",
|
|
47
49
|
"stroke-width",
|
|
48
50
|
"x1",
|
|
49
51
|
"x2",
|
|
50
52
|
"y1",
|
|
51
53
|
"y2"
|
|
52
|
-
],
|
|
54
|
+
], ut = [
|
|
53
55
|
"x",
|
|
54
56
|
"y",
|
|
55
57
|
"fill",
|
|
56
58
|
"font-size"
|
|
57
|
-
],
|
|
59
|
+
], dt = [
|
|
58
60
|
"transform",
|
|
59
61
|
"font-size",
|
|
60
62
|
"fill",
|
|
61
63
|
"font-weight"
|
|
62
|
-
],
|
|
64
|
+
], ft = { key: 6 }, pt = [
|
|
63
65
|
"x1",
|
|
64
66
|
"x2",
|
|
65
67
|
"y1",
|
|
66
68
|
"y2",
|
|
67
69
|
"stroke",
|
|
68
70
|
"stroke-width"
|
|
69
|
-
],
|
|
71
|
+
], mt = { key: 7 }, ht = [
|
|
70
72
|
"stroke",
|
|
71
73
|
"stroke-width",
|
|
72
74
|
"x1",
|
|
73
75
|
"x2",
|
|
74
76
|
"y1",
|
|
75
77
|
"y2"
|
|
76
|
-
],
|
|
78
|
+
], gt = [
|
|
77
79
|
"transform",
|
|
78
80
|
"fill",
|
|
79
81
|
"font-size",
|
|
80
82
|
"text-anchor"
|
|
81
|
-
],
|
|
83
|
+
], _t = [
|
|
82
84
|
"x",
|
|
83
85
|
"y",
|
|
84
86
|
"font-size",
|
|
85
87
|
"fill",
|
|
86
88
|
"font-weight"
|
|
87
|
-
],
|
|
89
|
+
], vt = [
|
|
88
90
|
"x1",
|
|
89
91
|
"x2",
|
|
90
92
|
"y1",
|
|
91
93
|
"y2",
|
|
92
94
|
"stroke",
|
|
93
95
|
"stroke-width"
|
|
94
|
-
],
|
|
96
|
+
], yt = [
|
|
95
97
|
"x1",
|
|
96
98
|
"x2",
|
|
97
99
|
"y1",
|
|
98
100
|
"y2",
|
|
99
101
|
"stroke",
|
|
100
102
|
"stroke-width"
|
|
101
|
-
],
|
|
103
|
+
], bt = [
|
|
102
104
|
"d",
|
|
103
105
|
"stroke",
|
|
104
106
|
"stroke-width"
|
|
105
|
-
],
|
|
107
|
+
], xt = [
|
|
106
108
|
"d",
|
|
107
109
|
"stroke",
|
|
108
110
|
"stroke-width"
|
|
109
|
-
],
|
|
111
|
+
], St = [
|
|
110
112
|
"cx",
|
|
111
113
|
"cy",
|
|
112
114
|
"fill",
|
|
113
115
|
"r"
|
|
114
|
-
],
|
|
116
|
+
], Ct = [
|
|
115
117
|
"cx",
|
|
116
118
|
"cy",
|
|
117
119
|
"fill",
|
|
118
120
|
"r",
|
|
119
121
|
"stroke",
|
|
120
122
|
"stroke-width"
|
|
121
|
-
],
|
|
122
|
-
"
|
|
123
|
-
"y",
|
|
123
|
+
], wt = { key: 1 }, Tt = [
|
|
124
|
+
"transform",
|
|
124
125
|
"font-size",
|
|
125
126
|
"fill",
|
|
126
127
|
"font-weight"
|
|
127
|
-
],
|
|
128
|
-
"
|
|
129
|
-
"y",
|
|
128
|
+
], Et = [
|
|
129
|
+
"transform",
|
|
130
130
|
"font-size",
|
|
131
131
|
"fill",
|
|
132
132
|
"font-weight",
|
|
133
133
|
"innerHTML"
|
|
134
|
-
],
|
|
135
|
-
"
|
|
136
|
-
"y",
|
|
134
|
+
], Dt = { key: 2 }, Ot = [
|
|
135
|
+
"transform",
|
|
137
136
|
"font-size",
|
|
138
137
|
"font-weight",
|
|
139
138
|
"fill"
|
|
140
|
-
],
|
|
139
|
+
], kt = [
|
|
141
140
|
"cx",
|
|
142
141
|
"cy",
|
|
143
142
|
"r",
|
|
144
143
|
"onMouseenter",
|
|
145
144
|
"onMouseleave",
|
|
146
145
|
"onClick"
|
|
147
|
-
],
|
|
146
|
+
], At = {
|
|
148
147
|
key: 0,
|
|
149
148
|
style: {
|
|
150
149
|
position: "absolute",
|
|
@@ -154,10 +153,10 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
154
153
|
},
|
|
155
154
|
"data-dom-to-png-ignore": "",
|
|
156
155
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
156
|
+
}, jt = {
|
|
158
157
|
key: 5,
|
|
159
158
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
159
|
+
}, Mt = ["id"], Nt = ["onClick"], Pt = ["innerHTML"], Ft = /*#__PURE__*/ De({
|
|
161
160
|
__name: "vue-ui-history-plot",
|
|
162
161
|
props: {
|
|
163
162
|
config: {
|
|
@@ -178,120 +177,137 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
178
177
|
"selectDatapoint",
|
|
179
178
|
"copyAlt"
|
|
180
179
|
],
|
|
181
|
-
setup(e, { expose:
|
|
182
|
-
let
|
|
180
|
+
setup(e, { expose: De, emit: Xe }) {
|
|
181
|
+
let Ft = v(() => import("./Tooltip-CMTGxeYO.js")), It = v(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Lt = v(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Rt = v(() => import("./DataTable-D4tM9s5Y.js")), zt = v(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Bt = v(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Vt = v(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ht = v(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_history_plot: Ut } = ge(), { isThemeValid: Wt, warnInvalidTheme: Gt } = Se(), A = e, j = w(null), Kt = w(null), qt = w(0), Jt = w(null), Yt = w(0), Xt = w(0), Zt = w(0), M = Ke(null), N = Ke(null), Qt = w(null), P = w(se()), $t = w(!1), en = w(""), F = w([]), I = w(!1), L = w(null), tn = w(!1), nn = w(null), rn = w(!1), an = w(null), on = w(null), sn = w(!1), cn = w(!1), ln = w(null), un = w(null), dn = w(null), fn = w(null), R = w(null), z = w(null), pn = w({
|
|
183
182
|
x: 0,
|
|
184
183
|
y: 0
|
|
185
|
-
}),
|
|
184
|
+
}), mn = w("pointer"), hn = w(!1), gn = p({
|
|
186
185
|
get: () => !!A.dataset && A.dataset.length,
|
|
187
186
|
set: (e) => e
|
|
188
|
-
}),
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
}), _n = Xe;
|
|
188
|
+
We(() => {
|
|
189
|
+
rn.value = !0, yn();
|
|
191
190
|
});
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
191
|
+
let vn = p(() => !!B.value.debug);
|
|
192
|
+
function yn() {
|
|
193
|
+
if (ae(A.dataset) ? (ue({
|
|
195
194
|
componentName: "VueUiHistoryPlot",
|
|
196
195
|
type: "dataset",
|
|
197
|
-
debug:
|
|
198
|
-
}),
|
|
196
|
+
debug: vn.value
|
|
197
|
+
}), wn.value = !0) : A.dataset.forEach((e, t) => {
|
|
199
198
|
oe({
|
|
200
199
|
datasetObject: e,
|
|
201
200
|
requiredAttributes: ["name", "values"]
|
|
202
201
|
}).forEach((e) => {
|
|
203
|
-
|
|
202
|
+
gn.value = !1, ue({
|
|
204
203
|
componentName: "VueUiHistoryPlot",
|
|
205
204
|
type: "datasetSerieAttribute",
|
|
206
205
|
property: e,
|
|
207
206
|
index: t,
|
|
208
|
-
debug:
|
|
207
|
+
debug: vn.value
|
|
209
208
|
});
|
|
210
209
|
});
|
|
211
|
-
}),
|
|
212
|
-
let e =
|
|
213
|
-
let { width: e, height: t } =
|
|
210
|
+
}), ae(A.dataset) || (wn.value = B.value.loading), B.value.responsive) {
|
|
211
|
+
let e = Oe(() => {
|
|
212
|
+
let { width: e, height: t } = ke({
|
|
214
213
|
chart: j.value,
|
|
215
|
-
title: B.value.style.chart.title.text ?
|
|
216
|
-
noTitle:
|
|
217
|
-
legend: B.value.style.chart.legend.show ?
|
|
218
|
-
source:
|
|
214
|
+
title: B.value.style.chart.title.text ? Kt.value : null,
|
|
215
|
+
noTitle: Qt.value,
|
|
216
|
+
legend: B.value.style.chart.legend.show ? Jt.value : null,
|
|
217
|
+
source: nn.value
|
|
219
218
|
});
|
|
220
219
|
requestAnimationFrame(() => {
|
|
221
|
-
|
|
220
|
+
G.value.width = e, G.value.height = t, B.value.responsiveProportionalSizing ? (q.value.plots = d({
|
|
222
221
|
relator: Math.min(e, t),
|
|
223
222
|
adjuster: 600,
|
|
224
223
|
source: B.value.style.chart.plots.radius,
|
|
225
224
|
threshold: 3,
|
|
226
225
|
fallback: 3
|
|
227
|
-
}),
|
|
226
|
+
}), q.value.indexLabels = d({
|
|
228
227
|
relator: Math.min(e, t),
|
|
229
228
|
adjuster: 600,
|
|
230
229
|
source: B.value.style.chart.plots.indexLabels.fontSize,
|
|
231
230
|
threshold: 6,
|
|
232
231
|
fallback: 6
|
|
233
|
-
}),
|
|
232
|
+
}), q.value.labels = d({
|
|
234
233
|
relator: Math.min(e, t),
|
|
235
234
|
adjuster: 600,
|
|
236
235
|
source: B.value.style.chart.plots.labels.fontSize,
|
|
237
236
|
threshold: 6,
|
|
238
237
|
fallback: 6
|
|
239
|
-
}),
|
|
238
|
+
}), q.value.xAxisLabels = d({
|
|
240
239
|
relator: Math.min(e, t),
|
|
241
240
|
adjuster: 600,
|
|
242
241
|
source: B.value.style.chart.axes.x.labels.fontSize,
|
|
243
242
|
threshold: 6,
|
|
244
243
|
fallback: 6
|
|
245
|
-
}),
|
|
244
|
+
}), q.value.xAxisName = d({
|
|
246
245
|
relator: Math.min(e, t),
|
|
247
246
|
adjuster: 600,
|
|
248
247
|
source: B.value.style.chart.axes.x.name.fontSize,
|
|
249
248
|
threshold: 6,
|
|
250
249
|
fallback: 6
|
|
251
|
-
}),
|
|
250
|
+
}), q.value.yAxisLabels = d({
|
|
252
251
|
relator: Math.min(e, t),
|
|
253
252
|
adjuster: 600,
|
|
254
253
|
source: B.value.style.chart.axes.y.labels.fontSize,
|
|
255
254
|
threshold: 6,
|
|
256
255
|
fallback: 6
|
|
257
|
-
}),
|
|
256
|
+
}), q.value.yAxisName = d({
|
|
258
257
|
relator: Math.min(e, t),
|
|
259
258
|
adjuster: 600,
|
|
260
259
|
source: B.value.style.chart.axes.y.name.fontSize,
|
|
261
260
|
threshold: 6,
|
|
262
261
|
fallback: 6
|
|
263
|
-
})) : (
|
|
262
|
+
})) : (q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
|
|
264
263
|
});
|
|
265
264
|
});
|
|
266
265
|
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
266
|
}
|
|
268
267
|
}
|
|
269
|
-
|
|
268
|
+
Ue(() => {
|
|
270
269
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
|
|
271
270
|
});
|
|
272
|
-
function
|
|
273
|
-
let e =
|
|
271
|
+
function bn() {
|
|
272
|
+
let e = xe({
|
|
274
273
|
userConfig: A.config,
|
|
275
|
-
defaultConfig:
|
|
274
|
+
defaultConfig: Ut
|
|
276
275
|
}), t = {}, n = e.theme;
|
|
277
|
-
if (n) if (!
|
|
276
|
+
if (n) if (!Wt.value(e)) Gt(e), t = e;
|
|
278
277
|
else {
|
|
279
|
-
let r =
|
|
280
|
-
userConfig:
|
|
278
|
+
let r = xe({
|
|
279
|
+
userConfig: Ie[n] || A.config,
|
|
281
280
|
defaultConfig: e
|
|
282
281
|
});
|
|
283
282
|
t = {
|
|
284
|
-
...
|
|
283
|
+
...xe({
|
|
285
284
|
userConfig: A.config,
|
|
286
285
|
defaultConfig: r
|
|
287
286
|
}),
|
|
288
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
287
|
+
customPalette: e.customPalette.length ? e.customPalette : o[n] || c
|
|
289
288
|
};
|
|
290
289
|
}
|
|
291
290
|
else t = e;
|
|
292
291
|
return t;
|
|
293
292
|
}
|
|
294
|
-
let B = w(
|
|
293
|
+
let B = w(bn());
|
|
294
|
+
me({
|
|
295
|
+
config: () => B.value,
|
|
296
|
+
dataset: () => A.dataset,
|
|
297
|
+
component: "VueUiHistoryPlot",
|
|
298
|
+
rules: [he.emptyArray, {
|
|
299
|
+
test: (e) => e.length > 6,
|
|
300
|
+
message: [
|
|
301
|
+
"👀 The number of series is > 6. Consider:",
|
|
302
|
+
"",
|
|
303
|
+
"▶️ Using filters to let users choose a maximum number of series to display."
|
|
304
|
+
]
|
|
305
|
+
}]
|
|
306
|
+
});
|
|
307
|
+
let { transitionEnabled: V } = Ce({
|
|
308
|
+
config: () => B.value.transitions,
|
|
309
|
+
dataset: () => A.dataset
|
|
310
|
+
}), H = p(() => B.value.userOptions.useCursorPointer), xn = p(() => a({
|
|
295
311
|
defaultConfig: {
|
|
296
312
|
userOptions: { show: !1 },
|
|
297
313
|
table: { show: !1 },
|
|
@@ -330,10 +346,10 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
330
346
|
} }
|
|
331
347
|
},
|
|
332
348
|
userConfig: B.value.skeletonConfig ?? {}
|
|
333
|
-
})), { loading:
|
|
334
|
-
...
|
|
349
|
+
})), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = ve({
|
|
350
|
+
...qe(A),
|
|
335
351
|
FINAL_CONFIG: B,
|
|
336
|
-
prepareConfig:
|
|
352
|
+
prepareConfig: bn,
|
|
337
353
|
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
338
354
|
name: "",
|
|
339
355
|
color: "#CACACA",
|
|
@@ -360,70 +376,70 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
360
376
|
}
|
|
361
377
|
]
|
|
362
378
|
}],
|
|
363
|
-
skeletonConfig:
|
|
379
|
+
skeletonConfig: a({
|
|
364
380
|
defaultConfig: B.value,
|
|
365
|
-
userConfig:
|
|
381
|
+
userConfig: xn.value
|
|
366
382
|
})
|
|
367
|
-
}), { userOptionsVisible:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}, { deep: !0 }),
|
|
371
|
-
Array.isArray(e) && e.length > 0 && (
|
|
383
|
+
}), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = Ne({ config: B.value }), { svgRef: U } = Pe({ config: B.value.style.chart.title });
|
|
384
|
+
Je(() => A.config, (e) => {
|
|
385
|
+
Sn.value || (B.value = bn()), Tn.value = !B.value.userOptions.showOnChartHover, yn(), qt.value += 1, Xt.value += 1, Yt.value += 1, G.value.height = B.value.style.chart.height, G.value.width = B.value.style.chart.width, q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, W.value.showTable = B.value.table.show, W.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
386
|
+
}, { deep: !0 }), Je(() => A.dataset, (e) => {
|
|
387
|
+
Array.isArray(e) && e.length > 0 && (wn.value = !1);
|
|
372
388
|
}, { deep: !0 });
|
|
373
|
-
let { isPrinting:
|
|
389
|
+
let { isPrinting: On, isImaging: kn, generatePdf: An, generateImage: jn } = _e({
|
|
374
390
|
elementId: `history_plot_${P.value}`,
|
|
375
391
|
fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
|
|
376
392
|
options: B.value.userOptions.print
|
|
377
|
-
}),
|
|
393
|
+
}), Mn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), Nn = p(() => de(B.value.customPalette)), W = w({
|
|
378
394
|
showTable: B.value.table.show,
|
|
379
395
|
showTooltip: B.value.style.chart.tooltip.show
|
|
380
396
|
});
|
|
381
|
-
|
|
382
|
-
|
|
397
|
+
Je(B, () => {
|
|
398
|
+
W.value = {
|
|
383
399
|
showTable: B.value.table.show,
|
|
384
400
|
showTooltip: B.value.style.chart.tooltip.show
|
|
385
401
|
};
|
|
386
402
|
}, { immediate: !0 });
|
|
387
|
-
let
|
|
403
|
+
let G = w({
|
|
388
404
|
height: B.value.style.chart.height,
|
|
389
405
|
width: B.value.style.chart.width
|
|
390
|
-
}),
|
|
391
|
-
function
|
|
406
|
+
}), Pn = p(() => G.value.width), Fn = p(() => G.value.height);
|
|
407
|
+
function In() {
|
|
392
408
|
let e = 0;
|
|
393
|
-
|
|
409
|
+
fn.value && (e = Array.from(fn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
394
410
|
let n = t.getComputedTextLength();
|
|
395
411
|
return n > e ? n : e;
|
|
396
412
|
}, 0));
|
|
397
|
-
let t =
|
|
413
|
+
let t = un.value ? un.value.getBoundingClientRect().width : 0;
|
|
398
414
|
return e + t + (t ? 24 : 0);
|
|
399
415
|
}
|
|
400
|
-
let
|
|
401
|
-
|
|
416
|
+
let Ln = w(0), Rn = Oe((e) => {
|
|
417
|
+
Ln.value = e;
|
|
402
418
|
});
|
|
403
|
-
|
|
404
|
-
let t =
|
|
419
|
+
Ye((e) => {
|
|
420
|
+
let t = dn.value;
|
|
405
421
|
if (!t) return;
|
|
406
422
|
let n = new ResizeObserver((e) => {
|
|
407
|
-
|
|
423
|
+
Rn(e[0].contentRect.height);
|
|
408
424
|
});
|
|
409
425
|
n.observe(t), e(() => n.disconnect());
|
|
410
426
|
});
|
|
411
|
-
let
|
|
427
|
+
let zn = p(() => {
|
|
412
428
|
let e = 0;
|
|
413
|
-
|
|
429
|
+
ln.value && (e = ln.value.getBBox().height + q.value.xAxisName / 2);
|
|
414
430
|
let t = 0;
|
|
415
|
-
return
|
|
416
|
-
}),
|
|
417
|
-
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n =
|
|
431
|
+
return dn.value && (t = Ln.value), e + t;
|
|
432
|
+
}), K = p(() => {
|
|
433
|
+
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = In(), r = B.value.style.chart.plots.radius;
|
|
418
434
|
return {
|
|
419
435
|
left: e + n + B.value.style.chart.axes.y.name.offsetX,
|
|
420
436
|
top: t + r,
|
|
421
|
-
right:
|
|
422
|
-
bottom:
|
|
423
|
-
width:
|
|
424
|
-
height:
|
|
437
|
+
right: G.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
|
|
438
|
+
bottom: G.value.height - B.value.style.chart.padding.bottom - zn.value - r - B.value.style.chart.axes.x.name.offsetY,
|
|
439
|
+
width: G.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
|
|
440
|
+
height: G.value.height - t - B.value.style.chart.padding.bottom - zn.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
|
|
425
441
|
};
|
|
426
|
-
}),
|
|
442
|
+
}), q = w({
|
|
427
443
|
plots: B.value.style.chart.plots.radius,
|
|
428
444
|
indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
|
|
429
445
|
labels: B.value.style.chart.plots.labels.fontSize,
|
|
@@ -431,90 +447,90 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
431
447
|
xAxisName: B.value.style.chart.axes.x.name.fontSize,
|
|
432
448
|
yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
|
|
433
449
|
yAxisName: B.value.style.chart.axes.y.name.fontSize
|
|
434
|
-
}),
|
|
435
|
-
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) =>
|
|
450
|
+
}), J = p(() => Cn.value.map((e, t) => {
|
|
451
|
+
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => ee(e)) : void 0;
|
|
436
452
|
return {
|
|
437
453
|
...e,
|
|
438
|
-
color: e.color ?
|
|
454
|
+
color: e.color ? ee(e.color) : Nn.value[t] || c[t] || c[t % c.length],
|
|
439
455
|
temperatureColors: n,
|
|
440
|
-
temperatureAngle:
|
|
456
|
+
temperatureAngle: Bn(e.temperatureAngle),
|
|
441
457
|
temperatureIndependant: e.temperatureIndependant === !0,
|
|
442
458
|
usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
|
|
443
459
|
seriesIndex: t
|
|
444
460
|
};
|
|
445
461
|
}));
|
|
446
|
-
function
|
|
462
|
+
function Bn(e = 0) {
|
|
447
463
|
let t = Number(e);
|
|
448
464
|
return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
|
|
449
465
|
}
|
|
450
|
-
let
|
|
451
|
-
let e = Math.min(...
|
|
466
|
+
let Vn = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Hn = p(() => {
|
|
467
|
+
let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
|
|
452
468
|
return e < 0 ? e : 0;
|
|
453
|
-
}),
|
|
454
|
-
let e = Math.min(...
|
|
469
|
+
}), Un = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Wn = p(() => {
|
|
470
|
+
let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
|
|
455
471
|
return e < 0 ? e : 0;
|
|
456
|
-
}),
|
|
457
|
-
let e =
|
|
472
|
+
}), Y = p(() => {
|
|
473
|
+
let e = re(B.value.style.chart.axes.x.scaleMin ?? Hn.value, B.value.style.chart.axes.x.scaleMax ?? Vn.value, B.value.style.chart.axes.x.ticks), t = re(B.value.style.chart.axes.y.scaleMin ?? Wn.value, B.value.style.chart.axes.y.scaleMax ?? Un.value, B.value.style.chart.axes.y.ticks);
|
|
458
474
|
return {
|
|
459
475
|
x: e,
|
|
460
476
|
y: t,
|
|
461
477
|
tickX: e.ticks.map((t) => ({
|
|
462
|
-
x:
|
|
463
|
-
y1:
|
|
464
|
-
y2:
|
|
478
|
+
x: K.value.left + (t - e.min) / (e.max - e.min) * K.value.width,
|
|
479
|
+
y1: K.value.top,
|
|
480
|
+
y2: K.value.bottom,
|
|
465
481
|
value: t
|
|
466
482
|
})),
|
|
467
483
|
tickY: t.ticks.map((e) => ({
|
|
468
|
-
y:
|
|
469
|
-
x1:
|
|
470
|
-
x2:
|
|
484
|
+
y: K.value.bottom - (e - t.min) / (t.max - t.min) * K.value.height,
|
|
485
|
+
x1: K.value.left,
|
|
486
|
+
x2: K.value.right,
|
|
471
487
|
value: e
|
|
472
488
|
}))
|
|
473
489
|
};
|
|
474
490
|
});
|
|
475
|
-
function
|
|
476
|
-
let t =
|
|
477
|
-
return
|
|
491
|
+
function Gn(e) {
|
|
492
|
+
let t = Y.value.x.min < 0 ? Math.abs(Y.value.x.min) : Y.value.x.min > 0 ? -Y.value.x.min : 0;
|
|
493
|
+
return K.value.left + ((e || 0) + t) / (Y.value.x.max + t) * K.value.width;
|
|
478
494
|
}
|
|
479
|
-
function
|
|
480
|
-
let t =
|
|
481
|
-
return
|
|
495
|
+
function Kn(e) {
|
|
496
|
+
let t = Y.value.y.min < 0 ? Math.abs(Y.value.y.min) : Y.value.y.min > 0 ? -Y.value.y.min : 0;
|
|
497
|
+
return K.value.bottom - ((e || 0) + t) / (Y.value.y.max + t) * K.value.height;
|
|
482
498
|
}
|
|
483
|
-
let
|
|
499
|
+
let X = p(() => J.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, t) => {
|
|
484
500
|
let n = e.values.map((t, n) => ({
|
|
485
501
|
valueX: t.x,
|
|
486
502
|
valueY: t.y,
|
|
487
503
|
label: t.label,
|
|
488
|
-
x:
|
|
489
|
-
y:
|
|
504
|
+
x: Gn(t.x),
|
|
505
|
+
y: Kn(t.y),
|
|
490
506
|
color: e.color,
|
|
491
507
|
seriesName: e.name,
|
|
492
|
-
id:
|
|
493
|
-
})), r = e.smooth ?
|
|
508
|
+
id: se()
|
|
509
|
+
})), r = e.smooth ? te(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
|
|
494
510
|
return {
|
|
495
511
|
...e,
|
|
496
512
|
gradientIndex: t,
|
|
497
513
|
plots: n,
|
|
498
514
|
path: `M${r}`
|
|
499
515
|
};
|
|
500
|
-
})),
|
|
501
|
-
if (L.value === null || R.value === null) return
|
|
502
|
-
let e =
|
|
503
|
-
if (e === -1) return
|
|
504
|
-
let t =
|
|
516
|
+
})), qn = p(() => {
|
|
517
|
+
if (L.value === null || R.value === null) return X.value;
|
|
518
|
+
let e = X.value.findIndex((e) => e.seriesIndex === R.value);
|
|
519
|
+
if (e === -1) return X.value;
|
|
520
|
+
let t = X.value[e];
|
|
505
521
|
return [
|
|
506
|
-
...
|
|
507
|
-
...
|
|
522
|
+
...X.value.slice(0, e),
|
|
523
|
+
...X.value.slice(e + 1),
|
|
508
524
|
t
|
|
509
525
|
];
|
|
510
|
-
}),
|
|
511
|
-
function
|
|
526
|
+
}), Jn = p(() => X.value.some((e) => Z(e)));
|
|
527
|
+
function Z(e) {
|
|
512
528
|
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
513
529
|
}
|
|
514
|
-
function
|
|
515
|
-
return
|
|
530
|
+
function Yn(e) {
|
|
531
|
+
return Z(e) && e.usePlotTemperatureColors;
|
|
516
532
|
}
|
|
517
|
-
function
|
|
533
|
+
function Xn(e) {
|
|
518
534
|
let t = Array.isArray(e?.plots) ? e.plots : [];
|
|
519
535
|
if (!t.length) return {
|
|
520
536
|
minX: 0,
|
|
@@ -534,8 +550,8 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
534
550
|
height: s - o
|
|
535
551
|
};
|
|
536
552
|
}
|
|
537
|
-
function
|
|
538
|
-
let e =
|
|
553
|
+
function Zn() {
|
|
554
|
+
let e = K.value;
|
|
539
555
|
return {
|
|
540
556
|
minX: e.left,
|
|
541
557
|
maxX: e.right,
|
|
@@ -545,11 +561,11 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
545
561
|
height: e.height
|
|
546
562
|
};
|
|
547
563
|
}
|
|
548
|
-
function
|
|
549
|
-
return e?.temperatureIndependant ?
|
|
564
|
+
function Qn(e) {
|
|
565
|
+
return e?.temperatureIndependant ? Xn(e) : Zn();
|
|
550
566
|
}
|
|
551
|
-
function
|
|
552
|
-
let t =
|
|
567
|
+
function $n(e) {
|
|
568
|
+
let t = Bn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Qn(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
569
|
return {
|
|
554
570
|
x1: a - n * s,
|
|
555
571
|
y1: o - r * s,
|
|
@@ -557,78 +573,72 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
557
573
|
y2: o + r * s
|
|
558
574
|
};
|
|
559
575
|
}
|
|
560
|
-
function
|
|
561
|
-
let { x1: n, y1: r, x2: i, y2: a } =
|
|
576
|
+
function er(e, t) {
|
|
577
|
+
let { x1: n, y1: r, x2: i, y2: a } = $n(e), o = i - n, s = a - r, c = o * o + s * s;
|
|
562
578
|
if (!c) return 0;
|
|
563
|
-
let
|
|
564
|
-
return Math.min(1, Math.max(0,
|
|
579
|
+
let ee = ((t.x - n) * o + (t.y - r) * s) / c;
|
|
580
|
+
return Math.min(1, Math.max(0, ee));
|
|
565
581
|
}
|
|
566
|
-
function
|
|
567
|
-
return
|
|
582
|
+
function Q(e, t) {
|
|
583
|
+
return ie({
|
|
568
584
|
colors: e.temperatureColors,
|
|
569
|
-
ratio:
|
|
585
|
+
ratio: er(e, t)
|
|
570
586
|
});
|
|
571
587
|
}
|
|
572
|
-
function
|
|
588
|
+
function tr(e, t) {
|
|
573
589
|
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
|
|
574
590
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
591
|
+
function nr(e, t, n) {
|
|
592
|
+
return Yn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${tr(e, t)})` : Q(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
|
|
577
593
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
594
|
+
function rr(e, t) {
|
|
595
|
+
return Yn(e) ? Q(e, t) : e.color;
|
|
580
596
|
}
|
|
581
|
-
function
|
|
582
|
-
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ?
|
|
597
|
+
function ir(e, t) {
|
|
598
|
+
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? ce(rr(e, t)) : B.value.style.chart.plots.indexLabels.color;
|
|
583
599
|
}
|
|
584
|
-
function
|
|
585
|
-
let n =
|
|
586
|
-
return n &&
|
|
600
|
+
function ar(e, t) {
|
|
601
|
+
let n = X.value.find((t) => t.seriesIndex === e);
|
|
602
|
+
return n && Yn(n) ? Q(n, t) : t.color;
|
|
587
603
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
604
|
+
function or(e) {
|
|
605
|
+
return Z(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
|
|
590
606
|
}
|
|
591
|
-
function
|
|
607
|
+
function sr(e) {
|
|
592
608
|
return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
|
|
593
609
|
}
|
|
594
610
|
p(() => L.value !== null && R.value !== null);
|
|
595
|
-
let
|
|
596
|
-
function
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
function sr() {
|
|
600
|
-
return "opacity 0.2s ease-in-out";
|
|
601
|
-
}
|
|
602
|
-
function cr() {
|
|
603
|
-
F.value.length ? F.value = [] : Q.value.forEach((e) => {
|
|
611
|
+
let cr = w(!1);
|
|
612
|
+
function lr() {
|
|
613
|
+
F.value.length ? F.value = [] : mr.value.forEach((e) => {
|
|
604
614
|
F.value.push(e.seriesIndex);
|
|
605
|
-
}),
|
|
606
|
-
}
|
|
607
|
-
function lr(e) {
|
|
608
|
-
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), mn("selectLegend", Y.value);
|
|
615
|
+
}), _n("selectLegend", X.value);
|
|
609
616
|
}
|
|
610
617
|
function ur(e) {
|
|
611
|
-
|
|
618
|
+
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), _n("selectLegend", X.value);
|
|
612
619
|
}
|
|
613
620
|
function dr(e) {
|
|
614
|
-
|
|
615
|
-
t !== null && F.value.includes(t.seriesIndex) && lr(t.seriesIndex);
|
|
621
|
+
return J.value.length ? J.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);
|
|
616
622
|
}
|
|
617
623
|
function fr(e) {
|
|
618
|
-
let t =
|
|
619
|
-
t !== null &&
|
|
624
|
+
let t = dr(e);
|
|
625
|
+
t !== null && F.value.includes(t.seriesIndex) && ur(t.seriesIndex);
|
|
620
626
|
}
|
|
621
|
-
|
|
622
|
-
let t =
|
|
627
|
+
function pr(e) {
|
|
628
|
+
let t = dr(e);
|
|
629
|
+
t !== null && (F.value.includes(t.seriesIndex) || ur(t.seriesIndex));
|
|
630
|
+
}
|
|
631
|
+
let mr = p(() => J.value.map((e) => {
|
|
632
|
+
let t = Z(e) ? e.temperatureColors : null;
|
|
623
633
|
return {
|
|
624
634
|
...e,
|
|
625
635
|
gradientColors: t,
|
|
626
636
|
opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
|
|
627
|
-
segregate: () =>
|
|
637
|
+
segregate: () => ur(e.seriesIndex),
|
|
628
638
|
isSegregated: F.value.includes(e.seriesIndex),
|
|
629
639
|
shape: t ? "gradient" : "circle"
|
|
630
640
|
};
|
|
631
|
-
})),
|
|
641
|
+
})), hr = p(() => ({
|
|
632
642
|
cy: "history-plot-div-legend",
|
|
633
643
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
634
644
|
color: B.value.style.chart.legend.color,
|
|
@@ -636,7 +646,7 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
636
646
|
paddingBottom: 12,
|
|
637
647
|
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
638
648
|
}));
|
|
639
|
-
function
|
|
649
|
+
function gr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
640
650
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
641
651
|
datapoint: {
|
|
642
652
|
...e,
|
|
@@ -644,13 +654,13 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
644
654
|
seriesIndex: n
|
|
645
655
|
},
|
|
646
656
|
seriesIndex: n
|
|
647
|
-
}),
|
|
657
|
+
}), _n("selectDatapoint", e);
|
|
648
658
|
}
|
|
649
|
-
function
|
|
650
|
-
I.value = e,
|
|
659
|
+
function _r(e) {
|
|
660
|
+
I.value = e, Zt.value += 1;
|
|
651
661
|
}
|
|
652
|
-
let
|
|
653
|
-
function
|
|
662
|
+
let vr = w(null);
|
|
663
|
+
function yr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
654
664
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
655
665
|
datapoint: {
|
|
656
666
|
...e,
|
|
@@ -658,18 +668,18 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
658
668
|
seriesIndex: n
|
|
659
669
|
},
|
|
660
670
|
seriesIndex: n
|
|
661
|
-
}), !(
|
|
671
|
+
}), !(mn.value === "keyboard" && R.value === n && z.value === t) && ($t.value = !1, L.value = null);
|
|
662
672
|
}
|
|
663
|
-
function
|
|
664
|
-
if (!
|
|
665
|
-
let n =
|
|
673
|
+
function br(e, t) {
|
|
674
|
+
if (!U.value) return;
|
|
675
|
+
let n = X.value.find((t) => t.seriesIndex === e);
|
|
666
676
|
if (!n) return;
|
|
667
677
|
let r = n.plots[t];
|
|
668
678
|
if (!r) return;
|
|
669
|
-
let
|
|
670
|
-
|
|
679
|
+
let a = i(r.x, r.y, U.value);
|
|
680
|
+
a && (pn.value = a);
|
|
671
681
|
}
|
|
672
|
-
function
|
|
682
|
+
function xr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
673
683
|
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
674
684
|
datapoint: {
|
|
675
685
|
...e,
|
|
@@ -677,52 +687,52 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
677
687
|
seriesIndex: n
|
|
678
688
|
},
|
|
679
689
|
seriesIndex: n
|
|
680
|
-
}), R.value = n, z.value = t,
|
|
681
|
-
let i =
|
|
690
|
+
}), R.value = n, z.value = t, mn.value = r, cr.value = !0;
|
|
691
|
+
let i = ar(n, e), a = {
|
|
682
692
|
...e,
|
|
683
693
|
color: i
|
|
684
694
|
};
|
|
685
|
-
|
|
695
|
+
vr.value = {
|
|
686
696
|
datapoint: a,
|
|
687
697
|
color: i,
|
|
688
698
|
seriesIndex: n,
|
|
689
699
|
plotIndex: t,
|
|
690
700
|
config: B.value,
|
|
691
|
-
series:
|
|
701
|
+
series: J.value
|
|
692
702
|
}, L.value = e;
|
|
693
703
|
let o = B.value.style.chart.tooltip.customFormat;
|
|
694
|
-
if (
|
|
704
|
+
if (tn.value = !1, fe(o)) try {
|
|
695
705
|
let e = o({
|
|
696
706
|
seriesIndex: n,
|
|
697
707
|
datapoint: a,
|
|
698
708
|
color: i,
|
|
699
709
|
plotIndex: t,
|
|
700
|
-
series:
|
|
710
|
+
series: J.value,
|
|
701
711
|
config: B.value
|
|
702
712
|
});
|
|
703
|
-
typeof e == "string" && (
|
|
713
|
+
typeof e == "string" && (en.value = e, tn.value = !0);
|
|
704
714
|
} catch {
|
|
705
|
-
console.warn("Custom format cannot be applied."),
|
|
715
|
+
console.warn("Custom format cannot be applied."), tn.value = !1;
|
|
706
716
|
}
|
|
707
|
-
if (!
|
|
717
|
+
if (!tn.value) {
|
|
708
718
|
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"}: ${
|
|
719
|
+
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"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
|
|
710
720
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
711
721
|
v: e.valueX,
|
|
712
722
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
713
723
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
714
|
-
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${
|
|
724
|
+
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
|
|
715
725
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
716
726
|
v: e.valueY,
|
|
717
727
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
718
728
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
719
|
-
}))}</div>`,
|
|
729
|
+
}))}</div>`, en.value = `<div>${t}</div>`;
|
|
720
730
|
}
|
|
721
|
-
|
|
722
|
-
|
|
731
|
+
$t.value = !0, r === "keyboard" && He(() => {
|
|
732
|
+
br(n, t);
|
|
723
733
|
});
|
|
724
734
|
}
|
|
725
|
-
p(() => ({ head:
|
|
735
|
+
p(() => ({ head: X.value.map((e) => ({
|
|
726
736
|
name: e.name,
|
|
727
737
|
color: e.color
|
|
728
738
|
})) }));
|
|
@@ -735,19 +745,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
735
745
|
];
|
|
736
746
|
return {
|
|
737
747
|
head: e,
|
|
738
|
-
body:
|
|
748
|
+
body: X.value.flatMap((e) => e.plots.map((e) => [
|
|
739
749
|
{
|
|
740
750
|
color: e.color,
|
|
741
751
|
name: e.seriesName
|
|
742
752
|
},
|
|
743
753
|
e.label,
|
|
744
|
-
|
|
754
|
+
u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
|
|
745
755
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
746
756
|
v: e.valueX,
|
|
747
757
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
748
758
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
749
759
|
})),
|
|
750
|
-
|
|
760
|
+
u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
|
|
751
761
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
752
762
|
v: e.valueY,
|
|
753
763
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
@@ -770,45 +780,45 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
770
780
|
colNames: e
|
|
771
781
|
};
|
|
772
782
|
});
|
|
773
|
-
function
|
|
774
|
-
|
|
775
|
-
let
|
|
783
|
+
function Sr(e = null) {
|
|
784
|
+
He(() => {
|
|
785
|
+
let r = [
|
|
776
786
|
[B.value.table.columnNames.series],
|
|
777
787
|
[B.value.table.columnNames.datapoint],
|
|
778
788
|
[B.value.table.columnNames.x],
|
|
779
789
|
[B.value.table.columnNames.y]
|
|
780
|
-
],
|
|
790
|
+
], i = X.value.flatMap((e) => e.plots.map((e) => [
|
|
781
791
|
[e.seriesName],
|
|
782
792
|
[e.label],
|
|
783
793
|
[e.valueX],
|
|
784
794
|
[e.valueY]
|
|
785
|
-
])),
|
|
795
|
+
])), a = n([
|
|
786
796
|
[B.value.style.chart.title.text],
|
|
787
797
|
[B.value.style.chart.title.subtitle.text],
|
|
788
|
-
|
|
789
|
-
].concat(
|
|
790
|
-
e ? e(
|
|
791
|
-
csvContent:
|
|
798
|
+
r
|
|
799
|
+
].concat(i));
|
|
800
|
+
e ? e(a) : t({
|
|
801
|
+
csvContent: a,
|
|
792
802
|
title: B.value.style.chart.title.text || "vue-ui-history-plot"
|
|
793
803
|
});
|
|
794
804
|
});
|
|
795
805
|
}
|
|
796
|
-
let
|
|
797
|
-
function Sr() {
|
|
798
|
-
xr.value = !xr.value;
|
|
799
|
-
}
|
|
800
|
-
function Cr() {
|
|
801
|
-
U.value.showTable = !U.value.showTable;
|
|
802
|
-
}
|
|
806
|
+
let Cr = w(!1);
|
|
803
807
|
function wr() {
|
|
804
|
-
|
|
808
|
+
Cr.value = !Cr.value;
|
|
805
809
|
}
|
|
806
810
|
function Tr() {
|
|
807
|
-
|
|
811
|
+
W.value.showTable = !W.value.showTable;
|
|
808
812
|
}
|
|
809
|
-
|
|
813
|
+
function Er() {
|
|
814
|
+
W.value.showTooltip = !W.value.showTooltip;
|
|
815
|
+
}
|
|
816
|
+
function Dr() {
|
|
817
|
+
return X.value;
|
|
818
|
+
}
|
|
819
|
+
async function Or({ scale: e = 2 } = {}) {
|
|
810
820
|
if (!j.value) return;
|
|
811
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
821
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
|
|
812
822
|
domElement: j.value,
|
|
813
823
|
base64: !0,
|
|
814
824
|
img: !0,
|
|
@@ -823,12 +833,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
823
833
|
aspectRatio: r
|
|
824
834
|
};
|
|
825
835
|
}
|
|
826
|
-
|
|
827
|
-
timeLabelsEls:
|
|
828
|
-
timeLabels: p(() =>
|
|
836
|
+
we({
|
|
837
|
+
timeLabelsEls: dn,
|
|
838
|
+
timeLabels: p(() => Y.value.tickX),
|
|
829
839
|
slicer: p(() => ({
|
|
830
840
|
start: 0,
|
|
831
|
-
end:
|
|
841
|
+
end: Y.value.tickX.length
|
|
832
842
|
})),
|
|
833
843
|
configRef: B,
|
|
834
844
|
rotationPath: [
|
|
@@ -849,15 +859,15 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
849
859
|
"enable"
|
|
850
860
|
],
|
|
851
861
|
isAutoSize: !1,
|
|
852
|
-
width:
|
|
853
|
-
height:
|
|
862
|
+
width: Pn,
|
|
863
|
+
height: Fn,
|
|
854
864
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
855
865
|
rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
|
|
856
866
|
});
|
|
857
|
-
let
|
|
858
|
-
let e = B.value.table.useDialog && !B.value.table.show, t =
|
|
867
|
+
let kr = p(() => {
|
|
868
|
+
let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
|
|
859
869
|
return {
|
|
860
|
-
component: e ?
|
|
870
|
+
component: e ? Ht : Lt,
|
|
861
871
|
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
862
872
|
props: e ? {
|
|
863
873
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
@@ -884,60 +894,60 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
884
894
|
}
|
|
885
895
|
};
|
|
886
896
|
});
|
|
887
|
-
|
|
888
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
897
|
+
Je(() => W.value.showTable, (e) => {
|
|
898
|
+
B.value.table.show || (e && B.value.table.useDialog && an.value ? an.value.open() : "close" in an.value && an.value.close());
|
|
889
899
|
});
|
|
890
|
-
function
|
|
891
|
-
|
|
900
|
+
function Ar() {
|
|
901
|
+
W.value.showTable = !1, on.value && on.value.setTableIconState(!1);
|
|
892
902
|
}
|
|
893
|
-
let
|
|
894
|
-
svg:
|
|
903
|
+
let jr = p(() => B.value.style.chart.backgroundColor), Mr = p(() => B.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = be({
|
|
904
|
+
svg: U,
|
|
895
905
|
title: p(() => B.value.style.chart.title),
|
|
896
|
-
legend:
|
|
897
|
-
legendItems:
|
|
898
|
-
backgroundColor:
|
|
906
|
+
legend: Mr,
|
|
907
|
+
legendItems: mr,
|
|
908
|
+
backgroundColor: jr
|
|
899
909
|
});
|
|
900
|
-
async function
|
|
901
|
-
|
|
910
|
+
async function Fr({ isCb: e }) {
|
|
911
|
+
cn.value = !0, await He();
|
|
902
912
|
try {
|
|
903
913
|
if (e) {
|
|
904
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
914
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
|
|
905
915
|
await Promise.resolve(B.value.userOptions.callbacks.svg({
|
|
906
916
|
blob: e,
|
|
907
917
|
url: t,
|
|
908
918
|
text: n,
|
|
909
919
|
dataUrl: r
|
|
910
920
|
}));
|
|
911
|
-
} else await Promise.resolve(
|
|
921
|
+
} else await Promise.resolve(Nr());
|
|
912
922
|
} finally {
|
|
913
|
-
|
|
923
|
+
cn.value = !1;
|
|
914
924
|
}
|
|
915
925
|
}
|
|
916
|
-
function
|
|
926
|
+
function Ir(e) {
|
|
917
927
|
if (e?.stage === "start") {
|
|
918
|
-
|
|
928
|
+
sn.value = !0;
|
|
919
929
|
return;
|
|
920
930
|
}
|
|
921
931
|
if (e?.stage === "end") {
|
|
922
|
-
|
|
932
|
+
sn.value = !1;
|
|
923
933
|
return;
|
|
924
934
|
}
|
|
925
|
-
|
|
935
|
+
jn();
|
|
926
936
|
}
|
|
927
|
-
async function
|
|
928
|
-
if (
|
|
937
|
+
async function Lr() {
|
|
938
|
+
if (_n("copyAlt", {
|
|
929
939
|
config: B.value,
|
|
930
|
-
dataset:
|
|
940
|
+
dataset: X.value
|
|
931
941
|
}), !B.value.userOptions.callbacks.altCopy) {
|
|
932
942
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
933
943
|
return;
|
|
934
944
|
}
|
|
935
945
|
await Promise.resolve(B.value.userOptions.callbacks.altCopy({
|
|
936
946
|
config: B.value,
|
|
937
|
-
dataset:
|
|
947
|
+
dataset: X.value
|
|
938
948
|
}));
|
|
939
949
|
}
|
|
940
|
-
let
|
|
950
|
+
let Rr = p(() => ({
|
|
941
951
|
head: $.value.head,
|
|
942
952
|
body: $.value.body.map((e) => [
|
|
943
953
|
e[0]?.name || "",
|
|
@@ -948,46 +958,46 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
948
958
|
caption: B.value.a11y.translations.tableCaption,
|
|
949
959
|
notice: B.value.a11y.translations.tableAvailable
|
|
950
960
|
}));
|
|
951
|
-
function
|
|
952
|
-
return
|
|
961
|
+
function zr(e) {
|
|
962
|
+
return X.value.findIndex((t) => t.seriesIndex === e);
|
|
953
963
|
}
|
|
954
|
-
function
|
|
964
|
+
function Br() {
|
|
955
965
|
if (R.value !== null && z.value !== null) {
|
|
956
|
-
let e =
|
|
957
|
-
e &&
|
|
966
|
+
let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
967
|
+
e && yr({
|
|
958
968
|
datapoint: e,
|
|
959
969
|
plotIndex: z.value,
|
|
960
970
|
seriesIndex: R.value
|
|
961
971
|
});
|
|
962
972
|
}
|
|
963
|
-
R.value = null, z.value = null,
|
|
973
|
+
R.value = null, z.value = null, mn.value = "pointer", $t.value = !1, L.value = null;
|
|
964
974
|
}
|
|
965
|
-
function
|
|
966
|
-
R.value = null, z.value = null,
|
|
975
|
+
function Vr() {
|
|
976
|
+
R.value = null, z.value = null, hn.value = !0;
|
|
967
977
|
}
|
|
968
|
-
function
|
|
969
|
-
|
|
978
|
+
function Hr() {
|
|
979
|
+
Br(), hn.value = !1;
|
|
970
980
|
}
|
|
971
|
-
function
|
|
981
|
+
function Ur(e, t) {
|
|
972
982
|
if (!e?.plots?.length) return null;
|
|
973
983
|
let n = e.plots.length;
|
|
974
984
|
return (t % n + n) % n;
|
|
975
985
|
}
|
|
976
|
-
function
|
|
977
|
-
if (!
|
|
978
|
-
let r =
|
|
986
|
+
function Wr({ seriesIndex: e, plotIndex: t, direction: n }) {
|
|
987
|
+
if (!X.value.length) return null;
|
|
988
|
+
let r = zr(e);
|
|
979
989
|
if (r === -1) return null;
|
|
980
990
|
if (n === "up" || n === "down") {
|
|
981
|
-
let e =
|
|
991
|
+
let e = X.value[r];
|
|
982
992
|
if (!e?.plots?.length) return null;
|
|
983
|
-
let i =
|
|
993
|
+
let i = Ur(e, t + (n === "up" ? -1 : 1));
|
|
984
994
|
return {
|
|
985
995
|
seriesIndex: e.seriesIndex,
|
|
986
996
|
plotIndex: i
|
|
987
997
|
};
|
|
988
998
|
}
|
|
989
999
|
if (n === "left" || n === "right") {
|
|
990
|
-
let e = ((r + (n === "left" ? -1 : 1)) %
|
|
1000
|
+
let e = ((r + (n === "left" ? -1 : 1)) % X.value.length + X.value.length) % X.value.length, i = X.value[e];
|
|
991
1001
|
if (!i?.plots?.length) return null;
|
|
992
1002
|
let a = Math.min(t, i.plots.length - 1);
|
|
993
1003
|
return {
|
|
@@ -997,19 +1007,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
997
1007
|
}
|
|
998
1008
|
return null;
|
|
999
1009
|
}
|
|
1000
|
-
function
|
|
1001
|
-
if (!
|
|
1010
|
+
function Gr(e) {
|
|
1011
|
+
if (!U.value || Cr.value || document.activeElement !== U.value || !X.value.length) return;
|
|
1002
1012
|
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
1013
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1004
1014
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1005
|
-
|
|
1015
|
+
Br();
|
|
1006
1016
|
return;
|
|
1007
1017
|
}
|
|
1008
1018
|
if (a) {
|
|
1009
1019
|
if (R.value === null || z.value === null) return;
|
|
1010
|
-
let e =
|
|
1020
|
+
let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
1011
1021
|
if (!e) return;
|
|
1012
|
-
|
|
1022
|
+
gr({
|
|
1013
1023
|
datapoint: e,
|
|
1014
1024
|
plotIndex: z.value,
|
|
1015
1025
|
seriesIndex: R.value
|
|
@@ -1018,52 +1028,52 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1018
1028
|
}
|
|
1019
1029
|
let s = null;
|
|
1020
1030
|
if (R.value === null || z.value === null) {
|
|
1021
|
-
let e =
|
|
1031
|
+
let e = X.value[0];
|
|
1022
1032
|
if (!e?.plots?.length) return;
|
|
1023
1033
|
s = {
|
|
1024
1034
|
seriesIndex: e.seriesIndex,
|
|
1025
1035
|
plotIndex: 0
|
|
1026
1036
|
};
|
|
1027
|
-
} else r ? s =
|
|
1037
|
+
} else r ? s = Wr({
|
|
1028
1038
|
seriesIndex: R.value,
|
|
1029
1039
|
plotIndex: z.value,
|
|
1030
1040
|
direction: "up"
|
|
1031
|
-
}) : i ? s =
|
|
1041
|
+
}) : i ? s = Wr({
|
|
1032
1042
|
seriesIndex: R.value,
|
|
1033
1043
|
plotIndex: z.value,
|
|
1034
1044
|
direction: "down"
|
|
1035
|
-
}) : t ? s =
|
|
1045
|
+
}) : t ? s = Wr({
|
|
1036
1046
|
seriesIndex: R.value,
|
|
1037
1047
|
plotIndex: z.value,
|
|
1038
1048
|
direction: "left"
|
|
1039
|
-
}) : n && (s =
|
|
1049
|
+
}) : n && (s = Wr({
|
|
1040
1050
|
seriesIndex: R.value,
|
|
1041
1051
|
plotIndex: z.value,
|
|
1042
1052
|
direction: "right"
|
|
1043
1053
|
}));
|
|
1044
1054
|
if (!s) return;
|
|
1045
|
-
let c =
|
|
1046
|
-
c &&
|
|
1055
|
+
let c = X.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
|
|
1056
|
+
c && xr({
|
|
1047
1057
|
datapoint: c,
|
|
1048
1058
|
plotIndex: s.plotIndex,
|
|
1049
1059
|
seriesIndex: s.seriesIndex,
|
|
1050
1060
|
triggerMode: "keyboard"
|
|
1051
1061
|
});
|
|
1052
1062
|
}
|
|
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:
|
|
1063
|
+
return De({
|
|
1064
|
+
getData: Dr,
|
|
1065
|
+
getImage: Or,
|
|
1066
|
+
generatePdf: An,
|
|
1067
|
+
generateCsv: Sr,
|
|
1068
|
+
generateImage: jn,
|
|
1069
|
+
generateSvg: Fr,
|
|
1070
|
+
hideSeries: pr,
|
|
1071
|
+
showSeries: fr,
|
|
1072
|
+
toggleTable: Tr,
|
|
1073
|
+
toggleTooltip: Er,
|
|
1074
|
+
toggleAnnotator: wr,
|
|
1075
|
+
toggleFullscreen: _r,
|
|
1076
|
+
copyAlt: Lr
|
|
1067
1077
|
}), (e, t) => (C(), g("div", {
|
|
1068
1078
|
id: `history_plot_${P.value}`,
|
|
1069
1079
|
ref_key: "historyPlotChart",
|
|
@@ -1074,20 +1084,20 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1074
1084
|
"vue-data-ui-wrapper-fullscreen": I.value
|
|
1075
1085
|
}),
|
|
1076
1086
|
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%" : ""}`),
|
|
1077
|
-
onMouseenter: t[2] ||= () => O(
|
|
1078
|
-
onMouseleave: t[3] ||= () => O(
|
|
1087
|
+
onMouseenter: t[2] ||= () => O(En)(!0),
|
|
1088
|
+
onMouseleave: t[3] ||= () => O(En)(!1)
|
|
1079
1089
|
}, [
|
|
1080
1090
|
_("div", {
|
|
1081
1091
|
id: `chart-instructions-${P.value}`,
|
|
1082
1092
|
class: "sr-only"
|
|
1083
|
-
}, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1084
|
-
|
|
1093
|
+
}, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1094
|
+
Rr.value.body.length ? (C(), m(Me, {
|
|
1085
1095
|
key: 0,
|
|
1086
1096
|
uid: P.value,
|
|
1087
|
-
head:
|
|
1088
|
-
body:
|
|
1089
|
-
caption:
|
|
1090
|
-
notice:
|
|
1097
|
+
head: Rr.value.head,
|
|
1098
|
+
body: Rr.value.body,
|
|
1099
|
+
caption: Rr.value.caption,
|
|
1100
|
+
notice: Rr.value.notice
|
|
1091
1101
|
}, null, 8, [
|
|
1092
1102
|
"uid",
|
|
1093
1103
|
"head",
|
|
@@ -1096,14 +1106,14 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1096
1106
|
"notice"
|
|
1097
1107
|
])) : h("", !0),
|
|
1098
1108
|
E(e.$slots, "userConfig", {}, void 0, !0),
|
|
1099
|
-
B.value.userOptions.buttons.annotator ? (C(), m(O(
|
|
1109
|
+
B.value.userOptions.buttons.annotator ? (C(), m(O(zt), {
|
|
1100
1110
|
key: 1,
|
|
1101
|
-
svgRef: O(
|
|
1111
|
+
svgRef: O(U),
|
|
1102
1112
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1103
1113
|
color: B.value.style.chart.color,
|
|
1104
|
-
active:
|
|
1105
|
-
isCursorPointer:
|
|
1106
|
-
onClose:
|
|
1114
|
+
active: Cr.value,
|
|
1115
|
+
isCursorPointer: H.value,
|
|
1116
|
+
onClose: wr
|
|
1107
1117
|
}, {
|
|
1108
1118
|
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1109
1119
|
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
@@ -1119,21 +1129,21 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1119
1129
|
"active",
|
|
1120
1130
|
"isCursorPointer"
|
|
1121
1131
|
])) : h("", !0),
|
|
1122
|
-
|
|
1132
|
+
Mn.value ? (C(), g("div", {
|
|
1123
1133
|
key: 2,
|
|
1124
1134
|
ref_key: "noTitle",
|
|
1125
|
-
ref:
|
|
1135
|
+
ref: Qt,
|
|
1126
1136
|
class: "vue-data-ui-no-title-space",
|
|
1127
1137
|
style: "height:36px; width: 100%;background:transparent"
|
|
1128
1138
|
}, null, 512)) : h("", !0),
|
|
1129
1139
|
B.value.style.chart.title.text ? (C(), g("div", {
|
|
1130
1140
|
key: 3,
|
|
1131
1141
|
ref_key: "chartTitle",
|
|
1132
|
-
ref:
|
|
1142
|
+
ref: Kt,
|
|
1133
1143
|
class: "vue-ui-xy-title",
|
|
1134
1144
|
style: S(`font-family:${B.value.style.fontFamily}`)
|
|
1135
|
-
}, [(C(), m(
|
|
1136
|
-
key: `title_${
|
|
1145
|
+
}, [(C(), m(Ee, {
|
|
1146
|
+
key: `title_${qt.value}`,
|
|
1137
1147
|
config: {
|
|
1138
1148
|
title: {
|
|
1139
1149
|
cy: "history-plot-div-title",
|
|
@@ -1145,15 +1155,15 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1145
1155
|
}
|
|
1146
1156
|
}
|
|
1147
1157
|
}, null, 8, ["config"]))], 4)) : h("", !0),
|
|
1148
|
-
_("div", { id: `legend-top-${P.value}` }, null, 8,
|
|
1149
|
-
B.value.userOptions.show &&
|
|
1158
|
+
_("div", { id: `legend-top-${P.value}` }, null, 8, $e),
|
|
1159
|
+
B.value.userOptions.show && gn.value && (O(Dn) || O(Tn)) ? (C(), m(O(Bt), {
|
|
1150
1160
|
ref_key: "userOptionsRef",
|
|
1151
|
-
ref:
|
|
1152
|
-
key: `user_option_${
|
|
1161
|
+
ref: on,
|
|
1162
|
+
key: `user_option_${Zt.value}`,
|
|
1153
1163
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1154
1164
|
color: B.value.style.chart.color,
|
|
1155
|
-
isPrinting: O(
|
|
1156
|
-
isImaging: O(
|
|
1165
|
+
isPrinting: O(On),
|
|
1166
|
+
isImaging: O(kn),
|
|
1157
1167
|
uid: P.value,
|
|
1158
1168
|
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1159
1169
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
@@ -1167,25 +1177,25 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1167
1177
|
isFullscreen: I.value,
|
|
1168
1178
|
chartElement: j.value,
|
|
1169
1179
|
position: B.value.userOptions.position,
|
|
1170
|
-
isTooltip:
|
|
1180
|
+
isTooltip: W.value.showTooltip,
|
|
1171
1181
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
1172
1182
|
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1173
|
-
isAnnotation:
|
|
1183
|
+
isAnnotation: Cr.value,
|
|
1174
1184
|
callbacks: B.value.userOptions.callbacks,
|
|
1175
1185
|
printScale: B.value.userOptions.print.scale,
|
|
1176
1186
|
tableDialog: B.value.table.useDialog,
|
|
1177
|
-
isCursorPointer:
|
|
1178
|
-
onToggleFullscreen:
|
|
1179
|
-
onGeneratePdf: O(
|
|
1180
|
-
onGenerateCsv:
|
|
1181
|
-
onGenerateImage:
|
|
1182
|
-
onGenerateSvg:
|
|
1183
|
-
onToggleTable:
|
|
1184
|
-
onToggleTooltip:
|
|
1185
|
-
onToggleAnnotator:
|
|
1186
|
-
onCopyAlt:
|
|
1187
|
-
style: S({ visibility: O(
|
|
1188
|
-
},
|
|
1187
|
+
isCursorPointer: H.value,
|
|
1188
|
+
onToggleFullscreen: _r,
|
|
1189
|
+
onGeneratePdf: O(An),
|
|
1190
|
+
onGenerateCsv: Sr,
|
|
1191
|
+
onGenerateImage: Ir,
|
|
1192
|
+
onGenerateSvg: Fr,
|
|
1193
|
+
onToggleTable: Tr,
|
|
1194
|
+
onToggleTooltip: Er,
|
|
1195
|
+
onToggleAnnotator: wr,
|
|
1196
|
+
onCopyAlt: Lr,
|
|
1197
|
+
style: S({ visibility: O(Dn) ? O(Tn) ? "visible" : "hidden" : "visible" })
|
|
1198
|
+
}, Re({ _: 2 }, [
|
|
1189
1199
|
e.$slots.menuIcon ? {
|
|
1190
1200
|
name: "menuIcon",
|
|
1191
1201
|
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
|
|
@@ -1256,28 +1266,28 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1256
1266
|
key: "11"
|
|
1257
1267
|
} : void 0
|
|
1258
1268
|
]), 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),
|
|
1259
|
-
_("div",
|
|
1269
|
+
_("div", et, [(C(), g("svg", {
|
|
1260
1270
|
ref_key: "svgRef",
|
|
1261
|
-
ref:
|
|
1262
|
-
xmlns: O(
|
|
1263
|
-
viewBox: `0 0 ${
|
|
1271
|
+
ref: U,
|
|
1272
|
+
xmlns: O(le),
|
|
1273
|
+
viewBox: `0 0 ${G.value.width < 0 ? .1 : G.value.width} ${G.value.height < 0 ? .1 : G.value.height}`,
|
|
1264
1274
|
style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
|
|
1265
1275
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1266
1276
|
tabindex: "0",
|
|
1267
|
-
onFocus:
|
|
1268
|
-
onBlur:
|
|
1269
|
-
onKeydown:
|
|
1277
|
+
onFocus: Vr,
|
|
1278
|
+
onBlur: Hr,
|
|
1279
|
+
onKeydown: Gr
|
|
1270
1280
|
}, [
|
|
1271
|
-
|
|
1281
|
+
Be(O(Vt)),
|
|
1272
1282
|
e.$slots["chart-background"] ? (C(), g("foreignObject", {
|
|
1273
1283
|
key: 0,
|
|
1274
|
-
x:
|
|
1275
|
-
y:
|
|
1276
|
-
width:
|
|
1277
|
-
height:
|
|
1284
|
+
x: K.value.left,
|
|
1285
|
+
y: K.value.top,
|
|
1286
|
+
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1287
|
+
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1278
1288
|
style: { pointerEvents: "none" }
|
|
1279
|
-
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1280
|
-
B.value.style.chart.plots.gradient.show ||
|
|
1289
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
|
|
1290
|
+
B.value.style.chart.plots.gradient.show || Jn.value ? (C(), g("defs", rt, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(X.value, (e, t) => (C(), m(Ae, {
|
|
1281
1291
|
t: "radial",
|
|
1282
1292
|
key: `gradient_${t}_${P.value}`,
|
|
1283
1293
|
id: `gradient_${t}_${P.value}`,
|
|
@@ -1285,12 +1295,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1285
1295
|
stops: [
|
|
1286
1296
|
[
|
|
1287
1297
|
"10%",
|
|
1288
|
-
O(
|
|
1298
|
+
O(s)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
|
|
1289
1299
|
1
|
|
1290
1300
|
],
|
|
1291
1301
|
[
|
|
1292
1302
|
"90%",
|
|
1293
|
-
O(
|
|
1303
|
+
O(ne)(e.color, .1),
|
|
1294
1304
|
1
|
|
1295
1305
|
],
|
|
1296
1306
|
[
|
|
@@ -1299,42 +1309,42 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1299
1309
|
1
|
|
1300
1310
|
]
|
|
1301
1311
|
]
|
|
1302
|
-
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(
|
|
1312
|
+
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(X.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && Yn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(Ae, {
|
|
1303
1313
|
t: "radial",
|
|
1304
1314
|
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
|
|
1305
|
-
id:
|
|
1315
|
+
id: tr(e, t),
|
|
1306
1316
|
fy: "30%",
|
|
1307
1317
|
stops: [
|
|
1308
1318
|
[
|
|
1309
1319
|
"10%",
|
|
1310
|
-
O(
|
|
1320
|
+
O(s)(Q(e, t), B.value.style.chart.plots.gradient.intensity / 100),
|
|
1311
1321
|
1
|
|
1312
1322
|
],
|
|
1313
1323
|
[
|
|
1314
1324
|
"90%",
|
|
1315
|
-
O(
|
|
1325
|
+
O(ne)(Q(e, t), .1),
|
|
1316
1326
|
1
|
|
1317
1327
|
],
|
|
1318
1328
|
[
|
|
1319
1329
|
"100%",
|
|
1320
|
-
|
|
1330
|
+
Q(e, t),
|
|
1321
1331
|
1
|
|
1322
1332
|
]
|
|
1323
1333
|
]
|
|
1324
|
-
}, null, 8, ["id", "stops"]))), 128)) : h("", !0),
|
|
1334
|
+
}, null, 8, ["id", "stops"]))), 128)) : h("", !0), Z(e) ? (C(), g("linearGradient", {
|
|
1325
1335
|
key: 1,
|
|
1326
1336
|
id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
|
|
1327
1337
|
gradientUnits: "userSpaceOnUse",
|
|
1328
|
-
x1:
|
|
1329
|
-
y1:
|
|
1330
|
-
x2:
|
|
1331
|
-
y2:
|
|
1338
|
+
x1: $n(e).x1,
|
|
1339
|
+
y1: $n(e).y1,
|
|
1340
|
+
x2: $n(e).x2,
|
|
1341
|
+
y2: $n(e).y2
|
|
1332
1342
|
}, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
|
|
1333
1343
|
key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
|
|
1334
1344
|
"stop-color": t,
|
|
1335
|
-
offset: e.temperatureColors.length === 1 ? "0%" : O(
|
|
1336
|
-
}, null, 8,
|
|
1337
|
-
B.value.style.chart.grid.verticalLines.show ? (C(), g("g",
|
|
1345
|
+
offset: e.temperatureColors.length === 1 ? "0%" : O(pe)(n, e.temperatureColors.length)
|
|
1346
|
+
}, null, 8, at))), 128))], 8, it)) : h("", !0)], 64))), 128))])) : h("", !0),
|
|
1347
|
+
B.value.style.chart.grid.verticalLines.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
|
|
1338
1348
|
x1: e.x,
|
|
1339
1349
|
x2: e.x,
|
|
1340
1350
|
y1: e.y1,
|
|
@@ -1342,43 +1352,43 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1342
1352
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1343
1353
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1344
1354
|
"stroke-linecap": "round"
|
|
1345
|
-
}, null, 8,
|
|
1346
|
-
B.value.style.chart.axes.y.labels.show ? (C(), g("g",
|
|
1355
|
+
}, null, 8, st))), 256))])) : h("", !0),
|
|
1356
|
+
B.value.style.chart.axes.y.labels.show ? (C(), g("g", ct, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
|
|
1347
1357
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1348
1358
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1349
1359
|
"stroke-linecap": "round",
|
|
1350
|
-
x1:
|
|
1351
|
-
x2:
|
|
1360
|
+
x1: K.value.left - 5,
|
|
1361
|
+
x2: K.value.left,
|
|
1352
1362
|
y1: e.y,
|
|
1353
1363
|
y2: e.y
|
|
1354
|
-
}, null, 8,
|
|
1364
|
+
}, null, 8, lt))), 256))])) : h("", !0),
|
|
1355
1365
|
B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
|
|
1356
1366
|
key: 4,
|
|
1357
1367
|
ref_key: "yAxisScales",
|
|
1358
|
-
ref:
|
|
1359
|
-
}, [(C(!0), g(f, null, T(
|
|
1360
|
-
x:
|
|
1361
|
-
y: e.y +
|
|
1368
|
+
ref: fn
|
|
1369
|
+
}, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("text", {
|
|
1370
|
+
x: K.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
|
|
1371
|
+
y: e.y + q.value.yAxisLabels / 3,
|
|
1362
1372
|
fill: B.value.style.chart.axes.y.labels.color,
|
|
1363
|
-
"font-size":
|
|
1373
|
+
"font-size": q.value.yAxisLabels,
|
|
1364
1374
|
"text-anchor": "end"
|
|
1365
|
-
}, D(O(
|
|
1375
|
+
}, D(O(u)(B.value.style.chart.axes.y.labels.formatter, e.value, O(l)({
|
|
1366
1376
|
p: B.value.style.chart.axes.y.labels.prefix,
|
|
1367
1377
|
v: e.value,
|
|
1368
1378
|
s: B.value.style.chart.axes.y.labels.suffix,
|
|
1369
1379
|
r: B.value.style.chart.axes.y.labels.rounding
|
|
1370
|
-
}))), 9,
|
|
1380
|
+
}))), 9, ut))), 256))], 512)) : h("", !0),
|
|
1371
1381
|
B.value.style.chart.axes.y.name.text ? (C(), g("text", {
|
|
1372
1382
|
key: 5,
|
|
1373
1383
|
ref_key: "yAxisLabel",
|
|
1374
|
-
ref:
|
|
1375
|
-
transform: `translate(${
|
|
1376
|
-
"font-size":
|
|
1384
|
+
ref: un,
|
|
1385
|
+
transform: `translate(${q.value.yAxisName}, ${G.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1386
|
+
"font-size": q.value.yAxisName,
|
|
1377
1387
|
fill: B.value.style.chart.axes.y.name.color,
|
|
1378
1388
|
"font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1379
1389
|
"text-anchor": "middle"
|
|
1380
|
-
}, D(B.value.style.chart.axes.y.name.text), 9,
|
|
1381
|
-
B.value.style.chart.grid.horizontalLines.show ? (C(), g("g",
|
|
1390
|
+
}, D(B.value.style.chart.axes.y.name.text), 9, dt)) : h("", !0),
|
|
1391
|
+
B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
|
|
1382
1392
|
x1: e.x1,
|
|
1383
1393
|
x2: e.x2,
|
|
1384
1394
|
y1: e.y,
|
|
@@ -1386,214 +1396,201 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1386
1396
|
stroke: B.value.style.chart.grid.horizontalLines.stroke,
|
|
1387
1397
|
"stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1388
1398
|
"stroke-linecap": "round"
|
|
1389
|
-
}, null, 8,
|
|
1390
|
-
B.value.style.chart.axes.x.labels.show ? (C(), g("g",
|
|
1399
|
+
}, null, 8, pt))), 256))])) : h("", !0),
|
|
1400
|
+
B.value.style.chart.axes.x.labels.show ? (C(), g("g", mt, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
|
|
1391
1401
|
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1392
1402
|
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1393
1403
|
"stroke-linecap": "round",
|
|
1394
1404
|
x1: e.x,
|
|
1395
1405
|
x2: e.x,
|
|
1396
|
-
y1:
|
|
1397
|
-
y2:
|
|
1398
|
-
}, null, 8,
|
|
1406
|
+
y1: K.value.bottom,
|
|
1407
|
+
y2: K.value.bottom + 5
|
|
1408
|
+
}, null, 8, ht))), 256))])) : h("", !0),
|
|
1399
1409
|
B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
|
|
1400
1410
|
key: 8,
|
|
1401
1411
|
ref_key: "xAxisScales",
|
|
1402
|
-
ref:
|
|
1403
|
-
}, [(C(!0), g(f, null, T(
|
|
1412
|
+
ref: dn
|
|
1413
|
+
}, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("text", {
|
|
1404
1414
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
1405
|
-
transform: `translate(${e.x}, ${
|
|
1415
|
+
transform: `translate(${e.x}, ${K.value.bottom + B.value.style.chart.axes.x.labels.offsetY + q.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
|
|
1406
1416
|
fill: B.value.style.chart.axes.x.labels.color,
|
|
1407
|
-
"font-size":
|
|
1417
|
+
"font-size": q.value.xAxisLabels,
|
|
1408
1418
|
"text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1409
|
-
}, D(O(
|
|
1419
|
+
}, D(O(u)(B.value.style.chart.axes.x.labels.formatter, e.value, O(l)({
|
|
1410
1420
|
p: B.value.style.chart.axes.x.labels.prefix,
|
|
1411
1421
|
v: e.value,
|
|
1412
1422
|
s: B.value.style.chart.axes.x.labels.suffix,
|
|
1413
1423
|
r: B.value.style.chart.axes.x.labels.rounding
|
|
1414
|
-
}))), 9,
|
|
1424
|
+
}))), 9, gt))), 256))], 512)) : h("", !0),
|
|
1415
1425
|
B.value.style.chart.axes.x.name.text ? (C(), g("text", {
|
|
1416
1426
|
key: 9,
|
|
1417
1427
|
ref_key: "xAxisLabel",
|
|
1418
|
-
ref:
|
|
1419
|
-
x:
|
|
1420
|
-
y:
|
|
1421
|
-
"font-size":
|
|
1428
|
+
ref: ln,
|
|
1429
|
+
x: G.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
|
|
1430
|
+
y: G.value.height,
|
|
1431
|
+
"font-size": q.value.xAxisName,
|
|
1422
1432
|
fill: B.value.style.chart.axes.x.name.color,
|
|
1423
1433
|
"font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1424
1434
|
"text-anchor": "middle"
|
|
1425
|
-
}, D(B.value.style.chart.axes.x.name.text), 9,
|
|
1435
|
+
}, D(B.value.style.chart.axes.x.name.text), 9, _t)) : h("", !0),
|
|
1426
1436
|
B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
|
|
1427
1437
|
key: 10,
|
|
1428
|
-
x1:
|
|
1429
|
-
x2:
|
|
1430
|
-
y1:
|
|
1431
|
-
y2:
|
|
1438
|
+
x1: K.value.left,
|
|
1439
|
+
x2: K.value.left + K.value.width,
|
|
1440
|
+
y1: K.value.bottom,
|
|
1441
|
+
y2: K.value.bottom,
|
|
1432
1442
|
stroke: B.value.style.chart.grid.xAxis.stroke,
|
|
1433
1443
|
"stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
|
|
1434
1444
|
"stroke-linecap": "round"
|
|
1435
|
-
}, null, 8,
|
|
1445
|
+
}, null, 8, vt)) : h("", !0),
|
|
1436
1446
|
B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
|
|
1437
1447
|
key: 11,
|
|
1438
|
-
x1:
|
|
1439
|
-
x2:
|
|
1440
|
-
y1:
|
|
1441
|
-
y2:
|
|
1448
|
+
x1: K.value.left,
|
|
1449
|
+
x2: K.value.left,
|
|
1450
|
+
y1: K.value.top,
|
|
1451
|
+
y2: K.value.bottom,
|
|
1442
1452
|
stroke: B.value.style.chart.grid.yAxis.stroke,
|
|
1443
1453
|
"stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
|
|
1444
1454
|
"stroke-linecap": "round"
|
|
1445
|
-
}, null, 8,
|
|
1446
|
-
(C(!0), g(f, null, T(
|
|
1455
|
+
}, null, 8, yt)) : h("", !0),
|
|
1456
|
+
(C(!0), g(f, null, T(qn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
|
|
1447
1457
|
B.value.style.chart.paths.show ? (C(), g("g", {
|
|
1448
1458
|
key: 0,
|
|
1449
|
-
style: S({ opacity:
|
|
1459
|
+
style: S({ opacity: sr(e.seriesIndex) })
|
|
1450
1460
|
}, [_("path", {
|
|
1461
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1451
1462
|
d: e.path,
|
|
1452
1463
|
stroke: B.value.style.chart.backgroundColor,
|
|
1453
1464
|
"stroke-width": B.value.style.chart.paths.strokeWidth + 4,
|
|
1454
1465
|
fill: "none",
|
|
1455
1466
|
"stroke-linecap": "round",
|
|
1456
|
-
"stroke-linejoin": "round"
|
|
1457
|
-
|
|
1458
|
-
|
|
1467
|
+
"stroke-linejoin": "round"
|
|
1468
|
+
}, null, 10, bt), _("path", {
|
|
1469
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1459
1470
|
d: e.path,
|
|
1460
|
-
stroke:
|
|
1471
|
+
stroke: or(e),
|
|
1461
1472
|
"stroke-width": B.value.style.chart.paths.strokeWidth,
|
|
1462
1473
|
fill: "none",
|
|
1463
1474
|
"stroke-linecap": "round",
|
|
1464
|
-
"stroke-linejoin": "round"
|
|
1465
|
-
|
|
1466
|
-
}, null, 10, vt)], 4)) : h("", !0),
|
|
1475
|
+
"stroke-linejoin": "round"
|
|
1476
|
+
}, null, 10, xt)], 4)) : h("", !0),
|
|
1467
1477
|
(C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
|
|
1468
1478
|
cx: e.x,
|
|
1469
1479
|
cy: e.y,
|
|
1470
1480
|
fill: B.value.style.chart.backgroundColor,
|
|
1471
|
-
r:
|
|
1472
|
-
stroke: "none"
|
|
1473
|
-
|
|
1481
|
+
r: q.value.plots,
|
|
1482
|
+
stroke: "none",
|
|
1483
|
+
class: b({ "vue-data-ui-transition": O(V) })
|
|
1484
|
+
}, null, 10, St))), 256)),
|
|
1474
1485
|
(C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
|
|
1475
1486
|
cx: t.x,
|
|
1476
1487
|
cy: t.y,
|
|
1477
|
-
fill:
|
|
1478
|
-
r:
|
|
1488
|
+
fill: nr(e, t, e.gradientIndex),
|
|
1489
|
+
r: q.value.plots,
|
|
1479
1490
|
stroke: B.value.style.chart.plots.stroke,
|
|
1480
1491
|
"stroke-width": B.value.style.chart.plots.strokeWidth,
|
|
1481
|
-
class: b({
|
|
1482
|
-
style: S({
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
})
|
|
1486
|
-
}, null, 14, bt))), 256)),
|
|
1487
|
-
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", {
|
|
1492
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1493
|
+
style: S({ opacity: sr(e.seriesIndex) })
|
|
1494
|
+
}, null, 14, Ct))), 256)),
|
|
1495
|
+
B.value.style.chart.plots.labels.show ? (C(), g("g", wt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("g", { key: `plab_${n}` }, [String(t.label).includes("\n") ? (C(), g("text", {
|
|
1488
1496
|
key: 1,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
"font-size":
|
|
1497
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1498
|
+
transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
|
|
1499
|
+
"font-size": q.value.labels,
|
|
1492
1500
|
fill: B.value.style.chart.plots.labels.color,
|
|
1493
1501
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1494
1502
|
"text-anchor": "middle",
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
opacity: ar(e.seriesIndex),
|
|
1498
|
-
transition: sr()
|
|
1499
|
-
}),
|
|
1500
|
-
innerHTML: O(ne)({
|
|
1503
|
+
style: S({ opacity: sr(e.seriesIndex) }),
|
|
1504
|
+
innerHTML: O(r)({
|
|
1501
1505
|
content: String(t.label),
|
|
1502
|
-
fontSize:
|
|
1506
|
+
fontSize: q.value.labels,
|
|
1503
1507
|
fill: B.value.style.chart.plots.labels.color,
|
|
1504
|
-
x:
|
|
1505
|
-
y:
|
|
1508
|
+
x: 0,
|
|
1509
|
+
y: 0
|
|
1506
1510
|
})
|
|
1507
|
-
}, null, 14,
|
|
1511
|
+
}, null, 14, Et)) : (C(), g("text", {
|
|
1508
1512
|
key: 0,
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
"font-size":
|
|
1513
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1514
|
+
transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
|
|
1515
|
+
"font-size": q.value.labels,
|
|
1512
1516
|
fill: B.value.style.chart.plots.labels.color,
|
|
1513
1517
|
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1514
1518
|
"text-anchor": "middle",
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
})
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
|
|
1523
|
-
y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
|
|
1524
|
-
"font-size": K.value.indexLabels,
|
|
1519
|
+
style: S({ opacity: sr(e.seriesIndex) })
|
|
1520
|
+
}, D(t.label), 15, Tt))]))), 128))])) : h("", !0),
|
|
1521
|
+
B.value.style.chart.plots.indexLabels.show ? (C(), g("g", Dt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
|
|
1522
|
+
key: `lab_${n}`,
|
|
1523
|
+
class: b({ "vue-data-ui-transition": O(V) }),
|
|
1524
|
+
transform: `translate(${t.x + B.value.style.chart.plots.indexLabels.offsetX}, ${t.y + B.value.style.chart.plots.indexLabels.offsetY + q.value.indexLabels / 3})`,
|
|
1525
|
+
"font-size": q.value.indexLabels,
|
|
1525
1526
|
"font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1526
|
-
fill:
|
|
1527
|
+
fill: ir(e, t),
|
|
1527
1528
|
"text-anchor": "middle",
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
opacity: ar(e.seriesIndex),
|
|
1531
|
-
transition: sr()
|
|
1532
|
-
})
|
|
1533
|
-
}, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Tt))), 256))])) : h("", !0)
|
|
1529
|
+
style: S({ opacity: sr(e.seriesIndex) })
|
|
1530
|
+
}, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Ot))), 128))])) : h("", !0)
|
|
1534
1531
|
]))), 128)),
|
|
1535
|
-
(C(!0), g(f, null, T(
|
|
1532
|
+
(C(!0), g(f, null, T(qn.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", {
|
|
1536
1533
|
cx: t.x,
|
|
1537
1534
|
cy: t.y,
|
|
1538
1535
|
fill: "transparent",
|
|
1539
|
-
r:
|
|
1536
|
+
r: q.value.plots,
|
|
1540
1537
|
stroke: "none",
|
|
1541
|
-
onMouseenter: (r) =>
|
|
1538
|
+
onMouseenter: (r) => xr({
|
|
1542
1539
|
datapoint: t,
|
|
1543
1540
|
plotIndex: n,
|
|
1544
1541
|
seriesIndex: e.seriesIndex,
|
|
1545
1542
|
triggerMode: "pointer"
|
|
1546
1543
|
}),
|
|
1547
|
-
onMouseleave: (r) =>
|
|
1544
|
+
onMouseleave: (r) => yr({
|
|
1548
1545
|
datapoint: t,
|
|
1549
1546
|
plotIndex: n,
|
|
1550
1547
|
seriesIndex: e.seriesIndex
|
|
1551
1548
|
}),
|
|
1552
|
-
onClick: (r) =>
|
|
1549
|
+
onClick: (r) => gr({
|
|
1553
1550
|
datapoint: t,
|
|
1554
1551
|
plotIndex: n,
|
|
1555
1552
|
seriesIndex: e.seriesIndex
|
|
1556
1553
|
})
|
|
1557
|
-
}, null, 40,
|
|
1554
|
+
}, null, 40, kt))), 256))]))), 128)),
|
|
1558
1555
|
E(e.$slots, "svg", { svg: {
|
|
1559
|
-
...
|
|
1560
|
-
drawingArea:
|
|
1561
|
-
isPrintingImg: O(
|
|
1562
|
-
isPrintingSvg:
|
|
1556
|
+
...G.value,
|
|
1557
|
+
drawingArea: K.value,
|
|
1558
|
+
isPrintingImg: O(On) || O(kn) || sn.value,
|
|
1559
|
+
isPrintingSvg: cn.value
|
|
1563
1560
|
} }, void 0, !0)
|
|
1564
|
-
], 44,
|
|
1561
|
+
], 44, tt)), e.$slots.hint ? (C(), g("div", At, [E(e.$slots, "hint", x(y({
|
|
1565
1562
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1566
|
-
isVisible:
|
|
1563
|
+
isVisible: hn.value
|
|
1567
1564
|
})), void 0, !0)])) : h("", !0)]),
|
|
1568
|
-
e.$slots.watermark ? (C(), g("div",
|
|
1569
|
-
_("div", { id: `legend-bottom-${P.value}` }, null, 8,
|
|
1570
|
-
|
|
1565
|
+
e.$slots.watermark ? (C(), g("div", jt, [E(e.$slots, "watermark", x(y({ isPrinting: O(On) || O(kn) || sn.value || cn.value })), void 0, !0)])) : h("", !0),
|
|
1566
|
+
_("div", { id: `legend-bottom-${P.value}` }, null, 8, Mt),
|
|
1567
|
+
rn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Le, {
|
|
1571
1568
|
key: 6,
|
|
1572
1569
|
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
1573
1570
|
}, [_("div", {
|
|
1574
1571
|
ref_key: "chartLegend",
|
|
1575
|
-
ref:
|
|
1576
|
-
}, [E(e.$slots, "legend", { legend:
|
|
1577
|
-
key: `legend_${
|
|
1578
|
-
legendSet:
|
|
1579
|
-
config:
|
|
1580
|
-
isCursorPointer:
|
|
1572
|
+
ref: Jt
|
|
1573
|
+
}, [E(e.$slots, "legend", { legend: mr.value }, () => [B.value.style.chart.legend.show && gn.value ? (C(), m(Fe, {
|
|
1574
|
+
key: `legend_${Yt.value}`,
|
|
1575
|
+
legendSet: mr.value,
|
|
1576
|
+
config: hr.value,
|
|
1577
|
+
isCursorPointer: H.value,
|
|
1581
1578
|
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1582
|
-
|
|
1579
|
+
ur(e.seriesIndex);
|
|
1583
1580
|
}
|
|
1584
1581
|
}, {
|
|
1585
1582
|
item: k(({ legend: e, index: t }) => [_("div", {
|
|
1586
1583
|
onClick: (t) => e.segregate(),
|
|
1587
1584
|
style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
|
|
1588
|
-
}, D(e.name), 13,
|
|
1589
|
-
legendToggle: k(() => [
|
|
1585
|
+
}, D(e.name), 13, Nt)]),
|
|
1586
|
+
legendToggle: k(() => [mr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(Sn) ? (C(), m(je, {
|
|
1590
1587
|
key: 0,
|
|
1591
1588
|
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1592
1589
|
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1593
1590
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
1594
1591
|
checked: F.value.length > 0,
|
|
1595
|
-
isCursorPointer:
|
|
1596
|
-
onToggle:
|
|
1592
|
+
isCursorPointer: H.value,
|
|
1593
|
+
onToggle: lr
|
|
1597
1594
|
}, null, 8, [
|
|
1598
1595
|
"backgroundColor",
|
|
1599
1596
|
"color",
|
|
@@ -1610,12 +1607,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1610
1607
|
e.$slots.source ? (C(), g("div", {
|
|
1611
1608
|
key: 7,
|
|
1612
1609
|
ref_key: "source",
|
|
1613
|
-
ref:
|
|
1610
|
+
ref: nn,
|
|
1614
1611
|
dir: "auto"
|
|
1615
1612
|
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1616
|
-
|
|
1613
|
+
Be(O(Ft), {
|
|
1617
1614
|
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1618
|
-
show:
|
|
1615
|
+
show: W.value.showTooltip && $t.value,
|
|
1619
1616
|
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1620
1617
|
color: B.value.style.chart.tooltip.color,
|
|
1621
1618
|
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
@@ -1627,19 +1624,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1627
1624
|
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1628
1625
|
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1629
1626
|
parent: j.value,
|
|
1630
|
-
content:
|
|
1631
|
-
isCustom:
|
|
1627
|
+
content: en.value,
|
|
1628
|
+
isCustom: tn.value,
|
|
1632
1629
|
isFullscreen: I.value,
|
|
1633
1630
|
smooth: B.value.style.chart.tooltip.smooth,
|
|
1634
1631
|
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1635
1632
|
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1636
1633
|
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1637
|
-
isA11yMode:
|
|
1638
|
-
a11yPosition:
|
|
1634
|
+
isA11yMode: mn.value === "keyboard",
|
|
1635
|
+
a11yPosition: pn.value
|
|
1639
1636
|
}, {
|
|
1640
|
-
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...
|
|
1641
|
-
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...
|
|
1642
|
-
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...
|
|
1637
|
+
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...vr.value })), void 0, !0)]),
|
|
1638
|
+
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...vr.value })), void 0, !0)]),
|
|
1639
|
+
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...vr.value })), void 0, !0)]),
|
|
1643
1640
|
_: 3
|
|
1644
1641
|
}, 8, [
|
|
1645
1642
|
"teleportTo",
|
|
@@ -1665,21 +1662,21 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1665
1662
|
"isA11yMode",
|
|
1666
1663
|
"a11yPosition"
|
|
1667
1664
|
]),
|
|
1668
|
-
|
|
1665
|
+
gn.value && B.value.userOptions.buttons.table ? (C(), m(Ge(kr.value.component), Ve({ key: 8 }, kr.value.props, {
|
|
1669
1666
|
ref_key: "tableUnit",
|
|
1670
|
-
ref:
|
|
1671
|
-
onClose:
|
|
1672
|
-
}),
|
|
1673
|
-
content: k(() => [(C(), m(O(
|
|
1674
|
-
key: `table_${
|
|
1667
|
+
ref: an,
|
|
1668
|
+
onClose: Ar
|
|
1669
|
+
}), Re({
|
|
1670
|
+
content: k(() => [(C(), m(O(Rt), {
|
|
1671
|
+
key: `table_${Xt.value}`,
|
|
1675
1672
|
colNames: $.value.colNames,
|
|
1676
1673
|
head: $.value.head,
|
|
1677
1674
|
body: $.value.body,
|
|
1678
1675
|
config: $.value.config,
|
|
1679
|
-
title: B.value.table.useDialog ? "" :
|
|
1676
|
+
title: B.value.table.useDialog ? "" : kr.value.title,
|
|
1680
1677
|
withCloseButton: !B.value.table.useDialog,
|
|
1681
|
-
isCursorPointer:
|
|
1682
|
-
onClose:
|
|
1678
|
+
isCursorPointer: H.value,
|
|
1679
|
+
onClose: Ar
|
|
1683
1680
|
}, {
|
|
1684
1681
|
th: k(({ th: e }) => [_("div", {
|
|
1685
1682
|
innerHTML: e,
|
|
@@ -1687,8 +1684,8 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1687
1684
|
display: "flex",
|
|
1688
1685
|
"align-items": "center"
|
|
1689
1686
|
}
|
|
1690
|
-
}, null, 8,
|
|
1691
|
-
td: k(({ td: e }) => [
|
|
1687
|
+
}, null, 8, Pt)]),
|
|
1688
|
+
td: k(({ td: e }) => [ze(D(e.name || e), 1)]),
|
|
1692
1689
|
_: 1
|
|
1693
1690
|
}, 8, [
|
|
1694
1691
|
"colNames",
|
|
@@ -1702,24 +1699,24 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1702
1699
|
_: 2
|
|
1703
1700
|
}, [B.value.table.useDialog ? {
|
|
1704
1701
|
name: "title",
|
|
1705
|
-
fn: k(() => [
|
|
1702
|
+
fn: k(() => [ze(D(kr.value.title), 1)]),
|
|
1706
1703
|
key: "0"
|
|
1707
1704
|
} : void 0, B.value.table.useDialog ? {
|
|
1708
1705
|
name: "actions",
|
|
1709
1706
|
fn: k(() => [_("button", {
|
|
1710
1707
|
tabindex: "0",
|
|
1711
1708
|
class: "vue-ui-user-options-button",
|
|
1712
|
-
onClick: t[1] ||= (e) =>
|
|
1713
|
-
style: S({ cursor:
|
|
1714
|
-
}, [
|
|
1709
|
+
onClick: t[1] ||= (e) => Sr(B.value.userOptions.callbacks.csv),
|
|
1710
|
+
style: S({ cursor: H.value ? "pointer" : "default" })
|
|
1711
|
+
}, [Be(O(It), {
|
|
1715
1712
|
name: "fileCsv",
|
|
1716
|
-
stroke:
|
|
1713
|
+
stroke: kr.value.props.color
|
|
1717
1714
|
}, null, 8, ["stroke"])], 4)]),
|
|
1718
1715
|
key: "1"
|
|
1719
1716
|
} : void 0]), 1040)) : h("", !0),
|
|
1720
|
-
E(e.$slots, "skeleton", {}, () => [O(
|
|
1721
|
-
], 46,
|
|
1717
|
+
E(e.$slots, "skeleton", {}, () => [O(Sn) ? (C(), m(ye, { key: 0 })) : h("", !0)], !0)
|
|
1718
|
+
], 46, Ze));
|
|
1722
1719
|
}
|
|
1723
|
-
}, [["__scopeId", "data-v-
|
|
1720
|
+
}, [["__scopeId", "data-v-ec22280b"]]);
|
|
1724
1721
|
//#endregion
|
|
1725
|
-
export {
|
|
1722
|
+
export { Xe as n, Ft as t };
|