vue-data-ui 3.0.22 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,21 +1,21 @@
1
- import { useCssVars as Mt, defineAsyncComponent as le, useSlots as Bt, computed as b, ref as i, toRefs as Rt, watch as nt, shallowRef as ut, onMounted as Te, nextTick as ve, onBeforeUnmount as Et, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as h, normalizeClass as D, createBlock as X, createCommentVNode as y, renderSlot as x, createVNode as oe, createSlots as Se, withCtx as w, normalizeProps as K, guardReactiveProps as J, createElementVNode as n, toDisplayString as p, Fragment as Q, renderList as Z, mergeProps as Dt, withKeys as Xt, createTextVNode as Ut } from "vue";
2
- import { u as Gt, c as Wt, t as Ht, a as jt, p as U, b as qt, C as Le, d as Yt, h as L, o as Pe, f as ne, e as Ne, k as de, i as G, X as Kt, s as Ae, x as Jt, v as Qt, w as Zt, y as ea, z as ta } from "./index-BHb_mcWF.js";
3
- import { t as aa, u as la } from "./useResponsive-DfdjqQps.js";
4
- import { u as st } from "./useNestedProp-aC9S6EFJ.js";
5
- import { u as oa } from "./usePrinter-B7rhbRrT.js";
6
- import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ua } from "./useChartAccessibility-9icAAmYg.js";
8
- import sa from "./vue-ui-accordion-DsnF0JuK.js";
9
- import rt from "./Legend-DkU3at-b.js";
10
- import ra from "./Title-BL-IjQmj.js";
11
- import { _ as it } from "./Shape-C3J8aKNH.js";
12
- import ia from "./img-DsVqerdt.js";
13
- import { u as va, B as da } from "./useLoading-D7YHNtLX.js";
14
- import { _ as ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "width", "height"], ga = ["id"], ba = ["stop-color"], ma = ["stop-color"], ka = { key: 1 }, xa = ["x", "y", "width", "height", "fill", "rx"], _a = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], wa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { class: "vue-ui-horizontal-bar-child-label" }, Sa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], La = ["x", "y", "font-size", "fill", "font-weight"], Pa = { class: "vue-ui-horizontal-bar-parent-label" }, Na = ["x", "y", "font-size", "fill", "font-weight"], Aa = ["x", "y", "font-size", "fill", "font-weight"], za = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Va = {
1
+ import { useCssVars as Ut, defineAsyncComponent as K, useSlots as Xt, computed as y, ref as r, toRefs as Wt, watch as Ne, shallowRef as it, onMounted as Ae, nextTick as ce, onBeforeUnmount as Gt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as c, normalizeClass as U, createBlock as X, createCommentVNode as f, renderSlot as _, createVNode as J, createSlots as he, withCtx as m, normalizeProps as Q, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as vt, resolveDynamicComponent as Ht, withKeys as jt, createTextVNode as dt } from "vue";
2
+ import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as ze, d as Zt, h as L, o as Ve, f as ue, e as Ie, k as pe, i as G, X as ea, s as Oe, x as ta, v as aa, w as la, y as oa, z as na } from "./index-CDQbCd41.js";
3
+ import { t as ua, u as sa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ra, B as ia } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as va } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as ct } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
9
+ import ht from "./Legend-2-dC7DVb.js";
10
+ import ha from "./vue-ui-accordion-Bf_LHFFX.js";
11
+ import pa from "./Title-Dq2_Z9kR.js";
12
+ import { _ as pt } from "./Shape-Dj2Hl33H.js";
13
+ import fa from "./img-JOqdlnUs.js";
14
+ import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const ya = ["id"], ba = ["onClick"], ma = ["xmlns", "viewBox"], ka = ["x", "width", "height"], xa = ["id"], wa = ["stop-color"], _a = ["stop-color"], $a = { key: 1 }, Ca = ["x", "y", "width", "height", "fill", "rx"], Ta = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = { class: "vue-ui-horizontal-bar-child-label" }, Aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], za = ["x", "y", "font-size", "fill", "font-weight"], Va = { class: "vue-ui-horizontal-bar-parent-label" }, Ia = ["x", "y", "font-size", "fill", "font-weight"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Fa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ma = {
16
16
  key: 5,
17
17
  class: "vue-data-ui-watermark"
18
- }, Ia = ["onClick"], Oa = { style: "width:100%;padding-top: 36px;position:relative" }, Fa = { class: "vue-ui-data-table" }, Ma = { key: 0 }, Ba = { style: { width: "100%" } }, Ra = ["data-cell"], Ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Da = ["data-cell"], Xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ua = ["data-cell"], Ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wa = ["data-cell"], Ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ya = ["data-cell"], Ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Za = {
18
+ }, Ba = ["onClick"], Da = { style: "width:100%;padding-top: 36px;position:relative" }, Ra = { class: "vue-ui-data-table" }, Ea = { key: 0 }, Ua = { style: { width: "100%" } }, Xa = ["data-cell"], Wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ga = ["data-cell"], Ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ya = ["data-cell"], Ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, 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 = {
19
19
  __name: "vue-ui-vertical-bar",
20
20
  props: {
21
21
  config: {
@@ -32,35 +32,35 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
32
32
  }
33
33
  },
34
34
  emits: ["selectLegend"],
35
- setup(vt, { expose: dt, emit: ct }) {
36
- Mt((t) => ({
37
- dd2a8d00: t.tdo
35
+ setup(ft, { expose: gt, emit: yt }) {
36
+ Ut((t) => ({
37
+ d072bdee: t.tdo
38
38
  }));
39
- const ht = le(() => import("./BaseIcon-B717hnWR.js")), pt = le(() => import("./PackageVersion-CE7HSich.js")), ft = le(() => import("./PenAndPaper-BMHsOtT8.js")), yt = le(() => import("./Tooltip-CCnDaboi.js")), gt = le(() => import("./UserOptions-BWMV0_Ze.js")), { vue_ui_vertical_bar: bt } = Gt(), mt = Bt(), g = vt, ce = b({
39
+ const bt = K(() => import("./Tooltip-Y219DXZO.js")), Fe = K(() => import("./BaseIcon-DHtro8us.js")), mt = K(() => import("./PenAndPaper-B7QEDgx4.js")), kt = K(() => import("./UserOptions-BuGfCdAY.js")), xt = K(() => import("./PackageVersion-DU12WH3O.js")), wt = K(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_vertical_bar: _t } = qt(), $t = Xt(), b = ft, fe = y({
40
40
  get() {
41
- return !!g.dataset && g.dataset.length;
41
+ return !!b.dataset && b.dataset.length;
42
42
  },
43
43
  set(t) {
44
44
  return t;
45
45
  }
46
- }), S = i(Wt()), kt = i(null), he = i(!1), pe = i(""), ee = i(0), xt = i(null), ze = i(0), z = i(null), Ve = i(null), fe = i(null), Ie = i(null), Oe = i(null), Fe = i(0), ye = i(0), W = i(null), _t = ct, e = i(xe()), wt = b(() => [
46
+ }), S = r(Yt()), Ct = r(null), ge = r(!1), ye = r(""), ae = r(0), Tt = r(null), Me = r(0), P = r(null), Be = r(null), be = r(null), De = r(null), Re = r(null), Ee = r(0), me = r(0), H = r(null), le = r(null), St = yt, e = r($e()), Lt = y(() => [
47
47
  { name: "", value: 6, color: "#d9d9d9" },
48
48
  { name: "", value: 5, color: "#d9d9d9" },
49
49
  { name: "", value: 4, color: "#d9d9d9" },
50
50
  { name: "", value: 3, color: "#d9d9d9" },
51
51
  { name: "", value: 2, color: "#d9d9d9" },
52
52
  { name: "", value: 1, color: "#d9d9d9" }
53
- ]), { loading: ge, FINAL_DATASET: be, manualLoading: me } = va({
54
- ...Rt(g),
53
+ ]), { loading: ke, FINAL_DATASET: xe, manualLoading: we } = ra({
54
+ ...Wt(b),
55
55
  FINAL_CONFIG: e,
56
- prepareConfig: xe,
56
+ prepareConfig: $e,
57
57
  callback: () => {
58
58
  Promise.resolve().then(async () => {
59
- j(), await O();
59
+ q(), k.value.showTable = e.value.table.show, await O();
60
60
  });
61
61
  },
62
- skeletonDataset: wt.value,
63
- skeletonConfig: Ht({
62
+ skeletonDataset: Lt.value,
63
+ skeletonConfig: Kt({
64
64
  defaultConfig: e.value,
65
65
  userConfig: {
66
66
  useCssAnimation: !1,
@@ -106,154 +106,154 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
106
106
  }
107
107
  }
108
108
  })
109
- }), { userOptionsVisible: ke, setUserOptionsVisibility: Me, keepUserOptionState: Be } = na({ config: e.value }), { svgRef: Re } = ua({ config: e.value.style.chart.title });
110
- function xe() {
111
- const t = st({
112
- userConfig: g.config,
113
- defaultConfig: bt
109
+ }), { userOptionsVisible: _e, setUserOptionsVisibility: Ue, keepUserOptionState: Xe } = da({ config: e.value }), { svgRef: We } = ca({ config: e.value.style.chart.title });
110
+ function $e() {
111
+ const t = ct({
112
+ userConfig: b.config,
113
+ defaultConfig: _t
114
114
  });
115
115
  let l = {};
116
116
  return t.theme ? l = {
117
- ...st({
118
- userConfig: qt.vue_ui_vertical_bar[t.theme] || g.config,
117
+ ...ct({
118
+ userConfig: Qt.vue_ui_vertical_bar[t.theme] || b.config,
119
119
  defaultConfig: t
120
120
  }),
121
- customPalette: jt[t.theme] || U
122
- } : l = t, g.config && Le(g.config, "events.datapointEnter") ? l.events.datapointEnter = g.config.events.datapointEnter : l.events.datapointEnter = null, g.config && Le(g.config, "events.datapointLeave") ? l.events.datapointLeave = g.config.events.datapointLeave : l.events.datapointLeave = null, g.config && Le(g.config, "events.datapointClick") ? l.events.datapointClick = g.config.events.datapointClick : l.events.datapointClick = null, l;
121
+ customPalette: Jt[t.theme] || W
122
+ } : l = t, b.config && ze(b.config, "events.datapointEnter") ? l.events.datapointEnter = b.config.events.datapointEnter : l.events.datapointEnter = null, b.config && ze(b.config, "events.datapointLeave") ? l.events.datapointLeave = b.config.events.datapointLeave : l.events.datapointLeave = null, b.config && ze(b.config, "events.datapointClick") ? l.events.datapointClick = b.config.events.datapointClick : l.events.datapointClick = null, l;
123
123
  }
124
- nt(() => g.config, (t) => {
125
- ge.value || (e.value = xe()), ke.value = !e.value.userOptions.showOnChartHover, qe(), Fe.value += 1, ye.value += 1, c.value = e.value.style.chart.layout.bars.height, m.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;
126
- }, { deep: !0 }), nt(() => g.dataset, (t) => {
127
- Array.isArray(t) && t.length > 0 && (me.value = !1), j();
124
+ Ne(() => b.config, (t) => {
125
+ ke.value || (e.value = $e()), _e.value = !e.value.userOptions.showOnChartHover, Ze(), Ee.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, k.value.showTable = e.value.table.show, k.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", k.value.showTooltip = e.value.style.chart.tooltip.show;
126
+ }, { deep: !0 }), Ne(() => b.dataset, (t) => {
127
+ Array.isArray(t) && t.length > 0 && (we.value = !1), q();
128
128
  }, { deep: !0 });
129
- const { isPrinting: Ee, isImaging: De, generatePdf: Xe, generateImage: Ue } = oa({
129
+ const { isPrinting: Ge, isImaging: He, generatePdf: je, generateImage: qe } = va({
130
130
  elementId: `vue-ui-vertical-bar_${S.value}`,
131
131
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
132
132
  options: e.value.userOptions.print
133
- }), $t = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = b(() => Yt(e.value.customPalette)), We = i(null), He = i(!1), Ct = b(() => e.value.table.responsiveBreakpoint), I = ut(null), H = ut(null), ue = i("0 0 10 10"), P = b(() => {
134
- const [t, l, a, o] = ue.value.split(" ").map(Number);
133
+ }), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => Zt(e.value.customPalette)), Ke = r(null), Je = r(!1), Nt = y(() => e.value.table.responsiveBreakpoint), I = it(null), j = it(null), se = r("0 0 10 10"), N = y(() => {
134
+ const [t, l, a, o] = se.value.split(" ").map(Number);
135
135
  return { x: t, y: l, width: a, height: o };
136
136
  });
137
- Te(async () => {
138
- await ve(), qe(), O();
137
+ Ae(async () => {
138
+ await ce(), Ze(), O();
139
139
  });
140
140
  async function O() {
141
- if (ue.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !W.value) return;
142
- const t = W.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = W.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
141
+ if (se.value = `0 0 ${C.value.width} ${i.value.fullHeight}`, !e.value.autoSize || !H.value) return;
142
+ const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
143
143
  if (t && t.length) {
144
- const f = Math.max(...Array.from(t).flatMap((d) => {
145
- const k = d.querySelectorAll("text");
146
- return k.length ? Array.from(k).map((Y) => Y.getBBox().width) : 0;
147
- })), _ = Math.max(...Array.from(l).flatMap((d) => {
148
- const k = d.querySelectorAll("text");
149
- return k.length ? Array.from(k).map((Y) => Y.getBBox().width) : 0;
144
+ const g = Math.max(...Array.from(t).flatMap((d) => {
145
+ const w = d.querySelectorAll("text");
146
+ return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
147
+ })), $ = Math.max(...Array.from(l).flatMap((d) => {
148
+ const w = d.querySelectorAll("text");
149
+ return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
150
150
  }));
151
151
  Array.from(t).forEach((d) => {
152
- const k = d.querySelectorAll("text");
153
- Array.from(k).forEach(async (Y) => {
154
- Y.setAttribute("x", 0), Y.setAttribute("x", L(-f - _));
152
+ const w = d.querySelectorAll("text");
153
+ Array.from(w).forEach(async (Y) => {
154
+ Y.setAttribute("x", 0), Y.setAttribute("x", L(-g - $));
155
155
  });
156
156
  });
157
157
  }
158
- await ve();
159
- const a = W.value ? W.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
160
- ue.value = [
158
+ await ce();
159
+ const a = H.value ? H.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
160
+ se.value = [
161
161
  a.x + -o,
162
162
  0,
163
163
  a.width + o * 2,
164
- r.value.fullHeight
164
+ i.value.fullHeight
165
165
  ].join(" ");
166
166
  }
167
- let je;
168
- Te(() => {
169
- z.value && (je = new ResizeObserver((t) => {
167
+ let Qe;
168
+ Ae(() => {
169
+ P.value && (Qe = new ResizeObserver((t) => {
170
170
  for (const l of t) {
171
171
  const { width: a, height: o } = l.contentRect;
172
172
  if (a > 0 && o > 0) {
173
173
  Promise.resolve().then(async () => {
174
- j(), await O();
174
+ q(), await O();
175
175
  });
176
176
  break;
177
177
  }
178
178
  }
179
- }), je.observe(z.value.parentElement));
179
+ }), Qe.observe(P.value.parentElement));
180
180
  });
181
- const se = b(() => !!e.value.debug), _e = i(0);
182
- function qe() {
183
- if (Pe(g.dataset) && (ne({
181
+ const re = y(() => !!e.value.debug), Ce = r(0);
182
+ function Ze() {
183
+ if (Ve(b.dataset) && (ue({
184
184
  componentName: "VueUiVerticalBar",
185
185
  type: "dataset",
186
- debug: se.value
187
- }), ce.value = !1, me.value = !0), ee.value = be.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Tt(), Pe(g.dataset) || (me.value = e.value.loading), e.value.responsive) {
188
- const t = aa(() => {
189
- const { width: l, height: a } = la({
190
- chart: z.value,
191
- title: e.value.style.chart.title.text ? Ve.value : null,
192
- legend: e.value.style.chart.legend.show ? fe.value : null,
193
- source: Ie.value,
194
- noTitle: Oe.value
186
+ debug: re.value
187
+ }), fe.value = !1, we.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), At(), Ve(b.dataset) || (we.value = e.value.loading), e.value.responsive) {
188
+ const t = ua(() => {
189
+ const { width: l, height: a } = sa({
190
+ chart: P.value,
191
+ title: e.value.style.chart.title.text ? Be.value : null,
192
+ legend: e.value.style.chart.legend.show ? be.value : null,
193
+ source: De.value,
194
+ noTitle: Re.value
195
195
  });
196
- _e.value = a / 3, requestAnimationFrame(async () => {
197
- Je.value = l;
198
- const o = m.value * (ee.value - 1);
199
- c.value = (a - o) / ee.value, await ve(), O();
196
+ Ce.value = a / 3, requestAnimationFrame(async () => {
197
+ at.value = l;
198
+ const o = x.value * (ae.value - 1);
199
+ p.value = (a - o) / ae.value, await ce(), O();
200
200
  });
201
201
  });
202
- I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect()), I.value = new ResizeObserver(t), H.value = z.value.parentNode, I.value.observe(H.value), e.value.autoSize && O();
202
+ 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 && O();
203
203
  }
204
204
  }
205
- Et(() => {
206
- I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect());
205
+ Gt(() => {
206
+ I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect());
207
207
  });
208
- function Tt() {
209
- if (ge.value) return;
208
+ function At() {
209
+ if (ke.value) return;
210
210
  new ResizeObserver((l) => {
211
211
  l.forEach((a) => {
212
- He.value = a.contentRect.width < Ct.value;
212
+ Je.value = a.contentRect.width < Nt.value;
213
213
  });
214
- }).observe(We.value);
214
+ }).observe(Ke.value);
215
215
  }
216
- const $ = i({
216
+ const k = r({
217
217
  showTable: e.value.table.show,
218
218
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
219
219
  showTooltip: e.value.style.chart.tooltip.show
220
- }), Ye = b(() => $.value.sortDesc), F = b(() => (be.value.forEach((t, l) => {
221
- !t.value && !t.children && ne({
220
+ }), et = y(() => k.value.sortDesc), F = y(() => (xe.value.forEach((t, l) => {
221
+ !t.value && !t.children && ue({
222
222
  componentName: "VueUiVerticalBar",
223
223
  type: "datasetAttributeEmpty",
224
224
  property: `value (index ${l})`,
225
- debug: se.value
226
- }), t.children && (Pe(t.children) ? ne({
225
+ debug: re.value
226
+ }), t.children && (Ve(t.children) ? ue({
227
227
  componentName: "VueUiVerticalBar",
228
228
  type: "datasetAttributeEmpty",
229
229
  property: `children (index ${l})`,
230
- debug: se.value
230
+ debug: re.value
231
231
  }) : t.children.forEach((a, o) => {
232
- [null, void 0].includes(a.name) && ne({
232
+ [null, void 0].includes(a.name) && ue({
233
233
  componentName: "VueUiVerticalBar",
234
234
  type: "datasetSerieAttribute",
235
235
  property: "name",
236
236
  key: "children",
237
237
  index: o,
238
- debug: se.value
238
+ debug: re.value
239
239
  });
240
240
  }));
241
- }), be.value.map((t, l) => {
242
- const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, f = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, k) => d + k, 0) : 0), _ = f >= 0 ? 1 : -1;
241
+ }), xe.value.map((t, l) => {
242
+ const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, g = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, w) => d + w, 0) : 0), $ = g >= 0 ? 1 : -1;
243
243
  return {
244
244
  ...t,
245
245
  id: a,
246
246
  absoluteIndex: l,
247
247
  shape: "square",
248
- opacity: N.value.includes(a) ? 0.5 : 1,
249
- value: Math.abs(f),
250
- sign: _,
248
+ opacity: A.value.includes(a) ? 0.5 : 1,
249
+ value: Math.abs(g),
250
+ sign: $,
251
251
  hasChildren: o,
252
252
  isChild: !1,
253
- segregate: () => te(a),
254
- isSegregated: N.value.includes(a),
255
- color: Ne(t.color) || Ge.value[l] || U[l] || U[l % U.length],
256
- children: !t.children || !t.children.length ? [] : t.children.toSorted(re.value ? () => 0 : (d, k) => Ye.value ? k.value - d.value : d.value - k.value).map((d, k) => ({
253
+ segregate: () => oe(a),
254
+ isSegregated: A.value.includes(a),
255
+ color: Ie(t.color) || Ye.value[l] || W[l] || W[l % W.length],
256
+ children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (d, w) => et.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
257
257
  ...d,
258
258
  value: L(Math.abs(d.value)),
259
259
  absoluteIndex: l,
@@ -261,34 +261,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
261
261
  isChild: !0,
262
262
  parentId: a,
263
263
  parentName: t.name,
264
- parentValue: f,
265
- parentSign: _,
266
- id: `vertical_child_${l}_${k}_${S.value}`,
267
- childIndex: k,
268
- color: Ne(d.color) || Ne(t.color) || Ge.value[l] || U[l] || U[l % U.length]
269
- })).map((d, k) => ({
264
+ parentValue: g,
265
+ parentSign: $,
266
+ id: `vertical_child_${l}_${w}_${S.value}`,
267
+ childIndex: w,
268
+ color: Ie(d.color) || Ie(t.color) || Ye.value[l] || W[l] || W[l % W.length]
269
+ })).map((d, w) => ({
270
270
  ...d,
271
- isFirstChild: k === 0,
272
- isLastChild: k === t.children.length - 1
271
+ isFirstChild: w === 0,
272
+ isLastChild: w === t.children.length - 1
273
273
  }))
274
274
  };
275
- }).toSorted(re.value ? () => 0 : (t, l) => Ye.value ? l.value - t.value : t.value - l.value))), Ke = b(() => ({
275
+ }).toSorted(ie.value ? () => 0 : (t, l) => et.value ? l.value - t.value : t.value - l.value))), tt = y(() => ({
276
276
  cy: "vertical-bar-div-legend",
277
277
  backgroundColor: e.value.style.chart.legend.backgroundColor,
278
278
  color: e.value.style.chart.legend.color,
279
279
  fontSize: e.value.style.chart.legend.fontSize,
280
280
  paddingBottom: 12,
281
281
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
282
- })), c = i(e.value.style.chart.layout.bars.height), m = i(e.value.style.chart.layout.bars.gap), St = b(() => (c.value + m.value) * ee.value), Je = i(512), C = b(() => ({
283
- width: Je.value,
284
- height: St.value,
282
+ })), p = r(e.value.style.chart.layout.bars.height), x = r(e.value.style.chart.layout.bars.gap), zt = y(() => (p.value + x.value) * ae.value), at = r(512), C = y(() => ({
283
+ width: at.value,
284
+ height: zt.value,
285
285
  padding: {
286
286
  top: 12,
287
287
  left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
288
288
  right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
289
289
  bottom: 12
290
290
  }
291
- })), r = b(() => ({
291
+ })), i = y(() => ({
292
292
  fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
293
293
  top: C.value.padding.top,
294
294
  left: C.value.padding.left,
@@ -296,78 +296,78 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
296
296
  bottom: C.value.padding.top + C.value.height,
297
297
  width: C.value.width - (C.value.padding.left + C.value.padding.right)
298
298
  }));
299
- async function j() {
300
- ee.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 O();
299
+ async function q() {
300
+ 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 O();
301
301
  }
302
- const N = i([]);
303
- async function te(t) {
304
- if (N.value.includes(t))
305
- N.value = N.value.filter((l) => l !== t);
302
+ const A = r([]);
303
+ async function oe(t) {
304
+ if (A.value.includes(t))
305
+ A.value = A.value.filter((l) => l !== t);
306
306
  else {
307
- if (N.value.length === F.value.length - 1) return;
308
- N.value.push(t);
307
+ if (A.value.length === F.value.length - 1) return;
308
+ A.value.push(t);
309
309
  }
310
- j(), await ve(), e.value.autoSize && O(), _t("selectLegend", B.value);
310
+ q(), await ce(), e.value.autoSize && O(), St("selectLegend", B.value);
311
311
  }
312
- const B = b(() => F.value.filter((t) => !N.value.includes(t.id))), V = b(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
313
- function Qe(t, l = !1, a = 0) {
312
+ const B = y(() => F.value.filter((t) => !A.value.includes(t.id))), V = y(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
313
+ function lt(t, l = !1, a = 0) {
314
314
  return l ? G({
315
315
  v: L(Math.abs(t) / V.value * 100),
316
316
  s: "%",
317
317
  r: a
318
318
  }) : Math.abs(t) / V.value;
319
319
  }
320
- const R = b(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), E = b(() => R.value.map((t) => t.sign).includes(-1)), Lt = b(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
320
+ const D = y(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), R = y(() => D.value.map((t) => t.sign).includes(-1)), Vt = y(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
321
321
  function T(t) {
322
- const l = t / Lt.value;
323
- return r.value.width / (E.value ? 2 : 1) * l;
322
+ const l = t / Vt.value;
323
+ return i.value.width / (R.value ? 2 : 1) * l;
324
324
  }
325
- function Pt(t) {
326
- return T(t) + r.value.left;
325
+ function It(t) {
326
+ return T(t) + i.value.left;
327
327
  }
328
- function ae(t, l) {
329
- const a = B.value.find((_) => _.id === t.parentId), o = r.value.top + (m.value + c.value) * l, f = a.children.length * (m.value + c.value);
328
+ function ne(t, l) {
329
+ const a = B.value.find(($) => $.id === t.parentId), o = i.value.top + (x.value + p.value) * l, g = a.children.length * (x.value + p.value);
330
330
  return {
331
- y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
331
+ y: o + g / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
332
332
  name: a.name,
333
333
  value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
334
- percentageToTotal: isNaN(a.value / V.value) ? "" : Qe(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
334
+ percentageToTotal: isNaN(a.value / V.value) ? "" : lt(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
335
335
  sign: a.sign
336
336
  };
337
337
  }
338
- function Nt() {
338
+ function Ot() {
339
339
  return B.value;
340
340
  }
341
- const we = i(null), $e = i(null);
342
- function At({ datapoint: t, seriesIndex: l }) {
341
+ const Te = r(null), Se = r(null);
342
+ function Ft({ datapoint: t, seriesIndex: l }) {
343
343
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
344
344
  }
345
- function zt({ datapoint: t, seriesIndex: l }) {
346
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), xt.value = null, he.value = !1, we.value = null;
345
+ function Mt({ datapoint: t, seriesIndex: l }) {
346
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Tt.value = null, ge.value = !1, Te.value = null;
347
347
  }
348
- function Vt(t, l) {
349
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), $e.value = {
348
+ function Bt(t, l) {
349
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
350
350
  datapoint: t,
351
351
  seriesIndex: l,
352
352
  series: F.value,
353
353
  config: e.value
354
- }, he.value = !0, we.value = t.id;
354
+ }, ge.value = !0, Te.value = t.id;
355
355
  let a = "";
356
- const o = t.isChild ? t.parentName : t.name, f = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
357
- ea(_) && ta(() => _({
356
+ const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
357
+ oa($) && na(() => $({
358
358
  datapoint: t,
359
359
  series: F.value,
360
360
  config: e.value,
361
361
  seriesIndex: l
362
- })) ? pe.value = _({
362
+ })) ? ye.value = $({
363
363
  datapoint: t,
364
364
  series: F.value,
365
365
  config: e.value,
366
366
  seriesIndex: l
367
367
  }) : (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;">
368
- <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}"/>${mt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
369
- ${f ? `<div>${f}</div>` : ""}
370
- </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${de(
368
+ <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}"/>${$t.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
369
+ ${g ? `<div>${g}</div>` : ""}
370
+ </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${pe(
371
371
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
372
372
  t.sign === 1 ? t.value : -t.value,
373
373
  G({
@@ -385,12 +385,12 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
385
385
  v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
386
386
  s: "%",
387
387
  r: e.value.style.chart.tooltip.roundingPercentage
388
- })}</b></div>`)), pe.value = `<div style="text-align:left">${a}</div>`);
388
+ })}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
389
389
  }
390
- function Ze(t, l, a, o) {
390
+ function ot(t, l, a, o) {
391
391
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
392
392
  return "";
393
- const f = de(
393
+ const g = pe(
394
394
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
395
395
  L(o === -1 && t >= 0 ? -t : t),
396
396
  G({
@@ -400,10 +400,10 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
400
400
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
401
401
  }),
402
402
  { datapoint: l, seriesIndex: a }
403
- ), _ = `(${Qe(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
404
- return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${_}` : ""}`;
403
+ ), $ = `(${lt(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
404
+ return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
405
405
  }
406
- const A = b(() => {
406
+ const z = y(() => {
407
407
  const t = [
408
408
  e.value.translations.parentName,
409
409
  e.value.translations.value,
@@ -412,7 +412,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
412
412
  e.value.translations.value,
413
413
  e.value.translations.percentageToSerie,
414
414
  e.value.translations.percentageToTotal
415
- ], l = R.value.map((a) => a.isChild ? a.isFirstChild ? {
415
+ ], l = D.value.map((a) => a.isChild ? a.isFirstChild ? {
416
416
  color: a.color,
417
417
  parentName: a.parentName,
418
418
  parentValue: a.parentValue,
@@ -442,8 +442,8 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
442
442
  });
443
443
  return { head: t, body: l };
444
444
  });
445
- function et(t = null) {
446
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = A.value.head, o = A.value.body.map((d) => [
445
+ function Le(t = null) {
446
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = z.value.head, o = z.value.body.map((d) => [
447
447
  d.parentName,
448
448
  d.parentValue,
449
449
  d.percentageToTotal,
@@ -451,100 +451,132 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
451
451
  d.childValue,
452
452
  d.childPercentageToParent,
453
453
  d.childPercentageToTotal
454
- ]), f = l.concat([a]).concat(o), _ = Qt(f);
455
- t ? t(_) : Zt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
454
+ ]), g = l.concat([a]).concat(o), $ = aa(g);
455
+ t ? t($) : la({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
456
456
  }
457
- const q = i(!1);
458
- function tt(t) {
459
- q.value = t, ze.value += 1;
457
+ const E = r(!1);
458
+ function nt(t) {
459
+ E.value = t, Me.value += 1;
460
460
  }
461
- function at() {
462
- $.value.showTable = !$.value.showTable;
461
+ function ut() {
462
+ k.value.showTable = !k.value.showTable;
463
463
  }
464
- const It = i({
464
+ const Dt = r({
465
465
  none: 0,
466
466
  asc: 1,
467
467
  desc: 2
468
- }), M = i(0), re = i(!1);
469
- Te(() => {
470
- ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ne({
468
+ }), M = r(0), ie = r(!1);
469
+ Ae(() => {
470
+ ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
471
471
  componentName: "VueUiVerticalBar",
472
472
  type: "attributeWrongValue",
473
473
  property: "style.chart.layout.bars.sort",
474
474
  key: e.value.style.chart.layout.bars.sort
475
- }), M.value = It.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = M.value === 2, re.value = M.value === 0;
475
+ }), M.value = Dt.value[e.value.style.chart.layout.bars.sort], k.value.sortDesc = M.value === 2, ie.value = M.value === 0;
476
476
  });
477
- function Ot() {
477
+ function Rt() {
478
478
  M.value += 1, M.value > 2 && (M.value = 0);
479
479
  }
480
- function lt() {
481
- Ot(), $.value.sortDesc = M.value === 2, re.value = M.value === 0, j();
480
+ function st() {
481
+ Rt(), k.value.sortDesc = M.value === 2, ie.value = M.value === 0, q();
482
482
  }
483
- function ot() {
484
- $.value.showTooltip = !$.value.showTooltip;
483
+ function rt() {
484
+ k.value.showTooltip = !k.value.showTooltip;
485
485
  }
486
- const ie = i(!1);
487
- function Ce() {
488
- ie.value = !ie.value;
486
+ const ve = r(!1);
487
+ function Pe() {
488
+ ve.value = !ve.value;
489
489
  }
490
- async function Ft({ scale: t = 2 } = {}) {
491
- if (!z.value) return;
492
- const { width: l, height: a } = z.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: _ } = await ia({ domElement: z.value, base64: !0, img: !0, scale: t });
490
+ async function Et({ scale: t = 2 } = {}) {
491
+ if (!P.value) return;
492
+ const { width: l, height: a } = P.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: $ } = await fa({ domElement: P.value, base64: !0, img: !0, scale: t });
493
493
  return {
494
- imageUri: f,
495
- base64: _,
494
+ imageUri: g,
495
+ base64: $,
496
496
  title: e.value.style.chart.title.text,
497
497
  width: l,
498
498
  height: a,
499
499
  aspectRatio: o
500
500
  };
501
501
  }
502
- return dt({
502
+ const de = y(() => {
503
+ const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
504
+ return {
505
+ component: t ? wt : ha,
506
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
507
+ props: t ? {
508
+ backgroundColor: e.value.table.th.backgroundColor,
509
+ color: e.value.table.th.color,
510
+ headerColor: e.value.table.th.color,
511
+ headerBg: e.value.table.th.backgroundColor,
512
+ isFullscreen: E.value,
513
+ fullscreenParent: P.value,
514
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
515
+ } : {
516
+ hideDetails: !0,
517
+ config: {
518
+ open: l,
519
+ maxHeight: 1e4,
520
+ body: {
521
+ backgroundColor: e.value.style.chart.backgroundColor,
522
+ color: e.value.style.chart.color
523
+ },
524
+ head: {
525
+ backgroundColor: e.value.style.chart.backgroundColor,
526
+ color: e.value.style.chart.color
527
+ }
528
+ }
529
+ }
530
+ };
531
+ });
532
+ return Ne(() => k.value.showTable, (t) => {
533
+ e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
534
+ }), gt({
503
535
  autoSize: O,
504
536
  // v3
505
- getData: Nt,
506
- getImage: Ft,
507
- recalculateHeight: j,
508
- generatePdf: Xe,
509
- generateCsv: et,
510
- generateImage: Ue,
511
- toggleTable: at,
512
- toggleSort: lt,
513
- toggleTooltip: ot,
514
- toggleAnnotator: Ce,
515
- toggleFullscreen: tt
537
+ getData: Ot,
538
+ getImage: Et,
539
+ recalculateHeight: q,
540
+ generatePdf: je,
541
+ generateCsv: Le,
542
+ generateImage: qe,
543
+ toggleTable: ut,
544
+ toggleSort: st,
545
+ toggleTooltip: rt,
546
+ toggleAnnotator: Pe,
547
+ toggleFullscreen: nt
516
548
  }), (t, l) => (u(), v("div", {
517
- class: D(`vue-ui-vertical-bar ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
549
+ class: U(`vue-ui-vertical-bar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
518
550
  ref_key: "verticalBarChart",
519
- ref: z,
551
+ ref: P,
520
552
  id: `vue-ui-vertical-bar_${S.value}`,
521
- style: h(`padding-top:${e.value.responsive && e.value.autoSize ? `${_e.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% - ${_e.value}px` : "height: 100%" : ""}`),
522
- onMouseenter: l[4] || (l[4] = () => s(Me)(!0)),
523
- onMouseleave: l[5] || (l[5] = () => s(Me)(!1))
553
+ style: c(`padding-top:${e.value.responsive && e.value.autoSize ? `${Ce.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% - ${Ce.value}px` : "height: 100%" : ""}`),
554
+ onMouseenter: l[6] || (l[6] = () => s(Ue)(!0)),
555
+ onMouseleave: l[7] || (l[7] = () => s(Ue)(!1))
524
556
  }, [
525
- e.value.userOptions.buttons.annotator ? (u(), X(s(ft), {
557
+ e.value.userOptions.buttons.annotator ? (u(), X(s(mt), {
526
558
  key: 0,
527
- svgRef: s(Re),
559
+ svgRef: s(We),
528
560
  backgroundColor: e.value.style.chart.backgroundColor,
529
561
  color: e.value.style.chart.color,
530
- active: ie.value,
531
- onClose: Ce
532
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
533
- $t.value ? (u(), v("div", {
562
+ active: ve.value,
563
+ onClose: Pe
564
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
565
+ Pt.value ? (u(), v("div", {
534
566
  key: 1,
535
567
  ref_key: "noTitle",
536
- ref: Oe,
568
+ ref: Re,
537
569
  class: "vue-data-ui-no-title-space",
538
570
  style: "height:36px; width: 100%;background:transparent"
539
- }, null, 512)) : y("", !0),
571
+ }, null, 512)) : f("", !0),
540
572
  e.value.style.chart.title.text ? (u(), v("div", {
541
573
  key: 2,
542
574
  ref_key: "chartTitle",
543
- ref: Ve,
575
+ ref: Be,
544
576
  style: "width:100%;background:transparent;padding-bottom:12px"
545
577
  }, [
546
- (u(), X(ra, {
547
- key: `title_${Fe.value}`,
578
+ (u(), X(pa, {
579
+ key: `title_${Ee.value}`,
548
580
  config: {
549
581
  title: {
550
582
  cy: "vertical-bar-div-title",
@@ -556,15 +588,15 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
556
588
  }
557
589
  }
558
590
  }, null, 8, ["config"]))
559
- ], 512)) : y("", !0),
560
- e.value.userOptions.show && ce.value && (s(Be) || s(ke)) ? (u(), X(s(gt), {
591
+ ], 512)) : f("", !0),
592
+ e.value.userOptions.show && fe.value && (s(Xe) || s(_e)) ? (u(), X(s(kt), {
561
593
  ref_key: "details",
562
- ref: kt,
563
- key: `user_options_${ze.value}`,
594
+ ref: Ct,
595
+ key: `user_options_${Me.value}`,
564
596
  backgroundColor: e.value.style.chart.backgroundColor,
565
597
  color: e.value.style.chart.color,
566
- isImaging: s(De),
567
- isPrinting: s(Ee),
598
+ isImaging: s(He),
599
+ isPrinting: s(Ge),
568
600
  uid: S.value,
569
601
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
570
602
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -573,114 +605,114 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
573
605
  hasTable: e.value.userOptions.buttons.table,
574
606
  hasSort: e.value.userOptions.buttons.sort,
575
607
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
576
- isFullscreen: q.value,
577
- isTooltip: $.value.showTooltip,
608
+ isFullscreen: E.value,
609
+ isTooltip: k.value.showTooltip,
578
610
  titles: { ...e.value.userOptions.buttonTitles },
579
- chartElement: z.value,
611
+ chartElement: P.value,
580
612
  position: e.value.userOptions.position,
581
613
  hasAnnotator: e.value.userOptions.buttons.annotator,
582
- isAnnotation: ie.value,
614
+ isAnnotation: ve.value,
583
615
  callbacks: e.value.userOptions.callbacks,
584
616
  printScale: e.value.userOptions.print.scale,
585
- onToggleFullscreen: tt,
586
- onGeneratePdf: s(Xe),
587
- onGenerateCsv: et,
588
- onGenerateImage: s(Ue),
589
- onToggleTable: at,
590
- onToggleSort: lt,
591
- onToggleTooltip: ot,
592
- onToggleAnnotator: Ce,
593
- style: h({
594
- visibility: s(Be) ? s(ke) ? "visible" : "hidden" : "visible"
617
+ onToggleFullscreen: nt,
618
+ onGeneratePdf: s(je),
619
+ onGenerateCsv: Le,
620
+ onGenerateImage: s(qe),
621
+ onToggleTable: ut,
622
+ onToggleSort: st,
623
+ onToggleTooltip: rt,
624
+ onToggleAnnotator: Pe,
625
+ style: c({
626
+ visibility: s(Xe) ? s(_e) ? "visible" : "hidden" : "visible"
595
627
  })
596
- }, Se({ _: 2 }, [
628
+ }, he({ _: 2 }, [
597
629
  t.$slots.menuIcon ? {
598
630
  name: "menuIcon",
599
- fn: w(({ isOpen: a, color: o }) => [
600
- x(t.$slots, "menuIcon", K(J({ isOpen: a, color: o })), void 0, !0)
631
+ fn: m(({ isOpen: a, color: o }) => [
632
+ _(t.$slots, "menuIcon", Q(Z({ isOpen: a, color: o })), void 0, !0)
601
633
  ]),
602
634
  key: "0"
603
635
  } : void 0,
604
636
  t.$slots.optionTooltip ? {
605
637
  name: "optionTooltip",
606
- fn: w(() => [
607
- x(t.$slots, "optionTooltip", {}, void 0, !0)
638
+ fn: m(() => [
639
+ _(t.$slots, "optionTooltip", {}, void 0, !0)
608
640
  ]),
609
641
  key: "1"
610
642
  } : void 0,
611
643
  t.$slots.optionPdf ? {
612
644
  name: "optionPdf",
613
- fn: w(() => [
614
- x(t.$slots, "optionPdf", {}, void 0, !0)
645
+ fn: m(() => [
646
+ _(t.$slots, "optionPdf", {}, void 0, !0)
615
647
  ]),
616
648
  key: "2"
617
649
  } : void 0,
618
650
  t.$slots.optionCsv ? {
619
651
  name: "optionCsv",
620
- fn: w(() => [
621
- x(t.$slots, "optionCsv", {}, void 0, !0)
652
+ fn: m(() => [
653
+ _(t.$slots, "optionCsv", {}, void 0, !0)
622
654
  ]),
623
655
  key: "3"
624
656
  } : void 0,
625
657
  t.$slots.optionImg ? {
626
658
  name: "optionImg",
627
- fn: w(() => [
628
- x(t.$slots, "optionImg", {}, void 0, !0)
659
+ fn: m(() => [
660
+ _(t.$slots, "optionImg", {}, void 0, !0)
629
661
  ]),
630
662
  key: "4"
631
663
  } : void 0,
632
664
  t.$slots.optionTable ? {
633
665
  name: "optionTable",
634
- fn: w(() => [
635
- x(t.$slots, "optionTable", {}, void 0, !0)
666
+ fn: m(() => [
667
+ _(t.$slots, "optionTable", {}, void 0, !0)
636
668
  ]),
637
669
  key: "5"
638
670
  } : void 0,
639
671
  t.$slots.optionLabels ? {
640
672
  name: "optionLabels",
641
- fn: w(() => [
642
- x(t.$slots, "optionLabels", {}, void 0, !0)
673
+ fn: m(() => [
674
+ _(t.$slots, "optionLabels", {}, void 0, !0)
643
675
  ]),
644
676
  key: "6"
645
677
  } : void 0,
646
678
  t.$slots.optionSort ? {
647
679
  name: "optionSort",
648
- fn: w(() => [
649
- x(t.$slots, "optionSort", {}, void 0, !0)
680
+ fn: m(() => [
681
+ _(t.$slots, "optionSort", {}, void 0, !0)
650
682
  ]),
651
683
  key: "7"
652
684
  } : void 0,
653
685
  t.$slots.optionFullscreen ? {
654
686
  name: "optionFullscreen",
655
- fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
656
- x(t.$slots, "optionFullscreen", K(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
687
+ fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
688
+ _(t.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
657
689
  ]),
658
690
  key: "8"
659
691
  } : void 0,
660
692
  t.$slots.optionAnnotator ? {
661
693
  name: "optionAnnotator",
662
- fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
663
- x(t.$slots, "optionAnnotator", K(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
694
+ fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
695
+ _(t.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
664
696
  ]),
665
697
  key: "9"
666
698
  } : void 0
667
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
699
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
668
700
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
669
701
  key: 4,
670
702
  ref_key: "chartLegend",
671
- ref: fe
703
+ ref: be
672
704
  }, [
673
- (u(), X(rt, {
674
- key: `legend_top_${ye.value}`,
705
+ (u(), X(ht, {
706
+ key: `legend_top_${me.value}`,
675
707
  legendSet: F.value,
676
- config: Ke.value,
677
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => te(a.id))
678
- }, Se({
679
- item: w(({ legend: a, index: o }) => [
708
+ config: tt.value,
709
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
710
+ }, he({
711
+ item: m(({ legend: a, index: o }) => [
680
712
  n("div", {
681
- onClick: (f) => te(a.id),
682
- style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
683
- }, p(a.name) + ": " + p(s(de)(
713
+ onClick: (g) => oe(a.id),
714
+ style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
715
+ }, h(a.name) + ": " + h(s(pe)(
684
716
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
685
717
  a.value,
686
718
  s(G)({
@@ -690,14 +722,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
690
722
  r: e.value.style.chart.legend.roundingValue
691
723
  }),
692
724
  { datapoint: a, seriesIndex: o }
693
- )), 13, pa)
725
+ )), 13, ba)
694
726
  ]),
695
727
  _: 2
696
728
  }, [
697
729
  t.$slots.pattern ? {
698
730
  name: "legend-pattern",
699
- fn: w(({ legend: a, index: o }) => [
700
- oe(it, {
731
+ fn: m(({ legend: a, index: o }) => [
732
+ J(pt, {
701
733
  shape: a.shape,
702
734
  radius: 30,
703
735
  stroke: "none",
@@ -708,34 +740,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
708
740
  key: "0"
709
741
  } : void 0
710
742
  ]), 1032, ["legendSet", "config"]))
711
- ], 512)) : y("", !0),
743
+ ], 512)) : f("", !0),
712
744
  (u(), v("svg", {
713
745
  ref_key: "svgRef",
714
- ref: Re,
715
- xmlns: s(Kt),
716
- class: D({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
717
- viewBox: ue.value,
718
- style: h(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
746
+ ref: We,
747
+ xmlns: s(ea),
748
+ class: U({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
749
+ viewBox: se.value,
750
+ style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
719
751
  }, [
720
752
  n("g", {
721
753
  ref_key: "G",
722
- ref: W,
754
+ ref: H,
723
755
  class: "vue-data-ui-g"
724
756
  }, [
725
- oe(s(pt)),
757
+ J(s(xt)),
726
758
  t.$slots["chart-background"] ? (u(), v("foreignObject", {
727
759
  key: 0,
728
- x: P.value.x,
760
+ x: N.value.x,
729
761
  y: 0,
730
- width: P.value.width,
731
- height: P.value.height,
762
+ width: N.value.width,
763
+ height: N.value.height,
732
764
  style: {
733
765
  pointerEvents: "none"
734
766
  }
735
767
  }, [
736
- x(t.$slots, "chart-background", {}, void 0, !0)
737
- ], 8, ya)) : y("", !0),
738
- (u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("linearGradient", {
768
+ _(t.$slots, "chart-background", {}, void 0, !0)
769
+ ], 8, ka)) : f("", !0),
770
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("linearGradient", {
739
771
  x1: "0%",
740
772
  y1: "0%",
741
773
  x2: "100%",
@@ -745,145 +777,145 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
745
777
  n("stop", {
746
778
  offset: "0%",
747
779
  "stop-color": a.color
748
- }, null, 8, ba),
780
+ }, null, 8, wa),
749
781
  n("stop", {
750
782
  offset: "100%",
751
- "stop-color": s(Ae)(s(Jt)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
752
- }, null, 8, ma)
753
- ], 8, ga))), 256)),
754
- t.$slots.pattern ? (u(), v("g", ka, [
755
- (u(!0), v(Q, null, Z(R.value, (a) => (u(), v("defs", null, [
756
- x(t.$slots, "pattern", Dt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
783
+ "stop-color": s(Oe)(s(ta)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
784
+ }, null, 8, _a)
785
+ ], 8, xa))), 256)),
786
+ t.$slots.pattern ? (u(), v("g", $a, [
787
+ (u(!0), v(ee, null, te(D.value, (a) => (u(), v("defs", null, [
788
+ _(t.$slots, "pattern", vt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
757
789
  ]))), 256))
758
- ])) : y("", !0),
759
- (u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
790
+ ])) : f("", !0),
791
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
760
792
  n("rect", {
761
- 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),
762
- y: r.value.top + (m.value + c.value) * o,
793
+ x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
794
+ y: i.value.top + (x.value + p.value) * o,
763
795
  width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
764
- height: c.value <= 0 ? 1e-4 : c.value,
796
+ height: p.value <= 0 ? 1e-4 : p.value,
765
797
  fill: e.value.style.chart.layout.bars.underlayerColor,
766
798
  rx: e.value.style.chart.layout.bars.borderRadius,
767
- class: D({ animated: e.value.useCssAnimation })
768
- }, null, 10, xa)
799
+ class: U({ animated: e.value.useCssAnimation })
800
+ }, null, 10, Ca)
769
801
  ]))), 256)),
770
- (u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
802
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
771
803
  n("rect", {
772
- 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),
773
- y: r.value.top + (m.value + c.value) * o,
804
+ x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
805
+ y: i.value.top + (x.value + p.value) * o,
774
806
  width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
775
- height: c.value <= 0 ? 1e-4 : c.value,
776
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Ae)(a.color, e.value.style.chart.layout.bars.fillOpacity),
807
+ height: p.value <= 0 ? 1e-4 : p.value,
808
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Oe)(a.color, e.value.style.chart.layout.bars.fillOpacity),
777
809
  rx: e.value.style.chart.layout.bars.borderRadius,
778
810
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
779
811
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
780
- class: D({ animated: e.value.useCssAnimation })
781
- }, null, 10, _a),
812
+ class: U({ animated: e.value.useCssAnimation })
813
+ }, null, 10, Ta),
782
814
  t.$slots.pattern ? (u(), v("rect", {
783
815
  key: 0,
784
- 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),
785
- y: r.value.top + (m.value + c.value) * o,
816
+ x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
817
+ y: i.value.top + (x.value + p.value) * o,
786
818
  width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
787
- height: c.value <= 0 ? 1e-4 : c.value,
819
+ height: p.value <= 0 ? 1e-4 : p.value,
788
820
  fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
789
821
  rx: e.value.style.chart.layout.bars.borderRadius,
790
822
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
791
823
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
792
- class: D({ animated: e.value.useCssAnimation })
793
- }, null, 10, wa)) : y("", !0),
794
- (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== R.value.length - 1 ? (u(), v("line", {
824
+ class: U({ animated: e.value.useCssAnimation })
825
+ }, null, 10, Sa)) : f("", !0),
826
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== D.value.length - 1 ? (u(), v("line", {
795
827
  key: 1,
796
- x1: P.value.x,
797
- x2: e.value.style.chart.layout.separators.fullWidth ? P.value.width - Math.abs(P.value.x) : r.value.left,
798
- y1: c.value + m.value / 2 + r.value.top + (m.value + c.value) * o,
799
- y2: c.value + m.value / 2 + r.value.top + (m.value + c.value) * o,
828
+ x1: N.value.x,
829
+ x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : i.value.left,
830
+ y1: p.value + x.value / 2 + i.value.top + (x.value + p.value) * o,
831
+ y2: p.value + x.value / 2 + i.value.top + (x.value + p.value) * o,
800
832
  stroke: e.value.style.chart.layout.separators.color,
801
833
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
802
834
  "stroke-linecap": "round",
803
835
  style: { transition: "none !important", animation: "none !important" }
804
- }, null, 8, $a)) : y("", !0),
805
- E.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
836
+ }, null, 8, La)) : f("", !0),
837
+ R.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
806
838
  key: 2,
807
- x1: r.value.left + r.value.width / 2,
808
- x2: r.value.left + r.value.width / 2,
809
- y1: r.value.top,
810
- y2: r.value.bottom,
839
+ x1: i.value.left + i.value.width / 2,
840
+ x2: i.value.left + i.value.width / 2,
841
+ y1: i.value.top,
842
+ y2: i.value.bottom,
811
843
  stroke: e.value.style.chart.layout.separators.color,
812
844
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
813
845
  "stroke-linecap": "round"
814
- }, null, 8, Ca)) : y("", !0),
815
- n("g", Ta, [
846
+ }, null, 8, Pa)) : f("", !0),
847
+ n("g", Na, [
816
848
  n("text", {
817
- 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) : Pt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
818
- y: r.value.top + (m.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
819
- "text-anchor": !E.value || a.sign === -1 ? "start" : "end",
849
+ x: R.value ? i.value.left + i.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) : It(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
850
+ y: i.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
851
+ "text-anchor": !R.value || a.sign === -1 ? "start" : "end",
820
852
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
821
853
  fill: e.value.style.chart.layout.bars.dataLabels.color,
822
854
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
823
- }, p(Ze(a.value, a, o, a.sign)), 9, Sa),
855
+ }, h(ot(a.value, a, o, a.sign)), 9, Aa),
824
856
  (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
825
857
  key: 0,
826
858
  "text-anchor": "end",
827
- x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
828
- y: r.value.top + (m.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
859
+ x: i.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
860
+ y: i.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
829
861
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
830
862
  fill: e.value.style.chart.layout.bars.nameLabels.color,
831
863
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
832
- }, p(a.name), 9, La)) : y("", !0)
864
+ }, h(a.name), 9, za)) : f("", !0)
833
865
  ]),
834
- n("g", Pa, [
866
+ n("g", Va, [
835
867
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
836
868
  key: 0,
837
- x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
838
- y: ae(a, o).y,
869
+ x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
870
+ y: ne(a, o).y,
839
871
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
840
872
  fill: e.value.style.chart.layout.bars.parentLabels.color,
841
873
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
842
874
  "text-anchor": "start"
843
- }, p(ae(a, o).name), 9, Na)) : y("", !0),
875
+ }, h(ne(a, o).name), 9, Ia)) : f("", !0),
844
876
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
845
877
  key: 1,
846
- x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
847
- y: ae(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
878
+ x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
879
+ y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
848
880
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
849
881
  fill: e.value.style.chart.layout.bars.parentLabels.color,
850
882
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
851
883
  "text-anchor": "start"
852
- }, p(Ze(ae(a, o).value), ae(a, o), o, a.parentSign || a.sign), 9, Aa)) : y("", !0)
884
+ }, h(ot(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Oa)) : f("", !0)
853
885
  ]),
854
886
  n("rect", {
855
- x: P.value.x,
856
- y: r.value.top + (m.value + c.value) * o - m.value / 2,
857
- width: P.value.width,
858
- height: c.value + m.value <= 0 ? 1e-4 : c.value + m.value,
859
- fill: we.value === a.id ? s(Ae)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
860
- onMouseenter: (f) => Vt(a, o),
861
- onMouseleave: (f) => zt({ datapoint: a, seriesIndex: o }),
862
- onClick: (f) => At({ datapoint: a, seriesIndex: o })
863
- }, null, 40, za)
887
+ x: N.value.x,
888
+ y: i.value.top + (x.value + p.value) * o - x.value / 2,
889
+ width: N.value.width,
890
+ height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
891
+ fill: Te.value === a.id ? s(Oe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
892
+ onMouseenter: (g) => Bt(a, o),
893
+ onMouseleave: (g) => Mt({ datapoint: a, seriesIndex: o }),
894
+ onClick: (g) => Ft({ datapoint: a, seriesIndex: o })
895
+ }, null, 40, Fa)
864
896
  ]))), 256)),
865
- x(t.$slots, "svg", { svg: P.value }, void 0, !0)
897
+ _(t.$slots, "svg", { svg: N.value }, void 0, !0)
866
898
  ], 512)
867
- ], 14, fa)),
868
- t.$slots.watermark ? (u(), v("div", Va, [
869
- x(t.$slots, "watermark", K(J({ isPrinting: s(Ee) || s(De) })), void 0, !0)
870
- ])) : y("", !0),
899
+ ], 14, ma)),
900
+ t.$slots.watermark ? (u(), v("div", Ma, [
901
+ _(t.$slots, "watermark", Q(Z({ isPrinting: s(Ge) || s(He) })), void 0, !0)
902
+ ])) : f("", !0),
871
903
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
872
904
  key: 6,
873
905
  ref_key: "chartLegend",
874
- ref: fe
906
+ ref: be
875
907
  }, [
876
- (u(), X(rt, {
877
- key: `legend_bottom_${ye.value}`,
908
+ (u(), X(ht, {
909
+ key: `legend_bottom_${me.value}`,
878
910
  legendSet: F.value,
879
- config: Ke.value,
880
- onClickMarker: l[1] || (l[1] = ({ legend: a }) => te(a.id))
881
- }, Se({
882
- item: w(({ legend: a, index: o }) => [
911
+ config: tt.value,
912
+ onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
913
+ }, he({
914
+ item: m(({ legend: a, index: o }) => [
883
915
  n("div", {
884
- onClick: (f) => te(a.id),
885
- style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
886
- }, p(a.name) + ": " + p(s(de)(
916
+ onClick: (g) => oe(a.id),
917
+ style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
918
+ }, h(a.name) + ": " + h(s(pe)(
887
919
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
888
920
  a.value,
889
921
  s(G)({
@@ -893,14 +925,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
893
925
  r: e.value.style.chart.legend.roundingValue
894
926
  }),
895
927
  { datapoint: a, seriesIndex: o }
896
- )), 13, Ia)
928
+ )), 13, Ba)
897
929
  ]),
898
930
  _: 2
899
931
  }, [
900
932
  t.$slots.pattern ? {
901
933
  name: "legend-pattern",
902
- fn: w(({ legend: a, index: o }) => [
903
- oe(it, {
934
+ fn: m(({ legend: a, index: o }) => [
935
+ J(pt, {
904
936
  shape: a.shape,
905
937
  radius: 30,
906
938
  stroke: "none",
@@ -911,18 +943,18 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
911
943
  key: "0"
912
944
  } : void 0
913
945
  ]), 1032, ["legendSet", "config"]))
914
- ], 512)) : y("", !0),
915
- x(t.$slots, "legend", { legend: F.value }, void 0, !0),
946
+ ], 512)) : f("", !0),
947
+ _(t.$slots, "legend", { legend: F.value }, void 0, !0),
916
948
  t.$slots.source ? (u(), v("div", {
917
949
  key: 7,
918
950
  ref_key: "source",
919
- ref: Ie,
951
+ ref: De,
920
952
  dir: "auto"
921
953
  }, [
922
- x(t.$slots, "source", {}, void 0, !0)
923
- ], 512)) : y("", !0),
924
- oe(s(yt), {
925
- show: $.value.showTooltip && he.value && N.value.length < g.dataset.length,
954
+ _(t.$slots, "source", {}, void 0, !0)
955
+ ], 512)) : f("", !0),
956
+ J(s(bt), {
957
+ show: k.value.showTooltip && ge.value && A.value.length < b.dataset.length,
926
958
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
927
959
  color: e.value.style.chart.tooltip.color,
928
960
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -932,177 +964,193 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
932
964
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
933
965
  position: e.value.style.chart.tooltip.position,
934
966
  offsetY: e.value.style.chart.tooltip.offsetY,
935
- parent: z.value,
936
- content: pe.value,
937
- isFullscreen: q.value,
967
+ parent: P.value,
968
+ content: ye.value,
969
+ isFullscreen: E.value,
938
970
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
939
971
  smooth: e.value.style.chart.tooltip.smooth,
940
972
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
941
973
  }, {
942
- "tooltip-before": w(() => [
943
- x(t.$slots, "tooltip-before", K(J({ ...$e.value })), void 0, !0)
974
+ "tooltip-before": m(() => [
975
+ _(t.$slots, "tooltip-before", Q(Z({ ...Se.value })), void 0, !0)
944
976
  ]),
945
- "tooltip-after": w(() => [
946
- x(t.$slots, "tooltip-after", K(J({ ...$e.value })), void 0, !0)
977
+ "tooltip-after": m(() => [
978
+ _(t.$slots, "tooltip-after", Q(Z({ ...Se.value })), void 0, !0)
947
979
  ]),
948
980
  _: 3
949
981
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
950
- ce.value ? (u(), X(sa, {
951
- key: 8,
952
- hideDetails: "",
953
- config: {
954
- open: $.value.showTable,
955
- maxHeight: 1e4,
956
- body: {
957
- backgroundColor: e.value.style.chart.backgroundColor,
958
- color: e.value.style.chart.color
959
- },
960
- head: {
961
- backgroundColor: e.value.style.chart.backgroundColor,
962
- color: e.value.style.chart.color
963
- }
964
- }
965
- }, {
966
- content: w(() => [
982
+ fe.value ? (u(), X(Ht(de.value.component), vt({ key: 8 }, de.value.props, {
983
+ ref_key: "tableUnit",
984
+ ref: le,
985
+ onClose: l[5] || (l[5] = (a) => k.value.showTable = !1)
986
+ }), he({
987
+ content: m(() => [
967
988
  n("div", {
968
989
  ref_key: "tableContainer",
969
- ref: We,
970
- class: "vue-ui-vertical-bar-table atom-data-table"
990
+ ref: Ke,
991
+ class: "vue-ui-vertical-bar-table atom-data-table",
992
+ style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
971
993
  }, [
972
- n("div", Oa, [
973
- n("div", {
994
+ n("div", Da, [
995
+ e.value.table.useDialog ? f("", !0) : (u(), v("div", {
996
+ key: 0,
974
997
  role: "button",
975
998
  tabindex: "0",
976
- style: h(`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};`),
977
- onClick: l[2] || (l[2] = (a) => $.value.showTable = !1),
978
- onKeypress: l[3] || (l[3] = Xt((a) => $.value.showTable = !1, ["enter"]))
999
+ 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};`),
1000
+ onClick: l[3] || (l[3] = (a) => k.value.showTable = !1),
1001
+ onKeypress: l[4] || (l[4] = jt((a) => k.value.showTable = !1, ["enter"]))
979
1002
  }, [
980
- oe(s(ht), {
1003
+ J(s(Fe), {
981
1004
  name: "close",
982
1005
  stroke: e.value.table.th.color,
983
1006
  "stroke-width": 2
984
1007
  }, null, 8, ["stroke"])
985
- ], 36),
1008
+ ], 36)),
986
1009
  n("div", {
987
1010
  style: { width: "100%", "container-type": "inline-size" },
988
- class: D({ "vue-ui-responsive": He.value })
1011
+ class: U({ "vue-ui-responsive": Je.value })
989
1012
  }, [
990
- n("table", Fa, [
991
- n("caption", {
992
- style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
1013
+ n("table", Ra, [
1014
+ e.value.table.useDialog ? f("", !0) : (u(), v("caption", {
1015
+ key: 0,
1016
+ style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
993
1017
  class: "vue-ui-data-table__caption"
994
1018
  }, [
995
- Ut(p(e.value.style.chart.title.text) + " ", 1),
996
- e.value.style.chart.title.subtitle.text ? (u(), v("span", Ma, p(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
997
- ], 4),
1019
+ dt(h(e.value.style.chart.title.text) + " ", 1),
1020
+ e.value.style.chart.title.subtitle.text ? (u(), v("span", Ea, h(e.value.style.chart.title.subtitle.text), 1)) : f("", !0)
1021
+ ], 4)),
998
1022
  n("thead", null, [
999
1023
  n("tr", {
1000
1024
  role: "row",
1001
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1025
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1002
1026
  }, [
1003
- (u(!0), v(Q, null, Z(A.value.head, (a) => (u(), v("th", {
1004
- style: h(`outline:${e.value.table.th.outline}`)
1027
+ (u(!0), v(ee, null, te(z.value.head, (a) => (u(), v("th", {
1028
+ style: c(`outline:${e.value.table.th.outline}`)
1005
1029
  }, [
1006
- n("div", Ba, p(a), 1)
1030
+ n("div", Ua, h(a), 1)
1007
1031
  ], 4))), 256))
1008
1032
  ], 4),
1009
1033
  n("tr", null, [
1010
1034
  n("th", {
1011
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1035
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1012
1036
  }, null, 4),
1013
1037
  n("th", {
1014
- style: h(`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`)
1015
- }, "∑ " + p(e.value.table.td.prefix) + p(isNaN(V.value) ? "" : V.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
1038
+ 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`)
1039
+ }, "∑ " + 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),
1016
1040
  n("th", {
1017
- style: h(`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`)
1041
+ 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`)
1018
1042
  }, "100%", 4),
1019
1043
  n("th", {
1020
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1044
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1021
1045
  }, null, 4),
1022
1046
  n("th", {
1023
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1047
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1024
1048
  }, null, 4),
1025
1049
  n("th", {
1026
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1050
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1027
1051
  }, null, 4),
1028
1052
  n("th", {
1029
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1053
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1030
1054
  }, null, 4)
1031
1055
  ])
1032
1056
  ]),
1033
1057
  n("tbody", null, [
1034
- (u(!0), v(Q, null, Z(A.value.body, (a, o) => (u(), v("tr", {
1035
- class: D({ "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 }),
1036
- style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1058
+ (u(!0), v(ee, null, te(z.value.body, (a, o) => (u(), v("tr", {
1059
+ class: U({ "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 }),
1060
+ style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1037
1061
  }, [
1038
1062
  n("td", {
1039
1063
  class: "vue-ui-data-table__tbody__td",
1040
- style: h(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1041
- "data-cell": A.value.head[0] ?? ""
1064
+ style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1065
+ "data-cell": z.value.head[0] ?? ""
1042
1066
  }, [
1043
- n("div", Ea, [
1067
+ n("div", Wa, [
1044
1068
  a.color ? (u(), v("span", {
1045
1069
  key: 0,
1046
- style: h(`color:${a.color};margin-right:3px`)
1047
- }, "⬤", 4)) : y("", !0),
1048
- n("span", null, p(a.parentName), 1)
1070
+ style: c(`color:${a.color};margin-right:3px`)
1071
+ }, "⬤", 4)) : f("", !0),
1072
+ n("span", null, h(a.parentName), 1)
1049
1073
  ])
1050
- ], 12, Ra),
1074
+ ], 12, Xa),
1051
1075
  n("td", {
1052
1076
  class: "vue-ui-data-table__tbody__td",
1053
- style: h(`outline:${e.value.table.td.outline}`),
1054
- "data-cell": A.value.head[1] ?? ""
1077
+ style: c(`outline:${e.value.table.td.outline}`),
1078
+ "data-cell": z.value.head[1] ?? ""
1055
1079
  }, [
1056
- n("div", Xa, 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)
1057
- ], 12, Da),
1080
+ n("div", Ha, 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)
1081
+ ], 12, Ga),
1058
1082
  n("td", {
1059
1083
  class: "vue-ui-data-table__tbody__td",
1060
- style: h(`outline:${e.value.table.td.outline}`),
1061
- "data-cell": A.value.head[2] ?? ""
1084
+ style: c(`outline:${e.value.table.td.outline}`),
1085
+ "data-cell": z.value.head[2] ?? ""
1062
1086
  }, [
1063
- n("div", Ga, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1064
- ], 12, Ua),
1087
+ n("div", qa, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1088
+ ], 12, ja),
1065
1089
  n("td", {
1066
1090
  class: "vue-ui-data-table__tbody__td",
1067
- style: h(`outline:${e.value.table.td.outline}`),
1068
- "data-cell": A.value.head[3] ?? ""
1091
+ style: c(`outline:${e.value.table.td.outline}`),
1092
+ "data-cell": z.value.head[3] ?? ""
1069
1093
  }, [
1070
- n("div", Ha, p(a.childName), 1)
1071
- ], 12, Wa),
1094
+ n("div", Ka, h(a.childName), 1)
1095
+ ], 12, Ya),
1072
1096
  n("td", {
1073
1097
  class: "vue-ui-data-table__tbody__td",
1074
- style: h(`outline:${e.value.table.td.outline}`),
1075
- "data-cell": A.value.head[4] ?? ""
1098
+ style: c(`outline:${e.value.table.td.outline}`),
1099
+ "data-cell": z.value.head[4] ?? ""
1076
1100
  }, [
1077
- n("div", qa, 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)
1078
- ], 12, ja),
1101
+ n("div", Qa, 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)
1102
+ ], 12, Ja),
1079
1103
  n("td", {
1080
1104
  class: "vue-ui-data-table__tbody__td",
1081
- style: h(`outline:${e.value.table.td.outline}`),
1082
- "data-cell": A.value.head[5] ?? ""
1105
+ style: c(`outline:${e.value.table.td.outline}`),
1106
+ "data-cell": z.value.head[5] ?? ""
1083
1107
  }, [
1084
- n("div", Ka, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1085
- ], 12, Ya),
1108
+ n("div", el, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1109
+ ], 12, Za),
1086
1110
  n("td", {
1087
1111
  class: "vue-ui-data-table__tbody__td",
1088
- style: h(`outline:${e.value.table.td.outline}`),
1089
- "data-cell": A.value.head[6] ?? ""
1112
+ style: c(`outline:${e.value.table.td.outline}`),
1113
+ "data-cell": z.value.head[6] ?? ""
1090
1114
  }, [
1091
- n("div", Qa, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1092
- ], 12, Ja)
1115
+ n("div", al, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1116
+ ], 12, tl)
1093
1117
  ], 6))), 256))
1094
1118
  ])
1095
1119
  ])
1096
1120
  ], 2)
1097
1121
  ])
1098
- ], 512)
1122
+ ], 4)
1099
1123
  ]),
1100
- _: 1
1101
- }, 8, ["config"])) : y("", !0),
1102
- s(ge) ? (u(), X(da, { key: 9 })) : y("", !0)
1103
- ], 46, ha));
1124
+ _: 2
1125
+ }, [
1126
+ e.value.table.useDialog ? {
1127
+ name: "title",
1128
+ fn: m(() => [
1129
+ dt(h(de.value.title), 1)
1130
+ ]),
1131
+ key: "0"
1132
+ } : void 0,
1133
+ e.value.table.useDialog ? {
1134
+ name: "actions",
1135
+ fn: m(() => [
1136
+ n("button", {
1137
+ tabindex: "0",
1138
+ class: "vue-ui-user-options-button",
1139
+ onClick: l[2] || (l[2] = (a) => Le(e.value.userOptions.callbacks.csv))
1140
+ }, [
1141
+ J(s(Fe), {
1142
+ name: "excel",
1143
+ stroke: de.value.props.color
1144
+ }, null, 8, ["stroke"])
1145
+ ])
1146
+ ]),
1147
+ key: "1"
1148
+ } : void 0
1149
+ ]), 1040)) : f("", !0),
1150
+ s(ke) ? (u(), X(ia, { key: 9 })) : f("", !0)
1151
+ ], 46, ya));
1104
1152
  }
1105
- }, pl = /* @__PURE__ */ ca(Za, [["__scopeId", "data-v-fa1761f3"]]);
1153
+ }, bl = /* @__PURE__ */ ga(ll, [["__scopeId", "data-v-7dfdd878"]]);
1106
1154
  export {
1107
- pl as default
1155
+ bl as default
1108
1156
  };