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,20 +1,20 @@
1
- import { defineAsyncComponent as R, computed as d, ref as r, toRefs as dt, watch as X, shallowRef as ze, onMounted as ht, onBeforeUnmount as pt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as S, normalizeClass as G, createBlock as A, createCommentVNode as f, createElementVNode as P, createVNode as Ne, createSlots as ft, withCtx as g, renderSlot as h, normalizeProps as z, guardReactiveProps as N, Fragment as B, renderList as V, toDisplayString as D, Teleport as gt, createTextVNode as mt, nextTick as De } from "vue";
2
- import { u as yt, c as bt, t as kt, a as wt, p as Le, b as $t, d as Ct, o as Be, f as ne, e as xt, X as Tt, i as Y, k as se, y as Ve, v as Ot, w as _t, z as At } from "./index-BEuUtONc.js";
3
- import { t as It, u as St } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ye } from "./useNestedProp-DhLFhguL.js";
5
- import { u as Pt } from "./usePrinter-DiB0_UNt.js";
6
- import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Rt from "./Title-D_e0SFWS.js";
9
- import zt from "./Legend-CyYXMSsW.js";
10
- import Nt from "./img-z5p1gGfY.js";
11
- import { u as Dt, B as Lt } from "./useLoading-D7YHNtLX.js";
12
- import { u as Bt } from "./useAutoSizeLabelsInsideViewbox-CchB8S-o.js";
13
- import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Gt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ht = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Wt = ["id"], jt = ["stdDeviation"], qt = ["filter"], Jt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Kt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], Qt = { key: 2 }, Zt = ["onMouseenter", "onMouseleave", "onClick"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = {
1
+ import { defineAsyncComponent as A, computed as v, ref as r, toRefs as yt, watch as U, shallowRef as Be, onMounted as bt, onBeforeUnmount as kt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as W, createBlock as I, createCommentVNode as g, createElementVNode as S, createVNode as re, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as z, guardReactiveProps as N, Fragment as Y, renderList as E, toDisplayString as M, Teleport as wt, resolveDynamicComponent as Ct, mergeProps as $t, createTextVNode as Ve, nextTick as Ue } from "vue";
2
+ import { u as xt, c as Tt, t as Ot, a as _t, p as Ye, b as At, d as It, o as Ee, f as ie, e as St, X as Pt, i as X, k as ce, y as Xe, v as Ft, w as Dt, z as Mt } from "./index-BKQqb9lF.js";
3
+ import { t as Rt, u as zt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Nt, B as Bt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Lt } from "./usePrinter-BzuXiubT.js";
6
+ import { u as Ge } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Yt } from "./useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js";
10
+ import Et from "./img-gBDz7xQQ.js";
11
+ import Xt from "./Title-Dz-j6ERs.js";
12
+ import Gt from "./Legend-8_V5egWW.js";
13
+ import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Qt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Zt = ["id"], ea = ["stdDeviation"], ta = ["filter"], aa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], la = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], oa = { key: 2 }, na = ["onMouseenter", "onMouseleave", "onClick"], sa = ["x", "y", "font-size", "fill", "font-weight"], ua = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, aa = ["id"], la = ["onClick"], oa = ["innerHTML"], na = {
17
+ }, ra = ["id"], ia = ["onClick"], ca = ["innerHTML"], va = {
18
18
  __name: "vue-ui-onion",
19
19
  props: {
20
20
  config: {
@@ -31,14 +31,14 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Ee, { expose: Ue, emit: Xe }) {
35
- const Ge = R(() => import("./vue-ui-accordion-B4YfUjZ5.js")), He = R(() => import("./DataTable-nO6ydJO2.js")), We = R(() => import("./PackageVersion-B6M-3jRt.js")), je = R(() => import("./PenAndPaper-zym5uEeN.js")), qe = R(() => import("./Tooltip-DjVoFYj1.js")), Je = R(() => import("./UserOptions-z0NWZ7aQ.js")), { vue_ui_onion: Ke } = yt(), $ = Ee, ue = d(() => !!$.dataset && $.dataset.length), y = r(bt()), Qe = r(null), re = r(0), H = r(!1), W = r(""), b = r([]), T = r(null), ie = r(null), ce = r(null), ve = r(null), de = r(null), he = r(0), pe = r(0), fe = r(0), C = r(!1), ge = r(!1), e = r(K()), { loading: k, FINAL_DATASET: me, manualLoading: j } = Dt({
36
- ...dt($),
34
+ setup(He, { expose: We, emit: je }) {
35
+ const qe = A(() => import("./Tooltip-BTGOEC7w.js")), Je = A(() => import("./BaseIcon-DLesaZpW.js")), Ke = A(() => import("./vue-ui-accordion-B5QeV3BK.js")), Qe = A(() => import("./DataTable-BAf4Obr9.js")), Ze = A(() => import("./UserOptions-CsDlFB0L.js")), et = A(() => import("./PenAndPaper-B6OvfyHH.js")), tt = A(() => import("./PackageVersion-Cv_ypT0N.js")), at = A(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_onion: lt } = xt(), C = He, ve = v(() => !!C.dataset && C.dataset.length), y = r(Tt()), ot = r(null), de = r(0), j = r(!1), q = r(""), b = r([]), $ = r(null), he = r(null), pe = r(null), fe = r(null), ge = r(null), me = r(0), ye = r(0), be = r(0), x = r(!1), ke = r(!1), B = r(null), e = r(Z()), { loading: k, FINAL_DATASET: we, manualLoading: J } = Nt({
36
+ ...yt(C),
37
37
  FINAL_CONFIG: e,
38
- prepareConfig: K,
38
+ prepareConfig: Z,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- await De(), Oe();
41
+ await Ue(), Se();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -47,7 +47,7 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
47
47
  { name: "_", percentage: 50, value: 1, color: "#ADADAD" },
48
48
  { name: "_", percentage: 50, value: 1, color: "#969696" }
49
49
  ],
50
- skeletonConfig: kt({
50
+ skeletonConfig: Ot({
51
51
  defaultConfig: e.value,
52
52
  userConfig: {
53
53
  userOptions: { show: !1 },
@@ -68,32 +68,32 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
68
68
  }
69
69
  }
70
70
  })
71
- }), { userOptionsVisible: q, setUserOptionsVisibility: ye, keepUserOptionState: be } = Ft({ config: e.value }), { svgRef: J } = Mt({ config: e.value.style.chart.title });
72
- function K() {
73
- const t = Ye({
74
- userConfig: $.config,
75
- defaultConfig: Ke
71
+ }), { userOptionsVisible: K, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Vt({ config: e.value }), { svgRef: Q } = Ut({ config: e.value.style.chart.title });
72
+ function Z() {
73
+ const t = Ge({
74
+ userConfig: C.config,
75
+ defaultConfig: lt
76
76
  });
77
77
  return t.theme ? {
78
- ...Ye({
79
- userConfig: $t.vue_ui_onion[t.theme] || $.config,
78
+ ...Ge({
79
+ userConfig: At.vue_ui_onion[t.theme] || C.config,
80
80
  defaultConfig: t
81
81
  }),
82
- customPalette: wt[t.theme] || Le
82
+ customPalette: _t[t.theme] || Ye
83
83
  } : t;
84
84
  }
85
- X(() => $.config, (t) => {
86
- k.value || (e.value = K()), q.value = !e.value.userOptions.showOnChartHover, Te(), he.value += 1, pe.value += 1, fe.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ U(() => C.config, (t) => {
86
+ k.value || (e.value = Z()), K.value = !e.value.userOptions.showOnChartHover, Ie(), me.value += 1, ye.value += 1, be.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
87
87
  }, { deep: !0 });
88
- const { isPrinting: ke, isImaging: we, generatePdf: $e, generateImage: Ce } = Pt({
88
+ const { isPrinting: xe, isImaging: Te, generatePdf: Oe, generateImage: _e } = Lt({
89
89
  elementId: `vue-ui-onion_${y.value}`,
90
90
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
91
91
  options: e.value.userOptions.print
92
- }), Ze = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = d(() => Ct(e.value.customPalette)), m = r({
92
+ }), nt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), st = v(() => It(e.value.customPalette)), m = r({
93
93
  showTable: e.value.table.show,
94
94
  showTooltip: e.value.style.chart.tooltip.show
95
95
  });
96
- X(e, () => {
96
+ U(e, () => {
97
97
  m.value = {
98
98
  showTable: e.value.table.show,
99
99
  showTooltip: e.value.style.chart.tooltip.show
@@ -109,50 +109,50 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
109
109
  bottom: 64
110
110
  },
111
111
  minRadius: 64
112
- }), O = ze(null), F = ze(null);
113
- ht(() => {
114
- ge.value = !0, Te();
112
+ }), O = Be(null), R = Be(null);
113
+ bt(() => {
114
+ ke.value = !0, Ie();
115
115
  });
116
- const tt = d({
116
+ const ut = v({
117
117
  get: () => e.value.style.chart.layout.labels.fontSize,
118
118
  set: (t) => t
119
- }), { autoSizeLabels: xe } = Bt({
120
- svgRef: J,
119
+ }), { autoSizeLabels: Ae } = Yt({
120
+ svgRef: Q,
121
121
  fontSize: e.value.style.chart.layout.labels.fontSize,
122
122
  minFontSize: e.value.style.chart.layout.labels.minFontSize,
123
- sizeRef: tt,
123
+ sizeRef: ut,
124
124
  labelClass: ".vue-ui-onion-label"
125
- }), at = d(() => e.value.debug);
126
- let Q = null;
127
- function Te() {
128
- if (Be($.dataset) && (ne({
125
+ }), rt = v(() => e.value.debug);
126
+ let ee = null;
127
+ function Ie() {
128
+ if (Ee(C.dataset) && (ie({
129
129
  componentName: "VueUiOnion",
130
130
  type: "dataset",
131
- debug: at.value
132
- }), j.value = !0), Be($.dataset) || (j.value = e.value.loading), e.value.responsive) {
133
- const o = It(() => {
134
- Q && clearTimeout(Q), C.value = !0;
135
- let { width: a, height: l } = St({
136
- chart: T.value,
137
- title: e.value.style.chart.title.text ? ie.value : null,
138
- legend: e.value.style.chart.legend.show ? ce.value : null,
139
- source: ve.value,
140
- noTitle: de.value
131
+ debug: rt.value
132
+ }), J.value = !0), Ee(C.dataset) || (J.value = e.value.loading), e.value.responsive) {
133
+ const o = Rt(() => {
134
+ ee && clearTimeout(ee), x.value = !0;
135
+ let { width: a, height: l } = zt({
136
+ chart: $.value,
137
+ title: e.value.style.chart.title.text ? he.value : null,
138
+ legend: e.value.style.chart.legend.show ? pe.value : null,
139
+ source: fe.value,
140
+ noTitle: ge.value
141
141
  });
142
142
  l -= 12, requestAnimationFrame(async () => {
143
- n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, Q = setTimeout(() => {
144
- C.value = !1, xe();
143
+ n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, ee = setTimeout(() => {
144
+ x.value = !1, Ae();
145
145
  }, 0);
146
146
  });
147
147
  });
148
- O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect()), O.value = new ResizeObserver(o), F.value = T.value.parentNode, O.value.observe(F.value);
148
+ O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect()), O.value = new ResizeObserver(o), R.value = $.value.parentNode, O.value.observe(R.value);
149
149
  }
150
- requestAnimationFrame(xe);
150
+ requestAnimationFrame(Ae);
151
151
  }
152
- pt(() => {
153
- O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect());
152
+ kt(() => {
153
+ O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect());
154
154
  });
155
- const c = d(() => ({
155
+ const c = v(() => ({
156
156
  top: n.value.padding.top,
157
157
  left: n.value.padding.left,
158
158
  right: n.value.width - n.value.padding.right,
@@ -163,82 +163,82 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
163
163
  height: n.value.height - n.value.padding.bottom - n.value.padding.top,
164
164
  minRadius: n.value.minRadius,
165
165
  maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
166
- })), p = d(() => (me.value.forEach((t, o) => {
167
- [null, void 0].includes(t.name) && ne({
166
+ })), f = v(() => (we.value.forEach((t, o) => {
167
+ [null, void 0].includes(t.name) && ie({
168
168
  componentName: "VueUiOnion",
169
169
  type: "datasetSerieAttribute",
170
170
  property: "name",
171
171
  index: o
172
- }), [void 0].includes(t.percentage) && ne({
172
+ }), [void 0].includes(t.percentage) && ie({
173
173
  componentName: "VueUiOnion",
174
174
  type: "datasetSerieAttribute",
175
175
  property: "percentage",
176
176
  index: o
177
177
  });
178
- }), me.value.map((t, o) => {
178
+ }), we.value.map((t, o) => {
179
179
  const a = `onion_serie_${o}_${y.value}`;
180
180
  return {
181
181
  ...t,
182
182
  percentage: t.percentage || 0,
183
183
  targetPercentage: t.percentage || 0,
184
- color: xt(t.color) || et.value[o] || Le[o],
184
+ color: St(t.color) || st.value[o] || Ye[o],
185
185
  id: a,
186
186
  shape: "circle",
187
187
  opacity: b.value.includes(a) ? 0.5 : 1,
188
188
  absoluteIndex: o,
189
- segregate: () => _e(a),
189
+ segregate: () => Pe(a),
190
190
  isSegregated: b.value.includes(a)
191
191
  };
192
- }))), L = r(p.value), lt = d(() => e.value.useStartAnimation), ot = r(null), nt = d(() => Math.max(...p.value.map((t) => t.percentage))), Z = r(!1);
193
- X(() => p.value, Oe, { immediate: !0, deep: !0 }), X(() => $.dataset, (t) => {
194
- Array.isArray(t) && t.length > 0 && (j.value = !1);
192
+ }))), L = r(f.value), it = v(() => e.value.useStartAnimation), ct = r(null), vt = v(() => Math.max(...f.value.map((t) => t.percentage))), te = r(!1);
193
+ U(() => f.value, Se, { immediate: !0, deep: !0 }), U(() => C.dataset, (t) => {
194
+ Array.isArray(t) && t.length > 0 && (J.value = !1);
195
195
  }, { deep: !0 });
196
- function Oe() {
197
- if (lt.value && !Z.value && !k.value) {
196
+ function Se() {
197
+ if (it.value && !te.value && !k.value) {
198
198
  let o = function() {
199
- t >= nt.value ? (cancelAnimationFrame(ot.value), L.value = p.value, Z.value = !0) : (L.value = p.value.map((a) => ({
199
+ t >= vt.value ? (cancelAnimationFrame(ct.value), L.value = f.value, te.value = !0) : (L.value = f.value.map((a) => ({
200
200
  ...a,
201
201
  percentage: t < a.targetPercentage ? t : a.targetPercentage
202
- })), t += 1, requestAnimationFrame(o), Z.value = !0);
202
+ })), t += 1, requestAnimationFrame(o), te.value = !0);
203
203
  };
204
- L.value = p.value.map((a) => ({
204
+ L.value = f.value.map((a) => ({
205
205
  ...a,
206
206
  percentage: 0
207
207
  }));
208
208
  let t = 0;
209
209
  o();
210
210
  } else
211
- L.value = p.value;
211
+ L.value = f.value;
212
212
  }
213
- const st = d(() => ({
213
+ const dt = v(() => ({
214
214
  cy: "onion-div-legend",
215
215
  backgroundColor: e.value.style.chart.legend.backgroundColor,
216
216
  color: e.value.style.chart.legend.color,
217
217
  fontSize: e.value.style.chart.legend.fontSize,
218
218
  paddingBottom: 12,
219
219
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
220
- })), ut = d(() => p.value.filter((t) => !b.value.includes(t.id)).length), I = d(() => {
221
- const t = Math.min(c.value.width, c.value.height) / 2 / p.value.length;
220
+ })), ht = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), P = v(() => {
221
+ const t = Math.min(c.value.width, c.value.height) / 2 / f.value.length;
222
222
  return {
223
223
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
224
224
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
225
225
  };
226
- }), x = d(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
227
- const a = (c.value.maxRadius - I.value.track) / ut.value / 2 * (1 + o), l = c.value.centerY - a;
226
+ }), T = v(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
227
+ const a = (c.value.maxRadius - P.value.track) / ht.value / 2 * (1 + o), l = c.value.centerY - a;
228
228
  return {
229
229
  percentage: t.percentage || 0,
230
230
  ...t,
231
231
  labelY: l,
232
232
  radius: a,
233
- path: rt(a, t.percentage || 0)
233
+ path: pt(a, t.percentage || 0)
234
234
  };
235
235
  }));
236
- function rt(t, o) {
237
- const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, w = l * (1 - o / 100);
236
+ function pt(t, o) {
237
+ const a = 2 * Math.PI * t, l = a * 0.75, h = `${l} ${a}`, w = l * (1 - o / 100);
238
238
  return {
239
239
  bgDashArray: `${l} ${a}`,
240
240
  bgDashOffset: 0,
241
- dashArray: v,
241
+ dashArray: h,
242
242
  dashOffset: w,
243
243
  fullOffset: 0,
244
244
  active: `
@@ -248,22 +248,22 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
248
248
  `.trim()
249
249
  };
250
250
  }
251
- const it = Xe;
252
- function _e(t) {
253
- b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), it("selectLegend", x.value);
251
+ const ft = je;
252
+ function Pe(t) {
253
+ b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), ft("selectLegend", T.value);
254
254
  }
255
- function ct() {
256
- return x.value;
255
+ function gt() {
256
+ return T.value;
257
257
  }
258
- const ee = d(() => {
259
- const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = x.value.map((a) => [
258
+ const ae = v(() => {
259
+ const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = T.value.map((a) => [
260
260
  a.name,
261
261
  a.percentage,
262
262
  a.value
263
263
  ]);
264
264
  return { head: t, body: o };
265
- }), E = d(() => {
266
- const t = ee.value.head, o = x.value.map((l) => [
265
+ }), G = v(() => {
266
+ const t = ae.value.head, o = T.value.map((l) => [
267
267
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
268
268
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
269
269
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -282,76 +282,76 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
282
282
  };
283
283
  return { head: t, body: o, config: a, colNames: t };
284
284
  });
285
- function Ae(t = null) {
286
- De(() => {
287
- const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ee.value.head, l = ee.value.body, v = o.concat([a]).concat(l), w = Ot(v);
288
- t ? t(w) : _t({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
285
+ function le(t = null) {
286
+ Ue(() => {
287
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ae.value.head, l = ae.value.body, h = o.concat([a]).concat(l), w = Ft(h);
288
+ t ? t(w) : Dt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
289
289
  });
290
290
  }
291
- const _ = r(void 0), M = r(!1);
292
- function Ie(t) {
293
- M.value = t, re.value += 1;
291
+ const _ = r(void 0), F = r(!1);
292
+ function Fe(t) {
293
+ F.value = t, de.value += 1;
294
294
  }
295
- function Se({ datapoint: t }) {
295
+ function De({ datapoint: t }) {
296
296
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
297
297
  }
298
- function Pe({ datapoint: t }) {
299
- _.value = void 0, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
298
+ function Me({ datapoint: t }) {
299
+ _.value = void 0, j.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
300
300
  }
301
- const te = r(null);
302
- function Fe({ datapoint: t, seriesIndex: o, show: a = !0 }) {
301
+ const oe = r(null);
302
+ function Re({ datapoint: t, seriesIndex: o, show: a = !0 }) {
303
303
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
304
304
  const l = t.absoluteIndex;
305
- _.value = o, te.value = {
305
+ _.value = o, oe.value = {
306
306
  datapoint: t,
307
307
  seriesIndex: l,
308
- series: p.value,
308
+ series: f.value,
309
309
  config: e.value
310
- }, H.value = a;
311
- let v = "";
310
+ }, j.value = a;
311
+ let h = "";
312
312
  const w = e.value.style.chart.tooltip.customFormat;
313
- if (Ve(w) && At(() => w({
313
+ if (Xe(w) && Mt(() => w({
314
314
  seriesIndex: l,
315
315
  datapoint: t,
316
- series: p.value,
316
+ series: f.value,
317
317
  config: e.value
318
318
  })))
319
- W.value = w({
319
+ q.value = w({
320
320
  seriesIndex: l,
321
321
  datapoint: t,
322
- series: p.value,
322
+ series: f.value,
323
323
  config: e.value
324
324
  });
325
325
  else {
326
- const le = e.value.style.chart.tooltip.showPercentage, oe = e.value.style.chart.tooltip.showValue;
327
- v += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, v += `<div style="width:100%;text-align:left;"><b>${le ? Y({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${le && oe ? "(" : ""}${oe ? se(
326
+ const se = e.value.style.chart.tooltip.showPercentage, ue = e.value.style.chart.tooltip.showValue;
327
+ h += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, h += `<div style="width:100%;text-align:left;"><b>${se ? X({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${se && ue ? "(" : ""}${ue ? ce(
328
328
  e.value.style.chart.layout.labels.value.formatter,
329
329
  t.value,
330
- Y({
330
+ X({
331
331
  p: t.prefix || "",
332
332
  v: t.value,
333
333
  s: t.suffix || "",
334
334
  r: e.value.style.chart.tooltip.roundingValue
335
335
  }),
336
336
  { datapoint: t, seriesIndex: o }
337
- ) : ""}${le && oe ? ")" : ""}</div>`, W.value = `<div>${v}</div>`;
337
+ ) : ""}${se && ue ? ")" : ""}</div>`, q.value = `<div>${h}</div>`;
338
338
  }
339
339
  }
340
- function Me() {
340
+ function ze() {
341
341
  m.value.showTable = !m.value.showTable;
342
342
  }
343
- function Re() {
343
+ function Ne() {
344
344
  m.value.showTooltip = !m.value.showTooltip;
345
345
  }
346
- const U = r(!1);
347
- function ae() {
348
- U.value = !U.value;
346
+ const H = r(!1);
347
+ function ne() {
348
+ H.value = !H.value;
349
349
  }
350
- async function vt({ scale: t = 2 } = {}) {
351
- if (!T.value) return;
352
- const { width: o, height: a } = T.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: w } = await Nt({ domElement: T.value, base64: !0, img: !0, scale: t });
350
+ async function mt({ scale: t = 2 } = {}) {
351
+ if (!$.value) return;
352
+ const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri: h, base64: w } = await Et({ domElement: $.value, base64: !0, img: !0, scale: t });
353
353
  return {
354
- imageUri: v,
354
+ imageUri: h,
355
355
  base64: w,
356
356
  title: e.value.style.chart.title.text,
357
357
  width: o,
@@ -359,48 +359,80 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
359
359
  aspectRatio: l
360
360
  };
361
361
  }
362
- return Ue({
363
- getData: ct,
364
- getImage: vt,
365
- generatePdf: $e,
366
- generateCsv: Ae,
367
- generateImage: Ce,
368
- toggleTable: Me,
369
- toggleTooltip: Re,
370
- toggleAnnotator: ae,
371
- toggleFullscreen: Ie
362
+ const V = v(() => {
363
+ const t = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
364
+ return {
365
+ component: t ? at : Ke,
366
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
367
+ props: t ? {
368
+ backgroundColor: e.value.table.th.backgroundColor,
369
+ color: e.value.table.th.color,
370
+ headerColor: e.value.table.th.color,
371
+ headerBg: e.value.table.th.backgroundColor,
372
+ isFullscreen: F.value,
373
+ fullscreenParent: $.value,
374
+ forcedWidth: Math.min(600, window.innerWidth * 0.8)
375
+ } : {
376
+ hideDetails: !0,
377
+ config: {
378
+ open: o,
379
+ maxHeight: 1e4,
380
+ body: {
381
+ backgroundColor: e.value.style.chart.backgroundColor,
382
+ color: e.value.style.chart.color
383
+ },
384
+ head: {
385
+ backgroundColor: e.value.style.chart.backgroundColor,
386
+ color: e.value.style.chart.color
387
+ }
388
+ }
389
+ }
390
+ };
391
+ });
392
+ return U(() => m.value.showTable, (t) => {
393
+ e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : "close" in B.value && B.value.close());
394
+ }), We({
395
+ getData: gt,
396
+ getImage: mt,
397
+ generatePdf: Oe,
398
+ generateCsv: le,
399
+ generateImage: _e,
400
+ toggleTable: ze,
401
+ toggleTooltip: Ne,
402
+ toggleAnnotator: ne,
403
+ toggleFullscreen: Fe
372
404
  }), (t, o) => (u(), i("div", {
373
- class: G(`vue-ui-onion ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
405
+ class: W(`vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
374
406
  ref_key: "onionChart",
375
- ref: T,
407
+ ref: $,
376
408
  id: `vue-ui-onion_${y.value}`,
377
- style: S(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
378
- onMouseenter: o[2] || (o[2] = () => s(ye)(!0)),
379
- onMouseleave: o[3] || (o[3] = () => s(ye)(!1))
409
+ style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
410
+ onMouseenter: o[4] || (o[4] = () => s(Ce)(!0)),
411
+ onMouseleave: o[5] || (o[5] = () => s(Ce)(!1))
380
412
  }, [
381
- e.value.userOptions.buttons.annotator ? (u(), A(s(je), {
413
+ e.value.userOptions.buttons.annotator ? (u(), I(s(et), {
382
414
  key: 0,
383
- svgRef: s(J),
415
+ svgRef: s(Q),
384
416
  backgroundColor: e.value.style.chart.backgroundColor,
385
417
  color: e.value.style.chart.color,
386
- active: U.value,
387
- onClose: ae
388
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
389
- Ze.value ? (u(), i("div", {
418
+ active: H.value,
419
+ onClose: ne
420
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
421
+ nt.value ? (u(), i("div", {
390
422
  key: 1,
391
423
  ref_key: "noTitle",
392
- ref: de,
424
+ ref: ge,
393
425
  class: "vue-data-ui-no-title-space",
394
426
  style: "height:36px; width: 100%;background:transparent"
395
- }, null, 512)) : f("", !0),
427
+ }, null, 512)) : g("", !0),
396
428
  e.value.style.chart.title.text ? (u(), i("div", {
397
429
  key: 2,
398
430
  ref_key: "chartTitle",
399
- ref: ie,
431
+ ref: he,
400
432
  style: "width:100%;background:transparent"
401
433
  }, [
402
- (u(), A(Rt, {
403
- key: `title_${he.value}`,
434
+ (u(), I(Xt, {
435
+ key: `title_${me.value}`,
404
436
  config: {
405
437
  title: {
406
438
  cy: "onion-div-title",
@@ -412,18 +444,18 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
412
444
  }
413
445
  }
414
446
  }, null, 8, ["config"]))
415
- ], 512)) : f("", !0),
416
- P("div", {
447
+ ], 512)) : g("", !0),
448
+ S("div", {
417
449
  id: `legend-top-${y.value}`
418
- }, null, 8, Et),
419
- e.value.userOptions.show && ue.value && (s(be) || s(q)) ? (u(), A(s(Je), {
450
+ }, null, 8, jt),
451
+ e.value.userOptions.show && ve.value && (s($e) || s(K)) ? (u(), I(s(Ze), {
420
452
  ref_key: "details",
421
- ref: Qe,
422
- key: `user_options${re.value}`,
453
+ ref: ot,
454
+ key: `user_options${de.value}`,
423
455
  backgroundColor: e.value.style.chart.backgroundColor,
424
456
  color: e.value.style.chart.color,
425
- isImaging: s(we),
426
- isPrinting: s(ke),
457
+ isImaging: s(Te),
458
+ isPrinting: s(xe),
427
459
  uid: y.value,
428
460
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
429
461
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -431,92 +463,92 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
431
463
  hasXls: e.value.userOptions.buttons.csv,
432
464
  hasTable: e.value.userOptions.buttons.table,
433
465
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
434
- isFullscreen: M.value,
466
+ isFullscreen: F.value,
435
467
  isTooltip: m.value.showTooltip,
436
468
  titles: { ...e.value.userOptions.buttonTitles },
437
- chartElement: T.value,
469
+ chartElement: $.value,
438
470
  position: e.value.userOptions.position,
439
471
  hasAnnotator: e.value.userOptions.buttons.annotator,
440
- isAnnotation: U.value,
472
+ isAnnotation: H.value,
441
473
  callbacks: e.value.userOptions.callbacks,
442
474
  printScale: e.value.userOptions.print.scale,
443
- onToggleFullscreen: Ie,
444
- onGeneratePdf: s($e),
445
- onGenerateCsv: Ae,
446
- onGenerateImage: s(Ce),
447
- onToggleTable: Me,
448
- onToggleTooltip: Re,
449
- onToggleAnnotator: ae,
450
- style: S({
451
- visibility: s(be) ? s(q) ? "visible" : "hidden" : "visible"
475
+ onToggleFullscreen: Fe,
476
+ onGeneratePdf: s(Oe),
477
+ onGenerateCsv: le,
478
+ onGenerateImage: s(_e),
479
+ onToggleTable: ze,
480
+ onToggleTooltip: Ne,
481
+ onToggleAnnotator: ne,
482
+ style: D({
483
+ visibility: s($e) ? s(K) ? "visible" : "hidden" : "visible"
452
484
  })
453
- }, ft({ _: 2 }, [
485
+ }, Le({ _: 2 }, [
454
486
  t.$slots.menuIcon ? {
455
487
  name: "menuIcon",
456
- fn: g(({ isOpen: a, color: l }) => [
457
- h(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
488
+ fn: d(({ isOpen: a, color: l }) => [
489
+ p(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
458
490
  ]),
459
491
  key: "0"
460
492
  } : void 0,
461
493
  t.$slots.optionTooltip ? {
462
494
  name: "optionTooltip",
463
- fn: g(() => [
464
- h(t.$slots, "optionTooltip", {}, void 0, !0)
495
+ fn: d(() => [
496
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
465
497
  ]),
466
498
  key: "1"
467
499
  } : void 0,
468
500
  t.$slots.optionPdf ? {
469
501
  name: "optionPdf",
470
- fn: g(() => [
471
- h(t.$slots, "optionPdf", {}, void 0, !0)
502
+ fn: d(() => [
503
+ p(t.$slots, "optionPdf", {}, void 0, !0)
472
504
  ]),
473
505
  key: "2"
474
506
  } : void 0,
475
507
  t.$slots.optionCsv ? {
476
508
  name: "optionCsv",
477
- fn: g(() => [
478
- h(t.$slots, "optionCsv", {}, void 0, !0)
509
+ fn: d(() => [
510
+ p(t.$slots, "optionCsv", {}, void 0, !0)
479
511
  ]),
480
512
  key: "3"
481
513
  } : void 0,
482
514
  t.$slots.optionImg ? {
483
515
  name: "optionImg",
484
- fn: g(() => [
485
- h(t.$slots, "optionImg", {}, void 0, !0)
516
+ fn: d(() => [
517
+ p(t.$slots, "optionImg", {}, void 0, !0)
486
518
  ]),
487
519
  key: "4"
488
520
  } : void 0,
489
521
  t.$slots.optionTable ? {
490
522
  name: "optionTable",
491
- fn: g(() => [
492
- h(t.$slots, "optionTable", {}, void 0, !0)
523
+ fn: d(() => [
524
+ p(t.$slots, "optionTable", {}, void 0, !0)
493
525
  ]),
494
526
  key: "5"
495
527
  } : void 0,
496
528
  t.$slots.optionFullscreen ? {
497
529
  name: "optionFullscreen",
498
- fn: g(({ toggleFullscreen: a, isFullscreen: l }) => [
499
- h(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
530
+ fn: d(({ toggleFullscreen: a, isFullscreen: l }) => [
531
+ p(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
500
532
  ]),
501
533
  key: "6"
502
534
  } : void 0,
503
535
  t.$slots.optionAnnotator ? {
504
536
  name: "optionAnnotator",
505
- fn: g(({ toggleAnnotator: a, isAnnotator: l }) => [
506
- h(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
537
+ fn: d(({ toggleAnnotator: a, isAnnotator: l }) => [
538
+ p(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
507
539
  ]),
508
540
  key: "7"
509
541
  } : void 0
510
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
542
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
511
543
  (u(), i("svg", {
512
544
  ref_key: "svgRef",
513
- ref: J,
514
- xmlns: s(Tt),
515
- class: G({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value, resizing: C.value }),
545
+ ref: Q,
546
+ xmlns: s(Pt),
547
+ class: W({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: x.value }),
516
548
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
517
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
549
+ style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
518
550
  }, [
519
- Ne(s(We)),
551
+ re(s(tt)),
520
552
  t.$slots["chart-background"] ? (u(), i("foreignObject", {
521
553
  key: 0,
522
554
  x: 0,
@@ -527,86 +559,86 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
527
559
  pointerEvents: "none"
528
560
  }
529
561
  }, [
530
- h(t.$slots, "chart-background", {}, void 0, !0)
531
- ], 8, Xt)) : f("", !0),
532
- (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
562
+ p(t.$slots, "chart-background", {}, void 0, !0)
563
+ ], 8, Jt)) : g("", !0),
564
+ (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
533
565
  cx: c.value.centerX,
534
566
  cy: c.value.centerY,
535
567
  r: a.radius <= 0 ? 1e-4 : a.radius,
536
568
  stroke: e.value.style.chart.layout.gutter.color,
537
- "stroke-width": I.value.gutter,
569
+ "stroke-width": P.value.gutter,
538
570
  fill: "none",
539
571
  "stroke-dasharray": a.path.bgDashArray,
540
572
  "stroke-dashoffset": a.path.fullOffset,
541
573
  "stroke-linecap": "round",
542
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
543
- style: S({
574
+ class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
575
+ style: D({
544
576
  transform: "rotate(-90deg)",
545
577
  transformOrigin: "50% 50%",
546
- transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
547
- animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
578
+ transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
579
+ animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
548
580
  })
549
- }, null, 14, Gt))), 256)),
550
- (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
581
+ }, null, 14, Kt))), 256)),
582
+ (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
551
583
  cx: c.value.centerX,
552
584
  cy: c.value.centerY,
553
585
  r: a.radius < 0 ? 1e-4 : a.radius,
554
586
  stroke: `${a.color}`,
555
- "stroke-width": I.value.track,
587
+ "stroke-width": P.value.track,
556
588
  fill: "none",
557
589
  "stroke-dasharray": a.path.dashArray,
558
590
  "stroke-dashoffset": a.path.dashOffset,
559
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
591
+ class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
560
592
  "stroke-linecap": "round",
561
- style: S({
593
+ style: D({
562
594
  transform: "rotate(-90deg)",
563
595
  transformOrigin: "50% 50%",
564
- transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
565
- animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
596
+ transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
597
+ animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
566
598
  })
567
- }, null, 14, Ht))), 256)),
568
- P("defs", null, [
569
- P("filter", {
599
+ }, null, 14, Qt))), 256)),
600
+ S("defs", null, [
601
+ S("filter", {
570
602
  id: `blur_${y.value}`,
571
603
  x: "-50%",
572
604
  y: "-50%",
573
605
  width: "200%",
574
606
  height: "200%"
575
607
  }, [
576
- P("feGaussianBlur", {
608
+ S("feGaussianBlur", {
577
609
  in: "SourceGraphic",
578
610
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
579
- }, null, 8, jt)
580
- ], 8, Wt)
611
+ }, null, 8, ea)
612
+ ], 8, Zt)
581
613
  ]),
582
614
  e.value.style.chart.useGradient ? (u(), i("g", {
583
615
  key: 1,
584
616
  filter: `url(#blur_${y.value})`
585
617
  }, [
586
- (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
618
+ (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
587
619
  cx: c.value.centerX,
588
620
  cy: c.value.centerY,
589
621
  r: a.radius <= 0 ? 1e-4 : a.radius,
590
622
  stroke: "white",
591
- "stroke-width": I.value.track / 3,
623
+ "stroke-width": P.value.track / 3,
592
624
  fill: "none",
593
625
  "stroke-linecap": "round",
594
626
  "stroke-dasharray": a.path.dashArray,
595
627
  "stroke-dashoffset": a.path.dashOffset,
596
- style: S({
628
+ style: D({
597
629
  transform: "rotate(-90deg)",
598
630
  transformOrigin: "50% 50%",
599
- transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
600
- animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
631
+ transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
632
+ animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
601
633
  })
602
- }, null, 12, Jt))), 256))
603
- ], 8, qt)) : f("", !0),
604
- (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
634
+ }, null, 12, aa))), 256))
635
+ ], 8, ta)) : g("", !0),
636
+ (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
605
637
  cx: c.value.centerX,
606
638
  cy: c.value.centerY,
607
639
  r: a.radius <= 0 ? 1e-4 : a.radius,
608
640
  stroke: "transparent",
609
- "stroke-width": Math.max(I.value.track, I.value.gutter),
641
+ "stroke-width": Math.max(P.value.track, P.value.gutter),
610
642
  fill: "none",
611
643
  "stroke-dasharray": a.path.bgDashArray,
612
644
  "stroke-dashoffset": a.path.fullOffset,
@@ -616,107 +648,107 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
616
648
  transform: "rotate(-90deg)",
617
649
  transformOrigin: "50% 50%"
618
650
  },
619
- onMouseenter: (v) => Fe({
651
+ onMouseenter: (h) => Re({
620
652
  datapoint: a,
621
653
  show: !0,
622
654
  seriesIndex: l
623
655
  }),
624
- onMouseleave: (v) => Pe({ datapoint: a }),
625
- onClick: (v) => Se({ datapoint: a })
626
- }, null, 40, Kt))), 256)),
627
- e.value.style.chart.layout.labels.show ? (u(), i("g", Qt, [
628
- (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("g", {
629
- onMouseenter: (v) => Fe({
656
+ onMouseleave: (h) => Me({ datapoint: a }),
657
+ onClick: (h) => De({ datapoint: a })
658
+ }, null, 40, la))), 256)),
659
+ e.value.style.chart.layout.labels.show ? (u(), i("g", oa, [
660
+ (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("g", {
661
+ onMouseenter: (h) => Re({
630
662
  datapoint: a,
631
663
  show: !0,
632
664
  seriesIndex: l
633
665
  }),
634
- onMouseleave: (v) => Pe({ datapoint: a }),
635
- onClick: (v) => Se({ datapoint: a })
666
+ onMouseleave: (h) => Me({ datapoint: a }),
667
+ onClick: (h) => De({ datapoint: a })
636
668
  }, [
637
- b.value.includes(a.id) ? f("", !0) : (u(), i("text", {
669
+ b.value.includes(a.id) ? g("", !0) : (u(), i("text", {
638
670
  key: 0,
639
671
  class: "vue-ui-onion-label",
640
- x: n.value.width / 2 - I.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
672
+ x: n.value.width / 2 - P.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
641
673
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
642
674
  "text-anchor": "end",
643
675
  "font-size": e.value.style.chart.layout.labels.fontSize,
644
676
  fill: e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value === l ? a.color : e.value.style.chart.layout.labels.color,
645
677
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
646
- }, D(a.name ? a.name + ": " : "") + " " + D(e.value.style.chart.layout.labels.percentage.show ? s(Y)({
678
+ }, M(a.name ? a.name + ": " : "") + " " + M(e.value.style.chart.layout.labels.percentage.show ? s(X)({
647
679
  v: a.percentage,
648
680
  s: "%",
649
681
  r: e.value.style.chart.layout.labels.roundingPercentage
650
- }) : "") + " " + D(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(se)(
682
+ }) : "") + " " + M(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(ce)(
651
683
  e.value.style.chart.layout.labels.value.formatter,
652
684
  a.value,
653
- s(Y)({
685
+ s(X)({
654
686
  p: a.prefix || "",
655
687
  v: a.value || 0,
656
688
  s: a.suffix || "",
657
689
  r: e.value.style.chart.layout.labels.roundingValue
658
690
  }),
659
691
  { datapoint: a, seriesIndex: l }
660
- )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(se)(
692
+ )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(ce)(
661
693
  e.value.style.chart.layout.labels.value.formatter,
662
694
  a.value,
663
- s(Y)({
695
+ s(X)({
664
696
  p: a.prefix || "",
665
697
  v: a.value || 0,
666
698
  s: a.suffix || "",
667
699
  r: e.value.style.chart.layout.labels.roundingValue
668
700
  }),
669
701
  { datapoint: a, seriesIndex: l }
670
- )})` : ""}`), 9, ea))
671
- ], 40, Zt))), 256))
672
- ])) : f("", !0),
673
- h(t.$slots, "svg", { svg: n.value }, void 0, !0)
674
- ], 14, Ut)),
675
- t.$slots.watermark ? (u(), i("div", ta, [
676
- h(t.$slots, "watermark", z(N({ isPrinting: s(ke) || s(we) })), void 0, !0)
677
- ])) : f("", !0),
678
- P("div", {
702
+ )})` : ""}`), 9, sa))
703
+ ], 40, na))), 256))
704
+ ])) : g("", !0),
705
+ p(t.$slots, "svg", { svg: n.value }, void 0, !0)
706
+ ], 14, qt)),
707
+ t.$slots.watermark ? (u(), i("div", ua, [
708
+ p(t.$slots, "watermark", z(N({ isPrinting: s(xe) || s(Te) })), void 0, !0)
709
+ ])) : g("", !0),
710
+ S("div", {
679
711
  id: `legend-bottom-${y.value}`
680
- }, null, 8, aa),
681
- ge.value ? (u(), A(gt, {
712
+ }, null, 8, ra),
713
+ ke.value ? (u(), I(wt, {
682
714
  key: 5,
683
715
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
684
716
  }, [
685
- P("div", {
717
+ S("div", {
686
718
  ref_key: "chartLegend",
687
- ref: ce
719
+ ref: pe
688
720
  }, [
689
- e.value.style.chart.legend.show ? (u(), A(zt, {
690
- key: `legend_${fe.value}`,
691
- legendSet: p.value,
692
- config: st.value,
693
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => _e(a.id))
721
+ e.value.style.chart.legend.show ? (u(), I(Gt, {
722
+ key: `legend_${be.value}`,
723
+ legendSet: f.value,
724
+ config: dt.value,
725
+ onClickMarker: o[0] || (o[0] = ({ legend: a }) => Pe(a.id))
694
726
  }, {
695
- item: g(({ legend: a }) => [
696
- s(k) ? f("", !0) : (u(), i("div", {
727
+ item: d(({ legend: a }) => [
728
+ s(k) ? g("", !0) : (u(), i("div", {
697
729
  key: 0,
698
730
  "data-cy-legend-item": "",
699
731
  onClick: (l) => a.segregate(),
700
- style: S(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
701
- }, D(a.name ? a.name + ": " : "") + " " + D((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, la))
732
+ style: D(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
733
+ }, M(a.name ? a.name + ": " : "") + " " + M((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, ia))
702
734
  ]),
703
735
  _: 1
704
- }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
736
+ }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
705
737
  key: 1,
706
- legend: p.value
738
+ legend: f.value
707
739
  }, void 0, !0)
708
740
  ], 512)
709
- ], 8, ["to"])) : f("", !0),
741
+ ], 8, ["to"])) : g("", !0),
710
742
  t.$slots.source ? (u(), i("div", {
711
743
  key: 6,
712
744
  ref_key: "source",
713
- ref: ve,
745
+ ref: fe,
714
746
  dir: "auto"
715
747
  }, [
716
- h(t.$slots, "source", {}, void 0, !0)
717
- ], 512)) : f("", !0),
718
- Ne(s(qe), {
719
- show: m.value.showTooltip && H.value,
748
+ p(t.$slots, "source", {}, void 0, !0)
749
+ ], 512)) : g("", !0),
750
+ re(s(qe), {
751
+ show: m.value.showTooltip && j.value,
720
752
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
721
753
  color: e.value.style.chart.tooltip.color,
722
754
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -726,62 +758,76 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
726
758
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
727
759
  position: e.value.style.chart.tooltip.position,
728
760
  offsetY: e.value.style.chart.tooltip.offsetY,
729
- parent: T.value,
730
- content: W.value,
731
- isFullscreen: M.value,
732
- isCustom: s(Ve)(e.value.style.chart.tooltip.customFormat),
761
+ parent: $.value,
762
+ content: q.value,
763
+ isFullscreen: F.value,
764
+ isCustom: s(Xe)(e.value.style.chart.tooltip.customFormat),
733
765
  smooth: e.value.style.chart.tooltip.smooth,
734
766
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
735
767
  }, {
736
- "tooltip-before": g(() => [
737
- h(t.$slots, "tooltip-before", z(N({ ...te.value })), void 0, !0)
768
+ "tooltip-before": d(() => [
769
+ p(t.$slots, "tooltip-before", z(N({ ...oe.value })), void 0, !0)
738
770
  ]),
739
- "tooltip-after": g(() => [
740
- h(t.$slots, "tooltip-after", z(N({ ...te.value })), void 0, !0)
771
+ "tooltip-after": d(() => [
772
+ p(t.$slots, "tooltip-after", z(N({ ...oe.value })), void 0, !0)
741
773
  ]),
742
774
  _: 3
743
775
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
744
- ue.value ? (u(), A(s(Ge), {
745
- key: 7,
746
- hideDetails: "",
747
- config: {
748
- open: m.value.showTable,
749
- maxHeight: 1e4,
750
- head: {
751
- backgroundColor: e.value.style.chart.backgroundColor,
752
- color: e.value.style.chart.color
753
- },
754
- body: {
755
- backgroundColor: e.value.style.chart.backgroundColor,
756
- color: e.value.style.chart.color
757
- }
758
- }
759
- }, {
760
- content: g(() => [
761
- (u(), A(s(He), {
762
- key: `table_${pe.value}`,
763
- colNames: E.value.colNames,
764
- head: E.value.head,
765
- body: E.value.body,
766
- config: E.value.config,
767
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
768
- onClose: o[1] || (o[1] = (a) => m.value.showTable = !1)
776
+ ve.value ? (u(), I(Ct(V.value.component), $t({ key: 7 }, V.value.props, {
777
+ ref_key: "tableUnit",
778
+ ref: B,
779
+ onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
780
+ }), Le({
781
+ content: d(() => [
782
+ (u(), I(s(Qe), {
783
+ key: `table_${ye.value}`,
784
+ colNames: G.value.colNames,
785
+ head: G.value.head,
786
+ body: G.value.body,
787
+ config: G.value.config,
788
+ title: e.value.table.useDialog ? "" : V.value.title,
789
+ withCloseButton: !e.value.table.useDialog,
790
+ onClose: o[2] || (o[2] = (a) => m.value.showTable = !1)
769
791
  }, {
770
- th: g(({ th: a }) => [
771
- mt(D(a), 1)
792
+ th: d(({ th: a }) => [
793
+ Ve(M(a), 1)
772
794
  ]),
773
- td: g(({ td: a }) => [
774
- P("div", { innerHTML: a }, null, 8, oa)
795
+ td: d(({ td: a }) => [
796
+ S("div", { innerHTML: a }, null, 8, ca)
775
797
  ]),
776
798
  _: 1
777
- }, 8, ["colNames", "head", "body", "config", "title"]))
799
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
778
800
  ]),
779
- _: 1
780
- }, 8, ["config"])) : f("", !0),
781
- s(k) ? (u(), A(Lt, { key: 8 })) : f("", !0)
782
- ], 46, Yt));
801
+ _: 2
802
+ }, [
803
+ e.value.table.useDialog ? {
804
+ name: "title",
805
+ fn: d(() => [
806
+ Ve(M(V.value.title), 1)
807
+ ]),
808
+ key: "0"
809
+ } : void 0,
810
+ e.value.table.useDialog ? {
811
+ name: "actions",
812
+ fn: d(() => [
813
+ S("button", {
814
+ tabindex: "0",
815
+ class: "vue-ui-user-options-button",
816
+ onClick: o[1] || (o[1] = (a) => le(e.value.userOptions.callbacks.csv))
817
+ }, [
818
+ re(s(Je), {
819
+ name: "excel",
820
+ stroke: V.value.props.color
821
+ }, null, 8, ["stroke"])
822
+ ])
823
+ ]),
824
+ key: "1"
825
+ } : void 0
826
+ ]), 1040)) : g("", !0),
827
+ s(k) ? (u(), I(Bt, { key: 8 })) : g("", !0)
828
+ ], 46, Wt));
783
829
  }
784
- }, ba = /* @__PURE__ */ Vt(na, [["__scopeId", "data-v-bd7e4981"]]);
830
+ }, Ta = /* @__PURE__ */ Ht(va, [["__scopeId", "data-v-3aead0b6"]]);
785
831
  export {
786
- ba as default
832
+ Ta as default
787
833
  };