vue-data-ui 3.25.11 → 3.25.13

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