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