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,28 +1,28 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Kt as r, Pt as i, X as a, a as o, i as s, q as c, r as l, x as u } from "./lib-BuMGJ_a0.js";
2
+ import { $ as t, D as n, Kt as r, Pt as i, X as a, a as o, i as s, q as c, r as l, x as u } from "./lib-Bttd6u5E.js";
3
3
  import { n as d, t as f } from "./useHints-Dq_w2E8B.js";
4
- import { t as p } from "./useConfig-BilxnBNr.js";
5
- import { t as m } from "./usePrinter-BFvi4jVy.js";
6
- import { t as h } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as g } from "./useNestedProp--NSEmhOH.js";
4
+ import { t as p } from "./useConfig-DlNpz6P8.js";
5
+ import { t as m } from "./usePrinter-DN5bYhTG.js";
6
+ import { t as h } from "./useNestedProp-vPNvh7rV.js";
8
7
  import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as te } from "./useTransitions-g_zBREk2.js";
10
- import { t as ne } from "./img-DIQG5q8T.js";
11
- import { n as re } from "./Title-BODtwViI.js";
12
- import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as oe } from "./vue_ui_hill-dnltu0L-.js";
15
- import { Fragment as _, computed as v, createBlock as se, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as ce, createVNode as le, defineAsyncComponent as ue, guardReactiveProps as S, nextTick as de, normalizeClass as fe, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as pe, onMounted as me, openBlock as T, ref as E, renderList as he, renderSlot as D, shallowRef as ge, toDisplayString as O, unref as k, useTemplateRef as _e, watch as ve, withCtx as A, withKeys as ye, withModifiers as j } from "vue";
8
+ import { t as te } from "./useChartExport-DNiwdPmb.js";
9
+ import { t as ne } from "./useTransitions-g_zBREk2.js";
10
+ import { t as re } from "./img-Bnokohej.js";
11
+ import { n as ie } from "./Title-BE3qg9xl.js";
12
+ import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
14
+ import { t as se } from "./vue_ui_hill-dnltu0L-.js";
15
+ import { Fragment as g, computed as _, createBlock as ce, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as le, createVNode as ue, defineAsyncComponent as de, guardReactiveProps as x, nextTick as fe, normalizeClass as pe, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as me, onMounted as he, openBlock as w, ref as T, renderList as ge, renderSlot as E, shallowRef as _e, toDisplayString as D, unref as O, useTemplateRef as ve, watch as ye, withCtx as k, withKeys as be, withModifiers as A } from "vue";
16
16
  //#region src/components/vue-ui-hill.vue
17
- var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"], Se = {
17
+ var xe = /* @__PURE__ */ e({ default: () => ht }), Se = ["id", "data-editing"], Ce = {
18
18
  key: 0,
19
19
  ref: "chartTitle",
20
20
  style: "width:100%;background:transparent;padding-bottom:24px"
21
- }, Ce = {
21
+ }, we = {
22
22
  key: 3,
23
23
  class: "vue-ui-hill__toolbar",
24
24
  "data-dom-to-png-ignore": ""
25
- }, we = ["viewBox"], Te = ["width", "height"], Ee = [
25
+ }, Te = ["viewBox"], Ee = ["width", "height"], De = [
26
26
  "x1",
27
27
  "x2",
28
28
  "y1",
@@ -30,7 +30,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
30
30
  "stroke",
31
31
  "stroke-width",
32
32
  "stroke-dasharray"
33
- ], De = [
33
+ ], Oe = [
34
34
  "x1",
35
35
  "x2",
36
36
  "y1",
@@ -38,32 +38,32 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
38
38
  "stroke",
39
39
  "stroke-width",
40
40
  "stroke-dasharray"
41
- ], Oe = [
41
+ ], ke = [
42
42
  "d",
43
43
  "stroke",
44
44
  "stroke-width",
45
45
  "stroke-dasharray"
46
- ], ke = {
46
+ ], Ae = {
47
47
  key: 0,
48
48
  "pointer-events": "none"
49
- }, Ae = [
49
+ }, je = [
50
50
  "d",
51
51
  "stroke",
52
52
  "stroke-width",
53
53
  "stroke-dasharray"
54
- ], je = [
54
+ ], Me = [
55
55
  "cx",
56
56
  "cy",
57
57
  "r",
58
58
  "fill",
59
59
  "stroke",
60
60
  "stroke-width"
61
- ], Me = [
61
+ ], Ne = [
62
62
  "transform",
63
63
  "font-size",
64
64
  "fill",
65
65
  "stroke"
66
- ], Ne = [
66
+ ], Pe = [
67
67
  "transform",
68
68
  "data-datapoint-index",
69
69
  "data-datapoint-id",
@@ -77,12 +77,12 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
77
77
  "onPointerenter",
78
78
  "onPointerleave",
79
79
  "onClick"
80
- ], Pe = ["r", "onPointerdown"], Fe = [
80
+ ], Fe = ["r", "onPointerdown"], Ie = [
81
81
  "r",
82
82
  "fill",
83
83
  "stroke",
84
84
  "stroke-width"
85
- ], Ie = ["stroke", "stroke-width"], Le = ["d"], Re = [
85
+ ], Le = ["stroke", "stroke-width"], Re = ["d"], ze = [
86
86
  "x",
87
87
  "y",
88
88
  "text-anchor",
@@ -91,7 +91,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
91
91
  "font-weight",
92
92
  "stroke",
93
93
  "stroke-width"
94
- ], ze = [
94
+ ], Be = [
95
95
  "transform",
96
96
  "tabindex",
97
97
  "aria-label",
@@ -99,23 +99,23 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
99
99
  "onClick",
100
100
  "onFocus",
101
101
  "onKeydown"
102
- ], Be = {
102
+ ], Ve = {
103
103
  key: 0,
104
104
  class: "vue-ui-hill__stack-overflow-collapse-ghosts",
105
105
  "pointer-events": "none",
106
106
  "aria-hidden": "true"
107
- }, Ve = [
107
+ }, He = [
108
108
  "cx",
109
109
  "cy",
110
110
  "r",
111
111
  "fill",
112
112
  "stroke",
113
113
  "stroke-width"
114
- ], He = ["from", "dur"], Ue = ["from", "dur"], We = [
114
+ ], Ue = ["from", "dur"], We = ["from", "dur"], Ge = [
115
115
  "from",
116
116
  "to",
117
117
  "dur"
118
- ], Ge = ["dur"], Ke = ["r"], qe = [
118
+ ], Ke = ["dur"], qe = ["r"], Je = [
119
119
  "x",
120
120
  "y",
121
121
  "width",
@@ -123,41 +123,41 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
123
123
  "fill",
124
124
  "stroke",
125
125
  "stroke-width"
126
- ], Je = ["stroke", "stroke-width"], Ye = ["d"], Xe = [
126
+ ], Ye = ["stroke", "stroke-width"], Xe = ["d"], Ze = [
127
127
  "y",
128
128
  "fill",
129
129
  "font-size",
130
130
  "font-weight",
131
131
  "stroke"
132
- ], Ze = [
132
+ ], Qe = [
133
133
  "x",
134
134
  "y",
135
135
  "fill",
136
136
  "font-size",
137
137
  "font-weight",
138
138
  "letter-spacing"
139
- ], Qe = [
139
+ ], $e = [
140
140
  "x",
141
141
  "y",
142
142
  "fill",
143
143
  "font-size",
144
144
  "font-weight",
145
145
  "letter-spacing"
146
- ], $e = [
146
+ ], et = [
147
147
  "x",
148
148
  "y",
149
149
  "rx",
150
150
  "width",
151
151
  "height",
152
152
  "fill"
153
- ], et = ["id"], tt = [
153
+ ], tt = ["id"], nt = [
154
154
  "x",
155
155
  "y",
156
156
  "width",
157
157
  "height",
158
158
  "rx",
159
159
  "ry"
160
- ], nt = ["clip-path"], rt = [
160
+ ], rt = ["clip-path"], it = [
161
161
  "width",
162
162
  "x",
163
163
  "y",
@@ -165,14 +165,14 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
165
165
  "height",
166
166
  "onPointerenter",
167
167
  "onPointerleave"
168
- ], it = [
168
+ ], at = [
169
169
  "x1",
170
170
  "x2",
171
171
  "y1",
172
172
  "y2",
173
173
  "stroke",
174
174
  "stroke-width"
175
- ], at = [
175
+ ], ot = [
176
176
  "x",
177
177
  "y",
178
178
  "width",
@@ -181,26 +181,26 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
181
181
  "ry",
182
182
  "stroke",
183
183
  "stroke-width"
184
- ], ot = [
184
+ ], st = [
185
185
  "x",
186
186
  "y",
187
187
  "fill",
188
188
  "font-size"
189
- ], st = ["aria-label", "onKeydown"], ct = {
189
+ ], ct = ["aria-label", "onKeydown"], lt = {
190
190
  key: 0,
191
191
  class: "vue-ui-hill__stack-overflow-menu-title"
192
- }, lt = [
192
+ }, ut = [
193
193
  "disabled",
194
194
  "aria-label",
195
195
  "onClick"
196
- ], ut = { class: "vue-ui-hill__stack-overflow-menu-label" }, dt = { class: "vue-ui-hill__stack-overflow-menu-value" }, ft = {
196
+ ], dt = { class: "vue-ui-hill__stack-overflow-menu-label" }, ft = { class: "vue-ui-hill__stack-overflow-menu-value" }, pt = {
197
197
  key: 6,
198
198
  class: "vue-data-ui-watermark"
199
- }, pt = {
199
+ }, mt = {
200
200
  key: 7,
201
201
  class: "vue-ui-hill__loading",
202
202
  "data-dom-to-png-ignore": ""
203
- }, mt = /*#__PURE__*/ ie({
203
+ }, ht = /*#__PURE__*/ ae({
204
204
  __name: "vue-ui-hill",
205
205
  props: {
206
206
  config: {
@@ -228,89 +228,89 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
228
228
  "datapointLeave",
229
229
  "selectDatapoint"
230
230
  ],
231
- setup(e, { expose: ie, emit: be }) {
232
- let mt = ue(() => import("./HillActions-BWhxHlrj.js")), ht = ue(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), gt = ue(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), _t = ue(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), vt = ue(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), { vue_ui_hill: yt } = p(), { isThemeValid: bt, warnInvalidTheme: xt } = ee(), St = e, Ct = E(c()), M = ge(null), N = _e("hillChartRef"), P = _e("svgRef"), wt = _e("overflowMenuRef"), Tt = _e("userOptionsRef"), Et = E(!1), Dt = E(!1), Ot = E(0), kt = be;
233
- function At() {
234
- let e = g({
235
- userConfig: St.config,
236
- defaultConfig: yt
231
+ setup(e, { expose: ae, emit: xe }) {
232
+ let ht = de(() => import("./HillActions-BD9j_sOU.js")), gt = de(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), _t = de(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), vt = de(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), yt = de(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), { vue_ui_hill: bt } = p(), { isThemeValid: xt, warnInvalidTheme: St } = ee(), Ct = e, wt = T(c()), j = _e(null), M = ve("hillChartRef"), N = ve("svgRef"), Tt = ve("overflowMenuRef"), Et = ve("userOptionsRef"), Dt = T(0), Ot = xe;
233
+ function kt() {
234
+ let e = h({
235
+ userConfig: Ct.config,
236
+ defaultConfig: bt
237
237
  }), t = {}, n = e.theme;
238
238
  if (!n) t = e;
239
- else if (!bt.value(e)) xt(e), t = e;
239
+ else if (!xt.value(e)) St(e), t = e;
240
240
  else {
241
- let i = g({
242
- userConfig: oe[n] || St.config,
241
+ let i = h({
242
+ userConfig: se[n] || Ct.config,
243
243
  defaultConfig: e
244
244
  });
245
245
  t = {
246
- ...g({
247
- userConfig: St.config,
246
+ ...h({
247
+ userConfig: Ct.config,
248
248
  defaultConfig: i
249
249
  }),
250
- customPalette: e.customPalette.length ? e.customPalette : r[n] || Jt
250
+ customPalette: e.customPalette.length ? e.customPalette : r[n] || Kt
251
251
  };
252
252
  }
253
253
  return t;
254
254
  }
255
- let F = E(At());
255
+ let P = T(kt());
256
256
  d({
257
- config: () => F.value,
258
- dataset: () => St.dataset,
257
+ config: () => P.value,
258
+ dataset: () => Ct.dataset,
259
259
  component: "VueUiHill",
260
260
  rules: [f.emptyArray, f.noHint]
261
261
  });
262
- let { transitionEnabled: jt } = te({
263
- config: () => F.value.transitions,
264
- dataset: () => St.dataset
265
- }), { userOptionsVisible: Mt, setUserOptionsVisibility: Nt, keepUserOptionState: Pt } = ae({ config: F.value });
266
- function Ft() {
267
- Nt(!0);
268
- }
269
- function It() {
270
- Nt(!1), Kn.value = null, $.value = null, Gn.value = null;
271
- }
272
- let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = m({
273
- elementId: `hill_${Ct.value}`,
274
- fileName: F.value.style.chart.title.text || "vue-ui-hill",
275
- options: F.value.userOptions.print
276
- }), Vt = v(() => F.value.userOptions.useCursorPointer), Ht = E(0), Ut = E(!1);
277
- function Wt(e) {
278
- Ut.value = e, Ht.value += 1;
279
- }
280
- let Gt = E(!1);
281
- function Kt() {
282
- Gt.value = !Gt.value;
283
- }
284
- let qt = v(() => F.value.userOptions.position === "left" ? "right" : "left");
285
- ve(() => St.config, () => {
286
- M.value = null, F.value = At(), Ht.value += 1, I.value !== F.value.editing && (I.value = F.value.editing && !F.value.readonly);
262
+ let { transitionEnabled: F } = ne({
263
+ config: () => P.value.transitions,
264
+ dataset: () => Ct.dataset
265
+ }), { userOptionsVisible: At, setUserOptionsVisibility: jt, keepUserOptionState: Mt } = oe({ config: P.value });
266
+ function Nt() {
267
+ jt(!0);
268
+ }
269
+ function Pt() {
270
+ jt(!1), Gn.value = null, $.value = null, Wn.value = null;
271
+ }
272
+ let { isPrinting: Ft, isImaging: It, generatePdf: Lt, generateImage: Rt } = m({
273
+ elementId: `hill_${wt.value}`,
274
+ fileName: P.value.style.chart.title.text || "vue-ui-hill",
275
+ options: P.value.userOptions.print
276
+ }), zt = _(() => P.value.userOptions.useCursorPointer), Bt = T(0), Vt = T(!1);
277
+ function Ht(e) {
278
+ Vt.value = e, Bt.value += 1;
279
+ }
280
+ let Ut = T(!1);
281
+ function Wt() {
282
+ Ut.value = !Ut.value;
283
+ }
284
+ let Gt = _(() => P.value.userOptions.position === "left" ? "right" : "left");
285
+ ye(() => Ct.config, () => {
286
+ j.value = null, P.value = kt(), Bt.value += 1, I.value !== P.value.editing && (I.value = P.value.editing && !P.value.readonly);
287
287
  }, { deep: !0 });
288
- let Jt = v(() => {
289
- let e = F.value.customPalette;
288
+ let Kt = _(() => {
289
+ let e = P.value.customPalette;
290
290
  return Array.isArray(e) && e.length ? e : i;
291
291
  });
292
- function Yt(e) {
292
+ function qt(e) {
293
293
  let t = Number(e);
294
294
  return Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0;
295
295
  }
296
- function Xt(e) {
296
+ function Jt(e) {
297
297
  if (e <= 0) return "todo";
298
298
  if (e >= 1) return "done";
299
- let t = .5, n = Math.min(t, Math.max(0, Number(F.value.interaction.peakTolerance) || 0)), r = t - n, i = t + n;
299
+ let t = .5, n = Math.min(t, Math.max(0, Number(P.value.interaction.peakTolerance) || 0)), r = t - n, i = t + n;
300
300
  return e >= r && e <= i ? "top" : e < t ? "left" : "right";
301
301
  }
302
- function Zt(e, t) {
303
- let n = e && typeof e == "object" ? e : {}, r = `Item ${t + 1}`, i = String(n.name ?? n.label ?? r), a = Yt(n.position ?? n.value ?? 0);
302
+ function Yt(e, t) {
303
+ let n = e && typeof e == "object" ? e : {}, r = `Item ${t + 1}`, i = String(n.name ?? n.label ?? r), a = qt(n.position ?? n.value ?? 0);
304
304
  return {
305
305
  ...n,
306
306
  id: String(n.id ?? `${i}-${t}`),
307
307
  name: i,
308
308
  label: String(n.label ?? i),
309
309
  position: a,
310
- color: n.color || Jt.value[t % Jt.value.length],
310
+ color: n.color || Kt.value[t % Kt.value.length],
311
311
  muted: !!n.muted,
312
312
  disabled: !!n.disabled,
313
- status: Xt(e.position),
313
+ status: Jt(e.position),
314
314
  labelSide: [
315
315
  "left",
316
316
  "right",
@@ -319,31 +319,31 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
319
319
  __index: t
320
320
  };
321
321
  }
322
- let Qt = v(() => Array.isArray(St.dataset) ? St.dataset.map(Zt) : []);
323
- function $t(e) {
322
+ let Xt = _(() => Array.isArray(Ct.dataset) ? Ct.dataset.map(Yt) : []);
323
+ function Zt(e) {
324
324
  return e.map((e) => ({ ...e }));
325
325
  }
326
- function en(e) {
326
+ function Qt(e) {
327
327
  let { __index: t, ...n } = e;
328
328
  return Object.prototype.hasOwnProperty.call(n, "value") && (n.value = n.position), n;
329
329
  }
330
- function tn(e = L.value) {
331
- return e.map(en);
330
+ function $t(e = L.value) {
331
+ return e.map(Qt);
332
332
  }
333
- let I = E(v(() => F.value.editing && !F.value.readonly).value), L = E($t(Qt.value)), R = E(null);
334
- ve(Qt, (e) => {
335
- I.value || (M.value = null, L.value = $t(e));
333
+ let en = _(() => P.value.editing && !P.value.readonly), I = T(en.value), L = T(Zt(Xt.value)), R = T(null);
334
+ ye(Xt, (e) => {
335
+ I.value || (j.value = null, L.value = Zt(e));
336
336
  }, { deep: !0 });
337
- let z = v(() => !F.value.readonly);
338
- ve(z, (e) => {
339
- e || (R.value = null, M.value = null, I.value = !1, L.value = $t(Qt.value));
337
+ let z = _(() => !P.value.readonly);
338
+ ye(z, (e) => {
339
+ e || (R.value = null, j.value = null, I.value = !1, L.value = Zt(Xt.value));
340
340
  });
341
341
  function B(e, t) {
342
- kt(e, t);
343
- let n = F.value.events?.[e];
342
+ Ot(e, t);
343
+ let n = P.value.events?.[e];
344
344
  typeof n == "function" && n(t);
345
345
  }
346
- let V = v(() => F.value.style.chart), nn = v(() => V.value.layout), H = v(() => nn.value.hill), U = v(() => nn.value.plots), W = v(() => nn.value.labels.item), G = v(() => nn.value.labels.phases), K = v(() => V.value.toolbar), q = v(() => nn.value.stackbar), J = v(() => {
346
+ let V = _(() => P.value.style.chart), tn = _(() => V.value.layout), H = _(() => tn.value.hill), U = _(() => tn.value.plots), W = _(() => tn.value.labels.item), G = _(() => tn.value.labels.phases), K = _(() => V.value.toolbar), q = _(() => tn.value.stackbar), J = _(() => {
347
347
  let e = U.value.stacking?.overflow || {}, t = Math.max(0, Number(U.value.radius) || 0);
348
348
  return {
349
349
  show: e.show !== !1,
@@ -358,7 +358,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
358
358
  offsetY: e.marker.labelOffsetY
359
359
  },
360
360
  hysteresis: t * 1.5,
361
- transitionDuration: jt.value ? e.transitionDuration : 0,
361
+ transitionDuration: F.value ? e.transitionDuration : 0,
362
362
  menu: {
363
363
  width: Math.max(160, Number(e.menu?.width) || 220),
364
364
  maxHeight: Math.max(96, Number(e.menu?.maxHeight) || 220),
@@ -369,12 +369,12 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
369
369
  }
370
370
  };
371
371
  });
372
- function rn(e, t, n = 1) {
372
+ function nn(e, t, n = 1) {
373
373
  let r = Number(e);
374
374
  return Number.isFinite(r) ? Math.min(n, Math.max(0, r)) : t;
375
375
  }
376
- let Y = v(() => {
377
- let e = H.value.geometry || {}, t = Math.max(0, Number(V.value.width) || 0), n = Math.max(0, Number(V.value.height) || 0), r = rn(e.horizontalPaddingRatio, .02, .49), i = rn(e.topPaddingRatio, .12, .49), a = rn(e.bottomPaddingRatio, .2, .49), o = rn(e.curvature, .65), s = t * r, c = t / 2, l = t * (1 - r), u = n * i, d = n * (1 - a), f = c - s, p = l - c, m = s + f * o, h = c + p * (1 - o);
376
+ let Y = _(() => {
377
+ let e = H.value.geometry || {}, t = Math.max(0, Number(V.value.width) || 0), n = Math.max(0, Number(V.value.height) || 0), r = nn(e.horizontalPaddingRatio, .02, .49), i = nn(e.topPaddingRatio, .12, .49), a = nn(e.bottomPaddingRatio, .2, .49), o = nn(e.curvature, .65), s = t * r, c = t / 2, l = t * (1 - r), u = n * i, d = n * (1 - a), f = c - s, p = l - c, m = s + f * o, h = c + p * (1 - o);
378
378
  return {
379
379
  startX: s,
380
380
  centerX: c,
@@ -419,7 +419,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
419
419
  }
420
420
  ]
421
421
  };
422
- }), an = v(() => {
422
+ }), rn = _(() => {
423
423
  let { left: e, right: t } = Y.value;
424
424
  return [
425
425
  `M${e[0].x} ${e[0].y}`,
@@ -427,21 +427,21 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
427
427
  `C${t[1].x} ${t[1].y} ${t[2].x} ${t[2].y} ${t[3].x} ${t[3].y}`
428
428
  ].join(" ");
429
429
  });
430
- function on(e, t, n, r, i) {
430
+ function an(e, t, n, r, i) {
431
431
  let a = 1 - i;
432
432
  return a ** 3 * e + 3 * a ** 2 * i * t + 3 * a * i ** 2 * n + i ** 3 * r;
433
433
  }
434
- function sn(e, t, n, r, i) {
434
+ function on(e, t, n, r, i) {
435
435
  let a = 1 - i;
436
436
  return 3 * a ** 2 * (t - e) + 6 * a * i * (n - t) + 3 * i ** 2 * (r - n);
437
437
  }
438
- function cn(e) {
439
- let t = Yt(e), { startX: n, centerX: r, endX: i, left: a, right: o } = Y.value, s = n + (t - 0) / 1 * (i - n), c = s <= r ? a : o, l = 0, u = 1;
438
+ function sn(e) {
439
+ let t = qt(e), { startX: n, centerX: r, endX: i, left: a, right: o } = Y.value, s = n + (t - 0) / 1 * (i - n), c = s <= r ? a : o, l = 0, u = 1;
440
440
  for (let e = 0; e < 28; e += 1) {
441
441
  let e = (l + u) / 2;
442
- on(c[0].x, c[1].x, c[2].x, c[3].x, e) < s ? l = e : u = e;
442
+ an(c[0].x, c[1].x, c[2].x, c[3].x, e) < s ? l = e : u = e;
443
443
  }
444
- let d = (l + u) / 2, f = on(c[0].y, c[1].y, c[2].y, c[3].y, d), p = sn(c[0].x, c[1].x, c[2].x, c[3].x, d), m = sn(c[0].y, c[1].y, c[2].y, c[3].y, d), h = Math.hypot(p, m) || 1;
444
+ let d = (l + u) / 2, f = an(c[0].y, c[1].y, c[2].y, c[3].y, d), p = on(c[0].x, c[1].x, c[2].x, c[3].x, d), m = on(c[0].y, c[1].y, c[2].y, c[3].y, d), h = Math.hypot(p, m) || 1;
445
445
  return {
446
446
  x: s,
447
447
  y: f,
@@ -449,11 +449,11 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
449
449
  normalY: -p / h
450
450
  };
451
451
  }
452
- function ln(e) {
452
+ function cn(e) {
453
453
  let t = Number(U.value.stacking.overlapThresholdRatio);
454
454
  return e * (2 - (Number.isFinite(t) ? Math.min(2, Math.max(0, t)) : .5));
455
455
  }
456
- function un(e, t) {
456
+ function ln(e, t) {
457
457
  let n = /* @__PURE__ */ new Map(), r = U.value.stacking;
458
458
  if (e.forEach((e) => {
459
459
  n.set(e.id, {
@@ -463,10 +463,10 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
463
463
  stackId: `stack:${e.id}`
464
464
  });
465
465
  }), !r.show || e.length < 2 || t <= 0) return n;
466
- let i = ln(t), a = e.map((e, t) => ({
466
+ let i = cn(t), a = e.map((e, t) => ({
467
467
  datapoint: e,
468
468
  index: t,
469
- point: cn(e.position)
469
+ point: sn(e.position)
470
470
  })).sort((e, t) => e.point.x - t.point.x || e.datapoint.position - t.datapoint.position || e.index - t.index), o = 0;
471
471
  for (; o < a.length;) {
472
472
  let e = [a[o]], t = o + 1;
@@ -490,28 +490,28 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
490
490
  }
491
491
  return n;
492
492
  }
493
- function dn(e) {
493
+ function un(e) {
494
494
  let t = e + Math.max(0, Number(U.value.strokeWidth) || 0) / 2, n = U.value.stacking.gap ?? e / 2;
495
495
  return t * 2 + n;
496
496
  }
497
- let fn = E(null), X = E(null), Z = E(null), pn = E(null), mn = E(null), hn = /* @__PURE__ */ new Set(), gn = null, _n = null, Q = null;
498
- function vn(e) {
497
+ let dn = T(null), X = T(null), Z = T(null), fn = T(null), pn = T(null), mn = /* @__PURE__ */ new Set(), hn = null, gn = null, Q = null;
498
+ function _n(e) {
499
499
  let t = Math.max(0, Number(U.value.strokeWidth) || 0), n = U.value.shadow.show ? Math.max(0, Number(U.value.shadow.blur) || 0) + Math.max(0, -(Number(U.value.shadow.offsetY) || 0)) : 0;
500
500
  return e + t / 2 + n;
501
501
  }
502
- function yn(e, t, n) {
503
- if (t <= 1) return e - vn(n);
504
- let r = dn(n);
505
- return e - (t - 1) * r - vn(n);
502
+ function vn(e, t, n) {
503
+ if (t <= 1) return e - _n(n);
504
+ let r = un(n);
505
+ return e - (t - 1) * r - _n(n);
506
506
  }
507
- function bn(e, t, n, r) {
508
- if (n <= 1) return hn.delete(e), !1;
509
- let i = yn(t, n, r), a = hn.has(e), o = J.value.hysteresis, s = a ? i < o : i < 0;
510
- return s ? hn.add(e) : hn.delete(e), s;
507
+ function yn(e, t, n, r) {
508
+ if (n <= 1) return mn.delete(e), !1;
509
+ let i = vn(t, n, r), a = mn.has(e), o = J.value.hysteresis, s = a ? i < o : i < 0;
510
+ return s ? mn.add(e) : mn.delete(e), s;
511
511
  }
512
- let xn = v(() => {
513
- let e = Math.max(0, Number(U.value.radius) || 0), t = dn(e), n = un(L.value, e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = /* @__PURE__ */ new Set(), s = R.value?.id ?? null;
514
- J.value.show || hn.clear(), L.value.forEach((e) => {
512
+ let bn = _(() => {
513
+ let e = Math.max(0, Number(U.value.radius) || 0), t = un(e), n = ln(L.value, e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = /* @__PURE__ */ new Set(), s = R.value?.id ?? null;
514
+ J.value.show || mn.clear(), L.value.forEach((e) => {
515
515
  let t = n.get(e.id) || {
516
516
  position: e.position,
517
517
  index: 0,
@@ -524,11 +524,11 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
524
524
  });
525
525
  });
526
526
  let c = new Set(r.keys());
527
- return hn.forEach((e) => {
528
- c.has(e) || hn.delete(e);
527
+ return mn.forEach((e) => {
528
+ c.has(e) || mn.delete(e);
529
529
  }), r.forEach((n, r) => {
530
- let c = [...n].sort((e, t) => e.stack.index - t.stack.index || e.datapoint.__index - t.datapoint.__index), l = c.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / c.length, u = cn(l);
531
- if (!(J.value.show && bn(r, u.y, c.length, e))) {
530
+ let c = [...n].sort((e, t) => e.stack.index - t.stack.index || e.datapoint.__index - t.datapoint.__index), l = c.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / c.length, u = sn(l);
531
+ if (!(J.value.show && yn(r, u.y, c.length, e))) {
532
532
  c.forEach((e) => {
533
533
  i.set(e.datapoint.id, {
534
534
  hidden: !1,
@@ -544,7 +544,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
544
544
  c.forEach(({ datapoint: e }) => {
545
545
  o.add(e.id);
546
546
  });
547
- let d = s ? c.find(({ datapoint: e }) => e.id === s) : null, f = c.find(({ datapoint: e }) => e.id === fn.value), p = d || f || null, m = p ? c.filter(({ datapoint: e }) => e.id !== p.datapoint.id) : c, h = X.value, g = !!(f && h?.datapointId === f.datapoint.id && !h.moved), ee = m.length ? g ? l : m.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / m.length : l, te = cn(ee);
547
+ let d = s ? c.find(({ datapoint: e }) => e.id === s) : null, f = c.find(({ datapoint: e }) => e.id === dn.value), p = d || f || null, m = p ? c.filter(({ datapoint: e }) => e.id !== p.datapoint.id) : c, h = X.value, ee = !!(f && h?.datapointId === f.datapoint.id && !h.moved), te = m.length ? ee ? l : m.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / m.length : l, ne = sn(te);
548
548
  c.forEach((e) => {
549
549
  let t = p?.datapoint.id === e.datapoint.id, n = t && f?.datapoint.id === e.datapoint.id;
550
550
  i.set(e.datapoint.id, {
@@ -553,23 +553,23 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
553
553
  stackId: r,
554
554
  stackSize: c.length,
555
555
  promotedFromOverflow: n,
556
- renderPosition: ee
556
+ renderPosition: te
557
557
  });
558
558
  }), m.length && a.push({
559
559
  stackId: r,
560
- anchorPosition: ee,
561
- x: te.x,
562
- y: te.y,
560
+ anchorPosition: te,
561
+ x: ne.x,
562
+ y: ne.y,
563
563
  hiddenCount: m.length,
564
564
  hiddenDatapoints: m.map(({ datapoint: e }) => e),
565
565
  memberIds: c.map(({ datapoint: e }) => e.id),
566
566
  collapseDatapoints: m.map(({ datapoint: e, stack: n }) => {
567
- let r = cn(n.position);
567
+ let r = sn(n.position);
568
568
  return {
569
569
  id: e.id,
570
570
  color: e.color,
571
- relativeX: r.x - te.x,
572
- relativeY: r.y - n.index * t - te.y
571
+ relativeX: r.x - ne.x,
572
+ relativeY: r.y - n.index * t - ne.y
573
573
  };
574
574
  })
575
575
  });
@@ -580,15 +580,15 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
580
580
  overflowMemberIds: o
581
581
  };
582
582
  });
583
- function Sn(e) {
584
- let t = wn.value.filter((e) => !e.isStackOverflowHidden), n = t.find((t) => t.id === e), r = new Map(t.filter((t) => t.id !== e).map((e) => [e.id, {
583
+ function xn(e) {
584
+ let t = Cn.value.filter((e) => !e.isStackOverflowHidden), n = t.find((t) => t.id === e), r = new Map(t.filter((t) => t.id !== e).map((e) => [e.id, {
585
585
  x: e.x,
586
586
  y: e.y
587
587
  }]));
588
588
  if (!n || !U.value.stacking.show) return r;
589
589
  let i = t.filter((e) => Math.abs(e.x - n.x) < .001).sort((e, t) => t.y - e.y || e.datasetIndex - t.datasetIndex);
590
590
  if (i.length < 2) return r;
591
- let a = dn(Math.max(0, Number(U.value.radius) || 0)), o = Math.max(...i.map((e) => e.y));
591
+ let a = un(Math.max(0, Number(U.value.radius) || 0)), o = Math.max(...i.map((e) => e.y));
592
592
  return i.filter((t) => t.id !== e).forEach((e, t) => {
593
593
  r.set(e.id, {
594
594
  x: n.x,
@@ -596,14 +596,14 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
596
596
  });
597
597
  }), r;
598
598
  }
599
- function Cn() {
600
- return new Map(wn.value.filter((e) => !e.isStackOverflowHidden).map((e) => [e.id, {
599
+ function Sn() {
600
+ return new Map(Cn.value.filter((e) => !e.isStackOverflowHidden).map((e) => [e.id, {
601
601
  x: e.x,
602
602
  y: e.y
603
603
  }]));
604
604
  }
605
- let wn = v(() => {
606
- let e = Math.max(0, Number(U.value.radius) || 0), { layoutMap: t, displayMap: n, markers: r } = xn.value, i = dn(e), a = R.value, o = a?.stationaryLayout, s = o instanceof Map ? o : M.value instanceof Map ? M.value : null, c = null;
605
+ let Cn = _(() => {
606
+ let e = Math.max(0, Number(U.value.radius) || 0), { layoutMap: t, displayMap: n, markers: r } = bn.value, i = un(e), a = R.value, o = a?.stationaryLayout, s = o instanceof Map ? o : j.value instanceof Map ? j.value : null, c = null;
607
607
  if (a && o instanceof Map && U.value.stacking.show && e > 0) {
608
608
  let t = L.value.find((e) => e.id === a.id);
609
609
  if (t) {
@@ -613,8 +613,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
613
613
  y: n.y - i
614
614
  };
615
615
  else {
616
- let n = cn(t.position), r = ln(e), s = L.value.filter((e) => e.id !== a.id && o.has(e.id)).map((e) => {
617
- let t = cn(e.position);
616
+ let n = sn(t.position), r = cn(e), s = L.value.filter((e) => e.id !== a.id && o.has(e.id)).map((e) => {
617
+ let t = sn(e.position);
618
618
  return {
619
619
  datapoint: e,
620
620
  distance: Math.hypot(t.x - n.x, t.y - n.y)
@@ -642,10 +642,10 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
642
642
  stackId: o.stackId,
643
643
  stackSize: o.size,
644
644
  renderPosition: o.position
645
- }, d = cn(l.renderPosition ?? o.position), f = e.id !== a?.id && !l.promotedFromOverflow && s instanceof Map ? s.get(e.id) : null, p = e.id === a?.id && c ? c : f || {
645
+ }, d = sn(l.renderPosition ?? o.position), f = e.id !== a?.id && !l.promotedFromOverflow && s instanceof Map ? s.get(e.id) : null, p = e.id === a?.id && c ? c : f || {
646
646
  x: d.x,
647
647
  y: d.y - l.displayIndex * i
648
- }, m = e.labelSide === "auto" ? null : e.labelSide, h = u(W.value.autoSideThreshold, .5, 1), g = m || (e.position > h ? "left" : "right"), ee = Math.abs(Number(W.value.offsetX) || 0) + U.value.radius + W.value.fontSize / 2;
648
+ }, m = e.labelSide === "auto" ? null : e.labelSide, h = u(W.value.autoSideThreshold, .5, 1), ee = m || (e.position > h ? "left" : "right"), te = Math.abs(Number(W.value.offsetX) || 0) + U.value.radius + W.value.fontSize / 2;
649
649
  return {
650
650
  ...e,
651
651
  datasetIndex: r,
@@ -656,51 +656,51 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
656
656
  stackDisplayIndex: l.displayIndex,
657
657
  isStackOverflowHidden: l.hidden,
658
658
  isPromotedFromStackOverflow: l.promotedFromOverflow,
659
- labelSide: g,
660
- labelX: g === "left" ? -ee : ee,
661
- textAnchor: g === "left" ? "end" : "start"
659
+ labelSide: ee,
660
+ labelX: ee === "left" ? -te : te,
661
+ textAnchor: ee === "left" ? "end" : "start"
662
662
  };
663
663
  });
664
664
  });
665
- function Tn(e) {
665
+ function wn(e) {
666
666
  return L.value.find((t) => t.id === e);
667
667
  }
668
- function En(e, t) {
669
- let n = Yt(t), r;
668
+ function Tn(e, t) {
669
+ let n = qt(t), r;
670
670
  L.value = L.value.map((t) => t.id === e ? (r = {
671
671
  ...t,
672
672
  position: n
673
- }, r) : t), r && (fr(r.id, r.position), B("change", {
674
- datapoint: en(r),
675
- dataset: tn()
673
+ }, r) : t), r && (dr(r.id, r.position), B("change", {
674
+ datapoint: Qt(r),
675
+ dataset: $t()
676
676
  }));
677
677
  }
678
- function Dn(e) {
679
- let t = P.value;
678
+ function En(e) {
679
+ let t = N.value;
680
680
  if (!t) return null;
681
681
  let n = t.getScreenCTM();
682
682
  if (!n) return null;
683
683
  let r = t.createSVGPoint();
684
684
  r.x = e, r.y = 0;
685
685
  let i = r.matrixTransform(n.inverse()), { startX: a, endX: o } = Y.value;
686
- return Yt(0 + (i.x - a) / (o - a) * 1);
686
+ return qt(0 + (i.x - a) / (o - a) * 1);
687
+ }
688
+ function Dn() {
689
+ z.value && (Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), j.value = null, L.value = Zt(Xt.value), I.value = !0, B("edit", $t()));
687
690
  }
688
691
  function On() {
689
- z.value && (Z.value = null, fn.value = null, X.value = null, mn.value = null, ar(), M.value = null, L.value = $t(Qt.value), I.value = !0, B("edit", tn()));
692
+ let e = $t();
693
+ Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), R.value = null, I.value = !1, B("save", e);
690
694
  }
691
695
  function kn() {
692
- let e = tn();
693
- Z.value = null, fn.value = null, X.value = null, mn.value = null, ar(), R.value = null, I.value = !1, B("save", e);
694
- }
695
- function An() {
696
- Z.value = null, fn.value = null, X.value = null, mn.value = null, ar(), R.value = null, M.value = null, L.value = $t(Qt.value), I.value = !1, B("cancel", tn());
696
+ Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), R.value = null, j.value = null, L.value = Zt(Xt.value), I.value = !1, B("cancel", $t());
697
697
  }
698
- function jn(e, t) {
698
+ function An(e, t) {
699
699
  if (!z.value || !I.value || t.disabled) return;
700
700
  Z.value = null;
701
701
  let n = e.currentTarget.closest(".vue-ui-hill__datapoint");
702
702
  n && typeof n.focus == "function" && (n.focus(), $.value = t.id), e.preventDefault();
703
- let r = Sn(t.id), i = X.value?.datapointId === t.id && !X.value?.moved;
703
+ let r = xn(t.id), i = X.value?.datapointId === t.id && !X.value?.moved;
704
704
  if (R.value = {
705
705
  id: t.id,
706
706
  pointerId: e.pointerId,
@@ -708,14 +708,14 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
708
708
  startClientX: e.clientX,
709
709
  hasMoved: !1,
710
710
  deferPositionUpdate: i
711
- }, P.value?.setPointerCapture(e.pointerId), !i) {
712
- let n = Dn(e.clientX);
713
- n !== null && En(t.id, n);
711
+ }, N.value?.setPointerCapture(e.pointerId), !i) {
712
+ let n = En(e.clientX);
713
+ n !== null && Tn(t.id, n);
714
714
  }
715
- let a = Tn(t.id);
716
- a && B("dragStart", en(a));
715
+ let a = wn(t.id);
716
+ a && B("dragStart", Qt(a));
717
717
  }
718
- function Mn(e) {
718
+ function jn(e) {
719
719
  if (!R.value || R.value.pointerId !== e.pointerId) return;
720
720
  e.preventDefault();
721
721
  let t = Math.abs(e.clientX - R.value.startClientX);
@@ -724,19 +724,19 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
724
724
  ...R.value,
725
725
  hasMoved: !0
726
726
  });
727
- let n = Dn(e.clientX);
728
- n !== null && En(R.value.id, n);
727
+ let n = En(e.clientX);
728
+ n !== null && Tn(R.value.id, n);
729
729
  }
730
- function Nn(e) {
730
+ function Mn(e) {
731
731
  let t = R.value;
732
732
  if (!t || t.pointerId !== e.pointerId) return;
733
- P.value?.hasPointerCapture(e.pointerId) && P.value.releasePointerCapture(e.pointerId);
734
- let n = e.type === "pointerup" && !t.hasMoved, r = Tn(t.id);
735
- M.value = Cn(), R.value = null, r && (n && B("selectDatapoint", In(r)), B("dragEnd", en(r)));
733
+ N.value?.hasPointerCapture(e.pointerId) && N.value.releasePointerCapture(e.pointerId);
734
+ let n = e.type === "pointerup" && !t.hasMoved, r = wn(t.id);
735
+ j.value = Sn(), R.value = null, r && (n && B("selectDatapoint", Fn(r)), B("dragEnd", Qt(r)));
736
736
  }
737
- function Pn(e, t) {
737
+ function Nn(e, t) {
738
738
  if (!z.value || !I.value || t.disabled) return;
739
- let n = Math.max(0, Number(F.value.interaction.keyboardStep) || 0), r = null;
739
+ let n = Math.max(0, Number(P.value.interaction.keyboardStep) || 0), r = null;
740
740
  switch (e.key) {
741
741
  case "ArrowLeft":
742
742
  case "ArrowDown":
@@ -759,96 +759,96 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
759
759
  $.value = t.id, R.value = {
760
760
  id: t.id,
761
761
  pointerId: null,
762
- stationaryLayout: Sn(t.id)
763
- }, En(t.id, r), M.value = Cn(), R.value = null, de(() => {
762
+ stationaryLayout: xn(t.id)
763
+ }, Tn(t.id, r), j.value = Sn(), R.value = null, fe(() => {
764
764
  i?.isConnected && i.focus({ preventScroll: !0 });
765
765
  });
766
766
  }
767
- function Fn(e) {
768
- let t = .5, n = Math.max(0, Number(F.value.interaction.peakTolerance) || 0);
769
- return Math.abs(e - t) <= n ? F.value.a11y.translations.topOfHill : e < t ? G.value.left.text : G.value.right.text;
767
+ function Pn(e) {
768
+ let t = .5, n = Math.max(0, Number(P.value.interaction.peakTolerance) || 0);
769
+ return Math.abs(e - t) <= n ? P.value.a11y.translations.topOfHill : e < t ? G.value.left.text : G.value.right.text;
770
770
  }
771
- function In(e) {
771
+ function Fn(e) {
772
772
  return {
773
- datapoint: en(e),
773
+ datapoint: Qt(e),
774
774
  index: e.__index
775
775
  };
776
776
  }
777
+ function In(e) {
778
+ $.value = null, Gn.value = e.id, ![0, 1].includes(e.position) && $.value !== e.id && Jn(e), B("datapointEnter", Fn(e));
779
+ }
777
780
  function Ln(e) {
778
- $.value = null, Kn.value = e.id, ![0, 1].includes(e.position) && $.value !== e.id && Yn(e), B("datapointEnter", In(e));
781
+ Gn.value === e.id && (Gn.value = null), Wn.value === e.id && $.value !== e.id && R.value?.id !== e.id && (Wn.value = null), B("datapointLeave", Fn(e));
779
782
  }
780
783
  function Rn(e) {
781
- Kn.value === e.id && (Kn.value = null), Gn.value === e.id && $.value !== e.id && R.value?.id !== e.id && (Gn.value = null), B("datapointLeave", In(e));
782
- }
783
- function zn(e) {
784
- I.value && z.value || B("selectDatapoint", In(e));
784
+ I.value && z.value || B("selectDatapoint", Fn(e));
785
785
  }
786
- let Bn = v(() => {
786
+ let zn = _(() => {
787
787
  let e = V.value;
788
788
  return {
789
789
  width: "100%",
790
790
  maxWidth: "100%",
791
791
  color: e.color,
792
792
  backgroundColor: e.backgroundColor,
793
- fontFamily: F.value.style.fontFamily,
793
+ fontFamily: P.value.style.fontFamily,
794
794
  "--vue-ui-hill-button-hover-border": K.value.buttons.hoverBorderColor,
795
795
  "--vue-ui-hill-button-active-offset": `${K.value.buttons.activeTranslateY}px`
796
796
  };
797
- }), Vn = v(() => ({
797
+ }), Bn = _(() => ({
798
798
  color: K.value.status.color,
799
799
  fontSize: `${K.value.status.fontSize}px`,
800
800
  fontWeight: K.value.status.bold ? "bold" : "normal",
801
801
  lineHeight: K.value.status.lineHeight
802
802
  }));
803
- v(() => ({
803
+ _(() => ({
804
804
  color: V.value.title.color,
805
805
  fontSize: `${V.value.title.fontSize}px`,
806
806
  fontWeight: V.value.title.bold ? "bold" : "normal",
807
807
  textAlign: V.value.title.textAlign
808
- })), v(() => ({
808
+ })), _(() => ({
809
809
  color: V.value.title.subtitle.color,
810
810
  fontSize: `${V.value.title.subtitle.fontSize}px`,
811
811
  fontWeight: V.value.title.subtitle.bold ? "bold" : "normal"
812
812
  }));
813
- let Hn = v(() => {
813
+ let Vn = _(() => {
814
814
  let e = Math.max(0, Number(V.value.height) || 0);
815
815
  return Math.min(e, Y.value.baseY + e) + G.value.offsetY;
816
816
  });
817
- function Un(e) {
817
+ function Hn(e) {
818
818
  return G.value[e].text;
819
819
  }
820
- function Wn(e) {
820
+ function Un(e) {
821
821
  return e.position === 0 || e.position === 1;
822
822
  }
823
- let Gn = E(null), Kn = E(null), $ = E(null);
824
- function qn(e) {
823
+ let Wn = T(null), Gn = T(null), $ = T(null);
824
+ function Kn(e) {
825
825
  $.value = e.id;
826
826
  }
827
- function Jn(e) {
828
- $.value === e.id && ($.value = null), Gn.value === e.id && Kn.value !== e.id && R.value?.id !== e.id && (Gn.value = null);
827
+ function qn(e) {
828
+ $.value === e.id && ($.value = null), Wn.value === e.id && Gn.value !== e.id && R.value?.id !== e.id && (Wn.value = null);
829
829
  }
830
- function Yn(e) {
831
- e?.id && (Gn.value = e.id);
830
+ function Jn(e) {
831
+ e?.id && (Wn.value = e.id);
832
832
  }
833
- let Xn = v(() => {
833
+ let Yn = _(() => {
834
834
  let e = [], t = [], n = null;
835
- return wn.value.forEach((r) => {
835
+ return Cn.value.forEach((r) => {
836
836
  if (!r.isStackOverflowHidden) {
837
- if (r.id === Gn.value) {
837
+ if (r.id === Wn.value) {
838
838
  n = r;
839
839
  return;
840
840
  }
841
- Wn(r) ? e.push(r) : t.push(r);
841
+ Un(r) ? e.push(r) : t.push(r);
842
842
  }
843
843
  }), [
844
844
  ...e,
845
845
  ...t,
846
846
  ...n ? [n] : []
847
847
  ];
848
- }), Zn = v(() => xn.value.markers), Qn = v(() => Zn.value.find((e) => e.stackId === Z.value) || null), $n = v(() => {
848
+ }), Xn = _(() => bn.value.markers), Zn = _(() => Xn.value.find((e) => e.stackId === Z.value) || null), Qn = _(() => {
849
849
  let e = Math.max(160, Number(J.value.menu.width) || 220), t = Math.max(80, Number(J.value.menu.maxHeight) || 220);
850
850
  return {
851
- visibility: pn.value ? "visible" : "hidden",
851
+ visibility: fn.value ? "visible" : "hidden",
852
852
  width: "max-content",
853
853
  minWidth: `${e}px`,
854
854
  maxWidth: "calc(100% - 16px)",
@@ -859,8 +859,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
859
859
  borderRadius: `${J.value.menu.borderRadius}px`
860
860
  };
861
861
  });
862
- function er(e, t) {
863
- let n = P.value, r = N.value;
862
+ function $n(e, t) {
863
+ let n = N.value, r = M.value;
864
864
  if (!n || !r) return null;
865
865
  let i = n.getScreenCTM();
866
866
  if (!i) return null;
@@ -872,15 +872,15 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
872
872
  y: o.y - s.top
873
873
  };
874
874
  }
875
- function tr() {
876
- let e = Qn.value, t = wt.value, n = N.value;
875
+ function er() {
876
+ let e = Zn.value, t = Tt.value, n = M.value;
877
877
  if (!e || !t || !n) {
878
- pn.value = null;
878
+ fn.value = null;
879
879
  return;
880
880
  }
881
- let r = er(e.x, e.y), i = er(e.x, e.y + J.value.marker.radius);
881
+ let r = $n(e.x, e.y), i = $n(e.x, e.y + J.value.marker.radius);
882
882
  if (!r || !i) {
883
- pn.value = null;
883
+ fn.value = null;
884
884
  return;
885
885
  }
886
886
  let a = n.getBoundingClientRect(), o = t.offsetWidth, s = t.offsetHeight, c = Math.abs(i.y - r.y), l = Math.max(0, a.width - 16), u = Math.min(o, l), d = r.x;
@@ -889,23 +889,23 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
889
889
  let e = u / 2;
890
890
  d = Math.min(a.width - 8 - e, Math.max(8 + e, r.x));
891
891
  }
892
- let f = r.y + c + 8, p = r.y - c - 8 - s, m = f + s <= a.height - 8, h = p >= 8, g = f;
893
- !m && h ? g = p : m || (g = Math.min(Math.max(8, f), Math.max(8, a.height - s - 8))), pn.value = {
892
+ let f = r.y + c + 8, p = r.y - c - 8 - s, m = f + s <= a.height - 8, h = p >= 8, ee = f;
893
+ !m && h ? ee = p : m || (ee = Math.min(Math.max(8, f), Math.max(8, a.height - s - 8))), fn.value = {
894
894
  left: `${d}px`,
895
- top: `${g}px`,
895
+ top: `${ee}px`,
896
896
  transform: "translateX(-50%)",
897
897
  visibility: "visible"
898
898
  };
899
899
  }
900
- function nr() {
900
+ function tr() {
901
901
  typeof window > "u" || (Q !== null && window.cancelAnimationFrame(Q), Q = window.requestAnimationFrame(() => {
902
- Q = null, tr();
902
+ Q = null, er();
903
903
  }));
904
904
  }
905
- ve(Zn, (e) => {
906
- Z.value && !e.some((e) => e.stackId === Z.value) && ir();
907
- }), ve(() => {
908
- let e = Qn.value;
905
+ ye(Xn, (e) => {
906
+ Z.value && !e.some((e) => e.stackId === Z.value) && rr();
907
+ }), ye(() => {
908
+ let e = Zn.value;
909
909
  return e ? [
910
910
  e.stackId,
911
911
  e.x,
@@ -919,44 +919,44 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
919
919
  J.value.menu.color,
920
920
  J.value.menu.borderColor,
921
921
  J.value.menu.borderRadius,
922
- Ut.value
922
+ Vt.value
923
923
  ] : null;
924
924
  }, (e) => {
925
925
  if (!e) {
926
- pn.value = null;
926
+ fn.value = null;
927
927
  return;
928
928
  }
929
- de(nr);
930
- }, { flush: "post" }), ve(wt, (e, t) => {
931
- t && _n && _n.unobserve(t), e && _n && (_n.observe(e), de(nr));
932
- }, { flush: "post" }), ve(() => {
933
- let e = fn.value;
934
- return !e || xn.value.overflowMemberIds.has(e);
929
+ fe(tr);
930
+ }, { flush: "post" }), ye(Tt, (e, t) => {
931
+ t && gn && gn.unobserve(t), e && gn && (gn.observe(e), fe(tr));
932
+ }, { flush: "post" }), ye(() => {
933
+ let e = dn.value;
934
+ return !e || bn.value.overflowMemberIds.has(e);
935
935
  }, (e) => {
936
- e || (fn.value = null, X.value = null);
936
+ e || (dn.value = null, X.value = null);
937
937
  });
938
- function rr(e) {
938
+ function nr(e) {
939
939
  if (e) {
940
940
  if (Z.value === e.stackId) {
941
- nr();
941
+ tr();
942
942
  return;
943
943
  }
944
- pn.value = null, Z.value = e.stackId, de(nr);
944
+ fn.value = null, Z.value = e.stackId, fe(tr);
945
945
  }
946
946
  }
947
+ function rr() {
948
+ Z.value = null, fn.value = null, typeof window < "u" && Q !== null && (window.cancelAnimationFrame(Q), Q = null);
949
+ }
947
950
  function ir() {
948
- Z.value = null, pn.value = null, typeof window < "u" && Q !== null && (window.cancelAnimationFrame(Q), Q = null);
951
+ hn !== null && (clearTimeout(hn), hn = null);
949
952
  }
950
953
  function ar() {
951
- gn !== null && (clearTimeout(gn), gn = null);
952
- }
953
- function or() {
954
954
  let e = X.value;
955
- !e || e.moved || (ar(), mn.value = e.stackId, fn.value = null, X.value = null, ir(), gn = setTimeout(() => {
956
- mn.value = null, gn = null;
955
+ !e || e.moved || (ir(), pn.value = e.stackId, dn.value = null, X.value = null, rr(), hn = setTimeout(() => {
956
+ pn.value = null, hn = null;
957
957
  }, J.value.transitionDuration + 80));
958
958
  }
959
- function sr(e) {
959
+ function or(e) {
960
960
  if (!(e instanceof Element)) return {
961
961
  isMenu: !1,
962
962
  isMarker: !1,
@@ -969,121 +969,96 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
969
969
  isSelectedDatapoint: !!(t && n?.getAttribute("data-datapoint-id") === t.datapointId)
970
970
  };
971
971
  }
972
- function cr(e) {
973
- let t = sr(e.target);
974
- Z.value && !t.isMenu && !t.isMarker && ir(), X.value && !X.value.moved && !t.isMenu && !t.isMarker && !t.isSelectedDatapoint && or();
972
+ function sr(e) {
973
+ let t = or(e.target);
974
+ Z.value && !t.isMenu && !t.isMarker && rr(), X.value && !X.value.moved && !t.isMenu && !t.isMarker && !t.isSelectedDatapoint && ar();
975
975
  }
976
- function lr(e) {
977
- let t = wn.value.find((t) => t.id === e);
976
+ function cr(e) {
977
+ let t = Cn.value.find((t) => t.id === e);
978
978
  if (!t || t.isStackOverflowHidden) return;
979
- let n = P.value?.querySelector(`[data-datapoint-index="${t.__index}"]`);
979
+ let n = N.value?.querySelector(`[data-datapoint-index="${t.__index}"]`);
980
980
  n && typeof n.focus == "function" && n.focus({ preventScroll: !0 });
981
981
  }
982
- function ur(e) {
983
- if (!e || e.disabled || F.value.readonly) return;
984
- let t = Qn.value?.stackId;
985
- t && (ar(), mn.value = null, fn.value = e.id, X.value = {
982
+ function lr(e) {
983
+ if (!e || e.disabled || P.value.readonly) return;
984
+ let t = Zn.value?.stackId;
985
+ t && (ir(), pn.value = null, dn.value = e.id, X.value = {
986
986
  datapointId: e.id,
987
987
  stackId: t,
988
988
  initialPosition: e.position,
989
989
  moved: !1
990
- }, ir(), de(() => {
991
- lr(e.id);
992
- let t = wn.value.find((t) => t.id === e.id);
993
- t && B("selectDatapoint", In(t));
990
+ }, rr(), fe(() => {
991
+ cr(e.id);
992
+ let t = Cn.value.find((t) => t.id === e.id);
993
+ t && B("selectDatapoint", Fn(t));
994
994
  }));
995
995
  }
996
- function dr() {
996
+ function ur() {
997
997
  let e = Math.max(1, Number(Y.value.width) || 1);
998
998
  return Math.max(1e-6, 1 / e * 2);
999
999
  }
1000
- function fr(e, t) {
1000
+ function dr(e, t) {
1001
1001
  let n = X.value;
1002
- !n || n.datapointId !== e || n.moved || Math.abs(t - n.initialPosition) >= dr() && (X.value = {
1002
+ !n || n.datapointId !== e || n.moved || Math.abs(t - n.initialPosition) >= ur() && (X.value = {
1003
1003
  ...n,
1004
1004
  moved: !0
1005
1005
  });
1006
1006
  }
1007
- me(() => {
1008
- document.addEventListener("pointerdown", cr), window.addEventListener("resize", nr, { passive: !0 }), typeof ResizeObserver < "u" && (_n = new ResizeObserver(() => {
1009
- Qn.value && nr();
1010
- }), N.value && _n.observe(N.value), P.value && _n.observe(P.value));
1011
- }), pe(() => {
1012
- document.removeEventListener("pointerdown", cr), window.removeEventListener("resize", nr), _n?.disconnect(), _n = null, Q !== null && (window.cancelAnimationFrame(Q), Q = null), ar();
1007
+ he(() => {
1008
+ document.addEventListener("pointerdown", sr), window.addEventListener("resize", tr, { passive: !0 }), typeof ResizeObserver < "u" && (gn = new ResizeObserver(() => {
1009
+ Zn.value && tr();
1010
+ }), M.value && gn.observe(M.value), N.value && gn.observe(N.value));
1011
+ }), me(() => {
1012
+ document.removeEventListener("pointerdown", sr), window.removeEventListener("resize", tr), gn?.disconnect(), gn = null, Q !== null && (window.cancelAnimationFrame(Q), Q = null), ir();
1013
1013
  });
1014
- function pr(e) {
1015
- return R.value ? R.value.id === e.id : Kn.value === e.id || $.value === e.id;
1014
+ function fr(e) {
1015
+ return R.value ? R.value.id === e.id : Gn.value === e.id || $.value === e.id;
1016
1016
  }
1017
- function mr(e) {
1018
- return s(F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.formatter, e.position, a({
1017
+ function pr(e) {
1018
+ return s(P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.formatter, e.position, a({
1019
1019
  p: "",
1020
1020
  v: e.position * 100,
1021
1021
  s: "%",
1022
- r: F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.rounding
1022
+ r: P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.rounding
1023
1023
  }));
1024
1024
  }
1025
- function hr(e) {
1026
- if (e?.stage === "start") {
1027
- Dt.value = !0;
1028
- return;
1029
- }
1030
- if (e?.stage === "end") {
1031
- Dt.value = !1;
1032
- return;
1033
- }
1034
- Bt();
1035
- }
1036
- let gr = v(() => F.value.style.chart.backgroundColor), _r = v(() => F.value.style.chart.legend), { exportSvg: vr, getSvg: yr } = h({
1037
- svg: P,
1038
- title: v(() => F.value.style.chart.title),
1039
- legend: _r,
1025
+ let mr = _(() => P.value.style.chart.backgroundColor), hr = _(() => P.value.style.chart.legend), gr = _(() => P.value.style.chart.title), { isCallbackImaging: _r, isCallbackSvg: vr, generateSvg: yr, onGenerateImage: br } = te({
1026
+ svg: N,
1027
+ title: gr,
1028
+ legend: hr,
1040
1029
  legendItems: null,
1041
- backgroundColor: gr
1030
+ backgroundColor: mr,
1031
+ getSvgCallback: () => P.value.userOptions.callbacks.svg,
1032
+ generateImage: Rt
1042
1033
  });
1043
- async function br({ isCb: e }) {
1044
- Et.value = !0, await de();
1045
- try {
1046
- if (e) {
1047
- let { blob: e, url: t, text: n, dataUrl: r } = await yr();
1048
- await Promise.resolve(F.value.userOptions.callbacks.svg({
1049
- blob: e,
1050
- url: t,
1051
- text: n,
1052
- dataUrl: r
1053
- }));
1054
- } else await Promise.resolve(vr());
1055
- } finally {
1056
- Et.value = !1;
1057
- }
1058
- }
1059
1034
  function xr(e = null) {
1060
- de(() => {
1061
- let r = tn().map((e) => [
1035
+ fe(() => {
1036
+ let r = $t().map((e) => [
1062
1037
  [e.name],
1063
1038
  [e.position],
1064
- [mr(e)],
1065
- [Fn(e.position)]
1066
- ]), i = n([
1067
- [F.value.style.chart.title.text],
1068
- [F.value.style.chart.title.subtitle.text],
1039
+ [pr(e)],
1040
+ [Pn(e.position)]
1041
+ ]), i = [
1042
+ [P.value.style.chart.title.text],
1043
+ [P.value.style.chart.title.subtitle.text],
1069
1044
  [
1070
1045
  ["Name"],
1071
1046
  ["Position"],
1072
1047
  ["Percentage"],
1073
1048
  ["Phase"]
1074
1049
  ]
1075
- ].concat(r));
1076
- e ? e(i) : t({
1077
- csvContent: i,
1078
- title: F.value.style.chart.title.text || "vue-ui-hill"
1050
+ ].concat(r), a = n(i);
1051
+ e ? e(a) : t({
1052
+ csvContent: a,
1053
+ title: P.value.style.chart.title.text || "vue-ui-hill"
1079
1054
  });
1080
1055
  });
1081
1056
  }
1082
- let Sr = v(() => F.value.style.chart.layout.stackbar.show), Cr = v(() => {
1083
- let e = wn.value.length;
1084
- wn.value.reduce((e, t) => e + (t?.position ?? 0), 0);
1085
- let t = 0, n = wn.value.every((e) => e.position === 1);
1086
- return wn.value.toSorted((e, t) => {
1057
+ let Sr = _(() => P.value.style.chart.layout.stackbar.show), Cr = _(() => {
1058
+ let e = Cn.value.length;
1059
+ Cn.value.reduce((e, t) => e + (t?.position ?? 0), 0);
1060
+ let t = 0, n = Cn.value.every((e) => e.position === 1);
1061
+ return Cn.value.toSorted((e, t) => {
1087
1062
  if (n) return e.__index - t.__index;
1088
1063
  let r = (e?.position ?? 0) - (t?.position ?? 0);
1089
1064
  return r === 0 ? e.__index - t.__index : r;
@@ -1095,7 +1070,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1095
1070
  };
1096
1071
  return t += i, a;
1097
1072
  });
1098
- }), wr = v(() => Math.min(1, Math.max(0, Cr.value.reduce((e, t) => e + t.proportion, 0)))), Tr = v(() => wr.value * 100), Er = v(() => Y.value.left[0].x + Y.value.width * wr.value), Dr = v(() => V.value.height + 32 + q.value.paddingTop);
1073
+ }), wr = _(() => Math.min(1, Math.max(0, Cr.value.reduce((e, t) => e + t.proportion, 0)))), Tr = _(() => wr.value * 100), Er = _(() => Y.value.left[0].x + Y.value.width * wr.value), Dr = _(() => V.value.height + 32 + q.value.paddingTop);
1099
1074
  function Or() {
1100
1075
  return s(q.value.label.formatter, Tr.value, a({
1101
1076
  p: "",
@@ -1104,25 +1079,25 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1104
1079
  r: 0
1105
1080
  }));
1106
1081
  }
1107
- let kr = v(() => `${Ct.value}-stackbar-clip`);
1082
+ let kr = _(() => `${wt.value}-stackbar-clip`);
1108
1083
  async function Ar() {
1109
- let e = tn();
1110
- if (kt("copyAlt", {
1111
- config: F.value,
1084
+ let e = $t();
1085
+ if (Ot("copyAlt", {
1086
+ config: P.value,
1112
1087
  dataset: e
1113
- }), !F.value.userOptions.callbacks.altCopy) {
1088
+ }), !P.value.userOptions.callbacks.altCopy) {
1114
1089
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1115
1090
  return;
1116
1091
  }
1117
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
1118
- config: F.value,
1092
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
1093
+ config: P.value,
1119
1094
  dataset: e
1120
1095
  }));
1121
1096
  }
1122
1097
  async function jr({ scale: e = 2 } = {}) {
1123
- if (!N.value) return;
1124
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ne({
1125
- domElement: N.value,
1098
+ if (!M.value) return;
1099
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await re({
1100
+ domElement: M.value,
1126
1101
  base64: !0,
1127
1102
  img: !0,
1128
1103
  scale: e
@@ -1130,67 +1105,67 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1130
1105
  return {
1131
1106
  imageUri: i,
1132
1107
  base64: a,
1133
- title: F.value.style.chart.title.text,
1108
+ title: P.value.style.chart.title.text,
1134
1109
  width: t,
1135
1110
  height: n,
1136
1111
  aspectRatio: r
1137
1112
  };
1138
1113
  }
1139
1114
  function Mr() {
1140
- return tn();
1115
+ return $t();
1141
1116
  }
1142
- return ie({
1117
+ return ae({
1143
1118
  isEditing: I,
1144
- beginEditing: On,
1145
- save: kn,
1146
- cancel: An,
1119
+ beginEditing: Dn,
1120
+ save: On,
1121
+ cancel: kn,
1147
1122
  getData: Mr,
1148
1123
  copyAlt: Ar,
1149
- toggleFullscreen: Wt,
1150
- toggleAnnotator: Kt,
1151
- generateImage: Bt,
1152
- generateSvg: br,
1153
- generatePdf: zt,
1124
+ toggleFullscreen: Ht,
1125
+ toggleAnnotator: Wt,
1126
+ generateImage: Rt,
1127
+ generateSvg: yr,
1128
+ generatePdf: Lt,
1154
1129
  generateCsv: xr,
1155
1130
  getImage: jr
1156
- }), (e, t) => (T(), b("div", {
1131
+ }), (e, t) => (w(), y("div", {
1157
1132
  ref_key: "hillChartRef",
1158
- ref: N,
1159
- class: fe("vue-data-ui-component vue-ui-hill"),
1160
- style: w(Bn.value),
1161
- id: `hill_${Ct.value}`,
1162
- onMouseenter: Ft,
1163
- onMouseleave: It,
1133
+ ref: M,
1134
+ class: pe("vue-data-ui-component vue-ui-hill"),
1135
+ style: C(zn.value),
1136
+ id: `hill_${wt.value}`,
1137
+ onMouseenter: Nt,
1138
+ onMouseleave: Pt,
1164
1139
  "data-editing": I.value
1165
1140
  }, [
1166
- F.value.style.chart.title.text ? (T(), b("div", Se, [(T(), se(re, {
1167
- key: `title_${Ot.value}`,
1141
+ P.value.style.chart.title.text ? (w(), y("div", Ce, [(w(), ce(ie, {
1142
+ key: `title_${Dt.value}`,
1168
1143
  config: {
1169
1144
  title: {
1170
1145
  cy: "hill-div-title",
1171
- ...F.value.style.chart.title
1146
+ ...P.value.style.chart.title
1172
1147
  },
1173
1148
  subtitle: {
1174
1149
  cy: "hill-div-subtitle",
1175
- ...F.value.style.chart.title.subtitle
1150
+ ...P.value.style.chart.title.subtitle
1176
1151
  }
1177
1152
  }
1178
- }, null, 8, ["config"]))], 512)) : y("", !0),
1179
- F.value.userOptions.buttons.annotator && P.value ? (T(), se(k(_t), {
1153
+ }, null, 8, ["config"]))], 512)) : v("", !0),
1154
+ P.value.userOptions.buttons.annotator && N.value ? (w(), ce(O(vt), {
1180
1155
  key: 1,
1181
- color: F.value.style.chart.color,
1182
- backgroundColor: F.value.style.chart.backgroundColor,
1183
- active: Gt.value,
1184
- svgRef: P.value,
1185
- isCursorPointer: Vt.value,
1186
- onClose: Kt
1156
+ color: P.value.style.chart.color,
1157
+ backgroundColor: P.value.style.chart.backgroundColor,
1158
+ active: Ut.value,
1159
+ svgRef: N.value,
1160
+ isCursorPointer: zt.value,
1161
+ onClose: Wt
1187
1162
  }, {
1188
- "annotator-action-close": A(() => [D(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1189
- "annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", C(S({ color: t })), void 0, !0)]),
1190
- "annotator-action-draw": A(({ mode: t }) => [D(e.$slots, "annotator-action-draw", C(S({ mode: t })), void 0, !0)]),
1191
- "annotator-action-undo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-undo", C(S({ disabled: t })), void 0, !0)]),
1192
- "annotator-action-redo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-redo", C(S({ disabled: t })), void 0, !0)]),
1193
- "annotator-action-delete": A(({ disabled: t }) => [D(e.$slots, "annotator-action-delete", C(S({ disabled: t })), void 0, !0)]),
1163
+ "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1164
+ "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", S(x({ color: t })), void 0, !0)]),
1165
+ "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", S(x({ mode: t })), void 0, !0)]),
1166
+ "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", S(x({ disabled: t })), void 0, !0)]),
1167
+ "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", S(x({ disabled: t })), void 0, !0)]),
1168
+ "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", S(x({ disabled: t })), void 0, !0)]),
1194
1169
  _: 3
1195
1170
  }, 8, [
1196
1171
  "color",
@@ -1198,24 +1173,24 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1198
1173
  "active",
1199
1174
  "svgRef",
1200
1175
  "isCursorPointer"
1201
- ])) : y("", !0),
1202
- K.value.show ? (T(), se(k(mt), {
1176
+ ])) : v("", !0),
1177
+ K.value.show ? (w(), ce(O(ht), {
1203
1178
  key: 2,
1204
1179
  "is-editing": I.value,
1205
1180
  "is-editable": z.value,
1206
- "is-fullscreen": Ut.value,
1207
- position: qt.value,
1208
- color: F.value.style.chart.color,
1209
- "background-color": F.value.style.chart.backgroundColor,
1181
+ "is-fullscreen": Vt.value,
1182
+ position: Gt.value,
1183
+ color: P.value.style.chart.color,
1184
+ "background-color": P.value.style.chart.backgroundColor,
1210
1185
  translations: K.value.buttons.translations,
1211
- "is-cursor-pointer": Vt.value,
1212
- onUpdate: On,
1213
- onCancel: An,
1214
- onSave: kn
1186
+ "is-cursor-pointer": zt.value,
1187
+ onUpdate: Dn,
1188
+ onCancel: kn,
1189
+ onSave: On
1215
1190
  }, {
1216
- "hill-edit": A(() => [D(e.$slots, "hill-edit", {}, void 0, !0)]),
1217
- "hill-cancel": A(() => [D(e.$slots, "hill-cancel", {}, void 0, !0)]),
1218
- "hill-save": A(() => [D(e.$slots, "hill-save", {}, void 0, !0)]),
1191
+ "hill-edit": k(() => [E(e.$slots, "hill-edit", {}, void 0, !0)]),
1192
+ "hill-cancel": k(() => [E(e.$slots, "hill-cancel", {}, void 0, !0)]),
1193
+ "hill-save": k(() => [E(e.$slots, "hill-save", {}, void 0, !0)]),
1219
1194
  _: 3
1220
1195
  }, 8, [
1221
1196
  "is-editing",
@@ -1226,50 +1201,50 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1226
1201
  "background-color",
1227
1202
  "translations",
1228
1203
  "is-cursor-pointer"
1229
- ])) : y("", !0),
1230
- K.value.show ? (T(), b("div", Ce, [x("p", {
1204
+ ])) : v("", !0),
1205
+ K.value.show ? (w(), y("div", we, [b("p", {
1231
1206
  class: "vue-ui-hill__status",
1232
- style: w(Vn.value),
1207
+ style: C(Bn.value),
1233
1208
  "aria-live": "polite"
1234
- }, O(I.value ? K.value.status.editInstruction : K.value.status.lastUpdated), 5)])) : y("", !0),
1235
- F.value.userOptions.show && (k(Pt) || k(Mt)) ? (T(), se(k(ht), {
1209
+ }, D(I.value ? K.value.status.editInstruction : K.value.status.lastUpdated), 5)])) : v("", !0),
1210
+ P.value.userOptions.show && (O(Mt) || O(At)) ? (w(), ce(O(gt), {
1236
1211
  ref_key: "userOptionsRef",
1237
- ref: Tt,
1238
- key: `uo_${Ht.value}`,
1239
- backgroundColor: F.value.style.chart.backgroundColor,
1240
- color: F.value.style.chart.color,
1241
- isPrinting: k(Lt),
1242
- isImaging: k(Rt),
1243
- uid: Ct.value,
1212
+ ref: Et,
1213
+ key: `uo_${Bt.value}`,
1214
+ backgroundColor: P.value.style.chart.backgroundColor,
1215
+ color: P.value.style.chart.color,
1216
+ isPrinting: O(Ft),
1217
+ isImaging: O(It),
1218
+ uid: wt.value,
1244
1219
  hasTooltip: !1,
1245
- hasPdf: F.value.userOptions.buttons.pdf,
1246
- hasImg: F.value.userOptions.buttons.img,
1247
- hasSvg: F.value.userOptions.buttons.svg,
1248
- hasXls: F.value.userOptions.buttons.csv,
1249
- hasTable: F.value.userOptions.buttons.table,
1250
- hasLabel: F.value.userOptions.buttons.labels,
1251
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
1252
- hasAltCopy: F.value.userOptions.buttons.altCopy,
1253
- chartElement: N.value,
1254
- position: F.value.userOptions.position,
1255
- callbacks: F.value.userOptions.callbacks,
1256
- titles: { ...F.value.userOptions.buttonTitles },
1257
- hasAnnotator: F.value.userOptions.buttons.annotator,
1258
- isAnnotation: Gt.value,
1259
- printScale: F.value.userOptions.print.scale,
1260
- isCursorPointer: Vt.value,
1261
- onToggleFullscreen: Wt,
1262
- onGeneratePdf: k(zt),
1220
+ hasPdf: P.value.userOptions.buttons.pdf,
1221
+ hasImg: P.value.userOptions.buttons.img,
1222
+ hasSvg: P.value.userOptions.buttons.svg,
1223
+ hasXls: P.value.userOptions.buttons.csv,
1224
+ hasTable: P.value.userOptions.buttons.table,
1225
+ hasLabel: P.value.userOptions.buttons.labels,
1226
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
1227
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
1228
+ chartElement: M.value,
1229
+ position: P.value.userOptions.position,
1230
+ callbacks: P.value.userOptions.callbacks,
1231
+ titles: { ...P.value.userOptions.buttonTitles },
1232
+ hasAnnotator: P.value.userOptions.buttons.annotator,
1233
+ isAnnotation: Ut.value,
1234
+ printScale: P.value.userOptions.print.scale,
1235
+ isCursorPointer: zt.value,
1236
+ onToggleFullscreen: Ht,
1237
+ onGeneratePdf: O(Lt),
1263
1238
  onGenerateCsv: xr,
1264
- onGenerateImage: hr,
1265
- onGenerateSvg: br,
1266
- onToggleAnnotator: Kt,
1239
+ onGenerateImage: O(br),
1240
+ onGenerateSvg: O(yr),
1241
+ onToggleAnnotator: Wt,
1267
1242
  onCopyAlt: Ar,
1268
- style: w({ visibility: k(Pt) ? k(Mt) ? "visible" : "hidden" : "visible" })
1269
- }, ce({ _: 2 }, [
1243
+ style: C({ visibility: O(Mt) ? O(At) ? "visible" : "hidden" : "visible" })
1244
+ }, le({ _: 2 }, [
1270
1245
  e.$slots.menuIcon ? {
1271
1246
  name: "menuIcon",
1272
- fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", C(S({
1247
+ fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", S(x({
1273
1248
  isOpen: t,
1274
1249
  color: n
1275
1250
  })), void 0, !0)]),
@@ -1277,27 +1252,27 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1277
1252
  } : void 0,
1278
1253
  e.$slots.optionPdf ? {
1279
1254
  name: "optionPdf",
1280
- fn: A(() => [D(e.$slots, "optionPdf", {}, void 0, !0)]),
1255
+ fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1281
1256
  key: "1"
1282
1257
  } : void 0,
1283
1258
  e.$slots.optionCsv ? {
1284
1259
  name: "optionCsv",
1285
- fn: A(() => [D(e.$slots, "optionCsv", {}, void 0, !0)]),
1260
+ fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1286
1261
  key: "2"
1287
1262
  } : void 0,
1288
1263
  e.$slots.optionImg ? {
1289
1264
  name: "optionImg",
1290
- fn: A(() => [D(e.$slots, "optionImg", {}, void 0, !0)]),
1265
+ fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1291
1266
  key: "3"
1292
1267
  } : void 0,
1293
1268
  e.$slots.optionSvg ? {
1294
1269
  name: "optionSvg",
1295
- fn: A(() => [D(e.$slots, "optionSvg", {}, void 0, !0)]),
1270
+ fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1296
1271
  key: "4"
1297
1272
  } : void 0,
1298
1273
  e.$slots.optionFullscreen ? {
1299
1274
  name: "optionFullscreen",
1300
- fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [D(e.$slots, "optionFullscreen", C(S({
1275
+ fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", S(x({
1301
1276
  toggleFullscreen: t,
1302
1277
  isFullscreen: n
1303
1278
  })), void 0, !0)]),
@@ -1305,7 +1280,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1305
1280
  } : void 0,
1306
1281
  e.$slots.optionAnnotator ? {
1307
1282
  name: "optionAnnotator",
1308
- fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [D(e.$slots, "optionAnnotator", C(S({
1283
+ fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", S(x({
1309
1284
  toggleAnnotator: t,
1310
1285
  isAnnotator: n
1311
1286
  })), void 0, !0)]),
@@ -1313,17 +1288,17 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1313
1288
  } : void 0,
1314
1289
  e.$slots.optionAltCopy ? {
1315
1290
  name: "optionAltCopy",
1316
- fn: A(({ altCopy: t }) => [D(e.$slots, "optionAltCopy", C(S({ altCopy: t })), void 0, !0)]),
1291
+ fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", S(x({ altCopy: t })), void 0, !0)]),
1317
1292
  key: "7"
1318
1293
  } : void 0,
1319
1294
  e.$slots["custom-menu-before"] ? {
1320
1295
  name: "custom-menu-before",
1321
- fn: A(() => [D(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1296
+ fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1322
1297
  key: "8"
1323
1298
  } : void 0,
1324
1299
  e.$slots["custom-menu-after"] ? {
1325
1300
  name: "custom-menu-after",
1326
- fn: A(() => [D(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1301
+ fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1327
1302
  key: "9"
1328
1303
  } : void 0
1329
1304
  ]), 1032, [
@@ -1349,35 +1324,37 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1349
1324
  "printScale",
1350
1325
  "isCursorPointer",
1351
1326
  "onGeneratePdf",
1327
+ "onGenerateImage",
1328
+ "onGenerateSvg",
1352
1329
  "style"
1353
- ])) : y("", !0),
1354
- (T(), b("svg", {
1330
+ ])) : v("", !0),
1331
+ (w(), y("svg", {
1355
1332
  ref_key: "svgRef",
1356
- ref: P,
1357
- style: w({
1333
+ ref: N,
1334
+ style: C({
1358
1335
  background: "transparent",
1359
- color: F.value.style.chart.color,
1360
- fontFamily: F.value.style.fontFamily
1336
+ color: P.value.style.chart.color,
1337
+ fontFamily: P.value.style.fontFamily
1361
1338
  }),
1362
- class: fe({ "vue-data-ui-no-transition": !k(jt) }),
1339
+ class: pe({ "vue-data-ui-no-transition": !O(F) }),
1363
1340
  viewBox: `0 0 ${V.value.width} ${V.value.height + (Sr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)}`,
1364
1341
  role: "group",
1365
1342
  "aria-live": "polite",
1366
1343
  preserveAspectRatio: "xMidYMid meet",
1367
- onPointermove: Mn,
1368
- onPointerup: Nn,
1369
- onPointercancel: Nn
1344
+ onPointermove: jn,
1345
+ onPointerup: Mn,
1346
+ onPointercancel: Mn
1370
1347
  }, [
1371
- le(k(gt)),
1372
- e.$slots["chart-background"] ? (T(), b("foreignObject", {
1348
+ ue(O(_t)),
1349
+ e.$slots["chart-background"] ? (w(), y("foreignObject", {
1373
1350
  key: 0,
1374
1351
  x: 0,
1375
1352
  y: 0,
1376
1353
  width: Math.max(.1, V.value.width),
1377
1354
  height: Math.max(.1, V.value.height + (Sr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)),
1378
1355
  style: { pointerEvents: "none" }
1379
- }, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : y("", !0),
1380
- H.value.baseline.show ? (T(), b("line", {
1356
+ }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : v("", !0),
1357
+ H.value.baseline.show ? (w(), y("line", {
1381
1358
  key: 1,
1382
1359
  x1: Y.value.startX,
1383
1360
  x2: Y.value.endX,
@@ -1387,8 +1364,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1387
1364
  "stroke-width": H.value.baseline.strokeWidth,
1388
1365
  "stroke-dasharray": H.value.baseline.strokeDasharray,
1389
1366
  "vector-effect": "non-scaling-stroke"
1390
- }, null, 8, Ee)) : y("", !0),
1391
- H.value.midline.show ? (T(), b("line", {
1367
+ }, null, 8, De)) : v("", !0),
1368
+ H.value.midline.show ? (w(), y("line", {
1392
1369
  key: 2,
1393
1370
  x1: Y.value.centerX,
1394
1371
  x2: Y.value.centerX,
@@ -1398,9 +1375,9 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1398
1375
  "stroke-width": H.value.midline.strokeWidth,
1399
1376
  "stroke-dasharray": H.value.midline.strokeDasharray,
1400
1377
  "vector-effect": "non-scaling-stroke"
1401
- }, null, 8, De)) : y("", !0),
1402
- x("path", {
1403
- d: an.value,
1378
+ }, null, 8, Oe)) : v("", !0),
1379
+ b("path", {
1380
+ d: rn.value,
1404
1381
  fill: "none",
1405
1382
  stroke: H.value.curve.stroke,
1406
1383
  "stroke-width": H.value.curve.strokeWidth,
@@ -1408,51 +1385,51 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1408
1385
  "stroke-linecap": "round",
1409
1386
  "stroke-linejoin": "round",
1410
1387
  "vector-effect": "non-scaling-stroke"
1411
- }, null, 8, Oe),
1412
- F.value.style.chart.layout.plots.dragMarker.positionIndicator.show ? (T(!0), b(_, { key: 3 }, he(Xn.value, (e) => (T(), b("g", { key: `position-indicator-${e.id}` }, [pr(e) && U.value.dragMarker.show ? (T(), b("g", ke, [
1413
- x("path", {
1388
+ }, null, 8, ke),
1389
+ P.value.style.chart.layout.plots.dragMarker.positionIndicator.show ? (w(!0), y(g, { key: 3 }, ge(Yn.value, (e) => (w(), y("g", { key: `position-indicator-${e.id}` }, [fr(e) && U.value.dragMarker.show ? (w(), y("g", Ae, [
1390
+ b("path", {
1414
1391
  d: `M${e.x},${e.y} ${e.x},${Y.value.baseY}`,
1415
- stroke: F.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : F.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
1416
- "stroke-width": F.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeWidth,
1417
- "stroke-dasharray": F.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeDasharray,
1392
+ stroke: P.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
1393
+ "stroke-width": P.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeWidth,
1394
+ "stroke-dasharray": P.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeDasharray,
1418
1395
  "stroke-linecap": "round",
1419
1396
  "vector-effect": "non-scaling-stroke",
1420
- class: fe({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
1421
- }, null, 10, Ae),
1422
- F.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.show ? (T(), b("circle", {
1397
+ class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
1398
+ }, null, 10, je),
1399
+ P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.show ? (w(), y("circle", {
1423
1400
  key: 0,
1424
1401
  cx: e.x,
1425
1402
  cy: Y.value.baseY,
1426
- r: F.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.radius,
1427
- fill: F.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : F.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
1428
- stroke: F.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.stroke,
1429
- "stroke-width": F.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.strokeWidth,
1403
+ r: P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.radius,
1404
+ fill: P.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
1405
+ stroke: P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.stroke,
1406
+ "stroke-width": P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.strokeWidth,
1430
1407
  "vector-effect": "non-scaling-stroke",
1431
1408
  "paint-order": "stroke fill",
1432
- class: fe({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
1433
- }, null, 10, je)) : y("", !0),
1434
- F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.show ? (T(), b("text", {
1409
+ class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
1410
+ }, null, 10, Me)) : v("", !0),
1411
+ P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.show ? (w(), y("text", {
1435
1412
  key: 1,
1436
1413
  "paint-order": "stroke fill",
1437
1414
  "vector-effect": "non-scaling-stroke",
1438
1415
  "text-anchor": "middle",
1439
- transform: `translate(${e.x}, ${Y.value.baseY + F.value.style.chart.layout.plots.radius + F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.offsetY + F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize})`,
1440
- "font-size": F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize,
1441
- fill: F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.useSerieColor ? e.color : F.value.style.chart.layout.plots.dragMarker.positionIndicator.value.color,
1442
- stroke: F.value.style.chart.backgroundColor,
1416
+ transform: `translate(${e.x}, ${Y.value.baseY + P.value.style.chart.layout.plots.radius + P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.offsetY + P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize})`,
1417
+ "font-size": P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize,
1418
+ fill: P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.color,
1419
+ stroke: P.value.style.chart.backgroundColor,
1443
1420
  "stroke-width": "1",
1444
- class: fe({ "vue-data-ui-transition": k(jt) && R.value?.id !== e.id })
1445
- }, O(mr(e)), 11, Me)) : y("", !0)
1446
- ])) : y("", !0)]))), 128)) : y("", !0),
1447
- (T(!0), b(_, null, he(Xn.value, (e) => (T(), b("g", {
1421
+ class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
1422
+ }, D(pr(e)), 11, Ne)) : v("", !0)
1423
+ ])) : v("", !0)]))), 128)) : v("", !0),
1424
+ (w(!0), y(g, null, ge(Yn.value, (e) => (w(), y("g", {
1448
1425
  key: e.id,
1449
1426
  "data-cy-datapoint": "",
1450
- class: fe({
1427
+ class: pe({
1451
1428
  "vue-ui-hill__datapoint": !0,
1452
- "vue-data-ui-transition": k(jt) && R.value?.id !== e.id,
1453
- "vue-ui-hill__datapoint--promoted": k(jt) && e.isPromotedFromStackOverflow
1429
+ "vue-data-ui-transition": O(F) && R.value?.id !== e.id,
1430
+ "vue-ui-hill__datapoint--promoted": O(F) && e.isPromotedFromStackOverflow
1454
1431
  }),
1455
- style: w({ opacity: [0, 1].includes(e.position) || e?.muted ? U.value.mutedOpacity : e?.disabled ? U.value.disabledOpacity : 1 }),
1432
+ style: C({ opacity: [0, 1].includes(e.position) || e?.muted ? U.value.mutedOpacity : e?.disabled ? U.value.disabledOpacity : 1 }),
1456
1433
  transform: `translate(${e.x} ${e.y})`,
1457
1434
  "data-datapoint-index": e.__index,
1458
1435
  "data-datapoint-id": e.id,
@@ -1461,47 +1438,47 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1461
1438
  "aria-orientation": "horizontal",
1462
1439
  "aria-valuemin": "0",
1463
1440
  "aria-valuemax": "100",
1464
- "aria-valuenow": mr(e),
1465
- "aria-valuetext": `${e.label}: ${Fn(e.position)}, ${mr(e)}`,
1441
+ "aria-valuenow": pr(e),
1442
+ "aria-valuetext": `${e.label}: ${Pn(e.position)}, ${pr(e)}`,
1466
1443
  "aria-label": e.label,
1467
- onFocus: (t) => qn(e),
1468
- onBlur: (t) => Jn(e),
1469
- onKeydown: (t) => Pn(t, e),
1470
- onPointerenter: (t) => Ln(e),
1471
- onPointerleave: (t) => Rn(e),
1472
- onClick: (t) => zn(e)
1444
+ onFocus: (t) => Kn(e),
1445
+ onBlur: (t) => qn(e),
1446
+ onKeydown: (t) => Nn(t, e),
1447
+ onPointerenter: (t) => In(e),
1448
+ onPointerleave: (t) => Ln(e),
1449
+ onClick: (t) => Rn(e)
1473
1450
  }, [
1474
- x("circle", {
1451
+ b("circle", {
1475
1452
  r: U.value.hitRadius,
1476
1453
  fill: "transparent",
1477
- class: fe({
1454
+ class: pe({
1478
1455
  "vue-ui-hill__hit-area--active": I.value && z.value && !e.disabled,
1479
1456
  "vue-ui-hill__hit-area--dragging": R.value?.id === e.id
1480
1457
  }),
1481
- onPointerdown: (t) => jn(t, e)
1482
- }, null, 42, Pe),
1483
- x("circle", {
1458
+ onPointerdown: (t) => An(t, e)
1459
+ }, null, 42, Fe),
1460
+ b("circle", {
1484
1461
  class: "vue-ui-hill-circle",
1485
1462
  r: U.value.radius,
1486
1463
  fill: e.color,
1487
1464
  stroke: U.value.stroke,
1488
1465
  "stroke-width": U.value.strokeWidth,
1489
- style: w({ filter: U.value.shadow.show ? `drop-shadow(${U.value.shadow.offsetX}px ${U.value.shadow.offsetY}px ${U.value.shadow.blur}px ${U.value.shadow.color})` : "none" }),
1466
+ style: C({ filter: U.value.shadow.show ? `drop-shadow(${U.value.shadow.offsetX}px ${U.value.shadow.offsetY}px ${U.value.shadow.blur}px ${U.value.shadow.color})` : "none" }),
1490
1467
  "vector-effect": "non-scaling-stroke",
1491
1468
  "pointer-events": "none"
1492
- }, null, 12, Fe),
1493
- I.value && (R.value?.id === e.id && U.value.dragMarker.show || pr(e)) && !e?.disabled ? (T(), b("g", {
1469
+ }, null, 12, Ie),
1470
+ I.value && (R.value?.id === e.id && U.value.dragMarker.show || fr(e)) && !e?.disabled ? (w(), y("g", {
1494
1471
  key: 0,
1495
1472
  fill: "none",
1496
- stroke: k(l)(e.color),
1473
+ stroke: O(l)(e.color),
1497
1474
  "stroke-width": U.value.dragMarker.strokeWidth,
1498
1475
  "stroke-linecap": "round",
1499
1476
  "stroke-linejoin": "round",
1500
1477
  "pointer-events": "none",
1501
1478
  "vector-effect": "non-scaling-stroke",
1502
1479
  "aria-hidden": "true"
1503
- }, [x("path", { d: U.value.dragMarker.crossPath }, null, 8, Le)], 8, Ie)) : y("", !0),
1504
- W.value.show ? (T(), b("text", {
1480
+ }, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Re)], 8, Le)) : v("", !0),
1481
+ W.value.show ? (w(), y("text", {
1505
1482
  key: 1,
1506
1483
  x: e.labelX,
1507
1484
  y: W.value.offsetY,
@@ -1517,20 +1494,20 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1517
1494
  "pointer-events": "none",
1518
1495
  style: { "user-select": "none" },
1519
1496
  "dominant-baseline": "central"
1520
- }, O(k(o)(e.label, W.value.ellipsisThresholdChars)), 9, Re)) : y("", !0)
1521
- ], 46, Ne))), 128)),
1522
- (T(!0), b(_, null, he(Zn.value, (e) => (T(), b("g", {
1497
+ }, D(O(o)(e.label, W.value.ellipsisThresholdChars)), 9, ze)) : v("", !0)
1498
+ ], 46, Pe))), 128)),
1499
+ (w(!0), y(g, null, ge(Xn.value, (e) => (w(), y("g", {
1523
1500
  key: `stack-overflow-${e.stackId}`,
1524
- class: fe(["vue-ui-hill__stack-overflow-marker", {
1525
- "vue-ui-hill__stack-overflow-marker--animated": k(jt),
1526
- "vue-ui-hill__stack-overflow-marker--restored": mn.value === e.stackId
1501
+ class: pe(["vue-ui-hill__stack-overflow-marker", {
1502
+ "vue-ui-hill__stack-overflow-marker--animated": O(F),
1503
+ "vue-ui-hill__stack-overflow-marker--restored": pn.value === e.stackId
1527
1504
  }]),
1528
- style: w({
1505
+ style: C({
1529
1506
  "--vue-ui-hill-overflow-marker-duration": `${J.value.transitionDuration * .7}ms`,
1530
1507
  "--vue-ui-hill-overflow-marker-delay": `${J.value.transitionDuration * .3}ms`,
1531
1508
  "--vue-ui-hill-overflow-label-duration": `${J.value.transitionDuration * .55}ms`,
1532
1509
  "--vue-ui-hill-overflow-label-delay": `${J.value.transitionDuration * .45}ms`,
1533
- cursor: Vt.value && !F.value.readonly ? "pointer" : "default"
1510
+ cursor: zt.value && !P.value.readonly ? "pointer" : "default"
1534
1511
  }),
1535
1512
  transform: `translate(${e.x} ${e.y})`,
1536
1513
  "data-stack-overflow-marker": "",
@@ -1538,16 +1515,16 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1538
1515
  tabindex: I.value && z.value ? 0 : -1,
1539
1516
  "aria-label": `${e.hiddenCount} stacked datapoints. Activate to choose one.`,
1540
1517
  "aria-expanded": Z.value === e.stackId,
1541
- onPointerdown: t[0] ||= j(() => {}, ["stop"]),
1542
- onClick: j((t) => rr(e), ["stop"]),
1543
- onFocus: (t) => rr(e),
1518
+ onPointerdown: t[0] ||= A(() => {}, ["stop"]),
1519
+ onClick: A((t) => nr(e), ["stop"]),
1520
+ onFocus: (t) => nr(e),
1544
1521
  onKeydown: [
1545
- ye(j((t) => rr(e), ["prevent", "stop"]), ["enter"]),
1546
- ye(j((t) => rr(e), ["prevent", "stop"]), ["space"]),
1547
- ye(j(ir, ["prevent", "stop"]), ["esc"])
1522
+ be(A((t) => nr(e), ["prevent", "stop"]), ["enter"]),
1523
+ be(A((t) => nr(e), ["prevent", "stop"]), ["space"]),
1524
+ be(A(rr, ["prevent", "stop"]), ["esc"])
1548
1525
  ]
1549
1526
  }, [
1550
- k(jt) && mn.value !== e.stackId ? (T(), b("g", Be, [(T(!0), b(_, null, he(e.collapseDatapoints, (t) => (T(), b("circle", {
1527
+ O(F) && pn.value !== e.stackId ? (w(), y("g", Ve, [(w(!0), y(g, null, ge(e.collapseDatapoints, (t) => (w(), y("circle", {
1551
1528
  key: `overflow-ghost-${e.stackId}-${t.id}`,
1552
1529
  cx: t.relativeX,
1553
1530
  cy: t.relativeY,
@@ -1558,7 +1535,7 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1558
1535
  opacity: "0.8",
1559
1536
  "vector-effect": "non-scaling-stroke"
1560
1537
  }, [
1561
- x("animate", {
1538
+ b("animate", {
1562
1539
  attributeName: "cx",
1563
1540
  from: t.relativeX,
1564
1541
  to: "0",
@@ -1567,8 +1544,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1567
1544
  calcMode: "spline",
1568
1545
  keyTimes: "0;1",
1569
1546
  keySplines: "0.22 1 0.36 1"
1570
- }, null, 8, He),
1571
- x("animate", {
1547
+ }, null, 8, Ue),
1548
+ b("animate", {
1572
1549
  attributeName: "cy",
1573
1550
  from: t.relativeY,
1574
1551
  to: "0",
@@ -1577,28 +1554,28 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1577
1554
  calcMode: "spline",
1578
1555
  keyTimes: "0;1",
1579
1556
  keySplines: "0.22 1 0.36 1"
1580
- }, null, 8, Ue),
1581
- x("animate", {
1557
+ }, null, 8, We),
1558
+ b("animate", {
1582
1559
  attributeName: "r",
1583
1560
  from: U.value.radius,
1584
1561
  to: J.value.marker.radius * .7,
1585
1562
  dur: `${J.value.transitionDuration}ms`,
1586
1563
  fill: "freeze"
1587
- }, null, 8, We),
1588
- x("animate", {
1564
+ }, null, 8, Ge),
1565
+ b("animate", {
1589
1566
  attributeName: "opacity",
1590
1567
  from: "0.8",
1591
1568
  to: "0",
1592
1569
  dur: `${J.value.transitionDuration * .85}ms`,
1593
1570
  fill: "freeze"
1594
- }, null, 8, Ge)
1595
- ], 8, Ve))), 128))])) : y("", !0),
1596
- x("circle", {
1571
+ }, null, 8, Ke)
1572
+ ], 8, He))), 128))])) : v("", !0),
1573
+ b("circle", {
1597
1574
  r: Math.max(U.value.hitRadius, J.value.marker.radius),
1598
1575
  fill: "transparent",
1599
1576
  "pointer-events": "all"
1600
- }, null, 8, Ke),
1601
- x("rect", {
1577
+ }, null, 8, qe),
1578
+ b("rect", {
1602
1579
  class: "vue-ui-hill__stack-overflow-marker-rect",
1603
1580
  x: -J.value.marker.radius,
1604
1581
  y: -J.value.marker.radius,
@@ -1609,19 +1586,19 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1609
1586
  "stroke-width": J.value.marker.strokeWidth,
1610
1587
  "vector-effect": "non-scaling-stroke",
1611
1588
  "pointer-events": "none"
1612
- }, null, 8, qe),
1613
- x("g", {
1589
+ }, null, 8, Je),
1590
+ b("g", {
1614
1591
  class: "vue-ui-hill__stack-overflow-focus-cross",
1615
1592
  fill: "none",
1616
- stroke: k(l)(H.value.curve.stroke),
1593
+ stroke: O(l)(H.value.curve.stroke),
1617
1594
  "stroke-width": U.value.dragMarker.strokeWidth,
1618
1595
  "stroke-linecap": "round",
1619
1596
  "stroke-linejoin": "round",
1620
1597
  "pointer-events": "none",
1621
1598
  "vector-effect": "non-scaling-stroke",
1622
1599
  "aria-hidden": "true"
1623
- }, [x("path", { d: U.value.dragMarker.crossPath }, null, 8, Ye)], 8, Je),
1624
- Qn.value ? y("", !0) : (T(), b("text", {
1600
+ }, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Xe)], 8, Ye),
1601
+ Zn.value ? v("", !0) : (w(), y("text", {
1625
1602
  key: 1,
1626
1603
  class: "vue-ui-hill__stack-overflow-marker-label",
1627
1604
  "text-anchor": "middle",
@@ -1633,55 +1610,55 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1633
1610
  style: { "user-select": "none" },
1634
1611
  "paint-order": "stroke fill",
1635
1612
  "vector-effect": "non-scaling-stroke",
1636
- stroke: F.value.style.chart.backgroundColor,
1613
+ stroke: P.value.style.chart.backgroundColor,
1637
1614
  "stroke-width": "3"
1638
- }, " +" + O(e.hiddenCount), 9, Xe))
1639
- ], 46, ze))), 128)),
1640
- G.value.show ? (T(), b(_, { key: 4 }, [x("text", {
1615
+ }, " +" + D(e.hiddenCount), 9, Ze))
1616
+ ], 46, Be))), 128)),
1617
+ G.value.show ? (w(), y(g, { key: 4 }, [b("text", {
1641
1618
  x: (Y.value.startX + Y.value.centerX) / 2,
1642
- y: Hn.value,
1619
+ y: Vn.value,
1643
1620
  "text-anchor": "middle",
1644
1621
  fill: G.value.color,
1645
1622
  "font-size": G.value.fontSize,
1646
1623
  "font-weight": G.value.bold ? "bold" : "normal",
1647
1624
  "letter-spacing": G.value.letterSpacing
1648
- }, O(Un("left")), 9, Ze), x("text", {
1625
+ }, D(Hn("left")), 9, Qe), b("text", {
1649
1626
  x: (Y.value.centerX + Y.value.endX) / 2,
1650
- y: Hn.value,
1627
+ y: Vn.value,
1651
1628
  "text-anchor": "middle",
1652
1629
  fill: G.value.color,
1653
1630
  "font-size": G.value.fontSize,
1654
1631
  "font-weight": G.value.bold ? "bold" : "normal",
1655
1632
  "letter-spacing": G.value.letterSpacing
1656
- }, O(Un("right")), 9, Qe)], 64)) : y("", !0),
1657
- Sr.value ? (T(), b(_, { key: 5 }, [
1658
- x("rect", {
1633
+ }, D(Hn("right")), 9, $e)], 64)) : v("", !0),
1634
+ Sr.value ? (w(), y(g, { key: 5 }, [
1635
+ b("rect", {
1659
1636
  x: Y.value.left[0].x,
1660
1637
  y: Dr.value,
1661
1638
  rx: q.value.height / 2,
1662
1639
  width: Y.value.width,
1663
1640
  height: q.value.height,
1664
1641
  fill: q.value.gutterColor
1665
- }, null, 8, $e),
1666
- x("defs", null, [x("clipPath", { id: kr.value }, [x("rect", {
1642
+ }, null, 8, et),
1643
+ b("defs", null, [b("clipPath", { id: kr.value }, [b("rect", {
1667
1644
  x: Y.value.left[0].x,
1668
1645
  y: Dr.value,
1669
1646
  width: Y.value.width * wr.value,
1670
1647
  height: q.value.height,
1671
1648
  rx: Math.min(q.value.height / 2, Y.value.width * wr.value / 2),
1672
1649
  ry: Math.min(q.value.height / 2, Y.value.width * wr.value / 2)
1673
- }, null, 8, tt)], 8, et)]),
1674
- x("g", { "clip-path": `url(#${kr.value})` }, [(T(!0), b(_, null, he(Cr.value, (e) => (T(), b("rect", {
1650
+ }, null, 8, nt)], 8, tt)]),
1651
+ b("g", { "clip-path": `url(#${kr.value})` }, [(w(!0), y(g, null, ge(Cr.value, (e) => (w(), y("rect", {
1675
1652
  key: `bar_fill_${e.id}`,
1676
1653
  width: Y.value.width * e.proportion,
1677
1654
  x: Y.value.left[0].x + Y.value.width * e.proportionStart,
1678
1655
  y: V.value.height + 32 + q.value.paddingTop,
1679
1656
  fill: e.color,
1680
1657
  height: q.value.height,
1681
- onPointerenter: (t) => Ln(e),
1682
- onPointerleave: (t) => Rn(e)
1683
- }, null, 40, rt))), 128))], 8, nt),
1684
- (T(!0), b(_, null, he(Cr.value.slice(1), (e) => (T(), b("line", {
1658
+ onPointerenter: (t) => In(e),
1659
+ onPointerleave: (t) => Ln(e)
1660
+ }, null, 40, it))), 128))], 8, rt),
1661
+ (w(!0), y(g, null, ge(Cr.value.slice(1), (e) => (w(), y("line", {
1685
1662
  key: `bar_separator_${e.id}`,
1686
1663
  x1: Y.value.left[0].x + Y.value.width * e.proportionStart,
1687
1664
  x2: Y.value.left[0].x + Y.value.width * e.proportionStart,
@@ -1690,8 +1667,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1690
1667
  stroke: q.value.stroke,
1691
1668
  "stroke-width": q.value.strokeWidth,
1692
1669
  "vector-effect": "non-scaling-stroke"
1693
- }, null, 8, it))), 128)),
1694
- x("rect", {
1670
+ }, null, 8, at))), 128)),
1671
+ b("rect", {
1695
1672
  x: Y.value.left[0].x,
1696
1673
  y: V.value.height + 32 + q.value.paddingTop,
1697
1674
  width: Y.value.width * wr.value,
@@ -1702,8 +1679,8 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1702
1679
  stroke: q.value.stroke,
1703
1680
  "stroke-width": q.value.strokeWidth,
1704
1681
  "vector-effect": "non-scaling-stroke"
1705
- }, null, 8, at),
1706
- q.value.label.show && wr.value > 0 ? (T(), b("text", {
1682
+ }, null, 8, ot),
1683
+ q.value.label.show && wr.value > 0 ? (w(), y("text", {
1707
1684
  key: 0,
1708
1685
  x: Er.value,
1709
1686
  y: Dr.value - 6,
@@ -1713,56 +1690,56 @@ var be = /* @__PURE__ */ e({ default: () => mt }), xe = ["id", "data-editing"],
1713
1690
  "dominant-baseline": "auto",
1714
1691
  "pointer-events": "none",
1715
1692
  style: { "user-select": "none" }
1716
- }, O(Or()), 9, ot)) : y("", !0)
1717
- ], 64)) : y("", !0),
1718
- D(e.$slots, "svg", { svg: {
1693
+ }, D(Or()), 9, st)) : v("", !0)
1694
+ ], 64)) : v("", !0),
1695
+ E(e.$slots, "svg", { svg: {
1719
1696
  drawingArea: Y.value,
1720
1697
  isEditing: I.value,
1721
- datapoints: Xn.value,
1722
- isPrintingImg: k(Lt) || k(Rt) || Dt.value,
1723
- isPrintingSvg: Et.value
1698
+ datapoints: Yn.value,
1699
+ isPrintingImg: O(Ft) || O(It) || O(_r),
1700
+ isPrintingSvg: O(vr)
1724
1701
  } }, void 0, !0)
1725
- ], 46, we)),
1726
- Qn.value ? (T(), b("div", {
1702
+ ], 46, Te)),
1703
+ Zn.value ? (w(), y("div", {
1727
1704
  ref_key: "overflowMenuRef",
1728
- ref: wt,
1729
- key: `stack-overflow-menu-${Qn.value.stackId}`,
1705
+ ref: Tt,
1706
+ key: `stack-overflow-menu-${Zn.value.stackId}`,
1730
1707
  class: "vue-ui-hill__stack-overflow-menu",
1731
1708
  "data-stack-overflow-menu": "",
1732
1709
  "data-dom-to-png-ignore": "",
1733
- style: w([$n.value, pn.value]),
1710
+ style: C([Qn.value, fn.value]),
1734
1711
  role: "listbox",
1735
- "aria-label": `Choose one of ${Qn.value.hiddenCount} stacked datapoints`,
1736
- onPointerdown: t[1] ||= j(() => {}, ["stop"]),
1737
- onClick: t[2] ||= j(() => {}, ["stop"]),
1738
- onKeydown: ye(j(ir, ["prevent", "stop"]), ["esc"])
1739
- }, [F.value.style.chart.layout.plots.stacking.overflow.menu.title ? (T(), b("div", ct, O(F.value.style.chart.layout.plots.stacking.overflow.menu.title), 1)) : y("", !0), (T(!0), b(_, null, he(Qn.value.hiddenDatapoints, (e) => (T(), b("button", {
1712
+ "aria-label": `Choose one of ${Zn.value.hiddenCount} stacked datapoints`,
1713
+ onPointerdown: t[1] ||= A(() => {}, ["stop"]),
1714
+ onClick: t[2] ||= A(() => {}, ["stop"]),
1715
+ onKeydown: be(A(rr, ["prevent", "stop"]), ["esc"])
1716
+ }, [P.value.style.chart.layout.plots.stacking.overflow.menu.title ? (w(), y("div", lt, D(P.value.style.chart.layout.plots.stacking.overflow.menu.title), 1)) : v("", !0), (w(!0), y(g, null, ge(Zn.value.hiddenDatapoints, (e) => (w(), y("button", {
1740
1717
  key: `hidden-${e.id}`,
1741
1718
  type: "button",
1742
- class: fe(["vue-ui-hill__stack-overflow-menu-item", { readonly: F.value.readonly }]),
1719
+ class: pe(["vue-ui-hill__stack-overflow-menu-item", { readonly: P.value.readonly }]),
1743
1720
  role: "option",
1744
1721
  disabled: e.disabled,
1745
- "aria-label": `${e.label}, ${mr(e)}`,
1746
- onClick: j((t) => ur(e), ["stop"]),
1747
- style: w({ cursor: Vt.value && !F.value.readonly ? "pointer" : "default" })
1722
+ "aria-label": `${e.label}, ${pr(e)}`,
1723
+ onClick: A((t) => lr(e), ["stop"]),
1724
+ style: C({ cursor: zt.value && !P.value.readonly ? "pointer" : "default" })
1748
1725
  }, [
1749
- x("span", {
1726
+ b("span", {
1750
1727
  class: "vue-ui-hill__stack-overflow-menu-swatch",
1751
- style: w({ backgroundColor: e.color }),
1728
+ style: C({ backgroundColor: e.color }),
1752
1729
  "aria-hidden": "true"
1753
1730
  }, null, 4),
1754
- x("span", ut, O(k(o)(e.label, W.value.ellipsisThresholdChars)), 1),
1755
- x("span", dt, O(mr(e)), 1)
1756
- ], 14, lt))), 128))], 44, st)) : y("", !0),
1757
- D(e.$slots, "analysis", { data: { ...Cr.value } }, void 0, !0),
1758
- e.$slots.watermark ? (T(), b("div", ft, [D(e.$slots, "watermark", C(S({ isPrinting: k(Lt) || k(Rt) || Dt.value || Et.value })), void 0, !0)])) : y("", !0),
1759
- F.value.loading ? (T(), b("div", pt, [F.value.loading ? D(e.$slots, "loading", {}, () => [le(k(vt), {
1731
+ b("span", dt, D(O(o)(e.label, W.value.ellipsisThresholdChars)), 1),
1732
+ b("span", ft, D(pr(e)), 1)
1733
+ ], 14, ut))), 128))], 44, ct)) : v("", !0),
1734
+ E(e.$slots, "analysis", { data: { ...Cr.value } }, void 0, !0),
1735
+ e.$slots.watermark ? (w(), y("div", pt, [E(e.$slots, "watermark", S(x({ isPrinting: O(Ft) || O(It) || O(_r) || O(vr) })), void 0, !0)])) : v("", !0),
1736
+ P.value.loading ? (w(), y("div", mt, [P.value.loading ? E(e.$slots, "loading", {}, () => [ue(O(yt), {
1760
1737
  name: "spinner2",
1761
- stroke: F.value.style.chart.color,
1738
+ stroke: P.value.style.chart.color,
1762
1739
  "is-spin": !0
1763
- }, null, 8, ["stroke"])], !0, 0) : y("", !0)])) : y("", !0)
1764
- ], 44, xe));
1740
+ }, null, 8, ["stroke"])], !0, 0) : v("", !0)])) : v("", !0)
1741
+ ], 44, Se));
1765
1742
  }
1766
- }, [["__scopeId", "data-v-93662db0"]]);
1743
+ }, [["__scopeId", "data-v-3c476fa7"]]);
1767
1744
  //#endregion
1768
- export { be as n, mt as t };
1745
+ export { xe as n, ht as t };