vue-data-ui 3.25.4 → 3.25.6

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