vue-data-ui 3.22.6 → 3.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -0,0 +1,1715 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, C as n, Et as r, G as i, Gt as a, J as o, Kt as s, Lt as c, Mt as l, S as ee, T as te, U as ne, Ut as re, Wt as ie, Z as ae, b as oe, dt as se, h as ce, i as u, kt as le, q as ue, r as de, t as fe, vt as pe, yt as me } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as he } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ge } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ye } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
+
import { t as Ce } from "./img-DnP3eXuv.js";
|
|
11
|
+
import { n as we } from "./Title-CcNiYzEo.js";
|
|
12
|
+
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
16
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Me } from "./Legend-ROt6ugzW.js";
|
|
20
|
+
import { t as Ne } from "./vue_ui_history_plot-CuN63VEc.js";
|
|
21
|
+
import { Fragment as d, Teleport as Pe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Re, nextTick as ze, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Be, onMounted as Ve, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as E, toRefs as We, unref as D, watch as Ge, watchEffect as Ke, withCtx as O } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-history-plot.vue
|
|
23
|
+
var qe = /* @__PURE__ */ e({ default: () => Bt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"viewBox",
|
|
26
|
+
"aria-describedby"
|
|
27
|
+
], $e = [
|
|
28
|
+
"x",
|
|
29
|
+
"y",
|
|
30
|
+
"width",
|
|
31
|
+
"height"
|
|
32
|
+
], et = { key: 1 }, tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["stop-color"], lt = [
|
|
33
|
+
"id",
|
|
34
|
+
"x1",
|
|
35
|
+
"y1",
|
|
36
|
+
"x2",
|
|
37
|
+
"y2"
|
|
38
|
+
], ut = ["stop-color", "offset"], dt = { key: 2 }, ft = [
|
|
39
|
+
"x1",
|
|
40
|
+
"x2",
|
|
41
|
+
"y1",
|
|
42
|
+
"y2",
|
|
43
|
+
"stroke",
|
|
44
|
+
"stroke-width"
|
|
45
|
+
], pt = { key: 3 }, mt = [
|
|
46
|
+
"stroke",
|
|
47
|
+
"stroke-width",
|
|
48
|
+
"x1",
|
|
49
|
+
"x2",
|
|
50
|
+
"y1",
|
|
51
|
+
"y2"
|
|
52
|
+
], ht = [
|
|
53
|
+
"x",
|
|
54
|
+
"y",
|
|
55
|
+
"fill",
|
|
56
|
+
"font-size"
|
|
57
|
+
], gt = [
|
|
58
|
+
"transform",
|
|
59
|
+
"font-size",
|
|
60
|
+
"fill",
|
|
61
|
+
"font-weight"
|
|
62
|
+
], _t = { key: 6 }, vt = [
|
|
63
|
+
"x1",
|
|
64
|
+
"x2",
|
|
65
|
+
"y1",
|
|
66
|
+
"y2",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width"
|
|
69
|
+
], yt = { key: 7 }, bt = [
|
|
70
|
+
"stroke",
|
|
71
|
+
"stroke-width",
|
|
72
|
+
"x1",
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2"
|
|
76
|
+
], xt = [
|
|
77
|
+
"transform",
|
|
78
|
+
"fill",
|
|
79
|
+
"font-size",
|
|
80
|
+
"text-anchor"
|
|
81
|
+
], St = [
|
|
82
|
+
"x",
|
|
83
|
+
"y",
|
|
84
|
+
"font-size",
|
|
85
|
+
"fill",
|
|
86
|
+
"font-weight"
|
|
87
|
+
], Ct = [
|
|
88
|
+
"x1",
|
|
89
|
+
"x2",
|
|
90
|
+
"y1",
|
|
91
|
+
"y2",
|
|
92
|
+
"stroke",
|
|
93
|
+
"stroke-width"
|
|
94
|
+
], wt = [
|
|
95
|
+
"x1",
|
|
96
|
+
"x2",
|
|
97
|
+
"y1",
|
|
98
|
+
"y2",
|
|
99
|
+
"stroke",
|
|
100
|
+
"stroke-width"
|
|
101
|
+
], Tt = [
|
|
102
|
+
"d",
|
|
103
|
+
"stroke",
|
|
104
|
+
"stroke-width"
|
|
105
|
+
], Et = [
|
|
106
|
+
"d",
|
|
107
|
+
"stroke",
|
|
108
|
+
"stroke-width"
|
|
109
|
+
], Dt = [
|
|
110
|
+
"cx",
|
|
111
|
+
"cy",
|
|
112
|
+
"fill",
|
|
113
|
+
"r"
|
|
114
|
+
], Ot = [
|
|
115
|
+
"cx",
|
|
116
|
+
"cy",
|
|
117
|
+
"fill",
|
|
118
|
+
"r",
|
|
119
|
+
"stroke",
|
|
120
|
+
"stroke-width"
|
|
121
|
+
], kt = { key: 1 }, At = [
|
|
122
|
+
"x",
|
|
123
|
+
"y",
|
|
124
|
+
"font-size",
|
|
125
|
+
"fill",
|
|
126
|
+
"font-weight"
|
|
127
|
+
], jt = [
|
|
128
|
+
"x",
|
|
129
|
+
"y",
|
|
130
|
+
"font-size",
|
|
131
|
+
"fill",
|
|
132
|
+
"font-weight",
|
|
133
|
+
"innerHTML"
|
|
134
|
+
], Mt = { key: 2 }, Nt = [
|
|
135
|
+
"x",
|
|
136
|
+
"y",
|
|
137
|
+
"font-size",
|
|
138
|
+
"font-weight",
|
|
139
|
+
"fill"
|
|
140
|
+
], Pt = [
|
|
141
|
+
"cx",
|
|
142
|
+
"cy",
|
|
143
|
+
"r",
|
|
144
|
+
"onMouseenter",
|
|
145
|
+
"onMouseleave",
|
|
146
|
+
"onClick"
|
|
147
|
+
], Ft = {
|
|
148
|
+
key: 0,
|
|
149
|
+
style: {
|
|
150
|
+
position: "absolute",
|
|
151
|
+
top: "100%",
|
|
152
|
+
left: "0",
|
|
153
|
+
width: "100%"
|
|
154
|
+
},
|
|
155
|
+
"data-dom-to-png-ignore": "",
|
|
156
|
+
"aria-hidden": "true"
|
|
157
|
+
}, It = {
|
|
158
|
+
key: 5,
|
|
159
|
+
class: "vue-data-ui-watermark"
|
|
160
|
+
}, Lt = ["id"], Rt = ["onClick"], zt = ["innerHTML"], Bt = /*#__PURE__*/ Te({
|
|
161
|
+
__name: "vue-ui-history-plot",
|
|
162
|
+
props: {
|
|
163
|
+
config: {
|
|
164
|
+
type: Object,
|
|
165
|
+
default() {
|
|
166
|
+
return {};
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
dataset: {
|
|
170
|
+
type: Array,
|
|
171
|
+
default() {
|
|
172
|
+
return [];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
emits: [
|
|
177
|
+
"selectLegend",
|
|
178
|
+
"selectDatapoint",
|
|
179
|
+
"copyAlt"
|
|
180
|
+
],
|
|
181
|
+
setup(e, { expose: Te, emit: qe }) {
|
|
182
|
+
let Bt = _(() => import("./Tooltip-CxOrWlFy.js")), Vt = _(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), Ht = _(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Ut = _(() => import("./DataTable-D9NvewTT.js")), Wt = _(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Gt = _(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Kt = _(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), qt = _(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_history_plot: Jt } = he(), { isThemeValid: Yt, warnInvalidTheme: Xt } = xe(), k = e, A = C(null), Zt = C(null), Qt = C(0), $t = C(null), en = C(0), tn = C(0), nn = C(0), j = Ue(null), M = Ue(null), rn = C(null), N = C(i()), an = C(!1), on = C(""), P = C([]), sn = C(!1), F = C(null), I = C(!1), cn = C(null), ln = C(!1), L = C(null), un = C(null), dn = C(!1), fn = C(!1), pn = C(null), mn = C(null), hn = C(null), gn = C(null), R = C(null), z = C(null), _n = C({
|
|
183
|
+
x: 0,
|
|
184
|
+
y: 0
|
|
185
|
+
}), vn = C("pointer"), yn = C(!1), bn = f({
|
|
186
|
+
get: () => !!k.dataset && k.dataset.length,
|
|
187
|
+
set: (e) => e
|
|
188
|
+
}), xn = qe;
|
|
189
|
+
Ve(() => {
|
|
190
|
+
ln.value = !0, Cn();
|
|
191
|
+
});
|
|
192
|
+
let Sn = f(() => !!B.value.debug);
|
|
193
|
+
function Cn() {
|
|
194
|
+
if (le(k.dataset) ? (t({
|
|
195
|
+
componentName: "VueUiHistoryPlot",
|
|
196
|
+
type: "dataset",
|
|
197
|
+
debug: Sn.value
|
|
198
|
+
}), On.value = !0) : k.dataset.forEach((e, n) => {
|
|
199
|
+
se({
|
|
200
|
+
datasetObject: e,
|
|
201
|
+
requiredAttributes: ["name", "values"]
|
|
202
|
+
}).forEach((e) => {
|
|
203
|
+
bn.value = !1, t({
|
|
204
|
+
componentName: "VueUiHistoryPlot",
|
|
205
|
+
type: "datasetSerieAttribute",
|
|
206
|
+
property: e,
|
|
207
|
+
index: n,
|
|
208
|
+
debug: Sn.value
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
}), le(k.dataset) || (On.value = B.value.loading), B.value.responsive) {
|
|
212
|
+
let e = Ee(() => {
|
|
213
|
+
let { width: e, height: t } = De({
|
|
214
|
+
chart: A.value,
|
|
215
|
+
title: B.value.style.chart.title.text ? Zt.value : null,
|
|
216
|
+
noTitle: rn.value,
|
|
217
|
+
legend: B.value.style.chart.legend.show ? $t.value : null,
|
|
218
|
+
source: cn.value
|
|
219
|
+
});
|
|
220
|
+
requestAnimationFrame(() => {
|
|
221
|
+
W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = a({
|
|
222
|
+
relator: Math.min(e, t),
|
|
223
|
+
adjuster: 600,
|
|
224
|
+
source: B.value.style.chart.plots.radius,
|
|
225
|
+
threshold: 3,
|
|
226
|
+
fallback: 3
|
|
227
|
+
}), K.value.indexLabels = a({
|
|
228
|
+
relator: Math.min(e, t),
|
|
229
|
+
adjuster: 600,
|
|
230
|
+
source: B.value.style.chart.plots.indexLabels.fontSize,
|
|
231
|
+
threshold: 6,
|
|
232
|
+
fallback: 6
|
|
233
|
+
}), K.value.labels = a({
|
|
234
|
+
relator: Math.min(e, t),
|
|
235
|
+
adjuster: 600,
|
|
236
|
+
source: B.value.style.chart.plots.labels.fontSize,
|
|
237
|
+
threshold: 6,
|
|
238
|
+
fallback: 6
|
|
239
|
+
}), K.value.xAxisLabels = a({
|
|
240
|
+
relator: Math.min(e, t),
|
|
241
|
+
adjuster: 600,
|
|
242
|
+
source: B.value.style.chart.axes.x.labels.fontSize,
|
|
243
|
+
threshold: 6,
|
|
244
|
+
fallback: 6
|
|
245
|
+
}), K.value.xAxisName = a({
|
|
246
|
+
relator: Math.min(e, t),
|
|
247
|
+
adjuster: 600,
|
|
248
|
+
source: B.value.style.chart.axes.x.name.fontSize,
|
|
249
|
+
threshold: 6,
|
|
250
|
+
fallback: 6
|
|
251
|
+
}), K.value.yAxisLabels = a({
|
|
252
|
+
relator: Math.min(e, t),
|
|
253
|
+
adjuster: 600,
|
|
254
|
+
source: B.value.style.chart.axes.y.labels.fontSize,
|
|
255
|
+
threshold: 6,
|
|
256
|
+
fallback: 6
|
|
257
|
+
}), K.value.yAxisName = a({
|
|
258
|
+
relator: Math.min(e, t),
|
|
259
|
+
adjuster: 600,
|
|
260
|
+
source: B.value.style.chart.axes.y.name.fontSize,
|
|
261
|
+
threshold: 6,
|
|
262
|
+
fallback: 6
|
|
263
|
+
})) : (K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = A.value.parentNode, j.value.observe(M.value);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
Be(() => {
|
|
270
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
|
|
271
|
+
});
|
|
272
|
+
function wn() {
|
|
273
|
+
let e = be({
|
|
274
|
+
userConfig: k.config,
|
|
275
|
+
defaultConfig: Jt
|
|
276
|
+
}), t = {}, n = e.theme;
|
|
277
|
+
if (n) if (!Yt.value(e)) Xt(e), t = e;
|
|
278
|
+
else {
|
|
279
|
+
let r = be({
|
|
280
|
+
userConfig: Ne[n] || k.config,
|
|
281
|
+
defaultConfig: e
|
|
282
|
+
});
|
|
283
|
+
t = {
|
|
284
|
+
...be({
|
|
285
|
+
userConfig: k.config,
|
|
286
|
+
defaultConfig: r
|
|
287
|
+
}),
|
|
288
|
+
customPalette: e.customPalette.length ? e.customPalette : ie[n] || l
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
else t = e;
|
|
292
|
+
return t;
|
|
293
|
+
}
|
|
294
|
+
let B = C(wn()), V = f(() => B.value.userOptions.useCursorPointer), Tn = f(() => s({
|
|
295
|
+
defaultConfig: {
|
|
296
|
+
userOptions: { show: !1 },
|
|
297
|
+
table: { show: !1 },
|
|
298
|
+
style: { chart: {
|
|
299
|
+
backgroundColor: "#99999930",
|
|
300
|
+
axes: {
|
|
301
|
+
x: {
|
|
302
|
+
scaleMin: 0,
|
|
303
|
+
scaleMax: 10,
|
|
304
|
+
labels: { show: !1 },
|
|
305
|
+
name: { text: "" }
|
|
306
|
+
},
|
|
307
|
+
y: {
|
|
308
|
+
scaleMin: 0,
|
|
309
|
+
scaleMax: 10,
|
|
310
|
+
labels: { show: !1 },
|
|
311
|
+
name: { text: "" }
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
grid: {
|
|
315
|
+
xAxis: { stroke: "#6A6A6A" },
|
|
316
|
+
horizontalLines: { stroke: "#6A6A6A50" },
|
|
317
|
+
yAxis: { stroke: "#6A6A6A" },
|
|
318
|
+
verticalLines: { stroke: "#6A6A6A50" }
|
|
319
|
+
},
|
|
320
|
+
legend: { backgroundColor: "transparent" },
|
|
321
|
+
paths: {
|
|
322
|
+
useSerieColor: !1,
|
|
323
|
+
stroke: "#6A6A6A"
|
|
324
|
+
},
|
|
325
|
+
plots: {
|
|
326
|
+
stroke: "#6A6A6A",
|
|
327
|
+
indexLabels: { show: !1 },
|
|
328
|
+
labels: { show: !1 }
|
|
329
|
+
}
|
|
330
|
+
} }
|
|
331
|
+
},
|
|
332
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
333
|
+
})), { loading: En, FINAL_DATASET: Dn, manualLoading: On } = _e({
|
|
334
|
+
...We(k),
|
|
335
|
+
FINAL_CONFIG: B,
|
|
336
|
+
prepareConfig: wn,
|
|
337
|
+
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
338
|
+
name: "",
|
|
339
|
+
color: "#CACACA",
|
|
340
|
+
values: [
|
|
341
|
+
{
|
|
342
|
+
label: "",
|
|
343
|
+
x: 1,
|
|
344
|
+
y: 9
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
label: "",
|
|
348
|
+
x: 4,
|
|
349
|
+
y: 1
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
label: "",
|
|
353
|
+
x: 7,
|
|
354
|
+
y: 9
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
label: "",
|
|
358
|
+
x: 9,
|
|
359
|
+
y: 4
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}],
|
|
363
|
+
skeletonConfig: s({
|
|
364
|
+
defaultConfig: B.value,
|
|
365
|
+
userConfig: Tn.value
|
|
366
|
+
})
|
|
367
|
+
}), { userOptionsVisible: kn, setUserOptionsVisibility: An, keepUserOptionState: jn } = Ae({ config: B.value }), { svgRef: H } = je({ config: B.value.style.chart.title });
|
|
368
|
+
Ge(() => k.config, (e) => {
|
|
369
|
+
En.value || (B.value = wn()), kn.value = !B.value.userOptions.showOnChartHover, Cn(), Qt.value += 1, tn.value += 1, en.value += 1, W.value.height = B.value.style.chart.height, W.value.width = B.value.style.chart.width, K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, U.value.showTable = B.value.table.show, U.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
370
|
+
}, { deep: !0 }), Ge(() => k.dataset, (e) => {
|
|
371
|
+
Array.isArray(e) && e.length > 0 && (On.value = !1);
|
|
372
|
+
}, { deep: !0 });
|
|
373
|
+
let { isPrinting: Mn, isImaging: Nn, generatePdf: Pn, generateImage: Fn } = ge({
|
|
374
|
+
elementId: `history_plot_${N.value}`,
|
|
375
|
+
fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
|
|
376
|
+
options: B.value.userOptions.print
|
|
377
|
+
}), In = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), Ln = f(() => ee(B.value.customPalette)), U = C({
|
|
378
|
+
showTable: B.value.table.show,
|
|
379
|
+
showTooltip: B.value.style.chart.tooltip.show
|
|
380
|
+
});
|
|
381
|
+
Ge(B, () => {
|
|
382
|
+
U.value = {
|
|
383
|
+
showTable: B.value.table.show,
|
|
384
|
+
showTooltip: B.value.style.chart.tooltip.show
|
|
385
|
+
};
|
|
386
|
+
}, { immediate: !0 });
|
|
387
|
+
let W = C({
|
|
388
|
+
height: B.value.style.chart.height,
|
|
389
|
+
width: B.value.style.chart.width
|
|
390
|
+
}), Rn = f(() => W.value.width), zn = f(() => W.value.height);
|
|
391
|
+
function Bn() {
|
|
392
|
+
let e = 0;
|
|
393
|
+
gn.value && (e = Array.from(gn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
394
|
+
let n = t.getComputedTextLength();
|
|
395
|
+
return n > e ? n : e;
|
|
396
|
+
}, 0));
|
|
397
|
+
let t = mn.value ? mn.value.getBoundingClientRect().width : 0;
|
|
398
|
+
return e + t + (t ? 24 : 0);
|
|
399
|
+
}
|
|
400
|
+
let Vn = C(0), Hn = Ee((e) => {
|
|
401
|
+
Vn.value = e;
|
|
402
|
+
});
|
|
403
|
+
Ke((e) => {
|
|
404
|
+
let t = hn.value;
|
|
405
|
+
if (!t) return;
|
|
406
|
+
let n = new ResizeObserver((e) => {
|
|
407
|
+
Hn(e[0].contentRect.height);
|
|
408
|
+
});
|
|
409
|
+
n.observe(t), e(() => n.disconnect());
|
|
410
|
+
});
|
|
411
|
+
let Un = f(() => {
|
|
412
|
+
let e = 0;
|
|
413
|
+
pn.value && (e = pn.value.getBBox().height + K.value.xAxisName / 2);
|
|
414
|
+
let t = 0;
|
|
415
|
+
return hn.value && (t = Vn.value), e + t;
|
|
416
|
+
}), G = f(() => {
|
|
417
|
+
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Bn(), r = B.value.style.chart.plots.radius;
|
|
418
|
+
return {
|
|
419
|
+
left: e + n + B.value.style.chart.axes.y.name.offsetX,
|
|
420
|
+
top: t + r,
|
|
421
|
+
right: W.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
|
|
422
|
+
bottom: W.value.height - B.value.style.chart.padding.bottom - Un.value - r - B.value.style.chart.axes.x.name.offsetY,
|
|
423
|
+
width: W.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
|
|
424
|
+
height: W.value.height - t - B.value.style.chart.padding.bottom - Un.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
|
|
425
|
+
};
|
|
426
|
+
}), K = C({
|
|
427
|
+
plots: B.value.style.chart.plots.radius,
|
|
428
|
+
indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
|
|
429
|
+
labels: B.value.style.chart.plots.labels.fontSize,
|
|
430
|
+
xAxisLabels: B.value.style.chart.axes.x.labels.fontSize,
|
|
431
|
+
xAxisName: B.value.style.chart.axes.x.name.fontSize,
|
|
432
|
+
yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
|
|
433
|
+
yAxisName: B.value.style.chart.axes.y.name.fontSize
|
|
434
|
+
}), q = f(() => Dn.value.map((e, t) => {
|
|
435
|
+
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => oe(e)) : void 0;
|
|
436
|
+
return {
|
|
437
|
+
...e,
|
|
438
|
+
color: e.color ? oe(e.color) : Ln.value[t] || l[t] || l[t % l.length],
|
|
439
|
+
temperatureColors: n,
|
|
440
|
+
temperatureAngle: Wn(e.temperatureAngle),
|
|
441
|
+
temperatureIndependant: e.temperatureIndependant === !0,
|
|
442
|
+
usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
|
|
443
|
+
seriesIndex: t
|
|
444
|
+
};
|
|
445
|
+
}));
|
|
446
|
+
function Wn(e = 0) {
|
|
447
|
+
let t = Number(e);
|
|
448
|
+
return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
|
|
449
|
+
}
|
|
450
|
+
let Gn = f(() => Math.max(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Kn = f(() => {
|
|
451
|
+
let e = Math.min(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
|
|
452
|
+
return e < 0 ? e : 0;
|
|
453
|
+
}), qn = f(() => Math.max(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Jn = f(() => {
|
|
454
|
+
let e = Math.min(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
|
|
455
|
+
return e < 0 ? e : 0;
|
|
456
|
+
}), J = f(() => {
|
|
457
|
+
let e = ce(B.value.style.chart.axes.x.scaleMin ?? Kn.value, B.value.style.chart.axes.x.scaleMax ?? Gn.value, B.value.style.chart.axes.x.ticks), t = ce(B.value.style.chart.axes.y.scaleMin ?? Jn.value, B.value.style.chart.axes.y.scaleMax ?? qn.value, B.value.style.chart.axes.y.ticks);
|
|
458
|
+
return {
|
|
459
|
+
x: e,
|
|
460
|
+
y: t,
|
|
461
|
+
tickX: e.ticks.map((t) => ({
|
|
462
|
+
x: G.value.left + (t - e.min) / (e.max - e.min) * G.value.width,
|
|
463
|
+
y1: G.value.top,
|
|
464
|
+
y2: G.value.bottom,
|
|
465
|
+
value: t
|
|
466
|
+
})),
|
|
467
|
+
tickY: t.ticks.map((e) => ({
|
|
468
|
+
y: G.value.bottom - (e - t.min) / (t.max - t.min) * G.value.height,
|
|
469
|
+
x1: G.value.left,
|
|
470
|
+
x2: G.value.right,
|
|
471
|
+
value: e
|
|
472
|
+
}))
|
|
473
|
+
};
|
|
474
|
+
});
|
|
475
|
+
function Yn(e) {
|
|
476
|
+
let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
|
|
477
|
+
return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
|
|
478
|
+
}
|
|
479
|
+
function Xn(e) {
|
|
480
|
+
let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
|
|
481
|
+
return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
|
|
482
|
+
}
|
|
483
|
+
let Y = f(() => q.value.filter((e) => !P.value.includes(e.seriesIndex)).map((e, t) => {
|
|
484
|
+
let r = e.values.map((t, n) => ({
|
|
485
|
+
valueX: t.x,
|
|
486
|
+
valueY: t.y,
|
|
487
|
+
label: t.label,
|
|
488
|
+
x: Yn(t.x),
|
|
489
|
+
y: Xn(t.y),
|
|
490
|
+
color: e.color,
|
|
491
|
+
seriesName: e.name,
|
|
492
|
+
id: i()
|
|
493
|
+
})), a = e.smooth ? n(r) : r.map((e) => `${e.x},${e.y} `).join("").trim();
|
|
494
|
+
return {
|
|
495
|
+
...e,
|
|
496
|
+
gradientIndex: t,
|
|
497
|
+
plots: r,
|
|
498
|
+
path: `M${a}`
|
|
499
|
+
};
|
|
500
|
+
})), Zn = f(() => {
|
|
501
|
+
if (F.value === null || R.value === null) return Y.value;
|
|
502
|
+
let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
|
|
503
|
+
if (e === -1) return Y.value;
|
|
504
|
+
let t = Y.value[e];
|
|
505
|
+
return [
|
|
506
|
+
...Y.value.slice(0, e),
|
|
507
|
+
...Y.value.slice(e + 1),
|
|
508
|
+
t
|
|
509
|
+
];
|
|
510
|
+
}), Qn = f(() => Y.value.some((e) => X(e)));
|
|
511
|
+
function X(e) {
|
|
512
|
+
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
513
|
+
}
|
|
514
|
+
function $n(e) {
|
|
515
|
+
return X(e) && e.usePlotTemperatureColors;
|
|
516
|
+
}
|
|
517
|
+
function er(e) {
|
|
518
|
+
let t = Array.isArray(e?.plots) ? e.plots : [];
|
|
519
|
+
if (!t.length) return {
|
|
520
|
+
minX: 0,
|
|
521
|
+
maxX: 0,
|
|
522
|
+
minY: 0,
|
|
523
|
+
maxY: 0,
|
|
524
|
+
width: 0,
|
|
525
|
+
height: 0
|
|
526
|
+
};
|
|
527
|
+
let n = t.map((e) => e.x), r = t.map((e) => e.y), i = Math.min(...n), a = Math.max(...n), o = Math.min(...r), s = Math.max(...r);
|
|
528
|
+
return {
|
|
529
|
+
minX: i,
|
|
530
|
+
maxX: a,
|
|
531
|
+
minY: o,
|
|
532
|
+
maxY: s,
|
|
533
|
+
width: a - i,
|
|
534
|
+
height: s - o
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
function tr() {
|
|
538
|
+
let e = G.value;
|
|
539
|
+
return {
|
|
540
|
+
minX: e.left,
|
|
541
|
+
maxX: e.right,
|
|
542
|
+
minY: e.top,
|
|
543
|
+
maxY: e.bottom,
|
|
544
|
+
width: e.width,
|
|
545
|
+
height: e.height
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
function nr(e) {
|
|
549
|
+
return e?.temperatureIndependant ? er(e) : tr();
|
|
550
|
+
}
|
|
551
|
+
function rr(e) {
|
|
552
|
+
let t = Wn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = nr(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
|
+
return {
|
|
554
|
+
x1: a - n * s,
|
|
555
|
+
y1: o - r * s,
|
|
556
|
+
x2: a + n * s,
|
|
557
|
+
y2: o + r * s
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
function ir(e, t) {
|
|
561
|
+
let { x1: n, y1: r, x2: i, y2: a } = rr(e), o = i - n, s = a - r, c = o * o + s * s;
|
|
562
|
+
if (!c) return 0;
|
|
563
|
+
let l = ((t.x - n) * o + (t.y - r) * s) / c;
|
|
564
|
+
return Math.min(1, Math.max(0, l));
|
|
565
|
+
}
|
|
566
|
+
function Z(e, t) {
|
|
567
|
+
return pe({
|
|
568
|
+
colors: e.temperatureColors,
|
|
569
|
+
ratio: ir(e, t)
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
function ar(e, t) {
|
|
573
|
+
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`;
|
|
574
|
+
}
|
|
575
|
+
function or(e, t, n) {
|
|
576
|
+
return $n(e) ? B.value.style.chart.plots.gradient.show ? `url(#${ar(e, t)})` : Z(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${N.value})` : t.color;
|
|
577
|
+
}
|
|
578
|
+
function sr(e, t) {
|
|
579
|
+
return $n(e) ? Z(e, t) : e.color;
|
|
580
|
+
}
|
|
581
|
+
function cr(e, t) {
|
|
582
|
+
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? de(sr(e, t)) : B.value.style.chart.plots.indexLabels.color;
|
|
583
|
+
}
|
|
584
|
+
function lr(e, t) {
|
|
585
|
+
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
586
|
+
return n && $n(n) ? Z(n, t) : t.color;
|
|
587
|
+
}
|
|
588
|
+
function ur(e) {
|
|
589
|
+
return X(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${N.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
|
|
590
|
+
}
|
|
591
|
+
function dr(e) {
|
|
592
|
+
return F.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
|
|
593
|
+
}
|
|
594
|
+
f(() => F.value !== null && R.value !== null);
|
|
595
|
+
let fr = C(!1);
|
|
596
|
+
function Q() {
|
|
597
|
+
return B.value.useCssAnimation && !En.value && !fr.value;
|
|
598
|
+
}
|
|
599
|
+
function pr() {
|
|
600
|
+
return "opacity 0.2s ease-in-out";
|
|
601
|
+
}
|
|
602
|
+
function mr() {
|
|
603
|
+
P.value.length ? P.value = [] : yr.value.forEach((e) => {
|
|
604
|
+
P.value.push(e.seriesIndex);
|
|
605
|
+
}), xn("selectLegend", Y.value);
|
|
606
|
+
}
|
|
607
|
+
function hr(e) {
|
|
608
|
+
P.value.includes(e) ? P.value = P.value.filter((t) => t !== e) : P.value.push(e), xn("selectLegend", Y.value);
|
|
609
|
+
}
|
|
610
|
+
function gr(e) {
|
|
611
|
+
return q.value.length ? q.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
|
|
612
|
+
}
|
|
613
|
+
function _r(e) {
|
|
614
|
+
let t = gr(e);
|
|
615
|
+
t !== null && P.value.includes(t.seriesIndex) && hr(t.seriesIndex);
|
|
616
|
+
}
|
|
617
|
+
function vr(e) {
|
|
618
|
+
let t = gr(e);
|
|
619
|
+
t !== null && (P.value.includes(t.seriesIndex) || hr(t.seriesIndex));
|
|
620
|
+
}
|
|
621
|
+
let yr = f(() => q.value.map((e) => {
|
|
622
|
+
let t = X(e) ? e.temperatureColors : null;
|
|
623
|
+
return {
|
|
624
|
+
...e,
|
|
625
|
+
gradientColors: t,
|
|
626
|
+
opacity: P.value.includes(e.seriesIndex) ? .5 : 1,
|
|
627
|
+
segregate: () => hr(e.seriesIndex),
|
|
628
|
+
isSegregated: P.value.includes(e.seriesIndex),
|
|
629
|
+
shape: t ? "gradient" : "circle"
|
|
630
|
+
};
|
|
631
|
+
})), br = f(() => ({
|
|
632
|
+
cy: "history-plot-div-legend",
|
|
633
|
+
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
634
|
+
color: B.value.style.chart.legend.color,
|
|
635
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
636
|
+
paddingBottom: 12,
|
|
637
|
+
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
638
|
+
}));
|
|
639
|
+
function xr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
640
|
+
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
641
|
+
datapoint: {
|
|
642
|
+
...e,
|
|
643
|
+
plotIndex: t,
|
|
644
|
+
seriesIndex: n
|
|
645
|
+
},
|
|
646
|
+
seriesIndex: n
|
|
647
|
+
}), xn("selectDatapoint", e);
|
|
648
|
+
}
|
|
649
|
+
function Sr(e) {
|
|
650
|
+
sn.value = e, nn.value += 1;
|
|
651
|
+
}
|
|
652
|
+
let Cr = C(null);
|
|
653
|
+
function wr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
654
|
+
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
655
|
+
datapoint: {
|
|
656
|
+
...e,
|
|
657
|
+
plotIndex: t,
|
|
658
|
+
seriesIndex: n
|
|
659
|
+
},
|
|
660
|
+
seriesIndex: n
|
|
661
|
+
}), !(vn.value === "keyboard" && R.value === n && z.value === t) && (an.value = !1, F.value = null);
|
|
662
|
+
}
|
|
663
|
+
function Tr(e, t) {
|
|
664
|
+
if (!H.value) return;
|
|
665
|
+
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
666
|
+
if (!n) return;
|
|
667
|
+
let r = n.plots[t];
|
|
668
|
+
if (!r) return;
|
|
669
|
+
let i = re(r.x, r.y, H.value);
|
|
670
|
+
i && (_n.value = i);
|
|
671
|
+
}
|
|
672
|
+
function Er({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
673
|
+
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
674
|
+
datapoint: {
|
|
675
|
+
...e,
|
|
676
|
+
plotIndex: t,
|
|
677
|
+
seriesIndex: n
|
|
678
|
+
},
|
|
679
|
+
seriesIndex: n
|
|
680
|
+
}), R.value = n, z.value = t, vn.value = r, fr.value = !0;
|
|
681
|
+
let i = lr(n, e), a = {
|
|
682
|
+
...e,
|
|
683
|
+
color: i
|
|
684
|
+
};
|
|
685
|
+
Cr.value = {
|
|
686
|
+
datapoint: a,
|
|
687
|
+
color: i,
|
|
688
|
+
seriesIndex: n,
|
|
689
|
+
plotIndex: t,
|
|
690
|
+
config: B.value,
|
|
691
|
+
series: q.value
|
|
692
|
+
}, F.value = e;
|
|
693
|
+
let s = B.value.style.chart.tooltip.customFormat;
|
|
694
|
+
if (I.value = !1, me(s)) try {
|
|
695
|
+
let e = s({
|
|
696
|
+
seriesIndex: n,
|
|
697
|
+
datapoint: a,
|
|
698
|
+
color: i,
|
|
699
|
+
plotIndex: t,
|
|
700
|
+
series: q.value,
|
|
701
|
+
config: B.value
|
|
702
|
+
});
|
|
703
|
+
typeof e == "string" && (on.value = e, I.value = !0);
|
|
704
|
+
} catch {
|
|
705
|
+
console.warn("Custom format cannot be applied."), I.value = !1;
|
|
706
|
+
}
|
|
707
|
+
if (!I.value) {
|
|
708
|
+
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"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, o({
|
|
710
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
711
|
+
v: e.valueX,
|
|
712
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
713
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
714
|
+
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, o({
|
|
715
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
716
|
+
v: e.valueY,
|
|
717
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
718
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
719
|
+
}))}</div>`, on.value = `<div>${t}</div>`;
|
|
720
|
+
}
|
|
721
|
+
an.value = !0, r === "keyboard" && ze(() => {
|
|
722
|
+
Tr(n, t);
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
f(() => ({ head: Y.value.map((e) => ({
|
|
726
|
+
name: e.name,
|
|
727
|
+
color: e.color
|
|
728
|
+
})) }));
|
|
729
|
+
let $ = f(() => {
|
|
730
|
+
let e = [
|
|
731
|
+
B.value.table.columnNames.series,
|
|
732
|
+
B.value.table.columnNames.datapoint,
|
|
733
|
+
B.value.table.columnNames.x,
|
|
734
|
+
B.value.table.columnNames.y
|
|
735
|
+
];
|
|
736
|
+
return {
|
|
737
|
+
head: e,
|
|
738
|
+
body: Y.value.flatMap((e) => e.plots.map((e) => [
|
|
739
|
+
{
|
|
740
|
+
color: e.color,
|
|
741
|
+
name: e.seriesName
|
|
742
|
+
},
|
|
743
|
+
e.label,
|
|
744
|
+
u(B.value.style.chart.axes.x.labels.formatter, e.valueX, o({
|
|
745
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
746
|
+
v: e.valueX,
|
|
747
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
748
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
749
|
+
})),
|
|
750
|
+
u(B.value.style.chart.axes.y.labels.formatter, e.valueY, o({
|
|
751
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
752
|
+
v: e.valueY,
|
|
753
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
754
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
755
|
+
}))
|
|
756
|
+
])),
|
|
757
|
+
config: {
|
|
758
|
+
th: {
|
|
759
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
760
|
+
color: B.value.table.th.color,
|
|
761
|
+
outline: B.value.table.th.outline
|
|
762
|
+
},
|
|
763
|
+
td: {
|
|
764
|
+
backgroundColor: B.value.table.td.backgroundColor,
|
|
765
|
+
color: B.value.table.td.color,
|
|
766
|
+
outline: B.value.table.td.outline
|
|
767
|
+
},
|
|
768
|
+
breakpoint: B.value.table.responsiveBreakpoint
|
|
769
|
+
},
|
|
770
|
+
colNames: e
|
|
771
|
+
};
|
|
772
|
+
});
|
|
773
|
+
function Dr(e = null) {
|
|
774
|
+
ze(() => {
|
|
775
|
+
let t = [
|
|
776
|
+
[B.value.table.columnNames.series],
|
|
777
|
+
[B.value.table.columnNames.datapoint],
|
|
778
|
+
[B.value.table.columnNames.x],
|
|
779
|
+
[B.value.table.columnNames.y]
|
|
780
|
+
], n = Y.value.flatMap((e) => e.plots.map((e) => [
|
|
781
|
+
[e.seriesName],
|
|
782
|
+
[e.label],
|
|
783
|
+
[e.valueX],
|
|
784
|
+
[e.valueY]
|
|
785
|
+
])), r = te([
|
|
786
|
+
[B.value.style.chart.title.text],
|
|
787
|
+
[B.value.style.chart.title.subtitle.text],
|
|
788
|
+
t
|
|
789
|
+
].concat(n));
|
|
790
|
+
e ? e(r) : ae({
|
|
791
|
+
csvContent: r,
|
|
792
|
+
title: B.value.style.chart.title.text || "vue-ui-history-plot"
|
|
793
|
+
});
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
let Or = C(!1);
|
|
797
|
+
function kr() {
|
|
798
|
+
Or.value = !Or.value;
|
|
799
|
+
}
|
|
800
|
+
function Ar() {
|
|
801
|
+
U.value.showTable = !U.value.showTable;
|
|
802
|
+
}
|
|
803
|
+
function jr() {
|
|
804
|
+
U.value.showTooltip = !U.value.showTooltip;
|
|
805
|
+
}
|
|
806
|
+
function Mr() {
|
|
807
|
+
return Y.value;
|
|
808
|
+
}
|
|
809
|
+
async function Nr({ scale: e = 2 } = {}) {
|
|
810
|
+
if (!A.value) return;
|
|
811
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
812
|
+
domElement: A.value,
|
|
813
|
+
base64: !0,
|
|
814
|
+
img: !0,
|
|
815
|
+
scale: e
|
|
816
|
+
});
|
|
817
|
+
return {
|
|
818
|
+
imageUri: i,
|
|
819
|
+
base64: a,
|
|
820
|
+
title: B.value.style.chart.title.text,
|
|
821
|
+
width: t,
|
|
822
|
+
height: n,
|
|
823
|
+
aspectRatio: r
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
Se({
|
|
827
|
+
timeLabelsEls: hn,
|
|
828
|
+
timeLabels: f(() => J.value.tickX),
|
|
829
|
+
slicer: f(() => ({
|
|
830
|
+
start: 0,
|
|
831
|
+
end: J.value.tickX.length
|
|
832
|
+
})),
|
|
833
|
+
configRef: B,
|
|
834
|
+
rotationPath: [
|
|
835
|
+
"style",
|
|
836
|
+
"chart",
|
|
837
|
+
"axes",
|
|
838
|
+
"x",
|
|
839
|
+
"labels",
|
|
840
|
+
"rotation"
|
|
841
|
+
],
|
|
842
|
+
autoRotatePath: [
|
|
843
|
+
"style",
|
|
844
|
+
"chart",
|
|
845
|
+
"axes",
|
|
846
|
+
"x",
|
|
847
|
+
"labels",
|
|
848
|
+
"autoRotate",
|
|
849
|
+
"enable"
|
|
850
|
+
],
|
|
851
|
+
isAutoSize: !1,
|
|
852
|
+
width: Rn,
|
|
853
|
+
height: zn,
|
|
854
|
+
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
855
|
+
rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
|
|
856
|
+
});
|
|
857
|
+
let Pr = f(() => {
|
|
858
|
+
let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
|
|
859
|
+
return {
|
|
860
|
+
component: e ? qt : Ht,
|
|
861
|
+
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
862
|
+
props: e ? {
|
|
863
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
864
|
+
color: B.value.table.th.color,
|
|
865
|
+
headerColor: B.value.table.th.color,
|
|
866
|
+
headerBg: B.value.table.th.backgroundColor,
|
|
867
|
+
isFullscreen: sn.value,
|
|
868
|
+
fullscreenParent: A.value,
|
|
869
|
+
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
870
|
+
} : {
|
|
871
|
+
hideDetails: !0,
|
|
872
|
+
config: {
|
|
873
|
+
open: t,
|
|
874
|
+
maxHeight: 1e4,
|
|
875
|
+
body: {
|
|
876
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
877
|
+
color: B.value.style.chart.color
|
|
878
|
+
},
|
|
879
|
+
head: {
|
|
880
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
881
|
+
color: B.value.style.chart.color
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
});
|
|
887
|
+
Ge(() => U.value.showTable, (e) => {
|
|
888
|
+
B.value.table.show || (e && B.value.table.useDialog && L.value ? L.value.open() : "close" in L.value && L.value.close());
|
|
889
|
+
});
|
|
890
|
+
function Fr() {
|
|
891
|
+
U.value.showTable = !1, un.value && un.value.setTableIconState(!1);
|
|
892
|
+
}
|
|
893
|
+
let Ir = f(() => B.value.style.chart.backgroundColor), Lr = f(() => B.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = ye({
|
|
894
|
+
svg: H,
|
|
895
|
+
title: f(() => B.value.style.chart.title),
|
|
896
|
+
legend: Lr,
|
|
897
|
+
legendItems: yr,
|
|
898
|
+
backgroundColor: Ir
|
|
899
|
+
});
|
|
900
|
+
async function Br({ isCb: e }) {
|
|
901
|
+
fn.value = !0, await ze();
|
|
902
|
+
try {
|
|
903
|
+
if (e) {
|
|
904
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await zr();
|
|
905
|
+
await Promise.resolve(B.value.userOptions.callbacks.svg({
|
|
906
|
+
blob: e,
|
|
907
|
+
url: t,
|
|
908
|
+
text: n,
|
|
909
|
+
dataUrl: r
|
|
910
|
+
}));
|
|
911
|
+
} else await Promise.resolve(Rr());
|
|
912
|
+
} finally {
|
|
913
|
+
fn.value = !1;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
function Vr(e) {
|
|
917
|
+
if (e?.stage === "start") {
|
|
918
|
+
dn.value = !0;
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
if (e?.stage === "end") {
|
|
922
|
+
dn.value = !1;
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
Fn();
|
|
926
|
+
}
|
|
927
|
+
async function Hr() {
|
|
928
|
+
if (xn("copyAlt", {
|
|
929
|
+
config: B.value,
|
|
930
|
+
dataset: Y.value
|
|
931
|
+
}), !B.value.userOptions.callbacks.altCopy) {
|
|
932
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
935
|
+
await Promise.resolve(B.value.userOptions.callbacks.altCopy({
|
|
936
|
+
config: B.value,
|
|
937
|
+
dataset: Y.value
|
|
938
|
+
}));
|
|
939
|
+
}
|
|
940
|
+
let Ur = f(() => ({
|
|
941
|
+
head: $.value.head,
|
|
942
|
+
body: $.value.body.map((e) => [
|
|
943
|
+
e[0]?.name || "",
|
|
944
|
+
e[1],
|
|
945
|
+
e[2],
|
|
946
|
+
e[3]
|
|
947
|
+
]),
|
|
948
|
+
caption: B.value.a11y.translations.tableCaption,
|
|
949
|
+
notice: B.value.a11y.translations.tableAvailable
|
|
950
|
+
}));
|
|
951
|
+
function Wr(e) {
|
|
952
|
+
return Y.value.findIndex((t) => t.seriesIndex === e);
|
|
953
|
+
}
|
|
954
|
+
function Gr() {
|
|
955
|
+
if (R.value !== null && z.value !== null) {
|
|
956
|
+
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
957
|
+
e && wr({
|
|
958
|
+
datapoint: e,
|
|
959
|
+
plotIndex: z.value,
|
|
960
|
+
seriesIndex: R.value
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
R.value = null, z.value = null, vn.value = "pointer", an.value = !1, F.value = null;
|
|
964
|
+
}
|
|
965
|
+
function Kr() {
|
|
966
|
+
R.value = null, z.value = null, yn.value = !0;
|
|
967
|
+
}
|
|
968
|
+
function qr() {
|
|
969
|
+
Gr(), yn.value = !1;
|
|
970
|
+
}
|
|
971
|
+
function Jr(e, t) {
|
|
972
|
+
if (!e?.plots?.length) return null;
|
|
973
|
+
let n = e.plots.length;
|
|
974
|
+
return (t % n + n) % n;
|
|
975
|
+
}
|
|
976
|
+
function Yr({ seriesIndex: e, plotIndex: t, direction: n }) {
|
|
977
|
+
if (!Y.value.length) return null;
|
|
978
|
+
let r = Wr(e);
|
|
979
|
+
if (r === -1) return null;
|
|
980
|
+
if (n === "up" || n === "down") {
|
|
981
|
+
let e = Y.value[r];
|
|
982
|
+
if (!e?.plots?.length) return null;
|
|
983
|
+
let i = Jr(e, t + (n === "up" ? -1 : 1));
|
|
984
|
+
return {
|
|
985
|
+
seriesIndex: e.seriesIndex,
|
|
986
|
+
plotIndex: i
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
if (n === "left" || n === "right") {
|
|
990
|
+
let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
|
|
991
|
+
if (!i?.plots?.length) return null;
|
|
992
|
+
let a = Math.min(t, i.plots.length - 1);
|
|
993
|
+
return {
|
|
994
|
+
seriesIndex: i.seriesIndex,
|
|
995
|
+
plotIndex: a
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
return null;
|
|
999
|
+
}
|
|
1000
|
+
function Xr(e) {
|
|
1001
|
+
if (!H.value || Or.value || document.activeElement !== H.value || !Y.value.length) return;
|
|
1002
|
+
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
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
1004
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1005
|
+
Gr();
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
if (a) {
|
|
1009
|
+
if (R.value === null || z.value === null) return;
|
|
1010
|
+
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
1011
|
+
if (!e) return;
|
|
1012
|
+
xr({
|
|
1013
|
+
datapoint: e,
|
|
1014
|
+
plotIndex: z.value,
|
|
1015
|
+
seriesIndex: R.value
|
|
1016
|
+
});
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
let s = null;
|
|
1020
|
+
if (R.value === null || z.value === null) {
|
|
1021
|
+
let e = Y.value[0];
|
|
1022
|
+
if (!e?.plots?.length) return;
|
|
1023
|
+
s = {
|
|
1024
|
+
seriesIndex: e.seriesIndex,
|
|
1025
|
+
plotIndex: 0
|
|
1026
|
+
};
|
|
1027
|
+
} else r ? s = Yr({
|
|
1028
|
+
seriesIndex: R.value,
|
|
1029
|
+
plotIndex: z.value,
|
|
1030
|
+
direction: "up"
|
|
1031
|
+
}) : i ? s = Yr({
|
|
1032
|
+
seriesIndex: R.value,
|
|
1033
|
+
plotIndex: z.value,
|
|
1034
|
+
direction: "down"
|
|
1035
|
+
}) : t ? s = Yr({
|
|
1036
|
+
seriesIndex: R.value,
|
|
1037
|
+
plotIndex: z.value,
|
|
1038
|
+
direction: "left"
|
|
1039
|
+
}) : n && (s = Yr({
|
|
1040
|
+
seriesIndex: R.value,
|
|
1041
|
+
plotIndex: z.value,
|
|
1042
|
+
direction: "right"
|
|
1043
|
+
}));
|
|
1044
|
+
if (!s) return;
|
|
1045
|
+
let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
|
|
1046
|
+
c && Er({
|
|
1047
|
+
datapoint: c,
|
|
1048
|
+
plotIndex: s.plotIndex,
|
|
1049
|
+
seriesIndex: s.seriesIndex,
|
|
1050
|
+
triggerMode: "keyboard"
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
return Te({
|
|
1054
|
+
getData: Mr,
|
|
1055
|
+
getImage: Nr,
|
|
1056
|
+
generatePdf: Pn,
|
|
1057
|
+
generateCsv: Dr,
|
|
1058
|
+
generateImage: Fn,
|
|
1059
|
+
generateSvg: Br,
|
|
1060
|
+
hideSeries: vr,
|
|
1061
|
+
showSeries: _r,
|
|
1062
|
+
toggleTable: Ar,
|
|
1063
|
+
toggleTooltip: jr,
|
|
1064
|
+
toggleAnnotator: kr,
|
|
1065
|
+
toggleFullscreen: Sr,
|
|
1066
|
+
copyAlt: Hr
|
|
1067
|
+
}), (e, t) => (S(), h("div", {
|
|
1068
|
+
id: `history_plot_${N.value}`,
|
|
1069
|
+
ref_key: "historyPlotChart",
|
|
1070
|
+
ref: A,
|
|
1071
|
+
class: y({
|
|
1072
|
+
"vue-data-ui-component": !0,
|
|
1073
|
+
"vue-ui-history-plot": !0,
|
|
1074
|
+
"vue-data-ui-wrapper-fullscreen": sn.value
|
|
1075
|
+
}),
|
|
1076
|
+
style: x(`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] ||= () => D(An)(!0),
|
|
1078
|
+
onMouseleave: t[3] ||= () => D(An)(!1)
|
|
1079
|
+
}, [
|
|
1080
|
+
g("div", {
|
|
1081
|
+
id: `chart-instructions-${N.value}`,
|
|
1082
|
+
class: "sr-only"
|
|
1083
|
+
}, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1084
|
+
Ur.value.body.length ? (S(), p(ke, {
|
|
1085
|
+
key: 0,
|
|
1086
|
+
uid: N.value,
|
|
1087
|
+
head: Ur.value.head,
|
|
1088
|
+
body: Ur.value.body,
|
|
1089
|
+
caption: Ur.value.caption,
|
|
1090
|
+
notice: Ur.value.notice
|
|
1091
|
+
}, null, 8, [
|
|
1092
|
+
"uid",
|
|
1093
|
+
"head",
|
|
1094
|
+
"body",
|
|
1095
|
+
"caption",
|
|
1096
|
+
"notice"
|
|
1097
|
+
])) : m("", !0),
|
|
1098
|
+
T(e.$slots, "userConfig", {}, void 0, !0),
|
|
1099
|
+
B.value.userOptions.buttons.annotator ? (S(), p(D(Wt), {
|
|
1100
|
+
key: 1,
|
|
1101
|
+
svgRef: D(H),
|
|
1102
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1103
|
+
color: B.value.style.chart.color,
|
|
1104
|
+
active: Or.value,
|
|
1105
|
+
isCursorPointer: V.value,
|
|
1106
|
+
onClose: kr
|
|
1107
|
+
}, {
|
|
1108
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1109
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
1110
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
1111
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
1112
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
1113
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
1114
|
+
_: 3
|
|
1115
|
+
}, 8, [
|
|
1116
|
+
"svgRef",
|
|
1117
|
+
"backgroundColor",
|
|
1118
|
+
"color",
|
|
1119
|
+
"active",
|
|
1120
|
+
"isCursorPointer"
|
|
1121
|
+
])) : m("", !0),
|
|
1122
|
+
In.value ? (S(), h("div", {
|
|
1123
|
+
key: 2,
|
|
1124
|
+
ref_key: "noTitle",
|
|
1125
|
+
ref: rn,
|
|
1126
|
+
class: "vue-data-ui-no-title-space",
|
|
1127
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1128
|
+
}, null, 512)) : m("", !0),
|
|
1129
|
+
B.value.style.chart.title.text ? (S(), h("div", {
|
|
1130
|
+
key: 3,
|
|
1131
|
+
ref_key: "chartTitle",
|
|
1132
|
+
ref: Zt,
|
|
1133
|
+
class: "vue-ui-xy-title",
|
|
1134
|
+
style: x(`font-family:${B.value.style.fontFamily}`)
|
|
1135
|
+
}, [(S(), p(we, {
|
|
1136
|
+
key: `title_${Qt.value}`,
|
|
1137
|
+
config: {
|
|
1138
|
+
title: {
|
|
1139
|
+
cy: "history-plot-div-title",
|
|
1140
|
+
...B.value.style.chart.title
|
|
1141
|
+
},
|
|
1142
|
+
subtitle: {
|
|
1143
|
+
cy: "history-plot-div-subtitle",
|
|
1144
|
+
...B.value.style.chart.title.subtitle
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}, null, 8, ["config"]))], 4)) : m("", !0),
|
|
1148
|
+
g("div", { id: `legend-top-${N.value}` }, null, 8, Xe),
|
|
1149
|
+
B.value.userOptions.show && bn.value && (D(jn) || D(kn)) ? (S(), p(D(Gt), {
|
|
1150
|
+
ref_key: "userOptionsRef",
|
|
1151
|
+
ref: un,
|
|
1152
|
+
key: `user_option_${nn.value}`,
|
|
1153
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1154
|
+
color: B.value.style.chart.color,
|
|
1155
|
+
isPrinting: D(Mn),
|
|
1156
|
+
isImaging: D(Nn),
|
|
1157
|
+
uid: N.value,
|
|
1158
|
+
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1159
|
+
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1160
|
+
hasImg: B.value.userOptions.buttons.img,
|
|
1161
|
+
hasSvg: B.value.userOptions.buttons.svg,
|
|
1162
|
+
hasXls: B.value.userOptions.buttons.csv,
|
|
1163
|
+
hasTable: B.value.userOptions.buttons.table,
|
|
1164
|
+
hasLabel: !1,
|
|
1165
|
+
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1166
|
+
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1167
|
+
isFullscreen: sn.value,
|
|
1168
|
+
chartElement: A.value,
|
|
1169
|
+
position: B.value.userOptions.position,
|
|
1170
|
+
isTooltip: U.value.showTooltip,
|
|
1171
|
+
titles: { ...B.value.userOptions.buttonTitles },
|
|
1172
|
+
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1173
|
+
isAnnotation: Or.value,
|
|
1174
|
+
callbacks: B.value.userOptions.callbacks,
|
|
1175
|
+
printScale: B.value.userOptions.print.scale,
|
|
1176
|
+
tableDialog: B.value.table.useDialog,
|
|
1177
|
+
isCursorPointer: V.value,
|
|
1178
|
+
onToggleFullscreen: Sr,
|
|
1179
|
+
onGeneratePdf: D(Pn),
|
|
1180
|
+
onGenerateCsv: Dr,
|
|
1181
|
+
onGenerateImage: Vr,
|
|
1182
|
+
onGenerateSvg: Br,
|
|
1183
|
+
onToggleTable: Ar,
|
|
1184
|
+
onToggleTooltip: jr,
|
|
1185
|
+
onToggleAnnotator: kr,
|
|
1186
|
+
onCopyAlt: Hr,
|
|
1187
|
+
style: x({ visibility: D(jn) ? D(kn) ? "visible" : "hidden" : "visible" })
|
|
1188
|
+
}, Fe({ _: 2 }, [
|
|
1189
|
+
e.$slots.menuIcon ? {
|
|
1190
|
+
name: "menuIcon",
|
|
1191
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
|
|
1192
|
+
isOpen: t,
|
|
1193
|
+
color: n
|
|
1194
|
+
})), void 0, !0)]),
|
|
1195
|
+
key: "0"
|
|
1196
|
+
} : void 0,
|
|
1197
|
+
e.$slots.optionTooltip ? {
|
|
1198
|
+
name: "optionTooltip",
|
|
1199
|
+
fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1200
|
+
key: "1"
|
|
1201
|
+
} : void 0,
|
|
1202
|
+
e.$slots.optionPdf ? {
|
|
1203
|
+
name: "optionPdf",
|
|
1204
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1205
|
+
key: "2"
|
|
1206
|
+
} : void 0,
|
|
1207
|
+
e.$slots.optionCsv ? {
|
|
1208
|
+
name: "optionCsv",
|
|
1209
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1210
|
+
key: "3"
|
|
1211
|
+
} : void 0,
|
|
1212
|
+
e.$slots.optionImg ? {
|
|
1213
|
+
name: "optionImg",
|
|
1214
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1215
|
+
key: "4"
|
|
1216
|
+
} : void 0,
|
|
1217
|
+
e.$slots.optionSvg ? {
|
|
1218
|
+
name: "optionSvg",
|
|
1219
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1220
|
+
key: "5"
|
|
1221
|
+
} : void 0,
|
|
1222
|
+
e.$slots.optionTable ? {
|
|
1223
|
+
name: "optionTable",
|
|
1224
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1225
|
+
key: "6"
|
|
1226
|
+
} : void 0,
|
|
1227
|
+
e.$slots.optionFullscreen ? {
|
|
1228
|
+
name: "optionFullscreen",
|
|
1229
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
|
|
1230
|
+
toggleFullscreen: t,
|
|
1231
|
+
isFullscreen: n
|
|
1232
|
+
})), void 0, !0)]),
|
|
1233
|
+
key: "7"
|
|
1234
|
+
} : void 0,
|
|
1235
|
+
e.$slots.optionAnnotator ? {
|
|
1236
|
+
name: "optionAnnotator",
|
|
1237
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
|
|
1238
|
+
toggleAnnotator: t,
|
|
1239
|
+
isAnnotator: n
|
|
1240
|
+
})), void 0, !0)]),
|
|
1241
|
+
key: "8"
|
|
1242
|
+
} : void 0,
|
|
1243
|
+
e.$slots.optionAltCopy ? {
|
|
1244
|
+
name: "optionAltCopy",
|
|
1245
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1246
|
+
key: "9"
|
|
1247
|
+
} : void 0,
|
|
1248
|
+
e.$slots["custom-menu-before"] ? {
|
|
1249
|
+
name: "custom-menu-before",
|
|
1250
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1251
|
+
key: "10"
|
|
1252
|
+
} : void 0,
|
|
1253
|
+
e.$slots["custom-menu-after"] ? {
|
|
1254
|
+
name: "custom-menu-after",
|
|
1255
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1256
|
+
key: "11"
|
|
1257
|
+
} : void 0
|
|
1258
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
|
|
1259
|
+
g("div", Ze, [(S(), h("svg", {
|
|
1260
|
+
ref_key: "svgRef",
|
|
1261
|
+
ref: H,
|
|
1262
|
+
xmlns: D(fe),
|
|
1263
|
+
viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
|
|
1264
|
+
style: x(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
|
|
1265
|
+
"aria-describedby": `chart-instructions-${N.value}`,
|
|
1266
|
+
tabindex: "0",
|
|
1267
|
+
onFocus: Kr,
|
|
1268
|
+
onBlur: qr,
|
|
1269
|
+
onKeydown: Xr
|
|
1270
|
+
}, [
|
|
1271
|
+
Le(D(Kt)),
|
|
1272
|
+
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1273
|
+
key: 0,
|
|
1274
|
+
x: G.value.left,
|
|
1275
|
+
y: G.value.top,
|
|
1276
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1277
|
+
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1278
|
+
style: { pointerEvents: "none" }
|
|
1279
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : m("", !0),
|
|
1280
|
+
B.value.style.chart.plots.gradient.show || Qn.value ? (S(), h("defs", et, [B.value.style.chart.plots.gradient.show ? (S(!0), h(d, { key: 0 }, w(Y.value, (e, t) => (S(), h("radialGradient", {
|
|
1281
|
+
key: `gradient_${t}_${N.value}`,
|
|
1282
|
+
id: `gradient_${t}_${N.value}`,
|
|
1283
|
+
fy: "30%"
|
|
1284
|
+
}, [
|
|
1285
|
+
g("stop", {
|
|
1286
|
+
offset: "10%",
|
|
1287
|
+
"stop-color": D(r)(e.color, B.value.style.chart.plots.gradient.intensity / 100)
|
|
1288
|
+
}, null, 8, nt),
|
|
1289
|
+
g("stop", {
|
|
1290
|
+
offset: "90%",
|
|
1291
|
+
"stop-color": D(ue)(e.color, .1)
|
|
1292
|
+
}, null, 8, rt),
|
|
1293
|
+
g("stop", {
|
|
1294
|
+
offset: "100%",
|
|
1295
|
+
"stop-color": e.color
|
|
1296
|
+
}, null, 8, it)
|
|
1297
|
+
], 8, tt))), 128)) : m("", !0), (S(!0), h(d, null, w(Y.value, (e) => (S(), h(d, { key: `temperature_grad_history_template_${e.seriesIndex}_${N.value}` }, [B.value.style.chart.plots.gradient.show && $n(e) ? (S(!0), h(d, { key: 0 }, w(e.plots, (t) => (S(), h("radialGradient", {
|
|
1298
|
+
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`,
|
|
1299
|
+
id: ar(e, t),
|
|
1300
|
+
fy: "30%"
|
|
1301
|
+
}, [
|
|
1302
|
+
g("stop", {
|
|
1303
|
+
offset: "10%",
|
|
1304
|
+
"stop-color": D(r)(Z(e, t), B.value.style.chart.plots.gradient.intensity / 100)
|
|
1305
|
+
}, null, 8, ot),
|
|
1306
|
+
g("stop", {
|
|
1307
|
+
offset: "90%",
|
|
1308
|
+
"stop-color": D(ue)(Z(e, t), .1)
|
|
1309
|
+
}, null, 8, st),
|
|
1310
|
+
g("stop", {
|
|
1311
|
+
offset: "100%",
|
|
1312
|
+
"stop-color": Z(e, t)
|
|
1313
|
+
}, null, 8, ct)
|
|
1314
|
+
], 8, at))), 128)) : m("", !0), X(e) ? (S(), h("linearGradient", {
|
|
1315
|
+
key: 1,
|
|
1316
|
+
id: `temperature_grad_history_${e.seriesIndex}_${N.value}`,
|
|
1317
|
+
gradientUnits: "userSpaceOnUse",
|
|
1318
|
+
x1: rr(e).x1,
|
|
1319
|
+
y1: rr(e).y1,
|
|
1320
|
+
x2: rr(e).x2,
|
|
1321
|
+
y2: rr(e).y2
|
|
1322
|
+
}, [(S(!0), h(d, null, w(e.temperatureColors, (t, n) => (S(), h("stop", {
|
|
1323
|
+
key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${N.value}`,
|
|
1324
|
+
"stop-color": t,
|
|
1325
|
+
offset: e.temperatureColors.length === 1 ? "0%" : D(c)(n, e.temperatureColors.length)
|
|
1326
|
+
}, null, 8, ut))), 128))], 8, lt)) : m("", !0)], 64))), 128))])) : m("", !0),
|
|
1327
|
+
B.value.style.chart.grid.verticalLines.show ? (S(), h("g", dt, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("line", {
|
|
1328
|
+
x1: e.x,
|
|
1329
|
+
x2: e.x,
|
|
1330
|
+
y1: e.y1,
|
|
1331
|
+
y2: e.y2,
|
|
1332
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1333
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1334
|
+
"stroke-linecap": "round"
|
|
1335
|
+
}, null, 8, ft))), 256))])) : m("", !0),
|
|
1336
|
+
B.value.style.chart.axes.y.labels.show ? (S(), h("g", pt, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("line", {
|
|
1337
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1338
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1339
|
+
"stroke-linecap": "round",
|
|
1340
|
+
x1: G.value.left - 5,
|
|
1341
|
+
x2: G.value.left,
|
|
1342
|
+
y1: e.y,
|
|
1343
|
+
y2: e.y
|
|
1344
|
+
}, null, 8, mt))), 256))])) : m("", !0),
|
|
1345
|
+
B.value.style.chart.axes.y.labels.show ? (S(), h("g", {
|
|
1346
|
+
key: 4,
|
|
1347
|
+
ref_key: "yAxisScales",
|
|
1348
|
+
ref: gn
|
|
1349
|
+
}, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("text", {
|
|
1350
|
+
x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
|
|
1351
|
+
y: e.y + K.value.yAxisLabels / 3,
|
|
1352
|
+
fill: B.value.style.chart.axes.y.labels.color,
|
|
1353
|
+
"font-size": K.value.yAxisLabels,
|
|
1354
|
+
"text-anchor": "end"
|
|
1355
|
+
}, E(D(u)(B.value.style.chart.axes.y.labels.formatter, e.value, D(o)({
|
|
1356
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
1357
|
+
v: e.value,
|
|
1358
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
1359
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
1360
|
+
}))), 9, ht))), 256))], 512)) : m("", !0),
|
|
1361
|
+
B.value.style.chart.axes.y.name.text ? (S(), h("text", {
|
|
1362
|
+
key: 5,
|
|
1363
|
+
ref_key: "yAxisLabel",
|
|
1364
|
+
ref: mn,
|
|
1365
|
+
transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1366
|
+
"font-size": K.value.yAxisName,
|
|
1367
|
+
fill: B.value.style.chart.axes.y.name.color,
|
|
1368
|
+
"font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1369
|
+
"text-anchor": "middle"
|
|
1370
|
+
}, E(B.value.style.chart.axes.y.name.text), 9, gt)) : m("", !0),
|
|
1371
|
+
B.value.style.chart.grid.horizontalLines.show ? (S(), h("g", _t, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("line", {
|
|
1372
|
+
x1: e.x1,
|
|
1373
|
+
x2: e.x2,
|
|
1374
|
+
y1: e.y,
|
|
1375
|
+
y2: e.y,
|
|
1376
|
+
stroke: B.value.style.chart.grid.horizontalLines.stroke,
|
|
1377
|
+
"stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1378
|
+
"stroke-linecap": "round"
|
|
1379
|
+
}, null, 8, vt))), 256))])) : m("", !0),
|
|
1380
|
+
B.value.style.chart.axes.x.labels.show ? (S(), h("g", yt, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("line", {
|
|
1381
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1382
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1383
|
+
"stroke-linecap": "round",
|
|
1384
|
+
x1: e.x,
|
|
1385
|
+
x2: e.x,
|
|
1386
|
+
y1: G.value.bottom,
|
|
1387
|
+
y2: G.value.bottom + 5
|
|
1388
|
+
}, null, 8, bt))), 256))])) : m("", !0),
|
|
1389
|
+
B.value.style.chart.axes.x.labels.show ? (S(), h("g", {
|
|
1390
|
+
key: 8,
|
|
1391
|
+
ref_key: "xAxisScales",
|
|
1392
|
+
ref: hn
|
|
1393
|
+
}, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("text", {
|
|
1394
|
+
class: "vue-ui-history-plot-x-axis-scale",
|
|
1395
|
+
transform: `translate(${e.x}, ${G.value.bottom + B.value.style.chart.axes.x.labels.offsetY + K.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
|
|
1396
|
+
fill: B.value.style.chart.axes.x.labels.color,
|
|
1397
|
+
"font-size": K.value.xAxisLabels,
|
|
1398
|
+
"text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1399
|
+
}, E(D(u)(B.value.style.chart.axes.x.labels.formatter, e.value, D(o)({
|
|
1400
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
1401
|
+
v: e.value,
|
|
1402
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
1403
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
1404
|
+
}))), 9, xt))), 256))], 512)) : m("", !0),
|
|
1405
|
+
B.value.style.chart.axes.x.name.text ? (S(), h("text", {
|
|
1406
|
+
key: 9,
|
|
1407
|
+
ref_key: "xAxisLabel",
|
|
1408
|
+
ref: pn,
|
|
1409
|
+
x: W.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
|
|
1410
|
+
y: W.value.height,
|
|
1411
|
+
"font-size": K.value.xAxisName,
|
|
1412
|
+
fill: B.value.style.chart.axes.x.name.color,
|
|
1413
|
+
"font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1414
|
+
"text-anchor": "middle"
|
|
1415
|
+
}, E(B.value.style.chart.axes.x.name.text), 9, St)) : m("", !0),
|
|
1416
|
+
B.value.style.chart.grid.xAxis.show ? (S(), h("line", {
|
|
1417
|
+
key: 10,
|
|
1418
|
+
x1: G.value.left,
|
|
1419
|
+
x2: G.value.left + G.value.width,
|
|
1420
|
+
y1: G.value.bottom,
|
|
1421
|
+
y2: G.value.bottom,
|
|
1422
|
+
stroke: B.value.style.chart.grid.xAxis.stroke,
|
|
1423
|
+
"stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
|
|
1424
|
+
"stroke-linecap": "round"
|
|
1425
|
+
}, null, 8, Ct)) : m("", !0),
|
|
1426
|
+
B.value.style.chart.grid.yAxis.show ? (S(), h("line", {
|
|
1427
|
+
key: 11,
|
|
1428
|
+
x1: G.value.left,
|
|
1429
|
+
x2: G.value.left,
|
|
1430
|
+
y1: G.value.top,
|
|
1431
|
+
y2: G.value.bottom,
|
|
1432
|
+
stroke: B.value.style.chart.grid.yAxis.stroke,
|
|
1433
|
+
"stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
|
|
1434
|
+
"stroke-linecap": "round"
|
|
1435
|
+
}, null, 8, wt)) : m("", !0),
|
|
1436
|
+
(S(!0), h(d, null, w(Zn.value, (e) => (S(), h("g", { key: `history_plot_serie_${e.seriesIndex}_${N.value}` }, [
|
|
1437
|
+
B.value.style.chart.paths.show ? (S(), h("g", {
|
|
1438
|
+
key: 0,
|
|
1439
|
+
style: x({ opacity: dr(e.seriesIndex) })
|
|
1440
|
+
}, [g("path", {
|
|
1441
|
+
d: e.path,
|
|
1442
|
+
stroke: B.value.style.chart.backgroundColor,
|
|
1443
|
+
"stroke-width": B.value.style.chart.paths.strokeWidth + 4,
|
|
1444
|
+
fill: "none",
|
|
1445
|
+
"stroke-linecap": "round",
|
|
1446
|
+
"stroke-linejoin": "round",
|
|
1447
|
+
class: y({ animated: Q() })
|
|
1448
|
+
}, null, 10, Tt), g("path", {
|
|
1449
|
+
d: e.path,
|
|
1450
|
+
stroke: ur(e),
|
|
1451
|
+
"stroke-width": B.value.style.chart.paths.strokeWidth,
|
|
1452
|
+
fill: "none",
|
|
1453
|
+
"stroke-linecap": "round",
|
|
1454
|
+
"stroke-linejoin": "round",
|
|
1455
|
+
class: y({ animated: Q() })
|
|
1456
|
+
}, null, 10, Et)], 4)) : m("", !0),
|
|
1457
|
+
(S(!0), h(d, null, w(e.plots, (e) => (S(), h("circle", {
|
|
1458
|
+
cx: e.x,
|
|
1459
|
+
cy: e.y,
|
|
1460
|
+
fill: B.value.style.chart.backgroundColor,
|
|
1461
|
+
r: K.value.plots,
|
|
1462
|
+
stroke: "none"
|
|
1463
|
+
}, null, 8, Dt))), 256)),
|
|
1464
|
+
(S(!0), h(d, null, w(e.plots, (t) => (S(), h("circle", {
|
|
1465
|
+
cx: t.x,
|
|
1466
|
+
cy: t.y,
|
|
1467
|
+
fill: or(e, t, e.gradientIndex),
|
|
1468
|
+
r: K.value.plots,
|
|
1469
|
+
stroke: B.value.style.chart.plots.stroke,
|
|
1470
|
+
"stroke-width": B.value.style.chart.plots.strokeWidth,
|
|
1471
|
+
class: y({ animated: Q() }),
|
|
1472
|
+
style: x({
|
|
1473
|
+
opacity: dr(e.seriesIndex),
|
|
1474
|
+
transition: pr()
|
|
1475
|
+
})
|
|
1476
|
+
}, null, 14, Ot))), 256)),
|
|
1477
|
+
B.value.style.chart.plots.labels.show ? (S(), h("g", kt, [(S(!0), h(d, null, w(e.plots, (t) => (S(), h("g", null, [String(t.label).includes("\n") ? (S(), h("text", {
|
|
1478
|
+
key: 1,
|
|
1479
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1480
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
1481
|
+
"font-size": K.value.labels,
|
|
1482
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1483
|
+
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1484
|
+
"text-anchor": "middle",
|
|
1485
|
+
class: y({ animated: Q() }),
|
|
1486
|
+
style: x({
|
|
1487
|
+
opacity: dr(e.seriesIndex),
|
|
1488
|
+
transition: pr()
|
|
1489
|
+
}),
|
|
1490
|
+
innerHTML: D(ne)({
|
|
1491
|
+
content: String(t.label),
|
|
1492
|
+
fontSize: K.value.labels,
|
|
1493
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1494
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1495
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
|
|
1496
|
+
})
|
|
1497
|
+
}, null, 14, jt)) : (S(), h("text", {
|
|
1498
|
+
key: 0,
|
|
1499
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1500
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
1501
|
+
"font-size": K.value.labels,
|
|
1502
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1503
|
+
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1504
|
+
"text-anchor": "middle",
|
|
1505
|
+
class: y({ animated: Q() }),
|
|
1506
|
+
style: x({
|
|
1507
|
+
opacity: dr(e.seriesIndex),
|
|
1508
|
+
transition: pr()
|
|
1509
|
+
})
|
|
1510
|
+
}, E(t.label), 15, At))]))), 256))])) : m("", !0),
|
|
1511
|
+
B.value.style.chart.plots.indexLabels.show ? (S(), h("g", Mt, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("text", {
|
|
1512
|
+
x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
|
|
1513
|
+
y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
|
|
1514
|
+
"font-size": K.value.indexLabels,
|
|
1515
|
+
"font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1516
|
+
fill: cr(e, t),
|
|
1517
|
+
"text-anchor": "middle",
|
|
1518
|
+
class: y({ animated: Q() }),
|
|
1519
|
+
style: x({
|
|
1520
|
+
opacity: dr(e.seriesIndex),
|
|
1521
|
+
transition: pr()
|
|
1522
|
+
})
|
|
1523
|
+
}, E(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Nt))), 256))])) : m("", !0)
|
|
1524
|
+
]))), 128)),
|
|
1525
|
+
(S(!0), h(d, null, w(Zn.value, (e) => (S(), h("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${N.value}` }, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("circle", {
|
|
1526
|
+
cx: t.x,
|
|
1527
|
+
cy: t.y,
|
|
1528
|
+
fill: "transparent",
|
|
1529
|
+
r: K.value.plots,
|
|
1530
|
+
stroke: "none",
|
|
1531
|
+
onMouseenter: (r) => Er({
|
|
1532
|
+
datapoint: t,
|
|
1533
|
+
plotIndex: n,
|
|
1534
|
+
seriesIndex: e.seriesIndex,
|
|
1535
|
+
triggerMode: "pointer"
|
|
1536
|
+
}),
|
|
1537
|
+
onMouseleave: (r) => wr({
|
|
1538
|
+
datapoint: t,
|
|
1539
|
+
plotIndex: n,
|
|
1540
|
+
seriesIndex: e.seriesIndex
|
|
1541
|
+
}),
|
|
1542
|
+
onClick: (r) => xr({
|
|
1543
|
+
datapoint: t,
|
|
1544
|
+
plotIndex: n,
|
|
1545
|
+
seriesIndex: e.seriesIndex
|
|
1546
|
+
})
|
|
1547
|
+
}, null, 40, Pt))), 256))]))), 128)),
|
|
1548
|
+
T(e.$slots, "svg", { svg: {
|
|
1549
|
+
...W.value,
|
|
1550
|
+
drawingArea: G.value,
|
|
1551
|
+
isPrintingImg: D(Mn) || D(Nn) || dn.value,
|
|
1552
|
+
isPrintingSvg: fn.value
|
|
1553
|
+
} }, void 0, !0)
|
|
1554
|
+
], 44, Qe)), e.$slots.hint ? (S(), h("div", Ft, [T(e.$slots, "hint", b(v({
|
|
1555
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1556
|
+
isVisible: yn.value
|
|
1557
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1558
|
+
e.$slots.watermark ? (S(), h("div", It, [T(e.$slots, "watermark", b(v({ isPrinting: D(Mn) || D(Nn) || dn.value || fn.value })), void 0, !0)])) : m("", !0),
|
|
1559
|
+
g("div", { id: `legend-bottom-${N.value}` }, null, 8, Lt),
|
|
1560
|
+
ln.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Pe, {
|
|
1561
|
+
key: 6,
|
|
1562
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
1563
|
+
}, [g("div", {
|
|
1564
|
+
ref_key: "chartLegend",
|
|
1565
|
+
ref: $t
|
|
1566
|
+
}, [T(e.$slots, "legend", { legend: yr.value }, () => [B.value.style.chart.legend.show && bn.value ? (S(), p(Me, {
|
|
1567
|
+
key: `legend_${en.value}`,
|
|
1568
|
+
legendSet: yr.value,
|
|
1569
|
+
config: br.value,
|
|
1570
|
+
isCursorPointer: V.value,
|
|
1571
|
+
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1572
|
+
hr(e.seriesIndex);
|
|
1573
|
+
}
|
|
1574
|
+
}, {
|
|
1575
|
+
item: O(({ legend: e, index: t }) => [g("div", {
|
|
1576
|
+
onClick: (t) => e.segregate(),
|
|
1577
|
+
style: x(`opacity:${P.value.includes(e.seriesIndex) ? .5 : 1}`)
|
|
1578
|
+
}, E(e.name), 13, Rt)]),
|
|
1579
|
+
legendToggle: O(() => [yr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !D(En) ? (S(), p(Oe, {
|
|
1580
|
+
key: 0,
|
|
1581
|
+
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1582
|
+
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1583
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
1584
|
+
checked: P.value.length > 0,
|
|
1585
|
+
isCursorPointer: V.value,
|
|
1586
|
+
onToggle: mr
|
|
1587
|
+
}, null, 8, [
|
|
1588
|
+
"backgroundColor",
|
|
1589
|
+
"color",
|
|
1590
|
+
"fontSize",
|
|
1591
|
+
"checked",
|
|
1592
|
+
"isCursorPointer"
|
|
1593
|
+
])) : m("", !0)]),
|
|
1594
|
+
_: 1
|
|
1595
|
+
}, 8, [
|
|
1596
|
+
"legendSet",
|
|
1597
|
+
"config",
|
|
1598
|
+
"isCursorPointer"
|
|
1599
|
+
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1600
|
+
e.$slots.source ? (S(), h("div", {
|
|
1601
|
+
key: 7,
|
|
1602
|
+
ref_key: "source",
|
|
1603
|
+
ref: cn,
|
|
1604
|
+
dir: "auto"
|
|
1605
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1606
|
+
Le(D(Bt), {
|
|
1607
|
+
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1608
|
+
show: U.value.showTooltip && an.value,
|
|
1609
|
+
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1610
|
+
color: B.value.style.chart.tooltip.color,
|
|
1611
|
+
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
1612
|
+
borderRadius: B.value.style.chart.tooltip.borderRadius,
|
|
1613
|
+
borderColor: B.value.style.chart.tooltip.borderColor,
|
|
1614
|
+
borderWidth: B.value.style.chart.tooltip.borderWidth,
|
|
1615
|
+
backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
|
|
1616
|
+
position: B.value.style.chart.tooltip.position,
|
|
1617
|
+
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1618
|
+
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1619
|
+
parent: A.value,
|
|
1620
|
+
content: on.value,
|
|
1621
|
+
isCustom: I.value,
|
|
1622
|
+
isFullscreen: sn.value,
|
|
1623
|
+
smooth: B.value.style.chart.tooltip.smooth,
|
|
1624
|
+
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1625
|
+
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1626
|
+
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1627
|
+
isA11yMode: vn.value === "keyboard",
|
|
1628
|
+
a11yPosition: _n.value
|
|
1629
|
+
}, {
|
|
1630
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...Cr.value })), void 0, !0)]),
|
|
1631
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...Cr.value })), void 0, !0)]),
|
|
1632
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...Cr.value })), void 0, !0)]),
|
|
1633
|
+
_: 3
|
|
1634
|
+
}, 8, [
|
|
1635
|
+
"teleportTo",
|
|
1636
|
+
"show",
|
|
1637
|
+
"backgroundColor",
|
|
1638
|
+
"color",
|
|
1639
|
+
"fontSize",
|
|
1640
|
+
"borderRadius",
|
|
1641
|
+
"borderColor",
|
|
1642
|
+
"borderWidth",
|
|
1643
|
+
"backgroundOpacity",
|
|
1644
|
+
"position",
|
|
1645
|
+
"offsetX",
|
|
1646
|
+
"offsetY",
|
|
1647
|
+
"parent",
|
|
1648
|
+
"content",
|
|
1649
|
+
"isCustom",
|
|
1650
|
+
"isFullscreen",
|
|
1651
|
+
"smooth",
|
|
1652
|
+
"backdropFilter",
|
|
1653
|
+
"smoothForce",
|
|
1654
|
+
"smoothSnapThreshold",
|
|
1655
|
+
"isA11yMode",
|
|
1656
|
+
"a11yPosition"
|
|
1657
|
+
]),
|
|
1658
|
+
bn.value && B.value.userOptions.buttons.table ? (S(), p(He(Pr.value.component), Re({ key: 8 }, Pr.value.props, {
|
|
1659
|
+
ref_key: "tableUnit",
|
|
1660
|
+
ref: L,
|
|
1661
|
+
onClose: Fr
|
|
1662
|
+
}), Fe({
|
|
1663
|
+
content: O(() => [(S(), p(D(Ut), {
|
|
1664
|
+
key: `table_${tn.value}`,
|
|
1665
|
+
colNames: $.value.colNames,
|
|
1666
|
+
head: $.value.head,
|
|
1667
|
+
body: $.value.body,
|
|
1668
|
+
config: $.value.config,
|
|
1669
|
+
title: B.value.table.useDialog ? "" : Pr.value.title,
|
|
1670
|
+
withCloseButton: !B.value.table.useDialog,
|
|
1671
|
+
isCursorPointer: V.value,
|
|
1672
|
+
onClose: Fr
|
|
1673
|
+
}, {
|
|
1674
|
+
th: O(({ th: e }) => [g("div", {
|
|
1675
|
+
innerHTML: e,
|
|
1676
|
+
style: {
|
|
1677
|
+
display: "flex",
|
|
1678
|
+
"align-items": "center"
|
|
1679
|
+
}
|
|
1680
|
+
}, null, 8, zt)]),
|
|
1681
|
+
td: O(({ td: e }) => [Ie(E(e.name || e), 1)]),
|
|
1682
|
+
_: 1
|
|
1683
|
+
}, 8, [
|
|
1684
|
+
"colNames",
|
|
1685
|
+
"head",
|
|
1686
|
+
"body",
|
|
1687
|
+
"config",
|
|
1688
|
+
"title",
|
|
1689
|
+
"withCloseButton",
|
|
1690
|
+
"isCursorPointer"
|
|
1691
|
+
]))]),
|
|
1692
|
+
_: 2
|
|
1693
|
+
}, [B.value.table.useDialog ? {
|
|
1694
|
+
name: "title",
|
|
1695
|
+
fn: O(() => [Ie(E(Pr.value.title), 1)]),
|
|
1696
|
+
key: "0"
|
|
1697
|
+
} : void 0, B.value.table.useDialog ? {
|
|
1698
|
+
name: "actions",
|
|
1699
|
+
fn: O(() => [g("button", {
|
|
1700
|
+
tabindex: "0",
|
|
1701
|
+
class: "vue-ui-user-options-button",
|
|
1702
|
+
onClick: t[1] ||= (e) => Dr(B.value.userOptions.callbacks.csv),
|
|
1703
|
+
style: x({ cursor: V.value ? "pointer" : "default" })
|
|
1704
|
+
}, [Le(D(Vt), {
|
|
1705
|
+
name: "fileCsv",
|
|
1706
|
+
stroke: Pr.value.props.color
|
|
1707
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1708
|
+
key: "1"
|
|
1709
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1710
|
+
T(e.$slots, "skeleton", {}, () => [D(En) ? (S(), p(ve, { key: 0 })) : m("", !0)], !0)
|
|
1711
|
+
], 46, Je));
|
|
1712
|
+
}
|
|
1713
|
+
}, [["__scopeId", "data-v-76063362"]]);
|
|
1714
|
+
//#endregion
|
|
1715
|
+
export { qe as n, Bt as t };
|