@adyen/lume 1.5.2 → 1.6.0

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 (224) hide show
  1. package/dist/@types/components/charts/lume-alluvial-diagram/defaults.d.ts +3 -0
  2. package/dist/@types/components/charts/lume-alluvial-diagram/defaults.d.ts.map +1 -0
  3. package/dist/@types/components/charts/lume-alluvial-diagram/index.d.ts +2 -0
  4. package/dist/@types/components/charts/lume-alluvial-diagram/index.d.ts.map +1 -0
  5. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +125 -0
  6. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -0
  7. package/dist/@types/components/charts/lume-bar-chart/index.d.ts +2 -0
  8. package/dist/@types/components/charts/lume-bar-chart/index.d.ts.map +1 -0
  9. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +179 -0
  10. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -0
  11. package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +26 -0
  12. package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +1 -0
  13. package/dist/@types/components/charts/lume-grouped-bar-chart/index.d.ts +2 -0
  14. package/dist/@types/components/charts/lume-grouped-bar-chart/index.d.ts.map +1 -0
  15. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +163 -0
  16. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -0
  17. package/dist/@types/components/charts/lume-line-chart/defaults.d.ts +3 -0
  18. package/dist/@types/components/charts/lume-line-chart/defaults.d.ts.map +1 -0
  19. package/dist/@types/components/charts/lume-line-chart/index.d.ts +2 -0
  20. package/dist/@types/components/charts/lume-line-chart/index.d.ts.map +1 -0
  21. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +163 -0
  22. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -0
  23. package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +22 -0
  24. package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts.map +1 -0
  25. package/dist/@types/components/charts/lume-single-bar-chart/index.d.ts +2 -0
  26. package/dist/@types/components/charts/lume-single-bar-chart/index.d.ts.map +1 -0
  27. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +163 -0
  28. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -0
  29. package/dist/@types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts +7 -0
  30. package/dist/@types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts.map +1 -0
  31. package/dist/@types/components/charts/lume-sparkline-chart/defaults.d.ts +3 -0
  32. package/dist/@types/components/charts/lume-sparkline-chart/defaults.d.ts.map +1 -0
  33. package/dist/@types/components/charts/lume-sparkline-chart/index.d.ts +2 -0
  34. package/dist/@types/components/charts/lume-sparkline-chart/index.d.ts.map +1 -0
  35. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +120 -0
  36. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -0
  37. package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +26 -0
  38. package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +1 -0
  39. package/dist/@types/components/charts/lume-stacked-bar-chart/index.d.ts +2 -0
  40. package/dist/@types/components/charts/lume-stacked-bar-chart/index.d.ts.map +1 -0
  41. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +163 -0
  42. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -0
  43. package/dist/@types/components/core/index.d.ts +9 -0
  44. package/dist/@types/components/core/index.d.ts.map +1 -0
  45. package/dist/@types/components/core/lume-axis/components/lume-tick/index.d.ts +2 -0
  46. package/dist/@types/components/core/lume-axis/components/lume-tick/index.d.ts.map +1 -0
  47. package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts +82 -0
  48. package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts.map +1 -0
  49. package/dist/@types/components/core/lume-axis/composables/index.d.ts +8 -0
  50. package/dist/@types/components/core/lume-axis/composables/index.d.ts.map +1 -0
  51. package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts +15 -0
  52. package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts.map +1 -0
  53. package/dist/@types/components/core/lume-axis/composables/x-band-scale-axis.d.ts +4 -0
  54. package/dist/@types/components/core/lume-axis/composables/x-band-scale-axis.d.ts.map +1 -0
  55. package/dist/@types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts +4 -0
  56. package/dist/@types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts.map +1 -0
  57. package/dist/@types/components/core/lume-axis/composables/y-band-scale-axis.d.ts +4 -0
  58. package/dist/@types/components/core/lume-axis/composables/y-band-scale-axis.d.ts.map +1 -0
  59. package/dist/@types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts +4 -0
  60. package/dist/@types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts.map +1 -0
  61. package/dist/@types/components/core/lume-axis/defaults.d.ts +4 -0
  62. package/dist/@types/components/core/lume-axis/defaults.d.ts.map +1 -0
  63. package/dist/@types/components/core/lume-axis/index.d.ts +2 -0
  64. package/dist/@types/components/core/lume-axis/index.d.ts.map +1 -0
  65. package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts +113 -0
  66. package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -0
  67. package/dist/@types/components/core/lume-axis/types.d.ts +14 -0
  68. package/dist/@types/components/core/lume-axis/types.d.ts.map +1 -0
  69. package/dist/@types/components/core/lume-bar/composables/bar-sizing.d.ts +20 -0
  70. package/dist/@types/components/core/lume-bar/composables/bar-sizing.d.ts.map +1 -0
  71. package/dist/@types/components/core/lume-bar/composables/bar-transition.d.ts +7 -0
  72. package/dist/@types/components/core/lume-bar/composables/bar-transition.d.ts.map +1 -0
  73. package/dist/@types/components/core/lume-bar/index.d.ts +2 -0
  74. package/dist/@types/components/core/lume-bar/index.d.ts.map +1 -0
  75. package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts +86 -0
  76. package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -0
  77. package/dist/@types/components/core/lume-chart/index.d.ts +2 -0
  78. package/dist/@types/components/core/lume-chart/index.d.ts.map +1 -0
  79. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +239 -0
  80. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -0
  81. package/dist/@types/components/core/lume-chart-container/index.d.ts +2 -0
  82. package/dist/@types/components/core/lume-chart-container/index.d.ts.map +1 -0
  83. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +70 -0
  84. package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -0
  85. package/dist/@types/components/core/lume-chart-legend/index.d.ts +2 -0
  86. package/dist/@types/components/core/lume-chart-legend/index.d.ts.map +1 -0
  87. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +27 -0
  88. package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -0
  89. package/dist/@types/components/core/lume-line/index.d.ts +2 -0
  90. package/dist/@types/components/core/lume-line/index.d.ts.map +1 -0
  91. package/dist/@types/components/core/lume-line/lume-line.vue.d.ts +73 -0
  92. package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -0
  93. package/dist/@types/components/core/lume-point/index.d.ts +2 -0
  94. package/dist/@types/components/core/lume-point/index.d.ts.map +1 -0
  95. package/dist/@types/components/core/lume-point/lume-point.vue.d.ts +54 -0
  96. package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -0
  97. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/index.d.ts +2 -0
  98. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/index.d.ts.map +1 -0
  99. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +23 -0
  100. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -0
  101. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/index.d.ts +2 -0
  102. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/index.d.ts.map +1 -0
  103. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +11 -0
  104. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -0
  105. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/index.d.ts +2 -0
  106. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/index.d.ts.map +1 -0
  107. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +10 -0
  108. package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -0
  109. package/dist/@types/components/core/lume-tooltip/index.d.ts +2 -0
  110. package/dist/@types/components/core/lume-tooltip/index.d.ts.map +1 -0
  111. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +116 -0
  112. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -0
  113. package/dist/@types/components/groups/index.d.ts +5 -0
  114. package/dist/@types/components/groups/index.d.ts.map +1 -0
  115. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/index.d.ts +2 -0
  116. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/index.d.ts.map +1 -0
  117. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +44 -0
  118. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -0
  119. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/index.d.ts +2 -0
  120. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/index.d.ts.map +1 -0
  121. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +22 -0
  122. package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -0
  123. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-extents.d.ts +12 -0
  124. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-extents.d.ts.map +1 -0
  125. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +9 -0
  126. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts.map +1 -0
  127. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +166 -0
  128. package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -0
  129. package/dist/@types/components/groups/lume-alluvial-group/constants.d.ts +6 -0
  130. package/dist/@types/components/groups/lume-alluvial-group/constants.d.ts.map +1 -0
  131. package/dist/@types/components/groups/lume-alluvial-group/helpers.d.ts +30 -0
  132. package/dist/@types/components/groups/lume-alluvial-group/helpers.d.ts.map +1 -0
  133. package/dist/@types/components/groups/lume-alluvial-group/index.d.ts +2 -0
  134. package/dist/@types/components/groups/lume-alluvial-group/index.d.ts.map +1 -0
  135. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +267 -0
  136. package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -0
  137. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +29 -0
  138. package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -0
  139. package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts +16 -0
  140. package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts.map +1 -0
  141. package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts +16 -0
  142. package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts.map +1 -0
  143. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +22 -0
  144. package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -0
  145. package/dist/@types/components/groups/lume-bar-group/index.d.ts +2 -0
  146. package/dist/@types/components/groups/lume-bar-group/index.d.ts.map +1 -0
  147. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +129 -0
  148. package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -0
  149. package/dist/@types/components/groups/lume-line-group/index.d.ts +2 -0
  150. package/dist/@types/components/groups/lume-line-group/index.d.ts.map +1 -0
  151. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +137 -0
  152. package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -0
  153. package/dist/@types/components/groups/lume-overlay-group/index.d.ts +2 -0
  154. package/dist/@types/components/groups/lume-overlay-group/index.d.ts.map +1 -0
  155. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +117 -0
  156. package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -0
  157. package/dist/@types/components/index.d.ts +25 -0
  158. package/dist/@types/components/index.d.ts.map +1 -0
  159. package/dist/@types/composables/base.d.ts +36 -0
  160. package/dist/@types/composables/base.d.ts.map +1 -0
  161. package/dist/@types/composables/events.d.ts +6 -0
  162. package/dist/@types/composables/events.d.ts.map +1 -0
  163. package/dist/@types/composables/format.d.ts +6 -0
  164. package/dist/@types/composables/format.d.ts.map +1 -0
  165. package/dist/@types/composables/group-props.d.ts +54 -0
  166. package/dist/@types/composables/group-props.d.ts.map +1 -0
  167. package/dist/@types/composables/index.d.ts +9 -0
  168. package/dist/@types/composables/index.d.ts.map +1 -0
  169. package/dist/@types/composables/line-null-values.d.ts +15 -0
  170. package/dist/@types/composables/line-null-values.d.ts.map +1 -0
  171. package/dist/@types/composables/line-values.d.ts +14 -0
  172. package/dist/@types/composables/line-values.d.ts.map +1 -0
  173. package/dist/@types/composables/negative-values.d.ts +16 -0
  174. package/dist/@types/composables/negative-values.d.ts.map +1 -0
  175. package/dist/@types/composables/options.d.ts +83 -0
  176. package/dist/@types/composables/options.d.ts.map +1 -0
  177. package/dist/@types/composables/props.d.ts +77 -0
  178. package/dist/@types/composables/props.d.ts.map +1 -0
  179. package/dist/@types/composables/resize.d.ts +17 -0
  180. package/dist/@types/composables/resize.d.ts.map +1 -0
  181. package/dist/@types/composables/scales.d.ts +54 -0
  182. package/dist/@types/composables/scales.d.ts.map +1 -0
  183. package/dist/@types/composables/tooltip.d.ts +33 -0
  184. package/dist/@types/composables/tooltip.d.ts.map +1 -0
  185. package/dist/@types/docs/storybook-data/alluvial-data.d.ts +171 -0
  186. package/dist/@types/docs/storybook-data/alluvial-data.d.ts.map +1 -0
  187. package/dist/@types/docs/storybook-data/base-data.d.ts +72 -0
  188. package/dist/@types/docs/storybook-data/base-data.d.ts.map +1 -0
  189. package/dist/@types/docs/storybook-data/sparkline-data.d.ts +30 -0
  190. package/dist/@types/docs/storybook-data/sparkline-data.d.ts.map +1 -0
  191. package/dist/@types/docs/storybook-helpers.d.ts +37 -0
  192. package/dist/@types/docs/storybook-helpers.d.ts.map +1 -0
  193. package/dist/@types/index.d.ts +2 -0
  194. package/dist/@types/index.d.ts.map +1 -0
  195. package/dist/@types/plugin.d.ts +4 -0
  196. package/dist/@types/plugin.d.ts.map +1 -0
  197. package/dist/@types/types/alluvial.d.ts +79 -0
  198. package/dist/@types/types/alluvial.d.ts.map +1 -0
  199. package/dist/@types/types/dataset.d.ts +32 -0
  200. package/dist/@types/types/dataset.d.ts.map +1 -0
  201. package/dist/@types/types/events.d.ts +79 -0
  202. package/dist/@types/types/events.d.ts.map +1 -0
  203. package/dist/@types/types/size.d.ts +7 -0
  204. package/dist/@types/types/size.d.ts.map +1 -0
  205. package/dist/@types/utils/colors.d.ts +6 -0
  206. package/dist/@types/utils/colors.d.ts.map +1 -0
  207. package/dist/@types/utils/constants.d.ts +109 -0
  208. package/dist/@types/utils/constants.d.ts.map +1 -0
  209. package/dist/@types/utils/errors.d.ts +5 -0
  210. package/dist/@types/utils/errors.d.ts.map +1 -0
  211. package/dist/@types/utils/helpers.d.ts +103 -0
  212. package/dist/@types/utils/helpers.d.ts.map +1 -0
  213. package/dist/@types/utils/margins.d.ts +10 -0
  214. package/dist/@types/utils/margins.d.ts.map +1 -0
  215. package/dist/@types/utils/svg-check.d.ts +7 -0
  216. package/dist/@types/utils/svg-check.d.ts.map +1 -0
  217. package/dist/@types/utils/warnings.d.ts +12 -0
  218. package/dist/@types/utils/warnings.d.ts.map +1 -0
  219. package/dist/index.js +835 -817
  220. package/dist/index.js.map +1 -1
  221. package/dist/plugin.js.map +1 -1
  222. package/dist/scss/components/lume-alluvial-group.scss +16 -0
  223. package/dist/styles/main.css +1 -1
  224. package/package.json +5 -3
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as w, ref as I, isRef as _t, computed as v, watch as H, toRefs as P, inject as de, reactive as ge, onMounted as J, onBeforeUnmount as pt, watchEffect as ft, useSlots as V, provide as Ae, defineAsyncComponent as Le } from "vue";
2
- import { format as Gt, ticks as Vt, scaleBand as se, scaleLinear as ce, link as jt, line as Mt, area as zt } from "d3";
3
- import { createPopper as Wt } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as Zt, sankey as Xt, sankeyJustify as Ut } from "d3-sankey";
5
- const Yt = /* @__PURE__ */ w({
1
+ import { defineComponent as N, ref as O, isRef as ft, computed as v, watch as H, toRefs as B, inject as _e, reactive as be, onMounted as ee, onBeforeUnmount as mt, watchEffect as ht, useSlots as V, provide as Oe, nextTick as Je, defineAsyncComponent as Ie } from "vue";
2
+ import { format as Vt, ticks as Mt, scaleBand as de, scaleLinear as ve, link as zt, line as Wt, area as Zt } from "d3";
3
+ import { createPopper as Xt } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as Ut, sankey as Yt, sankeyJustify as Kt } from "d3-sankey";
5
+ const Jt = /* @__PURE__ */ N({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -40,7 +40,7 @@ const Yt = /* @__PURE__ */ w({
40
40
  },
41
41
  emits: ["click", "mouseenter"],
42
42
  setup(t, { expose: e, emit: r }) {
43
- const n = I(null);
43
+ const n = O(null);
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
@@ -73,7 +73,7 @@ function E(t, e, r, n, o, a, l, i) {
73
73
  options: u
74
74
  };
75
75
  }
76
- var Kt = function() {
76
+ var Qt = function() {
77
77
  var e = this, r = e._self._c, n = e._self._setupProxy;
78
78
  return r("g", e._b({ staticClass: "axis__tick", class: {
79
79
  "axis__tick--hovered": e.isHovered,
@@ -83,17 +83,17 @@ var Kt = function() {
83
83
  }, click: function(o) {
84
84
  return n.emit("click", o);
85
85
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
86
- }, Jt = [], Qt = /* @__PURE__ */ E(
87
- Yt,
88
- Kt,
86
+ }, qt = [], en = /* @__PURE__ */ E(
89
87
  Jt,
88
+ Qt,
89
+ qt,
90
90
  !1,
91
91
  null,
92
92
  "59ddc0a6",
93
93
  null,
94
94
  null
95
95
  );
96
- const qt = Qt.exports, en = [
96
+ const tn = en.exports, nn = [
97
97
  "controls",
98
98
  "legend",
99
99
  "axes",
@@ -101,61 +101,60 @@ const qt = Qt.exports, en = [
101
101
  "tooltip",
102
102
  "tooltip-content"
103
103
  ];
104
- function mt() {
104
+ function gt() {
105
105
  return process.env.NODE_ENV === "production";
106
106
  }
107
- function ht(t) {
107
+ function yt(t) {
108
108
  return (t == null ? void 0 : t.map(
109
109
  (e) => e.values.map((r) => r == null ? void 0 : r.value).flat()
110
110
  ).flat()) || [];
111
111
  }
112
- function Fe(t) {
112
+ function je(t) {
113
113
  return t.length === 1;
114
114
  }
115
- function tn(t) {
115
+ function rn(t) {
116
116
  return !!t && t.every(
117
117
  (e) => "color" in e
118
118
  );
119
119
  }
120
- function $e(t) {
120
+ function Ee(t) {
121
121
  return !!t && typeof t == "object" && !Array.isArray(t);
122
122
  }
123
- function gt(t, e) {
123
+ function bt(t, e) {
124
124
  const r = { ...t };
125
125
  return Object.entries(e).forEach(([n, o]) => {
126
- r[n] = $e(t[n]) && $e(o) ? gt(t[n], o) : o;
126
+ r[n] = Ee(t[n]) && Ee(o) ? bt(t[n], o) : o;
127
127
  }), r;
128
128
  }
129
- function nn(t) {
130
- return t != null && $e(t) && "value" in t;
129
+ function on(t) {
130
+ return t != null && Ee(t) && "value" in t;
131
131
  }
132
- function oe(t) {
132
+ function U(t) {
133
133
  return (t == null ? void 0 : t.bandwidth) !== void 0;
134
134
  }
135
- function rn(t) {
136
- return oe(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
135
+ function an(t) {
136
+ return U(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
137
137
  }
138
- const on = (t, e) => {
138
+ const ln = (t, e) => {
139
139
  if (!t)
140
140
  throw new Error("Data is not a valid array");
141
141
  if (t.length === 0)
142
142
  throw new Error("Cannot get highest value from empty array");
143
- if (!t.some(
143
+ t.some(
144
144
  ({ values: n }) => n.length - 1 >= e
145
- ))
146
- throw new Error("Index exceeds length of all of the datasets");
145
+ ) || q(Y.IndexExceedsLengthOfDataSets);
147
146
  };
148
- function an(t, e) {
147
+ function un(t, e) {
149
148
  var r;
150
- return on(t, e), ((r = t.reduce(
149
+ return ln(t, e), ((r = t.reduce(
151
150
  (n, o) => {
152
151
  var a, l;
153
152
  return (((a = n.values[e]) == null ? void 0 : a.value) ?? 0) > (((l = o.values[e]) == null ? void 0 : l.value) ?? 0) ? n : o;
154
153
  }
155
154
  ).values[e]) == null ? void 0 : r.value) || 0;
156
155
  }
157
- function Ie(t) {
158
- const e = _t(t) ? t.value : t;
156
+ function we(t) {
157
+ const e = ft(t) ? t.value : t;
159
158
  if (!e)
160
159
  throw new Error("No empty array can be created from specified data value");
161
160
  const r = Math.max(
@@ -164,13 +163,13 @@ function Ie(t) {
164
163
  );
165
164
  return Array(r).fill(null);
166
165
  }
167
- function ln(t) {
168
- return oe(t) ? t.domain().length : Math.max(...t.domain());
166
+ function sn(t) {
167
+ return U(t) ? t.domain().length : Math.max(...t.domain());
169
168
  }
170
- function un(t, e) {
169
+ function cn(t, e) {
171
170
  return (r) => Math.round(t * (1 - r) + e * r);
172
171
  }
173
- function sn(t, e, r) {
172
+ function dn(t, e, r) {
174
173
  const n = r ? t.length - e : e, o = t.slice(0, n);
175
174
  return t.slice(n).concat(o);
176
175
  }
@@ -184,32 +183,32 @@ function ae(t) {
184
183
  }
185
184
  return t;
186
185
  }
187
- function cn(t) {
186
+ function vn(t) {
188
187
  return Object.assign(
189
188
  {},
190
189
  ...Object.keys(t).map(
191
- (e) => en.includes(e) ? {} : { [e]: t[e] }
190
+ (e) => nn.includes(e) ? {} : { [e]: t[e] }
192
191
  )
193
192
  );
194
193
  }
195
- const dn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
194
+ const _n = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
196
195
  (e, r) => e += (r &= 63) < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r > 62 ? "-" : "_",
197
196
  ""
198
197
  );
199
- var K = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
200
- Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t))(K || {});
201
- const vn = "[lume] ";
202
- function ne(t, e = !0) {
203
- e && mt() || console.warn(vn + "Warning: " + t);
198
+ var Y = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
199
+ Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", t))(Y || {});
200
+ const pn = "[lume] ";
201
+ function q(t, e = !0) {
202
+ e && gt() || console.warn(pn + "Warning: " + t);
204
203
  }
205
- const he = (t) => {
204
+ const ye = (t) => {
206
205
  let e = null;
207
206
  switch (typeof t) {
208
207
  case "string":
209
208
  try {
210
- e = Gt(t);
209
+ e = Vt(t);
211
210
  } catch {
212
- ne(K.InvalidFormat), e = null;
211
+ q(Y.InvalidFormat), e = null;
213
212
  }
214
213
  break;
215
214
  case "function":
@@ -222,21 +221,21 @@ const he = (t) => {
222
221
  return e ? e(...n) : n[0];
223
222
  }
224
223
  return r;
225
- }, ve = () => ({
224
+ }, pe = () => ({
226
225
  options: {
227
226
  type: Object,
228
227
  default: () => ({})
229
228
  }
230
229
  });
231
- function Z(t, e) {
230
+ function K(t, e) {
232
231
  return { allOptions: v(() => {
233
- const n = _t(e) ? e == null ? void 0 : e.value : e;
234
- return n ? gt(n, t.value) : t.value;
232
+ const n = ft(e) ? e == null ? void 0 : e.value : e;
233
+ return n ? bt(n, t.value) : t.value;
235
234
  }) };
236
235
  }
237
- const _n = 0.2;
238
- function pn(t, e, r) {
239
- const n = I(), o = v(() => Math.max(...t.value.range())), a = v(() => e.value.length);
236
+ const fn = 0.2;
237
+ function mn(t, e, r) {
238
+ const n = O(), o = v(() => Math.max(...t.value.range())), a = v(() => e.value.length);
240
239
  function l() {
241
240
  if (!e.value)
242
241
  return;
@@ -244,7 +243,7 @@ function pn(t, e, r) {
244
243
  (d, s) => d + s.ref.getBoundingClientRect().width,
245
244
  0
246
245
  ), c = Math.ceil(u / a.value);
247
- n.value = c + c * _n;
246
+ n.value = c + c * fn;
248
247
  }
249
248
  function i(u) {
250
249
  if (!e.value)
@@ -257,15 +256,15 @@ function pn(t, e, r) {
257
256
  }
258
257
  return H(e, l), { showTick: i };
259
258
  }
260
- var j = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(j || {}), yt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(yt || {}), Ge = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ge || {}), Ve = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Ve || {}), je = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(je || {});
259
+ var M = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(M || {}), kt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(kt || {}), Ve = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ve || {}), Me = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Me || {}), ze = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(ze || {});
261
260
  const L = {
262
261
  HORIZONTAL: "horizontal",
263
262
  VERTICAL: "vertical"
264
- }, fn = {
263
+ }, hn = {
265
264
  SINGLE: "single",
266
265
  GROUPED: "grouped",
267
266
  STACKED: "stacked"
268
- }, kt = "No data", Je = 20, bt = 0.33, Tt = 0.5, xt = 12, _e = 8, mn = 1, hn = [
267
+ }, xt = "No data", Qe = 20, Tt = 0.33, At = 0.5, Lt = 12, fe = 8, gn = 1, yn = [
269
268
  "auto",
270
269
  "auto-start",
271
270
  "auto-end",
@@ -282,10 +281,10 @@ const L = {
282
281
  "left-start",
283
282
  "left-end"
284
283
  ];
285
- function ye(t) {
286
- t != null && t.closest("svg") || ne(K.NotContainedInSvg);
284
+ function ke(t) {
285
+ t != null && t.closest("svg") || q(Y.NotContainedInSvg);
287
286
  }
288
- const At = {
287
+ const Ot = {
289
288
  /** Displays a line for each tick. */
290
289
  gridLines: !1,
291
290
  /** Displays the axis title. */
@@ -301,14 +300,14 @@ const At = {
301
300
  tickFormat: null,
302
301
  /** Space between the tick label and the axis line. */
303
302
  tickPadding: 8
304
- }, gn = {
305
- ...At,
303
+ }, bn = {
304
+ ...Ot,
306
305
  withTitle: !1,
307
306
  skip: !0
308
- }, yn = {
309
- ...At,
307
+ }, kn = {
308
+ ...Ot,
310
309
  gridLines: !0
311
- }, kn = function(t, e, r) {
310
+ }, xn = function(t, e, r) {
312
311
  const n = v(() => t.value.step() * t.value.paddingInner() / 2);
313
312
  function o(u, c) {
314
313
  return {
@@ -324,7 +323,7 @@ const At = {
324
323
  return {
325
324
  x: -(c - t.value.step()) / 2,
326
325
  width: c,
327
- height: r.value.tickPadding + xt + _e
326
+ height: r.value.tickPadding + Lt + fe
328
327
  };
329
328
  }
330
329
  function l() {
@@ -350,7 +349,7 @@ const At = {
350
349
  getTickGroupAttributes: o,
351
350
  getTickLabelAttributes: i
352
351
  };
353
- }, bn = function(t, e, r) {
352
+ }, Tn = function(t, e, r) {
354
353
  const n = v(() => t.value.step() * t.value.paddingInner() / 2);
355
354
  function o(u, c) {
356
355
  return {
@@ -359,7 +358,7 @@ const At = {
359
358
  }
360
359
  function a(u) {
361
360
  var d;
362
- const c = (u ? (d = u.getComputedTextLength) == null ? void 0 : d.call(u) : 42) + r.value.tickPadding + _e;
361
+ const c = (u ? (d = u.getComputedTextLength) == null ? void 0 : d.call(u) : 42) + r.value.tickPadding + fe;
363
362
  return {
364
363
  x: -c,
365
364
  width: c,
@@ -388,7 +387,7 @@ const At = {
388
387
  getTickGroupAttributes: o,
389
388
  getTickLabelAttributes: i
390
389
  };
391
- }, Tn = function(t, e, r) {
390
+ }, An = function(t, e, r) {
392
391
  const n = v(() => {
393
392
  const u = t.value.ticks();
394
393
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
@@ -400,7 +399,7 @@ const At = {
400
399
  }
401
400
  function a() {
402
401
  return {
403
- height: r.value.tickPadding + xt + _e,
402
+ height: r.value.tickPadding + Lt + fe,
404
403
  width: n.value,
405
404
  x: -(n.value / 2)
406
405
  };
@@ -423,7 +422,7 @@ const At = {
423
422
  getTickGroupAttributes: o,
424
423
  getTickLabelAttributes: i
425
424
  };
426
- }, xn = function(t, e, r) {
425
+ }, Ln = function(t, e, r) {
427
426
  const n = v(() => {
428
427
  const u = t.value.ticks();
429
428
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
@@ -435,7 +434,7 @@ const At = {
435
434
  }
436
435
  function a(u) {
437
436
  var d;
438
- const c = (((d = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : d.call(u)) || 0) + r.value.tickPadding + _e;
437
+ const c = (((d = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : d.call(u)) || 0) + r.value.tickPadding + fe;
439
438
  return {
440
439
  width: c,
441
440
  height: n.value,
@@ -461,14 +460,14 @@ const At = {
461
460
  getTickGroupAttributes: o,
462
461
  getTickLabelAttributes: i
463
462
  };
464
- }, An = {
465
- "x-band-scale-axis": kn,
466
- "y-band-scale-axis": bn,
467
- "x-linear-scale-axis": Tn,
468
- "y-linear-scale-axis": xn
463
+ }, On = {
464
+ "x-band-scale-axis": xn,
465
+ "y-band-scale-axis": Tn,
466
+ "x-linear-scale-axis": An,
467
+ "y-linear-scale-axis": Ln
469
468
  };
470
- var Ee = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ee || {}), we = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(we || {}), me = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(me || {});
471
- const Ln = /* @__PURE__ */ w({
469
+ var Ne = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ne || {}), He = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(He || {}), ge = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(ge || {});
470
+ const In = /* @__PURE__ */ N({
472
471
  __name: "lume-axis",
473
472
  props: {
474
473
  scale: {
@@ -478,12 +477,12 @@ const Ln = /* @__PURE__ */ w({
478
477
  type: {
479
478
  type: String,
480
479
  default: void 0,
481
- validator: (t) => t in me
480
+ validator: (t) => t in ge
482
481
  },
483
482
  position: {
484
483
  type: String,
485
484
  default: void 0,
486
- validator: (t) => t in we
485
+ validator: (t) => t in He
487
486
  },
488
487
  containerSize: {
489
488
  type: Object,
@@ -497,41 +496,41 @@ const Ln = /* @__PURE__ */ w({
497
496
  type: String,
498
497
  default: L.VERTICAL
499
498
  },
500
- ...ve()
499
+ ...pe()
501
500
  },
502
501
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
503
502
  setup(t, { emit: e }) {
504
- const r = t, n = 16, { scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u } = P(r), c = de("isEmpty", I(!1)), d = ge({}), s = I(null), _ = I(null), m = I(null), f = v(
505
- () => r.type ? me[r.type] : r.position
506
- ), g = v(
503
+ const r = t, n = 16, { scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u } = B(r), c = _e("isEmpty", O(!1)), d = be({}), s = O(null), _ = O(null), m = O(null), f = v(
504
+ () => r.type ? ge[r.type] : r.position
505
+ ), h = v(
507
506
  () => r.type || (f.value === "left" ? "y" : "x")
508
507
  ), y = v(
509
- () => g.value === "x" && u.value === L.VERTICAL || g.value === "y" && u.value === L.HORIZONTAL
510
- ), { allOptions: p } = Z(
508
+ () => h.value === "x" && u.value === L.VERTICAL || h.value === "y" && u.value === L.HORIZONTAL
509
+ ), { allOptions: p } = K(
511
510
  i,
512
- g.value === "x" ? gn : yn
513
- ), { showTick: T } = pn(o, s, p.value.skip), A = v(() => {
514
- var $, h, O, N;
515
- return g.value === "y" && c.value ? `translate(0, ${(($ = a.value) == null ? void 0 : $.height) / 2})` : g.value === "x" && c.value ? `translate(-${((h = a.value) == null ? void 0 : h.width) / 2}, ${(O = a.value) == null ? void 0 : O.height})` : `translate(0, ${g.value === "x" ? (N = a.value) == null ? void 0 : N.height : 0})`;
516
- }), x = v(() => {
517
- if (oe(o.value))
511
+ h.value === "x" ? bn : kn
512
+ ), { showTick: x } = mn(o, s, p.value.skip), A = v(() => {
513
+ var I, $, g, w;
514
+ return h.value === "y" && c.value ? `translate(0, ${((I = a.value) == null ? void 0 : I.height) / 2})` : h.value === "x" && c.value ? `translate(-${(($ = a.value) == null ? void 0 : $.width) / 2}, ${(g = a.value) == null ? void 0 : g.height})` : `translate(0, ${h.value === "x" ? (w = a.value) == null ? void 0 : w.height : 0})`;
515
+ }), T = v(() => {
516
+ if (U(o.value))
518
517
  return o.value.labels || o.value.domain();
519
- const { tickCount: $ } = p.value, [h, O] = o.value.domain();
520
- return Vt(h, O, $);
521
- }), b = v(() => {
522
- const { tickFormat: $ } = p.value;
523
- return he($);
518
+ const { tickCount: I } = p.value, [$, g] = o.value.domain();
519
+ return Mt($, g, I);
520
+ }), k = v(() => {
521
+ const { tickFormat: I } = p.value;
522
+ return ye(I);
524
523
  }), C = v(
525
524
  () => p.value.withHover && y.value && l.value > -1
526
- ), D = v(
527
- () => p.value.tickPadding + _e || n
528
- ), R = v(() => g.value === "x" ? (
525
+ ), R = v(
526
+ () => p.value.tickPadding + fe || n
527
+ ), P = v(() => h.value === "x" ? (
529
528
  // If x axis, get the tick height
530
529
  Math.max(
531
530
  ...(s.value || []).map(
532
- ($) => {
533
- var h, O;
534
- return ((O = (h = $.ref).getBBox) == null ? void 0 : O.call(h).height) + D.value;
531
+ (I) => {
532
+ var $, g;
533
+ return ((g = ($ = I.ref).getBBox) == null ? void 0 : g.call($).height) + R.value;
535
534
  }
536
535
  )
537
536
  )
@@ -539,51 +538,51 @@ const Ln = /* @__PURE__ */ w({
539
538
  // If y axis, get the tick width
540
539
  Math.max(
541
540
  ...(s.value || []).map(
542
- ($) => {
543
- var h, O;
544
- return ((O = (h = $.ref).getBBox) == null ? void 0 : O.call(h).width) + D.value;
541
+ (I) => {
542
+ var $, g;
543
+ return ((g = ($ = I.ref).getBBox) == null ? void 0 : g.call($).width) + R.value;
545
544
  }
546
545
  )
547
546
  )
548
547
  ));
549
- function B($) {
550
- const { showTicks: h } = p.value;
551
- return h === !1 ? "" : b.value($);
548
+ function F(I) {
549
+ const { showTicks: $ } = p.value;
550
+ return $ === !1 ? "" : k.value(I);
552
551
  }
553
- function Q($, h, O) {
554
- e("mouseenter", { index: y.value ? $ : null, value: h, event: O });
552
+ function te(I, $, g) {
553
+ e("mouseenter", { index: y.value ? I : null, value: $, event: g });
555
554
  }
556
- function G($, h, O) {
557
- e("click", { index: $, value: h, event: O });
555
+ function G(I, $, g) {
556
+ e("click", { index: I, value: $, event: g });
558
557
  }
559
- function M($) {
560
- var h;
558
+ function z(I) {
559
+ var $;
561
560
  if (!(!s.value || !s.value.length))
562
- return (h = s.value[$]) == null ? void 0 : h.ref;
563
- }
564
- function q() {
565
- m.value = x.value.map(
566
- ($, h) => ({
567
- value: B($),
568
- group: d.getTickGroupAttributes($, h),
569
- ghost: d.getTickGhostAttributes(M(h)),
561
+ return ($ = s.value[I]) == null ? void 0 : $.ref;
562
+ }
563
+ function ne() {
564
+ m.value = T.value.map(
565
+ (I, $) => ({
566
+ value: F(I),
567
+ group: d.getTickGroupAttributes(I, $),
568
+ ghost: d.getTickGhostAttributes(z($)),
570
569
  label: d.getTickLabelAttributes(),
571
570
  gridline: d.getGridLinesAttributes()
572
571
  })
573
572
  );
574
573
  }
575
- function U() {
576
- const $ = o.value.step ? "bandScale" : "linearScale", h = An[`${g.value}-${Ee[$]}`];
577
- Object.entries(h(o, a, p) || []).forEach(
578
- ([O, N]) => {
579
- d[O] = N;
574
+ function Q() {
575
+ const I = o.value.step ? "bandScale" : "linearScale", $ = On[`${h.value}-${Ne[I]}`];
576
+ Object.entries($(o, a, p) || []).forEach(
577
+ ([g, w]) => {
578
+ d[g] = w;
580
579
  }
581
580
  );
582
581
  }
583
- return H(o, U, { flush: "sync", immediate: !0 }), H(o, q, { immediate: !0 }), H(s, q), H(R, ($) => e("lume__internal--axis-size", $)), J(() => ye(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ee, POSITIONS: we, TYPES: me, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: d, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: g, shouldHover: y, allOptions: p, showTick: T, axisTransform: A, ticks: x, tickFormatter: b, isHovering: C, axisLabelOffset: D, axisSize: R, formatTick: B, handleTickMouseenter: Q, handleTickClick: G, getTextNode: M, setTicks: q, init: U, LumeTick: qt };
582
+ return H(o, Q, { flush: "sync", immediate: !0 }), H(o, ne, { immediate: !0 }), H(s, ne), H(P, (I) => e("lume__internal--axis-size", I)), ee(() => ke(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ne, POSITIONS: He, TYPES: ge, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: d, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: h, shouldHover: y, allOptions: p, showTick: x, axisTransform: A, ticks: T, tickFormatter: k, isHovering: C, axisLabelOffset: R, axisSize: P, formatTick: F, handleTickMouseenter: te, handleTickClick: G, getTextNode: z, setTicks: ne, init: Q, LumeTick: tn };
584
583
  }
585
584
  });
586
- var On = function() {
585
+ var $n = function() {
587
586
  var e = this, r = e._self._c, n = e._self._setupProxy;
588
587
  return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(o) {
589
588
  return n.emit("mouseleave", o);
@@ -600,18 +599,18 @@ var On = function() {
600
599
  o
601
600
  );
602
601
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
603
- }, $n = [], In = /* @__PURE__ */ E(
604
- Ln,
605
- On,
602
+ }, En = [], wn = /* @__PURE__ */ E(
603
+ In,
606
604
  $n,
605
+ En,
607
606
  !1,
608
607
  null,
609
608
  null,
610
609
  null,
611
610
  null
612
611
  );
613
- const En = In.exports;
614
- function wn(t, e, r, n) {
612
+ const Nn = wn.exports;
613
+ function Hn(t, e, r, n) {
615
614
  const o = v(() => r.value > 0 && r.value < 1), a = v(
616
615
  () => n.value > 0 && n.value < 1
617
616
  ), l = v(
@@ -623,13 +622,13 @@ function wn(t, e, r, n) {
623
622
  );
624
623
  return { computedX: l, computedY: i, shouldHaveMinWidth: o, shouldHaveMinHeight: a };
625
624
  }
626
- function Nn(t, e, r, n) {
627
- const o = I(0), a = I(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
628
- return J(() => {
625
+ function Cn(t, e, r, n) {
626
+ const o = O(0), a = O(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
627
+ return ee(() => {
629
628
  o.value = r.value, a.value = n.value;
630
629
  }), H(r, (i) => o.value = i), H(n, (i) => a.value = i), { computedWidth: o, computedHeight: a, transformOrigin: l };
631
630
  }
632
- const Cn = /* @__PURE__ */ w({
631
+ const Dn = /* @__PURE__ */ N({
633
632
  __name: "lume-bar",
634
633
  props: {
635
634
  x: {
@@ -667,13 +666,13 @@ const Cn = /* @__PURE__ */ w({
667
666
  },
668
667
  emits: ["click", "mouseover", "mouseleave"],
669
668
  setup(t, { emit: e }) {
670
- const r = t, { x: n, y: o, width: a, height: l, transition: i, classList: u } = P(r), c = I(null), d = v(
669
+ const r = t, { x: n, y: o, width: a, height: l, transition: i, classList: u } = B(r), c = O(null), d = v(
671
670
  () => typeof u.value == "string" ? [u.value] : u.value
672
- ), s = v(() => i.value === "width"), _ = v(() => i.value === "height"), m = Nn(n, o, a, l), { computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = wn(n, o, a, l), T = v(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = v(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), x = s.value || _.value ? m.transformOrigin : null;
673
- return J(() => ye(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: o, width: a, height: l, transition: i, classList: u, root: c, computedClasses: d, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: T, computedHeight: A, transformOrigin: x };
671
+ ), s = v(() => i.value === "width"), _ = v(() => i.value === "height"), m = Cn(n, o, a, l), { computedX: f, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = Hn(n, o, a, l), x = v(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = v(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), T = s.value || _.value ? m.transformOrigin : null;
672
+ return ee(() => ke(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: o, width: a, height: l, transition: i, classList: u, root: c, computedClasses: d, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: f, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: x, computedHeight: A, transformOrigin: T };
674
673
  }
675
674
  });
676
- var Hn = function() {
675
+ var Rn = function() {
677
676
  var e = this, r = e._self._c, n = e._self._setupProxy;
678
677
  return r("rect", { ref: "root", staticClass: "lume-bar", class: [
679
678
  {
@@ -690,32 +689,32 @@ var Hn = function() {
690
689
  }, mouseleave: function(o) {
691
690
  return n.emit("mouseleave", o);
692
691
  } } });
693
- }, Dn = [], Rn = /* @__PURE__ */ E(
694
- Cn,
695
- Hn,
692
+ }, Pn = [], Sn = /* @__PURE__ */ E(
696
693
  Dn,
694
+ Rn,
695
+ Pn,
697
696
  !1,
698
697
  null,
699
698
  "8e8f732a",
700
699
  null,
701
700
  null
702
701
  );
703
- const Me = Rn.exports;
704
- function Pn() {
705
- const t = I(), e = ge({
702
+ const We = Sn.exports;
703
+ function Bn() {
704
+ const t = O(), e = be({
706
705
  dimensions: {}
707
706
  }), r = new ResizeObserver((n) => {
708
707
  n.forEach((o) => {
709
708
  e.dimensions = o.contentRect;
710
709
  });
711
710
  });
712
- return J(() => {
711
+ return ee(() => {
713
712
  r.observe(t.value);
714
- }), pt(() => {
713
+ }), mt(() => {
715
714
  r.unobserve(t.value);
716
715
  }), { resizeState: e, resizeRef: t };
717
716
  }
718
- const Sn = /* @__PURE__ */ w({
717
+ const Fn = /* @__PURE__ */ N({
719
718
  __name: "lume-chart-container",
720
719
  props: {
721
720
  margins: {
@@ -737,10 +736,10 @@ const Sn = /* @__PURE__ */ w({
737
736
  },
738
737
  emits: ["click", "mouseenter", "mouseleave", "resize"],
739
738
  setup(t, { emit: e }) {
740
- const r = t, { margins: n, containerSize: o } = P(r), a = I(null), { resizeRef: l, resizeState: i } = Pn(), u = v(
739
+ const r = t, { margins: n, containerSize: o } = B(r), a = O(null), { resizeRef: l, resizeState: i } = Bn(), u = v(
741
740
  () => o.value.height + n.value.top + n.value.bottom
742
741
  );
743
- return ft(() => {
742
+ return ht(() => {
744
743
  if (!a.value)
745
744
  return;
746
745
  const { width: c } = i.dimensions, { height: d } = a.value.getBoundingClientRect();
@@ -756,7 +755,7 @@ const Sn = /* @__PURE__ */ w({
756
755
  }), { __sfc: !0, props: r, emit: e, margins: n, containerSize: o, root: a, resizeRef: l, resizeState: i, svgHeight: u };
757
756
  }
758
757
  });
759
- var Bn = function() {
758
+ var Gn = function() {
760
759
  var e = this, r = e._self._c, n = e._self._setupProxy;
761
760
  return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
762
761
  "lume-chart-container--minimum": !e.noMinSize
@@ -769,32 +768,32 @@ var Bn = function() {
769
768
  }, mouseleave: function(o) {
770
769
  return n.emit("mouseleave", o);
771
770
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
772
- }, Fn = [], Gn = /* @__PURE__ */ E(
773
- Sn,
774
- Bn,
771
+ }, jn = [], Vn = /* @__PURE__ */ E(
775
772
  Fn,
773
+ Gn,
774
+ jn,
776
775
  !1,
777
776
  null,
778
- "36870bc4",
777
+ "2c7d0302",
779
778
  null,
780
779
  null
781
780
  );
782
- const Vn = Gn.exports, jn = /* @__PURE__ */ w({
781
+ const Mn = Vn.exports, zn = /* @__PURE__ */ N({
783
782
  __name: "lume-chart-legend",
784
783
  props: {
785
784
  data: {
786
785
  type: Array,
787
- validator: tn,
786
+ validator: rn,
788
787
  required: !0
789
788
  }
790
789
  },
791
790
  emits: ["click", "mouseenter", "mouseleave"],
792
791
  setup(t, { emit: e }) {
793
- const r = de("isEmpty");
792
+ const r = _e("isEmpty");
794
793
  return { __sfc: !0, emit: e, isEmpty: r };
795
794
  }
796
795
  });
797
- var Mn = function() {
796
+ var Wn = function() {
798
797
  var e = this, r = e._self._c, n = e._self._setupProxy;
799
798
  return n.isEmpty ? e._e() : r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(o) {
800
799
  return n.emit("mouseleave");
@@ -805,47 +804,47 @@ var Mn = function() {
805
804
  return n.emit("mouseenter", { index: a, dataset: o, event: l });
806
805
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${o.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(o.label || a) + " ")]);
807
806
  }), 0);
808
- }, zn = [], Wn = /* @__PURE__ */ E(
809
- jn,
810
- Mn,
807
+ }, Zn = [], Xn = /* @__PURE__ */ E(
811
808
  zn,
809
+ Wn,
810
+ Zn,
812
811
  !1,
813
812
  null,
814
813
  "4710298b",
815
814
  null,
816
815
  null
817
816
  );
818
- const Zn = Wn.exports;
819
- const Xn = {};
820
- var Un = function() {
817
+ const Un = Xn.exports;
818
+ const Yn = {};
819
+ var Kn = function() {
821
820
  var e = this, r = e._self._c;
822
821
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
823
- }, Yn = [], Kn = /* @__PURE__ */ E(
824
- Xn,
825
- Un,
822
+ }, Jn = [], Qn = /* @__PURE__ */ E(
826
823
  Yn,
824
+ Kn,
825
+ Jn,
827
826
  !1,
828
827
  null,
829
828
  "8af3fac6",
830
829
  null,
831
830
  null
832
831
  );
833
- const Jn = Kn.exports;
834
- const Qn = {};
835
- var qn = function() {
832
+ const qn = Qn.exports;
833
+ const er = {};
834
+ var tr = function() {
836
835
  var e = this, r = e._self._c;
837
836
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
838
- }, er = [], tr = /* @__PURE__ */ E(
839
- Qn,
840
- qn,
837
+ }, nr = [], rr = /* @__PURE__ */ E(
841
838
  er,
839
+ tr,
840
+ nr,
842
841
  !1,
843
842
  null,
844
843
  "4ed7ec1b",
845
844
  null,
846
845
  null
847
846
  );
848
- const nr = tr.exports, rr = /* @__PURE__ */ w({
847
+ const or = rr.exports, ar = /* @__PURE__ */ N({
849
848
  __name: "lume-tooltip-item",
850
849
  props: {
851
850
  color: {
@@ -857,20 +856,20 @@ const nr = tr.exports, rr = /* @__PURE__ */ w({
857
856
  return { __sfc: !0 };
858
857
  }
859
858
  });
860
- var or = function() {
859
+ var lr = function() {
861
860
  var e = this, r = e._self._c;
862
861
  return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
863
- }, ar = [], lr = /* @__PURE__ */ E(
864
- rr,
865
- or,
862
+ }, ur = [], ir = /* @__PURE__ */ E(
866
863
  ar,
864
+ lr,
865
+ ur,
867
866
  !1,
868
867
  null,
869
868
  "4f995c3c",
870
869
  null,
871
870
  null
872
871
  );
873
- const ur = lr.exports, ir = /* @__PURE__ */ w({
872
+ const sr = ir.exports, cr = /* @__PURE__ */ N({
874
873
  __name: "lume-tooltip",
875
874
  props: {
876
875
  targetElement: {
@@ -884,7 +883,7 @@ const ur = lr.exports, ir = /* @__PURE__ */ w({
884
883
  position: {
885
884
  type: String,
886
885
  default: "auto",
887
- validator: (t) => hn.includes(t)
886
+ validator: (t) => yn.includes(t)
888
887
  },
889
888
  fixedPositioning: {
890
889
  type: Boolean,
@@ -902,11 +901,11 @@ const ur = lr.exports, ir = /* @__PURE__ */ w({
902
901
  type: String,
903
902
  default: null
904
903
  },
905
- ...ve()
904
+ ...pe()
906
905
  },
907
906
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
908
907
  setup(t, { emit: e }) {
909
- const r = t, n = I(null), { items: o, options: a } = P(r), l = V(), i = I(null), { allOptions: u } = Z(a), c = v(
908
+ const r = t, n = O(null), { items: o, options: a } = B(r), l = V(), i = O(null), { allOptions: u } = K(a), c = v(
910
909
  () => u.value.fixedPositioning ?? r.fixedPositioning
911
910
  ), d = v(
912
911
  () => c.value ? "fixed" : "absolute"
@@ -925,38 +924,38 @@ const ur = lr.exports, ir = /* @__PURE__ */ w({
925
924
  ...r.modifiers || []
926
925
  ]), _ = v(
927
926
  () => u.value.showTitle !== !1 && r.title != null
928
- ), m = v(() => he(u.value.valueFormat)), f = v(() => he(u.value.titleFormat)), g = v(
927
+ ), m = v(() => ye(u.value.valueFormat)), f = v(() => ye(u.value.titleFormat)), h = v(
929
928
  () => {
930
- var x;
931
- return ((x = o.value) == null ? void 0 : x.find((b) => b.isSummary)) || {
929
+ var T;
930
+ return ((T = o.value) == null ? void 0 : T.find((k) => k.isSummary)) || {
932
931
  label: u.value.summary ?? r.summary
933
932
  };
934
933
  }
935
- ), y = v(() => l.summary || g.value.label);
934
+ ), y = v(() => l.summary || h.value.label);
936
935
  function p() {
937
- r.targetElement && n.value && (i.value = Wt(r.targetElement, n.value, {
936
+ r.targetElement && n.value && (i.value = Xt(r.targetElement, n.value, {
938
937
  placement: r.position,
939
938
  strategy: d.value,
940
939
  modifiers: s.value
941
940
  }), e("opened", r.targetElement));
942
941
  }
943
- function T() {
942
+ function x() {
944
943
  i.value && (i.value.destroy(), e("closed"));
945
944
  }
946
945
  function A() {
947
946
  i.value && (u.value.withAnimation !== !1 && n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
948
947
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
949
- }() : T());
948
+ }() : x());
950
949
  }
951
950
  return H(
952
951
  () => r.targetElement,
953
- (x, b) => {
954
- !b && x ? p() : A();
952
+ (T, k) => {
953
+ !k && T ? p() : A();
955
954
  }
956
- ), J(p), pt(T), { __sfc: !0, props: r, emit: e, root: n, items: o, options: a, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: d, allModifiers: s, showTitle: _, formatValue: m, formatTitle: f, summaryItem: g, hasSummary: y, initPopper: p, destroyPopper: T, updatePopper: A, LumeTooltipTitle: Jn, LumeTooltipSummary: nr, LumeTooltipItem: ur };
955
+ ), ee(p), mt(x), { __sfc: !0, props: r, emit: e, root: n, items: o, options: a, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: d, allModifiers: s, showTitle: _, formatValue: m, formatTitle: f, summaryItem: h, hasSummary: y, initPopper: p, destroyPopper: x, updatePopper: A, LumeTooltipTitle: qn, LumeTooltipSummary: or, LumeTooltipItem: sr };
957
956
  }
958
957
  });
959
- var sr = function() {
958
+ var dr = function() {
960
959
  var e = this, r = e._self._c, n = e._self._setupProxy;
961
960
  return r("div", { directives: [{ name: "show", rawName: "v-show", value: e.targetElement, expression: "targetElement" }], ref: "root", staticClass: "lume-tooltip lume-typography--caption", class: {
962
961
  "lume-tooltip--pointer-events": n.options.withPointerEvents
@@ -981,66 +980,66 @@ var sr = function() {
981
980
  });
982
981
  })], 2)];
983
982
  })], 2);
984
- }, cr = [], dr = /* @__PURE__ */ E(
985
- ir,
986
- sr,
983
+ }, vr = [], _r = /* @__PURE__ */ E(
987
984
  cr,
985
+ dr,
986
+ vr,
988
987
  !1,
989
988
  null,
990
989
  "8ec11304",
991
990
  null,
992
991
  null
993
992
  );
994
- const vr = dr.exports;
995
- var te = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(te || {});
996
- const _r = te.Categorical, pe = j.Skyblue, pr = Ge.SkyTeal;
997
- function fr(t) {
998
- return t === te.Divergent ? pr : pe;
999
- }
1000
- function mr(t) {
1001
- return Object.values(je).includes(t);
1002
- }
1003
- function Qe(t, e) {
1004
- return e === te.Divergent ? Object.values(Ge).includes(t) : Object.values({
1005
- ...j,
1006
- ...yt,
1007
- ...Ve,
1008
- ...je
993
+ const pr = _r.exports;
994
+ var re = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(re || {});
995
+ const fr = re.Categorical, me = M.Skyblue, mr = Ve.SkyTeal;
996
+ function hr(t) {
997
+ return t === re.Divergent ? mr : me;
998
+ }
999
+ function gr(t) {
1000
+ return Object.values(ze).includes(t);
1001
+ }
1002
+ function qe(t, e) {
1003
+ return e === re.Divergent ? Object.values(Ve).includes(t) : Object.values({
1004
+ ...M,
1005
+ ...kt,
1006
+ ...Me,
1007
+ ...ze
1009
1008
  }).includes(t);
1010
1009
  }
1011
- function hr(t, e) {
1012
- const r = Object.values(j).indexOf(t);
1013
- return sn(Object.values(j), r > -1 ? r : 0)[e];
1010
+ function yr(t, e) {
1011
+ const r = Object.values(M).indexOf(t);
1012
+ return dn(Object.values(M), r > -1 ? r : 0)[e];
1014
1013
  }
1015
- function gr(t, e) {
1014
+ function br(t, e) {
1016
1015
  const r = 50 + e * 10;
1017
1016
  return `${t}-${r}`;
1018
1017
  }
1019
- function yr(t, e) {
1018
+ function kr(t, e) {
1020
1019
  const r = (e + 1) * 10;
1021
1020
  return `${t}-${r}`;
1022
1021
  }
1023
- function qe(t, e, r) {
1022
+ function et(t, e, r) {
1024
1023
  switch (e) {
1025
1024
  default:
1026
- case te.Categorical:
1027
- return mr(t) ? t : hr(t, r);
1028
- case te.Sequential:
1029
- return gr(t, r);
1030
- case te.Divergent:
1031
- return yr(t, r);
1025
+ case re.Categorical:
1026
+ return gr(t) ? t : yr(t, r);
1027
+ case re.Sequential:
1028
+ return br(t, r);
1029
+ case re.Divergent:
1030
+ return kr(t, r);
1032
1031
  }
1033
1032
  }
1034
- function kr(t, e, r = _r, n) {
1035
- return Qe(t, r) ? t : (n > 4 && (ne(K.ColorLoop), n = n % 5), Qe(e, r) ? qe(e, r, n) : qe(fr(r), r, n));
1036
- }
1037
- function br(t) {
1038
- return t.map((e) => nn(e) ? e : { value: e });
1033
+ function xr(t, e, r = fr, n) {
1034
+ return qe(t, r) ? t : (n > 4 && (q(Y.ColorLoop), n = n % 5), qe(e, r) ? et(e, r, n) : et(hr(r), r, n));
1039
1035
  }
1040
1036
  function Tr(t) {
1037
+ return t.map((e) => on(e) ? e : { value: e });
1038
+ }
1039
+ function Ar(t) {
1041
1040
  return t.__internal === !0;
1042
1041
  }
1043
- const ze = (t = null) => ({
1042
+ const Ze = (t = null) => ({
1044
1043
  data: {
1045
1044
  type: Array,
1046
1045
  required: !0,
@@ -1052,24 +1051,24 @@ const ze = (t = null) => ({
1052
1051
  },
1053
1052
  color: {
1054
1053
  type: String,
1055
- default: j.Skyblue
1054
+ default: M.Skyblue
1056
1055
  },
1057
1056
  title: {
1058
1057
  type: String,
1059
1058
  default: null
1060
1059
  }
1061
1060
  });
1062
- function We(t, e, r, n, o) {
1063
- const a = ge({
1061
+ function Xe(t, e, r, n, o) {
1062
+ const a = be({
1064
1063
  width: 0,
1065
1064
  height: 0
1066
- }), l = dn(12), i = v(() => {
1065
+ }), l = _n(12), i = v(() => {
1067
1066
  var d;
1068
- return t.value.length > 5 && ne(K.DatasetLength), (d = t.value) == null ? void 0 : d.map(
1067
+ return t.value.length > 5 && q(Y.DatasetLength), (d = t.value) == null ? void 0 : d.map(
1069
1068
  (s, _) => {
1070
- if (Tr(s))
1069
+ if (Ar(s))
1071
1070
  return s;
1072
- const m = br(s.values), f = kr(
1071
+ const m = Tr(s.values), f = xr(
1073
1072
  s.color,
1074
1073
  r == null ? void 0 : r.value,
1075
1074
  n == null ? void 0 : n.value.colorPalette,
@@ -1083,9 +1082,9 @@ function We(t, e, r, n, o) {
1083
1082
  };
1084
1083
  }
1085
1084
  );
1086
- }), u = v(() => Array.isArray(e.value) ? e.value : Ie(t.value).map((d, s) => s));
1085
+ }), u = v(() => Array.isArray(e.value) ? e.value : we(t.value).map((d, s) => s));
1087
1086
  function c(d) {
1088
- const s = (o == null ? void 0 : o.value) === L.HORIZONTAL && Ie(t).length * (((n == null ? void 0 : n.value.barHeight) || Je) * 2) + ((n == null ? void 0 : n.value.barHeight) || Je) || d.height;
1087
+ const s = (o == null ? void 0 : o.value) === L.HORIZONTAL && we(t).length * (((n == null ? void 0 : n.value.barHeight) || Qe) * 2) + ((n == null ? void 0 : n.value.barHeight) || Qe) || d.height;
1089
1088
  a.width = d.width, a.height = s;
1090
1089
  }
1091
1090
  return {
@@ -1096,7 +1095,7 @@ function We(t, e, r, n, o) {
1096
1095
  updateSize: c
1097
1096
  };
1098
1097
  }
1099
- const xr = () => ({
1098
+ const Lr = () => ({
1100
1099
  xScale: {
1101
1100
  type: Function,
1102
1101
  default: null
@@ -1106,69 +1105,69 @@ const xr = () => ({
1106
1105
  default: null
1107
1106
  }
1108
1107
  });
1109
- function Ar(t, e, r, n, o) {
1110
- const a = I(null), l = I(null);
1108
+ function Or(t, e, r, n, o) {
1109
+ const a = O(null), l = O(null);
1111
1110
  function i() {
1112
1111
  const { width: u, height: c } = r;
1113
- !u && !c || !e.value || !t.value || (n.value === L.HORIZONTAL ? (a.value = tt(
1112
+ !u && !c || !e.value || !t.value || (n.value === L.HORIZONTAL ? (a.value = nt(
1114
1113
  t.value,
1115
1114
  u,
1116
1115
  n.value,
1117
1116
  o.value.startOnZero
1118
- ), l.value = et(
1117
+ ), l.value = tt(
1119
1118
  e.value,
1120
1119
  c,
1121
1120
  n.value,
1122
1121
  o.value
1123
- )) : (a.value = et(
1122
+ )) : (a.value = tt(
1124
1123
  e.value,
1125
1124
  u,
1126
1125
  n.value,
1127
1126
  o.value
1128
- ), l.value = tt(
1127
+ ), l.value = nt(
1129
1128
  t.value,
1130
1129
  c,
1131
1130
  n.value,
1132
1131
  o.value.startOnZero
1133
1132
  )));
1134
1133
  }
1135
- return ft(i), { xScale: a, yScale: l };
1134
+ return ht(i), { xScale: a, yScale: l };
1136
1135
  }
1137
- function et(t, e, r, n) {
1138
- const o = [0, e], { padding: a, paddingInner: l, paddingOuter: i } = n, u = a ?? (r === L.HORIZONTAL ? Tt : bt);
1136
+ function tt(t, e, r, n) {
1137
+ const o = [0, e], { padding: a, paddingInner: l, paddingOuter: i } = n, u = a ?? (r === L.HORIZONTAL ? At : Tt);
1139
1138
  return Object.assign(
1140
- se().range(o).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, d) => d)),
1139
+ de().range(o).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, d) => d)),
1141
1140
  { labels: t }
1142
1141
  );
1143
1142
  }
1144
- function tt(t, e, r, n) {
1145
- const o = ht(t).filter((d) => d != null), a = [0, e];
1143
+ function nt(t, e, r, n) {
1144
+ const o = yt(t).filter((d) => d != null), a = [0, e];
1146
1145
  if (o.length === 0)
1147
- return ce().range(a).domain([0, 0]).nice();
1146
+ return ve().range(a).domain([0, 0]).nice();
1148
1147
  const l = Math.min(...o), i = n && l > 0 ? 0 : l, u = Math.max(...o), c = r === L.HORIZONTAL ? [i, u] : [u, i];
1149
- return ce().range(a).domain(c).nice();
1148
+ return ve().range(a).domain(c).nice();
1150
1149
  }
1151
- function nt(t) {
1150
+ function rt(t) {
1152
1151
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
1153
1152
  }
1154
- function Ne(t, e) {
1155
- return oe(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1153
+ function Ce(t, e) {
1154
+ return U(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1156
1155
  }
1157
- function rt(t, e, {
1156
+ function ot(t, e, {
1158
1157
  padding: r,
1159
1158
  paddingInner: n,
1160
1159
  paddingOuter: o
1161
1160
  } = {}) {
1162
- const a = r ?? (e === L.HORIZONTAL ? Tt : bt);
1161
+ const a = r ?? (e === L.HORIZONTAL ? At : Tt);
1163
1162
  return t.copy().paddingInner(n ?? a).paddingOuter(o ?? a);
1164
1163
  }
1165
- function Lt(t) {
1164
+ function It(t) {
1166
1165
  return Object.values(L).includes(t);
1167
1166
  }
1168
1167
  const ue = (t, e = !0) => ({
1169
- ...ze(t),
1170
- ...xr(),
1171
- ...ve(),
1168
+ ...Ze(t),
1169
+ ...Lr(),
1170
+ ...pe(),
1172
1171
  classList: {
1173
1172
  type: [String, Array],
1174
1173
  default: () => []
@@ -1181,17 +1180,17 @@ const ue = (t, e = !0) => ({
1181
1180
  orientation: {
1182
1181
  type: String,
1183
1182
  default: L.VERTICAL,
1184
- validator: Lt
1183
+ validator: It
1185
1184
  }
1186
1185
  } : {}
1187
- }), Lr = (t) => ({
1188
- ...ze(t),
1189
- ...ve(),
1186
+ }), Ir = (t) => ({
1187
+ ...Ze(t),
1188
+ ...pe(),
1190
1189
  hoveredElement: {
1191
1190
  type: [Number, String],
1192
1191
  default: null
1193
1192
  }
1194
- }), ke = () => ({
1193
+ }), xe = () => ({
1195
1194
  data: {
1196
1195
  type: Array,
1197
1196
  required: !0
@@ -1207,7 +1206,7 @@ const ue = (t, e = !0) => ({
1207
1206
  orientation: {
1208
1207
  type: String,
1209
1208
  default: L.VERTICAL,
1210
- validator: Lt
1209
+ validator: It
1211
1210
  },
1212
1211
  xScale: {
1213
1212
  type: Function,
@@ -1233,10 +1232,10 @@ const ue = (t, e = !0) => ({
1233
1232
  type: [String, Array],
1234
1233
  default: () => []
1235
1234
  }
1236
- }), Or = /* @__PURE__ */ w({
1235
+ }), $r = /* @__PURE__ */ N({
1237
1236
  __name: "lume-overlay-group",
1238
1237
  props: {
1239
- ...ke(),
1238
+ ...xe(),
1240
1239
  orientation: {
1241
1240
  type: String,
1242
1241
  default: L.VERTICAL
@@ -1244,24 +1243,24 @@ const ue = (t, e = !0) => ({
1244
1243
  },
1245
1244
  emits: ["click", "lume__internal--hover", "mouseover"],
1246
1245
  setup(t, { emit: e }) {
1247
- const r = t, { data: n, orientation: o, xScale: a, yScale: l } = P(r), i = v(() => Ie(n));
1246
+ const r = t, { data: n, orientation: o, xScale: a, yScale: l } = B(r), i = v(() => we(n));
1248
1247
  function u(c) {
1249
1248
  var y;
1250
- const d = o.value === L.HORIZONTAL ? l.value : a.value, s = d.domain(), _ = rn(d), m = ((y = d.paddingInner) == null ? void 0 : y.call(d)) ?? 0, f = _ * m, g = oe(d) ? d(s[c]) - f / 2 : d(c) - _ / 2;
1249
+ const d = o.value === L.HORIZONTAL ? l.value : a.value, s = d.domain(), _ = an(d), m = ((y = d.paddingInner) == null ? void 0 : y.call(d)) ?? 0, f = _ * m, h = U(d) ? d(s[c]) - f / 2 : d(c) - _ / 2;
1251
1250
  return o.value === L.HORIZONTAL ? {
1252
1251
  width: Math.max(...a.value.range()),
1253
1252
  height: _,
1254
- transform: `translate(0, ${g})`
1253
+ transform: `translate(0, ${h})`
1255
1254
  } : {
1256
1255
  width: _,
1257
1256
  height: Math.max(...l.value.range()),
1258
- transform: `translate(${g}, 0)`
1257
+ transform: `translate(${h}, 0)`
1259
1258
  };
1260
1259
  }
1261
- return { __sfc: !0, props: r, emit: e, data: n, orientation: o, xScale: a, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Me };
1260
+ return { __sfc: !0, props: r, emit: e, data: n, orientation: o, xScale: a, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: We };
1262
1261
  }
1263
1262
  });
1264
- var $r = function() {
1263
+ var Er = function() {
1265
1264
  var e = this, r = e._self._c, n = e._self._setupProxy;
1266
1265
  return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(o, a) {
1267
1266
  return r(n.LumeBar, e._b({ key: `overlay-${a}`, attrs: { "data-j-lume-overlay-group": a, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
@@ -1270,17 +1269,17 @@ var $r = function() {
1270
1269
  return n.emit("click", { index: a, event: l });
1271
1270
  } } }, "lume-bar", n.getOverlayBarAttributes(a), !1));
1272
1271
  }), 1);
1273
- }, Ir = [], Er = /* @__PURE__ */ E(
1274
- Or,
1272
+ }, wr = [], Nr = /* @__PURE__ */ E(
1275
1273
  $r,
1276
- Ir,
1274
+ Er,
1275
+ wr,
1277
1276
  !1,
1278
1277
  null,
1279
1278
  null,
1280
1279
  null,
1281
1280
  null
1282
1281
  );
1283
- const wr = Er.exports, Nr = [
1282
+ const Hr = Nr.exports, Cr = [
1284
1283
  "axis-click",
1285
1284
  "axis-mouseenter",
1286
1285
  "axis-mouseleave",
@@ -1307,7 +1306,7 @@ const wr = Er.exports, Nr = [
1307
1306
  "tooltip-moved",
1308
1307
  "tooltip-closed",
1309
1308
  "hovered-index-changed"
1310
- ], X = (t, e) => {
1309
+ ], J = (t, e) => {
1311
1310
  function r(a, ...l) {
1312
1311
  document.dispatchEvent(
1313
1312
  new CustomEvent(`${e}_${a}`, {
@@ -1321,14 +1320,14 @@ const wr = Er.exports, Nr = [
1321
1320
  (i) => l(...i.detail)
1322
1321
  );
1323
1322
  }
1324
- return { componentEventPropagator: Nr.reduce((a, l) => (a[l] = (i) => t(l, i), a), {}), emitInternalEvent: r, listenInternalEvent: n };
1323
+ return { componentEventPropagator: Cr.reduce((a, l) => (a[l] = (i) => t(l, i), a), {}), emitInternalEvent: r, listenInternalEvent: n };
1325
1324
  };
1326
- function Cr(t) {
1325
+ function Dr(t) {
1327
1326
  return { hasNegativeValues: v(
1328
- () => ht(t.value).some((r) => r < 0)
1327
+ () => yt(t.value).some((r) => r < 0)
1329
1328
  ) };
1330
1329
  }
1331
- function Hr(t, e, r, n) {
1330
+ function Rr(t, e, r, n) {
1332
1331
  const o = v(
1333
1332
  () => n.value === L.HORIZONTAL
1334
1333
  ), a = v(
@@ -1353,25 +1352,25 @@ function Hr(t, e, r, n) {
1353
1352
  transform: i.value
1354
1353
  })) };
1355
1354
  }
1356
- function Ot(t, e) {
1355
+ function $t(t, e) {
1357
1356
  const r = e - t.length;
1358
1357
  return r > 0 ? [...t, ...Array(r).fill({ value: null })] : t;
1359
1358
  }
1360
- function Dr(t, e) {
1361
- return t.reduce((r, n) => Ot(n.values, e).map((o, a) => r[a] ? o.value > r[a] ? o.value : r[a] : o.value ?? 0), []);
1359
+ function Pr(t, e) {
1360
+ return t.reduce((r, n) => $t(n.values, e).map((o, a) => r[a] ? o.value > r[a] ? o.value : r[a] : o.value ?? 0), []);
1362
1361
  }
1363
- function Rr(t, e) {
1364
- return t.reduce((r, n) => Ot(n.values, e).map(
1362
+ function Sr(t, e) {
1363
+ return t.reduce((r, n) => $t(n.values, e).map(
1365
1364
  (o, a) => {
1366
1365
  const l = o.value == null || o.value < 0 ? 0 : o.value;
1367
1366
  return r[a] ? r[a] + l : l;
1368
1367
  }
1369
1368
  ), []);
1370
1369
  }
1371
- const ot = {
1372
- "stacked-bar": Rr
1370
+ const at = {
1371
+ "stacked-bar": Sr
1373
1372
  };
1374
- function $t(t, e, r, n, o, a, l, i) {
1373
+ function Et(t, e, r, n, o, a, l, i) {
1375
1374
  const u = v(
1376
1375
  () => {
1377
1376
  var d;
@@ -1380,13 +1379,13 @@ function $t(t, e, r, n, o, a, l, i) {
1380
1379
  );
1381
1380
  function c(d) {
1382
1381
  var m;
1383
- const s = ((m = i == null ? void 0 : i.value) == null ? void 0 : m.length) ?? 0, _ = l != null && l.value && ot[l.value] ? ot[l.value](
1382
+ const s = ((m = i == null ? void 0 : i.value) == null ? void 0 : m.length) ?? 0, _ = l != null && l.value && at[l.value] ? at[l.value](
1384
1383
  d,
1385
1384
  s
1386
- ) : Dr(d, s);
1387
- t.value = _.map((f, g) => ({
1388
- cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(f) : Ne(r.value, g),
1389
- cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Ne(n.value, g) : n.value(f)
1385
+ ) : Pr(d, s);
1386
+ t.value = _.map((f, h) => ({
1387
+ cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(f) : Ce(r.value, h),
1388
+ cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Ce(n.value, h) : n.value(f)
1390
1389
  }));
1391
1390
  }
1392
1391
  return H(
@@ -1397,8 +1396,8 @@ function $t(t, e, r, n, o, a, l, i) {
1397
1396
  { immediate: !0 }
1398
1397
  ), { shouldGenerateTooltipAnchors: u, updateTooltipAnchorAttributes: c };
1399
1398
  }
1400
- function Pr() {
1401
- const t = ge({
1399
+ function Br() {
1400
+ const t = be({
1402
1401
  opened: !1,
1403
1402
  targetElement: null
1404
1403
  });
@@ -1408,45 +1407,45 @@ function Pr() {
1408
1407
  t.opened = !1, t.targetElement = null;
1409
1408
  } };
1410
1409
  }
1411
- function Sr(t) {
1410
+ function Fr(t) {
1412
1411
  return { getTooltipItems: v(
1413
1412
  () => (r) => t.value.map(({ color: n, label: o, values: a }) => {
1414
1413
  var l, i, u;
1415
1414
  return {
1416
1415
  color: ((l = a[r]) == null ? void 0 : l.color) || n,
1417
1416
  label: o,
1418
- value: ((i = a[r]) == null ? void 0 : i.label) ?? ((u = a[r]) == null ? void 0 : u.value) ?? kt
1417
+ value: ((i = a[r]) == null ? void 0 : i.label) ?? ((u = a[r]) == null ? void 0 : u.value) ?? xt
1419
1418
  };
1420
1419
  })
1421
1420
  ) };
1422
1421
  }
1423
- const Ce = 16, He = 8, De = 28, Re = 24, re = {
1422
+ const De = 16, Re = 8, Pe = 28, Se = 24, oe = {
1424
1423
  VERTICAL: {
1425
- top: Ce,
1426
- right: He,
1427
- bottom: De,
1428
- left: Re
1424
+ top: De,
1425
+ right: Re,
1426
+ bottom: Pe,
1427
+ left: Se
1429
1428
  },
1430
1429
  HORIZONTAL: {
1431
- top: Ce,
1432
- right: He,
1433
- bottom: De,
1434
- left: Re
1430
+ top: De,
1431
+ right: Re,
1432
+ bottom: Pe,
1433
+ left: Se
1435
1434
  }
1436
1435
  };
1437
- function Br(t) {
1438
- return !t || t === "auto" || t.top == null || t.top === "auto" ? Ce : t.top;
1436
+ function Gr(t) {
1437
+ return !t || t === "auto" || t.top == null || t.top === "auto" ? De : t.top;
1439
1438
  }
1440
- function Fr(t) {
1441
- return !t || t === "auto" || t.right == null || t.right === "auto" ? He : t.right;
1442
- }
1443
- function Gr(t, e) {
1444
- return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || De : t.bottom;
1439
+ function jr(t) {
1440
+ return !t || t === "auto" || t.right == null || t.right === "auto" ? Re : t.right;
1445
1441
  }
1446
1442
  function Vr(t, e) {
1447
- return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Re : t.left;
1443
+ return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Pe : t.bottom;
1444
+ }
1445
+ function Mr(t, e) {
1446
+ return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Se : t.left;
1448
1447
  }
1449
- const jr = /* @__PURE__ */ w({
1448
+ const zr = /* @__PURE__ */ N({
1450
1449
  __name: "lume-chart",
1451
1450
  props: {
1452
1451
  ...ue(),
@@ -1456,124 +1455,126 @@ const jr = /* @__PURE__ */ w({
1456
1455
  }
1457
1456
  },
1458
1457
  setup(t, { emit: e }) {
1459
- const r = t, n = V(), { data: o, labels: a, color: l, options: i, orientation: u, chartType: c } = P(r), d = I(-1), s = I(null), _ = I(null), m = I([]), f = I(null), g = I(0), y = I(0), { allOptions: p } = Z(i), { internalData: T, computedLabels: A, containerSize: x, updateSize: b, chartID: C } = We(o, a, l, p, u), { listenInternalEvent: D } = X(e, C), { xScale: R, yScale: B } = Ar(
1460
- T,
1461
- A,
1458
+ const r = t, n = V(), { data: o, labels: a, color: l, options: i, orientation: u, chartType: c } = B(r), d = O(-1), s = O(null), _ = O(null), m = O([]), f = O(null), h = O(0), y = O(0), { allOptions: p } = K(i), { internalData: x, computedLabels: A, containerSize: T, updateSize: k, chartID: C } = Xe(o, a, l, p, u), { listenInternalEvent: R } = J(e, C), { xScale: P, yScale: F } = Or(
1462
1459
  x,
1460
+ A,
1461
+ T,
1463
1462
  u,
1464
1463
  p
1465
- ), Q = v(() => ({
1466
- top: Br(p.value.margins),
1467
- right: Fr(p.value.margins),
1468
- bottom: Gr(p.value.margins, g.value),
1469
- left: Vr(p.value.margins, y.value)
1464
+ ), te = v(() => ({
1465
+ top: Gr(p.value.margins),
1466
+ right: jr(p.value.margins),
1467
+ bottom: Vr(p.value.margins, h.value),
1468
+ left: Mr(p.value.margins, y.value)
1470
1469
  })), G = v(() => {
1471
- var k;
1472
- return r.xScale ? nt(r.xScale) ? r.xScale : (k = r.xScale) == null ? void 0 : k.call(r, T.value, a.value, x) : R.value;
1473
- }), M = v(() => {
1474
- var k;
1475
- return r.yScale ? nt(r.yScale) ? r.yScale : (k = r.yScale) == null ? void 0 : k.call(r, T.value, a.value, x) : B.value;
1476
- }), q = v(() => ({
1470
+ var b;
1471
+ return r.xScale ? rt(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, x.value, a.value, T) : P.value;
1472
+ }), z = v(() => {
1473
+ var b;
1474
+ return r.yScale ? rt(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, x.value, a.value, T) : F.value;
1475
+ }), ne = v(() => ({
1477
1476
  ...p.value.xAxisOptions,
1478
1477
  withHover: u.value === L.VERTICAL
1479
- })), U = v(() => ({
1478
+ })), Q = v(() => ({
1480
1479
  ...p.value.yAxisOptions,
1481
1480
  withHover: u.value === L.HORIZONTAL
1482
- })), $ = v(() => {
1483
- var k;
1484
- return (k = p.value.xAxisOptions) == null ? void 0 : k.title;
1485
- }), h = v(() => {
1486
- var k;
1487
- return (k = p.value.yAxisOptions) == null ? void 0 : k.title;
1488
- }), O = v(() => {
1489
- var k;
1490
- return ((k = p.value.xAxisOptions) == null ? void 0 : k.withTitle) !== !1 && $.value;
1491
- }), N = v(() => {
1492
- var k;
1493
- return ((k = p.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && h.value;
1494
- }), F = v(
1495
- () => o.value.every((k) => !k.values.length)
1496
- ), z = v(() => {
1497
- const k = [], { noBaseScales: S } = p.value;
1498
- return S || k.push(() => !!(G.value && M.value)), k.every((Y) => Y() === !0);
1499
- }), { hasNegativeValues: W } = Cr(T), { negativeBarAttributes: be } = Hr(
1500
- x,
1481
+ })), I = v(() => {
1482
+ var b;
1483
+ return (b = p.value.xAxisOptions) == null ? void 0 : b.title;
1484
+ }), $ = v(() => {
1485
+ var b;
1486
+ return (b = p.value.yAxisOptions) == null ? void 0 : b.title;
1487
+ }), g = v(() => {
1488
+ var b;
1489
+ return ((b = p.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && I.value;
1490
+ }), w = v(() => {
1491
+ var b;
1492
+ return ((b = p.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && $.value;
1493
+ }), D = v(
1494
+ () => o.value.every((b) => !b.values.length)
1495
+ ), W = v(() => {
1496
+ const b = [], { noBaseScales: S } = p.value;
1497
+ return S || b.push(() => !!(G.value && z.value)), b.every((j) => j() === !0);
1498
+ }), { hasNegativeValues: Z } = Dr(x), { negativeBarAttributes: X } = Rr(
1499
+ T,
1501
1500
  G,
1502
- M,
1501
+ z,
1503
1502
  u
1504
- ), { shouldGenerateTooltipAnchors: Xe } = $t(
1503
+ ), { shouldGenerateTooltipAnchors: Te } = Et(
1505
1504
  m,
1506
1505
  p,
1507
1506
  G,
1508
- M,
1507
+ z,
1509
1508
  u,
1510
- T,
1509
+ x,
1511
1510
  c,
1512
1511
  a
1513
- ), { tooltipConfig: ee, showTooltip: Ue, hideTooltip: Ye } = Pr(), { getTooltipItems: Ht } = Sr(T), Dt = v(
1514
- () => p.value.withTooltip !== !1 && ee.opened
1515
- ), Rt = v(
1512
+ ), { tooltipConfig: se, showTooltip: ce, hideTooltip: Ye } = Br(), { getTooltipItems: Rt } = Fr(x), Pt = v(
1513
+ () => p.value.withTooltip !== !1 && se.opened
1514
+ ), St = v(
1516
1515
  () => {
1517
- var k;
1518
- return ((k = p.value.tooltipOptions) == null ? void 0 : k.position) || "top";
1516
+ var b;
1517
+ return ((b = p.value.tooltipOptions) == null ? void 0 : b.position) || "top";
1519
1518
  }
1520
1519
  ), Ke = v(() => {
1521
1520
  var S;
1522
- const k = (S = p.value.tooltipOptions) == null ? void 0 : S.withPointerEvents;
1523
- return ee.opened && (!k || k && f.value === !1);
1521
+ const b = (S = p.value.tooltipOptions) == null ? void 0 : S.withPointerEvents;
1522
+ return se.opened && (!b || b && f.value === !1);
1524
1523
  });
1525
- function fe(k) {
1526
- var Y;
1527
- if (k === d.value)
1524
+ function he(b) {
1525
+ var j;
1526
+ if (b === d.value)
1528
1527
  return;
1529
1528
  const S = d.value;
1530
- if (p.value.withHover !== !1 && (d.value = k), p.value.withTooltip !== !1) {
1531
- const Ft = (Y = p.value.tooltipOptions) != null && Y.targetElement ? p.value.tooltipOptions.targetElement === "self" ? _.value.$el : p.value.tooltipOptions.targetElement : s.value[k];
1532
- Ue(Ft);
1529
+ if (p.value.withHover !== !1 && (d.value = b), p.value.withTooltip !== !1) {
1530
+ const jt = (j = p.value.tooltipOptions) != null && j.targetElement ? p.value.tooltipOptions.targetElement === "self" ? _.value.$el : p.value.tooltipOptions.targetElement : s.value[b];
1531
+ ce(jt);
1533
1532
  }
1534
- e("hovered-index-changed", { newIndex: k, oldIndex: S });
1533
+ e("hovered-index-changed", { newIndex: b, oldIndex: S });
1535
1534
  }
1536
- function Te() {
1535
+ function Ae() {
1537
1536
  Ye(), d.value = -1;
1538
1537
  }
1539
- function xe(k) {
1540
- if (k > o.value[0].values.length - 1) {
1541
- ne(K.InvalidHoveredIndex);
1538
+ function Le(b) {
1539
+ if (!o.value.some(
1540
+ ({ values: j }) => b <= j.length - 1
1541
+ )) {
1542
+ q(Y.InvalidHoveredIndex);
1542
1543
  return;
1543
1544
  }
1544
- fe(k);
1545
+ he(b);
1545
1546
  }
1546
- function Pt() {
1547
+ function Bt() {
1547
1548
  setTimeout(() => {
1548
- Ke.value && Te(), e("chart-mouseleave");
1549
+ Ke.value && Ae(), e("chart-mouseleave");
1549
1550
  }, 0);
1550
1551
  }
1551
- function St({ index: k, value: S, event: Y }) {
1552
- k !== null && fe(k), e("axis-mouseenter", { index: k, value: S, event: Y });
1552
+ function Ft({ index: b, value: S, event: j }) {
1553
+ b !== null && he(b), e("axis-mouseenter", { index: b, value: S, event: j });
1553
1554
  }
1554
- function Bt({ index: k, value: S, event: Y }) {
1555
- e("axis-click", { index: k, value: S, event: Y });
1555
+ function Gt({ index: b, value: S, event: j }) {
1556
+ e("axis-click", { index: b, value: S, event: j });
1556
1557
  }
1557
1558
  return H(
1558
1559
  o,
1559
- (k, S) => e("data-changed", { newValue: k, oldValue: S })
1560
+ (b, S) => e("data-changed", { newValue: b, oldValue: S })
1560
1561
  ), H(
1561
1562
  a,
1562
- (k, S) => e("labels-changed", { newValue: k, oldValue: S })
1563
- ), H(F, (k) => k && ne(K.Empty), { immediate: !0 }), H(() => r.hoveredIndex, xe), H(
1563
+ (b, S) => e("labels-changed", { newValue: b, oldValue: S })
1564
+ ), H(D, (b) => b && q(Y.Empty), { immediate: !0 }), H(() => r.hoveredIndex, Le), H(
1564
1565
  m,
1565
- (k) => {
1566
- k && r.hoveredIndex != null && d.value === -1 && xe(r.hoveredIndex);
1566
+ (b) => {
1567
+ b && r.hoveredIndex != null && d.value === -1 && Le(r.hoveredIndex);
1567
1568
  },
1568
1569
  { flush: "post" }
1569
- ), H(f, (k) => {
1570
- k === !1 && ee.opened && Te();
1571
- }), J(async () => {
1572
- e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), D("lume__internal--hover", fe);
1573
- }), Ae("chartID", C), Ae("isEmpty", F), Ae("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: o, labels: a, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: d, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: f, xAxisHeight: g, yAxisWidth: y, allOptions: p, internalData: T, computedLabels: A, containerSize: x, updateSize: b, chartID: C, listenInternalEvent: D, xScale: R, yScale: B, computedMargins: Q, computedXScale: G, computedYScale: M, computedXAxisOptions: q, computedYAxisOptions: U, xAxisTitle: $, yAxisTitle: h, showXAxisTitle: O, showYAxisTitle: N, isEmpty: F, isReady: z, hasNegativeValues: W, negativeBarAttributes: be, shouldGenerateTooltipAnchors: Xe, tooltipConfig: ee, showTooltip: Ue, hideTooltip: Ye, getTooltipItems: Ht, isTooltipOpened: Dt, tooltipPosition: Rt, shouldHideTooltip: Ke, handleInternalHover: fe, handleHideTooltip: Te, handleExternalHover: xe, handleMouseleave: Pt, handleAxisMouseenter: St, handleAxisClick: Bt, LumeAxis: En, LumeBar: Me, LumeChartContainer: Vn, LumeChartLegend: Zn, LumeTooltip: vr, LumeOverlayGroup: wr, TOOLTIP_ANCHOR_RADIUS: mn };
1570
+ ), H(f, (b) => {
1571
+ b === !1 && se.opened && Ae();
1572
+ }), ee(async () => {
1573
+ e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), R("lume__internal--hover", he);
1574
+ }), Oe("chartID", C), Oe("isEmpty", D), Oe("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: o, labels: a, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: d, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: f, xAxisHeight: h, yAxisWidth: y, allOptions: p, internalData: x, computedLabels: A, containerSize: T, updateSize: k, chartID: C, listenInternalEvent: R, xScale: P, yScale: F, computedMargins: te, computedXScale: G, computedYScale: z, computedXAxisOptions: ne, computedYAxisOptions: Q, xAxisTitle: I, yAxisTitle: $, showXAxisTitle: g, showYAxisTitle: w, isEmpty: D, isReady: W, hasNegativeValues: Z, negativeBarAttributes: X, shouldGenerateTooltipAnchors: Te, tooltipConfig: se, showTooltip: ce, hideTooltip: Ye, getTooltipItems: Rt, isTooltipOpened: Pt, tooltipPosition: St, shouldHideTooltip: Ke, handleInternalHover: he, handleHideTooltip: Ae, handleExternalHover: Le, handleMouseleave: Bt, handleAxisMouseenter: Ft, handleAxisClick: Gt, LumeAxis: Nn, LumeBar: We, LumeChartContainer: Mn, LumeChartLegend: Un, LumeTooltip: pr, LumeOverlayGroup: Hr, TOOLTIP_ANCHOR_RADIUS: gn };
1574
1575
  }
1575
1576
  });
1576
- var Mr = function() {
1577
+ var Wr = function() {
1577
1578
  var e = this, r = e._self._c, n = e._self._setupProxy;
1578
1579
  return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { id: `lume-chart_${n.chartID}`, margins: n.computedMargins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: n.updateSize, click: function(o) {
1579
1580
  return n.emit("chart-click", o);
@@ -1630,39 +1631,55 @@ var Mr = function() {
1630
1631
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(o, a) {
1631
1632
  return r("circle", e._b({ key: `anchor_${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", o, !1));
1632
1633
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1633
- }, zr = [], Wr = /* @__PURE__ */ E(
1634
- jr,
1635
- Mr,
1634
+ }, Zr = [], Xr = /* @__PURE__ */ E(
1636
1635
  zr,
1636
+ Wr,
1637
+ Zr,
1637
1638
  !1,
1638
1639
  null,
1639
- "42aac599",
1640
+ "2d7c3049",
1640
1641
  null,
1641
1642
  null
1642
1643
  );
1643
- const ie = Wr.exports, Zr = /* @__PURE__ */ w({
1644
+ const ie = Xr.exports, lt = 8, Ur = 8, Yr = 20, $e = 2, ut = 2, Kr = /* @__PURE__ */ N({
1644
1645
  __name: "lume-alluvial-node-label",
1645
1646
  props: {
1646
- bottom: { type: Boolean, default: !1 }
1647
+ bottom: { type: Boolean, default: !1 },
1648
+ left: { type: Boolean, default: !1 },
1649
+ maxWidth: { type: Number, default: 0 }
1647
1650
  },
1648
- setup(t) {
1649
- return { __sfc: !0 };
1651
+ emits: ["lume__internal--node-resize"],
1652
+ setup(t, { emit: e }) {
1653
+ const r = t, n = O(null), o = O(r.maxWidth), a = O(1);
1654
+ return H(
1655
+ [n, () => r.maxWidth],
1656
+ async ([l, i]) => {
1657
+ if (l && i) {
1658
+ o.value = i, await Je();
1659
+ const { width: u, height: c } = l.getBoundingClientRect();
1660
+ o.value = u + ut > i ? i : u + ut, a.value = Math.ceil(c);
1661
+ }
1662
+ },
1663
+ { immediate: !0 }
1664
+ ), H(o, async (l) => {
1665
+ l !== r.maxWidth && (await Je(), e("lume__internal--node-resize"));
1666
+ }), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: o, foreignObjectHeight: a };
1650
1667
  }
1651
1668
  });
1652
- var Xr = function() {
1653
- var e = this, r = e._self._c;
1654
- return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1655
- }, Ur = [], Yr = /* @__PURE__ */ E(
1656
- Zr,
1657
- Xr,
1658
- Ur,
1669
+ var Jr = function() {
1670
+ var e = this, r = e._self._c, n = e._self._setupProxy;
1671
+ return e.maxWidth ? r("foreignObject", { staticClass: "lume-alluvial-group__node-foreign", attrs: { y: e.bottom ? "0.1em" : -n.foreignObjectHeight + 1, x: e.left ? -n.foreignObjectWidth : 0, width: n.foreignObjectWidth, height: n.foreignObjectHeight } }, [r("div", { staticClass: "lume-alluvial-group__label-wrapper" }, [r("span", { ref: "text", staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2)])]) : r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1672
+ }, Qr = [], qr = /* @__PURE__ */ E(
1673
+ Kr,
1674
+ Jr,
1675
+ Qr,
1659
1676
  !1,
1660
1677
  null,
1661
- "d2a7cb8e",
1678
+ "7126dfdb",
1662
1679
  null,
1663
1680
  null
1664
1681
  );
1665
- const Kr = Yr.exports, Jr = /* @__PURE__ */ w({
1682
+ const eo = qr.exports, to = /* @__PURE__ */ N({
1666
1683
  __name: "lume-alluvial-node-value",
1667
1684
  props: {
1668
1685
  bottom: { type: Boolean, default: !0 }
@@ -1671,21 +1688,21 @@ const Kr = Yr.exports, Jr = /* @__PURE__ */ w({
1671
1688
  return { __sfc: !0 };
1672
1689
  }
1673
1690
  });
1674
- var Qr = function() {
1691
+ var no = function() {
1675
1692
  var e = this, r = e._self._c;
1676
- return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1677
- }, qr = [], eo = /* @__PURE__ */ E(
1678
- Jr,
1679
- Qr,
1680
- qr,
1693
+ return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { y: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1694
+ }, ro = [], oo = /* @__PURE__ */ E(
1695
+ to,
1696
+ no,
1697
+ ro,
1681
1698
  !1,
1682
1699
  null,
1683
- "002e2887",
1700
+ "b4fc758b",
1684
1701
  null,
1685
1702
  null
1686
1703
  );
1687
- const to = eo.exports;
1688
- function at(t, e) {
1704
+ const ao = oo.exports;
1705
+ function it(t, e) {
1689
1706
  return {
1690
1707
  x0: 0 + (e ? e.left : 0),
1691
1708
  y0: 0 + (e ? e.top : 0),
@@ -1693,32 +1710,32 @@ function at(t, e) {
1693
1710
  y1: t.height - (e ? e.bottom : 0)
1694
1711
  };
1695
1712
  }
1696
- function no(t) {
1697
- const e = I(at(t));
1713
+ function lo(t) {
1714
+ const e = O(it(t));
1698
1715
  function r(n) {
1699
- e.value = at(t, n);
1716
+ e.value = it(t, n);
1700
1717
  }
1701
1718
  return { extents: e, updateExtents: r };
1702
1719
  }
1703
- var It = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(It || {});
1704
- const ro = "[lume] ";
1705
- function oo(t, e, r = !0) {
1706
- r && mt() || console.error(ro + "Error: " + t, e);
1720
+ var wt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(wt || {});
1721
+ const uo = "[lume] ";
1722
+ function io(t, e, r = !0) {
1723
+ r && gt() || console.error(uo + "Error: " + t, e);
1707
1724
  }
1708
- const lt = 8, ao = 8, lo = 20, Oe = 2, uo = 200;
1725
+ const so = 200;
1709
1726
  function le(t) {
1710
1727
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1711
1728
  }
1712
- function io(t, e) {
1729
+ function co(t, e) {
1713
1730
  return e.nodes.find((r) => r.id === t);
1714
1731
  }
1715
- function so(t, e) {
1732
+ function vo(t, e) {
1716
1733
  return e.links.find((r) => r.id === t);
1717
1734
  }
1718
- function Et(t) {
1735
+ function Nt(t) {
1719
1736
  return !!(t.sourceLinks && t.targetLinks);
1720
1737
  }
1721
- function co(t, e) {
1738
+ function _o(t, e) {
1722
1739
  if (!e)
1723
1740
  return;
1724
1741
  const r = t.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), n = t.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), o = e.filter((l) => r.includes(l.dataset.id)).reduce(
@@ -1735,15 +1752,15 @@ function co(t, e) {
1735
1752
  bottom: 0
1736
1753
  };
1737
1754
  }
1738
- function vo(t) {
1755
+ function po(t) {
1739
1756
  return t.map((e) => {
1740
- const r = e.y1 - e.y0 < Oe;
1757
+ const r = e.y1 - e.y0 < $e;
1741
1758
  return {
1742
1759
  x: e.x0,
1743
- y: e.y0 - (r ? Oe / 2 : 0),
1760
+ y: e.y0 - (r ? $e / 2 : 0),
1744
1761
  // Negative offset to account for the min. height
1745
1762
  width: e.x1 - e.x0,
1746
- height: r ? Oe : e.y1 - e.y0,
1763
+ height: r ? $e : e.y1 - e.y0,
1747
1764
  textTransform: {
1748
1765
  x: e.depth > 0 ? e.x1 + lt : e.x0 - lt,
1749
1766
  y: (e.y1 + e.y0) / 2
@@ -1752,28 +1769,28 @@ function vo(t) {
1752
1769
  };
1753
1770
  });
1754
1771
  }
1755
- function _o(t) {
1772
+ function fo(t) {
1756
1773
  return [t.source.x1, t.y0];
1757
1774
  }
1758
- function po(t) {
1775
+ function mo(t) {
1759
1776
  return [t.target.x0, t.y1];
1760
1777
  }
1761
- function fo(t) {
1762
- return t.curveFunction ? jt(t.curveFunction).source(_o).target(po) : Zt();
1778
+ function ho(t) {
1779
+ return t.curveFunction ? zt(t.curveFunction).source(fo).target(mo) : Ut();
1763
1780
  }
1764
- function mo(t) {
1781
+ function go(t) {
1765
1782
  return t.map((e) => {
1766
1783
  var r;
1767
1784
  return {
1768
1785
  id: e.id,
1769
- color: e.color || ((r = e.source) == null ? void 0 : r.color) || pe,
1770
- d: fo(e)(e),
1786
+ color: e.color || ((r = e.source) == null ? void 0 : r.color) || me,
1787
+ d: ho(e)(e),
1771
1788
  strokeWidth: Math.max(1, e.width),
1772
1789
  link: e
1773
1790
  };
1774
1791
  });
1775
1792
  }
1776
- function ut(t, e, r, n, o) {
1793
+ function st(t, e, r, n, o) {
1777
1794
  if (n === !1) {
1778
1795
  t.node = {
1779
1796
  ...t.node,
@@ -1781,8 +1798,8 @@ function ut(t, e, r, n, o) {
1781
1798
  };
1782
1799
  return;
1783
1800
  }
1784
- const a = Date.now(), l = un(e, r), i = () => {
1785
- let c = (Date.now() - a) / uo;
1801
+ const a = Date.now(), l = cn(e, r), i = () => {
1802
+ let c = (Date.now() - a) / so;
1786
1803
  c > 1 && (c = 1), t.node = {
1787
1804
  ...t.node,
1788
1805
  transitionValue: o && c === 1 ? void 0 : l(c)
@@ -1790,23 +1807,23 @@ function ut(t, e, r, n, o) {
1790
1807
  };
1791
1808
  requestAnimationFrame(i);
1792
1809
  }
1793
- const ho = {
1810
+ const yo = {
1794
1811
  nodes: [],
1795
1812
  links: []
1796
1813
  };
1797
- function it(t, e) {
1814
+ function ct(t, e) {
1798
1815
  return e.find((r) => r.every((n) => n.x0 === t.x0));
1799
1816
  }
1800
- function go(t, e, r) {
1801
- const n = I(null), o = v(() => {
1817
+ function bo(t, e, r) {
1818
+ const n = O(null), o = v(() => {
1802
1819
  var s;
1803
1820
  return (s = t.value) == null ? void 0 : s[0].values.map(
1804
- ({ label: _, color: m, value: f, deriveColorFromIncomingLinks: g, offset: y }) => ({
1821
+ ({ label: _, color: m, value: f, deriveColorFromIncomingLinks: h, offset: y }) => ({
1805
1822
  label: _ || f.toString(),
1806
1823
  color: m,
1807
- fallbackColor: m || pe,
1824
+ fallbackColor: m || me,
1808
1825
  id: f,
1809
- deriveColorFromIncomingLinks: g,
1826
+ deriveColorFromIncomingLinks: h,
1810
1827
  offset: y
1811
1828
  })
1812
1829
  );
@@ -1817,45 +1834,45 @@ function go(t, e, r) {
1817
1834
  (_) => {
1818
1835
  var m;
1819
1836
  return (m = _.targets) == null ? void 0 : m.map(
1820
- ({ node: f, value: g, color: y, curveFunction: p }) => ({
1837
+ ({ node: f, value: h, color: y, curveFunction: p }) => ({
1821
1838
  id: `${_.value}:${f}`,
1822
1839
  color: y,
1823
1840
  curveFunction: p,
1824
1841
  source: _.value ?? _.label,
1825
1842
  target: f,
1826
- value: g
1843
+ value: h
1827
1844
  })
1828
1845
  );
1829
1846
  }
1830
1847
  ).filter(Boolean).flat();
1831
1848
  }
1832
- ), l = v(() => Xt().nodeId(le).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), i = v(() => {
1849
+ ), l = v(() => Yt().nodeId(le).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), i = v(() => {
1833
1850
  var s;
1834
1851
  return (s = n.value) == null ? void 0 : s.nodes.reduce(
1835
1852
  (_, m) => {
1836
- const f = it(m, _);
1837
- return f ? (f.push(m), f.sort((g, y) => (g._y0 || g.y0) - (y._y0 || y.y0))) : _.push([m]), _;
1853
+ const f = ct(m, _);
1854
+ return f ? (f.push(m), f.sort((h, y) => (h._y0 || h.y0) - (y._y0 || y.y0))) : _.push([m]), _;
1838
1855
  },
1839
1856
  []
1840
1857
  );
1841
1858
  });
1842
1859
  function u(s) {
1843
- const { offset: _ } = s, m = it(s, i.value);
1860
+ const { offset: _ } = s, m = ct(s, i.value);
1844
1861
  if (!m)
1845
1862
  return;
1846
- const f = m[m.findIndex((y) => y.id === s.id) - 1], g = f && m.length !== 1 ? f.y1 + _ : _;
1847
- s._y0 = s.y0, s._y1 = s.y1, s.y0 = g, s.y1 = s.y0 + (s._y1 - s._y0);
1863
+ const f = m[m.findIndex((y) => y.id === s.id) - 1], h = f && m.length !== 1 ? f.y1 + _ : _;
1864
+ s._y0 = s.y0, s._y1 = s.y1, s.y0 = h, s.y1 = s.y0 + (s._y1 - s._y0);
1848
1865
  }
1849
1866
  function c(s, _) {
1850
- const { id: m, _y0: f, y0: g } = s, y = _.links.filter(
1867
+ const { id: m, _y0: f, y0: h } = s, y = _.links.filter(
1851
1868
  (A) => A.source.id === m
1852
1869
  ), p = _.links.filter(
1853
1870
  (A) => A.target.id === m
1854
- ), T = g - f;
1855
- y.forEach((A) => A.y0 += T), p.forEach((A) => A.y1 += T);
1871
+ ), x = h - f;
1872
+ y.forEach((A) => A.y0 += x), p.forEach((A) => A.y1 += x);
1856
1873
  }
1857
1874
  const d = v(() => (n.value && o.value.forEach((s) => {
1858
- s.value === 0 && (s.fallbackColor = Ve.Grey), typeof s.offset == "number" && (u(s), c(s, n.value));
1875
+ s.value === 0 && (s.fallbackColor = Me.Grey), typeof s.offset == "number" && (u(s), c(s, n.value));
1859
1876
  }), n.value));
1860
1877
  return H([l, r], () => {
1861
1878
  try {
@@ -1865,45 +1882,45 @@ function go(t, e, r) {
1865
1882
  [m, f]
1866
1883
  ])({ nodes: o.value, links: a.value });
1867
1884
  } catch (s) {
1868
- oo(It.GraphProblem, s), n.value = ho;
1885
+ io(wt.GraphProblem, s), n.value = yo;
1869
1886
  }
1870
1887
  }), { columns: i, graph: d };
1871
1888
  }
1872
- function Pe(t, e) {
1889
+ function Be(t, e) {
1873
1890
  return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
1874
- e[r.id] = n, Pe(
1891
+ e[r.id] = n, Be(
1875
1892
  r,
1876
1893
  e
1877
1894
  );
1878
1895
  }), e;
1879
1896
  }
1880
- function Se(t, e) {
1897
+ function Fe(t, e) {
1881
1898
  return e || (e = {}), t.sourceLinks && t.sourceLinks.forEach(({ target: r, value: n }) => {
1882
- e[r.id] = n, Se(
1899
+ e[r.id] = n, Fe(
1883
1900
  r,
1884
1901
  e
1885
1902
  );
1886
1903
  }), e;
1887
1904
  }
1888
- function yo(t, e) {
1905
+ function ko(t, e) {
1889
1906
  return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
1890
1907
  }
1891
- const ko = (t, e) => {
1908
+ const xo = (t, e) => {
1892
1909
  let r;
1893
- Et(t) ? r = {
1910
+ Nt(t) ? r = {
1894
1911
  [t.id]: t.value,
1895
- ...Pe(t),
1896
- ...Se(t)
1912
+ ...Be(t),
1913
+ ...Fe(t)
1897
1914
  } : r = {
1898
1915
  [t.source.id]: t.source.value,
1899
1916
  [t.target.id]: t.target.value,
1900
- ...Pe(t.source),
1901
- ...Se(t.target)
1917
+ ...Be(t.source),
1918
+ ...Fe(t.target)
1902
1919
  };
1903
- const n = yo(r, e);
1920
+ const n = ko(r, e);
1904
1921
  return { nodes: r, links: n };
1905
- }, bo = (t) => {
1906
- if (Et(t)) {
1922
+ }, To = (t) => {
1923
+ if (Nt(t)) {
1907
1924
  const e = [...t.sourceLinks, ...t.targetLinks];
1908
1925
  return {
1909
1926
  nodes: e.reduce(
@@ -1921,15 +1938,15 @@ const ko = (t, e) => {
1921
1938
  links: [t.id]
1922
1939
  };
1923
1940
  };
1924
- function To(t, e, r) {
1925
- const n = I(null), o = v(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1941
+ function Ao(t, e, r) {
1942
+ const n = O(null), o = v(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1926
1943
  n.value,
1927
1944
  r.value
1928
- ) : e.value.highlightedElements === "closest" ? bo(n.value, r.value) : ko(n.value, r.value) : { nodes: {}, links: [] });
1945
+ ) : e.value.highlightedElements === "closest" ? To(n.value, r.value) : xo(n.value, r.value) : { nodes: {}, links: [] });
1929
1946
  return H(o, (a, l) => {
1930
1947
  if (a.links.length === 0 && Object.keys(a.nodes).length === 0) {
1931
1948
  t.value.forEach((i) => {
1932
- i.node.id in l.nodes && ut(
1949
+ i.node.id in l.nodes && st(
1933
1950
  i,
1934
1951
  l.nodes[i.node.id],
1935
1952
  i.node.value,
@@ -1940,7 +1957,7 @@ function To(t, e, r) {
1940
1957
  return;
1941
1958
  }
1942
1959
  t.value.forEach((i) => {
1943
- i.node.id in a.nodes && ut(
1960
+ i.node.id in a.nodes && st(
1944
1961
  i,
1945
1962
  i.node.value,
1946
1963
  a.nodes[i.node.id],
@@ -1949,10 +1966,10 @@ function To(t, e, r) {
1949
1966
  });
1950
1967
  }), { highlightedElements: o, hoveredElement: n };
1951
1968
  }
1952
- const xo = /* @__PURE__ */ w({
1969
+ const Lo = /* @__PURE__ */ N({
1953
1970
  __name: "lume-alluvial-group",
1954
1971
  props: {
1955
- ...ke(),
1972
+ ...xe(),
1956
1973
  hoveredElementId: {
1957
1974
  type: [Number, String],
1958
1975
  default: null
@@ -1960,107 +1977,108 @@ const xo = /* @__PURE__ */ w({
1960
1977
  },
1961
1978
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1962
1979
  setup(t, { emit: e }) {
1963
- const r = t, n = de("chartID"), { data: o, options: a } = P(r), l = I([]), i = I([]), u = I(null), { extents: c, updateExtents: d } = no(r.containerSize), { columns: s, graph: _ } = go(o, a, c), { hoveredElement: m, highlightedElements: f } = To(
1980
+ const r = t, n = _e("chartID"), { data: o, options: a } = B(r), l = O([]), i = O([]), u = O(null), { extents: c, updateExtents: d } = lo(r.containerSize), { columns: s, graph: _ } = bo(o, a, c), { hoveredElement: m, highlightedElements: f } = Ao(
1964
1981
  l,
1965
1982
  a,
1966
1983
  _
1967
- ), g = v(() => he(a.value.valueFormat)), y = v(
1984
+ ), h = v(() => ye(a.value.valueFormat)), y = v(
1968
1985
  () => Object.keys(f.value.nodes)
1969
1986
  ), p = v(() => s.value ? s.value.map(
1970
- (h) => h[0].x0 + a.value.nodeWidth / 2
1971
- ) : []), T = v(() => {
1987
+ (g) => g[0].x0 + a.value.nodeWidth / 2
1988
+ ) : []), x = v(() => {
1972
1989
  if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
1973
- return a.value.nodeHeaders.slice(0, p.value.length).map((h, O) => ({
1974
- label: h,
1975
- x: p.value[O]
1990
+ return a.value.nodeHeaders.slice(0, p.value.length).map((g, w) => ({
1991
+ label: g,
1992
+ x: p.value[w]
1976
1993
  }));
1977
1994
  }), A = v(
1978
- () => a.value.nodeHeaderPadding ?? lo
1979
- ), x = v(() => {
1995
+ () => a.value.nodeHeaderPadding ?? Yr
1996
+ ), T = v(() => {
1980
1997
  if (!(!a.value.gradient || !_.value))
1981
- return _.value.links.reduce((h, O) => {
1982
- const { source: N, target: F } = O, z = N.color || N.fallbackColor, W = F.deriveColorFromIncomingLinks ? z : F.color || F.fallbackColor;
1983
- return h[O.id] = {
1984
- source: z,
1985
- target: W,
1986
- x1: N.x1,
1987
- x2: F.x0
1988
- }, h;
1998
+ return _.value.links.reduce((g, w) => {
1999
+ const { source: D, target: W } = w, Z = D.color || D.fallbackColor, X = W.deriveColorFromIncomingLinks ? Z : W.color || W.fallbackColor;
2000
+ return g[w.id] = {
2001
+ source: Z,
2002
+ target: X,
2003
+ x1: D.x1,
2004
+ x2: W.x0
2005
+ }, g;
1989
2006
  }, {});
1990
- }), b = v(() => {
1991
- const h = l.value.filter(
1992
- (N) => G(N)
1993
- ), O = [];
1994
- return h.forEach((N) => {
1995
- const F = [];
1996
- i.value.filter(({ link: z }) => z.target.id === N.node.id).reverse().reduce((z, W) => {
1997
- const be = W.link.target.y1 - W.link.target.y0, ee = W.link.value / N.node.value * be;
1998
- return F.push({
1999
- x: N.x,
2000
- y: N.y + z,
2001
- height: ee,
2002
- width: N.width,
2003
- key: `node-block-${N.node.id}-source-link-${W.link.source.id}`,
2004
- class: `lume-alluvial-group__node-block lume-fill--${W.link.source.color || pe}`
2005
- }), z + ee;
2006
- }, 0), O.push({
2007
- id: N.node.id,
2008
- subNodes: F
2007
+ }), k = v(() => {
2008
+ const g = l.value.filter(
2009
+ (D) => G(D)
2010
+ ), w = [];
2011
+ return g.forEach((D) => {
2012
+ const W = [];
2013
+ i.value.filter(({ link: Z }) => Z.target.id === D.node.id).reverse().reduce((Z, X) => {
2014
+ const Te = X.link.target.y1 - X.link.target.y0, ce = X.link.value / D.node.value * Te;
2015
+ return W.push({
2016
+ x: D.x,
2017
+ y: D.y + Z,
2018
+ height: ce,
2019
+ width: D.width,
2020
+ key: `node-block-${D.node.id}-source-link-${X.link.source.id}`,
2021
+ class: `lume-alluvial-group__node-block lume-fill--${X.link.source.color || me}`
2022
+ }), Z + ce;
2023
+ }, 0), w.push({
2024
+ id: D.node.id,
2025
+ subNodes: W
2009
2026
  });
2010
- }), O;
2027
+ }), w;
2011
2028
  });
2012
- function C(h) {
2013
- return a.value.gradient && `url('#${n}_${h.id}')`;
2029
+ function C(g) {
2030
+ return a.value.gradient && `url('#${n}_${g.id}')`;
2014
2031
  }
2015
- function D(h) {
2016
- return y.value.length > 0 && !y.value.includes(h.toString());
2032
+ function R(g) {
2033
+ return y.value.length > 0 && !y.value.includes(g.toString());
2017
2034
  }
2018
- function R(h) {
2019
- return y.value.length > 0 && y.value.includes(h.toString());
2035
+ function P(g) {
2036
+ return y.value.length > 0 && y.value.includes(g.toString());
2020
2037
  }
2021
- function B(h) {
2022
- return f.value.links.length > 0 && !f.value.links.includes(h);
2038
+ function F(g) {
2039
+ return f.value.links.length > 0 && !f.value.links.includes(g);
2023
2040
  }
2024
- function Q(h) {
2025
- return f.value.links.length > 0 && f.value.links.includes(h);
2041
+ function te(g) {
2042
+ return f.value.links.length > 0 && f.value.links.includes(g);
2026
2043
  }
2027
- function G(h) {
2028
- return !h.node.color && h.node.deriveColorFromIncomingLinks;
2044
+ function G(g) {
2045
+ return !g.node.color && g.node.deriveColorFromIncomingLinks;
2029
2046
  }
2030
- function M(h, O) {
2031
- h !== m.value && (m.value = h, e("link-mouseenter", { link: h, event: O }));
2047
+ function z(g, w) {
2048
+ g !== m.value && (m.value = g, e("link-mouseenter", { link: g, event: w }));
2032
2049
  }
2033
- function q(h) {
2034
- const O = m.value;
2035
- m.value = null, e("link-mouseleave", { link: O, event: h });
2050
+ function ne(g) {
2051
+ const w = m.value;
2052
+ m.value = null, e("link-mouseleave", { link: w, event: g });
2036
2053
  }
2037
- function U(h) {
2038
- if (h == null) {
2054
+ function Q(g) {
2055
+ if (g == null) {
2039
2056
  m.value = null;
2040
2057
  return;
2041
2058
  }
2042
- const O = io(h, _.value) || so(h, _.value);
2043
- if (!O) {
2044
- ne(K.InvalidHoveredElement);
2059
+ const w = co(g, _.value) || vo(g, _.value);
2060
+ if (!w) {
2061
+ q(Y.InvalidHoveredElement);
2045
2062
  return;
2046
2063
  }
2047
- m.value = O;
2064
+ m.value = w;
2065
+ }
2066
+ function I(g) {
2067
+ var w;
2068
+ return ((w = k.value.find(({ id: D }) => g === D)) == null ? void 0 : w.subNodes) ?? [];
2048
2069
  }
2049
- function $(h) {
2050
- var O;
2051
- return ((O = b.value.find(({ id: N }) => h === N)) == null ? void 0 : O.subNodes) ?? [];
2070
+ function $() {
2071
+ const g = _o(_.value, u.value);
2072
+ d(g);
2052
2073
  }
2053
- return H(_, (h) => {
2054
- l.value = vo(h.nodes), i.value = mo(h.links).reverse(), m.value == null && r.hoveredElementId != null && U(r.hoveredElementId);
2074
+ return H(_, (g) => {
2075
+ l.value = po(g.nodes), i.value = go(g.links).reverse(), m.value == null && r.hoveredElementId != null && Q(r.hoveredElementId);
2055
2076
  }), H([r.containerSize, u], () => {
2056
- if (r.containerSize.width && r.containerSize.height) {
2057
- const h = co(_.value, u.value);
2058
- d(h);
2059
- }
2060
- }), H(() => r.hoveredElementId, U), { __sfc: !0, props: r, emit: e, chartID: n, data: o, options: a, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: d, columns: s, graph: _, hoveredElement: m, highlightedElements: f, formatValue: g, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: T, computedNodeHeaderPadding: A, gradients: x, nodesDerivingColorFromIncomingLinks: b, getLinkStroke: C, isNodeFaded: D, isNodeFocused: R, isLinkFaded: B, isLinkFocused: Q, shouldDeriveNodeColorFromIncomingLinks: G, handleLinkMouseover: M, handleLinkMouseleave: q, handleExternalHover: U, getSubNodesDerivingColorFromIncomingLinks: $, LumeAlluvialNodeLabel: Kr, LumeAlluvialNodeValue: to, GHOST_STROKE_WIDTH_OFFSET: ao };
2077
+ r.containerSize.width && r.containerSize.height && $();
2078
+ }), H(() => r.hoveredElementId, Q), { __sfc: !0, props: r, emit: e, chartID: n, data: o, options: a, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: d, columns: s, graph: _, hoveredElement: m, highlightedElements: f, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: x, computedNodeHeaderPadding: A, gradients: T, nodesDerivingColorFromIncomingLinks: k, getLinkStroke: C, isNodeFaded: R, isNodeFocused: P, isLinkFaded: F, isLinkFocused: te, shouldDeriveNodeColorFromIncomingLinks: G, handleLinkMouseover: z, handleLinkMouseleave: ne, handleExternalHover: Q, getSubNodesDerivingColorFromIncomingLinks: I, updateMargins: $, LumeAlluvialNodeLabel: eo, LumeAlluvialNodeValue: ao, GHOST_STROKE_WIDTH_OFFSET: Ur };
2061
2079
  }
2062
2080
  });
2063
- var Ao = function() {
2081
+ var Oo = function() {
2064
2082
  var e = this, r = e._self._c, n = e._self._setupProxy;
2065
2083
  return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", e._l(n.nodeHeaders, function(o) {
2066
2084
  return r("text", { key: `header_${o.x}`, staticClass: "lume-alluvial-group__node-header lume-typography--caption", attrs: { x: o.x, y: -n.computedNodeHeaderPadding } }, [e._v(" " + e._s(o.label) + " ")]);
@@ -2105,24 +2123,24 @@ var Ao = function() {
2105
2123
  return r("rect", e._b({ key: l.key, attrs: { "data-j-alluvial-sub-nodes": "" } }, "rect", l, !1));
2106
2124
  }) : r("rect", { staticClass: "lume-alluvial-group__node-block", class: `lume-fill--${o.node.color || o.node.fallbackColor}`, attrs: { x: o.x, y: o.y, height: o.height, width: o.width } }), r("g", { ref: "nodeTextRefs", refInFor: !0, staticClass: "lume-alluvial-group__node-text lume-typography--caption", class: {
2107
2125
  "lume-alluvial-group__node-text--left": o.node.depth === 0
2108
- }, attrs: { transform: `translate(${o.textTransform.x},${o.textTransform.y})`, "data-id": o.node.id } }, [e._t(`node-text-${o.node.id}`, function() {
2109
- return [r(n.LumeAlluvialNodeLabel, { attrs: { bottom: n.options.switchText } }, [e._v(" " + e._s(o.node.label) + " ")]), r(n.LumeAlluvialNodeValue, { attrs: { bottom: !n.options.switchText } }, [e._v(" " + e._s(n.formatValue(o.node.transitionValue || o.node.value, o.node.value)) + " ")])];
2126
+ }, attrs: { transform: `translate(${o.textTransform.x},${o.textTransform.y})`, "data-id": o.node.id, width: n.options.nodeLabelMaxWidth } }, [e._t(`node-text-${o.node.id}`, function() {
2127
+ return [r(n.LumeAlluvialNodeLabel, { attrs: { bottom: n.options.switchText, left: o.node.depth === 0, "max-width": n.options.nodeLabelMaxWidth }, on: { "lume__internal--node-resize": n.updateMargins } }, [e._v(" " + e._s(o.node.label) + " ")]), r(n.LumeAlluvialNodeValue, { attrs: { bottom: !n.options.switchText } }, [e._v(" " + e._s(n.formatValue(o.node.transitionValue || o.node.value, o.node.value)) + " ")])];
2110
2128
  }, { node: o.node, value: n.formatValue(
2111
2129
  o.node.transitionValue || o.node.value,
2112
2130
  o.node.value
2113
2131
  ) })], 2)], 2)]);
2114
2132
  })], 2);
2115
- }, Lo = [], Oo = /* @__PURE__ */ E(
2116
- xo,
2117
- Ao,
2133
+ }, Io = [], $o = /* @__PURE__ */ E(
2118
2134
  Lo,
2135
+ Oo,
2136
+ Io,
2119
2137
  !1,
2120
2138
  null,
2121
- "6fe8c153",
2139
+ "a8689157",
2122
2140
  null,
2123
2141
  null
2124
2142
  );
2125
- const $o = Oo.exports, Io = {
2143
+ const Eo = $o.exports, wo = {
2126
2144
  margins: {
2127
2145
  top: 0,
2128
2146
  right: 0,
@@ -2138,16 +2156,16 @@ const $o = Oo.exports, Io = {
2138
2156
  highlightedElements: "closest",
2139
2157
  nodePadding: 16,
2140
2158
  nodeWidth: 16,
2141
- nodeAlign: Ut,
2159
+ nodeAlign: Kt,
2142
2160
  valueFormat: (t) => String(t),
2143
2161
  iterations: 6
2144
- }, Eo = /* @__PURE__ */ w({
2162
+ }, No = /* @__PURE__ */ N({
2145
2163
  __name: "lume-alluvial-diagram",
2146
2164
  props: {
2147
- ...Lr(Fe)
2165
+ ...Ir(je)
2148
2166
  },
2149
2167
  setup(t, { emit: e }) {
2150
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), a = cn(V()), { options: l } = P(r), { allOptions: i } = Z(l, Io);
2168
+ const r = t, { componentEventPropagator: n } = J(e), o = ae(V()), a = vn(V()), { options: l } = B(r), { allOptions: i } = K(l, wo);
2151
2169
  function u(c) {
2152
2170
  return {
2153
2171
  ...c,
@@ -2155,10 +2173,10 @@ const $o = Oo.exports, Io = {
2155
2173
  // Alluvial chart never uses base scales
2156
2174
  };
2157
2175
  }
2158
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, groupSlots: a, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ie, LumeAlluvialGroup: $o };
2176
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, groupSlots: a, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ie, LumeAlluvialGroup: Eo };
2159
2177
  }
2160
2178
  });
2161
- var wo = function() {
2179
+ var Ho = function() {
2162
2180
  var e = this, r = e._self._c, n = e._self._setupProxy;
2163
2181
  return r(n.LumeChart, e._g(e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2164
2182
  return [r(n.LumeAlluvialGroup, e._g(e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(a, l) {
@@ -2171,40 +2189,40 @@ var wo = function() {
2171
2189
  return [e._t(a, null, null, l || {})];
2172
2190
  } };
2173
2191
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2174
- }, No = [], Co = /* @__PURE__ */ E(
2175
- Eo,
2176
- wo,
2192
+ }, Co = [], Do = /* @__PURE__ */ E(
2177
2193
  No,
2194
+ Ho,
2195
+ Co,
2178
2196
  !1,
2179
2197
  null,
2180
2198
  null,
2181
2199
  null,
2182
2200
  null
2183
2201
  );
2184
- const Ma = Co.exports;
2185
- var Be = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Be || {});
2186
- const Ho = /* @__PURE__ */ w({
2202
+ const Wa = Do.exports;
2203
+ var Ge = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Ge || {});
2204
+ const Ro = /* @__PURE__ */ N({
2187
2205
  __name: "lume-bar-chart",
2188
2206
  props: {
2189
2207
  ...ue(),
2190
2208
  type: {
2191
2209
  type: String,
2192
2210
  default: null,
2193
- validator: (t) => t in Be || t == null
2211
+ validator: (t) => t in Ge || t == null
2194
2212
  }
2195
2213
  },
2196
2214
  setup(t, { emit: e }) {
2197
- const r = t, n = Le(
2215
+ const r = t, n = Ie(
2198
2216
  () => import("./common/42f5d2fc.js")
2199
- ), o = Le(
2217
+ ), o = Ie(
2200
2218
  () => import("./common/abc9d23d.js")
2201
- ), a = Le(
2219
+ ), a = Ie(
2202
2220
  () => import("./common/0664fd4d.js")
2203
2221
  ), l = /* @__PURE__ */ new Map([
2204
2222
  ["single", n],
2205
2223
  ["grouped", o],
2206
2224
  ["stacked", a]
2207
- ]), { componentEventPropagator: i } = X(e), u = ae(V());
2225
+ ]), { componentEventPropagator: i } = J(e), u = ae(V());
2208
2226
  function c(s) {
2209
2227
  return {
2210
2228
  ...s,
@@ -2212,61 +2230,61 @@ const Ho = /* @__PURE__ */ w({
2212
2230
  // Bar chart always starts on zero,
2213
2231
  tooltipOptions: {
2214
2232
  ...(s == null ? void 0 : s.tooltipOptions) || {},
2215
- position: r.orientation === L.HORIZONTAL && "right"
2233
+ position: r.orientation === L.HORIZONTAL ? "right" : void 0
2216
2234
  }
2217
2235
  };
2218
2236
  }
2219
2237
  const d = v(() => {
2220
2238
  if (r.data) {
2221
- if (Fe(r.data))
2239
+ if (je(r.data))
2222
2240
  return l.get("single");
2223
2241
  if (!r.type)
2224
2242
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2225
2243
  return l.get(r.type);
2226
2244
  }
2227
2245
  });
2228
- return { __sfc: !0, TYPES: Be, LumeSingleBarChart: n, LumeGroupedBarChart: o, LumeStackedBarChart: a, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: d };
2246
+ return { __sfc: !0, TYPES: Ge, LumeSingleBarChart: n, LumeGroupedBarChart: o, LumeStackedBarChart: a, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: d };
2229
2247
  }
2230
2248
  });
2231
- var Do = function() {
2249
+ var Po = function() {
2232
2250
  var e = this, r = e._self._c, n = e._self._setupProxy;
2233
2251
  return r(n.component, e._g(e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(o, a) {
2234
2252
  return { key: a, fn: function(l) {
2235
2253
  return [e._t(a, null, null, l || {})];
2236
2254
  } };
2237
2255
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2238
- }, Ro = [], Po = /* @__PURE__ */ E(
2239
- Ho,
2240
- Do,
2256
+ }, So = [], Bo = /* @__PURE__ */ E(
2241
2257
  Ro,
2258
+ Po,
2259
+ So,
2242
2260
  !1,
2243
2261
  null,
2244
2262
  null,
2245
2263
  null,
2246
2264
  null
2247
2265
  );
2248
- const za = Po.exports;
2249
- function So(t) {
2250
- return Object.values(fn).includes(t) || t == null;
2266
+ const Za = Bo.exports;
2267
+ function Fo(t) {
2268
+ return Object.values(hn).includes(t) || t == null;
2251
2269
  }
2252
- function Bo(t) {
2270
+ function Go(t) {
2253
2271
  return Object.values(L).includes(t);
2254
2272
  }
2255
- const Fo = (t = !1) => ({
2273
+ const jo = (t = !1) => ({
2256
2274
  type: {
2257
2275
  type: String,
2258
2276
  default: null,
2259
- validator: So
2277
+ validator: Fo
2260
2278
  },
2261
2279
  ...t ? {
2262
2280
  orientation: {
2263
2281
  type: String,
2264
2282
  default: L.VERTICAL,
2265
- validator: Bo
2283
+ validator: Go
2266
2284
  }
2267
2285
  } : {}
2268
2286
  });
2269
- function wt(t) {
2287
+ function Ht(t) {
2270
2288
  const e = v(() => t.value.map((n) => ({
2271
2289
  ...n,
2272
2290
  values: n.values.map((o) => ({
@@ -2281,10 +2299,10 @@ function wt(t) {
2281
2299
  });
2282
2300
  return { multiBarData: e, groupedData: r };
2283
2301
  }
2284
- function Go(t, e) {
2302
+ function Vo(t, e) {
2285
2303
  return t.value.length === 1 ? "single" : e.value;
2286
2304
  }
2287
- function Vo(t, e, r) {
2305
+ function Mo(t, e, r) {
2288
2306
  const n = v(
2289
2307
  () => r.value === L.HORIZONTAL
2290
2308
  );
@@ -2294,7 +2312,7 @@ function Vo(t, e, r) {
2294
2312
  const a = v(() => n.value ? (() => (o(t.value), t.value))() : t.value), l = v(() => n.value ? e.value : (() => (o(e.value), e.value))());
2295
2313
  return { barXScale: a, barYScale: l };
2296
2314
  }
2297
- function jo(t, e, r, n, o, a) {
2315
+ function zo(t, e, r, n, o, a) {
2298
2316
  const l = v(
2299
2317
  () => n.value === L.HORIZONTAL
2300
2318
  );
@@ -2309,33 +2327,33 @@ function jo(t, e, r, n, o, a) {
2309
2327
  return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
2310
2328
  }
2311
2329
  function d(s, _, m) {
2312
- const { value: f, color: g } = s, y = g ?? t.value[_].color ?? pe, { x: p, y: T } = i(f, m), A = u(f), x = c(f);
2330
+ const { value: f, color: h } = s, y = h ?? t.value[_].color ?? me, { x: p, y: x } = i(f, m), A = u(f), T = c(f);
2313
2331
  return {
2314
2332
  classList: [`lume-fill--${y}`, ...a],
2315
2333
  x: p,
2316
- y: T,
2334
+ y: x,
2317
2335
  width: A,
2318
- height: x,
2336
+ height: T,
2319
2337
  isFaded: o.value !== -1 && o.value !== m,
2320
2338
  isNegative: f < 0
2321
2339
  };
2322
2340
  }
2323
2341
  return { barAttributeGenerator: d };
2324
2342
  }
2325
- function Mo(t, e, r, n, o, a) {
2343
+ function Wo(t, e, r, n, o, a) {
2326
2344
  const l = v(
2327
2345
  () => n.value === L.HORIZONTAL
2328
- ), i = v(() => se().domain(t.value.map((f, g) => g)).range([0, e.value.bandwidth()]).padding(0)), u = v(() => se().domain(t.value.map((f, g) => g)).range([0, r.value.bandwidth()]).padding(0));
2329
- function c(f, g, y) {
2346
+ ), i = v(() => de().domain(t.value.map((f, h) => h)).range([0, e.value.bandwidth()]).padding(0)), u = v(() => de().domain(t.value.map((f, h) => h)).range([0, r.value.bandwidth()]).padding(0));
2347
+ function c(f, h, y) {
2330
2348
  if (l.value)
2331
2349
  return f >= 0 ? e.value(0) : e.value(f);
2332
2350
  const p = e.value.domain();
2333
- return e.value(p[g]) + i.value(y);
2351
+ return e.value(p[h]) + i.value(y);
2334
2352
  }
2335
- function d(f, g, y) {
2353
+ function d(f, h, y) {
2336
2354
  if (l.value) {
2337
2355
  const p = r.value.domain();
2338
- return r.value(p[g]) + u.value(y);
2356
+ return r.value(p[h]) + u.value(y);
2339
2357
  }
2340
2358
  return f < 0 ? r.value(0) : r.value(f);
2341
2359
  }
@@ -2345,21 +2363,21 @@ function Mo(t, e, r, n, o, a) {
2345
2363
  function _(f) {
2346
2364
  return l.value ? u.value.bandwidth() : f < 0 ? r.value(f) - r.value(0) : r.value(0) - r.value(f);
2347
2365
  }
2348
- function m(f, g, y) {
2349
- const { value: p, color: T } = f, A = T ?? t.value[g].color ?? Object.values(j)[g], x = c(p, y, g), b = d(p, y, g), C = s(p), D = _(p);
2366
+ function m(f, h, y) {
2367
+ const { value: p, color: x } = f, A = x ?? t.value[h].color ?? Object.values(M)[h], T = c(p, y, h), k = d(p, y, h), C = s(p), R = _(p);
2350
2368
  return {
2351
2369
  classList: [`lume-fill--${A}`, ...a],
2352
- x,
2353
- y: b,
2370
+ x: T,
2371
+ y: k,
2354
2372
  width: C,
2355
- height: D,
2373
+ height: R,
2356
2374
  isFaded: o.value !== -1 && o.value !== y,
2357
2375
  isNegative: p < 0
2358
2376
  };
2359
2377
  }
2360
2378
  return { barAttributeGenerator: m };
2361
2379
  }
2362
- function zo(t, e, r) {
2380
+ function Zo(t, e, r) {
2363
2381
  const n = v(
2364
2382
  () => e.value === L.HORIZONTAL
2365
2383
  ), o = v(() => {
@@ -2377,9 +2395,9 @@ function zo(t, e, r) {
2377
2395
  return Math.max(...u);
2378
2396
  });
2379
2397
  function l(u, c, d) {
2380
- return n.value ? ce().domain([o.value, a.value]).range([0, d.width]) : Object.assign(
2381
- rt(
2382
- se().domain(c.map((s, _) => _)).range([0, d.width]),
2398
+ return n.value ? ve().domain([o.value, a.value]).range([0, d.width]) : Object.assign(
2399
+ ot(
2400
+ de().domain(c.map((s, _) => _)).range([0, d.width]),
2383
2401
  e.value,
2384
2402
  r.value
2385
2403
  ),
@@ -2388,27 +2406,27 @@ function zo(t, e, r) {
2388
2406
  }
2389
2407
  function i(u, c, d) {
2390
2408
  return n.value ? Object.assign(
2391
- rt(
2392
- se().domain(c.map((s, _) => _)).range([0, d.height]),
2409
+ ot(
2410
+ de().domain(c.map((s, _) => _)).range([0, d.height]),
2393
2411
  e.value,
2394
2412
  r.value
2395
2413
  ),
2396
2414
  { labels: c }
2397
- ) : ce().domain([a.value, o.value]).range([0, d.height]);
2415
+ ) : ve().domain([a.value, o.value]).range([0, d.height]);
2398
2416
  }
2399
2417
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2400
2418
  }
2401
- function Wo(t, e, r, n, o, a) {
2419
+ function Xo(t, e, r, n, o, a) {
2402
2420
  const l = v(
2403
2421
  () => n.value === L.HORIZONTAL
2404
2422
  ), i = v(
2405
2423
  () => l.value ? r.value.domain() : e.value.domain()
2406
2424
  ), u = v(
2407
- () => t.value.map((p) => p.values.map((T) => T == null ? void 0 : T.value))
2425
+ () => t.value.map((p) => p.values.map((x) => x == null ? void 0 : x.value))
2408
2426
  );
2409
- function c(p, T, A) {
2410
- let x, b;
2411
- return l.value ? (x = e.value(p >= 0 ? 0 + A : p + A), b = r.value(i.value[T])) : (x = e.value(i.value[T]), b = r.value(p >= 0 ? p + A : 0 + A)), { x, y: b };
2427
+ function c(p, x, A) {
2428
+ let T, k;
2429
+ return l.value ? (T = e.value(p >= 0 ? 0 + A : p + A), k = r.value(i.value[x])) : (T = e.value(i.value[x]), k = r.value(p >= 0 ? p + A : 0 + A)), { x: T, y: k };
2412
2430
  }
2413
2431
  function d(p) {
2414
2432
  return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
@@ -2422,39 +2440,39 @@ function Wo(t, e, r, n, o, a) {
2422
2440
  function m(p) {
2423
2441
  return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
2424
2442
  }
2425
- function f(p, T) {
2426
- return p ? u.value.reduce((A, x, b) => (b < p && x[T] >= 0 && (A += x[T]), A), 0) : 0;
2443
+ function f(p, x) {
2444
+ return p ? u.value.reduce((A, T, k) => (k < p && T[x] >= 0 && (A += T[x]), A), 0) : 0;
2427
2445
  }
2428
- function g(p, T) {
2429
- return p ? u.value.reduce((A, x, b) => (b < p && x[T] < 0 && (A += x[T]), A), 0) : 0;
2446
+ function h(p, x) {
2447
+ return p ? u.value.reduce((A, T, k) => (k < p && T[x] < 0 && (A += T[x]), A), 0) : 0;
2430
2448
  }
2431
- function y(p, T, A) {
2432
- const { value: x, color: b } = p, C = x >= 0 ? d(x) : s(x), D = x >= 0 ? _(x) : m(x), R = x >= 0 ? f(T, A) : g(T, A), { x: B, y: Q } = c(x, A, R);
2449
+ function y(p, x, A) {
2450
+ const { value: T, color: k } = p, C = T >= 0 ? d(T) : s(T), R = T >= 0 ? _(T) : m(T), P = T >= 0 ? f(x, A) : h(x, A), { x: F, y: te } = c(T, A, P);
2433
2451
  return {
2434
- classList: [`lume-fill--${b ?? t.value[T].color ?? Object.values(j)[T]}`, ...a],
2452
+ classList: [`lume-fill--${k ?? t.value[x].color ?? Object.values(M)[x]}`, ...a],
2435
2453
  width: C,
2436
- height: D,
2437
- x: B,
2438
- y: Q,
2454
+ height: R,
2455
+ x: F,
2456
+ y: te,
2439
2457
  isFaded: o.value !== -1 && o.value !== A,
2440
- isNegative: x < 0
2458
+ isNegative: T < 0
2441
2459
  };
2442
2460
  }
2443
2461
  return { barAttributeGenerator: y };
2444
2462
  }
2445
- const st = {
2446
- single: jo,
2447
- grouped: Mo,
2448
- stacked: Wo
2449
- }, Zo = /* @__PURE__ */ w({
2463
+ const dt = {
2464
+ single: zo,
2465
+ grouped: Wo,
2466
+ stacked: Xo
2467
+ }, Uo = /* @__PURE__ */ N({
2450
2468
  __name: "lume-bar-group",
2451
2469
  props: {
2452
- ...ke(),
2470
+ ...xe(),
2453
2471
  classList: {
2454
2472
  type: [String, Array],
2455
2473
  default: () => []
2456
2474
  },
2457
- ...Fo(!0),
2475
+ ...jo(!0),
2458
2476
  transition: {
2459
2477
  type: Boolean,
2460
2478
  default: !0
@@ -2471,27 +2489,27 @@ const st = {
2471
2489
  xScale: u,
2472
2490
  yScale: c,
2473
2491
  classList: d
2474
- } = P(r), s = de("chartID"), { emitInternalEvent: _ } = X(e, s), { groupedData: m } = wt(n), { barXScale: f, barYScale: g } = Vo(u, c, a), y = v(() => typeof d.value == "string" ? [d.value] : d.value), p = v(() => {
2475
- const x = Go(n, i), { barAttributeGenerator: b } = st[x](
2492
+ } = B(r), s = _e("chartID"), { emitInternalEvent: _ } = J(e, s), { groupedData: m } = Ht(n), { barXScale: f, barYScale: h } = Mo(u, c, a), y = v(() => typeof d.value == "string" ? [d.value] : d.value), p = v(() => {
2493
+ const T = Vo(n, i), { barAttributeGenerator: k } = dt[T](
2476
2494
  n,
2477
2495
  f,
2478
- g,
2496
+ h,
2479
2497
  a,
2480
2498
  o,
2481
2499
  y.value
2482
2500
  );
2483
- return b;
2484
- }), T = v(() => {
2501
+ return k;
2502
+ }), x = v(() => {
2485
2503
  if (l.value)
2486
2504
  return a.value === L.HORIZONTAL ? "width" : "height";
2487
2505
  });
2488
- async function A(x) {
2489
- e("lume__internal--hover", x), _("lume__internal--hover", x);
2506
+ async function A(T) {
2507
+ e("lume__internal--hover", T), _("lume__internal--hover", T);
2490
2508
  }
2491
- return { __sfc: !0, MIXIN_MAP: st, props: r, emit: e, data: n, hoveredIndex: o, orientation: a, transition: l, type: i, xScale: u, yScale: c, classList: d, chartID: s, emitInternalEvent: _, groupedData: m, barXScale: f, barYScale: g, computedClasses: y, getBarAttributes: p, computedTransition: T, handleInternalHover: A, LumeBar: Me };
2509
+ return { __sfc: !0, MIXIN_MAP: dt, props: r, emit: e, data: n, hoveredIndex: o, orientation: a, transition: l, type: i, xScale: u, yScale: c, classList: d, chartID: s, emitInternalEvent: _, groupedData: m, barXScale: f, barYScale: h, computedClasses: y, getBarAttributes: p, computedTransition: x, handleInternalHover: A, LumeBar: We };
2492
2510
  }
2493
2511
  });
2494
- var Xo = function() {
2512
+ var Yo = function() {
2495
2513
  var e = this, r = e._self._c, n = e._self._setupProxy;
2496
2514
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(o, a) {
2497
2515
  return r("g", { key: a, on: { mouseenter: function(l) {
@@ -2506,43 +2524,43 @@ var Xo = function() {
2506
2524
  } } }, "lume-bar", n.getBarAttributes(l, i, a, o), !1));
2507
2525
  }), 1);
2508
2526
  }), 0);
2509
- }, Uo = [], Yo = /* @__PURE__ */ E(
2510
- Zo,
2511
- Xo,
2527
+ }, Ko = [], Jo = /* @__PURE__ */ E(
2512
2528
  Uo,
2529
+ Yo,
2530
+ Ko,
2513
2531
  !1,
2514
2532
  null,
2515
2533
  null,
2516
2534
  null,
2517
2535
  null
2518
2536
  );
2519
- const Ze = Yo.exports, Ko = {
2537
+ const Ue = Jo.exports, Qo = {
2520
2538
  [L.VERTICAL]: {
2521
2539
  withTooltip: !0,
2522
2540
  xAxisOptions: {},
2523
2541
  yAxisOptions: { gridLines: !0 },
2524
- margins: re.VERTICAL
2542
+ margins: oe.VERTICAL
2525
2543
  },
2526
2544
  [L.HORIZONTAL]: {
2527
2545
  withTooltip: !0,
2528
2546
  xAxisOptions: { gridLines: !0 },
2529
2547
  yAxisOptions: { gridLines: !1 },
2530
- margins: re.HORIZONTAL
2548
+ margins: oe.HORIZONTAL
2531
2549
  }
2532
- }, Jo = /* @__PURE__ */ w({
2550
+ }, qo = /* @__PURE__ */ N({
2533
2551
  __name: "lume-single-bar-chart",
2534
2552
  props: {
2535
- ...ue(Fe)
2553
+ ...ue(je)
2536
2554
  },
2537
2555
  setup(t, { emit: e }) {
2538
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { orientation: a, options: l } = P(r), i = v(
2539
- () => Ko[a.value || L.VERTICAL]
2556
+ const r = t, { componentEventPropagator: n } = J(e), o = ae(V()), { orientation: a, options: l } = B(r), i = v(
2557
+ () => Qo[a.value || L.VERTICAL]
2540
2558
  // needs to be computed so that default options are reactive
2541
- ), { allOptions: u } = Z(l, i);
2542
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ze };
2559
+ ), { allOptions: u } = K(l, i);
2560
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ue };
2543
2561
  }
2544
2562
  });
2545
- var Qo = function() {
2563
+ var ea = function() {
2546
2564
  var e = this, r = e._self._c, n = e._self._setupProxy;
2547
2565
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2548
2566
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2551,47 +2569,47 @@ var Qo = function() {
2551
2569
  return [e._t(a, null, null, l || {})];
2552
2570
  } };
2553
2571
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2554
- }, qo = [], ea = /* @__PURE__ */ E(
2555
- Jo,
2556
- Qo,
2572
+ }, ta = [], na = /* @__PURE__ */ E(
2557
2573
  qo,
2574
+ ea,
2575
+ ta,
2558
2576
  !1,
2559
2577
  null,
2560
2578
  null,
2561
2579
  null,
2562
2580
  null
2563
2581
  );
2564
- const Wa = ea.exports, ta = {
2582
+ const Xa = na.exports, ra = {
2565
2583
  [L.VERTICAL]: {
2566
2584
  withTooltip: !0,
2567
2585
  xAxisOptions: {},
2568
2586
  yAxisOptions: { gridLines: !0 },
2569
- margins: re.VERTICAL
2587
+ margins: oe.VERTICAL
2570
2588
  },
2571
2589
  [L.HORIZONTAL]: {
2572
2590
  withTooltip: !0,
2573
2591
  xAxisOptions: { gridLines: !0 },
2574
2592
  yAxisOptions: { gridLines: !1 },
2575
- margins: re.HORIZONTAL,
2593
+ margins: oe.HORIZONTAL,
2576
2594
  tooltipOptions: { position: "right" }
2577
2595
  }
2578
- }, na = /* @__PURE__ */ w({
2596
+ }, oa = /* @__PURE__ */ N({
2579
2597
  __name: "lume-grouped-bar-chart",
2580
2598
  props: {
2581
2599
  ...ue()
2582
2600
  },
2583
2601
  setup(t, { emit: e }) {
2584
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { orientation: a, options: l } = P(r), i = v(
2585
- () => ta[a.value || L.VERTICAL]
2602
+ const r = t, { componentEventPropagator: n } = J(e), o = ae(V()), { orientation: a, options: l } = B(r), i = v(
2603
+ () => ra[a.value || L.VERTICAL]
2586
2604
  // needs to be computed so that default options are reactive
2587
- ), { allOptions: u } = Z(
2605
+ ), { allOptions: u } = K(
2588
2606
  l,
2589
2607
  i
2590
2608
  );
2591
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ze };
2609
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ue };
2592
2610
  }
2593
2611
  });
2594
- var ra = function() {
2612
+ var aa = function() {
2595
2613
  var e = this, r = e._self._c, n = e._self._setupProxy;
2596
2614
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2597
2615
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2600,51 +2618,51 @@ var ra = function() {
2600
2618
  return [e._t(a, null, null, l || {})];
2601
2619
  } };
2602
2620
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2603
- }, oa = [], aa = /* @__PURE__ */ E(
2604
- na,
2605
- ra,
2621
+ }, la = [], ua = /* @__PURE__ */ E(
2606
2622
  oa,
2623
+ aa,
2624
+ la,
2607
2625
  !1,
2608
2626
  null,
2609
2627
  null,
2610
2628
  null,
2611
2629
  null
2612
2630
  );
2613
- const Za = aa.exports, la = {
2631
+ const Ua = ua.exports, ia = {
2614
2632
  [L.VERTICAL]: {
2615
2633
  withTooltip: !0,
2616
2634
  xAxisOptions: {},
2617
2635
  yAxisOptions: { gridLines: !0 },
2618
- margins: re.VERTICAL
2636
+ margins: oe.VERTICAL
2619
2637
  },
2620
2638
  [L.HORIZONTAL]: {
2621
2639
  withTooltip: !0,
2622
2640
  xAxisOptions: { gridLines: !0 },
2623
2641
  yAxisOptions: { gridLines: !1 },
2624
- margins: re.HORIZONTAL,
2642
+ margins: oe.HORIZONTAL,
2625
2643
  tooltipOptions: { position: "right" }
2626
2644
  }
2627
- }, ua = /* @__PURE__ */ w({
2645
+ }, sa = /* @__PURE__ */ N({
2628
2646
  __name: "lume-stacked-bar-chart",
2629
2647
  props: {
2630
2648
  ...ue()
2631
2649
  },
2632
2650
  setup(t, { emit: e }) {
2633
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { data: a, orientation: l, options: i } = P(r), u = v(
2634
- () => la[l.value || L.VERTICAL]
2651
+ const r = t, { componentEventPropagator: n } = J(e), o = ae(V()), { data: a, orientation: l, options: i } = B(r), u = v(
2652
+ () => ia[l.value || L.VERTICAL]
2635
2653
  // needs to be computed so that default options are reactive
2636
- ), { allOptions: c } = Z(
2654
+ ), { allOptions: c } = K(
2637
2655
  i,
2638
2656
  u
2639
- ), { internalData: d } = We(a), { groupedData: s } = wt(d), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = zo(
2657
+ ), { internalData: d } = Xe(a), { groupedData: s } = Ht(d), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = Zo(
2640
2658
  s,
2641
2659
  l,
2642
2660
  i
2643
2661
  );
2644
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, data: a, orientation: l, options: i, baseOptions: u, allOptions: c, internalData: d, groupedData: s, stackedXScaleGenerator: _, stackedYScaleGenerator: m, LumeChart: ie, LumeBarGroup: Ze };
2662
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, data: a, orientation: l, options: i, baseOptions: u, allOptions: c, internalData: d, groupedData: s, stackedXScaleGenerator: _, stackedYScaleGenerator: m, LumeChart: ie, LumeBarGroup: Ue };
2645
2663
  }
2646
2664
  });
2647
- var ia = function() {
2665
+ var ca = function() {
2648
2666
  var e = this, r = e._self._c, n = e._self._setupProxy;
2649
2667
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.stackedXScaleGenerator, "y-scale": n.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2650
2668
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2653,17 +2671,17 @@ var ia = function() {
2653
2671
  return [e._t(a, null, null, l || {})];
2654
2672
  } };
2655
2673
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2656
- }, sa = [], ca = /* @__PURE__ */ E(
2657
- ua,
2658
- ia,
2674
+ }, da = [], va = /* @__PURE__ */ E(
2659
2675
  sa,
2676
+ ca,
2677
+ da,
2660
2678
  !1,
2661
2679
  null,
2662
2680
  null,
2663
2681
  null,
2664
2682
  null
2665
2683
  );
2666
- const Xa = ca.exports, ct = 2, da = /* @__PURE__ */ w({
2684
+ const Ya = va.exports, vt = 2, _a = /* @__PURE__ */ N({
2667
2685
  __name: "lume-line",
2668
2686
  props: {
2669
2687
  pathDefinition: {
@@ -2672,11 +2690,11 @@ const Xa = ca.exports, ct = 2, da = /* @__PURE__ */ w({
2672
2690
  },
2673
2691
  width: {
2674
2692
  type: Number,
2675
- default: ct
2693
+ default: vt
2676
2694
  },
2677
2695
  color: {
2678
2696
  type: String,
2679
- default: j.Skyblue
2697
+ default: M.Skyblue
2680
2698
  },
2681
2699
  dashed: {
2682
2700
  type: Boolean,
@@ -2697,11 +2715,11 @@ const Xa = ca.exports, ct = 2, da = /* @__PURE__ */ w({
2697
2715
  },
2698
2716
  emits: ["click"],
2699
2717
  setup(t, { emit: e }) {
2700
- const r = I(null);
2701
- return J(() => ye(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ct, emit: e, root: r };
2718
+ const r = O(null);
2719
+ return ee(() => ke(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: vt, emit: e, root: r };
2702
2720
  }
2703
2721
  });
2704
- var va = function() {
2722
+ var pa = function() {
2705
2723
  var e = this, r = e._self._c, n = e._self._setupProxy;
2706
2724
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2707
2725
  [`lume-stroke--${e.color}`]: !0,
@@ -2713,28 +2731,28 @@ var va = function() {
2713
2731
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(o) {
2714
2732
  return n.emit("click", o);
2715
2733
  } } });
2716
- }, _a = [], pa = /* @__PURE__ */ E(
2717
- da,
2718
- va,
2734
+ }, fa = [], ma = /* @__PURE__ */ E(
2719
2735
  _a,
2736
+ pa,
2737
+ fa,
2720
2738
  !1,
2721
2739
  null,
2722
2740
  "08896455",
2723
2741
  null,
2724
2742
  null
2725
2743
  );
2726
- const fa = pa.exports, dt = 4, ma = /* @__PURE__ */ w({
2744
+ const ha = ma.exports, _t = 4, ga = /* @__PURE__ */ N({
2727
2745
  __name: "lume-point",
2728
2746
  props: {
2729
2747
  x: { type: Number, required: !0 },
2730
2748
  y: { type: Number, required: !0 },
2731
2749
  color: {
2732
2750
  type: String,
2733
- default: j.Skyblue
2751
+ default: M.Skyblue
2734
2752
  },
2735
2753
  radius: {
2736
2754
  type: Number,
2737
- default: dt
2755
+ default: _t
2738
2756
  },
2739
2757
  active: {
2740
2758
  type: Boolean,
@@ -2743,27 +2761,27 @@ const fa = pa.exports, dt = 4, ma = /* @__PURE__ */ w({
2743
2761
  },
2744
2762
  emits: ["click"],
2745
2763
  setup(t, { emit: e }) {
2746
- const r = t, n = I(null), o = v(() => r.radius / 2);
2747
- return J(() => ye(n.value)), { __sfc: !0, DEFAULT_RADIUS: dt, props: r, emit: e, root: n, strokeWidth: o };
2764
+ const r = t, n = O(null), o = v(() => r.radius / 2);
2765
+ return ee(() => ke(n.value)), { __sfc: !0, DEFAULT_RADIUS: _t, props: r, emit: e, root: n, strokeWidth: o };
2748
2766
  }
2749
2767
  });
2750
- var ha = function() {
2768
+ var ya = function() {
2751
2769
  var e = this, r = e._self._c, n = e._self._setupProxy;
2752
2770
  return r("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${e.color}`, attrs: { cx: e.x, cy: e.y, r: e.active ? e.radius : 0, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(o) {
2753
2771
  return n.emit("click", o);
2754
2772
  } } });
2755
- }, ga = [], ya = /* @__PURE__ */ E(
2756
- ma,
2757
- ha,
2773
+ }, ba = [], ka = /* @__PURE__ */ E(
2758
2774
  ga,
2775
+ ya,
2776
+ ba,
2759
2777
  !1,
2760
2778
  null,
2761
- "9bacbd7d",
2779
+ "b6745177",
2762
2780
  null,
2763
2781
  null
2764
2782
  );
2765
- const ka = ya.exports;
2766
- function Nt(t) {
2783
+ const xa = ka.exports;
2784
+ function Ct(t) {
2767
2785
  function e(a) {
2768
2786
  let l = null;
2769
2787
  return a == null ? void 0 : a.reduce((i, u, c) => (u == null || u.value == null ? (l ? l.push(c) : l = [c], c === (a == null ? void 0 : a.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
@@ -2791,15 +2809,15 @@ function Nt(t) {
2791
2809
  );
2792
2810
  if (c) {
2793
2811
  const _ = c[0] - 1, m = c[c.length - 1] + 1;
2794
- let f = (d = a.values[_]) == null ? void 0 : d.value, g = (s = a.values[m]) == null ? void 0 : s.value;
2795
- return f == null && (f = g), g == null && (g = f), {
2812
+ let f = (d = a.values[_]) == null ? void 0 : d.value, h = (s = a.values[m]) == null ? void 0 : s.value;
2813
+ return f == null && (f = h), h == null && (h = f), {
2796
2814
  value: r(
2797
2815
  f,
2798
- g,
2816
+ h,
2799
2817
  c.length,
2800
2818
  c.indexOf(u)
2801
2819
  ),
2802
- label: kt
2820
+ label: xt
2803
2821
  };
2804
2822
  }
2805
2823
  return i;
@@ -2807,22 +2825,22 @@ function Nt(t) {
2807
2825
  };
2808
2826
  })) };
2809
2827
  }
2810
- function ba(t, e) {
2828
+ function Ta(t, e) {
2811
2829
  const r = t.bandwidth() / 2;
2812
2830
  return (n, o) => t(t.domain()[e + (o - 1)]) + r;
2813
2831
  }
2814
- function Ta(t, e) {
2832
+ function Aa(t, e) {
2815
2833
  return (r, n) => t(e + (n - 1));
2816
2834
  }
2817
- function xa(t, e, r, n) {
2818
- return Mt().x(
2819
- oe(r) ? ba(r, t) : Ta(r, t)
2835
+ function La(t, e, r, n) {
2836
+ return Wt().x(
2837
+ U(r) ? Ta(r, t) : Aa(r, t)
2820
2838
  ).y((a) => n(a))(e);
2821
2839
  }
2822
- const vt = 1, Aa = /* @__PURE__ */ w({
2840
+ const pt = 1, Oa = /* @__PURE__ */ N({
2823
2841
  __name: "lume-line-group",
2824
2842
  props: {
2825
- ...ke(),
2843
+ ...xe(),
2826
2844
  withPoints: {
2827
2845
  type: Boolean,
2828
2846
  default: !0
@@ -2834,10 +2852,10 @@ const vt = 1, Aa = /* @__PURE__ */ w({
2834
2852
  },
2835
2853
  emits: ["line-click", "point-click", "lume__internal--hover"],
2836
2854
  setup(t, { emit: e }) {
2837
- const r = t, { data: n, options: o, xScale: a, yScale: l } = P(r), i = de(
2855
+ const r = t, { data: n, options: o, xScale: a, yScale: l } = B(r), i = _e(
2838
2856
  "tooltipAnchorAttributes",
2839
2857
  null
2840
- ), { updateTooltipAnchorAttributes: u } = $t(
2858
+ ), { updateTooltipAnchorAttributes: u } = Et(
2841
2859
  i,
2842
2860
  o,
2843
2861
  a,
@@ -2845,71 +2863,71 @@ const vt = 1, Aa = /* @__PURE__ */ w({
2845
2863
  ), c = v(() => {
2846
2864
  if (n.value.every((C) => C.isDashed))
2847
2865
  return n.value;
2848
- const { computedLineData: b } = Nt(n);
2849
- return o.value.withTooltip !== !1 && (i != null && i.value) && u(b.value), b.value;
2866
+ const { computedLineData: k } = Ct(n);
2867
+ return o.value.withTooltip !== !1 && (i != null && i.value) && u(k.value), k.value;
2850
2868
  }), d = v(() => {
2851
2869
  if (r.hoveredIndex === -1)
2852
2870
  return;
2853
- const b = an(
2871
+ const k = un(
2854
2872
  c.value,
2855
2873
  r.hoveredIndex
2856
2874
  );
2857
2875
  return {
2858
- d: `M ${Ne(a.value, r.hoveredIndex)},${l.value.range()[1]}
2859
- V ${l.value(b)}`
2876
+ d: `M ${Ce(a.value, r.hoveredIndex)},${l.value.range()[1]}
2877
+ V ${l.value(k)}`
2860
2878
  // Move to X index, Vertical line to the highest point
2861
2879
  };
2862
2880
  }), s = v(
2863
- () => a.value && vt / (ln(a.value) - 1)
2881
+ () => a.value && pt / (sn(a.value) - 1)
2864
2882
  // Subtracting the first line (read below)
2865
2883
  ), _ = v(
2866
2884
  () => {
2867
- var b;
2868
- return ((b = o.value) == null ? void 0 : b.lineWidth) * 2 || void 0;
2885
+ var k;
2886
+ return ((k = o.value) == null ? void 0 : k.lineWidth) * 2 || void 0;
2869
2887
  }
2870
2888
  // If no `lineWidth`, returns NaN which needs to be undefined
2871
2889
  ), m = v(
2872
2890
  () => a.value.bandwidth() / 2
2873
- ), f = v(() => a.value.domain()), g = v(
2891
+ ), f = v(() => a.value.domain()), h = v(
2874
2892
  () => o.value.withPoints ?? r.withPoints
2875
2893
  );
2876
- function y(b) {
2877
- return c.value[b].values;
2878
- }
2879
- function p(b, C) {
2880
- var R, B;
2881
- const D = b === 0 ? [] : [
2882
- (R = y(C)[b - 1]) == null ? void 0 : R.value,
2883
- (B = y(C)[b]) == null ? void 0 : B.value
2894
+ function y(k) {
2895
+ return c.value[k].values;
2896
+ }
2897
+ function p(k, C) {
2898
+ var P, F;
2899
+ const R = k === 0 ? [] : [
2900
+ (P = y(C)[k - 1]) == null ? void 0 : P.value,
2901
+ (F = y(C)[k]) == null ? void 0 : F.value
2884
2902
  ];
2885
- return xa(
2886
- b,
2887
- D,
2903
+ return La(
2904
+ k,
2905
+ R,
2888
2906
  a.value,
2889
2907
  l.value
2890
2908
  ) || "";
2891
2909
  }
2892
- function T(b) {
2910
+ function x(k) {
2893
2911
  return {
2894
- animationDelay: b < 2 ? 0 : (b - 1) * s.value,
2912
+ animationDelay: k < 2 ? 0 : (k - 1) * s.value,
2895
2913
  animationDuration: s.value
2896
2914
  };
2897
2915
  }
2898
- function A(b, C) {
2899
- var R;
2900
- const D = (R = y(C)[b]) == null ? void 0 : R.value;
2916
+ function A(k, C) {
2917
+ var P;
2918
+ const R = (P = y(C)[k]) == null ? void 0 : P.value;
2901
2919
  return {
2902
- x: oe(a.value) ? r.xScale(f.value[b]) + m.value : r.xScale(b),
2903
- y: l.value(D)
2920
+ x: U(a.value) ? r.xScale(f.value[k]) + m.value : r.xScale(k),
2921
+ y: l.value(R)
2904
2922
  };
2905
2923
  }
2906
- function x(b) {
2907
- return r.hoveredIndex === b;
2924
+ function T(k) {
2925
+ return r.hoveredIndex === k;
2908
2926
  }
2909
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: vt, props: r, emit: e, data: n, options: o, xScale: a, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: c, overlayLineAttributes: d, animationDuration: s, pointRadius: _, xAxisOffset: m, domain: f, computedWithPoints: g, getValuesFromDataset: y, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: A, isPointActive: x, LumeLine: fa, LumePoint: ka };
2927
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: pt, props: r, emit: e, data: n, options: o, xScale: a, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: c, overlayLineAttributes: d, animationDuration: s, pointRadius: _, xAxisOffset: m, domain: f, computedWithPoints: h, getValuesFromDataset: y, getPathDefinition: p, getLineTransitionParams: x, getPointPosition: A, isPointActive: T, LumeLine: ha, LumePoint: xa };
2910
2928
  }
2911
2929
  });
2912
- var La = function() {
2930
+ var Ia = function() {
2913
2931
  var e = this, r = e._self._c, n = e._self._setupProxy;
2914
2932
  return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(o, a) {
2915
2933
  return r("g", { key: o.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(o.values, function(l, i) {
@@ -2922,33 +2940,33 @@ var La = function() {
2922
2940
  } } }, "lume-point", n.getPointPosition(i, a), !1));
2923
2941
  }), 1) : e._e()]);
2924
2942
  })], 2);
2925
- }, Oa = [], $a = /* @__PURE__ */ E(
2926
- Aa,
2927
- La,
2943
+ }, $a = [], Ea = /* @__PURE__ */ E(
2928
2944
  Oa,
2945
+ Ia,
2946
+ $a,
2929
2947
  !1,
2930
2948
  null,
2931
2949
  "c4d7f0ca",
2932
2950
  null,
2933
2951
  null
2934
2952
  );
2935
- const Ct = $a.exports, Ia = {
2936
- margins: re.VERTICAL,
2953
+ const Dt = Ea.exports, wa = {
2954
+ margins: oe.VERTICAL,
2937
2955
  startOnZero: !0,
2938
2956
  withTooltip: !0,
2939
2957
  xAxisOptions: {},
2940
2958
  yAxisOptions: { gridLines: !0 }
2941
- }, Ea = /* @__PURE__ */ w({
2959
+ }, Na = /* @__PURE__ */ N({
2942
2960
  __name: "lume-line-chart",
2943
2961
  props: {
2944
2962
  ...ue(null, !1)
2945
2963
  },
2946
2964
  setup(t, { emit: e }) {
2947
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { options: a } = P(r), { allOptions: l } = Z(a, Ia);
2948
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, options: a, allOptions: l, LumeChart: ie, LumeLineGroup: Ct };
2965
+ const r = t, { componentEventPropagator: n } = J(e), o = ae(V()), { options: a } = B(r), { allOptions: l } = K(a, wa);
2966
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, options: a, allOptions: l, LumeChart: ie, LumeLineGroup: Dt };
2949
2967
  }
2950
2968
  });
2951
- var wa = function() {
2969
+ var Ha = function() {
2952
2970
  var e = this, r = e._self._c, n = e._self._setupProxy;
2953
2971
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2954
2972
  return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", o, !1), n.componentEventPropagator))];
@@ -2957,28 +2975,28 @@ var wa = function() {
2957
2975
  return [e._t(a, null, null, l || {})];
2958
2976
  } };
2959
2977
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2960
- }, Na = [], Ca = /* @__PURE__ */ E(
2961
- Ea,
2962
- wa,
2978
+ }, Ca = [], Da = /* @__PURE__ */ E(
2963
2979
  Na,
2980
+ Ha,
2981
+ Ca,
2964
2982
  !1,
2965
2983
  null,
2966
2984
  null,
2967
2985
  null,
2968
2986
  null
2969
2987
  );
2970
- const Ua = Ca.exports;
2971
- function Ha(t) {
2988
+ const Ka = Da.exports;
2989
+ function Ra(t) {
2972
2990
  return { areaPathDefinition: v(
2973
2991
  () => function(r, n) {
2974
- if (!r || !n)
2992
+ if (!r || !n || U(r) || U(n))
2975
2993
  return;
2976
2994
  const o = t.value[0].values;
2977
- return zt().x((a, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((a) => n(a.value))(o);
2995
+ return Zt().x((a, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((a) => n(a.value))(o);
2978
2996
  }
2979
2997
  ) };
2980
2998
  }
2981
- const Da = {
2999
+ const Pa = {
2982
3000
  margins: {
2983
3001
  top: 0,
2984
3002
  right: 0,
@@ -2992,14 +3010,14 @@ const Da = {
2992
3010
  tooltipOptions: {
2993
3011
  showTitle: !1
2994
3012
  }
2995
- }, Ra = /* @__PURE__ */ w({
3013
+ }, Sa = /* @__PURE__ */ N({
2996
3014
  __name: "lume-sparkline-chart",
2997
3015
  props: {
2998
- ...ze(null),
2999
- ...ve()
3016
+ ...Ze(null),
3017
+ ...pe()
3000
3018
  },
3001
3019
  setup(t, { expose: e, emit: r }) {
3002
- const n = t, { componentEventPropagator: o } = X(r), a = ae(V()), { data: l, options: i } = P(n), { internalData: u } = We(l), { allOptions: c } = Z(i, Da), { computedLineData: d } = Nt(u), { areaPathDefinition: s } = Ha(d), _ = v(() => u.value[0].color), m = v(
3020
+ const n = t, { componentEventPropagator: o } = J(r), a = ae(V()), { data: l, options: i } = B(n), { internalData: u } = Xe(l), { allOptions: c } = K(i, Pa), { computedLineData: d } = Ct(u), { areaPathDefinition: s } = Ra(d), _ = v(() => u.value[0].color), m = v(
3003
3021
  () => l.value[0].areaColor || _.value
3004
3022
  );
3005
3023
  function f(y) {
@@ -3008,15 +3026,15 @@ const Da = {
3008
3026
  noMinSize: !0
3009
3027
  };
3010
3028
  }
3011
- function g(y, p, T) {
3012
- return ce().range([0, T.width]).domain([0, y[0].values.length - 1]);
3029
+ function h(y, p, x) {
3030
+ return ve().range([0, x.width]).domain([0, y[0].values.length - 1]);
3013
3031
  }
3014
3032
  return e({
3015
3033
  areaPathDefinition: s
3016
- }), { __sfc: !0, props: n, emit: r, componentEventPropagator: o, slots: a, data: l, options: i, internalData: u, allOptions: c, computedLineData: d, areaPathDefinition: s, computedColor: _, areaColor: m, getSparklineOptions: f, xScaleGenerator: g, LumeChart: ie, LumeLineGroup: Ct };
3034
+ }), { __sfc: !0, props: n, emit: r, componentEventPropagator: o, slots: a, data: l, options: i, internalData: u, allOptions: c, computedLineData: d, areaPathDefinition: s, computedColor: _, areaColor: m, getSparklineOptions: f, xScaleGenerator: h, LumeChart: ie, LumeLineGroup: Dt };
3017
3035
  }
3018
3036
  });
3019
- var Pa = function() {
3037
+ var Ba = function() {
3020
3038
  var e = this, r = e._self._c, n = e._self._setupProxy;
3021
3039
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
3022
3040
  return [n.allOptions.showArea ? r("path", { class: [
@@ -3030,41 +3048,41 @@ var Pa = function() {
3030
3048
  return [e._t(a, null, null, l || {})];
3031
3049
  } };
3032
3050
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3033
- }, Sa = [], Ba = /* @__PURE__ */ E(
3034
- Ra,
3035
- Pa,
3051
+ }, Fa = [], Ga = /* @__PURE__ */ E(
3036
3052
  Sa,
3053
+ Ba,
3054
+ Fa,
3037
3055
  !1,
3038
3056
  null,
3039
3057
  "c681fff6",
3040
3058
  null,
3041
3059
  null
3042
3060
  );
3043
- const Ya = Ba.exports;
3061
+ const Ja = Ga.exports;
3044
3062
  export {
3045
- Ma as LumeAlluvialDiagram,
3046
- $o as LumeAlluvialGroup,
3047
- Kr as LumeAlluvialNodeLabel,
3048
- to as LumeAlluvialNodeValue,
3049
- En as LumeAxis,
3050
- Me as LumeBar,
3051
- za as LumeBarChart,
3052
- Ze as LumeBarGroup,
3063
+ Wa as LumeAlluvialDiagram,
3064
+ Eo as LumeAlluvialGroup,
3065
+ eo as LumeAlluvialNodeLabel,
3066
+ ao as LumeAlluvialNodeValue,
3067
+ Nn as LumeAxis,
3068
+ We as LumeBar,
3069
+ Za as LumeBarChart,
3070
+ Ue as LumeBarGroup,
3053
3071
  ie as LumeChart,
3054
- Vn as LumeChartContainer,
3055
- Zn as LumeChartLegend,
3056
- Za as LumeGroupedBarChart,
3057
- fa as LumeLine,
3058
- Ua as LumeLineChart,
3059
- Ct as LumeLineGroup,
3060
- wr as LumeOverlayGroup,
3061
- ka as LumePoint,
3062
- Wa as LumeSingleBarChart,
3063
- Ya as LumeSparklineChart,
3064
- Xa as LumeStackedBarChart,
3065
- vr as LumeTooltip,
3066
- ur as LumeTooltipItem,
3067
- nr as LumeTooltipSummary,
3068
- Jn as LumeTooltipTitle
3072
+ Mn as LumeChartContainer,
3073
+ Un as LumeChartLegend,
3074
+ Ua as LumeGroupedBarChart,
3075
+ ha as LumeLine,
3076
+ Ka as LumeLineChart,
3077
+ Dt as LumeLineGroup,
3078
+ Hr as LumeOverlayGroup,
3079
+ xa as LumePoint,
3080
+ Xa as LumeSingleBarChart,
3081
+ Ja as LumeSparklineChart,
3082
+ Ya as LumeStackedBarChart,
3083
+ pr as LumeTooltip,
3084
+ sr as LumeTooltipItem,
3085
+ or as LumeTooltipSummary,
3086
+ qn as LumeTooltipTitle
3069
3087
  };
3070
3088
  //# sourceMappingURL=index.js.map