vue-data-ui 3.22.14 → 3.23.1

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