vue-data-ui 3.20.10 → 3.21.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 (190) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  94. package/dist/ssr.js +1366 -0
  95. package/dist/style.css +1 -1
  96. package/dist/types/ssr.d.ts +128 -0
  97. package/dist/types/vue-data-ui.d.ts +135 -1
  98. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  99. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  100. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  101. package/dist/utils.js +8 -8
  102. package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
  103. package/dist/vue-data-ui.js +72 -72
  104. package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
  105. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  106. package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
  107. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  108. package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
  109. package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
  110. package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
  111. package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
  112. package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
  113. package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
  114. package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
  115. package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
  116. package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
  117. package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
  118. package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
  119. package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
  120. package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
  121. package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
  122. package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
  123. package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
  124. package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
  125. package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
  126. package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
  127. package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
  128. package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
  129. package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
  130. package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
  131. package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
  132. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  133. package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
  134. package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
  135. package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
  136. package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
  137. package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
  138. package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
  139. package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
  140. package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
  141. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  142. package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
  143. package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
  144. package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
  145. package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
  146. package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
  147. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  148. package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
  149. package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
  150. package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
  151. package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
  152. package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
  153. package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
  154. package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
  155. package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
  156. package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
  157. package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
  158. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  159. package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
  160. package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
  161. package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
  162. package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
  163. package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
  164. package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
  165. package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
  166. package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
  167. package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
  168. package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
  169. package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  170. package/package.json +6 -2
  171. package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
  172. package/dist/exposedLib-CI8ji8G-.js +0 -19
  173. package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
  174. package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
  175. package/dist/vue-ui-bullet-rCmOch09.js +0 -710
  176. package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
  177. package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
  178. package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
  179. package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
  180. package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
  181. package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
  182. package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
  183. package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
  184. package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
  185. package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
  186. package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
  187. package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
  188. package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
  189. package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
  190. package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Bt as t, Ct as n, Et as r, G as i, H as a, Mt as o, Nt as s, Rt as c, X as ee, i as l, ot as te, pt as ne, t as re, x as ie, y as u } from "./lib-DUeYQsS0.js";
2
+ import { Bt as t, Ft as n, G as r, H as i, Ht as a, Ot as o, Pt as s, Tt as c, X as ee, ct as te, ht as ne, i as l, t as re, x as ie, y as u } from "./lib-AJRHFE5U.js";
3
3
  import { t as ae } from "./useConfig-DnH7Pf_2.js";
4
4
  import { n as oe, t as se } from "./BaseScanner-Dr2a1Msy.js";
5
- import { t as d } from "./useNestedProp-CNcoy38D.js";
5
+ import { t as d } from "./useNestedProp-DtcXIg7n.js";
6
6
  import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
7
7
  import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { t as ue } from "./BaseLegendToggle-C_Db-y7s.js";
8
+ import { t as ue } from "./BaseLegendToggle-BNRi408o.js";
9
9
  import { t as de } from "./A11yDataTable-BCbtxMU6.js";
10
10
  import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
11
11
  import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
@@ -87,25 +87,25 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
87
87
  },
88
88
  emits: ["selectDatapoint", "selectLegend"],
89
89
  setup(e, { expose: le, emit: xe }) {
90
- let O = ge(() => import("./PackageVersion-BbgWxFC4.js").then((e) => e.t)), Ge = ge(() => import("./Tooltip-BENq327o.js")), { vue_ui_sparkstackbar: Ke } = ae(), { isThemeValid: qe, warnInvalidTheme: Je } = ce(), k = e, Ye = ye();
90
+ let O = ge(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Ge = ge(() => import("./Tooltip-979Ytd8R.js")), { vue_ui_sparkstackbar: Ke } = ae(), { isThemeValid: qe, warnInvalidTheme: Je } = ce(), k = e, Ye = ye();
91
91
  _e(() => {
92
92
  Ye["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
93
93
  });
94
- let Xe = S(null), A = S(a()), j = S(!1), M = S(""), N = S(null), P = S(!1), F = S(null), Ze = S({
94
+ let Xe = S(null), A = S(i()), j = S(!1), Ze = S(""), M = S(null), N = S(!1), P = S(null), Qe = S({
95
95
  x: 0,
96
96
  y: 0
97
- }), I = S("pointer"), L = S(!1), R = S(null), Qe = S([]), z = S(tt()), $e = p(() => z.value.useCursorPointer), et = p(() => t({
97
+ }), F = S("pointer"), I = S(!1), L = S(null), $e = S([]), R = S(H()), et = p(() => R.value.useCursorPointer), tt = p(() => a({
98
98
  defaultConfig: { style: {
99
99
  backgroundColor: "#99999930",
100
100
  animation: { show: !1 },
101
101
  bar: { gradient: { inderlayerColor: "#6A6A6A" } },
102
102
  title: { backgroundColor: "transparent" }
103
103
  } },
104
- userConfig: z.value.skeletonConfig ?? {}
105
- })), { loading: B, FINAL_DATASET: V } = oe({
104
+ userConfig: R.value.skeletonConfig ?? {}
105
+ })), { loading: z, FINAL_DATASET: B } = oe({
106
106
  ...ve(k),
107
- FINAL_CONFIG: z,
108
- prepareConfig: tt,
107
+ FINAL_CONFIG: R,
108
+ prepareConfig: H,
109
109
  skeletonDataset: k.config?.skeletonDataset ?? [
110
110
  {
111
111
  name: "_",
@@ -123,64 +123,64 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
123
123
  color: "#DBDBDB"
124
124
  }
125
125
  ],
126
- skeletonConfig: t({
127
- defaultConfig: z.value,
128
- userConfig: et.value
126
+ skeletonConfig: a({
127
+ defaultConfig: R.value,
128
+ userConfig: tt.value
129
129
  })
130
- }), { svgRef: H } = fe({ config: z.value.style.title });
131
- function tt() {
130
+ }), { svgRef: V } = fe({ config: R.value.style.title });
131
+ function H() {
132
132
  let e = d({
133
133
  userConfig: k.config,
134
134
  defaultConfig: Ke
135
- }), t = e.theme;
136
- if (!t) return e;
135
+ }), n = e.theme;
136
+ if (!n) return e;
137
137
  if (!qe.value(e)) return Je(e), e;
138
- let n = d({
139
- userConfig: pe[t] || k.config,
138
+ let r = d({
139
+ userConfig: pe[n] || k.config,
140
140
  defaultConfig: e
141
141
  }), i = d({
142
142
  userConfig: k.config,
143
- defaultConfig: n
143
+ defaultConfig: r
144
144
  });
145
145
  return {
146
146
  ...i,
147
- customPalette: i.customPalette.length ? i.customPalette : c[t] || r
147
+ customPalette: i.customPalette.length ? i.customPalette : t[n] || o
148
148
  };
149
149
  }
150
150
  be(() => k.config, (e) => {
151
- z.value = tt(), it();
152
- }, { deep: !0 }), be(() => V.value, (e) => {
153
- W.value = V.value.map((e, t) => ({
151
+ R.value = H(), it();
152
+ }, { deep: !0 }), be(() => B.value, (e) => {
153
+ W.value = B.value.map((e, t) => ({
154
154
  ...e,
155
- color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
155
+ color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
156
156
  })), nt();
157
157
  }, { deep: !0 });
158
- let U = p(() => ie(z.value.customPalette)), W = S(V.value.map((e, t) => ({
158
+ let U = p(() => ie(R.value.customPalette)), W = S(B.value.map((e, t) => ({
159
159
  ...e,
160
- value: z.value.style.animation.show ? 0 : e.value || 0,
161
- color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
160
+ value: R.value.style.animation.show ? 0 : e.value || 0,
161
+ color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
162
162
  }))), G = S(!0);
163
163
  function nt() {
164
- if (!z.value.style.animation.show) {
164
+ if (!R.value.style.animation.show) {
165
165
  G.value = !1;
166
166
  return;
167
167
  }
168
- let e = z.value.style.animation.animationFrames, t = V.value.map((e) => e.value || 0), n = t.map((t) => t / e), i = t.reduce((e, t) => e + t, 0), o = 0;
169
- G.value = !0, W.value = V.value.map((e, t) => ({
168
+ let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), a = 0;
169
+ G.value = !0, W.value = B.value.map((e, t) => ({
170
170
  ...e,
171
171
  value: 0,
172
- color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
172
+ color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
173
173
  }));
174
174
  function s() {
175
- o += i / e, o < i ? (W.value = W.value.map((e, i) => ({
175
+ a += r / e, a < r ? (W.value = W.value.map((e, r) => ({
176
176
  ...e,
177
- value: Math.min(e.value + n[i], t[i]),
178
- color: e.color ? u(e.color) : U.value[i] || r[i] || r[i % r.length]
179
- })), requestAnimationFrame(s)) : (G.value = !1, W.value = V.value.map((e, n) => ({
177
+ value: Math.min(e.value + n[r], t[r]),
178
+ color: e.color ? u(e.color) : U.value[r] || o[r] || o[r % o.length]
179
+ })), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((e, n) => ({
180
180
  ...e,
181
181
  value: t[n],
182
- color: e.color ? u(e.color) : U.value[n] || r[n] || r[n % r.length],
183
- id: a()
182
+ color: e.color ? u(e.color) : U.value[n] || o[n] || o[n % o.length],
183
+ id: i()
184
184
  })));
185
185
  }
186
186
  s();
@@ -188,9 +188,9 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
188
188
  _e(() => {
189
189
  it();
190
190
  });
191
- let rt = p(() => z.value.debug);
191
+ let rt = p(() => R.value.debug);
192
192
  function it() {
193
- n(k.dataset) ? ee({
193
+ c(k.dataset) ? ee({
194
194
  componentName: "VueUiSparkStackbar",
195
195
  type: "dataset",
196
196
  debug: rt.value
@@ -212,19 +212,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
212
212
  let K = S({
213
213
  width: 500,
214
214
  height: 16
215
- }), q = S([]), at = p(() => V.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
216
- let n = e.value || 0, a = n / at.value, o = isNaN(a) ? 0 : a, s = o * K.value.width;
215
+ }), q = S([]), at = p(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
216
+ let n = e.value || 0, i = n / at.value, a = isNaN(i) ? 0 : i, s = a * K.value.width;
217
217
  return {
218
218
  ...e,
219
- color: u(V.value[t]?.color ? V.value[t]?.color : U.value[t] || r[t] || r[t % r.length]),
219
+ color: u(B.value[t]?.color ? B.value[t]?.color : U.value[t] || o[t] || o[t % o.length]),
220
220
  value: n,
221
- proportion: o,
221
+ proportion: a,
222
222
  width: s,
223
223
  seriesIndex: t,
224
- proportionLabel: i({
225
- v: o * 100,
224
+ proportionLabel: r({
225
+ v: a * 100,
226
226
  s: "%",
227
- r: z.value.style.legend.percentage.rounding
227
+ r: R.value.style.legend.percentage.rounding
228
228
  })
229
229
  };
230
230
  })), Y = p(() => J.value.filter((e, t) => !q.value.includes(t)));
@@ -237,7 +237,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
237
237
  q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), ut("selectLegend", Y.value);
238
238
  }
239
239
  function st(e) {
240
- return J.value.length ? J.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
240
+ return J.value.length ? J.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
241
241
  }
242
242
  function ct(e) {
243
243
  let t = st(e);
@@ -259,102 +259,102 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
259
259
  ut("selectDatapoint", {
260
260
  datapoint: e,
261
261
  index: t
262
- }), z.value.events.datapointClick && !n && z.value.events.datapointClick({
262
+ }), R.value.events.datapointClick && !n && R.value.events.datapointClick({
263
263
  datapoint: e,
264
264
  seriesIndex: e.seriesIndex
265
265
  });
266
266
  }
267
267
  function dt({ datapoint: e, seriesIndex: t }) {
268
- j.value = !1, R.value = null, F.value = null, I.value = "pointer", z.value.events.datapointLeave && z.value.events.datapointLeave({
268
+ j.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
269
269
  datapoint: e,
270
270
  seriesIndex: e.seriesIndex
271
271
  });
272
272
  }
273
273
  function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
274
- if (P.value = !1, z.value.events.datapointEnter && z.value.events.datapointEnter({
274
+ if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
275
275
  datapoint: e,
276
276
  seriesIndex: e.seriesIndex
277
- }), !z.value.style.tooltip.show) return;
278
- I.value = n, N.value = {
277
+ }), !R.value.style.tooltip.show) return;
278
+ F.value = n, M.value = {
279
279
  datapoint: e,
280
280
  seriesIndex: t,
281
- config: z.value,
281
+ config: R.value,
282
282
  series: J.value
283
- }, j.value = !0, R.value = t;
284
- let r = z.value.style.tooltip.customFormat;
285
- if (ne(r)) try {
286
- let t = r({
283
+ }, j.value = !0, L.value = t;
284
+ let i = R.value.style.tooltip.customFormat;
285
+ if (ne(i)) try {
286
+ let t = i({
287
287
  seriesIndex: e.seriesIndex,
288
288
  datapoint: e,
289
289
  series: J.value,
290
- config: z.value
290
+ config: R.value
291
291
  });
292
- typeof t == "string" && (M.value = t, P.value = !0);
292
+ typeof t == "string" && (Ze.value = t, N.value = !0);
293
293
  } catch {
294
- console.warn("Custom format cannot be applied."), P.value = !1;
294
+ console.warn("Custom format cannot be applied."), N.value = !1;
295
295
  }
296
- if (!P.value) {
296
+ if (!N.value) {
297
297
  let n = "";
298
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${l(z.value.style.legend.value.formatter, e.value, i({
299
- p: z.value.style.legend.value.prefix,
298
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${l(R.value.style.legend.value.formatter, e.value, r({
299
+ p: R.value.style.legend.value.prefix,
300
300
  v: e.value,
301
- s: z.value.style.legend.value.suffix,
302
- r: z.value.style.legend.value.rounding
301
+ s: R.value.style.legend.value.suffix,
302
+ r: R.value.style.legend.value.rounding
303
303
  }), {
304
304
  datapoint: e,
305
305
  seriesIndex: t
306
- })})</span>`, M.value = `<div>${n}</div>`;
306
+ })})</span>`, Ze.value = `<div>${n}</div>`;
307
307
  }
308
308
  }
309
309
  function $(e) {
310
- let t = Qe.value[e];
310
+ let t = $e.value[e];
311
311
  t && typeof t.focus == "function" && t.focus();
312
312
  }
313
313
  function pt(e) {
314
- if (!Number.isFinite(e) || !H.value) return;
314
+ if (!Number.isFinite(e) || !V.value) return;
315
315
  let t = Z.value[e];
316
316
  if (!t) return;
317
- let n = H.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
318
- Ze.value = {
317
+ let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
318
+ Qe.value = {
319
319
  x: n.left + r / K.value.width * n.width,
320
320
  y: n.top + i / K.value.height * n.height
321
321
  };
322
322
  }
323
323
  function mt() {
324
- F.value = null, L.value = !0;
324
+ P.value = null, I.value = !0;
325
325
  }
326
326
  function ht() {
327
- F.value = null, I.value = "pointer", j.value = !1, R.value = null, L.value = !1;
327
+ P.value = null, F.value = "pointer", j.value = !1, L.value = null, I.value = !1;
328
328
  }
329
329
  function gt(e) {
330
- if (!H.value || document.activeElement !== H.value || !Z.value.length) return;
330
+ if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
331
331
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
332
332
  if (!t && !n && !r && !i && !a && !o) return;
333
333
  if (e.preventDefault(), e.stopPropagation(), i) {
334
- F.value = null, I.value = "pointer", j.value = !1, R.value = null;
334
+ P.value = null, F.value = "pointer", j.value = !1, L.value = null;
335
335
  return;
336
336
  }
337
337
  if (r) {
338
- if (F.value === null) return;
339
- let e = Z.value[F.value];
338
+ if (P.value === null) return;
339
+ let e = Z.value[P.value];
340
340
  if (!e) return;
341
341
  Q(e, e.seriesIndex);
342
342
  return;
343
343
  }
344
- let s = F.value;
344
+ let s = P.value;
345
345
  a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
346
346
  let c = Z.value[s];
347
- c && (F.value = s, pt(s), ft({
347
+ c && (P.value = s, pt(s), ft({
348
348
  datapoint: c,
349
349
  seriesIndex: c.seriesIndex,
350
350
  triggerMode: "keyboard"
351
351
  }));
352
352
  }
353
353
  function _t(e) {
354
- j.value = !1, F.value = null, I.value = "pointer", R.value = e.seriesIndex;
354
+ j.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
355
355
  }
356
356
  function vt() {
357
- F.value = null, I.value = "pointer", j.value = !1, R.value = null;
357
+ P.value = null, F.value = "pointer", j.value = !1, L.value = null;
358
358
  }
359
359
  function yt(e, t, n) {
360
360
  let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
@@ -384,18 +384,18 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
384
384
  }
385
385
  let bt = p(() => ({
386
386
  headers: [
387
- z.value.a11y.translations.series,
388
- z.value.a11y.translations.percentage,
389
- z.value.a11y.translations.value
387
+ R.value.a11y.translations.series,
388
+ R.value.a11y.translations.percentage,
389
+ R.value.a11y.translations.value
390
390
  ],
391
391
  rows: J.value.map((e, t) => [
392
392
  e.name,
393
393
  q.value.includes(t) ? " - " : e.proportionLabel,
394
- l(z.value.style.legend.value.formatter, e.value, i({
395
- p: z.value.style.legend.value.prefix,
394
+ l(R.value.style.legend.value.formatter, e.value, r({
395
+ p: R.value.style.legend.value.prefix,
396
396
  v: e.value,
397
- s: z.value.style.legend.value.suffix,
398
- r: z.value.style.legend.value.rounding
397
+ s: R.value.style.legend.value.suffix,
398
+ r: R.value.style.legend.value.rounding
399
399
  }), {
400
400
  datapoint: e,
401
401
  seriesIndex: t
@@ -409,19 +409,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
409
409
  class: "vue-data-ui-component vue-ui-spark-stackbar",
410
410
  ref_key: "sparkstackbarChart",
411
411
  ref: Xe,
412
- style: b(`width:100%; background:${z.value.style.backgroundColor}`)
412
+ style: b(`width:100%; background:${R.value.style.backgroundColor}`)
413
413
  }, [
414
414
  g("div", {
415
415
  id: `chart-instructions-${A.value}`,
416
416
  class: "sr-only"
417
- }, [g("p", null, T(z.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
417
+ }, [g("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
418
418
  bt.value?.rows?.length ? (x(), me(de, {
419
419
  key: 0,
420
420
  uid: A.value,
421
421
  head: bt.value.headers,
422
422
  body: bt.value.rows,
423
- notice: z.value.a11y.translations.tableAvailable,
424
- caption: z.value.a11y.translations.tableCaption
423
+ notice: R.value.a11y.translations.tableAvailable,
424
+ caption: R.value.a11y.translations.tableCaption
425
425
  }, null, 8, [
426
426
  "uid",
427
427
  "head",
@@ -429,20 +429,20 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
429
429
  "notice",
430
430
  "caption"
431
431
  ])) : m("", !0),
432
- z.value.style.title.text ? (x(), h("div", {
432
+ R.value.style.title.text ? (x(), h("div", {
433
433
  key: 1,
434
- style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${z.value.style.title.margin};padding: 0 6px;text-align:${z.value.style.title.textAlign}`)
434
+ style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${R.value.style.title.margin};padding: 0 6px;text-align:${R.value.style.title.textAlign}`)
435
435
  }, [g("div", {
436
436
  class: "atom-title",
437
- style: b(`font-size:${z.value.style.title.fontSize}px;color:${z.value.style.title.color};font-weight:${z.value.style.title.bold ? "bold" : "normal"}`)
438
- }, T(z.value.style.title.text), 5), z.value.style.title.subtitle.text ? (x(), h("div", {
437
+ style: b(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
438
+ }, T(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (x(), h("div", {
439
439
  key: 0,
440
440
  class: "atom-subtitle",
441
- style: b(`font-size:${z.value.style.title.subtitle.fontSize}px;color:${z.value.style.title.subtitle.color};font-weight:${z.value.style.title.subtitle.bold ? "bold" : "normal"}`)
442
- }, T(z.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
441
+ style: b(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
442
+ }, T(R.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
443
443
  g("div", Ce, [(x(), h("svg", {
444
444
  ref_key: "svgRef",
445
- ref: H,
445
+ ref: V,
446
446
  xmlns: E(re),
447
447
  width: "100%",
448
448
  viewBox: `0 0 ${K.value.width} ${K.value.height}`,
@@ -464,7 +464,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
464
464
  }, null, 8, Ee),
465
465
  g("stop", {
466
466
  offset: "50%",
467
- "stop-color": E(o)(E(s)(e.color, .05), 100 - z.value.style.bar.gradient.intensity)
467
+ "stop-color": E(s)(E(n)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
468
468
  }, null, 8, De),
469
469
  g("stop", {
470
470
  offset: "100%",
@@ -477,7 +477,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
477
477
  height: "5",
478
478
  rx: "3",
479
479
  ry: "3",
480
- fill: z.value.style.backgroundColor
480
+ fill: R.value.style.backgroundColor
481
481
  }, null, 8, Ae)])]),
482
482
  at.value > 0 ? (x(), h("g", je, [
483
483
  (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
@@ -486,9 +486,9 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
486
486
  y: 0,
487
487
  width: e.width,
488
488
  height: K.value.height,
489
- fill: z.value.style.bar.gradient.underlayerColor,
490
- class: v({ animated: !G.value && !E(B) }),
491
- style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
489
+ fill: R.value.style.bar.gradient.underlayerColor,
490
+ class: v({ animated: !G.value && !E(z) }),
491
+ style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
492
492
  }, null, 14, Me))), 128)),
493
493
  (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
494
494
  key: `stack_${t}`,
@@ -496,11 +496,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
496
496
  y: 0,
497
497
  width: e.width,
498
498
  height: K.value.height,
499
- fill: z.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
500
- stroke: z.value.style.backgroundColor,
499
+ fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
500
+ stroke: R.value.style.backgroundColor,
501
501
  "stroke-linecap": "round",
502
- class: v({ animated: !G.value && !E(B) }),
503
- style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
502
+ class: v({ animated: !G.value && !E(z) }),
503
+ style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
504
504
  }, null, 14, Ne))), 128)),
505
505
  (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
506
506
  key: `stack_trap_${t}`,
@@ -510,7 +510,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
510
510
  height: K.value.height,
511
511
  fill: "transparent",
512
512
  stroke: "none",
513
- class: v({ animated: !G.value && !E(B) }),
513
+ class: v({ animated: !G.value && !E(z) }),
514
514
  onClick: () => Q(e, t),
515
515
  onMouseenter: () => ft({
516
516
  datapoint: e,
@@ -533,22 +533,22 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
533
533
  rx: (K.value.height - 4) / 2
534
534
  }, null, 8, Fe))
535
535
  ], 40, we)), e.$slots.hint ? (x(), h("div", Ie, [w(e.$slots, "hint", y(_({
536
- hint: z.value.a11y.translations.keyboardNavigation,
537
- isVisible: L.value
536
+ hint: R.value.a11y.translations.keyboardNavigation,
537
+ isVisible: I.value
538
538
  })), void 0, !0)])) : m("", !0)]),
539
- z.value.style.legend.show ? (x(), h("div", {
539
+ R.value.style.legend.show ? (x(), h("div", {
540
540
  key: 2,
541
- style: b(`background:transparent;margin:0 auto;margin:${z.value.style.legend.margin};justify-content:${z.value.style.legend.textAlign === "left" ? "flex-start" : z.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
541
+ style: b(`background:transparent;margin:0 auto;margin:${R.value.style.legend.margin};justify-content:${R.value.style.legend.textAlign === "left" ? "flex-start" : R.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
542
542
  class: "vue-ui-sparkstackbar-legend",
543
543
  "aria-label": "legend",
544
544
  role: "toolbar"
545
- }, [z.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(B) ? (x(), me(ue, {
545
+ }, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(z) ? (x(), me(ue, {
546
546
  key: 0,
547
- backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
548
- color: z.value.style.legend.selectAllToggle.color,
549
- fontSize: z.value.style.legend.fontSize,
547
+ backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
548
+ color: R.value.style.legend.selectAllToggle.color,
549
+ fontSize: R.value.style.legend.fontSize,
550
550
  checked: q.value.length > 0,
551
- isCursorPointer: $e.value,
551
+ isCursorPointer: et.value,
552
552
  onToggle: ot
553
553
  }, null, 8, [
554
554
  "backgroundColor",
@@ -561,7 +561,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
561
561
  tabindex: "0",
562
562
  "aria-pressed": q.value.includes(t),
563
563
  "aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
564
- style: b(`font-size:${z.value.style.legend.fontSize}px;cursor:${$e.value ? "pointer" : "default"}`),
564
+ style: b(`font-size:${R.value.style.legend.fontSize}px;cursor:${et.value ? "pointer" : "default"}`),
565
565
  class: v({
566
566
  "vue-ui-sparkstackbar-legend-item": !0,
567
567
  "vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
@@ -573,12 +573,12 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
573
573
  onBlur: vt,
574
574
  onKeydown: (n) => yt(n, e, t)
575
575
  }, [g("div", Re, [(x(), h("svg", {
576
- height: `${z.value.style.legend.fontSize}px`,
577
- width: `${z.value.style.legend.fontSize}px`,
576
+ height: `${R.value.style.legend.fontSize}px`,
577
+ width: `${R.value.style.legend.fontSize}px`,
578
578
  viewBox: "0 0 10 10"
579
579
  }, [g("defs", null, [g("radialGradient", { id: `legend_grad_${t}-${A.value}` }, [g("stop", {
580
580
  offset: "0%",
581
- "stop-color": E(B) ? "#FFFFFF" : E(o)(E(s)(e.color, .05), 100 - z.value.style.bar.gradient.intensity)
581
+ "stop-color": E(z) ? "#FFFFFF" : E(s)(E(n)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
582
582
  }, null, 8, Ve), g("stop", {
583
583
  offset: "100%",
584
584
  "stop-color": e.color
@@ -586,49 +586,49 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
586
586
  cx: 5,
587
587
  cy: 5,
588
588
  r: 5,
589
- fill: z.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
590
- }, null, 8, Ue)], 8, ze)), E(B) ? m("", !0) : (x(), h(f, { key: 0 }, [g("span", { style: b(`color:${z.value.style.legend.name.color}; font-weight:${z.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(f, { key: 0 }, [z.value.style.legend.percentage.show ? (x(), h("span", {
589
+ fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
590
+ }, null, 8, Ue)], 8, ze)), E(z) ? m("", !0) : (x(), h(f, { key: 0 }, [g("span", { style: b(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(f, { key: 0 }, [R.value.style.legend.percentage.show ? (x(), h("span", {
591
591
  key: 0,
592
- style: b(`font-weight:${z.value.style.legend.percentage.bold ? "bold" : "normal"};color:${z.value.style.legend.percentage.color}`)
593
- }, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), z.value.style.legend.value.show ? (x(), h("span", {
592
+ style: b(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
593
+ }, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), R.value.style.legend.value.show ? (x(), h("span", {
594
594
  key: 1,
595
- style: b(`font-weight:${z.value.style.legend.value.bold ? "bold" : "normal"};color:${z.value.style.legend.value.color}`)
596
- }, " (" + T(E(l)(z.value.style.legend.value.formatter, e.value, E(i)({
597
- p: z.value.style.legend.value.prefix,
595
+ style: b(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
596
+ }, " (" + T(E(l)(R.value.style.legend.value.formatter, e.value, E(r)({
597
+ p: R.value.style.legend.value.prefix,
598
598
  v: e.value,
599
- s: z.value.style.legend.value.suffix,
600
- r: z.value.style.legend.value.rounding
599
+ s: R.value.style.legend.value.suffix,
600
+ r: R.value.style.legend.value.rounding
601
601
  }), {
602
602
  datapoint: e,
603
603
  seriesIndex: t
604
604
  })) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : m("", !0),
605
605
  he(E(Ge), {
606
- teleportTo: z.value.style.tooltip.teleportTo,
607
- show: j.value && z.value.style.tooltip.show,
606
+ teleportTo: R.value.style.tooltip.teleportTo,
607
+ show: j.value && R.value.style.tooltip.show,
608
608
  parent: Xe.value,
609
- backgroundColor: z.value.style.tooltip.backgroundColor,
610
- color: z.value.style.tooltip.color,
611
- fontSize: z.value.style.tooltip.fontSize,
612
- borderRadius: z.value.style.tooltip.borderRadius,
613
- borderColor: z.value.style.tooltip.borderColor,
614
- borderWidth: z.value.style.tooltip.borderWidth,
615
- backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
616
- position: z.value.style.tooltip.position,
617
- content: M.value,
618
- isCustom: P.value,
619
- offsetX: z.value.style.tooltip.offsetX,
620
- offsetY: -124 + z.value.style.tooltip.offsetY,
609
+ backgroundColor: R.value.style.tooltip.backgroundColor,
610
+ color: R.value.style.tooltip.color,
611
+ fontSize: R.value.style.tooltip.fontSize,
612
+ borderRadius: R.value.style.tooltip.borderRadius,
613
+ borderColor: R.value.style.tooltip.borderColor,
614
+ borderWidth: R.value.style.tooltip.borderWidth,
615
+ backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
616
+ position: R.value.style.tooltip.position,
617
+ content: Ze.value,
618
+ isCustom: N.value,
619
+ offsetX: R.value.style.tooltip.offsetX,
620
+ offsetY: -124 + R.value.style.tooltip.offsetY,
621
621
  blockShiftY: !0,
622
- smooth: z.value.style.tooltip.smooth,
623
- backdropFilter: z.value.style.tooltip.backdropFilter,
624
- smoothForce: z.value.style.tooltip.smoothForce,
625
- smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
626
- isA11yMode: I.value === "keyboard",
627
- a11yPosition: Ze.value
622
+ smooth: R.value.style.tooltip.smooth,
623
+ backdropFilter: R.value.style.tooltip.backdropFilter,
624
+ smoothForce: R.value.style.tooltip.smoothForce,
625
+ smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
626
+ isA11yMode: F.value === "keyboard",
627
+ a11yPosition: Qe.value
628
628
  }, {
629
- "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...N.value })), void 0, !0)]),
630
- tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...N.value })), void 0, !0)]),
631
- "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...N.value })), void 0, !0)]),
629
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...M.value })), void 0, !0)]),
630
+ tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...M.value })), void 0, !0)]),
631
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...M.value })), void 0, !0)]),
632
632
  _: 3
633
633
  }, 8, [
634
634
  "teleportTo",
@@ -654,7 +654,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
654
654
  "a11yPosition"
655
655
  ]),
656
656
  e.$slots.source ? (x(), h("div", We, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
657
- w(e.$slots, "skeleton", {}, () => [E(B) ? (x(), me(se, { key: 0 })) : m("", !0)], !0)
657
+ w(e.$slots, "skeleton", {}, () => [E(z) ? (x(), me(se, { key: 0 })) : m("", !0)], !0)
658
658
  ], 4));
659
659
  }
660
660
  }, [["__scopeId", "data-v-706a37e5"]]);