vue-data-ui 3.23.10 → 3.23.12

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