vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,24 +1,19 @@
1
- import { useCssVars as ct, useSlots as ht, computed as m, ref as i, watch as Ue, onMounted as Xe, onBeforeUnmount as pt, createElementBlock as r, openBlock as u, unref as d, normalizeStyle as c, normalizeClass as A, createBlock as B, createCommentVNode as p, renderSlot as b, createVNode as Y, createSlots as ce, withCtx as _, normalizeProps as X, guardReactiveProps as E, createElementVNode as n, toDisplayString as h, Fragment as H, renderList as W, mergeProps as yt, withKeys as gt, createTextVNode as ft } from "vue";
2
- import { u as bt, c as mt, t as _t, p as R, a as kt, b as $t, o as Ee, e as K, v as N, d as he, i as le, f as D, X as wt, s as pe, w as xt, q as Ct, r as Tt, x as Lt, y as Nt } from "./index-BFzQMJda.js";
3
- import { t as St, u as Pt } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as Vt } from "./Title-CzaCeCOm.js";
5
- import { u as It, U as Ot } from "./usePrinter-C5bLp34h.js";
6
- import { _ as Ft } from "./Tooltip-CWmRmhJr.js";
7
- import { L as He } from "./Legend-BxtDQCIv.js";
8
- import Mt from "./vue-ui-skeleton-B_YI7Yuc.js";
9
- import zt from "./BaseIcon-CNbwMh_-.js";
10
- import At from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { u as We } from "./useNestedProp-v7KPpwuP.js";
12
- import { _ as Bt } from "./PackageVersion-BjrblLPQ.js";
13
- import { _ as Rt } from "./PenAndPaper-BkP3J-Ft.js";
14
- import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Ge } from "./Shape-C69a0f29.js";
16
- import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
17
- import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "height"], jt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Kt = { key: 1 }, Jt = ["x", "y", "width", "height", "fill", "rx"], Qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Zt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ea = ["x2", "y1", "y2", "stroke", "stroke-width"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], la = ["x", "y", "font-size", "fill", "font-weight"], oa = ["x", "y", "font-size", "fill", "font-weight"], na = ["x", "y", "font-size", "fill", "font-weight"], ua = ["y", "width", "height", "fill", "onMouseenter"], sa = {
1
+ import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as p, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
2
+ import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-BHEd2dgu.js";
3
+ import { t as Bt, u as Rt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as je } from "./useNestedProp-CZztHZIm.js";
5
+ import { u as Dt } from "./usePrinter-C8URL2IU.js";
6
+ import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Xt from "./vue-ui-accordion-DntThSTF.js";
9
+ import qe from "./Legend-DtTYopxf.js";
10
+ import Ht from "./Title-Bc66VstS.js";
11
+ import Ye from "./Shape-B6kIkp2s.js";
12
+ import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
19
14
  key: 6,
20
15
  class: "vue-data-ui-watermark"
21
- }, ra = ["onClick"], ia = { style: "width:100%;padding-top: 36px;position:relative" }, da = { class: "vue-ui-data-table" }, va = { key: 0 }, ca = { style: { width: "100%" } }, ha = ["data-cell"], pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wa = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = ["data-cell"], Ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = {
16
+ }, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sl = {
22
17
  __name: "vue-ui-vertical-bar",
23
18
  props: {
24
19
  config: {
@@ -35,83 +30,83 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
35
30
  }
36
31
  },
37
32
  emits: ["selectLegend"],
38
- setup(je, { expose: qe, emit: Ye }) {
39
- ct((a) => ({
40
- a6ba6a4e: a.tdo
33
+ setup(Ke, { expose: Je, emit: Qe }) {
34
+ _t((l) => ({
35
+ 91644906: l.tdo
41
36
  }));
42
- const { vue_ui_vertical_bar: Ke } = bt(), Je = ht(), T = je, J = m(() => !!T.dataset && T.dataset.length), C = i(mt()), Qe = i(null), oe = i(!1), ne = i(""), Q = i(0), Ze = i(null), ye = i(0), G = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), et = Ye, e = m({
43
- get: () => we(),
44
- set: (a) => a
45
- }), { userOptionsVisible: re, setUserOptionsVisibility: _e, keepUserOptionState: ke } = Dt({ config: e.value }), { svgRef: $e } = Ut({ config: e.value.style.chart.title });
46
- function we() {
47
- const a = We({
37
+ const Ze = H(() => import("./BaseIcon-DhWmrDAn.js")), et = H(() => import("./PackageVersion-DaWGaZxE.js")), tt = H(() => import("./PenAndPaper-C-CpE0NC.js")), lt = H(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), at = H(() => import("./Tooltip-B07vY6jm.js")), ot = H(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
38
+ get: () => Ce(),
39
+ set: (l) => l
40
+ }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
41
+ function Ce() {
42
+ const l = je({
48
43
  userConfig: T.config,
49
- defaultConfig: Ke
44
+ defaultConfig: nt
50
45
  });
51
- return a.theme ? {
52
- ...We({
53
- userConfig: kt.vue_ui_vertical_bar[a.theme] || T.config,
54
- defaultConfig: a
46
+ return l.theme ? {
47
+ ...je({
48
+ userConfig: St.vue_ui_vertical_bar[l.theme] || T.config,
49
+ defaultConfig: l
55
50
  }),
56
- customPalette: _t[a.theme] || R
57
- } : a;
51
+ customPalette: Pt[l.theme] || D
52
+ } : l;
58
53
  }
59
- Ue(() => T.config, (a) => {
60
- e.value = we(), re.value = !e.value.userOptions.showOnChartHover, Ve(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.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;
61
- }, { deep: !0 }), Ue(() => T.dataset, ee, { deep: !0 });
62
- const { isPrinting: xe, isImaging: Ce, generatePdf: Te, generateImage: Le } = It({
54
+ Xe(() => T.config, (l) => {
55
+ e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, g.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;
56
+ }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
+ const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
63
58
  elementId: `vue-ui-vertical-bar_${C.value}`,
64
59
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
65
60
  options: e.value.userOptions.print
66
- }), tt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = m(() => $t(e.value.customPalette)), Se = i(null), Pe = i(!1), at = m(() => e.value.table.responsiveBreakpoint), Z = i(null);
67
- Xe(() => {
68
- Ve();
61
+ }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
62
+ We(() => {
63
+ Oe();
69
64
  });
70
- function Ve() {
71
- if (Ee(T.dataset) && K({
65
+ function Oe() {
66
+ if (Ge(T.dataset) && Z({
72
67
  componentName: "VueUiVerticalBar",
73
68
  type: "dataset"
74
- }), Q.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), lt(), e.value.responsive) {
75
- const a = St(() => {
76
- const { width: l, height: t } = Pt({
77
- chart: G.value,
78
- title: e.value.style.chart.title.text ? ge.value : null,
79
- legend: e.value.style.chart.legend.show ? ue.value : null,
80
- source: fe.value,
81
- noTitle: be.value
69
+ }), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ct(), e.value.responsive) {
70
+ const l = Bt(() => {
71
+ const { width: a, height: t } = Rt({
72
+ chart: Y.value,
73
+ title: e.value.style.chart.title.text ? be.value : null,
74
+ legend: e.value.style.chart.legend.show ? re.value : null,
75
+ source: me.value,
76
+ noTitle: ke.value
82
77
  });
83
78
  requestAnimationFrame(() => {
84
- Fe.value = l, v.value = t / Q.value - g.value * 2;
79
+ ze.value = a, v.value = t / te.value - g.value * 2;
85
80
  });
86
81
  });
87
- Z.value = new ResizeObserver(a), Z.value.observe(G.value.parentNode);
82
+ I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(l), U.value = Y.value.parentNode, I.value.observe(U.value);
88
83
  }
89
84
  }
90
- pt(() => {
91
- Z.value && Z.value.disconnect();
85
+ wt(() => {
86
+ I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
92
87
  });
93
- function lt() {
94
- new ResizeObserver((l) => {
95
- l.forEach((t) => {
96
- Pe.value = t.contentRect.width < at.value;
88
+ function ct() {
89
+ new ResizeObserver((a) => {
90
+ a.forEach((t) => {
91
+ Ie.value = t.contentRect.width < vt.value;
97
92
  });
98
- }).observe(Se.value);
93
+ }).observe(Ve.value);
99
94
  }
100
- const $ = i({
95
+ const $ = d({
101
96
  showTable: e.value.table.show,
102
97
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
103
98
  showTooltip: e.value.style.chart.tooltip.show
104
- }), Ie = m(() => $.value.sortDesc), O = m(() => (T.dataset.forEach((a, l) => {
105
- !a.value && !a.children && K({
99
+ }), Fe = m(() => $.value.sortDesc), F = m(() => (T.dataset.forEach((l, a) => {
100
+ !l.value && !l.children && Z({
106
101
  componentName: "VueUiVerticalBar",
107
102
  type: "datasetAttributeEmpty",
108
- property: `value (index ${l})`
109
- }), a.children && (Ee(a.children) ? K({
103
+ property: `value (index ${a})`
104
+ }), l.children && (Ge(l.children) ? Z({
110
105
  componentName: "VueUiVerticalBar",
111
106
  type: "datasetAttributeEmpty",
112
- property: `children (index ${l})`
113
- }) : a.children.forEach((t, o) => {
114
- [null, void 0].includes(t.name) && K({
107
+ property: `children (index ${a})`
108
+ }) : l.children.forEach((t, o) => {
109
+ [null, void 0].includes(t.name) && Z({
115
110
  componentName: "VueUiVerticalBar",
116
111
  type: "datasetSerieAttribute",
117
112
  property: "name",
@@ -119,50 +114,50 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
119
114
  index: o
120
115
  });
121
116
  }));
122
- }), T.dataset.map((a, l) => {
123
- const t = `vertical_parent_${l}_${C.value}`, o = a.children && a.children.length > 0, k = N(a.value ? a.value : o ? a.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = k >= 0 ? 1 : -1;
117
+ }), T.dataset.map((l, a) => {
118
+ const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, _ = N(l.value ? l.value : o ? l.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = _ >= 0 ? 1 : -1;
124
119
  return {
125
- ...a,
120
+ ...l,
126
121
  id: t,
127
- absoluteIndex: l,
122
+ absoluteIndex: a,
128
123
  shape: "square",
129
- opacity: S.value.includes(t) ? 0.5 : 1,
130
- value: Math.abs(k),
124
+ opacity: P.value.includes(t) ? 0.5 : 1,
125
+ value: Math.abs(_),
131
126
  sign: f,
132
127
  hasChildren: o,
133
128
  isChild: !1,
134
- segregate: () => j(t),
135
- isSegregated: S.value.includes(t),
136
- color: he(a.color) || Ne.value[l] || R[l] || R[l % R.length],
137
- children: !a.children || !a.children.length ? [] : a.children.toSorted(te.value ? () => 0 : (x, V) => Ie.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
129
+ segregate: () => K(t),
130
+ isSegregated: P.value.includes(t),
131
+ color: ye(l.color) || Se.value[a] || D[a] || D[a % D.length],
132
+ children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (x, V) => Fe.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
138
133
  ...x,
139
134
  value: N(Math.abs(x.value)),
140
- absoluteIndex: l,
135
+ absoluteIndex: a,
141
136
  sign: x.value >= 0 ? 1 : -1,
142
137
  isChild: !0,
143
138
  parentId: t,
144
- parentName: a.name,
145
- parentValue: k,
139
+ parentName: l.name,
140
+ parentValue: _,
146
141
  parentSign: f,
147
- id: `vertical_child_${l}_${V}_${C.value}`,
142
+ id: `vertical_child_${a}_${V}_${C.value}`,
148
143
  childIndex: V,
149
- color: he(x.color) || he(a.color) || Ne.value[l] || R[l] || R[l % R.length]
144
+ color: ye(x.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
150
145
  })).map((x, V) => ({
151
146
  ...x,
152
147
  isFirstChild: V === 0,
153
- isLastChild: V === a.children.length - 1
148
+ isLastChild: V === l.children.length - 1
154
149
  }))
155
150
  };
156
- }).toSorted(te.value ? () => 0 : (a, l) => Ie.value ? l.value - a.value : a.value - l.value))), Oe = m(() => ({
151
+ }).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = m(() => ({
157
152
  cy: "vertical-bar-div-legend",
158
153
  backgroundColor: e.value.style.chart.legend.backgroundColor,
159
154
  color: e.value.style.chart.legend.color,
160
155
  fontSize: e.value.style.chart.legend.fontSize,
161
156
  paddingBottom: 12,
162
157
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
163
- })), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), ot = m(() => (v.value + g.value) * Q.value), Fe = i(512), y = m(() => ({
164
- width: Fe.value,
165
- height: ot.value,
158
+ })), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + g.value) * te.value), ze = d(512), y = m(() => ({
159
+ width: ze.value,
160
+ height: ht.value,
166
161
  padding: {
167
162
  top: 12,
168
163
  left: 128 + e.value.style.chart.layout.bars.offsetX,
@@ -177,103 +172,103 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
177
172
  bottom: y.value.padding.top + y.value.height,
178
173
  width: y.value.width - (y.value.padding.left + y.value.padding.right)
179
174
  }));
180
- function ee() {
181
- Q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
175
+ function le() {
176
+ te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
182
177
  }
183
- const S = i([]);
184
- function j(a) {
185
- S.value.includes(a) ? S.value = S.value.filter((l) => l !== a) : S.value.push(a), ee(), et("selectLegend", F.value);
178
+ const P = d([]);
179
+ function K(l) {
180
+ P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
186
181
  }
187
- const F = m(() => O.value.filter((a) => !S.value.includes(a.id))), P = m(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
188
- function Me(a, l = !1, t = 0) {
189
- return l ? D({
190
- v: N(Math.abs(a) / P.value * 100),
182
+ const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
+ function Ae(l, a = !1, t = 0) {
184
+ return a ? E({
185
+ v: N(Math.abs(l) / S.value * 100),
191
186
  s: "%",
192
187
  r: t
193
- }) : Math.abs(a) / P.value;
188
+ }) : Math.abs(l) / S.value;
194
189
  }
195
- const M = m(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), z = m(() => M.value.map((a) => a.sign).includes(-1)), nt = m(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
196
- function w(a) {
197
- const l = a / nt.value;
198
- return s.value.width / (z.value ? 2 : 1) * l;
190
+ const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
191
+ function w(l) {
192
+ const a = l / pt.value;
193
+ return s.value.width / (A.value ? 2 : 1) * a;
199
194
  }
200
- function ut(a) {
201
- return w(a) + s.value.left;
195
+ function yt(l) {
196
+ return w(l) + s.value.left;
202
197
  }
203
- function q(a, l) {
204
- const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, k = t.children.length * (g.value + v.value);
198
+ function J(l, a) {
199
+ const t = M.value.find((f) => f.id === l.parentId), o = s.value.top + (g.value + v.value) * a, _ = t.children.length * (g.value + v.value);
205
200
  return {
206
- y: o + k / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
201
+ y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
207
202
  name: t.name,
208
203
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
209
- percentageToTotal: isNaN(t.value / P.value) ? "" : Me(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
204
+ percentageToTotal: isNaN(t.value / S.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
210
205
  sign: t.sign
211
206
  };
212
207
  }
213
- function st() {
214
- return F.value;
208
+ function gt() {
209
+ return M.value;
215
210
  }
216
- const ie = i(null), de = i(null);
217
- function rt(a, l) {
218
- de.value = {
219
- datapoint: a,
220
- seriesIndex: l,
221
- series: O.value,
211
+ const ve = d(null), ce = d(null);
212
+ function ft(l, a) {
213
+ ce.value = {
214
+ datapoint: l,
215
+ seriesIndex: a,
216
+ series: F.value,
222
217
  config: e.value
223
- }, oe.value = !0, ie.value = a.id;
218
+ }, ue.value = !0, ve.value = l.id;
224
219
  let t = "";
225
- const o = a.isChild ? a.parentName : a.name, k = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
226
- Lt(f) && Nt(() => f({
227
- datapoint: a,
228
- series: O.value,
220
+ const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", f = e.value.style.chart.tooltip.customFormat;
221
+ zt(f) && At(() => f({
222
+ datapoint: l,
223
+ series: F.value,
229
224
  config: e.value,
230
- seriesIndex: l
231
- })) ? ne.value = f({
232
- datapoint: a,
233
- series: O.value,
225
+ seriesIndex: a
226
+ })) ? se.value = f({
227
+ datapoint: l,
228
+ series: F.value,
234
229
  config: e.value,
235
- seriesIndex: l
230
+ seriesIndex: a
236
231
  }) : (t += `<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;">
237
- <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="${a.color}"/>${Je.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
238
- ${k ? `<div>${k}</div>` : ""}
239
- </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${le(
232
+ <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="${l.color}"/>${ut.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
233
+ ${_ ? `<div>${_}</div>` : ""}
234
+ </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
240
235
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
241
- a.sign === 1 ? a.value : -a.value,
242
- D({
236
+ l.sign === 1 ? l.value : -l.value,
237
+ E({
243
238
  p: e.value.style.chart.tooltip.prefix,
244
- v: a.sign === 1 ? a.value : -a.value,
239
+ v: l.sign === 1 ? l.value : -l.value,
245
240
  s: e.value.style.chart.tooltip.suffix,
246
241
  r: e.value.style.chart.tooltip.roundingValue
247
242
  }),
248
- { datapoint: a, seriesIndex: l }
249
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${D({
250
- v: Math.abs(a.value) / P.value * 100,
243
+ { datapoint: l, seriesIndex: a }
244
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${E({
245
+ v: Math.abs(l.value) / S.value * 100,
251
246
  s: "%",
252
247
  r: e.value.style.chart.tooltip.roundingPercentage
253
- })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${D({
254
- v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
248
+ })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
249
+ v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
255
250
  s: "%",
256
251
  r: e.value.style.chart.tooltip.roundingPercentage
257
- })}</b></div>`)), ne.value = `<div style="text-align:left">${t}</div>`);
252
+ })}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
258
253
  }
259
- function ze(a, l, t, o) {
254
+ function Be(l, a, t, o) {
260
255
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
261
256
  return "";
262
- const k = le(
257
+ const _ = ne(
263
258
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
264
- N(o === -1 && a >= 0 ? -a : a),
265
- D({
259
+ N(o === -1 && l >= 0 ? -l : l),
260
+ E({
266
261
  p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
267
- v: N(o === -1 && a >= 0 ? -a : a),
262
+ v: N(o === -1 && l >= 0 ? -l : l),
268
263
  s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
269
264
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
270
265
  }),
271
- { datapoint: l, seriesIndex: t }
272
- ), f = `(${Me(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
273
- return `${k}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
266
+ { datapoint: a, seriesIndex: t }
267
+ ), f = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
+ return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
274
269
  }
275
270
  const L = m(() => {
276
- const a = [
271
+ const l = [
277
272
  e.value.translations.parentName,
278
273
  e.value.translations.value,
279
274
  e.value.translations.percentageToTotal,
@@ -281,15 +276,15 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
281
276
  e.value.translations.value,
282
277
  e.value.translations.percentageToSerie,
283
278
  e.value.translations.percentageToTotal
284
- ], l = M.value.map((t) => t.isChild ? t.isFirstChild ? {
279
+ ], a = z.value.map((t) => t.isChild ? t.isFirstChild ? {
285
280
  color: t.color,
286
281
  parentName: t.parentName,
287
282
  parentValue: t.parentValue,
288
- percentageToTotal: t.parentValue / P.value,
283
+ percentageToTotal: t.parentValue / S.value,
289
284
  childName: t.name,
290
285
  childValue: t.sign === 1 ? t.value : -t.value,
291
286
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
292
- childPercentageToTotal: Math.abs(t.value) / P.value
287
+ childPercentageToTotal: Math.abs(t.value) / S.value
293
288
  } : {
294
289
  color: "",
295
290
  parentName: "",
@@ -298,21 +293,21 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
298
293
  childName: t.name,
299
294
  childValue: t.sign === 1 ? t.value : -t.value,
300
295
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
301
- childPercentageToTotal: Math.abs(t.value) / P.value
296
+ childPercentageToTotal: Math.abs(t.value) / S.value
302
297
  } : {
303
298
  color: t.color,
304
299
  parentName: t.name,
305
300
  parentValue: t.sign === 1 ? t.value : -t.value,
306
- percentageToTotal: Math.abs(t.value) / P.value,
301
+ percentageToTotal: Math.abs(t.value) / S.value,
307
302
  childName: "",
308
303
  childValue: "",
309
304
  childPercentageToParent: "",
310
305
  childPercentageToTotal: ""
311
306
  });
312
- return { head: a, body: l };
307
+ return { head: l, body: a };
313
308
  });
314
- function Ae() {
315
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = L.value.head, t = L.value.body.map((f) => [
309
+ function Re() {
310
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = L.value.head, t = L.value.body.map((f) => [
316
311
  f.parentName,
317
312
  f.parentValue,
318
313
  f.percentageToTotal,
@@ -320,84 +315,84 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
320
315
  f.childValue,
321
316
  f.childPercentageToParent,
322
317
  f.childPercentageToTotal
323
- ]), o = a.concat([l]).concat(t), k = Ct(o);
324
- Tt({ csvContent: k, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
318
+ ]), o = l.concat([a]).concat(t), _ = Ft(o);
319
+ Mt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
325
320
  }
326
- const U = i(!1);
327
- function it(a) {
328
- U.value = a, ye.value += 1;
321
+ const X = d(!1);
322
+ function bt(l) {
323
+ X.value = l, fe.value += 1;
329
324
  }
330
- function Be() {
325
+ function De() {
331
326
  $.value.showTable = !$.value.showTable;
332
327
  }
333
- const dt = i({
328
+ const mt = d({
334
329
  none: 0,
335
330
  asc: 1,
336
331
  desc: 2
337
- }), I = i(0), te = i(!1);
338
- Xe(() => {
339
- ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || K({
332
+ }), O = d(0), ae = d(!1);
333
+ We(() => {
334
+ ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
340
335
  componentName: "VueUiVerticalBar",
341
336
  type: "attributeWrongValue",
342
337
  property: "style.chart.layout.bars.sort",
343
338
  key: e.value.style.chart.layout.bars.sort
344
- }), I.value = dt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = I.value === 2, te.value = I.value === 0;
339
+ }), O.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = O.value === 2, ae.value = O.value === 0;
345
340
  });
346
- function vt() {
347
- I.value += 1, I.value > 2 && (I.value = 0);
341
+ function kt() {
342
+ O.value += 1, O.value > 2 && (O.value = 0);
348
343
  }
349
- function Re() {
350
- vt(), $.value.sortDesc = I.value === 2, te.value = I.value === 0, ee();
344
+ function Ee() {
345
+ kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
351
346
  }
352
- function De() {
347
+ function Ue() {
353
348
  $.value.showTooltip = !$.value.showTooltip;
354
349
  }
355
- const ae = i(!1);
356
- function ve() {
357
- ae.value = !ae.value;
350
+ const oe = d(!1);
351
+ function he() {
352
+ oe.value = !oe.value;
358
353
  }
359
- return qe({
360
- getData: st,
361
- recalculateHeight: ee,
362
- generatePdf: Te,
363
- generateCsv: Ae,
364
- generateImage: Le,
365
- toggleTable: Be,
366
- toggleSort: Re,
367
- toggleTooltip: De,
368
- toggleAnnotator: ve
369
- }), (a, l) => (u(), r("div", {
370
- class: A(`vue-ui-vertical-bar ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
354
+ return Je({
355
+ getData: gt,
356
+ recalculateHeight: le,
357
+ generatePdf: Ne,
358
+ generateCsv: Re,
359
+ generateImage: Pe,
360
+ toggleTable: De,
361
+ toggleSort: Ee,
362
+ toggleTooltip: Ue,
363
+ toggleAnnotator: he
364
+ }), (l, a) => (u(), i("div", {
365
+ class: B(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
371
366
  ref_key: "verticalBarChart",
372
- ref: G,
367
+ ref: Y,
373
368
  id: `vue-ui-vertical-bar_${C.value}`,
374
369
  style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
375
- onMouseenter: l[5] || (l[5] = () => d(_e)(!0)),
376
- onMouseleave: l[6] || (l[6] = () => d(_e)(!1))
370
+ onMouseenter: a[5] || (a[5] = () => r($e)(!0)),
371
+ onMouseleave: a[6] || (a[6] = () => r($e)(!1))
377
372
  }, [
378
- e.value.userOptions.buttons.annotator ? (u(), B(Rt, {
373
+ e.value.userOptions.buttons.annotator ? (u(), R(r(tt), {
379
374
  key: 0,
380
- svgRef: d($e),
375
+ svgRef: r(xe),
381
376
  backgroundColor: e.value.style.chart.backgroundColor,
382
377
  color: e.value.style.chart.color,
383
- active: ae.value,
384
- onClose: ve
378
+ active: oe.value,
379
+ onClose: he
385
380
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
386
- tt.value ? (u(), r("div", {
381
+ dt.value ? (u(), i("div", {
387
382
  key: 1,
388
383
  ref_key: "noTitle",
389
- ref: be,
384
+ ref: ke,
390
385
  class: "vue-data-ui-no-title-space",
391
386
  style: "height:36px; width: 100%;background:transparent"
392
387
  }, null, 512)) : p("", !0),
393
- e.value.style.chart.title.text ? (u(), r("div", {
388
+ e.value.style.chart.title.text ? (u(), i("div", {
394
389
  key: 2,
395
390
  ref_key: "chartTitle",
396
- ref: ge,
391
+ ref: be,
397
392
  style: "width:100%;background:transparent;padding-bottom:12px"
398
393
  }, [
399
- (u(), B(Vt, {
400
- key: `title_${me.value}`,
394
+ (u(), R(Ht, {
395
+ key: `title_${_e.value}`,
401
396
  config: {
402
397
  title: {
403
398
  cy: "vertical-bar-div-title",
@@ -410,14 +405,14 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
410
405
  }
411
406
  }, null, 8, ["config"]))
412
407
  ], 512)) : p("", !0),
413
- e.value.userOptions.show && J.value && (d(ke) || d(re)) ? (u(), B(Ot, {
408
+ e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
414
409
  ref_key: "details",
415
- ref: Qe,
416
- key: `user_options_${ye.value}`,
410
+ ref: st,
411
+ key: `user_options_${fe.value}`,
417
412
  backgroundColor: e.value.style.chart.backgroundColor,
418
413
  color: e.value.style.chart.color,
419
- isImaging: d(Ce),
420
- isPrinting: d(xe),
414
+ isImaging: r(Le),
415
+ isPrinting: r(Te),
421
416
  uid: C.value,
422
417
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
423
418
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -426,129 +421,129 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
426
421
  hasTable: e.value.userOptions.buttons.table,
427
422
  hasSort: e.value.userOptions.buttons.sort,
428
423
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
429
- isFullscreen: U.value,
424
+ isFullscreen: X.value,
430
425
  isTooltip: $.value.showTooltip,
431
426
  titles: { ...e.value.userOptions.buttonTitles },
432
- chartElement: G.value,
427
+ chartElement: Y.value,
433
428
  position: e.value.userOptions.position,
434
429
  hasAnnotator: e.value.userOptions.buttons.annotator,
435
- isAnnotation: ae.value,
436
- onToggleFullscreen: it,
437
- onGeneratePdf: d(Te),
438
- onGenerateCsv: Ae,
439
- onGenerateImage: d(Le),
440
- onToggleTable: Be,
441
- onToggleSort: Re,
442
- onToggleTooltip: De,
443
- onToggleAnnotator: ve,
430
+ isAnnotation: oe.value,
431
+ onToggleFullscreen: bt,
432
+ onGeneratePdf: r(Ne),
433
+ onGenerateCsv: Re,
434
+ onGenerateImage: r(Pe),
435
+ onToggleTable: De,
436
+ onToggleSort: Ee,
437
+ onToggleTooltip: Ue,
438
+ onToggleAnnotator: he,
444
439
  style: c({
445
- visibility: d(ke) ? d(re) ? "visible" : "hidden" : "visible"
440
+ visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
446
441
  })
447
- }, ce({ _: 2 }, [
448
- a.$slots.menuIcon ? {
442
+ }, pe({ _: 2 }, [
443
+ l.$slots.menuIcon ? {
449
444
  name: "menuIcon",
450
- fn: _(({ isOpen: t, color: o }) => [
451
- b(a.$slots, "menuIcon", X(E({ isOpen: t, color: o })), void 0, !0)
445
+ fn: k(({ isOpen: t, color: o }) => [
446
+ b(l.$slots, "menuIcon", W(G({ isOpen: t, color: o })), void 0, !0)
452
447
  ]),
453
448
  key: "0"
454
449
  } : void 0,
455
- a.$slots.optionTooltip ? {
450
+ l.$slots.optionTooltip ? {
456
451
  name: "optionTooltip",
457
- fn: _(() => [
458
- b(a.$slots, "optionTooltip", {}, void 0, !0)
452
+ fn: k(() => [
453
+ b(l.$slots, "optionTooltip", {}, void 0, !0)
459
454
  ]),
460
455
  key: "1"
461
456
  } : void 0,
462
- a.$slots.optionPdf ? {
457
+ l.$slots.optionPdf ? {
463
458
  name: "optionPdf",
464
- fn: _(() => [
465
- b(a.$slots, "optionPdf", {}, void 0, !0)
459
+ fn: k(() => [
460
+ b(l.$slots, "optionPdf", {}, void 0, !0)
466
461
  ]),
467
462
  key: "2"
468
463
  } : void 0,
469
- a.$slots.optionCsv ? {
464
+ l.$slots.optionCsv ? {
470
465
  name: "optionCsv",
471
- fn: _(() => [
472
- b(a.$slots, "optionCsv", {}, void 0, !0)
466
+ fn: k(() => [
467
+ b(l.$slots, "optionCsv", {}, void 0, !0)
473
468
  ]),
474
469
  key: "3"
475
470
  } : void 0,
476
- a.$slots.optionImg ? {
471
+ l.$slots.optionImg ? {
477
472
  name: "optionImg",
478
- fn: _(() => [
479
- b(a.$slots, "optionImg", {}, void 0, !0)
473
+ fn: k(() => [
474
+ b(l.$slots, "optionImg", {}, void 0, !0)
480
475
  ]),
481
476
  key: "4"
482
477
  } : void 0,
483
- a.$slots.optionTable ? {
478
+ l.$slots.optionTable ? {
484
479
  name: "optionTable",
485
- fn: _(() => [
486
- b(a.$slots, "optionTable", {}, void 0, !0)
480
+ fn: k(() => [
481
+ b(l.$slots, "optionTable", {}, void 0, !0)
487
482
  ]),
488
483
  key: "5"
489
484
  } : void 0,
490
- a.$slots.optionLabels ? {
485
+ l.$slots.optionLabels ? {
491
486
  name: "optionLabels",
492
- fn: _(() => [
493
- b(a.$slots, "optionLabels", {}, void 0, !0)
487
+ fn: k(() => [
488
+ b(l.$slots, "optionLabels", {}, void 0, !0)
494
489
  ]),
495
490
  key: "6"
496
491
  } : void 0,
497
- a.$slots.optionSort ? {
492
+ l.$slots.optionSort ? {
498
493
  name: "optionSort",
499
- fn: _(() => [
500
- b(a.$slots, "optionSort", {}, void 0, !0)
494
+ fn: k(() => [
495
+ b(l.$slots, "optionSort", {}, void 0, !0)
501
496
  ]),
502
497
  key: "7"
503
498
  } : void 0,
504
- a.$slots.optionFullscreen ? {
499
+ l.$slots.optionFullscreen ? {
505
500
  name: "optionFullscreen",
506
- fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
507
- b(a.$slots, "optionFullscreen", X(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
501
+ fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
502
+ b(l.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
508
503
  ]),
509
504
  key: "8"
510
505
  } : void 0,
511
- a.$slots.optionAnnotator ? {
506
+ l.$slots.optionAnnotator ? {
512
507
  name: "optionAnnotator",
513
- fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
514
- b(a.$slots, "optionAnnotator", X(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
508
+ fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
509
+ b(l.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
515
510
  ]),
516
511
  key: "9"
517
512
  } : void 0
518
513
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
519
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), r("div", {
514
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
520
515
  key: 4,
521
516
  ref_key: "chartLegend",
522
- ref: ue
517
+ ref: re
523
518
  }, [
524
- (u(), B(He, {
525
- key: `legend_top_${se.value}`,
526
- legendSet: O.value,
527
- config: Oe.value,
528
- onClickMarker: l[0] || (l[0] = ({ legend: t }) => j(t.id))
529
- }, ce({
530
- item: _(({ legend: t, index: o }) => [
519
+ (u(), R(qe, {
520
+ key: `legend_top_${ie.value}`,
521
+ legendSet: F.value,
522
+ config: Me.value,
523
+ onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
524
+ }, pe({
525
+ item: k(({ legend: t, index: o }) => [
531
526
  n("div", {
532
- onClick: (k) => j(t.id),
533
- style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
534
- }, h(t.name) + ": " + h(d(le)(
527
+ onClick: (_) => K(t.id),
528
+ style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
529
+ }, h(t.name) + ": " + h(r(ne)(
535
530
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
536
531
  t.value,
537
- d(D)({
532
+ r(E)({
538
533
  p: e.value.style.chart.legend.prefix,
539
534
  v: t.value,
540
535
  s: e.value.style.chart.legend.suffix,
541
536
  r: e.value.style.chart.legend.roundingValue
542
537
  }),
543
538
  { datapoint: t, seriesIndex: o }
544
- )), 13, Ht)
539
+ )), 13, jt)
545
540
  ]),
546
541
  _: 2
547
542
  }, [
548
- a.$slots.pattern ? {
543
+ l.$slots.pattern ? {
549
544
  name: "legend-pattern",
550
- fn: _(({ legend: t, index: o }) => [
551
- Y(Ge, {
545
+ fn: k(({ legend: t, index: o }) => [
546
+ Q(Ye, {
552
547
  shape: t.shape,
553
548
  radius: 30,
554
549
  stroke: "none",
@@ -560,17 +555,17 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
560
555
  } : void 0
561
556
  ]), 1032, ["legendSet", "config"]))
562
557
  ], 512)) : p("", !0),
563
- J.value ? (u(), r("svg", {
558
+ ee.value ? (u(), i("svg", {
564
559
  key: 5,
565
560
  ref_key: "svgRef",
566
- ref: $e,
567
- xmlns: d(wt),
568
- class: A({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
561
+ ref: xe,
562
+ xmlns: r(It),
563
+ class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
569
564
  viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
570
565
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
571
566
  }, [
572
- Y(Bt),
573
- a.$slots["chart-background"] ? (u(), r("foreignObject", {
567
+ Q(r(et)),
568
+ l.$slots["chart-background"] ? (u(), i("foreignObject", {
574
569
  key: 0,
575
570
  x: 0,
576
571
  y: 0,
@@ -580,9 +575,9 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
580
575
  pointerEvents: "none"
581
576
  }
582
577
  }, [
583
- b(a.$slots, "chart-background", {}, void 0, !0)
584
- ], 8, Gt)) : p("", !0),
585
- (u(!0), r(H, null, W(M.value, (t, o) => (u(), r("linearGradient", {
578
+ b(l.$slots, "chart-background", {}, void 0, !0)
579
+ ], 8, Yt)) : p("", !0),
580
+ (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
586
581
  x1: "0%",
587
582
  y1: "0%",
588
583
  x2: "100%",
@@ -592,53 +587,53 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
592
587
  n("stop", {
593
588
  offset: "0%",
594
589
  "stop-color": t.color
595
- }, null, 8, qt),
590
+ }, null, 8, Jt),
596
591
  n("stop", {
597
592
  offset: "100%",
598
- "stop-color": d(pe)(d(xt)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
599
- }, null, 8, Yt)
600
- ], 8, jt))), 256)),
601
- a.$slots.pattern ? (u(), r("g", Kt, [
602
- (u(!0), r(H, null, W(M.value, (t) => (u(), r("defs", null, [
603
- b(a.$slots, "pattern", yt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
593
+ "stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
594
+ }, null, 8, Qt)
595
+ ], 8, Kt))), 256)),
596
+ l.$slots.pattern ? (u(), i("g", Zt, [
597
+ (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
598
+ b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
604
599
  ]))), 256))
605
600
  ])) : p("", !0),
606
- (u(!0), r(H, null, W(M.value, (t, o) => (u(), r("g", null, [
601
+ (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
607
602
  n("rect", {
608
- x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
603
+ x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
609
604
  y: s.value.top + (g.value + v.value) * o,
610
- width: d(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
605
+ width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
611
606
  height: v.value <= 0 ? 1e-4 : v.value,
612
607
  fill: e.value.style.chart.layout.bars.underlayerColor,
613
608
  rx: e.value.style.chart.layout.bars.borderRadius,
614
- class: A({ animated: e.value.useCssAnimation })
615
- }, null, 10, Jt)
609
+ class: B({ animated: e.value.useCssAnimation })
610
+ }, null, 10, el)
616
611
  ]))), 256)),
617
- (u(!0), r(H, null, W(M.value, (t, o) => (u(), r("g", null, [
612
+ (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
618
613
  n("rect", {
619
- x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
614
+ x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
620
615
  y: s.value.top + (g.value + v.value) * o,
621
- width: d(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
616
+ width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
622
617
  height: v.value <= 0 ? 1e-4 : v.value,
623
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : d(pe)(t.color, e.value.style.chart.layout.bars.fillOpacity),
618
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
624
619
  rx: e.value.style.chart.layout.bars.borderRadius,
625
620
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
626
621
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
627
- class: A({ animated: e.value.useCssAnimation })
628
- }, null, 10, Qt),
629
- a.$slots.pattern ? (u(), r("rect", {
622
+ class: B({ animated: e.value.useCssAnimation })
623
+ }, null, 10, tl),
624
+ l.$slots.pattern ? (u(), i("rect", {
630
625
  key: 0,
631
- x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
626
+ x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
632
627
  y: s.value.top + (g.value + v.value) * o,
633
- width: d(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
628
+ width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
634
629
  height: v.value <= 0 ? 1e-4 : v.value,
635
630
  fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
636
631
  rx: e.value.style.chart.layout.bars.borderRadius,
637
632
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
638
633
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
639
- class: A({ animated: e.value.useCssAnimation })
640
- }, null, 10, Zt)) : p("", !0),
641
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== M.value.length - 1 ? (u(), r("line", {
634
+ class: B({ animated: e.value.useCssAnimation })
635
+ }, null, 10, ll)) : p("", !0),
636
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
642
637
  key: 1,
643
638
  x1: 0,
644
639
  x2: s.value.left,
@@ -647,8 +642,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
647
642
  stroke: e.value.style.chart.layout.separators.color,
648
643
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
649
644
  "stroke-linecap": "round"
650
- }, null, 8, ea)) : p("", !0),
651
- z.value && e.value.style.chart.layout.separators.show ? (u(), r("line", {
645
+ }, null, 8, al)) : p("", !0),
646
+ A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
652
647
  key: 2,
653
648
  x1: s.value.left + s.value.width / 2,
654
649
  x2: s.value.left + s.value.width / 2,
@@ -657,16 +652,16 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
657
652
  stroke: e.value.style.chart.layout.separators.color,
658
653
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
659
654
  "stroke-linecap": "round"
660
- }, null, 8, ta)) : p("", !0),
655
+ }, null, 8, ol)) : p("", !0),
661
656
  n("text", {
662
- x: z.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : ut(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
657
+ x: A.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
663
658
  y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
664
- "text-anchor": !z.value || t.sign === -1 ? "start" : "end",
659
+ "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
665
660
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
666
661
  fill: e.value.style.chart.layout.bars.dataLabels.color,
667
662
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
668
- }, h(ze(t.value, t, o, t.sign)), 9, aa),
669
- (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), r("text", {
663
+ }, h(Be(t.value, t, o, t.sign)), 9, nl),
664
+ (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
670
665
  key: 3,
671
666
  "text-anchor": "end",
672
667
  x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
@@ -674,43 +669,43 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
674
669
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
675
670
  fill: e.value.style.chart.layout.bars.nameLabels.color,
676
671
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
677
- }, h(t.name), 9, la)) : p("", !0),
678
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
672
+ }, h(t.name), 9, ul)) : p("", !0),
673
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
679
674
  key: 4,
680
675
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
681
- y: q(t, o).y,
676
+ y: J(t, o).y,
682
677
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
683
678
  fill: e.value.style.chart.layout.bars.parentLabels.color,
684
679
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
685
680
  "text-anchor": "start"
686
- }, h(q(t, o).name), 9, oa)) : p("", !0),
687
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
681
+ }, h(J(t, o).name), 9, sl)) : p("", !0),
682
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
688
683
  key: 5,
689
684
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
690
- y: q(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
685
+ y: J(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
691
686
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
692
687
  fill: e.value.style.chart.layout.bars.parentLabels.color,
693
688
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
694
689
  "text-anchor": "start"
695
- }, h(ze(q(t, o).value), q(t, o), o, t.parentSign || t.sign), 9, na)) : p("", !0),
690
+ }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : p("", !0),
696
691
  n("rect", {
697
692
  x: 0,
698
693
  y: s.value.top + (g.value + v.value) * o - g.value / 2,
699
694
  width: y.value.width <= 0 ? 1e-4 : y.value.width,
700
695
  height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
701
- fill: ie.value === t.id ? d(pe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
702
- onMouseenter: (k) => rt(t, o),
703
- onMouseleave: l[1] || (l[1] = (k) => {
704
- Ze.value = null, oe.value = !1, ie.value = null;
696
+ fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
697
+ onMouseenter: (_) => ft(t, o),
698
+ onMouseleave: a[1] || (a[1] = (_) => {
699
+ rt.value = null, ue.value = !1, ve.value = null;
705
700
  })
706
- }, null, 40, ua)
701
+ }, null, 40, il)
707
702
  ]))), 256)),
708
- b(a.$slots, "svg", { svg: y.value }, void 0, !0)
709
- ], 14, Wt)) : p("", !0),
710
- a.$slots.watermark ? (u(), r("div", sa, [
711
- b(a.$slots, "watermark", X(E({ isPrinting: d(xe) || d(Ce) })), void 0, !0)
703
+ b(l.$slots, "svg", { svg: y.value }, void 0, !0)
704
+ ], 14, qt)) : p("", !0),
705
+ l.$slots.watermark ? (u(), i("div", dl, [
706
+ b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
712
707
  ])) : p("", !0),
713
- J.value ? p("", !0) : (u(), B(Mt, {
708
+ ee.value ? p("", !0) : (u(), R(r(lt), {
714
709
  key: 7,
715
710
  config: {
716
711
  type: "verticalBar",
@@ -725,39 +720,39 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
725
720
  }
726
721
  }
727
722
  }, null, 8, ["config"])),
728
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), r("div", {
723
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), i("div", {
729
724
  key: 8,
730
725
  ref_key: "chartLegend",
731
- ref: ue
726
+ ref: re
732
727
  }, [
733
- (u(), B(He, {
734
- key: `legend_bottom_${se.value}`,
735
- legendSet: O.value,
736
- config: Oe.value,
737
- onClickMarker: l[2] || (l[2] = ({ legend: t }) => j(t.id))
738
- }, ce({
739
- item: _(({ legend: t, index: o }) => [
728
+ (u(), R(qe, {
729
+ key: `legend_bottom_${ie.value}`,
730
+ legendSet: F.value,
731
+ config: Me.value,
732
+ onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
733
+ }, pe({
734
+ item: k(({ legend: t, index: o }) => [
740
735
  n("div", {
741
- onClick: (k) => j(t.id),
742
- style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
743
- }, h(t.name) + ": " + h(d(le)(
736
+ onClick: (_) => K(t.id),
737
+ style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
738
+ }, h(t.name) + ": " + h(r(ne)(
744
739
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
745
740
  t.value,
746
- d(D)({
741
+ r(E)({
747
742
  p: e.value.style.chart.legend.prefix,
748
743
  v: t.value,
749
744
  s: e.value.style.chart.legend.suffix,
750
745
  r: e.value.style.chart.legend.roundingValue
751
746
  }),
752
747
  { datapoint: t, seriesIndex: o }
753
- )), 13, ra)
748
+ )), 13, vl)
754
749
  ]),
755
750
  _: 2
756
751
  }, [
757
- a.$slots.pattern ? {
752
+ l.$slots.pattern ? {
758
753
  name: "legend-pattern",
759
- fn: _(({ legend: t, index: o }) => [
760
- Y(Ge, {
754
+ fn: k(({ legend: t, index: o }) => [
755
+ Q(Ye, {
761
756
  shape: t.shape,
762
757
  radius: 30,
763
758
  stroke: "none",
@@ -769,17 +764,17 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
769
764
  } : void 0
770
765
  ]), 1032, ["legendSet", "config"]))
771
766
  ], 512)) : p("", !0),
772
- b(a.$slots, "legend", { legend: O.value }, void 0, !0),
773
- a.$slots.source ? (u(), r("div", {
767
+ b(l.$slots, "legend", { legend: F.value }, void 0, !0),
768
+ l.$slots.source ? (u(), i("div", {
774
769
  key: 9,
775
770
  ref_key: "source",
776
- ref: fe,
771
+ ref: me,
777
772
  dir: "auto"
778
773
  }, [
779
- b(a.$slots, "source", {}, void 0, !0)
774
+ b(l.$slots, "source", {}, void 0, !0)
780
775
  ], 512)) : p("", !0),
781
- Y(Ft, {
782
- show: $.value.showTooltip && oe.value && S.value.length < T.dataset.length,
776
+ Q(r(at), {
777
+ show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
783
778
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
784
779
  color: e.value.style.chart.tooltip.color,
785
780
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -789,20 +784,20 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
789
784
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
790
785
  position: e.value.style.chart.tooltip.position,
791
786
  offsetY: e.value.style.chart.tooltip.offsetY,
792
- parent: G.value,
793
- content: ne.value,
794
- isFullscreen: U.value,
787
+ parent: Y.value,
788
+ content: se.value,
789
+ isFullscreen: X.value,
795
790
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
796
791
  }, {
797
- "tooltip-before": _(() => [
798
- b(a.$slots, "tooltip-before", X(E({ ...de.value })), void 0, !0)
792
+ "tooltip-before": k(() => [
793
+ b(l.$slots, "tooltip-before", W(G({ ...ce.value })), void 0, !0)
799
794
  ]),
800
- "tooltip-after": _(() => [
801
- b(a.$slots, "tooltip-after", X(E({ ...de.value })), void 0, !0)
795
+ "tooltip-after": k(() => [
796
+ b(l.$slots, "tooltip-after", W(G({ ...ce.value })), void 0, !0)
802
797
  ]),
803
798
  _: 3
804
799
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
805
- J.value ? (u(), B(At, {
800
+ ee.value ? (u(), R(Xt, {
806
801
  key: 10,
807
802
  hideDetails: "",
808
803
  config: {
@@ -818,21 +813,21 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
818
813
  }
819
814
  }
820
815
  }, {
821
- content: _(() => [
816
+ content: k(() => [
822
817
  n("div", {
823
818
  ref_key: "tableContainer",
824
- ref: Se,
819
+ ref: Ve,
825
820
  class: "vue-ui-vertical-bar-table atom-data-table"
826
821
  }, [
827
- n("div", ia, [
822
+ n("div", cl, [
828
823
  n("div", {
829
824
  role: "button",
830
825
  tabindex: "0",
831
826
  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};`),
832
- onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
833
- onKeypress: l[4] || (l[4] = gt((t) => $.value.showTable = !1, ["enter"]))
827
+ onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
828
+ onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
834
829
  }, [
835
- Y(zt, {
830
+ Q(r(Ze), {
836
831
  name: "close",
837
832
  stroke: e.value.table.th.color,
838
833
  "stroke-width": 2
@@ -840,25 +835,25 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
840
835
  ], 36),
841
836
  n("div", {
842
837
  style: { width: "100%", "container-type": "inline-size" },
843
- class: A({ "vue-ui-responsive": Pe.value })
838
+ class: B({ "vue-ui-responsive": Ie.value })
844
839
  }, [
845
- n("table", da, [
840
+ n("table", hl, [
846
841
  n("caption", {
847
842
  style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
848
843
  class: "vue-ui-data-table__caption"
849
844
  }, [
850
- ft(h(e.value.style.chart.title.text) + " ", 1),
851
- e.value.style.chart.title.subtitle.text ? (u(), r("span", va, h(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
845
+ Tt(h(e.value.style.chart.title.text) + " ", 1),
846
+ e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
852
847
  ], 4),
853
848
  n("thead", null, [
854
849
  n("tr", {
855
850
  role: "row",
856
851
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
857
852
  }, [
858
- (u(!0), r(H, null, W(L.value.head, (t) => (u(), r("th", {
853
+ (u(!0), i(j, null, q(L.value.head, (t) => (u(), i("th", {
859
854
  style: c(`outline:${e.value.table.th.outline}`)
860
855
  }, [
861
- n("div", ca, h(t), 1)
856
+ n("div", yl, h(t), 1)
862
857
  ], 4))), 256))
863
858
  ], 4),
864
859
  n("tr", null, [
@@ -867,7 +862,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
867
862
  }, null, 4),
868
863
  n("th", {
869
864
  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`)
870
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
865
+ }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
871
866
  n("th", {
872
867
  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`)
873
868
  }, "100%", 4),
@@ -886,8 +881,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
886
881
  ])
887
882
  ]),
888
883
  n("tbody", null, [
889
- (u(!0), r(H, null, W(L.value.body, (t, o) => (u(), r("tr", {
890
- class: A({ "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 }),
884
+ (u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
885
+ class: B({ "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 }),
891
886
  style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
892
887
  }, [
893
888
  n("td", {
@@ -895,56 +890,56 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
895
890
  style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
896
891
  "data-cell": L.value.head[0] ?? ""
897
892
  }, [
898
- n("div", pa, [
899
- t.color ? (u(), r("span", {
893
+ n("div", fl, [
894
+ t.color ? (u(), i("span", {
900
895
  key: 0,
901
896
  style: c(`color:${t.color};margin-right:3px`)
902
897
  }, "⬤", 4)) : p("", !0),
903
898
  n("span", null, h(t.parentName), 1)
904
899
  ])
905
- ], 12, ha),
900
+ ], 12, gl),
906
901
  n("td", {
907
902
  class: "vue-ui-data-table__tbody__td",
908
903
  style: c(`outline:${e.value.table.td.outline}`),
909
904
  "data-cell": L.value.head[1] ?? ""
910
905
  }, [
911
- n("div", ga, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
912
- ], 12, ya),
906
+ n("div", ml, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
907
+ ], 12, bl),
913
908
  n("td", {
914
909
  class: "vue-ui-data-table__tbody__td",
915
910
  style: c(`outline:${e.value.table.td.outline}`),
916
911
  "data-cell": L.value.head[2] ?? ""
917
912
  }, [
918
- n("div", ba, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
919
- ], 12, fa),
913
+ n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
914
+ ], 12, kl),
920
915
  n("td", {
921
916
  class: "vue-ui-data-table__tbody__td",
922
917
  style: c(`outline:${e.value.table.td.outline}`),
923
918
  "data-cell": L.value.head[3] ?? ""
924
919
  }, [
925
- n("div", _a, h(t.childName), 1)
926
- ], 12, ma),
920
+ n("div", wl, h(t.childName), 1)
921
+ ], 12, $l),
927
922
  n("td", {
928
923
  class: "vue-ui-data-table__tbody__td",
929
924
  style: c(`outline:${e.value.table.td.outline}`),
930
925
  "data-cell": L.value.head[4] ?? ""
931
926
  }, [
932
- n("div", $a, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
933
- ], 12, ka),
927
+ n("div", Cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
928
+ ], 12, xl),
934
929
  n("td", {
935
930
  class: "vue-ui-data-table__tbody__td",
936
931
  style: c(`outline:${e.value.table.td.outline}`),
937
932
  "data-cell": L.value.head[5] ?? ""
938
933
  }, [
939
- n("div", xa, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
940
- ], 12, wa),
934
+ n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
935
+ ], 12, Tl),
941
936
  n("td", {
942
937
  class: "vue-ui-data-table__tbody__td",
943
938
  style: c(`outline:${e.value.table.td.outline}`),
944
939
  "data-cell": L.value.head[6] ?? ""
945
940
  }, [
946
- n("div", Ta, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
947
- ], 12, Ca)
941
+ n("div", Pl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
942
+ ], 12, Nl)
948
943
  ], 6))), 256))
949
944
  ])
950
945
  ])
@@ -954,9 +949,9 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
954
949
  ]),
955
950
  _: 1
956
951
  }, 8, ["config"])) : p("", !0)
957
- ], 46, Et));
952
+ ], 46, Gt));
958
953
  }
959
- }, Wa = /* @__PURE__ */ Xt(La, [["__scopeId", "data-v-3535bb6b"]]);
954
+ }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-b09dc7fe"]]);
960
955
  export {
961
- Wa as default
956
+ Xl as default
962
957
  };