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