vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,1722 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, G as r, Gt as i, Jt as a, Kt as o, Ot as s, Pt as c, S as ee, T as te, X as l, Y as ne, _ as re, bt as ie, i as u, jt as ae, pt as oe, q as se, qt as d, r as ce, t as le, tt as ue, w as de, xt as fe, zt as pe } from "./lib-BuMGJ_a0.js";
3
- import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
- import { t as ge } from "./useConfig-BilxnBNr.js";
5
- import { t as _e } from "./usePrinter-BFvi4jVy.js";
6
- import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as be } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as xe } from "./useNestedProp--NSEmhOH.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-DIQG5q8T.js";
13
- import { n as Ee } from "./Title-BODtwViI.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-CtAPwzr2.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-CQTRlzK-.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-CMTGxeYO.js")), It = v(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Lt = v(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Rt = v(() => import("./DataTable-D4tM9s5Y.js")), zt = v(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Bt = v(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Vt = v(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ht = v(() => import("./BaseDraggableDialog-qTnfhLBz.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), an = w(null), on = w(null), sn = w(!1), cn = w(!1), ln = w(null), un = w(null), dn = w(null), fn = w(null), R = w(null), z = w(null), pn = w({
182
- x: 0,
183
- y: 0
184
- }), mn = w("pointer"), hn = w(!1), gn = p({
185
- get: () => !!A.dataset && A.dataset.length,
186
- set: (e) => e
187
- }), _n = Xe;
188
- We(() => {
189
- rn.value = !0, yn();
190
- });
191
- let vn = p(() => !!B.value.debug);
192
- function yn() {
193
- if (ae(A.dataset) ? (ue({
194
- componentName: "VueUiHistoryPlot",
195
- type: "dataset",
196
- debug: vn.value
197
- }), wn.value = !0) : A.dataset.forEach((e, t) => {
198
- oe({
199
- datasetObject: e,
200
- requiredAttributes: ["name", "values"]
201
- }).forEach((e) => {
202
- gn.value = !1, ue({
203
- componentName: "VueUiHistoryPlot",
204
- type: "datasetSerieAttribute",
205
- property: e,
206
- index: t,
207
- debug: vn.value
208
- });
209
- });
210
- }), ae(A.dataset) || (wn.value = B.value.loading), B.value.responsive) {
211
- let e = Oe(() => {
212
- let { width: e, height: t } = ke({
213
- chart: j.value,
214
- title: B.value.style.chart.title.text ? Kt.value : null,
215
- noTitle: Qt.value,
216
- legend: B.value.style.chart.legend.show ? Jt.value : null,
217
- source: nn.value
218
- });
219
- requestAnimationFrame(() => {
220
- G.value.width = e, G.value.height = t, B.value.responsiveProportionalSizing ? (q.value.plots = d({
221
- relator: Math.min(e, t),
222
- adjuster: 600,
223
- source: B.value.style.chart.plots.radius,
224
- threshold: 3,
225
- fallback: 3
226
- }), q.value.indexLabels = d({
227
- relator: Math.min(e, t),
228
- adjuster: 600,
229
- source: B.value.style.chart.plots.indexLabels.fontSize,
230
- threshold: 6,
231
- fallback: 6
232
- }), q.value.labels = d({
233
- relator: Math.min(e, t),
234
- adjuster: 600,
235
- source: B.value.style.chart.plots.labels.fontSize,
236
- threshold: 6,
237
- fallback: 6
238
- }), q.value.xAxisLabels = d({
239
- relator: Math.min(e, t),
240
- adjuster: 600,
241
- source: B.value.style.chart.axes.x.labels.fontSize,
242
- threshold: 6,
243
- fallback: 6
244
- }), q.value.xAxisName = d({
245
- relator: Math.min(e, t),
246
- adjuster: 600,
247
- source: B.value.style.chart.axes.x.name.fontSize,
248
- threshold: 6,
249
- fallback: 6
250
- }), q.value.yAxisLabels = d({
251
- relator: Math.min(e, t),
252
- adjuster: 600,
253
- source: B.value.style.chart.axes.y.labels.fontSize,
254
- threshold: 6,
255
- fallback: 6
256
- }), q.value.yAxisName = d({
257
- relator: Math.min(e, t),
258
- adjuster: 600,
259
- source: B.value.style.chart.axes.y.name.fontSize,
260
- threshold: 6,
261
- fallback: 6
262
- })) : (q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.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 bn() {
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 B = w(bn());
294
- me({
295
- config: () => B.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: V } = Ce({
308
- config: () => B.value.transitions,
309
- dataset: () => A.dataset
310
- }), H = p(() => B.value.userOptions.useCursorPointer), xn = 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: B.value.skeletonConfig ?? {}
349
- })), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = ve({
350
- ...qe(A),
351
- FINAL_CONFIG: B,
352
- prepareConfig: bn,
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: B.value,
381
- userConfig: xn.value
382
- })
383
- }), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = Ne({ config: B.value }), { svgRef: U } = Pe({ config: B.value.style.chart.title });
384
- Je(() => A.config, (e) => {
385
- Sn.value || (B.value = bn()), Tn.value = !B.value.userOptions.showOnChartHover, yn(), qt.value += 1, Xt.value += 1, Yt.value += 1, G.value.height = B.value.style.chart.height, G.value.width = B.value.style.chart.width, q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, W.value.showTable = B.value.table.show, W.value.showTooltip = B.value.style.chart.tooltip.show;
386
- }, { deep: !0 }), Je(() => A.dataset, (e) => {
387
- Array.isArray(e) && e.length > 0 && (wn.value = !1);
388
- }, { deep: !0 });
389
- let { isPrinting: On, isImaging: kn, generatePdf: An, generateImage: jn } = _e({
390
- elementId: `history_plot_${P.value}`,
391
- fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
392
- options: B.value.userOptions.print
393
- }), Mn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), Nn = p(() => de(B.value.customPalette)), W = w({
394
- showTable: B.value.table.show,
395
- showTooltip: B.value.style.chart.tooltip.show
396
- });
397
- Je(B, () => {
398
- W.value = {
399
- showTable: B.value.table.show,
400
- showTooltip: B.value.style.chart.tooltip.show
401
- };
402
- }, { immediate: !0 });
403
- let G = w({
404
- height: B.value.style.chart.height,
405
- width: B.value.style.chart.width
406
- }), Pn = p(() => G.value.width), Fn = p(() => G.value.height);
407
- function In() {
408
- let e = 0;
409
- fn.value && (e = Array.from(fn.value.querySelectorAll("text")).reduce((e, t) => {
410
- let n = t.getComputedTextLength();
411
- return n > e ? n : e;
412
- }, 0));
413
- let t = un.value ? un.value.getBoundingClientRect().width : 0;
414
- return e + t + (t ? 24 : 0);
415
- }
416
- let Ln = w(0), Rn = Oe((e) => {
417
- Ln.value = e;
418
- });
419
- Ye((e) => {
420
- let t = dn.value;
421
- if (!t) return;
422
- let n = new ResizeObserver((e) => {
423
- Rn(e[0].contentRect.height);
424
- });
425
- n.observe(t), e(() => n.disconnect());
426
- });
427
- let zn = p(() => {
428
- let e = 0;
429
- ln.value && (e = ln.value.getBBox().height + q.value.xAxisName / 2);
430
- let t = 0;
431
- return dn.value && (t = Ln.value), e + t;
432
- }), K = p(() => {
433
- let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = In(), r = B.value.style.chart.plots.radius;
434
- return {
435
- left: e + n + B.value.style.chart.axes.y.name.offsetX,
436
- top: t + r,
437
- right: G.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
438
- bottom: G.value.height - B.value.style.chart.padding.bottom - zn.value - r - B.value.style.chart.axes.x.name.offsetY,
439
- width: G.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
440
- height: G.value.height - t - B.value.style.chart.padding.bottom - zn.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
441
- };
442
- }), q = w({
443
- plots: B.value.style.chart.plots.radius,
444
- indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
445
- labels: B.value.style.chart.plots.labels.fontSize,
446
- xAxisLabels: B.value.style.chart.axes.x.labels.fontSize,
447
- xAxisName: B.value.style.chart.axes.x.name.fontSize,
448
- yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
449
- yAxisName: B.value.style.chart.axes.y.name.fontSize
450
- }), J = p(() => Cn.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) : Nn.value[t] || c[t] || c[t % c.length],
455
- temperatureColors: n,
456
- temperatureAngle: Bn(e.temperatureAngle),
457
- temperatureIndependant: e.temperatureIndependant === !0,
458
- usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
459
- seriesIndex: t
460
- };
461
- }));
462
- function Bn(e = 0) {
463
- let t = Number(e);
464
- return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
465
- }
466
- let Vn = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Hn = p(() => {
467
- let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
468
- return e < 0 ? e : 0;
469
- }), Un = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Wn = p(() => {
470
- let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
471
- return e < 0 ? e : 0;
472
- }), Y = p(() => {
473
- let e = re(B.value.style.chart.axes.x.scaleMin ?? Hn.value, B.value.style.chart.axes.x.scaleMax ?? Vn.value, B.value.style.chart.axes.x.ticks), t = re(B.value.style.chart.axes.y.scaleMin ?? Wn.value, B.value.style.chart.axes.y.scaleMax ?? Un.value, B.value.style.chart.axes.y.ticks);
474
- return {
475
- x: e,
476
- y: t,
477
- tickX: e.ticks.map((t) => ({
478
- x: K.value.left + (t - e.min) / (e.max - e.min) * K.value.width,
479
- y1: K.value.top,
480
- y2: K.value.bottom,
481
- value: t
482
- })),
483
- tickY: t.ticks.map((e) => ({
484
- y: K.value.bottom - (e - t.min) / (t.max - t.min) * K.value.height,
485
- x1: K.value.left,
486
- x2: K.value.right,
487
- value: e
488
- }))
489
- };
490
- });
491
- function Gn(e) {
492
- let t = Y.value.x.min < 0 ? Math.abs(Y.value.x.min) : Y.value.x.min > 0 ? -Y.value.x.min : 0;
493
- return K.value.left + ((e || 0) + t) / (Y.value.x.max + t) * K.value.width;
494
- }
495
- function Kn(e) {
496
- let t = Y.value.y.min < 0 ? Math.abs(Y.value.y.min) : Y.value.y.min > 0 ? -Y.value.y.min : 0;
497
- return K.value.bottom - ((e || 0) + t) / (Y.value.y.max + t) * K.value.height;
498
- }
499
- let X = p(() => J.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: Gn(t.x),
505
- y: Kn(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
- })), qn = p(() => {
517
- if (L.value === null || R.value === null) return X.value;
518
- let e = X.value.findIndex((e) => e.seriesIndex === R.value);
519
- if (e === -1) return X.value;
520
- let t = X.value[e];
521
- return [
522
- ...X.value.slice(0, e),
523
- ...X.value.slice(e + 1),
524
- t
525
- ];
526
- }), Jn = p(() => X.value.some((e) => Z(e)));
527
- function Z(e) {
528
- return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
529
- }
530
- function Yn(e) {
531
- return Z(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 = K.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 = Bn(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) ? B.value.style.chart.plots.gradient.show ? `url(#${tr(e, t)})` : Q(e, t) : B.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 B.value.style.chart.plots.indexLabels.adaptColorToBackground ? ce(rr(e, t)) : B.value.style.chart.plots.indexLabels.color;
599
- }
600
- function ar(e, t) {
601
- let n = X.value.find((t) => t.seriesIndex === e);
602
- return n && Yn(n) ? Q(n, t) : t.color;
603
- }
604
- function or(e) {
605
- return Z(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
606
- }
607
- function sr(e) {
608
- return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
609
- }
610
- p(() => L.value !== null && R.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
- }), _n("selectLegend", X.value);
616
- }
617
- function ur(e) {
618
- F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), _n("selectLegend", X.value);
619
- }
620
- function dr(e) {
621
- return J.value.length ? J.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);
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(() => J.value.map((e) => {
632
- let t = Z(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: B.value.style.chart.legend.backgroundColor,
644
- color: B.value.style.chart.legend.color,
645
- fontSize: B.value.style.chart.legend.fontSize,
646
- paddingBottom: 12,
647
- fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
648
- }));
649
- function gr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
650
- B.value.events.datapointClick && B.value.events.datapointClick({
651
- datapoint: {
652
- ...e,
653
- plotIndex: t,
654
- seriesIndex: n
655
- },
656
- seriesIndex: n
657
- }), _n("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
- B.value.events.datapointLeave && B.value.events.datapointLeave({
665
- datapoint: {
666
- ...e,
667
- plotIndex: t,
668
- seriesIndex: n
669
- },
670
- seriesIndex: n
671
- }), !(mn.value === "keyboard" && R.value === n && z.value === t) && ($t.value = !1, L.value = null);
672
- }
673
- function br(e, t) {
674
- if (!U.value) return;
675
- let n = X.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, U.value);
680
- a && (pn.value = a);
681
- }
682
- function xr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
683
- B.value.events.datapointEnter && B.value.events.datapointEnter({
684
- datapoint: {
685
- ...e,
686
- plotIndex: t,
687
- seriesIndex: n
688
- },
689
- seriesIndex: n
690
- }), R.value = n, z.value = t, mn.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: B.value,
701
- series: J.value
702
- }, L.value = e;
703
- let o = B.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: J.value,
711
- config: B.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 ${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"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
720
- p: B.value.style.chart.axes.x.labels.prefix,
721
- v: e.valueX,
722
- s: B.value.style.chart.axes.x.labels.suffix,
723
- r: B.value.style.chart.axes.x.labels.rounding
724
- }))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
725
- p: B.value.style.chart.axes.y.labels.prefix,
726
- v: e.valueY,
727
- s: B.value.style.chart.axes.y.labels.suffix,
728
- r: B.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: X.value.map((e) => ({
736
- name: e.name,
737
- color: e.color
738
- })) }));
739
- let $ = p(() => {
740
- let e = [
741
- B.value.table.columnNames.series,
742
- B.value.table.columnNames.datapoint,
743
- B.value.table.columnNames.x,
744
- B.value.table.columnNames.y
745
- ];
746
- return {
747
- head: e,
748
- body: X.value.flatMap((e) => e.plots.map((e) => [
749
- {
750
- color: e.color,
751
- name: e.seriesName
752
- },
753
- e.label,
754
- u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
755
- p: B.value.style.chart.axes.x.labels.prefix,
756
- v: e.valueX,
757
- s: B.value.style.chart.axes.x.labels.suffix,
758
- r: B.value.style.chart.axes.x.labels.rounding
759
- })),
760
- u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
761
- p: B.value.style.chart.axes.y.labels.prefix,
762
- v: e.valueY,
763
- s: B.value.style.chart.axes.y.labels.suffix,
764
- r: B.value.style.chart.axes.y.labels.rounding
765
- }))
766
- ])),
767
- config: {
768
- th: {
769
- backgroundColor: B.value.table.th.backgroundColor,
770
- color: B.value.table.th.color,
771
- outline: B.value.table.th.outline
772
- },
773
- td: {
774
- backgroundColor: B.value.table.td.backgroundColor,
775
- color: B.value.table.td.color,
776
- outline: B.value.table.td.outline
777
- },
778
- breakpoint: B.value.table.responsiveBreakpoint
779
- },
780
- colNames: e
781
- };
782
- });
783
- function Sr(e = null) {
784
- He(() => {
785
- let r = [
786
- [B.value.table.columnNames.series],
787
- [B.value.table.columnNames.datapoint],
788
- [B.value.table.columnNames.x],
789
- [B.value.table.columnNames.y]
790
- ], i = X.value.flatMap((e) => e.plots.map((e) => [
791
- [e.seriesName],
792
- [e.label],
793
- [e.valueX],
794
- [e.valueY]
795
- ])), a = n([
796
- [B.value.style.chart.title.text],
797
- [B.value.style.chart.title.subtitle.text],
798
- r
799
- ].concat(i));
800
- e ? e(a) : t({
801
- csvContent: a,
802
- title: B.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
- W.value.showTable = !W.value.showTable;
812
- }
813
- function Er() {
814
- W.value.showTooltip = !W.value.showTooltip;
815
- }
816
- function Dr() {
817
- return X.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: B.value.style.chart.title.text,
831
- width: t,
832
- height: n,
833
- aspectRatio: r
834
- };
835
- }
836
- we({
837
- timeLabelsEls: dn,
838
- timeLabels: p(() => Y.value.tickX),
839
- slicer: p(() => ({
840
- start: 0,
841
- end: Y.value.tickX.length
842
- })),
843
- configRef: B,
844
- rotationPath: [
845
- "style",
846
- "chart",
847
- "axes",
848
- "x",
849
- "labels",
850
- "rotation"
851
- ],
852
- autoRotatePath: [
853
- "style",
854
- "chart",
855
- "axes",
856
- "x",
857
- "labels",
858
- "autoRotate",
859
- "enable"
860
- ],
861
- isAutoSize: !1,
862
- width: Pn,
863
- height: Fn,
864
- targetClass: ".vue-ui-history-plot-x-axis-scale",
865
- rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
866
- });
867
- let kr = p(() => {
868
- let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
869
- return {
870
- component: e ? Ht : Lt,
871
- title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
872
- props: e ? {
873
- backgroundColor: B.value.table.th.backgroundColor,
874
- color: B.value.table.th.color,
875
- headerColor: B.value.table.th.color,
876
- headerBg: B.value.table.th.backgroundColor,
877
- isFullscreen: I.value,
878
- fullscreenParent: j.value,
879
- forcedWidth: Math.min(800, window.innerWidth * .8)
880
- } : {
881
- hideDetails: !0,
882
- config: {
883
- open: t,
884
- maxHeight: 1e4,
885
- body: {
886
- backgroundColor: B.value.style.chart.backgroundColor,
887
- color: B.value.style.chart.color
888
- },
889
- head: {
890
- backgroundColor: B.value.style.chart.backgroundColor,
891
- color: B.value.style.chart.color
892
- }
893
- }
894
- }
895
- };
896
- });
897
- Je(() => W.value.showTable, (e) => {
898
- B.value.table.show || (e && B.value.table.useDialog && an.value ? an.value.open() : "close" in an.value && an.value.close());
899
- });
900
- function Ar() {
901
- W.value.showTable = !1, on.value && on.value.setTableIconState(!1);
902
- }
903
- let jr = p(() => B.value.style.chart.backgroundColor), Mr = p(() => B.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = be({
904
- svg: U,
905
- title: p(() => B.value.style.chart.title),
906
- legend: Mr,
907
- legendItems: mr,
908
- backgroundColor: jr
909
- });
910
- async function Fr({ isCb: e }) {
911
- cn.value = !0, await He();
912
- try {
913
- if (e) {
914
- let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
915
- await Promise.resolve(B.value.userOptions.callbacks.svg({
916
- blob: e,
917
- url: t,
918
- text: n,
919
- dataUrl: r
920
- }));
921
- } else await Promise.resolve(Nr());
922
- } finally {
923
- cn.value = !1;
924
- }
925
- }
926
- function Ir(e) {
927
- if (e?.stage === "start") {
928
- sn.value = !0;
929
- return;
930
- }
931
- if (e?.stage === "end") {
932
- sn.value = !1;
933
- return;
934
- }
935
- jn();
936
- }
937
- async function Lr() {
938
- if (_n("copyAlt", {
939
- config: B.value,
940
- dataset: X.value
941
- }), !B.value.userOptions.callbacks.altCopy) {
942
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
943
- return;
944
- }
945
- await Promise.resolve(B.value.userOptions.callbacks.altCopy({
946
- config: B.value,
947
- dataset: X.value
948
- }));
949
- }
950
- let Rr = p(() => ({
951
- head: $.value.head,
952
- body: $.value.body.map((e) => [
953
- e[0]?.name || "",
954
- e[1],
955
- e[2],
956
- e[3]
957
- ]),
958
- caption: B.value.a11y.translations.tableCaption,
959
- notice: B.value.a11y.translations.tableAvailable
960
- }));
961
- function zr(e) {
962
- return X.value.findIndex((t) => t.seriesIndex === e);
963
- }
964
- function Br() {
965
- if (R.value !== null && z.value !== null) {
966
- let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
967
- e && yr({
968
- datapoint: e,
969
- plotIndex: z.value,
970
- seriesIndex: R.value
971
- });
972
- }
973
- R.value = null, z.value = null, mn.value = "pointer", $t.value = !1, L.value = null;
974
- }
975
- function Vr() {
976
- R.value = null, z.value = null, hn.value = !0;
977
- }
978
- function Hr() {
979
- Br(), hn.value = !1;
980
- }
981
- function Ur(e, t) {
982
- if (!e?.plots?.length) return null;
983
- let n = e.plots.length;
984
- return (t % n + n) % n;
985
- }
986
- function Wr({ seriesIndex: e, plotIndex: t, direction: n }) {
987
- if (!X.value.length) return null;
988
- let r = zr(e);
989
- if (r === -1) return null;
990
- if (n === "up" || n === "down") {
991
- let e = X.value[r];
992
- if (!e?.plots?.length) return null;
993
- let i = Ur(e, t + (n === "up" ? -1 : 1));
994
- return {
995
- seriesIndex: e.seriesIndex,
996
- plotIndex: i
997
- };
998
- }
999
- if (n === "left" || n === "right") {
1000
- let e = ((r + (n === "left" ? -1 : 1)) % X.value.length + X.value.length) % X.value.length, i = X.value[e];
1001
- if (!i?.plots?.length) return null;
1002
- let a = Math.min(t, i.plots.length - 1);
1003
- return {
1004
- seriesIndex: i.seriesIndex,
1005
- plotIndex: a
1006
- };
1007
- }
1008
- return null;
1009
- }
1010
- function Gr(e) {
1011
- if (!U.value || Cr.value || document.activeElement !== U.value || !X.value.length) return;
1012
- 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";
1013
- if (!t && !n && !r && !i && !a && !o) return;
1014
- if (e.preventDefault(), e.stopPropagation(), o) {
1015
- Br();
1016
- return;
1017
- }
1018
- if (a) {
1019
- if (R.value === null || z.value === null) return;
1020
- let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
1021
- if (!e) return;
1022
- gr({
1023
- datapoint: e,
1024
- plotIndex: z.value,
1025
- seriesIndex: R.value
1026
- });
1027
- return;
1028
- }
1029
- let s = null;
1030
- if (R.value === null || z.value === null) {
1031
- let e = X.value[0];
1032
- if (!e?.plots?.length) return;
1033
- s = {
1034
- seriesIndex: e.seriesIndex,
1035
- plotIndex: 0
1036
- };
1037
- } else r ? s = Wr({
1038
- seriesIndex: R.value,
1039
- plotIndex: z.value,
1040
- direction: "up"
1041
- }) : i ? s = Wr({
1042
- seriesIndex: R.value,
1043
- plotIndex: z.value,
1044
- direction: "down"
1045
- }) : t ? s = Wr({
1046
- seriesIndex: R.value,
1047
- plotIndex: z.value,
1048
- direction: "left"
1049
- }) : n && (s = Wr({
1050
- seriesIndex: R.value,
1051
- plotIndex: z.value,
1052
- direction: "right"
1053
- }));
1054
- if (!s) return;
1055
- let c = X.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1056
- c && xr({
1057
- datapoint: c,
1058
- plotIndex: s.plotIndex,
1059
- seriesIndex: s.seriesIndex,
1060
- triggerMode: "keyboard"
1061
- });
1062
- }
1063
- return De({
1064
- getData: Dr,
1065
- getImage: Or,
1066
- generatePdf: An,
1067
- generateCsv: Sr,
1068
- generateImage: jn,
1069
- generateSvg: Fr,
1070
- hideSeries: pr,
1071
- showSeries: fr,
1072
- toggleTable: Tr,
1073
- toggleTooltip: Er,
1074
- toggleAnnotator: wr,
1075
- toggleFullscreen: _r,
1076
- copyAlt: Lr
1077
- }), (e, t) => (C(), g("div", {
1078
- id: `history_plot_${P.value}`,
1079
- ref_key: "historyPlotChart",
1080
- ref: j,
1081
- class: b({
1082
- "vue-data-ui-component": !0,
1083
- "vue-ui-history-plot": !0,
1084
- "vue-data-ui-wrapper-fullscreen": I.value
1085
- }),
1086
- 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%" : ""}`),
1087
- onMouseenter: t[2] ||= () => O(En)(!0),
1088
- onMouseleave: t[3] ||= () => O(En)(!1)
1089
- }, [
1090
- _("div", {
1091
- id: `chart-instructions-${P.value}`,
1092
- class: "sr-only"
1093
- }, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1094
- Rr.value.body.length ? (C(), m(Me, {
1095
- key: 0,
1096
- uid: P.value,
1097
- head: Rr.value.head,
1098
- body: Rr.value.body,
1099
- caption: Rr.value.caption,
1100
- notice: Rr.value.notice
1101
- }, null, 8, [
1102
- "uid",
1103
- "head",
1104
- "body",
1105
- "caption",
1106
- "notice"
1107
- ])) : h("", !0),
1108
- E(e.$slots, "userConfig", {}, void 0, !0),
1109
- B.value.userOptions.buttons.annotator ? (C(), m(O(zt), {
1110
- key: 1,
1111
- svgRef: O(U),
1112
- backgroundColor: B.value.style.chart.backgroundColor,
1113
- color: B.value.style.chart.color,
1114
- active: Cr.value,
1115
- isCursorPointer: H.value,
1116
- onClose: wr
1117
- }, {
1118
- "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1119
- "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1120
- "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1121
- "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1122
- "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1123
- "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1124
- _: 3
1125
- }, 8, [
1126
- "svgRef",
1127
- "backgroundColor",
1128
- "color",
1129
- "active",
1130
- "isCursorPointer"
1131
- ])) : h("", !0),
1132
- Mn.value ? (C(), g("div", {
1133
- key: 2,
1134
- ref_key: "noTitle",
1135
- ref: Qt,
1136
- class: "vue-data-ui-no-title-space",
1137
- style: "height:36px; width: 100%;background:transparent"
1138
- }, null, 512)) : h("", !0),
1139
- B.value.style.chart.title.text ? (C(), g("div", {
1140
- key: 3,
1141
- ref_key: "chartTitle",
1142
- ref: Kt,
1143
- class: "vue-ui-xy-title",
1144
- style: S(`font-family:${B.value.style.fontFamily}`)
1145
- }, [(C(), m(Ee, {
1146
- key: `title_${qt.value}`,
1147
- config: {
1148
- title: {
1149
- cy: "history-plot-div-title",
1150
- ...B.value.style.chart.title
1151
- },
1152
- subtitle: {
1153
- cy: "history-plot-div-subtitle",
1154
- ...B.value.style.chart.title.subtitle
1155
- }
1156
- }
1157
- }, null, 8, ["config"]))], 4)) : h("", !0),
1158
- _("div", { id: `legend-top-${P.value}` }, null, 8, $e),
1159
- B.value.userOptions.show && gn.value && (O(Dn) || O(Tn)) ? (C(), m(O(Bt), {
1160
- ref_key: "userOptionsRef",
1161
- ref: on,
1162
- key: `user_option_${Zt.value}`,
1163
- backgroundColor: B.value.style.chart.backgroundColor,
1164
- color: B.value.style.chart.color,
1165
- isPrinting: O(On),
1166
- isImaging: O(kn),
1167
- uid: P.value,
1168
- hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
1169
- hasPdf: B.value.userOptions.buttons.pdf,
1170
- hasImg: B.value.userOptions.buttons.img,
1171
- hasSvg: B.value.userOptions.buttons.svg,
1172
- hasXls: B.value.userOptions.buttons.csv,
1173
- hasTable: B.value.userOptions.buttons.table,
1174
- hasLabel: !1,
1175
- hasFullscreen: B.value.userOptions.buttons.fullscreen,
1176
- hasAltCopy: B.value.userOptions.buttons.altCopy,
1177
- isFullscreen: I.value,
1178
- chartElement: j.value,
1179
- position: B.value.userOptions.position,
1180
- isTooltip: W.value.showTooltip,
1181
- titles: { ...B.value.userOptions.buttonTitles },
1182
- hasAnnotator: B.value.userOptions.buttons.annotator,
1183
- isAnnotation: Cr.value,
1184
- callbacks: B.value.userOptions.callbacks,
1185
- printScale: B.value.userOptions.print.scale,
1186
- tableDialog: B.value.table.useDialog,
1187
- isCursorPointer: H.value,
1188
- onToggleFullscreen: _r,
1189
- onGeneratePdf: O(An),
1190
- onGenerateCsv: Sr,
1191
- onGenerateImage: Ir,
1192
- onGenerateSvg: Fr,
1193
- onToggleTable: Tr,
1194
- onToggleTooltip: Er,
1195
- onToggleAnnotator: wr,
1196
- onCopyAlt: Lr,
1197
- style: S({ visibility: O(Dn) ? O(Tn) ? "visible" : "hidden" : "visible" })
1198
- }, Re({ _: 2 }, [
1199
- e.$slots.menuIcon ? {
1200
- name: "menuIcon",
1201
- fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1202
- isOpen: t,
1203
- color: n
1204
- })), void 0, !0)]),
1205
- key: "0"
1206
- } : void 0,
1207
- e.$slots.optionTooltip ? {
1208
- name: "optionTooltip",
1209
- fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1210
- key: "1"
1211
- } : void 0,
1212
- e.$slots.optionPdf ? {
1213
- name: "optionPdf",
1214
- fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1215
- key: "2"
1216
- } : void 0,
1217
- e.$slots.optionCsv ? {
1218
- name: "optionCsv",
1219
- fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1220
- key: "3"
1221
- } : void 0,
1222
- e.$slots.optionImg ? {
1223
- name: "optionImg",
1224
- fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1225
- key: "4"
1226
- } : void 0,
1227
- e.$slots.optionSvg ? {
1228
- name: "optionSvg",
1229
- fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1230
- key: "5"
1231
- } : void 0,
1232
- e.$slots.optionTable ? {
1233
- name: "optionTable",
1234
- fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1235
- key: "6"
1236
- } : void 0,
1237
- e.$slots.optionFullscreen ? {
1238
- name: "optionFullscreen",
1239
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1240
- toggleFullscreen: t,
1241
- isFullscreen: n
1242
- })), void 0, !0)]),
1243
- key: "7"
1244
- } : void 0,
1245
- e.$slots.optionAnnotator ? {
1246
- name: "optionAnnotator",
1247
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1248
- toggleAnnotator: t,
1249
- isAnnotator: n
1250
- })), void 0, !0)]),
1251
- key: "8"
1252
- } : void 0,
1253
- e.$slots.optionAltCopy ? {
1254
- name: "optionAltCopy",
1255
- fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1256
- key: "9"
1257
- } : void 0,
1258
- e.$slots["custom-menu-before"] ? {
1259
- name: "custom-menu-before",
1260
- fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1261
- key: "10"
1262
- } : void 0,
1263
- e.$slots["custom-menu-after"] ? {
1264
- name: "custom-menu-after",
1265
- fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1266
- key: "11"
1267
- } : void 0
1268
- ]), 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),
1269
- _("div", et, [(C(), g("svg", {
1270
- ref_key: "svgRef",
1271
- ref: U,
1272
- xmlns: O(le),
1273
- viewBox: `0 0 ${G.value.width < 0 ? .1 : G.value.width} ${G.value.height < 0 ? .1 : G.value.height}`,
1274
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
1275
- "aria-describedby": `chart-instructions-${P.value}`,
1276
- tabindex: "0",
1277
- onFocus: Vr,
1278
- onBlur: Hr,
1279
- onKeydown: Gr
1280
- }, [
1281
- Be(O(Vt)),
1282
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1283
- key: 0,
1284
- x: K.value.left,
1285
- y: K.value.top,
1286
- width: K.value.width <= 0 ? 10 : K.value.width,
1287
- height: K.value.height <= 0 ? 10 : K.value.height,
1288
- style: { pointerEvents: "none" }
1289
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
1290
- B.value.style.chart.plots.gradient.show || Jn.value ? (C(), g("defs", rt, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(X.value, (e, t) => (C(), m(Ae, {
1291
- t: "radial",
1292
- key: `gradient_${t}_${P.value}`,
1293
- id: `gradient_${t}_${P.value}`,
1294
- fy: "30%",
1295
- stops: [
1296
- [
1297
- "10%",
1298
- O(s)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
1299
- 1
1300
- ],
1301
- [
1302
- "90%",
1303
- O(ne)(e.color, .1),
1304
- 1
1305
- ],
1306
- [
1307
- "100%",
1308
- e.color,
1309
- 1
1310
- ]
1311
- ]
1312
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(X.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && Yn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(Ae, {
1313
- t: "radial",
1314
- key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
1315
- id: tr(e, t),
1316
- fy: "30%",
1317
- stops: [
1318
- [
1319
- "10%",
1320
- O(s)(Q(e, t), B.value.style.chart.plots.gradient.intensity / 100),
1321
- 1
1322
- ],
1323
- [
1324
- "90%",
1325
- O(ne)(Q(e, t), .1),
1326
- 1
1327
- ],
1328
- [
1329
- "100%",
1330
- Q(e, t),
1331
- 1
1332
- ]
1333
- ]
1334
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), Z(e) ? (C(), g("linearGradient", {
1335
- key: 1,
1336
- id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
1337
- gradientUnits: "userSpaceOnUse",
1338
- x1: $n(e).x1,
1339
- y1: $n(e).y1,
1340
- x2: $n(e).x2,
1341
- y2: $n(e).y2
1342
- }, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
1343
- key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
1344
- "stop-color": t,
1345
- offset: e.temperatureColors.length === 1 ? "0%" : O(pe)(n, e.temperatureColors.length)
1346
- }, null, 8, at))), 128))], 8, it)) : h("", !0)], 64))), 128))])) : h("", !0),
1347
- B.value.style.chart.grid.verticalLines.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
1348
- x1: e.x,
1349
- x2: e.x,
1350
- y1: e.y1,
1351
- y2: e.y2,
1352
- stroke: B.value.style.chart.grid.verticalLines.stroke,
1353
- "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1354
- "stroke-linecap": "round"
1355
- }, null, 8, st))), 256))])) : h("", !0),
1356
- B.value.style.chart.axes.y.labels.show ? (C(), g("g", ct, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
1357
- stroke: B.value.style.chart.grid.verticalLines.stroke,
1358
- "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1359
- "stroke-linecap": "round",
1360
- x1: K.value.left - 5,
1361
- x2: K.value.left,
1362
- y1: e.y,
1363
- y2: e.y
1364
- }, null, 8, lt))), 256))])) : h("", !0),
1365
- B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1366
- key: 4,
1367
- ref_key: "yAxisScales",
1368
- ref: fn
1369
- }, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("text", {
1370
- x: K.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
1371
- y: e.y + q.value.yAxisLabels / 3,
1372
- fill: B.value.style.chart.axes.y.labels.color,
1373
- "font-size": q.value.yAxisLabels,
1374
- "text-anchor": "end"
1375
- }, D(O(u)(B.value.style.chart.axes.y.labels.formatter, e.value, O(l)({
1376
- p: B.value.style.chart.axes.y.labels.prefix,
1377
- v: e.value,
1378
- s: B.value.style.chart.axes.y.labels.suffix,
1379
- r: B.value.style.chart.axes.y.labels.rounding
1380
- }))), 9, ut))), 256))], 512)) : h("", !0),
1381
- B.value.style.chart.axes.y.name.text ? (C(), g("text", {
1382
- key: 5,
1383
- ref_key: "yAxisLabel",
1384
- ref: un,
1385
- transform: `translate(${q.value.yAxisName}, ${G.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1386
- "font-size": q.value.yAxisName,
1387
- fill: B.value.style.chart.axes.y.name.color,
1388
- "font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1389
- "text-anchor": "middle"
1390
- }, D(B.value.style.chart.axes.y.name.text), 9, dt)) : h("", !0),
1391
- B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
1392
- x1: e.x1,
1393
- x2: e.x2,
1394
- y1: e.y,
1395
- y2: e.y,
1396
- stroke: B.value.style.chart.grid.horizontalLines.stroke,
1397
- "stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
1398
- "stroke-linecap": "round"
1399
- }, null, 8, pt))), 256))])) : h("", !0),
1400
- B.value.style.chart.axes.x.labels.show ? (C(), g("g", mt, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
1401
- stroke: B.value.style.chart.grid.verticalLines.stroke,
1402
- "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1403
- "stroke-linecap": "round",
1404
- x1: e.x,
1405
- x2: e.x,
1406
- y1: K.value.bottom,
1407
- y2: K.value.bottom + 5
1408
- }, null, 8, ht))), 256))])) : h("", !0),
1409
- B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1410
- key: 8,
1411
- ref_key: "xAxisScales",
1412
- ref: dn
1413
- }, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("text", {
1414
- class: "vue-ui-history-plot-x-axis-scale",
1415
- transform: `translate(${e.x}, ${K.value.bottom + B.value.style.chart.axes.x.labels.offsetY + q.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
1416
- fill: B.value.style.chart.axes.x.labels.color,
1417
- "font-size": q.value.xAxisLabels,
1418
- "text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1419
- }, D(O(u)(B.value.style.chart.axes.x.labels.formatter, e.value, O(l)({
1420
- p: B.value.style.chart.axes.x.labels.prefix,
1421
- v: e.value,
1422
- s: B.value.style.chart.axes.x.labels.suffix,
1423
- r: B.value.style.chart.axes.x.labels.rounding
1424
- }))), 9, gt))), 256))], 512)) : h("", !0),
1425
- B.value.style.chart.axes.x.name.text ? (C(), g("text", {
1426
- key: 9,
1427
- ref_key: "xAxisLabel",
1428
- ref: ln,
1429
- x: G.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
1430
- y: G.value.height,
1431
- "font-size": q.value.xAxisName,
1432
- fill: B.value.style.chart.axes.x.name.color,
1433
- "font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1434
- "text-anchor": "middle"
1435
- }, D(B.value.style.chart.axes.x.name.text), 9, _t)) : h("", !0),
1436
- B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
1437
- key: 10,
1438
- x1: K.value.left,
1439
- x2: K.value.left + K.value.width,
1440
- y1: K.value.bottom,
1441
- y2: K.value.bottom,
1442
- stroke: B.value.style.chart.grid.xAxis.stroke,
1443
- "stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
1444
- "stroke-linecap": "round"
1445
- }, null, 8, vt)) : h("", !0),
1446
- B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1447
- key: 11,
1448
- x1: K.value.left,
1449
- x2: K.value.left,
1450
- y1: K.value.top,
1451
- y2: K.value.bottom,
1452
- stroke: B.value.style.chart.grid.yAxis.stroke,
1453
- "stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
1454
- "stroke-linecap": "round"
1455
- }, null, 8, yt)) : h("", !0),
1456
- (C(!0), g(f, null, T(qn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1457
- B.value.style.chart.paths.show ? (C(), g("g", {
1458
- key: 0,
1459
- style: S({ opacity: sr(e.seriesIndex) })
1460
- }, [_("path", {
1461
- class: b({ "vue-data-ui-transition": O(V) }),
1462
- d: e.path,
1463
- stroke: B.value.style.chart.backgroundColor,
1464
- "stroke-width": B.value.style.chart.paths.strokeWidth + 4,
1465
- fill: "none",
1466
- "stroke-linecap": "round",
1467
- "stroke-linejoin": "round"
1468
- }, null, 10, bt), _("path", {
1469
- class: b({ "vue-data-ui-transition": O(V) }),
1470
- d: e.path,
1471
- stroke: or(e),
1472
- "stroke-width": B.value.style.chart.paths.strokeWidth,
1473
- fill: "none",
1474
- "stroke-linecap": "round",
1475
- "stroke-linejoin": "round"
1476
- }, null, 10, xt)], 4)) : h("", !0),
1477
- (C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
1478
- cx: e.x,
1479
- cy: e.y,
1480
- fill: B.value.style.chart.backgroundColor,
1481
- r: q.value.plots,
1482
- stroke: "none",
1483
- class: b({ "vue-data-ui-transition": O(V) })
1484
- }, null, 10, St))), 256)),
1485
- (C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
1486
- cx: t.x,
1487
- cy: t.y,
1488
- fill: nr(e, t, e.gradientIndex),
1489
- r: q.value.plots,
1490
- stroke: B.value.style.chart.plots.stroke,
1491
- "stroke-width": B.value.style.chart.plots.strokeWidth,
1492
- class: b({ "vue-data-ui-transition": O(V) }),
1493
- style: S({ opacity: sr(e.seriesIndex) })
1494
- }, null, 14, Ct))), 256)),
1495
- B.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", {
1496
- key: 1,
1497
- class: b({ "vue-data-ui-transition": O(V) }),
1498
- transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
1499
- "font-size": q.value.labels,
1500
- fill: B.value.style.chart.plots.labels.color,
1501
- "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1502
- "text-anchor": "middle",
1503
- style: S({ opacity: sr(e.seriesIndex) }),
1504
- innerHTML: O(r)({
1505
- content: String(t.label),
1506
- fontSize: q.value.labels,
1507
- fill: B.value.style.chart.plots.labels.color,
1508
- x: 0,
1509
- y: 0
1510
- })
1511
- }, null, 14, Et)) : (C(), g("text", {
1512
- key: 0,
1513
- class: b({ "vue-data-ui-transition": O(V) }),
1514
- transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
1515
- "font-size": q.value.labels,
1516
- fill: B.value.style.chart.plots.labels.color,
1517
- "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1518
- "text-anchor": "middle",
1519
- style: S({ opacity: sr(e.seriesIndex) })
1520
- }, D(t.label), 15, Tt))]))), 128))])) : h("", !0),
1521
- B.value.style.chart.plots.indexLabels.show ? (C(), g("g", Dt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1522
- key: `lab_${n}`,
1523
- class: b({ "vue-data-ui-transition": O(V) }),
1524
- transform: `translate(${t.x + B.value.style.chart.plots.indexLabels.offsetX}, ${t.y + B.value.style.chart.plots.indexLabels.offsetY + q.value.indexLabels / 3})`,
1525
- "font-size": q.value.indexLabels,
1526
- "font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1527
- fill: ir(e, t),
1528
- "text-anchor": "middle",
1529
- style: S({ opacity: sr(e.seriesIndex) })
1530
- }, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Ot))), 128))])) : h("", !0)
1531
- ]))), 128)),
1532
- (C(!0), g(f, null, T(qn.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", {
1533
- cx: t.x,
1534
- cy: t.y,
1535
- fill: "transparent",
1536
- r: q.value.plots,
1537
- stroke: "none",
1538
- onMouseenter: (r) => xr({
1539
- datapoint: t,
1540
- plotIndex: n,
1541
- seriesIndex: e.seriesIndex,
1542
- triggerMode: "pointer"
1543
- }),
1544
- onMouseleave: (r) => yr({
1545
- datapoint: t,
1546
- plotIndex: n,
1547
- seriesIndex: e.seriesIndex
1548
- }),
1549
- onClick: (r) => gr({
1550
- datapoint: t,
1551
- plotIndex: n,
1552
- seriesIndex: e.seriesIndex
1553
- })
1554
- }, null, 40, kt))), 256))]))), 128)),
1555
- E(e.$slots, "svg", { svg: {
1556
- ...G.value,
1557
- drawingArea: K.value,
1558
- isPrintingImg: O(On) || O(kn) || sn.value,
1559
- isPrintingSvg: cn.value
1560
- } }, void 0, !0)
1561
- ], 44, tt)), e.$slots.hint ? (C(), g("div", At, [E(e.$slots, "hint", x(y({
1562
- hint: B.value.a11y.translations.keyboardNavigation,
1563
- isVisible: hn.value
1564
- })), void 0, !0)])) : h("", !0)]),
1565
- e.$slots.watermark ? (C(), g("div", jt, [E(e.$slots, "watermark", x(y({ isPrinting: O(On) || O(kn) || sn.value || cn.value })), void 0, !0)])) : h("", !0),
1566
- _("div", { id: `legend-bottom-${P.value}` }, null, 8, Mt),
1567
- rn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Le, {
1568
- key: 6,
1569
- to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1570
- }, [_("div", {
1571
- ref_key: "chartLegend",
1572
- ref: Jt
1573
- }, [E(e.$slots, "legend", { legend: mr.value }, () => [B.value.style.chart.legend.show && gn.value ? (C(), m(Fe, {
1574
- key: `legend_${Yt.value}`,
1575
- legendSet: mr.value,
1576
- config: hr.value,
1577
- isCursorPointer: H.value,
1578
- onClickMarker: t[0] ||= ({ legend: e }) => {
1579
- ur(e.seriesIndex);
1580
- }
1581
- }, {
1582
- item: k(({ legend: e, index: t }) => [_("div", {
1583
- onClick: (t) => e.segregate(),
1584
- style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
1585
- }, D(e.name), 13, Nt)]),
1586
- legendToggle: k(() => [mr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(Sn) ? (C(), m(je, {
1587
- key: 0,
1588
- backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
1589
- color: B.value.style.chart.legend.selectAllToggle.color,
1590
- fontSize: B.value.style.chart.legend.fontSize,
1591
- checked: F.value.length > 0,
1592
- isCursorPointer: H.value,
1593
- onToggle: lr
1594
- }, null, 8, [
1595
- "backgroundColor",
1596
- "color",
1597
- "fontSize",
1598
- "checked",
1599
- "isCursorPointer"
1600
- ])) : h("", !0)]),
1601
- _: 1
1602
- }, 8, [
1603
- "legendSet",
1604
- "config",
1605
- "isCursorPointer"
1606
- ])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
1607
- e.$slots.source ? (C(), g("div", {
1608
- key: 7,
1609
- ref_key: "source",
1610
- ref: nn,
1611
- dir: "auto"
1612
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1613
- Be(O(Ft), {
1614
- teleportTo: B.value.style.chart.tooltip.teleportTo,
1615
- show: W.value.showTooltip && $t.value,
1616
- backgroundColor: B.value.style.chart.tooltip.backgroundColor,
1617
- color: B.value.style.chart.tooltip.color,
1618
- fontSize: B.value.style.chart.tooltip.fontSize,
1619
- borderRadius: B.value.style.chart.tooltip.borderRadius,
1620
- borderColor: B.value.style.chart.tooltip.borderColor,
1621
- borderWidth: B.value.style.chart.tooltip.borderWidth,
1622
- backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
1623
- position: B.value.style.chart.tooltip.position,
1624
- offsetX: B.value.style.chart.tooltip.offsetX,
1625
- offsetY: B.value.style.chart.tooltip.offsetY,
1626
- parent: j.value,
1627
- content: en.value,
1628
- isCustom: tn.value,
1629
- isFullscreen: I.value,
1630
- smooth: B.value.style.chart.tooltip.smooth,
1631
- backdropFilter: B.value.style.chart.tooltip.backdropFilter,
1632
- smoothForce: B.value.style.chart.tooltip.smoothForce,
1633
- smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
1634
- isA11yMode: mn.value === "keyboard",
1635
- a11yPosition: pn.value
1636
- }, {
1637
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...vr.value })), void 0, !0)]),
1638
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...vr.value })), void 0, !0)]),
1639
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...vr.value })), void 0, !0)]),
1640
- _: 3
1641
- }, 8, [
1642
- "teleportTo",
1643
- "show",
1644
- "backgroundColor",
1645
- "color",
1646
- "fontSize",
1647
- "borderRadius",
1648
- "borderColor",
1649
- "borderWidth",
1650
- "backgroundOpacity",
1651
- "position",
1652
- "offsetX",
1653
- "offsetY",
1654
- "parent",
1655
- "content",
1656
- "isCustom",
1657
- "isFullscreen",
1658
- "smooth",
1659
- "backdropFilter",
1660
- "smoothForce",
1661
- "smoothSnapThreshold",
1662
- "isA11yMode",
1663
- "a11yPosition"
1664
- ]),
1665
- gn.value && B.value.userOptions.buttons.table ? (C(), m(Ge(kr.value.component), Ve({ key: 8 }, kr.value.props, {
1666
- ref_key: "tableUnit",
1667
- ref: an,
1668
- onClose: Ar
1669
- }), Re({
1670
- content: k(() => [(C(), m(O(Rt), {
1671
- key: `table_${Xt.value}`,
1672
- colNames: $.value.colNames,
1673
- head: $.value.head,
1674
- body: $.value.body,
1675
- config: $.value.config,
1676
- title: B.value.table.useDialog ? "" : kr.value.title,
1677
- withCloseButton: !B.value.table.useDialog,
1678
- isCursorPointer: H.value,
1679
- onClose: Ar
1680
- }, {
1681
- th: k(({ th: e }) => [_("div", {
1682
- innerHTML: e,
1683
- style: {
1684
- display: "flex",
1685
- "align-items": "center"
1686
- }
1687
- }, null, 8, Pt)]),
1688
- td: k(({ td: e }) => [ze(D(e.name || e), 1)]),
1689
- _: 1
1690
- }, 8, [
1691
- "colNames",
1692
- "head",
1693
- "body",
1694
- "config",
1695
- "title",
1696
- "withCloseButton",
1697
- "isCursorPointer"
1698
- ]))]),
1699
- _: 2
1700
- }, [B.value.table.useDialog ? {
1701
- name: "title",
1702
- fn: k(() => [ze(D(kr.value.title), 1)]),
1703
- key: "0"
1704
- } : void 0, B.value.table.useDialog ? {
1705
- name: "actions",
1706
- fn: k(() => [_("button", {
1707
- tabindex: "0",
1708
- class: "vue-ui-user-options-button",
1709
- onClick: t[1] ||= (e) => Sr(B.value.userOptions.callbacks.csv),
1710
- style: S({ cursor: H.value ? "pointer" : "default" })
1711
- }, [Be(O(It), {
1712
- name: "fileCsv",
1713
- stroke: kr.value.props.color
1714
- }, null, 8, ["stroke"])], 4)]),
1715
- key: "1"
1716
- } : void 0]), 1040)) : h("", !0),
1717
- E(e.$slots, "skeleton", {}, () => [O(Sn) ? (C(), m(ye, { key: 0 })) : h("", !0)], !0)
1718
- ], 46, Ze));
1719
- }
1720
- }, [["__scopeId", "data-v-ec22280b"]]);
1721
- //#endregion
1722
- export { Xe as n, Ft as t };