vue-data-ui 3.0.23 → 3.1.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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.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-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,21 +1,22 @@
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-BEuUtONc.js";
3
- import { t as aa, u as la } from "./useResponsive-DfdjqQps.js";
4
- import { u as st } from "./useNestedProp-DhLFhguL.js";
5
- import { u as oa } from "./usePrinter-DiB0_UNt.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-B4YfUjZ5.js";
9
- import rt from "./Legend-CyYXMSsW.js";
10
- import ra from "./Title-D_e0SFWS.js";
11
- import { _ as it } from "./Shape-CYVs2kYz.js";
12
- import ia from "./img-z5p1gGfY.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 Et, defineAsyncComponent as K, useSlots as Ut, computed as y, ref as i, toRefs as Xt, watch as Pe, shallowRef as rt, onMounted as Ne, nextTick as ce, onBeforeUnmount as Wt, 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 it, resolveDynamicComponent as Gt, withKeys as Ht, createTextVNode as vt } from "vue";
2
+ import { u as jt, c as qt, t as Yt, a as Kt, p as W, b as Jt, C as Ae, d as Qt, h as L, o as ze, f as ue, e as Ve, k as pe, i as G, X as Zt, s as Ie, x as ea, v as ta, w as aa, y as la, z as oa } from "./index-BKQqb9lF.js";
3
+ import { t as na, u as ua } from "./useResponsive-DfdjqQps.js";
4
+ import { u as sa, B as ra } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as ia } from "./usePrinter-BzuXiubT.js";
6
+ import { u as dt } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as va } from "./useTableResponsive-Cbx-ACcP.js";
8
+ import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
10
+ import ct from "./Legend-8_V5egWW.js";
11
+ import ha from "./vue-ui-accordion-B5QeV3BK.js";
12
+ import pa from "./Title-Dz-j6ERs.js";
13
+ import { _ as ht } from "./Shape-Cjca5zta.js";
14
+ import fa from "./img-gBDz7xQQ.js";
15
+ import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ 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
17
  key: 5,
17
18
  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 = {
19
+ }, 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
20
  __name: "vue-ui-vertical-bar",
20
21
  props: {
21
22
  config: {
@@ -32,35 +33,35 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend"],
35
- setup(vt, { expose: dt, emit: ct }) {
36
- Mt((t) => ({
37
- dd2a8d00: t.tdo
36
+ setup(pt, { expose: ft, emit: gt }) {
37
+ Et((t) => ({
38
+ "4e09523a": t.tdo
38
39
  }));
39
- const ht = le(() => import("./BaseIcon-CgUOIGjr.js")), pt = le(() => import("./PackageVersion-B6M-3jRt.js")), ft = le(() => import("./PenAndPaper-zym5uEeN.js")), yt = le(() => import("./Tooltip-DjVoFYj1.js")), gt = le(() => import("./UserOptions-z0NWZ7aQ.js")), { vue_ui_vertical_bar: bt } = Gt(), mt = Bt(), g = vt, ce = b({
40
+ const yt = K(() => import("./Tooltip-BTGOEC7w.js")), Oe = K(() => import("./BaseIcon-DLesaZpW.js")), bt = K(() => import("./PenAndPaper-B6OvfyHH.js")), mt = K(() => import("./UserOptions-CsDlFB0L.js")), kt = K(() => import("./PackageVersion-Cv_ypT0N.js")), xt = K(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_vertical_bar: wt } = jt(), _t = Ut(), b = pt, fe = y({
40
41
  get() {
41
- return !!g.dataset && g.dataset.length;
42
+ return !!b.dataset && b.dataset.length;
42
43
  },
43
44
  set(t) {
44
45
  return t;
45
46
  }
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(() => [
47
+ }), S = i(qt()), $t = i(null), ge = i(!1), ye = i(""), ae = i(0), Ct = i(null), Fe = i(0), P = i(null), Me = i(null), be = i(null), Be = i(null), De = i(null), Re = i(0), me = i(0), H = i(null), le = i(null), Tt = gt, e = i(_e()), St = y(() => [
47
48
  { name: "", value: 6, color: "#d9d9d9" },
48
49
  { name: "", value: 5, color: "#d9d9d9" },
49
50
  { name: "", value: 4, color: "#d9d9d9" },
50
51
  { name: "", value: 3, color: "#d9d9d9" },
51
52
  { name: "", value: 2, color: "#d9d9d9" },
52
53
  { name: "", value: 1, color: "#d9d9d9" }
53
- ]), { loading: ge, FINAL_DATASET: be, manualLoading: me } = va({
54
- ...Rt(g),
54
+ ]), { loading: Ee, FINAL_DATASET: ke, manualLoading: xe } = sa({
55
+ ...Xt(b),
55
56
  FINAL_CONFIG: e,
56
- prepareConfig: xe,
57
+ prepareConfig: _e,
57
58
  callback: () => {
58
59
  Promise.resolve().then(async () => {
59
- j(), await O();
60
+ q(), k.value.showTable = e.value.table.show, await O();
60
61
  });
61
62
  },
62
- skeletonDataset: wt.value,
63
- skeletonConfig: Ht({
63
+ skeletonDataset: St.value,
64
+ skeletonConfig: Yt({
64
65
  defaultConfig: e.value,
65
66
  userConfig: {
66
67
  useCssAnimation: !1,
@@ -106,154 +107,146 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
106
107
  }
107
108
  }
108
109
  })
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
110
+ }), { userOptionsVisible: we, setUserOptionsVisibility: Ue, keepUserOptionState: Xe } = da({ config: e.value }), { svgRef: We } = ca({ config: e.value.style.chart.title });
111
+ function _e() {
112
+ const t = dt({
113
+ userConfig: b.config,
114
+ defaultConfig: wt
114
115
  });
115
116
  let l = {};
116
117
  return t.theme ? l = {
117
- ...st({
118
- userConfig: qt.vue_ui_vertical_bar[t.theme] || g.config,
118
+ ...dt({
119
+ userConfig: Jt.vue_ui_vertical_bar[t.theme] || b.config,
119
120
  defaultConfig: t
120
121
  }),
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;
122
+ customPalette: Kt[t.theme] || W
123
+ } : l = t, b.config && Ae(b.config, "events.datapointEnter") ? l.events.datapointEnter = b.config.events.datapointEnter : l.events.datapointEnter = null, b.config && Ae(b.config, "events.datapointLeave") ? l.events.datapointLeave = b.config.events.datapointLeave : l.events.datapointLeave = null, b.config && Ae(b.config, "events.datapointClick") ? l.events.datapointClick = b.config.events.datapointClick : l.events.datapointClick = null, l;
123
124
  }
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();
125
+ Pe(() => b.config, (t) => {
126
+ Ee.value || (e.value = _e()), we.value = !e.value.userOptions.showOnChartHover, Qe(), Re.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;
127
+ }, { deep: !0 }), Pe(() => b.dataset, (t) => {
128
+ Array.isArray(t) && t.length > 0 && (xe.value = !1), q();
128
129
  }, { deep: !0 });
129
- const { isPrinting: Ee, isImaging: De, generatePdf: Xe, generateImage: Ue } = oa({
130
+ const { isPrinting: Ge, isImaging: He, generatePdf: je, generateImage: qe } = ia({
130
131
  elementId: `vue-ui-vertical-bar_${S.value}`,
131
132
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
132
133
  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);
134
+ }), Lt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => Qt(e.value.customPalette)), Ke = i(null), Pt = y(() => e.value.table.responsiveBreakpoint), I = rt(null), j = rt(null), se = i("0 0 10 10"), N = y(() => {
135
+ const [t, l, a, o] = se.value.split(" ").map(Number);
135
136
  return { x: t, y: l, width: a, height: o };
136
137
  });
137
- Te(async () => {
138
- await ve(), qe(), O();
138
+ Ne(async () => {
139
+ await ce(), Qe(), O();
139
140
  });
140
141
  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");
142
+ if (se.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !H.value) return;
143
+ const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
143
144
  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;
145
+ const g = Math.max(...Array.from(t).flatMap((d) => {
146
+ const w = d.querySelectorAll("text");
147
+ return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
148
+ })), $ = Math.max(...Array.from(l).flatMap((d) => {
149
+ const w = d.querySelectorAll("text");
150
+ return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
150
151
  }));
151
152
  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 - _));
153
+ const w = d.querySelectorAll("text");
154
+ Array.from(w).forEach(async (Y) => {
155
+ Y.setAttribute("x", 0), Y.setAttribute("x", L(-g - $));
155
156
  });
156
157
  });
157
158
  }
158
- await ve();
159
- const a = W.value ? W.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
160
- ue.value = [
159
+ await ce();
160
+ const a = H.value ? H.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
161
+ se.value = [
161
162
  a.x + -o,
162
163
  0,
163
164
  a.width + o * 2,
164
165
  r.value.fullHeight
165
166
  ].join(" ");
166
167
  }
167
- let je;
168
- Te(() => {
169
- z.value && (je = new ResizeObserver((t) => {
168
+ let Je;
169
+ Ne(() => {
170
+ P.value && (Je = new ResizeObserver((t) => {
170
171
  for (const l of t) {
171
172
  const { width: a, height: o } = l.contentRect;
172
173
  if (a > 0 && o > 0) {
173
174
  Promise.resolve().then(async () => {
174
- j(), await O();
175
+ q(), await O();
175
176
  });
176
177
  break;
177
178
  }
178
179
  }
179
- }), je.observe(z.value.parentElement));
180
+ }), Je.observe(P.value.parentElement));
180
181
  });
181
- const se = b(() => !!e.value.debug), _e = i(0);
182
- function qe() {
183
- if (Pe(g.dataset) && (ne({
182
+ const re = y(() => !!e.value.debug), $e = i(0);
183
+ function Qe() {
184
+ if (ze(b.dataset) && (ue({
184
185
  componentName: "VueUiVerticalBar",
185
186
  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
187
+ debug: re.value
188
+ }), fe.value = !1, xe.value = !0), ae.value = ke.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), ze(b.dataset) || (xe.value = e.value.loading), e.value.responsive) {
189
+ const t = na(() => {
190
+ const { width: l, height: a } = ua({
191
+ chart: P.value,
192
+ title: e.value.style.chart.title.text ? Me.value : null,
193
+ legend: e.value.style.chart.legend.show ? be.value : null,
194
+ source: Be.value,
195
+ noTitle: De.value
195
196
  });
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();
197
+ $e.value = a / 3, requestAnimationFrame(async () => {
198
+ tt.value = l;
199
+ const o = x.value * (ae.value - 1);
200
+ p.value = (a - o) / ae.value, await ce(), O();
200
201
  });
201
202
  });
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();
203
+ 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
204
  }
204
205
  }
205
- Et(() => {
206
- I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect());
206
+ Wt(() => {
207
+ I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect());
207
208
  });
208
- function Tt() {
209
- if (ge.value) return;
210
- new ResizeObserver((l) => {
211
- l.forEach((a) => {
212
- He.value = a.contentRect.width < Ct.value;
213
- });
214
- }).observe(We.value);
215
- }
216
- const $ = i({
209
+ const k = i({
217
210
  showTable: e.value.table.show,
218
211
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
219
212
  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({
213
+ }), Ze = y(() => k.value.sortDesc), F = y(() => (ke.value.forEach((t, l) => {
214
+ !t.value && !t.children && ue({
222
215
  componentName: "VueUiVerticalBar",
223
216
  type: "datasetAttributeEmpty",
224
217
  property: `value (index ${l})`,
225
- debug: se.value
226
- }), t.children && (Pe(t.children) ? ne({
218
+ debug: re.value
219
+ }), t.children && (ze(t.children) ? ue({
227
220
  componentName: "VueUiVerticalBar",
228
221
  type: "datasetAttributeEmpty",
229
222
  property: `children (index ${l})`,
230
- debug: se.value
223
+ debug: re.value
231
224
  }) : t.children.forEach((a, o) => {
232
- [null, void 0].includes(a.name) && ne({
225
+ [null, void 0].includes(a.name) && ue({
233
226
  componentName: "VueUiVerticalBar",
234
227
  type: "datasetSerieAttribute",
235
228
  property: "name",
236
229
  key: "children",
237
230
  index: o,
238
- debug: se.value
231
+ debug: re.value
239
232
  });
240
233
  }));
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;
234
+ }), ke.value.map((t, l) => {
235
+ 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
236
  return {
244
237
  ...t,
245
238
  id: a,
246
239
  absoluteIndex: l,
247
240
  shape: "square",
248
- opacity: N.value.includes(a) ? 0.5 : 1,
249
- value: Math.abs(f),
250
- sign: _,
241
+ opacity: A.value.includes(a) ? 0.5 : 1,
242
+ value: Math.abs(g),
243
+ sign: $,
251
244
  hasChildren: o,
252
245
  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) => ({
246
+ segregate: () => oe(a),
247
+ isSegregated: A.value.includes(a),
248
+ color: Ve(t.color) || Ye.value[l] || W[l] || W[l % W.length],
249
+ children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (d, w) => Ze.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
257
250
  ...d,
258
251
  value: L(Math.abs(d.value)),
259
252
  absoluteIndex: l,
@@ -261,34 +254,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
261
254
  isChild: !0,
262
255
  parentId: a,
263
256
  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) => ({
257
+ parentValue: g,
258
+ parentSign: $,
259
+ id: `vertical_child_${l}_${w}_${S.value}`,
260
+ childIndex: w,
261
+ color: Ve(d.color) || Ve(t.color) || Ye.value[l] || W[l] || W[l % W.length]
262
+ })).map((d, w) => ({
270
263
  ...d,
271
- isFirstChild: k === 0,
272
- isLastChild: k === t.children.length - 1
264
+ isFirstChild: w === 0,
265
+ isLastChild: w === t.children.length - 1
273
266
  }))
274
267
  };
275
- }).toSorted(re.value ? () => 0 : (t, l) => Ye.value ? l.value - t.value : t.value - l.value))), Ke = b(() => ({
268
+ }).toSorted(ie.value ? () => 0 : (t, l) => Ze.value ? l.value - t.value : t.value - l.value))), et = y(() => ({
276
269
  cy: "vertical-bar-div-legend",
277
270
  backgroundColor: e.value.style.chart.legend.backgroundColor,
278
271
  color: e.value.style.chart.legend.color,
279
272
  fontSize: e.value.style.chart.legend.fontSize,
280
273
  paddingBottom: 12,
281
274
  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,
275
+ })), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), Nt = y(() => (p.value + x.value) * ae.value), tt = i(512), C = y(() => ({
276
+ width: tt.value,
277
+ height: Nt.value,
285
278
  padding: {
286
279
  top: 12,
287
280
  left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
288
281
  right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
289
282
  bottom: 12
290
283
  }
291
- })), r = b(() => ({
284
+ })), r = y(() => ({
292
285
  fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
293
286
  top: C.value.padding.top,
294
287
  left: C.value.padding.left,
@@ -296,78 +289,78 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
296
289
  bottom: C.value.padding.top + C.value.height,
297
290
  width: C.value.width - (C.value.padding.left + C.value.padding.right)
298
291
  }));
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();
292
+ async function q() {
293
+ 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
294
  }
302
- const N = i([]);
303
- async function te(t) {
304
- if (N.value.includes(t))
305
- N.value = N.value.filter((l) => l !== t);
295
+ const A = i([]);
296
+ async function oe(t) {
297
+ if (A.value.includes(t))
298
+ A.value = A.value.filter((l) => l !== t);
306
299
  else {
307
- if (N.value.length === F.value.length - 1) return;
308
- N.value.push(t);
300
+ if (A.value.length === F.value.length - 1) return;
301
+ A.value.push(t);
309
302
  }
310
- j(), await ve(), e.value.autoSize && O(), _t("selectLegend", B.value);
303
+ q(), await ce(), e.value.autoSize && O(), Tt("selectLegend", B.value);
311
304
  }
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) {
305
+ 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));
306
+ function at(t, l = !1, a = 0) {
314
307
  return l ? G({
315
308
  v: L(Math.abs(t) / V.value * 100),
316
309
  s: "%",
317
310
  r: a
318
311
  }) : Math.abs(t) / V.value;
319
312
  }
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)));
313
+ const D = y(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), R = y(() => D.value.map((t) => t.sign).includes(-1)), At = y(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
321
314
  function T(t) {
322
- const l = t / Lt.value;
323
- return r.value.width / (E.value ? 2 : 1) * l;
315
+ const l = t / At.value;
316
+ return r.value.width / (R.value ? 2 : 1) * l;
324
317
  }
325
- function Pt(t) {
318
+ function zt(t) {
326
319
  return T(t) + r.value.left;
327
320
  }
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);
321
+ function ne(t, l) {
322
+ const a = B.value.find(($) => $.id === t.parentId), o = r.value.top + (x.value + p.value) * l, g = a.children.length * (x.value + p.value);
330
323
  return {
331
- y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
324
+ y: o + g / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
332
325
  name: a.name,
333
326
  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),
327
+ percentageToTotal: isNaN(a.value / V.value) ? "" : at(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
335
328
  sign: a.sign
336
329
  };
337
330
  }
338
- function Nt() {
331
+ function Vt() {
339
332
  return B.value;
340
333
  }
341
- const we = i(null), $e = i(null);
342
- function At({ datapoint: t, seriesIndex: l }) {
334
+ const Ce = i(null), Te = i(null);
335
+ function It({ datapoint: t, seriesIndex: l }) {
343
336
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
344
337
  }
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;
338
+ function Ot({ datapoint: t, seriesIndex: l }) {
339
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Ct.value = null, ge.value = !1, Ce.value = null;
347
340
  }
348
- function Vt(t, l) {
349
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), $e.value = {
341
+ function Ft(t, l) {
342
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Te.value = {
350
343
  datapoint: t,
351
344
  seriesIndex: l,
352
345
  series: F.value,
353
346
  config: e.value
354
- }, he.value = !0, we.value = t.id;
347
+ }, ge.value = !0, Ce.value = t.id;
355
348
  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(() => _({
349
+ const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
350
+ la($) && oa(() => $({
358
351
  datapoint: t,
359
352
  series: F.value,
360
353
  config: e.value,
361
354
  seriesIndex: l
362
- })) ? pe.value = _({
355
+ })) ? ye.value = $({
363
356
  datapoint: t,
364
357
  series: F.value,
365
358
  config: e.value,
366
359
  seriesIndex: l
367
360
  }) : (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(
361
+ <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>
362
+ ${g ? `<div>${g}</div>` : ""}
363
+ </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${pe(
371
364
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
372
365
  t.sign === 1 ? t.value : -t.value,
373
366
  G({
@@ -385,12 +378,12 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
385
378
  v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
386
379
  s: "%",
387
380
  r: e.value.style.chart.tooltip.roundingPercentage
388
- })}</b></div>`)), pe.value = `<div style="text-align:left">${a}</div>`);
381
+ })}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
389
382
  }
390
- function Ze(t, l, a, o) {
383
+ function lt(t, l, a, o) {
391
384
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
392
385
  return "";
393
- const f = de(
386
+ const g = pe(
394
387
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
395
388
  L(o === -1 && t >= 0 ? -t : t),
396
389
  G({
@@ -400,10 +393,10 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
400
393
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
401
394
  }),
402
395
  { 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 ? ` ${_}` : ""}`;
396
+ ), $ = `(${at(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
397
+ return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
405
398
  }
406
- const A = b(() => {
399
+ const z = y(() => {
407
400
  const t = [
408
401
  e.value.translations.parentName,
409
402
  e.value.translations.value,
@@ -412,7 +405,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
412
405
  e.value.translations.value,
413
406
  e.value.translations.percentageToSerie,
414
407
  e.value.translations.percentageToTotal
415
- ], l = R.value.map((a) => a.isChild ? a.isFirstChild ? {
408
+ ], l = D.value.map((a) => a.isChild ? a.isFirstChild ? {
416
409
  color: a.color,
417
410
  parentName: a.parentName,
418
411
  parentValue: a.parentValue,
@@ -442,8 +435,8 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
442
435
  });
443
436
  return { head: t, body: l };
444
437
  });
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) => [
438
+ function Se(t = null) {
439
+ 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
440
  d.parentName,
448
441
  d.parentValue,
449
442
  d.percentageToTotal,
@@ -451,100 +444,134 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
451
444
  d.childValue,
452
445
  d.childPercentageToParent,
453
446
  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" });
447
+ ]), g = l.concat([a]).concat(o), $ = ta(g);
448
+ t ? t($) : aa({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
456
449
  }
457
- const q = i(!1);
458
- function tt(t) {
459
- q.value = t, ze.value += 1;
450
+ const E = i(!1);
451
+ function ot(t) {
452
+ E.value = t, Fe.value += 1;
460
453
  }
461
- function at() {
462
- $.value.showTable = !$.value.showTable;
454
+ function nt() {
455
+ k.value.showTable = !k.value.showTable;
463
456
  }
464
- const It = i({
457
+ const Mt = i({
465
458
  none: 0,
466
459
  asc: 1,
467
460
  desc: 2
468
- }), M = i(0), re = i(!1);
469
- Te(() => {
470
- ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ne({
461
+ }), M = i(0), ie = i(!1);
462
+ Ne(() => {
463
+ ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
471
464
  componentName: "VueUiVerticalBar",
472
465
  type: "attributeWrongValue",
473
466
  property: "style.chart.layout.bars.sort",
474
467
  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;
468
+ }), M.value = Mt.value[e.value.style.chart.layout.bars.sort], k.value.sortDesc = M.value === 2, ie.value = M.value === 0;
476
469
  });
477
- function Ot() {
470
+ function Bt() {
478
471
  M.value += 1, M.value > 2 && (M.value = 0);
479
472
  }
480
- function lt() {
481
- Ot(), $.value.sortDesc = M.value === 2, re.value = M.value === 0, j();
473
+ function ut() {
474
+ Bt(), k.value.sortDesc = M.value === 2, ie.value = M.value === 0, q();
482
475
  }
483
- function ot() {
484
- $.value.showTooltip = !$.value.showTooltip;
476
+ function st() {
477
+ k.value.showTooltip = !k.value.showTooltip;
485
478
  }
486
- const ie = i(!1);
487
- function Ce() {
488
- ie.value = !ie.value;
479
+ const ve = i(!1);
480
+ function Le() {
481
+ ve.value = !ve.value;
489
482
  }
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 });
483
+ async function Dt({ scale: t = 2 } = {}) {
484
+ if (!P.value) return;
485
+ 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
486
  return {
494
- imageUri: f,
495
- base64: _,
487
+ imageUri: g,
488
+ base64: $,
496
489
  title: e.value.style.chart.title.text,
497
490
  width: l,
498
491
  height: a,
499
492
  aspectRatio: o
500
493
  };
501
494
  }
502
- return dt({
495
+ const de = y(() => {
496
+ const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
497
+ return {
498
+ component: t ? xt : ha,
499
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
500
+ props: t ? {
501
+ backgroundColor: e.value.table.th.backgroundColor,
502
+ color: e.value.table.th.color,
503
+ headerColor: e.value.table.th.color,
504
+ headerBg: e.value.table.th.backgroundColor,
505
+ isFullscreen: E.value,
506
+ fullscreenParent: P.value,
507
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
508
+ } : {
509
+ hideDetails: !0,
510
+ config: {
511
+ open: l,
512
+ maxHeight: 1e4,
513
+ body: {
514
+ backgroundColor: e.value.style.chart.backgroundColor,
515
+ color: e.value.style.chart.color
516
+ },
517
+ head: {
518
+ backgroundColor: e.value.style.chart.backgroundColor,
519
+ color: e.value.style.chart.color
520
+ }
521
+ }
522
+ }
523
+ };
524
+ });
525
+ Pe(() => k.value.showTable, (t) => {
526
+ e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
527
+ });
528
+ const { isResponsive: Rt } = va(Ke, Pt);
529
+ return ft({
503
530
  autoSize: O,
504
531
  // 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
532
+ getData: Vt,
533
+ getImage: Dt,
534
+ recalculateHeight: q,
535
+ generatePdf: je,
536
+ generateCsv: Se,
537
+ generateImage: qe,
538
+ toggleTable: nt,
539
+ toggleSort: ut,
540
+ toggleTooltip: st,
541
+ toggleAnnotator: Le,
542
+ toggleFullscreen: ot
516
543
  }), (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" : ""}`),
544
+ 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
545
  ref_key: "verticalBarChart",
519
- ref: z,
546
+ ref: P,
520
547
  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))
548
+ style: c(`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%" : ""}`),
549
+ onMouseenter: l[6] || (l[6] = () => s(Ue)(!0)),
550
+ onMouseleave: l[7] || (l[7] = () => s(Ue)(!1))
524
551
  }, [
525
- e.value.userOptions.buttons.annotator ? (u(), X(s(ft), {
552
+ e.value.userOptions.buttons.annotator ? (u(), X(s(bt), {
526
553
  key: 0,
527
- svgRef: s(Re),
554
+ svgRef: s(We),
528
555
  backgroundColor: e.value.style.chart.backgroundColor,
529
556
  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", {
557
+ active: ve.value,
558
+ onClose: Le
559
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
560
+ Lt.value ? (u(), v("div", {
534
561
  key: 1,
535
562
  ref_key: "noTitle",
536
- ref: Oe,
563
+ ref: De,
537
564
  class: "vue-data-ui-no-title-space",
538
565
  style: "height:36px; width: 100%;background:transparent"
539
- }, null, 512)) : y("", !0),
566
+ }, null, 512)) : f("", !0),
540
567
  e.value.style.chart.title.text ? (u(), v("div", {
541
568
  key: 2,
542
569
  ref_key: "chartTitle",
543
- ref: Ve,
570
+ ref: Me,
544
571
  style: "width:100%;background:transparent;padding-bottom:12px"
545
572
  }, [
546
- (u(), X(ra, {
547
- key: `title_${Fe.value}`,
573
+ (u(), X(pa, {
574
+ key: `title_${Re.value}`,
548
575
  config: {
549
576
  title: {
550
577
  cy: "vertical-bar-div-title",
@@ -556,15 +583,15 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
556
583
  }
557
584
  }
558
585
  }, null, 8, ["config"]))
559
- ], 512)) : y("", !0),
560
- e.value.userOptions.show && ce.value && (s(Be) || s(ke)) ? (u(), X(s(gt), {
586
+ ], 512)) : f("", !0),
587
+ e.value.userOptions.show && fe.value && (s(Xe) || s(we)) ? (u(), X(s(mt), {
561
588
  ref_key: "details",
562
- ref: kt,
563
- key: `user_options_${ze.value}`,
589
+ ref: $t,
590
+ key: `user_options_${Fe.value}`,
564
591
  backgroundColor: e.value.style.chart.backgroundColor,
565
592
  color: e.value.style.chart.color,
566
- isImaging: s(De),
567
- isPrinting: s(Ee),
593
+ isImaging: s(He),
594
+ isPrinting: s(Ge),
568
595
  uid: S.value,
569
596
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
570
597
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -573,114 +600,114 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
573
600
  hasTable: e.value.userOptions.buttons.table,
574
601
  hasSort: e.value.userOptions.buttons.sort,
575
602
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
576
- isFullscreen: q.value,
577
- isTooltip: $.value.showTooltip,
603
+ isFullscreen: E.value,
604
+ isTooltip: k.value.showTooltip,
578
605
  titles: { ...e.value.userOptions.buttonTitles },
579
- chartElement: z.value,
606
+ chartElement: P.value,
580
607
  position: e.value.userOptions.position,
581
608
  hasAnnotator: e.value.userOptions.buttons.annotator,
582
- isAnnotation: ie.value,
609
+ isAnnotation: ve.value,
583
610
  callbacks: e.value.userOptions.callbacks,
584
611
  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"
612
+ onToggleFullscreen: ot,
613
+ onGeneratePdf: s(je),
614
+ onGenerateCsv: Se,
615
+ onGenerateImage: s(qe),
616
+ onToggleTable: nt,
617
+ onToggleSort: ut,
618
+ onToggleTooltip: st,
619
+ onToggleAnnotator: Le,
620
+ style: c({
621
+ visibility: s(Xe) ? s(we) ? "visible" : "hidden" : "visible"
595
622
  })
596
- }, Se({ _: 2 }, [
623
+ }, he({ _: 2 }, [
597
624
  t.$slots.menuIcon ? {
598
625
  name: "menuIcon",
599
- fn: w(({ isOpen: a, color: o }) => [
600
- x(t.$slots, "menuIcon", K(J({ isOpen: a, color: o })), void 0, !0)
626
+ fn: m(({ isOpen: a, color: o }) => [
627
+ _(t.$slots, "menuIcon", Q(Z({ isOpen: a, color: o })), void 0, !0)
601
628
  ]),
602
629
  key: "0"
603
630
  } : void 0,
604
631
  t.$slots.optionTooltip ? {
605
632
  name: "optionTooltip",
606
- fn: w(() => [
607
- x(t.$slots, "optionTooltip", {}, void 0, !0)
633
+ fn: m(() => [
634
+ _(t.$slots, "optionTooltip", {}, void 0, !0)
608
635
  ]),
609
636
  key: "1"
610
637
  } : void 0,
611
638
  t.$slots.optionPdf ? {
612
639
  name: "optionPdf",
613
- fn: w(() => [
614
- x(t.$slots, "optionPdf", {}, void 0, !0)
640
+ fn: m(() => [
641
+ _(t.$slots, "optionPdf", {}, void 0, !0)
615
642
  ]),
616
643
  key: "2"
617
644
  } : void 0,
618
645
  t.$slots.optionCsv ? {
619
646
  name: "optionCsv",
620
- fn: w(() => [
621
- x(t.$slots, "optionCsv", {}, void 0, !0)
647
+ fn: m(() => [
648
+ _(t.$slots, "optionCsv", {}, void 0, !0)
622
649
  ]),
623
650
  key: "3"
624
651
  } : void 0,
625
652
  t.$slots.optionImg ? {
626
653
  name: "optionImg",
627
- fn: w(() => [
628
- x(t.$slots, "optionImg", {}, void 0, !0)
654
+ fn: m(() => [
655
+ _(t.$slots, "optionImg", {}, void 0, !0)
629
656
  ]),
630
657
  key: "4"
631
658
  } : void 0,
632
659
  t.$slots.optionTable ? {
633
660
  name: "optionTable",
634
- fn: w(() => [
635
- x(t.$slots, "optionTable", {}, void 0, !0)
661
+ fn: m(() => [
662
+ _(t.$slots, "optionTable", {}, void 0, !0)
636
663
  ]),
637
664
  key: "5"
638
665
  } : void 0,
639
666
  t.$slots.optionLabels ? {
640
667
  name: "optionLabels",
641
- fn: w(() => [
642
- x(t.$slots, "optionLabels", {}, void 0, !0)
668
+ fn: m(() => [
669
+ _(t.$slots, "optionLabels", {}, void 0, !0)
643
670
  ]),
644
671
  key: "6"
645
672
  } : void 0,
646
673
  t.$slots.optionSort ? {
647
674
  name: "optionSort",
648
- fn: w(() => [
649
- x(t.$slots, "optionSort", {}, void 0, !0)
675
+ fn: m(() => [
676
+ _(t.$slots, "optionSort", {}, void 0, !0)
650
677
  ]),
651
678
  key: "7"
652
679
  } : void 0,
653
680
  t.$slots.optionFullscreen ? {
654
681
  name: "optionFullscreen",
655
- fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
656
- x(t.$slots, "optionFullscreen", K(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
682
+ fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
683
+ _(t.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
657
684
  ]),
658
685
  key: "8"
659
686
  } : void 0,
660
687
  t.$slots.optionAnnotator ? {
661
688
  name: "optionAnnotator",
662
- fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
663
- x(t.$slots, "optionAnnotator", K(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
689
+ fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
690
+ _(t.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
664
691
  ]),
665
692
  key: "9"
666
693
  } : 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),
694
+ ]), 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
695
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
669
696
  key: 4,
670
697
  ref_key: "chartLegend",
671
- ref: fe
698
+ ref: be
672
699
  }, [
673
- (u(), X(rt, {
674
- key: `legend_top_${ye.value}`,
700
+ (u(), X(ct, {
701
+ key: `legend_top_${me.value}`,
675
702
  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 }) => [
703
+ config: et.value,
704
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
705
+ }, he({
706
+ item: m(({ legend: a, index: o }) => [
680
707
  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)(
708
+ onClick: (g) => oe(a.id),
709
+ style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
710
+ }, h(a.name) + ": " + h(s(pe)(
684
711
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
685
712
  a.value,
686
713
  s(G)({
@@ -690,14 +717,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
690
717
  r: e.value.style.chart.legend.roundingValue
691
718
  }),
692
719
  { datapoint: a, seriesIndex: o }
693
- )), 13, pa)
720
+ )), 13, ba)
694
721
  ]),
695
722
  _: 2
696
723
  }, [
697
724
  t.$slots.pattern ? {
698
725
  name: "legend-pattern",
699
- fn: w(({ legend: a, index: o }) => [
700
- oe(it, {
726
+ fn: m(({ legend: a, index: o }) => [
727
+ J(ht, {
701
728
  shape: a.shape,
702
729
  radius: 30,
703
730
  stroke: "none",
@@ -708,34 +735,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
708
735
  key: "0"
709
736
  } : void 0
710
737
  ]), 1032, ["legendSet", "config"]))
711
- ], 512)) : y("", !0),
738
+ ], 512)) : f("", !0),
712
739
  (u(), v("svg", {
713
740
  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}`)
741
+ ref: We,
742
+ xmlns: s(Zt),
743
+ class: U({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
744
+ viewBox: se.value,
745
+ style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
719
746
  }, [
720
747
  n("g", {
721
748
  ref_key: "G",
722
- ref: W,
749
+ ref: H,
723
750
  class: "vue-data-ui-g"
724
751
  }, [
725
- oe(s(pt)),
752
+ J(s(kt)),
726
753
  t.$slots["chart-background"] ? (u(), v("foreignObject", {
727
754
  key: 0,
728
- x: P.value.x,
755
+ x: N.value.x,
729
756
  y: 0,
730
- width: P.value.width,
731
- height: P.value.height,
757
+ width: N.value.width,
758
+ height: N.value.height,
732
759
  style: {
733
760
  pointerEvents: "none"
734
761
  }
735
762
  }, [
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", {
763
+ _(t.$slots, "chart-background", {}, void 0, !0)
764
+ ], 8, ka)) : f("", !0),
765
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("linearGradient", {
739
766
  x1: "0%",
740
767
  y1: "0%",
741
768
  x2: "100%",
@@ -745,64 +772,64 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
745
772
  n("stop", {
746
773
  offset: "0%",
747
774
  "stop-color": a.color
748
- }, null, 8, ba),
775
+ }, null, 8, wa),
749
776
  n("stop", {
750
777
  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)
778
+ "stop-color": s(Ie)(s(ea)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
779
+ }, null, 8, _a)
780
+ ], 8, xa))), 256)),
781
+ t.$slots.pattern ? (u(), v("g", $a, [
782
+ (u(!0), v(ee, null, te(D.value, (a) => (u(), v("defs", null, [
783
+ _(t.$slots, "pattern", it({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
757
784
  ]))), 256))
758
- ])) : y("", !0),
759
- (u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
785
+ ])) : f("", !0),
786
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
760
787
  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,
788
+ x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
789
+ y: r.value.top + (x.value + p.value) * o,
763
790
  width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
764
- height: c.value <= 0 ? 1e-4 : c.value,
791
+ height: p.value <= 0 ? 1e-4 : p.value,
765
792
  fill: e.value.style.chart.layout.bars.underlayerColor,
766
793
  rx: e.value.style.chart.layout.bars.borderRadius,
767
- class: D({ animated: e.value.useCssAnimation })
768
- }, null, 10, xa)
794
+ class: U({ animated: e.value.useCssAnimation })
795
+ }, null, 10, Ca)
769
796
  ]))), 256)),
770
- (u(!0), v(Q, null, Z(R.value, (a, o) => (u(), v("g", null, [
797
+ (u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
771
798
  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,
799
+ x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
800
+ y: r.value.top + (x.value + p.value) * o,
774
801
  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),
802
+ height: p.value <= 0 ? 1e-4 : p.value,
803
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Ie)(a.color, e.value.style.chart.layout.bars.fillOpacity),
777
804
  rx: e.value.style.chart.layout.bars.borderRadius,
778
805
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
779
806
  "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),
807
+ class: U({ animated: e.value.useCssAnimation })
808
+ }, null, 10, Ta),
782
809
  t.$slots.pattern ? (u(), v("rect", {
783
810
  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,
811
+ x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
812
+ y: r.value.top + (x.value + p.value) * o,
786
813
  width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
787
- height: c.value <= 0 ? 1e-4 : c.value,
814
+ height: p.value <= 0 ? 1e-4 : p.value,
788
815
  fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
789
816
  rx: e.value.style.chart.layout.bars.borderRadius,
790
817
  stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
791
818
  "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", {
819
+ class: U({ animated: e.value.useCssAnimation })
820
+ }, null, 10, Sa)) : f("", !0),
821
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== D.value.length - 1 ? (u(), v("line", {
795
822
  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,
823
+ x1: N.value.x,
824
+ x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : r.value.left,
825
+ y1: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
826
+ y2: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
800
827
  stroke: e.value.style.chart.layout.separators.color,
801
828
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
802
829
  "stroke-linecap": "round",
803
830
  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", {
831
+ }, null, 8, La)) : f("", !0),
832
+ R.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
806
833
  key: 2,
807
834
  x1: r.value.left + r.value.width / 2,
808
835
  x2: r.value.left + r.value.width / 2,
@@ -811,79 +838,79 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
811
838
  stroke: e.value.style.chart.layout.separators.color,
812
839
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
813
840
  "stroke-linecap": "round"
814
- }, null, 8, Ca)) : y("", !0),
815
- n("g", Ta, [
841
+ }, null, 8, Pa)) : f("", !0),
842
+ n("g", Na, [
816
843
  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",
844
+ x: R.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) : zt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
845
+ y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
846
+ "text-anchor": !R.value || a.sign === -1 ? "start" : "end",
820
847
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
821
848
  fill: e.value.style.chart.layout.bars.dataLabels.color,
822
849
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
823
- }, p(Ze(a.value, a, o, a.sign)), 9, Sa),
850
+ }, h(lt(a.value, a, o, a.sign)), 9, Aa),
824
851
  (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
825
852
  key: 0,
826
853
  "text-anchor": "end",
827
854
  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,
855
+ y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
829
856
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
830
857
  fill: e.value.style.chart.layout.bars.nameLabels.color,
831
858
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
832
- }, p(a.name), 9, La)) : y("", !0)
859
+ }, h(a.name), 9, za)) : f("", !0)
833
860
  ]),
834
- n("g", Pa, [
861
+ n("g", Va, [
835
862
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
836
863
  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,
864
+ x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
865
+ y: ne(a, o).y,
839
866
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
840
867
  fill: e.value.style.chart.layout.bars.parentLabels.color,
841
868
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
842
869
  "text-anchor": "start"
843
- }, p(ae(a, o).name), 9, Na)) : y("", !0),
870
+ }, h(ne(a, o).name), 9, Ia)) : f("", !0),
844
871
  a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
845
872
  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,
873
+ x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
874
+ y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
848
875
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
849
876
  fill: e.value.style.chart.layout.bars.parentLabels.color,
850
877
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
851
878
  "text-anchor": "start"
852
- }, p(Ze(ae(a, o).value), ae(a, o), o, a.parentSign || a.sign), 9, Aa)) : y("", !0)
879
+ }, h(lt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Oa)) : f("", !0)
853
880
  ]),
854
881
  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)
882
+ x: N.value.x,
883
+ y: r.value.top + (x.value + p.value) * o - x.value / 2,
884
+ width: N.value.width,
885
+ height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
886
+ fill: Ce.value === a.id ? s(Ie)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
887
+ onMouseenter: (g) => Ft(a, o),
888
+ onMouseleave: (g) => Ot({ datapoint: a, seriesIndex: o }),
889
+ onClick: (g) => It({ datapoint: a, seriesIndex: o })
890
+ }, null, 40, Fa)
864
891
  ]))), 256)),
865
- x(t.$slots, "svg", { svg: P.value }, void 0, !0)
892
+ _(t.$slots, "svg", { svg: N.value }, void 0, !0)
866
893
  ], 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),
894
+ ], 14, ma)),
895
+ t.$slots.watermark ? (u(), v("div", Ma, [
896
+ _(t.$slots, "watermark", Q(Z({ isPrinting: s(Ge) || s(He) })), void 0, !0)
897
+ ])) : f("", !0),
871
898
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
872
899
  key: 6,
873
900
  ref_key: "chartLegend",
874
- ref: fe
901
+ ref: be
875
902
  }, [
876
- (u(), X(rt, {
877
- key: `legend_bottom_${ye.value}`,
903
+ (u(), X(ct, {
904
+ key: `legend_bottom_${me.value}`,
878
905
  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 }) => [
906
+ config: et.value,
907
+ onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
908
+ }, he({
909
+ item: m(({ legend: a, index: o }) => [
883
910
  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)(
911
+ onClick: (g) => oe(a.id),
912
+ style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
913
+ }, h(a.name) + ": " + h(s(pe)(
887
914
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
888
915
  a.value,
889
916
  s(G)({
@@ -893,14 +920,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
893
920
  r: e.value.style.chart.legend.roundingValue
894
921
  }),
895
922
  { datapoint: a, seriesIndex: o }
896
- )), 13, Ia)
923
+ )), 13, Ba)
897
924
  ]),
898
925
  _: 2
899
926
  }, [
900
927
  t.$slots.pattern ? {
901
928
  name: "legend-pattern",
902
- fn: w(({ legend: a, index: o }) => [
903
- oe(it, {
929
+ fn: m(({ legend: a, index: o }) => [
930
+ J(ht, {
904
931
  shape: a.shape,
905
932
  radius: 30,
906
933
  stroke: "none",
@@ -911,18 +938,18 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
911
938
  key: "0"
912
939
  } : void 0
913
940
  ]), 1032, ["legendSet", "config"]))
914
- ], 512)) : y("", !0),
915
- x(t.$slots, "legend", { legend: F.value }, void 0, !0),
941
+ ], 512)) : f("", !0),
942
+ _(t.$slots, "legend", { legend: F.value }, void 0, !0),
916
943
  t.$slots.source ? (u(), v("div", {
917
944
  key: 7,
918
945
  ref_key: "source",
919
- ref: Ie,
946
+ ref: Be,
920
947
  dir: "auto"
921
948
  }, [
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,
949
+ _(t.$slots, "source", {}, void 0, !0)
950
+ ], 512)) : f("", !0),
951
+ J(s(yt), {
952
+ show: k.value.showTooltip && ge.value && A.value.length < b.dataset.length,
926
953
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
927
954
  color: e.value.style.chart.tooltip.color,
928
955
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -932,177 +959,193 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
932
959
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
933
960
  position: e.value.style.chart.tooltip.position,
934
961
  offsetY: e.value.style.chart.tooltip.offsetY,
935
- parent: z.value,
936
- content: pe.value,
937
- isFullscreen: q.value,
962
+ parent: P.value,
963
+ content: ye.value,
964
+ isFullscreen: E.value,
938
965
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
939
966
  smooth: e.value.style.chart.tooltip.smooth,
940
967
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
941
968
  }, {
942
- "tooltip-before": w(() => [
943
- x(t.$slots, "tooltip-before", K(J({ ...$e.value })), void 0, !0)
969
+ "tooltip-before": m(() => [
970
+ _(t.$slots, "tooltip-before", Q(Z({ ...Te.value })), void 0, !0)
944
971
  ]),
945
- "tooltip-after": w(() => [
946
- x(t.$slots, "tooltip-after", K(J({ ...$e.value })), void 0, !0)
972
+ "tooltip-after": m(() => [
973
+ _(t.$slots, "tooltip-after", Q(Z({ ...Te.value })), void 0, !0)
947
974
  ]),
948
975
  _: 3
949
976
  }, 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(() => [
977
+ fe.value ? (u(), X(Gt(de.value.component), it({ key: 8 }, de.value.props, {
978
+ ref_key: "tableUnit",
979
+ ref: le,
980
+ onClose: l[5] || (l[5] = (a) => k.value.showTable = !1)
981
+ }), he({
982
+ content: m(() => [
967
983
  n("div", {
968
984
  ref_key: "tableContainer",
969
- ref: We,
970
- class: "vue-ui-vertical-bar-table atom-data-table"
985
+ ref: Ke,
986
+ class: "vue-ui-vertical-bar-table atom-data-table",
987
+ style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
971
988
  }, [
972
- n("div", Oa, [
973
- n("div", {
989
+ n("div", Da, [
990
+ e.value.table.useDialog ? f("", !0) : (u(), v("div", {
991
+ key: 0,
974
992
  role: "button",
975
993
  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"]))
994
+ 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};`),
995
+ onClick: l[3] || (l[3] = (a) => k.value.showTable = !1),
996
+ onKeypress: l[4] || (l[4] = Ht((a) => k.value.showTable = !1, ["enter"]))
979
997
  }, [
980
- oe(s(ht), {
998
+ J(s(Oe), {
981
999
  name: "close",
982
1000
  stroke: e.value.table.th.color,
983
1001
  "stroke-width": 2
984
1002
  }, null, 8, ["stroke"])
985
- ], 36),
1003
+ ], 36)),
986
1004
  n("div", {
987
1005
  style: { width: "100%", "container-type": "inline-size" },
988
- class: D({ "vue-ui-responsive": He.value })
1006
+ class: U({ "vue-ui-responsive": s(Rt) })
989
1007
  }, [
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 }),
1008
+ n("table", Ra, [
1009
+ e.value.table.useDialog ? f("", !0) : (u(), v("caption", {
1010
+ key: 0,
1011
+ style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
993
1012
  class: "vue-ui-data-table__caption"
994
1013
  }, [
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),
1014
+ vt(h(e.value.style.chart.title.text) + " ", 1),
1015
+ e.value.style.chart.title.subtitle.text ? (u(), v("span", Ea, h(e.value.style.chart.title.subtitle.text), 1)) : f("", !0)
1016
+ ], 4)),
998
1017
  n("thead", null, [
999
1018
  n("tr", {
1000
1019
  role: "row",
1001
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1020
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1002
1021
  }, [
1003
- (u(!0), v(Q, null, Z(A.value.head, (a) => (u(), v("th", {
1004
- style: h(`outline:${e.value.table.th.outline}`)
1022
+ (u(!0), v(ee, null, te(z.value.head, (a) => (u(), v("th", {
1023
+ style: c(`outline:${e.value.table.th.outline}`)
1005
1024
  }, [
1006
- n("div", Ba, p(a), 1)
1025
+ n("div", Ua, h(a), 1)
1007
1026
  ], 4))), 256))
1008
1027
  ], 4),
1009
1028
  n("tr", null, [
1010
1029
  n("th", {
1011
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1030
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1012
1031
  }, null, 4),
1013
1032
  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),
1033
+ 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`)
1034
+ }, "∑ " + 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
1035
  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`)
1036
+ 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
1037
  }, "100%", 4),
1019
1038
  n("th", {
1020
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1039
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1021
1040
  }, null, 4),
1022
1041
  n("th", {
1023
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1042
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1024
1043
  }, null, 4),
1025
1044
  n("th", {
1026
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1045
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1027
1046
  }, null, 4),
1028
1047
  n("th", {
1029
- style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1048
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1030
1049
  }, null, 4)
1031
1050
  ])
1032
1051
  ]),
1033
1052
  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}`)
1053
+ (u(!0), v(ee, null, te(z.value.body, (a, o) => (u(), v("tr", {
1054
+ 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 }),
1055
+ style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1037
1056
  }, [
1038
1057
  n("td", {
1039
1058
  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] ?? ""
1059
+ style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1060
+ "data-cell": z.value.head[0] ?? ""
1042
1061
  }, [
1043
- n("div", Ea, [
1062
+ n("div", Wa, [
1044
1063
  a.color ? (u(), v("span", {
1045
1064
  key: 0,
1046
- style: h(`color:${a.color};margin-right:3px`)
1047
- }, "⬤", 4)) : y("", !0),
1048
- n("span", null, p(a.parentName), 1)
1065
+ style: c(`color:${a.color};margin-right:3px`)
1066
+ }, "⬤", 4)) : f("", !0),
1067
+ n("span", null, h(a.parentName), 1)
1049
1068
  ])
1050
- ], 12, Ra),
1069
+ ], 12, Xa),
1051
1070
  n("td", {
1052
1071
  class: "vue-ui-data-table__tbody__td",
1053
- style: h(`outline:${e.value.table.td.outline}`),
1054
- "data-cell": A.value.head[1] ?? ""
1072
+ style: c(`outline:${e.value.table.td.outline}`),
1073
+ "data-cell": z.value.head[1] ?? ""
1055
1074
  }, [
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),
1075
+ 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)
1076
+ ], 12, Ga),
1058
1077
  n("td", {
1059
1078
  class: "vue-ui-data-table__tbody__td",
1060
- style: h(`outline:${e.value.table.td.outline}`),
1061
- "data-cell": A.value.head[2] ?? ""
1079
+ style: c(`outline:${e.value.table.td.outline}`),
1080
+ "data-cell": z.value.head[2] ?? ""
1062
1081
  }, [
1063
- n("div", Ga, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1064
- ], 12, Ua),
1082
+ n("div", qa, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1083
+ ], 12, ja),
1065
1084
  n("td", {
1066
1085
  class: "vue-ui-data-table__tbody__td",
1067
- style: h(`outline:${e.value.table.td.outline}`),
1068
- "data-cell": A.value.head[3] ?? ""
1086
+ style: c(`outline:${e.value.table.td.outline}`),
1087
+ "data-cell": z.value.head[3] ?? ""
1069
1088
  }, [
1070
- n("div", Ha, p(a.childName), 1)
1071
- ], 12, Wa),
1089
+ n("div", Ka, h(a.childName), 1)
1090
+ ], 12, Ya),
1072
1091
  n("td", {
1073
1092
  class: "vue-ui-data-table__tbody__td",
1074
- style: h(`outline:${e.value.table.td.outline}`),
1075
- "data-cell": A.value.head[4] ?? ""
1093
+ style: c(`outline:${e.value.table.td.outline}`),
1094
+ "data-cell": z.value.head[4] ?? ""
1076
1095
  }, [
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),
1096
+ 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)
1097
+ ], 12, Ja),
1079
1098
  n("td", {
1080
1099
  class: "vue-ui-data-table__tbody__td",
1081
- style: h(`outline:${e.value.table.td.outline}`),
1082
- "data-cell": A.value.head[5] ?? ""
1100
+ style: c(`outline:${e.value.table.td.outline}`),
1101
+ "data-cell": z.value.head[5] ?? ""
1083
1102
  }, [
1084
- n("div", Ka, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1085
- ], 12, Ya),
1103
+ n("div", el, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1104
+ ], 12, Za),
1086
1105
  n("td", {
1087
1106
  class: "vue-ui-data-table__tbody__td",
1088
- style: h(`outline:${e.value.table.td.outline}`),
1089
- "data-cell": A.value.head[6] ?? ""
1107
+ style: c(`outline:${e.value.table.td.outline}`),
1108
+ "data-cell": z.value.head[6] ?? ""
1090
1109
  }, [
1091
- n("div", Qa, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1092
- ], 12, Ja)
1110
+ n("div", al, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1111
+ ], 12, tl)
1093
1112
  ], 6))), 256))
1094
1113
  ])
1095
1114
  ])
1096
1115
  ], 2)
1097
1116
  ])
1098
- ], 512)
1117
+ ], 4)
1099
1118
  ]),
1100
- _: 1
1101
- }, 8, ["config"])) : y("", !0),
1102
- s(ge) ? (u(), X(da, { key: 9 })) : y("", !0)
1103
- ], 46, ha));
1119
+ _: 2
1120
+ }, [
1121
+ e.value.table.useDialog ? {
1122
+ name: "title",
1123
+ fn: m(() => [
1124
+ vt(h(de.value.title), 1)
1125
+ ]),
1126
+ key: "0"
1127
+ } : void 0,
1128
+ e.value.table.useDialog ? {
1129
+ name: "actions",
1130
+ fn: m(() => [
1131
+ n("button", {
1132
+ tabindex: "0",
1133
+ class: "vue-ui-user-options-button",
1134
+ onClick: l[2] || (l[2] = (a) => Se(e.value.userOptions.callbacks.csv))
1135
+ }, [
1136
+ J(s(Oe), {
1137
+ name: "excel",
1138
+ stroke: de.value.props.color
1139
+ }, null, 8, ["stroke"])
1140
+ ])
1141
+ ]),
1142
+ key: "1"
1143
+ } : void 0
1144
+ ]), 1040)) : f("", !0),
1145
+ s(Ee) ? (u(), X(ra, { key: 9 })) : f("", !0)
1146
+ ], 46, ya));
1104
1147
  }
1105
- }, pl = /* @__PURE__ */ ca(Za, [["__scopeId", "data-v-fa1761f3"]]);
1148
+ }, ml = /* @__PURE__ */ ga(ll, [["__scopeId", "data-v-36772bc6"]]);
1106
1149
  export {
1107
- pl as default
1150
+ ml as default
1108
1151
  };