vue-data-ui 3.4.9 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,24 +1,24 @@
1
- import { useCssVars as Kt, defineAsyncComponent as K, useSlots as Qt, computed as g, ref as i, toRefs as Jt, watch as ze, shallowRef as ct, onMounted as Ve, nextTick as he, onBeforeUnmount as Zt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as X, createBlock as G, createCommentVNode as y, renderSlot as k, createVNode as Q, createSlots as pe, withCtx as b, normalizeProps as J, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as dt, resolveDynamicComponent as ea, withKeys as ta, createTextVNode as ht } from "vue";
2
- import { c as aa, t as la, b as oa, p as W, O as Oe, e as na, x as L, o as Ie, f as ue, h as Fe, a as se, d as D, X as ua, s as Me, i as sa, P as ra, Q as ia, G as va, H as ca } from "./lib-C_mNZmhD.js";
3
- import { t as da, u as ha } from "./useResponsive-DfdjqQps.js";
4
- import { u as pa, a as pt } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as ga, B as fa } from "./BaseScanner-BgWxam9d.js";
6
- import { u as ya } from "./usePrinter-DTzqpYKF.js";
7
- import { u as ba } from "./useSvgExport-DrjCWun4.js";
8
- import { u as ma } from "./useTableResponsive-Cbx-ACcP.js";
9
- import { u as ka } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as xa } from "./useChartAccessibility-9icAAmYg.js";
11
- import { t as _a } from "./themes-AUNCOb2G.js";
1
+ import { useCssVars as Zt, defineAsyncComponent as Z, useSlots as ea, computed as g, ref as i, toRefs as ta, watch as ze, shallowRef as ct, onMounted as Ve, nextTick as he, onBeforeUnmount as aa, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as c, normalizeClass as H, createBlock as j, createCommentVNode as m, renderSlot as y, createVNode as ee, withCtx as h, normalizeProps as O, guardReactiveProps as I, createSlots as pe, createElementVNode as n, toDisplayString as p, Fragment as te, renderList as ae, mergeProps as ht, resolveDynamicComponent as la, withKeys as oa, createTextVNode as pt } from "vue";
2
+ import { c as na, t as ua, b as sa, p as q, O as Oe, e as ra, x as P, o as Ie, f as ue, h as Fe, a as se, d as R, X as ia, s as Be, i as va, P as da, Q as ca, G as ha, H as pa } from "./lib-C_mNZmhD.js";
3
+ import { t as fa, u as ga } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ya, a as ft } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as ba, B as ma } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as ka } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as xa } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as wa } from "./useTableResponsive-Cbx-ACcP.js";
9
+ import { u as $a } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as _a } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { t as Ca } from "./themes-AUNCOb2G.js";
12
12
  import gt from "./Legend-G6GMcdAc.js";
13
- import wa from "./vue-ui-accordion-CZ0thhxa.js";
14
- import $a from "./Title-l36lOBMx.js";
15
- import { _ as ft } from "./Shape-CNXKB8O0.js";
16
- import Ca from "./img-BecE5qXd.js";
17
- import { _ as Ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "width", "height"], Aa = ["id"], za = ["stop-color"], Va = ["stop-color"], Oa = { key: 1 }, Ia = ["x", "y", "width", "height", "fill", "rx"], Fa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ma = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = { class: "vue-ui-horizontal-bar-child-label" }, Ea = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Ua = ["x", "y", "font-size", "fill", "font-weight"], Xa = { class: "vue-ui-horizontal-bar-parent-label" }, Ga = ["x", "y", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ha = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], ja = {
13
+ import Ta from "./vue-ui-accordion-CqhVCfc2.js";
14
+ import Sa from "./Title-isbiM8i8.js";
15
+ import { _ as yt } from "./Shape-CNXKB8O0.js";
16
+ import La from "./img-BecE5qXd.js";
17
+ import { _ as Pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "width", "height"], Oa = ["id"], Ia = ["stop-color"], Fa = ["stop-color"], Ba = { key: 1 }, Ma = ["x", "y", "width", "height", "fill", "rx"], Da = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ra = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = { class: "vue-ui-horizontal-bar-child-label" }, Ga = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ha = { class: "vue-ui-horizontal-bar-parent-label" }, ja = ["x", "y", "font-size", "fill", "font-weight"], qa = ["x", "y", "font-size", "fill", "font-weight"], Ya = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ka = {
19
19
  key: 5,
20
20
  class: "vue-data-ui-watermark"
21
- }, qa = ["onClick"], Ya = { style: "width:100%;padding-top: 36px;position:relative" }, Ka = { class: "vue-ui-data-table" }, Qa = { key: 0 }, Ja = { style: { width: "100%" } }, Za = ["data-cell"], el = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, tl = ["data-cell"], al = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ll = ["data-cell"], ol = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, nl = ["data-cell"], ul = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sl = ["data-cell"], rl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, il = ["data-cell"], vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, cl = ["data-cell"], dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, hl = {
21
+ }, Qa = ["onClick"], Ja = { style: "width:100%;padding-top: 36px;position:relative" }, Za = { class: "vue-ui-data-table" }, el = { key: 0 }, tl = { style: { width: "100%" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = ["data-cell"], nl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ul = ["data-cell"], sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, rl = ["data-cell"], il = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, vl = ["data-cell"], dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, cl = ["data-cell"], hl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gl = {
22
22
  __name: "vue-ui-vertical-bar",
23
23
  props: {
24
24
  config: {
@@ -35,35 +35,35 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
35
35
  }
36
36
  },
37
37
  emits: ["selectLegend"],
38
- setup(yt, { expose: bt, emit: mt }) {
39
- Kt((t) => ({
40
- v40c2e850: t.tdo
38
+ setup(bt, { expose: mt, emit: kt }) {
39
+ Zt((t) => ({
40
+ bc1c4d4c: t.tdo
41
41
  }));
42
- const kt = K(() => import("./Tooltip-oWCO1HKy.js")), De = K(() => import("./BaseIcon-BmMbm4d0.js")), xt = K(() => import("./PenAndPaper-DSvu9dwa.js")), _t = K(() => import("./UserOptions-CGnQt6Fd.js")), wt = K(() => import("./PackageVersion-CTUqGqWV.js")), $t = K(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_vertical_bar: Ct } = pa(), Tt = Qt(), m = yt, ge = g({
42
+ const xt = Z(() => import("./Tooltip-oWCO1HKy.js")), Me = Z(() => import("./BaseIcon-BmMbm4d0.js")), wt = Z(() => import("./PenAndPaper-SZQIAgkg.js")), $t = Z(() => import("./UserOptions-CGnQt6Fd.js")), _t = Z(() => import("./PackageVersion-DQvyATVa.js")), Ct = Z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_vertical_bar: Tt } = ya(), St = ea(), k = bt, fe = g({
43
43
  get() {
44
- return !!m.dataset && m.dataset.length;
44
+ return !!k.dataset && k.dataset.length;
45
45
  },
46
46
  set(t) {
47
47
  return t;
48
48
  }
49
- }), S = i(aa()), fe = i(!1), ye = i(""), ae = i(0), St = i(null), Be = i(0), P = i(null), Re = i(null), be = i(null), Ee = i(null), Ue = i(null), Xe = i(0), me = i(0), H = i(null), le = i(null), ke = i(null), Lt = mt, e = i(Ce()), Pt = g(() => [
49
+ }), L = i(na()), ge = i(!1), ye = i(""), le = i(0), Lt = i(null), De = i(0), N = i(null), Re = i(null), be = i(null), Ee = i(null), Ue = i(null), Xe = i(0), me = i(0), Y = i(null), oe = i(null), ke = i(null), Pt = kt, e = i(Ce()), Nt = g(() => [
50
50
  { name: "", value: 6, color: "#d9d9d9" },
51
51
  { name: "", value: 5, color: "#d9d9d9" },
52
52
  { name: "", value: 4, color: "#d9d9d9" },
53
53
  { name: "", value: 3, color: "#d9d9d9" },
54
54
  { name: "", value: 2, color: "#d9d9d9" },
55
55
  { name: "", value: 1, color: "#d9d9d9" }
56
- ]), { loading: Ge, FINAL_DATASET: xe, manualLoading: _e } = ga({
57
- ...Jt(m),
56
+ ]), { loading: Ge, FINAL_DATASET: xe, manualLoading: we } = ba({
57
+ ...ta(k),
58
58
  FINAL_CONFIG: e,
59
59
  prepareConfig: Ce,
60
60
  callback: () => {
61
61
  Promise.resolve().then(async () => {
62
- q(), $.value.showTable = e.value.table.show, await F();
62
+ Q(), _.value.showTable = e.value.table.show, await M();
63
63
  });
64
64
  },
65
- skeletonDataset: Pt.value,
66
- skeletonConfig: la({
65
+ skeletonDataset: Nt.value,
66
+ skeletonConfig: ua({
67
67
  defaultConfig: e.value,
68
68
  userConfig: {
69
69
  useCssAnimation: !1,
@@ -109,57 +109,57 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
109
109
  }
110
110
  }
111
111
  })
112
- }), { userOptionsVisible: we, setUserOptionsVisibility: We, keepUserOptionState: He } = ka({ config: e.value }), { svgRef: $e } = xa({ config: e.value.style.chart.title });
112
+ }), { userOptionsVisible: $e, setUserOptionsVisibility: We, keepUserOptionState: He } = $a({ config: e.value }), { svgRef: _e } = _a({ config: e.value.style.chart.title });
113
113
  function Ce() {
114
- const t = pt({
115
- userConfig: m.config,
116
- defaultConfig: Ct
114
+ const t = ft({
115
+ userConfig: k.config,
116
+ defaultConfig: Tt
117
117
  });
118
118
  let l = {};
119
119
  return t.theme ? l = {
120
- ...pt({
121
- userConfig: _a.vue_ui_vertical_bar[t.theme] || m.config,
120
+ ...ft({
121
+ userConfig: Ca.vue_ui_vertical_bar[t.theme] || k.config,
122
122
  defaultConfig: t
123
123
  }),
124
- customPalette: oa[t.theme] || W
125
- } : l = t, m.config && Oe(m.config, "events.datapointEnter") ? l.events.datapointEnter = m.config.events.datapointEnter : l.events.datapointEnter = null, m.config && Oe(m.config, "events.datapointLeave") ? l.events.datapointLeave = m.config.events.datapointLeave : l.events.datapointLeave = null, m.config && Oe(m.config, "events.datapointClick") ? l.events.datapointClick = m.config.events.datapointClick : l.events.datapointClick = null, l;
124
+ customPalette: sa[t.theme] || q
125
+ } : l = t, k.config && Oe(k.config, "events.datapointEnter") ? l.events.datapointEnter = k.config.events.datapointEnter : l.events.datapointEnter = null, k.config && Oe(k.config, "events.datapointLeave") ? l.events.datapointLeave = k.config.events.datapointLeave : l.events.datapointLeave = null, k.config && Oe(k.config, "events.datapointClick") ? l.events.datapointClick = k.config.events.datapointClick : l.events.datapointClick = null, l;
126
126
  }
127
- ze(() => m.config, (t) => {
128
- Ge.value || (e.value = Ce()), we.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
129
- }, { deep: !0 }), ze(() => m.dataset, (t) => {
130
- Array.isArray(t) && t.length > 0 && (_e.value = !1), q();
127
+ ze(() => k.config, (t) => {
128
+ Ge.value || (e.value = Ce()), $e.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, f.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, _.value.showTable = e.value.table.show, _.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", _.value.showTooltip = e.value.style.chart.tooltip.show;
129
+ }, { deep: !0 }), ze(() => k.dataset, (t) => {
130
+ Array.isArray(t) && t.length > 0 && (we.value = !1), Q();
131
131
  }, { deep: !0 });
132
- const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } = ya({
133
- elementId: `vue-ui-vertical-bar_${S.value}`,
132
+ const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } = ka({
133
+ elementId: `vue-ui-vertical-bar_${L.value}`,
134
134
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
135
135
  options: e.value.userOptions.print
136
- }), Nt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() => na(e.value.customPalette)), Je = i(null), At = g(() => e.value.table.responsiveBreakpoint), I = ct(null), j = ct(null), re = i("0 0 10 10"), N = g(() => {
136
+ }), At = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() => ra(e.value.customPalette)), Je = i(null), zt = g(() => e.value.table.responsiveBreakpoint), B = ct(null), K = ct(null), re = i("0 0 10 10"), A = g(() => {
137
137
  const [t, l, a, o] = re.value.split(" ").map(Number);
138
138
  return { x: t, y: l, width: a, height: o };
139
139
  });
140
140
  Ve(async () => {
141
- await he(), et(), F();
141
+ await he(), et(), M();
142
142
  });
143
- async function F() {
144
- if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !H.value) return;
145
- const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
143
+ async function M() {
144
+ if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !Y.value) return;
145
+ const t = Y.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = Y.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
146
146
  if (t && t.length) {
147
- const f = Math.max(...Array.from(t).flatMap((c) => {
148
- const _ = c.querySelectorAll("text");
149
- return _.length ? Array.from(_).map((Y) => Y.getBBox().width) : 0;
150
- })), w = Math.max(...Array.from(l).flatMap((c) => {
151
- const _ = c.querySelectorAll("text");
152
- return _.length ? Array.from(_).map((Y) => Y.getBBox().width) : 0;
147
+ const b = Math.max(...Array.from(t).flatMap((d) => {
148
+ const w = d.querySelectorAll("text");
149
+ return w.length ? Array.from(w).map((J) => J.getBBox().width) : 0;
150
+ })), $ = Math.max(...Array.from(l).flatMap((d) => {
151
+ const w = d.querySelectorAll("text");
152
+ return w.length ? Array.from(w).map((J) => J.getBBox().width) : 0;
153
153
  }));
154
- Array.from(t).forEach((c) => {
155
- const _ = c.querySelectorAll("text");
156
- Array.from(_).forEach(async (Y) => {
157
- Y.setAttribute("x", 0), Y.setAttribute("x", L(-f - w));
154
+ Array.from(t).forEach((d) => {
155
+ const w = d.querySelectorAll("text");
156
+ Array.from(w).forEach(async (J) => {
157
+ J.setAttribute("x", 0), J.setAttribute("x", P(-b - $));
158
158
  });
159
159
  });
160
160
  }
161
161
  await he();
162
- const a = H.value ? H.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
162
+ const a = Y.value ? Y.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
163
163
  re.value = [
164
164
  a.x + -o,
165
165
  0,
@@ -169,28 +169,28 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
169
169
  }
170
170
  let Ze;
171
171
  Ve(() => {
172
- P.value && (Ze = new ResizeObserver((t) => {
172
+ N.value && (Ze = new ResizeObserver((t) => {
173
173
  for (const l of t) {
174
174
  const { width: a, height: o } = l.contentRect;
175
175
  if (a > 0 && o > 0) {
176
176
  Promise.resolve().then(async () => {
177
- q(), await F();
177
+ Q(), await M();
178
178
  });
179
179
  break;
180
180
  }
181
181
  }
182
- }), Ze.observe(P.value.parentElement));
182
+ }), Ze.observe(N.value.parentElement));
183
183
  });
184
184
  const ie = g(() => !!e.value.debug), Te = i(0);
185
185
  function et() {
186
- if (Ie(m.dataset) && (ue({
186
+ if (Ie(k.dataset) && (ue({
187
187
  componentName: "VueUiVerticalBar",
188
188
  type: "dataset",
189
189
  debug: ie.value
190
- }), ge.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(m.dataset) || (_e.value = e.value.loading), e.value.responsive) {
191
- const t = da(() => {
192
- const { width: l, height: a } = ha({
193
- chart: P.value,
190
+ }), fe.value = !1, we.value = !0), le.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(k.dataset) || (we.value = e.value.loading), e.value.responsive) {
191
+ const t = fa(() => {
192
+ const { width: l, height: a } = ga({
193
+ chart: N.value,
194
194
  title: e.value.style.chart.title.text ? Re.value : null,
195
195
  legend: e.value.style.chart.legend.show ? be.value : null,
196
196
  source: Ee.value,
@@ -198,21 +198,21 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
198
198
  });
199
199
  Te.value = a / 3, requestAnimationFrame(async () => {
200
200
  lt.value = l;
201
- const o = x.value * (ae.value - 1);
202
- p.value = (a - o) / ae.value, await he(), F();
201
+ const o = x.value * (le.value - 1);
202
+ f.value = (a - o) / le.value, await he(), M();
203
203
  });
204
204
  });
205
- I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect()), I.value = new ResizeObserver(t), j.value = P.value.parentNode, I.value.observe(j.value), e.value.autoSize && F();
205
+ B.value && (K.value && B.value.unobserve(K.value), B.value.disconnect()), B.value = new ResizeObserver(t), K.value = N.value.parentNode, B.value.observe(K.value), e.value.autoSize && M();
206
206
  }
207
207
  }
208
- Zt(() => {
209
- I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect());
208
+ aa(() => {
209
+ B.value && (K.value && B.value.unobserve(K.value), B.value.disconnect());
210
210
  });
211
- const $ = i({
211
+ const _ = i({
212
212
  showTable: e.value.table.show,
213
213
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
214
214
  showTooltip: e.value.style.chart.tooltip.show
215
- }), tt = g(() => $.value.sortDesc), O = g(() => (xe.value.forEach((t, l) => {
215
+ }), tt = g(() => _.value.sortDesc), z = g(() => (xe.value.forEach((t, l) => {
216
216
  !t.value && !t.children && ue({
217
217
  componentName: "VueUiVerticalBar",
218
218
  type: "datasetAttributeEmpty",
@@ -234,37 +234,37 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
234
234
  });
235
235
  }));
236
236
  }), xe.value.map((t, l) => {
237
- const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, f = L(t.value ? t.value : o ? t.children.map((c) => c.value || 0).reduce((c, _) => c + _, 0) : 0), w = f >= 0 ? 1 : -1;
237
+ const a = `vertical_parent_${l}_${L.value}`, o = t.children && t.children.length > 0, b = P(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, w) => d + w, 0) : 0), $ = b >= 0 ? 1 : -1;
238
238
  return {
239
239
  ...t,
240
240
  id: a,
241
241
  absoluteIndex: l,
242
242
  shape: "square",
243
- opacity: A.value.includes(a) ? 0.5 : 1,
244
- value: Math.abs(f),
245
- sign: w,
243
+ opacity: T.value.includes(a) ? 0.5 : 1,
244
+ value: Math.abs(b),
245
+ sign: $,
246
246
  hasChildren: o,
247
247
  isChild: !1,
248
- segregate: () => oe(a),
249
- isSegregated: A.value.includes(a),
250
- color: Fe(t.color) || Qe.value[l] || W[l] || W[l % W.length],
251
- children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (c, _) => tt.value ? _.value - c.value : c.value - _.value).map((c, _) => ({
252
- ...c,
253
- value: L(Math.abs(c.value)),
248
+ segregate: () => E(a),
249
+ isSegregated: T.value.includes(a),
250
+ color: Fe(t.color) || Qe.value[l] || q[l] || q[l % q.length],
251
+ children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (d, w) => tt.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
252
+ ...d,
253
+ value: P(Math.abs(d.value)),
254
254
  absoluteIndex: l,
255
- sign: c.value >= 0 ? 1 : -1,
255
+ sign: d.value >= 0 ? 1 : -1,
256
256
  isChild: !0,
257
257
  parentId: a,
258
258
  parentName: t.name,
259
- parentValue: f,
260
- parentSign: w,
261
- id: `vertical_child_${l}_${_}_${S.value}`,
262
- childIndex: _,
263
- color: Fe(c.color) || Fe(t.color) || Qe.value[l] || W[l] || W[l % W.length]
264
- })).map((c, _) => ({
265
- ...c,
266
- isFirstChild: _ === 0,
267
- isLastChild: _ === t.children.length - 1
259
+ parentValue: b,
260
+ parentSign: $,
261
+ id: `vertical_child_${l}_${w}_${L.value}`,
262
+ childIndex: w,
263
+ color: Fe(d.color) || Fe(t.color) || Qe.value[l] || q[l] || q[l % q.length]
264
+ })).map((d, w) => ({
265
+ ...d,
266
+ isFirstChild: w === 0,
267
+ isLastChild: w === t.children.length - 1
268
268
  }))
269
269
  };
270
270
  }).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at = g(() => ({
@@ -274,9 +274,9 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
274
274
  fontSize: e.value.style.chart.legend.fontSize,
275
275
  paddingBottom: 12,
276
276
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
277
- })), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), zt = g(() => (p.value + x.value) * ae.value), lt = i(512), C = g(() => ({
277
+ })), f = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), Vt = g(() => (f.value + x.value) * le.value), lt = i(512), C = g(() => ({
278
278
  width: lt.value,
279
- height: zt.value,
279
+ height: Vt.value,
280
280
  padding: {
281
281
  top: 12,
282
282
  left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
@@ -291,114 +291,128 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
291
291
  bottom: C.value.padding.top + C.value.height,
292
292
  width: C.value.width - (C.value.padding.left + C.value.padding.right)
293
293
  }));
294
- async function q() {
295
- ae.value = B.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await F();
294
+ async function Q() {
295
+ le.value = U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await M();
296
296
  }
297
- const A = i([]);
298
- async function oe(t) {
299
- if (A.value.includes(t))
300
- A.value = A.value.filter((l) => l !== t);
297
+ const T = i([]);
298
+ async function E(t) {
299
+ if (T.value.includes(t))
300
+ T.value = T.value.filter((l) => l !== t);
301
301
  else {
302
- if (A.value.length === O.value.length - 1) return;
303
- A.value.push(t);
302
+ if (T.value.length === z.value.length - 1) return;
303
+ T.value.push(t);
304
304
  }
305
- q(), await he(), e.value.autoSize && F(), Lt("selectLegend", B.value);
305
+ Q(), await he(), e.value.autoSize && M(), Pt("selectLegend", U.value);
306
306
  }
307
- const B = g(() => O.value.filter((t) => !A.value.includes(t.id))), V = g(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
308
- function ot(t, l = !1, a = 0) {
309
- return l ? D({
310
- v: L(Math.abs(t) / V.value * 100),
307
+ function ot(t) {
308
+ if (!z.value.length)
309
+ return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
310
+ const l = z.value.find((a) => a.name === t);
311
+ return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
312
+ }
313
+ function Ot(t) {
314
+ const l = ot(t);
315
+ l !== null && T.value.includes(l.id) && E(l.id);
316
+ }
317
+ function It(t) {
318
+ const l = ot(t);
319
+ l !== null && (T.value.includes(l.id) || E(l.id));
320
+ }
321
+ const U = g(() => z.value.filter((t) => !T.value.includes(t.id))), F = g(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
322
+ function nt(t, l = !1, a = 0) {
323
+ return l ? R({
324
+ v: P(Math.abs(t) / F.value * 100),
311
325
  s: "%",
312
326
  r: a
313
- }) : Math.abs(t) / V.value;
327
+ }) : Math.abs(t) / F.value;
314
328
  }
315
- const R = g(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), E = g(() => R.value.map((t) => t.sign).includes(-1)), Vt = g(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
316
- function T(t) {
317
- const l = t / Vt.value;
318
- return r.value.width / (E.value ? 2 : 1) * l;
329
+ const X = g(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), G = g(() => X.value.map((t) => t.sign).includes(-1)), Ft = g(() => Math.max(...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
330
+ function S(t) {
331
+ const l = t / Ft.value;
332
+ return r.value.width / (G.value ? 2 : 1) * l;
319
333
  }
320
- function Ot(t) {
321
- return T(t) + r.value.left;
334
+ function Bt(t) {
335
+ return S(t) + r.value.left;
322
336
  }
323
337
  function ne(t, l) {
324
- const a = B.value.find((w) => w.id === t.parentId), o = r.value.top + (x.value + p.value) * l, f = a.children.length * (x.value + p.value);
338
+ const a = U.value.find(($) => $.id === t.parentId), o = r.value.top + (x.value + f.value) * l, b = a.children.length * (x.value + f.value);
325
339
  return {
326
- y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
340
+ y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
327
341
  name: a.name,
328
342
  value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
329
- percentageToTotal: isNaN(a.value / V.value) ? "" : ot(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
343
+ percentageToTotal: isNaN(a.value / F.value) ? "" : nt(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
330
344
  sign: a.sign
331
345
  };
332
346
  }
333
- function It() {
334
- return B.value;
347
+ function Mt() {
348
+ return U.value;
335
349
  }
336
350
  const Se = i(null), Le = i(null);
337
- function Ft({ datapoint: t, seriesIndex: l }) {
351
+ function Dt({ datapoint: t, seriesIndex: l }) {
338
352
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
339
353
  }
340
- function Mt({ datapoint: t, seriesIndex: l }) {
341
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), St.value = null, fe.value = !1, Se.value = null;
354
+ function Rt({ datapoint: t, seriesIndex: l }) {
355
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Lt.value = null, ge.value = !1, Se.value = null;
342
356
  }
343
- function Dt(t, l) {
357
+ function Et(t, l) {
344
358
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Le.value = {
345
359
  datapoint: t,
346
360
  seriesIndex: l,
347
- series: O.value,
361
+ series: z.value,
348
362
  config: e.value
349
- }, fe.value = !0, Se.value = t.id;
363
+ }, ge.value = !0, Se.value = t.id;
350
364
  let a = "";
351
- const o = t.isChild ? t.parentName : t.name, f = t.isChild ? t.name : "", w = e.value.style.chart.tooltip.customFormat;
352
- va(w) && ca(() => w({
365
+ const o = t.isChild ? t.parentName : t.name, b = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
366
+ ha($) && pa(() => $({
353
367
  datapoint: t,
354
- series: O.value,
368
+ series: z.value,
355
369
  config: e.value,
356
370
  seriesIndex: l
357
- })) ? ye.value = w({
371
+ })) ? ye.value = $({
358
372
  datapoint: t,
359
- series: O.value,
373
+ series: z.value,
360
374
  config: e.value,
361
375
  seriesIndex: l
362
376
  }) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
363
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${Tt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
364
- ${f ? `<div>${f}</div>` : ""}
377
+ <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${St.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${L.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
378
+ ${b ? `<div>${b}</div>` : ""}
365
379
  </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${se(
366
380
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
367
381
  t.sign === 1 ? t.value : -t.value,
368
- D({
382
+ R({
369
383
  p: e.value.style.chart.tooltip.prefix,
370
384
  v: t.sign === 1 ? t.value : -t.value,
371
385
  s: e.value.style.chart.tooltip.suffix,
372
386
  r: e.value.style.chart.tooltip.roundingValue
373
387
  }),
374
388
  { datapoint: t, seriesIndex: l }
375
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${D({
376
- v: Math.abs(t.value) / V.value * 100,
389
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${R({
390
+ v: Math.abs(t.value) / F.value * 100,
377
391
  s: "%",
378
392
  r: e.value.style.chart.tooltip.roundingPercentage
379
- })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${D({
393
+ })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${R({
380
394
  v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
381
395
  s: "%",
382
396
  r: e.value.style.chart.tooltip.roundingPercentage
383
397
  })}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
384
398
  }
385
- function nt(t, l, a, o) {
399
+ function ut(t, l, a, o) {
386
400
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
387
401
  return "";
388
- const f = se(
402
+ const b = se(
389
403
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
390
- L(o === -1 && t >= 0 ? -t : t),
391
- D({
404
+ P(o === -1 && t >= 0 ? -t : t),
405
+ R({
392
406
  p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
393
- v: L(o === -1 && t >= 0 ? -t : t),
407
+ v: P(o === -1 && t >= 0 ? -t : t),
394
408
  s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
395
409
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
396
410
  }),
397
411
  { datapoint: l, seriesIndex: a }
398
- ), w = `(${ot(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
399
- return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
412
+ ), $ = `(${nt(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
413
+ return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
400
414
  }
401
- const z = g(() => {
415
+ const V = g(() => {
402
416
  const t = [
403
417
  e.value.translations.parentName,
404
418
  e.value.translations.value,
@@ -407,15 +421,15 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
407
421
  e.value.translations.value,
408
422
  e.value.translations.percentageToSerie,
409
423
  e.value.translations.percentageToTotal
410
- ], l = R.value.map((a) => a.isChild ? a.isFirstChild ? {
424
+ ], l = X.value.map((a) => a.isChild ? a.isFirstChild ? {
411
425
  color: a.color,
412
426
  parentName: a.parentName,
413
427
  parentValue: a.parentValue,
414
- percentageToTotal: a.parentValue / V.value,
428
+ percentageToTotal: a.parentValue / F.value,
415
429
  childName: a.name,
416
430
  childValue: a.sign === 1 ? a.value : -a.value,
417
431
  childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
418
- childPercentageToTotal: Math.abs(a.value) / V.value
432
+ childPercentageToTotal: Math.abs(a.value) / F.value
419
433
  } : {
420
434
  color: "",
421
435
  parentName: "",
@@ -424,12 +438,12 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
424
438
  childName: a.name,
425
439
  childValue: a.sign === 1 ? a.value : -a.value,
426
440
  childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
427
- childPercentageToTotal: Math.abs(a.value) / V.value
441
+ childPercentageToTotal: Math.abs(a.value) / F.value
428
442
  } : {
429
443
  color: a.color,
430
444
  parentName: a.name,
431
445
  parentValue: a.sign === 1 ? a.value : -a.value,
432
- percentageToTotal: Math.abs(a.value) / V.value,
446
+ percentageToTotal: Math.abs(a.value) / F.value,
433
447
  childName: "",
434
448
  childValue: "",
435
449
  childPercentageToParent: "",
@@ -438,74 +452,74 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
438
452
  return { head: t, body: l };
439
453
  });
440
454
  function Pe(t = null) {
441
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = z.value.head, o = z.value.body.map((c) => [
442
- c.parentName,
443
- c.parentValue,
444
- c.percentageToTotal,
445
- c.childName,
446
- c.childValue,
447
- c.childPercentageToParent,
448
- c.childPercentageToTotal
449
- ]), f = l.concat([a]).concat(o), w = ra(f);
450
- t ? t(w) : ia({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
455
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = V.value.head, o = V.value.body.map((d) => [
456
+ d.parentName,
457
+ d.parentValue,
458
+ d.percentageToTotal,
459
+ d.childName,
460
+ d.childValue,
461
+ d.childPercentageToParent,
462
+ d.childPercentageToTotal
463
+ ]), b = l.concat([a]).concat(o), $ = da(b);
464
+ t ? t($) : ca({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
451
465
  }
452
- const U = i(!1);
453
- function ut(t) {
454
- U.value = t, Be.value += 1;
466
+ const W = i(!1);
467
+ function st(t) {
468
+ W.value = t, De.value += 1;
455
469
  }
456
- function st() {
457
- $.value.showTable = !$.value.showTable;
470
+ function rt() {
471
+ _.value.showTable = !_.value.showTable;
458
472
  }
459
- const Bt = i({
473
+ const Ut = i({
460
474
  none: 0,
461
475
  asc: 1,
462
476
  desc: 2
463
- }), M = i(0), ve = i(!1);
477
+ }), D = i(0), ve = i(!1);
464
478
  Ve(() => {
465
479
  ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
466
480
  componentName: "VueUiVerticalBar",
467
481
  type: "attributeWrongValue",
468
482
  property: "style.chart.layout.bars.sort",
469
483
  key: e.value.style.chart.layout.bars.sort
470
- }), M.value = Bt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = M.value === 2, ve.value = M.value === 0;
484
+ }), D.value = Ut.value[e.value.style.chart.layout.bars.sort], _.value.sortDesc = D.value === 2, ve.value = D.value === 0;
471
485
  });
472
- function Rt() {
473
- M.value += 1, M.value > 2 && (M.value = 0);
474
- }
475
- function rt() {
476
- Rt(), $.value.sortDesc = M.value === 2, ve.value = M.value === 0, q();
486
+ function Xt() {
487
+ D.value += 1, D.value > 2 && (D.value = 0);
477
488
  }
478
489
  function it() {
479
- $.value.showTooltip = !$.value.showTooltip;
490
+ Xt(), _.value.sortDesc = D.value === 2, ve.value = D.value === 0, Q();
480
491
  }
481
- const ce = i(!1);
492
+ function vt() {
493
+ _.value.showTooltip = !_.value.showTooltip;
494
+ }
495
+ const de = i(!1);
482
496
  function Ne() {
483
- ce.value = !ce.value;
497
+ de.value = !de.value;
484
498
  }
485
- async function Et({ scale: t = 2 } = {}) {
486
- if (!P.value) return;
487
- const { width: l, height: a } = P.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: w } = await Ca({ domElement: P.value, base64: !0, img: !0, scale: t });
499
+ async function Gt({ scale: t = 2 } = {}) {
500
+ if (!N.value) return;
501
+ const { width: l, height: a } = N.value.getBoundingClientRect(), o = l / a, { imageUri: b, base64: $ } = await La({ domElement: N.value, base64: !0, img: !0, scale: t });
488
502
  return {
489
- imageUri: f,
490
- base64: w,
503
+ imageUri: b,
504
+ base64: $,
491
505
  title: e.value.style.chart.title.text,
492
506
  width: l,
493
507
  height: a,
494
508
  aspectRatio: o
495
509
  };
496
510
  }
497
- const de = g(() => {
498
- const t = e.value.table.useDialog && !e.value.table.show, l = $.value.showTable;
511
+ const ce = g(() => {
512
+ const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
499
513
  return {
500
- component: t ? $t : wa,
514
+ component: t ? Ct : Ta,
501
515
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
502
516
  props: t ? {
503
517
  backgroundColor: e.value.table.th.backgroundColor,
504
518
  color: e.value.table.th.color,
505
519
  headerColor: e.value.table.th.color,
506
520
  headerBg: e.value.table.th.backgroundColor,
507
- isFullscreen: U.value,
508
- fullscreenParent: P.value,
521
+ isFullscreen: W.value,
522
+ fullscreenParent: N.value,
509
523
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
510
524
  } : {
511
525
  hideDetails: !0,
@@ -524,20 +538,20 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
524
538
  }
525
539
  };
526
540
  });
527
- ze(() => $.value.showTable, (t) => {
528
- e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
541
+ ze(() => _.value.showTable, (t) => {
542
+ e.value.table.show || (t && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
529
543
  });
530
- const { isResponsive: Ut } = ma(Je, At);
544
+ const { isResponsive: Wt } = wa(Je, zt);
531
545
  function Ae() {
532
- $.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
546
+ _.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
533
547
  }
534
- const Xt = g(() => O.value.map((t, l) => ({
548
+ const Ht = g(() => z.value.map((t, l) => ({
535
549
  ...t,
536
550
  shape: "square",
537
551
  display: `${t.name}: ${se(
538
552
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
539
553
  t.value,
540
- D({
554
+ R({
541
555
  p: e.value.style.chart.legend.prefix,
542
556
  v: t.value,
543
557
  s: e.value.style.chart.legend.suffix,
@@ -545,69 +559,91 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
545
559
  }),
546
560
  { datapoint: t, seriesIndex: l }
547
561
  )}`
548
- }))), Gt = g(() => e.value.style.chart.backgroundColor), Wt = g(() => e.value.style.chart.legend), Ht = g(() => e.value.style.chart.title), jt = g(() => Xt.value.map((t) => ({
562
+ }))), jt = g(() => e.value.style.chart.backgroundColor), qt = g(() => e.value.style.chart.legend), Yt = g(() => e.value.style.chart.title), Kt = g(() => Ht.value.map((t) => ({
549
563
  ...t,
550
564
  name: t.display
551
- }))), { exportSvg: qt, getSvg: Yt } = ba({
552
- svg: $e,
553
- title: Ht,
554
- legend: Wt,
555
- legendItems: jt,
556
- backgroundColor: Gt
565
+ }))), { exportSvg: Qt, getSvg: Jt } = xa({
566
+ svg: _e,
567
+ title: Yt,
568
+ legend: qt,
569
+ legendItems: Kt,
570
+ backgroundColor: jt
557
571
  });
558
- async function vt({ isCb: t }) {
572
+ async function dt({ isCb: t }) {
559
573
  if (t) {
560
- const { blob: l, url: a, text: o, dataUrl: f } = await Yt();
561
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: f });
574
+ const { blob: l, url: a, text: o, dataUrl: b } = await Jt();
575
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: b });
562
576
  } else
563
- qt();
577
+ Qt();
564
578
  }
565
- return bt({
566
- autoSize: F,
579
+ return mt({
580
+ autoSize: M,
567
581
  // v3
568
- getData: It,
569
- getImage: Et,
570
- recalculateHeight: q,
582
+ getData: Mt,
583
+ getImage: Gt,
584
+ recalculateHeight: Q,
571
585
  generatePdf: Ye,
572
586
  generateCsv: Pe,
573
587
  generateImage: Ke,
574
- generateSvg: vt,
575
- toggleTable: st,
576
- toggleSort: rt,
577
- toggleTooltip: it,
588
+ generateSvg: dt,
589
+ hideSeries: It,
590
+ showSeries: Ot,
591
+ toggleTable: rt,
592
+ toggleSort: it,
593
+ toggleTooltip: vt,
578
594
  toggleAnnotator: Ne,
579
- toggleFullscreen: ut
595
+ toggleFullscreen: st
580
596
  }), (t, l) => (u(), v("div", {
581
- class: X(`vue-data-ui-component vue-ui-vertical-bar ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
597
+ class: H(`vue-data-ui-component vue-ui-vertical-bar ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
582
598
  ref_key: "verticalBarChart",
583
- ref: P,
584
- id: `vue-ui-vertical-bar_${S.value}`,
585
- style: d(`padding-top:${e.value.responsive && e.value.autoSize ? `${Te.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Te.value}px` : "height: 100%" : ""}`),
599
+ ref: N,
600
+ id: `vue-ui-vertical-bar_${L.value}`,
601
+ style: c(`padding-top:${e.value.responsive && e.value.autoSize ? `${Te.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Te.value}px` : "height: 100%" : ""}`),
586
602
  onMouseenter: l[3] || (l[3] = () => s(We)(!0)),
587
603
  onMouseleave: l[4] || (l[4] = () => s(We)(!1))
588
604
  }, [
589
- e.value.userOptions.buttons.annotator ? (u(), G(s(xt), {
605
+ e.value.userOptions.buttons.annotator ? (u(), j(s(wt), {
590
606
  key: 0,
591
- svgRef: s($e),
607
+ svgRef: s(_e),
592
608
  backgroundColor: e.value.style.chart.backgroundColor,
593
609
  color: e.value.style.chart.color,
594
- active: ce.value,
610
+ active: de.value,
595
611
  onClose: Ne
596
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
597
- Nt.value ? (u(), v("div", {
612
+ }, {
613
+ "annotator-action-close": h(() => [
614
+ y(t.$slots, "annotator-action-close", {}, void 0, !0)
615
+ ]),
616
+ "annotator-action-color": h(({ color: a }) => [
617
+ y(t.$slots, "annotator-action-color", O(I({ color: a })), void 0, !0)
618
+ ]),
619
+ "annotator-action-draw": h(({ mode: a }) => [
620
+ y(t.$slots, "annotator-action-draw", O(I({ mode: a })), void 0, !0)
621
+ ]),
622
+ "annotator-action-undo": h(({ disabled: a }) => [
623
+ y(t.$slots, "annotator-action-undo", O(I({ disabled: a })), void 0, !0)
624
+ ]),
625
+ "annotator-action-redo": h(({ disabled: a }) => [
626
+ y(t.$slots, "annotator-action-redo", O(I({ disabled: a })), void 0, !0)
627
+ ]),
628
+ "annotator-action-delete": h(({ disabled: a }) => [
629
+ y(t.$slots, "annotator-action-delete", O(I({ disabled: a })), void 0, !0)
630
+ ]),
631
+ _: 3
632
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
633
+ At.value ? (u(), v("div", {
598
634
  key: 1,
599
635
  ref_key: "noTitle",
600
636
  ref: Ue,
601
637
  class: "vue-data-ui-no-title-space",
602
638
  style: "height:36px; width: 100%;background:transparent"
603
- }, null, 512)) : y("", !0),
639
+ }, null, 512)) : m("", !0),
604
640
  e.value.style.chart.title.text ? (u(), v("div", {
605
641
  key: 2,
606
642
  ref_key: "chartTitle",
607
643
  ref: Re,
608
644
  style: "width:100%;background:transparent;padding-bottom:12px"
609
645
  }, [
610
- (u(), G($a, {
646
+ (u(), j(Sa, {
611
647
  key: `title_${Xe.value}`,
612
648
  config: {
613
649
  title: {
@@ -620,16 +656,16 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
620
656
  }
621
657
  }
622
658
  }, null, 8, ["config"]))
623
- ], 512)) : y("", !0),
624
- e.value.userOptions.show && ge.value && (s(He) || s(we)) ? (u(), G(s(_t), {
659
+ ], 512)) : m("", !0),
660
+ e.value.userOptions.show && fe.value && (s(He) || s($e)) ? (u(), j(s($t), {
625
661
  ref_key: "userOptionsRef",
626
662
  ref: ke,
627
- key: `user_options_${Be.value}`,
663
+ key: `user_options_${De.value}`,
628
664
  backgroundColor: e.value.style.chart.backgroundColor,
629
665
  color: e.value.style.chart.color,
630
666
  isImaging: s(qe),
631
667
  isPrinting: s(je),
632
- uid: S.value,
668
+ uid: L.value,
633
669
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
634
670
  hasPdf: e.value.userOptions.buttons.pdf,
635
671
  hasImg: e.value.userOptions.buttons.img,
@@ -638,245 +674,245 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
638
674
  hasTable: e.value.userOptions.buttons.table,
639
675
  hasSort: e.value.userOptions.buttons.sort,
640
676
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
641
- isFullscreen: U.value,
642
- isTooltip: $.value.showTooltip,
677
+ isFullscreen: W.value,
678
+ isTooltip: _.value.showTooltip,
643
679
  titles: { ...e.value.userOptions.buttonTitles },
644
- chartElement: P.value,
680
+ chartElement: N.value,
645
681
  position: e.value.userOptions.position,
646
682
  hasAnnotator: e.value.userOptions.buttons.annotator,
647
- isAnnotation: ce.value,
683
+ isAnnotation: de.value,
648
684
  callbacks: e.value.userOptions.callbacks,
649
685
  printScale: e.value.userOptions.print.scale,
650
686
  tableDialog: e.value.table.useDialog,
651
- onToggleFullscreen: ut,
687
+ onToggleFullscreen: st,
652
688
  onGeneratePdf: s(Ye),
653
689
  onGenerateCsv: Pe,
654
690
  onGenerateImage: s(Ke),
655
- onGenerateSvg: vt,
656
- onToggleTable: st,
657
- onToggleSort: rt,
658
- onToggleTooltip: it,
691
+ onGenerateSvg: dt,
692
+ onToggleTable: rt,
693
+ onToggleSort: it,
694
+ onToggleTooltip: vt,
659
695
  onToggleAnnotator: Ne,
660
- style: d({
661
- visibility: s(He) ? s(we) ? "visible" : "hidden" : "visible"
696
+ style: c({
697
+ visibility: s(He) ? s($e) ? "visible" : "hidden" : "visible"
662
698
  })
663
699
  }, pe({ _: 2 }, [
664
700
  t.$slots.menuIcon ? {
665
701
  name: "menuIcon",
666
- fn: b(({ isOpen: a, color: o }) => [
667
- k(t.$slots, "menuIcon", J(Z({ isOpen: a, color: o })), void 0, !0)
702
+ fn: h(({ isOpen: a, color: o }) => [
703
+ y(t.$slots, "menuIcon", O(I({ isOpen: a, color: o })), void 0, !0)
668
704
  ]),
669
705
  key: "0"
670
706
  } : void 0,
671
707
  t.$slots.optionTooltip ? {
672
708
  name: "optionTooltip",
673
- fn: b(() => [
674
- k(t.$slots, "optionTooltip", {}, void 0, !0)
709
+ fn: h(() => [
710
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
675
711
  ]),
676
712
  key: "1"
677
713
  } : void 0,
678
714
  t.$slots.optionPdf ? {
679
715
  name: "optionPdf",
680
- fn: b(() => [
681
- k(t.$slots, "optionPdf", {}, void 0, !0)
716
+ fn: h(() => [
717
+ y(t.$slots, "optionPdf", {}, void 0, !0)
682
718
  ]),
683
719
  key: "2"
684
720
  } : void 0,
685
721
  t.$slots.optionCsv ? {
686
722
  name: "optionCsv",
687
- fn: b(() => [
688
- k(t.$slots, "optionCsv", {}, void 0, !0)
723
+ fn: h(() => [
724
+ y(t.$slots, "optionCsv", {}, void 0, !0)
689
725
  ]),
690
726
  key: "3"
691
727
  } : void 0,
692
728
  t.$slots.optionImg ? {
693
729
  name: "optionImg",
694
- fn: b(() => [
695
- k(t.$slots, "optionImg", {}, void 0, !0)
730
+ fn: h(() => [
731
+ y(t.$slots, "optionImg", {}, void 0, !0)
696
732
  ]),
697
733
  key: "4"
698
734
  } : void 0,
699
735
  t.$slots.optionSvg ? {
700
736
  name: "optionSvg",
701
- fn: b(() => [
702
- k(t.$slots, "optionSvg", {}, void 0, !0)
737
+ fn: h(() => [
738
+ y(t.$slots, "optionSvg", {}, void 0, !0)
703
739
  ]),
704
740
  key: "5"
705
741
  } : void 0,
706
742
  t.$slots.optionTable ? {
707
743
  name: "optionTable",
708
- fn: b(() => [
709
- k(t.$slots, "optionTable", {}, void 0, !0)
744
+ fn: h(() => [
745
+ y(t.$slots, "optionTable", {}, void 0, !0)
710
746
  ]),
711
747
  key: "6"
712
748
  } : void 0,
713
749
  t.$slots.optionLabels ? {
714
750
  name: "optionLabels",
715
- fn: b(() => [
716
- k(t.$slots, "optionLabels", {}, void 0, !0)
751
+ fn: h(() => [
752
+ y(t.$slots, "optionLabels", {}, void 0, !0)
717
753
  ]),
718
754
  key: "7"
719
755
  } : void 0,
720
756
  t.$slots.optionSort ? {
721
757
  name: "optionSort",
722
- fn: b(() => [
723
- k(t.$slots, "optionSort", {}, void 0, !0)
758
+ fn: h(() => [
759
+ y(t.$slots, "optionSort", {}, void 0, !0)
724
760
  ]),
725
761
  key: "8"
726
762
  } : void 0,
727
763
  t.$slots.optionFullscreen ? {
728
764
  name: "optionFullscreen",
729
- fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
730
- k(t.$slots, "optionFullscreen", J(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
765
+ fn: h(({ toggleFullscreen: a, isFullscreen: o }) => [
766
+ y(t.$slots, "optionFullscreen", O(I({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
731
767
  ]),
732
768
  key: "9"
733
769
  } : void 0,
734
770
  t.$slots.optionAnnotator ? {
735
771
  name: "optionAnnotator",
736
- fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
737
- k(t.$slots, "optionAnnotator", J(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
772
+ fn: h(({ toggleAnnotator: a, isAnnotator: o }) => [
773
+ y(t.$slots, "optionAnnotator", O(I({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
738
774
  ]),
739
775
  key: "10"
740
776
  } : void 0
741
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
777
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
742
778
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
743
779
  key: 4,
744
780
  ref_key: "chartLegend",
745
781
  ref: be
746
782
  }, [
747
- (u(), G(gt, {
783
+ (u(), j(gt, {
748
784
  key: `legend_top_${me.value}`,
749
- legendSet: O.value,
785
+ legendSet: z.value,
750
786
  config: at.value,
751
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
787
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => E(a.id))
752
788
  }, pe({
753
- item: b(({ legend: a, index: o }) => [
789
+ item: h(({ legend: a, index: o }) => [
754
790
  n("div", {
755
- onClick: (f) => oe(a.id),
756
- style: d(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
757
- }, h(a.name) + ": " + h(s(se)(
791
+ onClick: (b) => E(a.id),
792
+ style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
793
+ }, p(a.name) + ": " + p(s(se)(
758
794
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
759
795
  a.value,
760
- s(D)({
796
+ s(R)({
761
797
  p: e.value.style.chart.legend.prefix,
762
798
  v: a.value,
763
799
  s: e.value.style.chart.legend.suffix,
764
800
  r: e.value.style.chart.legend.roundingValue
765
801
  }),
766
802
  { datapoint: a, seriesIndex: o }
767
- )), 13, La)
803
+ )), 13, Aa)
768
804
  ]),
769
805
  _: 2
770
806
  }, [
771
807
  t.$slots.pattern ? {
772
808
  name: "legend-pattern",
773
- fn: b(({ legend: a, index: o }) => [
774
- Q(ft, {
809
+ fn: h(({ legend: a, index: o }) => [
810
+ ee(yt, {
775
811
  shape: a.shape,
776
812
  radius: 30,
777
813
  stroke: "none",
778
814
  plot: { x: 30, y: 30 },
779
- fill: `url(#pattern_${S.value}_${o})`
815
+ fill: `url(#pattern_${L.value}_${o})`
780
816
  }, null, 8, ["shape", "fill"])
781
817
  ]),
782
818
  key: "0"
783
819
  } : void 0
784
820
  ]), 1032, ["legendSet", "config"]))
785
- ], 512)) : y("", !0),
821
+ ], 512)) : m("", !0),
786
822
  (u(), v("svg", {
787
823
  ref_key: "svgRef",
788
- ref: $e,
789
- xmlns: s(ua),
790
- class: X({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
824
+ ref: _e,
825
+ xmlns: s(ia),
826
+ class: H({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
791
827
  viewBox: re.value,
792
- style: d(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
828
+ style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
793
829
  }, [
794
830
  n("g", {
795
831
  ref_key: "G",
796
- ref: H,
832
+ ref: Y,
797
833
  class: "vue-data-ui-g"
798
834
  }, [
799
- Q(s(wt)),
835
+ ee(s(_t)),
800
836
  t.$slots["chart-background"] ? (u(), v("foreignObject", {
801
837
  key: 0,
802
- x: N.value.x,
838
+ x: A.value.x,
803
839
  y: 0,
804
- width: N.value.width,
805
- height: N.value.height,
840
+ width: A.value.width,
841
+ height: A.value.height,
806
842
  style: {
807
843
  pointerEvents: "none"
808
844
  }
809
845
  }, [
810
- k(t.$slots, "chart-background", {}, void 0, !0)
811
- ], 8, Na)) : y("", !0),
812
- (u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("linearGradient", {
846
+ y(t.$slots, "chart-background", {}, void 0, !0)
847
+ ], 8, Va)) : m("", !0),
848
+ (u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("linearGradient", {
813
849
  x1: "0%",
814
850
  y1: "0%",
815
851
  x2: "100%",
816
852
  y2: "0%",
817
- id: `vertical_bar_gradient_${S.value}_${o}`
853
+ id: `vertical_bar_gradient_${L.value}_${o}`
818
854
  }, [
819
855
  n("stop", {
820
856
  offset: "0%",
821
857
  "stop-color": a.color
822
- }, null, 8, za),
858
+ }, null, 8, Ia),
823
859
  n("stop", {
824
860
  offset: "100%",
825
- "stop-color": s(Me)(s(sa)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
826
- }, null, 8, Va)
827
- ], 8, Aa))), 256)),
828
- t.$slots.pattern ? (u(), v("g", Oa, [
829
- (u(!0), v(ee, null, te(R.value, (a) => (u(), v("defs", null, [
830
- k(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
861
+ "stop-color": s(Be)(s(va)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
862
+ }, null, 8, Fa)
863
+ ], 8, Oa))), 256)),
864
+ t.$slots.pattern ? (u(), v("g", Ba, [
865
+ (u(!0), v(te, null, ae(X.value, (a) => (u(), v("defs", null, [
866
+ y(t.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${L.value}_${a.absoluteIndex}` }), void 0, !0)
831
867
  ]))), 256))
832
- ])) : y("", !0),
833
- (u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("g", null, [
868
+ ])) : m("", !0),
869
+ (u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("g", null, [
834
870
  n("rect", {
835
- x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
836
- y: r.value.top + (x.value + p.value) * o,
837
- width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
838
- height: p.value <= 0 ? 1e-4 : p.value,
871
+ x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
872
+ y: r.value.top + (x.value + f.value) * o,
873
+ width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
874
+ height: f.value <= 0 ? 1e-4 : f.value,
839
875
  fill: e.value.style.chart.layout.bars.underlayerColor,
840
876
  rx: e.value.style.chart.layout.bars.borderRadius,
841
- class: X({ animated: e.value.useCssAnimation })
842
- }, null, 10, Ia)
877
+ class: H({ animated: e.value.useCssAnimation })
878
+ }, null, 10, Ma)
843
879
  ]))), 256)),
844
- (u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("g", null, [
880
+ (u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("g", null, [
845
881
  n("rect", {
846
- x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
847
- y: r.value.top + (x.value + p.value) * o,
848
- width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
849
- height: p.value <= 0 ? 1e-4 : p.value,
850
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Me)(a.color, e.value.style.chart.layout.bars.fillOpacity),
882
+ x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
883
+ y: r.value.top + (x.value + f.value) * o,
884
+ width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
885
+ height: f.value <= 0 ? 1e-4 : f.value,
886
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${L.value}_${o})` : s(Be)(a.color, e.value.style.chart.layout.bars.fillOpacity),
851
887
  rx: e.value.style.chart.layout.bars.borderRadius,
852
888
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
853
889
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
854
- class: X({ animated: e.value.useCssAnimation })
855
- }, null, 10, Fa),
890
+ class: H({ animated: e.value.useCssAnimation })
891
+ }, null, 10, Da),
856
892
  t.$slots.pattern ? (u(), v("rect", {
857
893
  key: 0,
858
- x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
859
- y: r.value.top + (x.value + p.value) * o,
860
- width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
861
- height: p.value <= 0 ? 1e-4 : p.value,
862
- fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
894
+ x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
895
+ y: r.value.top + (x.value + f.value) * o,
896
+ width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
897
+ height: f.value <= 0 ? 1e-4 : f.value,
898
+ fill: `url(#pattern_${L.value}_${a.absoluteIndex})`,
863
899
  rx: e.value.style.chart.layout.bars.borderRadius,
864
900
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
865
901
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
866
- class: X({ animated: e.value.useCssAnimation })
867
- }, null, 10, Ma)) : y("", !0),
868
- (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== R.value.length - 1 ? (u(), v("line", {
902
+ class: H({ animated: e.value.useCssAnimation })
903
+ }, null, 10, Ra)) : m("", !0),
904
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== X.value.length - 1 ? (u(), v("line", {
869
905
  key: 1,
870
- x1: N.value.x,
871
- x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : r.value.left,
872
- y1: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
873
- y2: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
906
+ x1: A.value.x,
907
+ x2: e.value.style.chart.layout.separators.fullWidth ? A.value.width - Math.abs(A.value.x) : r.value.left,
908
+ y1: f.value + x.value / 2 + r.value.top + (x.value + f.value) * o,
909
+ y2: f.value + x.value / 2 + r.value.top + (x.value + f.value) * o,
874
910
  stroke: e.value.style.chart.layout.separators.color,
875
911
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
876
912
  "stroke-linecap": "round",
877
913
  style: { transition: "none !important", animation: "none !important" }
878
- }, null, 8, Da)) : y("", !0),
879
- E.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
914
+ }, null, 8, Ea)) : m("", !0),
915
+ G.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
880
916
  key: 2,
881
917
  x1: r.value.left + r.value.width / 2,
882
918
  x2: r.value.left + r.value.width / 2,
@@ -885,118 +921,118 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
885
921
  stroke: e.value.style.chart.layout.separators.color,
886
922
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
887
923
  "stroke-linecap": "round"
888
- }, null, 8, Ba)) : y("", !0),
889
- n("g", Ra, [
924
+ }, null, 8, Ua)) : m("", !0),
925
+ n("g", Xa, [
890
926
  n("text", {
891
- x: E.value ? r.value.left + r.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Ot(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
892
- y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
893
- "text-anchor": !E.value || a.sign === -1 ? "start" : "end",
927
+ x: G.value ? r.value.left + r.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Bt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
928
+ y: r.value.top + (x.value + f.value) * o + f.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
929
+ "text-anchor": !G.value || a.sign === -1 ? "start" : "end",
894
930
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
895
931
  fill: e.value.style.chart.layout.bars.dataLabels.color,
896
932
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
897
- }, h(nt(a.value, a, o, a.sign)), 9, Ea),
933
+ }, p(ut(a.value, a, o, a.sign)), 9, Ga),
898
934
  (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
899
935
  key: 0,
900
936
  "text-anchor": "end",
901
937
  x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
902
- y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
938
+ y: r.value.top + (x.value + f.value) * o + f.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
903
939
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
904
940
  fill: e.value.style.chart.layout.bars.nameLabels.color,
905
941
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
906
- }, h(a.name), 9, Ua)) : y("", !0)
942
+ }, p(a.name), 9, Wa)) : m("", !0)
907
943
  ]),
908
- n("g", Xa, [
944
+ n("g", Ha, [
909
945
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
910
946
  key: 0,
911
- x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
947
+ x: e.value.autoSize ? void 0 : A.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
912
948
  y: ne(a, o).y,
913
949
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
914
950
  fill: e.value.style.chart.layout.bars.parentLabels.color,
915
951
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
916
952
  "text-anchor": "start"
917
- }, h(ne(a, o).name), 9, Ga)) : y("", !0),
953
+ }, p(ne(a, o).name), 9, ja)) : m("", !0),
918
954
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
919
955
  key: 1,
920
- x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
956
+ x: e.value.autoSize ? void 0 : A.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
921
957
  y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
922
958
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
923
959
  fill: e.value.style.chart.layout.bars.parentLabels.color,
924
960
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
925
961
  "text-anchor": "start"
926
- }, h(nt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Wa)) : y("", !0)
962
+ }, p(ut(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, qa)) : m("", !0)
927
963
  ]),
928
964
  n("rect", {
929
- x: N.value.x,
930
- y: r.value.top + (x.value + p.value) * o - x.value / 2,
931
- width: N.value.width,
932
- height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
933
- fill: Se.value === a.id ? s(Me)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
934
- onMouseenter: (f) => Dt(a, o),
935
- onMouseleave: (f) => Mt({ datapoint: a, seriesIndex: o }),
936
- onClick: (f) => Ft({ datapoint: a, seriesIndex: o })
937
- }, null, 40, Ha)
965
+ x: A.value.x,
966
+ y: r.value.top + (x.value + f.value) * o - x.value / 2,
967
+ width: A.value.width,
968
+ height: f.value + x.value <= 0 ? 1e-4 : f.value + x.value,
969
+ fill: Se.value === a.id ? s(Be)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
970
+ onMouseenter: (b) => Et(a, o),
971
+ onMouseleave: (b) => Rt({ datapoint: a, seriesIndex: o }),
972
+ onClick: (b) => Dt({ datapoint: a, seriesIndex: o })
973
+ }, null, 40, Ya)
938
974
  ]))), 256)),
939
- k(t.$slots, "svg", { svg: N.value }, void 0, !0)
975
+ y(t.$slots, "svg", { svg: A.value }, void 0, !0)
940
976
  ], 512)
941
- ], 14, Pa)),
942
- t.$slots.watermark ? (u(), v("div", ja, [
943
- k(t.$slots, "watermark", J(Z({ isPrinting: s(je) || s(qe) })), void 0, !0)
944
- ])) : y("", !0),
977
+ ], 14, za)),
978
+ t.$slots.watermark ? (u(), v("div", Ka, [
979
+ y(t.$slots, "watermark", O(I({ isPrinting: s(je) || s(qe) })), void 0, !0)
980
+ ])) : m("", !0),
945
981
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
946
982
  key: 6,
947
983
  ref_key: "chartLegend",
948
984
  ref: be
949
985
  }, [
950
- (u(), G(gt, {
986
+ (u(), j(gt, {
951
987
  key: `legend_bottom_${me.value}`,
952
- legendSet: O.value,
988
+ legendSet: z.value,
953
989
  config: at.value,
954
- onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
990
+ onClickMarker: l[1] || (l[1] = ({ legend: a }) => E(a.id))
955
991
  }, pe({
956
- item: b(({ legend: a, index: o }) => [
992
+ item: h(({ legend: a, index: o }) => [
957
993
  n("div", {
958
- onClick: (f) => oe(a.id),
959
- style: d(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
960
- }, h(a.name) + ": " + h(s(se)(
994
+ onClick: (b) => E(a.id),
995
+ style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
996
+ }, p(a.name) + ": " + p(s(se)(
961
997
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
962
998
  a.value,
963
- s(D)({
999
+ s(R)({
964
1000
  p: e.value.style.chart.legend.prefix,
965
1001
  v: a.value,
966
1002
  s: e.value.style.chart.legend.suffix,
967
1003
  r: e.value.style.chart.legend.roundingValue
968
1004
  }),
969
1005
  { datapoint: a, seriesIndex: o }
970
- )), 13, qa)
1006
+ )), 13, Qa)
971
1007
  ]),
972
1008
  _: 2
973
1009
  }, [
974
1010
  t.$slots.pattern ? {
975
1011
  name: "legend-pattern",
976
- fn: b(({ legend: a, index: o }) => [
977
- Q(ft, {
1012
+ fn: h(({ legend: a, index: o }) => [
1013
+ ee(yt, {
978
1014
  shape: a.shape,
979
1015
  radius: 30,
980
1016
  stroke: "none",
981
1017
  plot: { x: 30, y: 30 },
982
- fill: `url(#pattern_${S.value}_${o})`
1018
+ fill: `url(#pattern_${L.value}_${o})`
983
1019
  }, null, 8, ["shape", "fill"])
984
1020
  ]),
985
1021
  key: "0"
986
1022
  } : void 0
987
1023
  ]), 1032, ["legendSet", "config"]))
988
- ], 512)) : y("", !0),
989
- k(t.$slots, "legend", { legend: O.value }, void 0, !0),
1024
+ ], 512)) : m("", !0),
1025
+ y(t.$slots, "legend", { legend: z.value }, void 0, !0),
990
1026
  t.$slots.source ? (u(), v("div", {
991
1027
  key: 7,
992
1028
  ref_key: "source",
993
1029
  ref: Ee,
994
1030
  dir: "auto"
995
1031
  }, [
996
- k(t.$slots, "source", {}, void 0, !0)
997
- ], 512)) : y("", !0),
998
- Q(s(kt), {
999
- show: $.value.showTooltip && fe.value && A.value.length < m.dataset.length,
1032
+ y(t.$slots, "source", {}, void 0, !0)
1033
+ ], 512)) : m("", !0),
1034
+ ee(s(xt), {
1035
+ show: _.value.showTooltip && ge.value && T.value.length < k.dataset.length,
1000
1036
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1001
1037
  color: e.value.style.chart.tooltip.color,
1002
1038
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1006,45 +1042,45 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
1006
1042
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1007
1043
  position: e.value.style.chart.tooltip.position,
1008
1044
  offsetY: e.value.style.chart.tooltip.offsetY,
1009
- parent: P.value,
1045
+ parent: N.value,
1010
1046
  content: ye.value,
1011
- isFullscreen: U.value,
1047
+ isFullscreen: W.value,
1012
1048
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
1013
1049
  smooth: e.value.style.chart.tooltip.smooth,
1014
1050
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1015
1051
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1016
1052
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1017
1053
  }, {
1018
- "tooltip-before": b(() => [
1019
- k(t.$slots, "tooltip-before", J(Z({ ...Le.value })), void 0, !0)
1054
+ "tooltip-before": h(() => [
1055
+ y(t.$slots, "tooltip-before", O(I({ ...Le.value })), void 0, !0)
1020
1056
  ]),
1021
- "tooltip-after": b(() => [
1022
- k(t.$slots, "tooltip-after", J(Z({ ...Le.value })), void 0, !0)
1057
+ "tooltip-after": h(() => [
1058
+ y(t.$slots, "tooltip-after", O(I({ ...Le.value })), void 0, !0)
1023
1059
  ]),
1024
1060
  _: 3
1025
1061
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1026
- ge.value && e.value.userOptions.buttons.table ? (u(), G(ea(de.value.component), dt({ key: 8 }, de.value.props, {
1062
+ fe.value && e.value.userOptions.buttons.table ? (u(), j(la(ce.value.component), ht({ key: 8 }, ce.value.props, {
1027
1063
  ref_key: "tableUnit",
1028
- ref: le,
1064
+ ref: oe,
1029
1065
  onClose: Ae
1030
1066
  }), pe({
1031
- content: b(() => [
1067
+ content: h(() => [
1032
1068
  n("div", {
1033
1069
  ref_key: "tableContainer",
1034
1070
  ref: Je,
1035
1071
  class: "vue-ui-vertical-bar-table atom-data-table",
1036
- style: d(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1072
+ style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1037
1073
  }, [
1038
- n("div", Ya, [
1039
- e.value.table.useDialog ? y("", !0) : (u(), v("div", {
1074
+ n("div", Ja, [
1075
+ e.value.table.useDialog ? m("", !0) : (u(), v("div", {
1040
1076
  key: 0,
1041
1077
  role: "button",
1042
1078
  tabindex: "0",
1043
- style: d(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
1079
+ style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
1044
1080
  onClick: Ae,
1045
- onKeypress: ta(Ae, ["enter"])
1081
+ onKeypress: oa(Ae, ["enter"])
1046
1082
  }, [
1047
- Q(s(De), {
1083
+ ee(s(Me), {
1048
1084
  name: "close",
1049
1085
  stroke: e.value.table.th.color,
1050
1086
  "stroke-width": 2
@@ -1052,112 +1088,112 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
1052
1088
  ], 36)),
1053
1089
  n("div", {
1054
1090
  style: { width: "100%", "container-type": "inline-size" },
1055
- class: X({ "vue-ui-responsive": s(Ut) })
1091
+ class: H({ "vue-ui-responsive": s(Wt) })
1056
1092
  }, [
1057
- n("table", Ka, [
1058
- e.value.table.useDialog ? y("", !0) : (u(), v("caption", {
1093
+ n("table", Za, [
1094
+ e.value.table.useDialog ? m("", !0) : (u(), v("caption", {
1059
1095
  key: 0,
1060
- style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
1096
+ style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
1061
1097
  class: "vue-ui-data-table__caption"
1062
1098
  }, [
1063
- ht(h(e.value.style.chart.title.text) + " ", 1),
1064
- e.value.style.chart.title.subtitle.text ? (u(), v("span", Qa, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
1099
+ pt(p(e.value.style.chart.title.text) + " ", 1),
1100
+ e.value.style.chart.title.subtitle.text ? (u(), v("span", el, p(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
1065
1101
  ], 4)),
1066
1102
  n("thead", null, [
1067
1103
  n("tr", {
1068
1104
  role: "row",
1069
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1105
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1070
1106
  }, [
1071
- (u(!0), v(ee, null, te(z.value.head, (a) => (u(), v("th", {
1072
- style: d(`outline:${e.value.table.th.outline}`)
1107
+ (u(!0), v(te, null, ae(V.value.head, (a) => (u(), v("th", {
1108
+ style: c(`outline:${e.value.table.th.outline}`)
1073
1109
  }, [
1074
- n("div", Ja, h(a), 1)
1110
+ n("div", tl, p(a), 1)
1075
1111
  ], 4))), 256))
1076
1112
  ], 4),
1077
1113
  n("tr", null, [
1078
1114
  n("th", {
1079
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1115
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1080
1116
  }, null, 4),
1081
1117
  n("th", {
1082
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1083
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(V.value) ? "" : V.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
1118
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1119
+ }, "∑ " + p(e.value.table.td.prefix) + p(isNaN(F.value) ? "" : F.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
1084
1120
  n("th", {
1085
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1121
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1086
1122
  }, "100%", 4),
1087
1123
  n("th", {
1088
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1124
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1089
1125
  }, null, 4),
1090
1126
  n("th", {
1091
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1127
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1092
1128
  }, null, 4),
1093
1129
  n("th", {
1094
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1130
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1095
1131
  }, null, 4),
1096
1132
  n("th", {
1097
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1133
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1098
1134
  }, null, 4)
1099
1135
  ])
1100
1136
  ]),
1101
1137
  n("tbody", null, [
1102
- (u(!0), v(ee, null, te(z.value.body, (a, o) => (u(), v("tr", {
1103
- class: X({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
1104
- style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1138
+ (u(!0), v(te, null, ae(V.value.body, (a, o) => (u(), v("tr", {
1139
+ class: H({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
1140
+ style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1105
1141
  }, [
1106
1142
  n("td", {
1107
1143
  class: "vue-ui-data-table__tbody__td",
1108
- style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1109
- "data-cell": z.value.head[0] ?? ""
1144
+ style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1145
+ "data-cell": V.value.head[0] ?? ""
1110
1146
  }, [
1111
- n("div", el, [
1147
+ n("div", ll, [
1112
1148
  a.color ? (u(), v("span", {
1113
1149
  key: 0,
1114
- style: d(`color:${a.color};margin-right:3px`)
1115
- }, "⬤", 4)) : y("", !0),
1116
- n("span", null, h(a.parentName), 1)
1150
+ style: c(`color:${a.color};margin-right:3px`)
1151
+ }, "⬤", 4)) : m("", !0),
1152
+ n("span", null, p(a.parentName), 1)
1117
1153
  ])
1118
- ], 12, Za),
1154
+ ], 12, al),
1119
1155
  n("td", {
1120
1156
  class: "vue-ui-data-table__tbody__td",
1121
- style: d(`outline:${e.value.table.td.outline}`),
1122
- "data-cell": z.value.head[1] ?? ""
1157
+ style: c(`outline:${e.value.table.td.outline}`),
1158
+ "data-cell": V.value.head[1] ?? ""
1123
1159
  }, [
1124
- n("div", al, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
1125
- ], 12, tl),
1160
+ n("div", nl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
1161
+ ], 12, ol),
1126
1162
  n("td", {
1127
1163
  class: "vue-ui-data-table__tbody__td",
1128
- style: d(`outline:${e.value.table.td.outline}`),
1129
- "data-cell": z.value.head[2] ?? ""
1164
+ style: c(`outline:${e.value.table.td.outline}`),
1165
+ "data-cell": V.value.head[2] ?? ""
1130
1166
  }, [
1131
- n("div", ol, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1132
- ], 12, ll),
1167
+ n("div", sl, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1168
+ ], 12, ul),
1133
1169
  n("td", {
1134
1170
  class: "vue-ui-data-table__tbody__td",
1135
- style: d(`outline:${e.value.table.td.outline}`),
1136
- "data-cell": z.value.head[3] ?? ""
1171
+ style: c(`outline:${e.value.table.td.outline}`),
1172
+ "data-cell": V.value.head[3] ?? ""
1137
1173
  }, [
1138
- n("div", ul, h(a.childName), 1)
1139
- ], 12, nl),
1174
+ n("div", il, p(a.childName), 1)
1175
+ ], 12, rl),
1140
1176
  n("td", {
1141
1177
  class: "vue-ui-data-table__tbody__td",
1142
- style: d(`outline:${e.value.table.td.outline}`),
1143
- "data-cell": z.value.head[4] ?? ""
1178
+ style: c(`outline:${e.value.table.td.outline}`),
1179
+ "data-cell": V.value.head[4] ?? ""
1144
1180
  }, [
1145
- n("div", rl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
1146
- ], 12, sl),
1181
+ n("div", dl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
1182
+ ], 12, vl),
1147
1183
  n("td", {
1148
1184
  class: "vue-ui-data-table__tbody__td",
1149
- style: d(`outline:${e.value.table.td.outline}`),
1150
- "data-cell": z.value.head[5] ?? ""
1185
+ style: c(`outline:${e.value.table.td.outline}`),
1186
+ "data-cell": V.value.head[5] ?? ""
1151
1187
  }, [
1152
- n("div", vl, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1153
- ], 12, il),
1188
+ n("div", hl, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1189
+ ], 12, cl),
1154
1190
  n("td", {
1155
1191
  class: "vue-ui-data-table__tbody__td",
1156
- style: d(`outline:${e.value.table.td.outline}`),
1157
- "data-cell": z.value.head[6] ?? ""
1192
+ style: c(`outline:${e.value.table.td.outline}`),
1193
+ "data-cell": V.value.head[6] ?? ""
1158
1194
  }, [
1159
- n("div", dl, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1160
- ], 12, cl)
1195
+ n("div", fl, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1196
+ ], 12, pl)
1161
1197
  ], 6))), 256))
1162
1198
  ])
1163
1199
  ])
@@ -1169,32 +1205,32 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
1169
1205
  }, [
1170
1206
  e.value.table.useDialog ? {
1171
1207
  name: "title",
1172
- fn: b(() => [
1173
- ht(h(de.value.title), 1)
1208
+ fn: h(() => [
1209
+ pt(p(ce.value.title), 1)
1174
1210
  ]),
1175
1211
  key: "0"
1176
1212
  } : void 0,
1177
1213
  e.value.table.useDialog ? {
1178
1214
  name: "actions",
1179
- fn: b(() => [
1215
+ fn: h(() => [
1180
1216
  n("button", {
1181
1217
  tabindex: "0",
1182
1218
  class: "vue-ui-user-options-button",
1183
1219
  onClick: l[2] || (l[2] = (a) => Pe(e.value.userOptions.callbacks.csv))
1184
1220
  }, [
1185
- Q(s(De), {
1221
+ ee(s(Me), {
1186
1222
  name: "excel",
1187
- stroke: de.value.props.color
1223
+ stroke: ce.value.props.color
1188
1224
  }, null, 8, ["stroke"])
1189
1225
  ])
1190
1226
  ]),
1191
1227
  key: "1"
1192
1228
  } : void 0
1193
- ]), 1040)) : y("", !0),
1194
- s(Ge) ? (u(), G(fa, { key: 9 })) : y("", !0)
1195
- ], 46, Sa));
1229
+ ]), 1040)) : m("", !0),
1230
+ s(Ge) ? (u(), j(ma, { key: 9 })) : m("", !0)
1231
+ ], 46, Na));
1196
1232
  }
1197
- }, Al = /* @__PURE__ */ Ta(hl, [["__scopeId", "data-v-eee5e9d1"]]);
1233
+ }, Ol = /* @__PURE__ */ Pa(gl, [["__scopeId", "data-v-12742a13"]]);
1198
1234
  export {
1199
- Al as default
1235
+ Ol as default
1200
1236
  };