vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as F, useSlots as gt, ref as u, computed as f, toRefs as ft, watch as q, shallowRef as Ve, onMounted as yt, onBeforeUnmount as mt, createElementBlock as p, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as W, createBlock as I, createCommentVNode as k, createElementVNode as C, createVNode as J, createSlots as ue, withCtx as c, renderSlot as h, normalizeProps as B, guardReactiveProps as R, Fragment as re, renderList as ie, mergeProps as Be, Teleport as bt, toDisplayString as M, resolveDynamicComponent as kt, createTextVNode as Re, nextTick as wt } from "vue";
2
- import { u as Ct, c as Me, t as $t, a as Tt, p as L, b as _t, o as ze, f as ve, g as xt, d as At, G as Ft, e as Ee, i as D, X as It, s as Ot, x as Pt, h as K, k as Ue, v as St, w as Nt, y as Lt, z as Dt } from "./index-BKQqb9lF.js";
1
+ import { defineAsyncComponent as O, useSlots as ft, ref as u, computed as f, toRefs as yt, watch as q, shallowRef as Be, onMounted as mt, onBeforeUnmount as bt, createElementBlock as p, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as W, createBlock as I, createCommentVNode as b, createElementVNode as C, createVNode as J, createSlots as re, withCtx as c, renderSlot as h, normalizeProps as V, guardReactiveProps as B, Fragment as ie, renderList as ve, mergeProps as Me, Teleport as kt, toDisplayString as M, resolveDynamicComponent as wt, createTextVNode as ze, nextTick as Ct } from "vue";
2
+ import { u as $t, c as Ee, t as Tt, a as _t, p as D, b as xt, o as Ue, f as ce, g as At, d as Ot, G as It, e as We, i as L, X as Ft, s as St, x as Pt, h as K, k as Ge, v as Nt, w as Dt, y as Lt, z as Rt } from "./index-CaxArMHL.js";
3
3
  import { t as Vt, u as Bt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Rt } from "./usePrinter-BzuXiubT.js";
5
- import { u as Mt, B as zt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as We } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
9
- import Wt from "./img-gBDz7xQQ.js";
10
- import { _ as Gt } from "./Shape-Cjca5zta.js";
11
- import Ht from "./Title-Dz-j6ERs.js";
12
- import jt from "./Legend-8_V5egWW.js";
13
- import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = { key: 1 }, ll = ["stroke", "cx", "cy", "r", "fill"], al = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], ol = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], sl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], nl = {
4
+ import { u as Mt } from "./usePrinter-BYtPmEo8.js";
5
+ import { u as zt, B as Et } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as He } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Gt from "./img-DSrvx9J6.js";
10
+ import { _ as Ht } from "./Shape-DiplSMFy.js";
11
+ import jt from "./Title-CqYBs02Y.js";
12
+ import Xt from "./Legend-5qvgVkrY.js";
13
+ import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "height"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 }, al = ["stroke", "cx", "cy", "r", "fill"], ol = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], sl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ul = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, ul = ["id"], rl = ["onClick"], il = ["innerHTML"], vl = {
17
+ }, rl = ["id"], il = ["onClick"], vl = ["innerHTML"], cl = {
18
18
  __name: "vue-ui-rings",
19
19
  props: {
20
20
  config: {
@@ -31,11 +31,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Ge, { expose: He, emit: je }) {
35
- const Xe = F(() => import("./Tooltip-BTGOEC7w.js")), Ye = F(() => import("./BaseIcon-DLesaZpW.js")), qe = F(() => import("./vue-ui-accordion-B5QeV3BK.js")), Je = F(() => import("./DataTable-BAf4Obr9.js")), Ke = F(() => import("./PenAndPaper-B6OvfyHH.js")), Qe = F(() => import("./UserOptions-CsDlFB0L.js")), Ze = F(() => import("./PackageVersion-Cv_ypT0N.js")), et = F(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_rings: tt } = Ct(), lt = gt(), w = Ge, O = u(!1), ce = f(() => !!w.dataset && w.dataset.length), y = u(Me()), at = u(null), G = u(!1), Q = u(""), T = u(null), de = u(0), _ = u(null), pe = u(null), he = u(null), ge = u(null), fe = u(null), ye = u(0), me = u(0), be = u(0), Z = u(!1), ke = u(!1), z = u(null), e = u(te()), { loading: P, FINAL_DATASET: we, manualLoading: H } = Mt({
36
- ...ft(w),
34
+ setup(je, { expose: Xe, emit: Ye }) {
35
+ const qe = O(() => import("./Tooltip-CP0tVHAf.js")), Je = O(() => import("./BaseIcon-BcOSijbz.js")), Ke = O(() => import("./vue-ui-accordion-DUlNpLir.js")), Qe = O(() => import("./DataTable-Cm8Tt9PQ.js")), Ze = O(() => import("./PenAndPaper-CyH7Ip2i.js")), et = O(() => import("./UserOptions-ZmwlARCV.js")), tt = O(() => import("./PackageVersion-0XlRFsI_.js")), lt = O(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_rings: at } = $t(), ot = ft(), k = je, F = u(!1), de = f(() => !!k.dataset && k.dataset.length), y = u(Ee()), G = u(!1), Q = u(""), T = u(null), pe = u(0), _ = u(null), he = u(null), ge = u(null), fe = u(null), ye = u(null), me = u(0), be = u(0), ke = u(0), Z = u(!1), we = u(!1), z = u(null), ee = u(null), e = u(le()), { loading: S, FINAL_DATASET: Ce, manualLoading: H } = zt({
36
+ ...yt(k),
37
37
  FINAL_CONFIG: e,
38
- prepareConfig: te,
38
+ prepareConfig: le,
39
39
  skeletonDataset: [
40
40
  { name: "_", values: [13], color: "#808080" },
41
41
  { name: "_", values: [8], color: "#969696" },
@@ -43,7 +43,7 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
43
43
  { name: "_", values: [3], color: "#C4C4C4" },
44
44
  { name: "_", values: [2], color: "#DBDBDB" }
45
45
  ],
46
- skeletonConfig: $t({
46
+ skeletonConfig: Tt({
47
47
  defaultConfig: e.value,
48
48
  userConfig: {
49
49
  userOptions: { show: !1 },
@@ -66,85 +66,85 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
66
66
  }
67
67
  }
68
68
  })
69
- }), { userOptionsVisible: ee, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Et({ config: e.value }), { svgRef: Te } = Ut({ config: e.value.style.chart.title });
70
- function te() {
71
- const t = We({
72
- userConfig: w.config,
73
- defaultConfig: tt
69
+ }), { userOptionsVisible: te, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Ut({ config: e.value }), { svgRef: _e } = Wt({ config: e.value.style.chart.title });
70
+ function le() {
71
+ const t = He({
72
+ userConfig: k.config,
73
+ defaultConfig: at
74
74
  });
75
75
  return t.theme ? {
76
- ...We({
77
- userConfig: _t.vue_ui_rings[t.theme] || w.config,
76
+ ...He({
77
+ userConfig: xt.vue_ui_rings[t.theme] || k.config,
78
78
  defaultConfig: t
79
79
  }),
80
- customPalette: Tt[t.theme] || L
80
+ customPalette: _t[t.theme] || D
81
81
  } : t;
82
82
  }
83
- q(() => w.config, (t) => {
84
- P.value || (e.value = te()), ee.value = !e.value.userOptions.showOnChartHover, _e(), ye.value += 1, me.value += 1, be.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
85
- }, { deep: !0 }), q(() => w.dataset, (t) => {
83
+ q(() => k.config, (t) => {
84
+ S.value || (e.value = le()), te.value = !e.value.userOptions.showOnChartHover, xe(), me.value += 1, be.value += 1, ke.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ }, { deep: !0 }), q(() => k.dataset, (t) => {
86
86
  Array.isArray(t) && t.length > 0 && (H.value = !1);
87
87
  }, { deep: !0 });
88
- const x = Ve(null), V = Ve(null);
89
- yt(() => {
90
- ke.value = !0, _e();
88
+ const x = Be(null), R = Be(null);
89
+ mt(() => {
90
+ we.value = !0, xe();
91
91
  });
92
- const le = f(() => !!e.value.debug);
93
- function _e() {
94
- if (ze(w.dataset) ? (ve({
92
+ const ae = f(() => !!e.value.debug);
93
+ function xe() {
94
+ if (Ue(k.dataset) ? (ce({
95
95
  componentName: "VueUiRings",
96
96
  type: "dataset",
97
- debug: le.value
98
- }), H.value = !0) : w.dataset.forEach((t, a) => {
99
- t.values.length || (ve({
97
+ debug: ae.value
98
+ }), H.value = !0) : k.dataset.forEach((t, a) => {
99
+ t.values.length || (ce({
100
100
  componentName: "VueUiRings",
101
101
  type: "dataset",
102
- debug: le.value
103
- }), H.value = !0), xt({
102
+ debug: ae.value
103
+ }), H.value = !0), At({
104
104
  datasetObject: t,
105
105
  requiredAttributes: ["name", "values"]
106
106
  }).forEach((l) => {
107
- ve({
107
+ ce({
108
108
  componentName: "VueUiRings",
109
109
  type: "datasetSerieAttribute",
110
110
  property: l,
111
111
  index: a,
112
- debug: le.value
112
+ debug: ae.value
113
113
  });
114
114
  });
115
- }), ze(w.dataset) || (H.value = e.value.loading), e.value.responsive) {
115
+ }), Ue(k.dataset) || (H.value = e.value.loading), e.value.responsive) {
116
116
  const t = Vt(() => {
117
117
  Z.value = !0;
118
118
  const { width: a, height: l } = Bt({
119
119
  chart: _.value,
120
- title: e.value.style.chart.title.text ? pe.value : null,
121
- legend: e.value.style.chart.legend.show ? he.value : null,
122
- source: ge.value,
123
- noTitle: fe.value
120
+ title: e.value.style.chart.title.text ? he.value : null,
121
+ legend: e.value.style.chart.legend.show ? ge.value : null,
122
+ source: fe.value,
123
+ noTitle: ye.value
124
124
  });
125
125
  requestAnimationFrame(() => {
126
126
  n.value.width = a, n.value.height = l - 12, Z.value = !1;
127
127
  });
128
128
  });
129
- x.value && (V.value && x.value.unobserve(V.value), x.value.disconnect()), x.value = new ResizeObserver(t), V.value = _.value.parentNode, x.value.observe(V.value);
129
+ x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect()), x.value = new ResizeObserver(t), R.value = _.value.parentNode, x.value.observe(R.value);
130
130
  }
131
131
  setTimeout(() => {
132
- O.value = !0;
132
+ F.value = !0;
133
133
  }, 600);
134
134
  }
135
- mt(() => {
136
- x.value && (V.value && x.value.unobserve(V.value), x.value.disconnect());
135
+ bt(() => {
136
+ x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
137
137
  });
138
- const { isPrinting: xe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } = Rt({
138
+ const { isPrinting: Ae, isImaging: Oe, generatePdf: Ie, generateImage: Fe } = Mt({
139
139
  elementId: `rings_${y.value}`,
140
140
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
141
141
  options: e.value.userOptions.print
142
- }), ot = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = f(() => At(e.value.customPalette)), m = u({
142
+ }), st = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = f(() => Ot(e.value.customPalette)), w = u({
143
143
  showTable: e.value.table.show,
144
144
  showTooltip: e.value.style.chart.tooltip.show
145
145
  });
146
146
  q(e, () => {
147
- m.value = {
147
+ w.value = {
148
148
  showTable: e.value.table.show,
149
149
  showTooltip: e.value.style.chart.tooltip.show
150
150
  };
@@ -152,54 +152,54 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
152
152
  const n = u({
153
153
  height: 360,
154
154
  width: 360
155
- }), st = f(() => Math.min(n.value.height, n.value.width)), nt = je, b = u([]);
156
- function ae(t) {
157
- b.value.includes(t) ? b.value = b.value.filter((a) => a !== t) : b.value.push(t), nt("selectLegend", g.value.map((a) => ({
155
+ }), nt = f(() => Math.min(n.value.height, n.value.width)), ut = Ye, m = u([]);
156
+ function oe(t) {
157
+ m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t), ut("selectLegend", g.value.map((a) => ({
158
158
  name: a.name,
159
159
  color: a.color,
160
160
  value: a.value
161
161
  })));
162
162
  }
163
- const ut = f(() => Math.max(
164
- ...j.value.filter((t) => !b.value.includes(t.uid)).map(({ value: t }) => t)
163
+ const rt = f(() => Math.max(
164
+ ...j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
165
165
  ));
166
166
  function Pe(t) {
167
- return t / ut.value;
167
+ return t / rt.value;
168
168
  }
169
- const j = f(() => we.value.map(({ values: t, name: a, color: l = null }, o) => {
170
- const r = Ft(t).reduce((v, U) => v + U, 0);
169
+ const j = f(() => Ce.value.map(({ values: t, name: a, color: l = null }, o) => {
170
+ const r = It(t).reduce((v, U) => v + U, 0);
171
171
  return {
172
172
  name: a,
173
- color: l || Ee(l) || Oe.value[o] || L[o] || L[o % L.length],
173
+ color: l || We(l) || Se.value[o] || D[o] || D[o % D.length],
174
174
  value: r,
175
- proportion: r / we.value.map((v) => (v.values || []).reduce((U, ht) => U + ht, 0)).reduce((v, U) => v + U, 0),
176
- uid: Me(),
175
+ proportion: r / Ce.value.map((v) => (v.values || []).reduce((U, gt) => U + gt, 0)).reduce((v, U) => v + U, 0),
176
+ uid: Ee(),
177
177
  absoluteIndex: o
178
178
  };
179
- })), Se = f(() => j.value.map((t) => ({
179
+ })), Ne = f(() => j.value.map((t) => ({
180
180
  ...t,
181
181
  shape: "circle",
182
- opacity: b.value.includes(t.uid) ? 0.5 : 1,
183
- segregate: () => ae(t.uid),
184
- isSegregated: b.value.includes(t.uid)
185
- })).toSorted((t, a) => a.value - t.value)), rt = f(() => ({
182
+ opacity: m.value.includes(t.uid) ? 0.5 : 1,
183
+ segregate: () => oe(t.uid),
184
+ isSegregated: m.value.includes(t.uid)
185
+ })).toSorted((t, a) => a.value - t.value)), it = f(() => ({
186
186
  cy: "rings-div-legend",
187
187
  backgroundColor: e.value.style.chart.legend.backgroundColor,
188
188
  color: e.value.style.chart.legend.color,
189
189
  fontSize: e.value.style.chart.legend.fontSize,
190
190
  paddingBottom: 12,
191
191
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
192
- })), $ = f(() => j.value.filter((t) => !b.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), g = f(() => j.value.filter((t) => !b.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: r }, v) => ({
192
+ })), $ = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), g = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: r }, v) => ({
193
193
  absoluteIndex: r,
194
194
  uid: o,
195
195
  name: t,
196
- color: l || Ee(l) || Oe.value[v] || L[v] || L[v % L.length],
196
+ color: l || We(l) || Se.value[v] || D[v] || D[v % D.length],
197
197
  value: a,
198
198
  proportion: Pe(a),
199
199
  percentage: a / $.value * 100,
200
200
  strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Pe(a)
201
201
  })).toSorted((t, a) => a.value - t.value));
202
- function it() {
202
+ function vt() {
203
203
  return g.value.map(
204
204
  ({ name: t, color: a, value: l, absoluteValues: o, percentage: r }) => ({
205
205
  name: t,
@@ -210,24 +210,24 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
210
210
  })
211
211
  );
212
212
  }
213
- const d = f(() => st.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
- function vt(t, a) {
213
+ const d = f(() => nt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
+ function ct(t, a) {
215
215
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
216
216
  }
217
- function ct(t, a) {
217
+ function dt(t, a) {
218
218
  T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
219
219
  }
220
- const oe = u(null);
221
- function dt(t, a) {
222
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), b.value.length === w.dataset.length) return;
223
- oe.value = {
220
+ const se = u(null);
221
+ function pt(t, a) {
222
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), m.value.length === k.dataset.length) return;
223
+ se.value = {
224
224
  datapoint: t,
225
225
  seriesIndex: a,
226
226
  series: g.value,
227
227
  config: e.value
228
228
  }, T.value = a;
229
229
  const l = g.value[a], o = e.value.style.chart.tooltip.customFormat;
230
- if (Lt(o) && Dt(() => o({
230
+ if (Lt(o) && Rt(() => o({
231
231
  seriesIndex: a,
232
232
  datapoint: t,
233
233
  series: g.value,
@@ -241,10 +241,10 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
241
241
  });
242
242
  else {
243
243
  let r = "";
244
- r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${lt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ue(
244
+ r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${ot.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ge(
245
245
  e.value.style.chart.layout.labels.dataLabels.formatter,
246
246
  l.value,
247
- D({
247
+ L({
248
248
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
249
249
  v: l.value,
250
250
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -252,11 +252,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
252
252
  }),
253
253
  { datapoint: t, seriesIndex: a }
254
254
  )}
255
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${D({
255
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${L({
256
256
  v: l.value / $.value * 100,
257
257
  s: "%",
258
258
  r: e.value.style.chart.tooltip.roundingPercentage
259
- })})</span></div>` : r += `<b>${D({
259
+ })})</span></div>` : r += `<b>${L({
260
260
  v: l.value / $.value * 100,
261
261
  s: "%",
262
262
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -273,14 +273,14 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
273
273
  }), X = f(() => {
274
274
  const t = [
275
275
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
276
- D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
276
+ L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
277
277
  "100%"
278
278
  ], a = A.value.head.map((r, v) => [
279
279
  {
280
280
  color: r.color,
281
281
  name: r.name
282
282
  },
283
- D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
283
+ L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
284
284
  isNaN(A.value.body[v] / $.value) ? "-" : (A.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
285
285
  ]), l = {
286
286
  th: {
@@ -306,31 +306,31 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
306
306
  colNames: o
307
307
  };
308
308
  });
309
- function se(t = null) {
310
- wt(() => {
309
+ function ne(t = null) {
310
+ Ct(() => {
311
311
  const a = A.value.head.map((r, v) => [[
312
312
  r.name
313
- ], [A.value.body[v]], [isNaN(A.value.body[v] / $.value) ? "-" : A.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = St(l);
314
- t ? t(o) : Nt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
313
+ ], [A.value.body[v]], [isNaN(A.value.body[v] / $.value) ? "-" : A.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Nt(l);
314
+ t ? t(o) : Dt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
315
315
  });
316
316
  }
317
- const S = u(!1);
318
- function Ne(t) {
319
- S.value = t, de.value += 1;
317
+ const P = u(!1);
318
+ function De(t) {
319
+ P.value = t, pe.value += 1;
320
320
  }
321
321
  function Le() {
322
- m.value.showTable = !m.value.showTable;
322
+ w.value.showTable = !w.value.showTable;
323
323
  }
324
- function De() {
325
- m.value.showTooltip = !m.value.showTooltip;
324
+ function Re() {
325
+ w.value.showTooltip = !w.value.showTooltip;
326
326
  }
327
327
  const Y = u(!1);
328
- function ne() {
328
+ function ue() {
329
329
  Y.value = !Y.value;
330
330
  }
331
- async function pt({ scale: t = 2 } = {}) {
331
+ async function ht({ scale: t = 2 } = {}) {
332
332
  if (!_.value) return;
333
- const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / l, { imageUri: r, base64: v } = await Wt({ domElement: _.value, base64: !0, img: !0, scale: t });
333
+ const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / l, { imageUri: r, base64: v } = await Gt({ domElement: _.value, base64: !0, img: !0, scale: t });
334
334
  return {
335
335
  imageUri: r,
336
336
  base64: v,
@@ -341,16 +341,16 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
341
341
  };
342
342
  }
343
343
  const E = f(() => {
344
- const t = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
344
+ const t = e.value.table.useDialog && !e.value.table.show, a = w.value.showTable;
345
345
  return {
346
- component: t ? et : qe,
346
+ component: t ? lt : Ke,
347
347
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
348
348
  props: t ? {
349
349
  backgroundColor: e.value.table.th.backgroundColor,
350
350
  color: e.value.table.th.color,
351
351
  headerColor: e.value.table.th.color,
352
352
  headerBg: e.value.table.th.backgroundColor,
353
- isFullscreen: S.value,
353
+ isFullscreen: P.value,
354
354
  fullscreenParent: _.value,
355
355
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
356
356
  } : {
@@ -370,52 +370,56 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
370
370
  }
371
371
  };
372
372
  });
373
- return q(() => m.value.showTable, (t) => {
373
+ q(() => w.value.showTable, (t) => {
374
374
  e.value.table.show || (t && e.value.table.useDialog && z.value ? z.value.open() : "close" in z.value && z.value.close());
375
- }), He({
376
- getData: it,
377
- getImage: pt,
378
- generatePdf: Fe,
379
- generateCsv: se,
380
- generateImage: Ie,
375
+ });
376
+ function Ve() {
377
+ w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
378
+ }
379
+ return Xe({
380
+ getData: vt,
381
+ getImage: ht,
382
+ generatePdf: Ie,
383
+ generateCsv: ne,
384
+ generateImage: Fe,
381
385
  toggleTable: Le,
382
- toggleTooltip: De,
383
- toggleAnnotator: ne,
384
- toggleFullscreen: Ne
386
+ toggleTooltip: Re,
387
+ toggleAnnotator: ue,
388
+ toggleFullscreen: De
385
389
  }), (t, a) => (i(), p("div", {
386
390
  ref_key: "ringsChart",
387
391
  ref: _,
388
- class: W(`vue-ui-rings ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
392
+ class: W(`vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
389
393
  style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
390
394
  id: `rings_${y.value}`,
391
- onMouseleave: a[4] || (a[4] = (l) => {
392
- T.value = null, G.value = !1, s(Ce)(!1);
395
+ onMouseleave: a[2] || (a[2] = (l) => {
396
+ T.value = null, G.value = !1, s($e)(!1);
393
397
  }),
394
- onMouseenter: a[5] || (a[5] = () => s(Ce)(!0))
398
+ onMouseenter: a[3] || (a[3] = () => s($e)(!0))
395
399
  }, [
396
- e.value.userOptions.buttons.annotator ? (i(), I(s(Ke), {
400
+ e.value.userOptions.buttons.annotator ? (i(), I(s(Ze), {
397
401
  key: 0,
398
- svgRef: s(Te),
402
+ svgRef: s(_e),
399
403
  backgroundColor: e.value.style.chart.backgroundColor,
400
404
  color: e.value.style.chart.color,
401
405
  active: Y.value,
402
- onClose: ne
403
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
404
- ot.value ? (i(), p("div", {
406
+ onClose: ue
407
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
408
+ st.value ? (i(), p("div", {
405
409
  key: 1,
406
410
  ref_key: "noTitle",
407
- ref: fe,
411
+ ref: ye,
408
412
  class: "vue-data-ui-no-title-space",
409
413
  style: "height:36px; width: 100%;background:transparent"
410
- }, null, 512)) : k("", !0),
414
+ }, null, 512)) : b("", !0),
411
415
  e.value.style.chart.title.text ? (i(), p("div", {
412
416
  key: 2,
413
417
  ref_key: "chartTitle",
414
- ref: pe,
418
+ ref: he,
415
419
  style: "width:100%;background:transparent"
416
420
  }, [
417
- (i(), I(Ht, {
418
- key: `title_${ye.value}`,
421
+ (i(), I(jt, {
422
+ key: `title_${me.value}`,
419
423
  config: {
420
424
  title: {
421
425
  cy: "rings-div-title",
@@ -427,18 +431,18 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
427
431
  }
428
432
  }
429
433
  }, null, 8, ["config"]))
430
- ], 512)) : k("", !0),
434
+ ], 512)) : b("", !0),
431
435
  C("div", {
432
436
  id: `legend-top-${y.value}`
433
- }, null, 8, qt),
434
- e.value.userOptions.show && ce.value && (s($e) || s(ee)) ? (i(), I(s(Qe), {
435
- ref_key: "details",
436
- ref: at,
437
- key: `user_options_${de.value}`,
437
+ }, null, 8, Jt),
438
+ e.value.userOptions.show && de.value && (s(Te) || s(te)) ? (i(), I(s(et), {
439
+ ref_key: "userOptionsRef",
440
+ ref: ee,
441
+ key: `user_options_${pe.value}`,
438
442
  backgroundColor: e.value.style.chart.backgroundColor,
439
443
  color: e.value.style.chart.color,
440
- isPrinting: s(xe),
441
- isImaging: s(Ae),
444
+ isPrinting: s(Ae),
445
+ isImaging: s(Oe),
442
446
  uid: y.value,
443
447
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
444
448
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -446,8 +450,8 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
446
450
  hasImg: e.value.userOptions.buttons.img,
447
451
  hasTable: e.value.userOptions.buttons.table,
448
452
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
449
- isTooltip: m.value.showTooltip,
450
- isFullscreen: S.value,
453
+ isTooltip: w.value.showTooltip,
454
+ isFullscreen: P.value,
451
455
  titles: { ...e.value.userOptions.buttonTitles },
452
456
  chartElement: _.value,
453
457
  position: e.value.userOptions.position,
@@ -455,21 +459,22 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
455
459
  isAnnotation: Y.value,
456
460
  callbacks: e.value.userOptions.callbacks,
457
461
  printScale: e.value.userOptions.print.scale,
458
- onToggleFullscreen: Ne,
459
- onGeneratePdf: s(Fe),
460
- onGenerateCsv: se,
461
- onGenerateImage: s(Ie),
462
+ tableDialog: e.value.table.useDialog,
463
+ onToggleFullscreen: De,
464
+ onGeneratePdf: s(Ie),
465
+ onGenerateCsv: ne,
466
+ onGenerateImage: s(Fe),
462
467
  onToggleTable: Le,
463
- onToggleTooltip: De,
464
- onToggleAnnotator: ne,
468
+ onToggleTooltip: Re,
469
+ onToggleAnnotator: ue,
465
470
  style: N({
466
- visibility: s($e) ? s(ee) ? "visible" : "hidden" : "visible"
471
+ visibility: s(Te) ? s(te) ? "visible" : "hidden" : "visible"
467
472
  })
468
- }, ue({ _: 2 }, [
473
+ }, re({ _: 2 }, [
469
474
  t.$slots.menuIcon ? {
470
475
  name: "menuIcon",
471
476
  fn: c(({ isOpen: l, color: o }) => [
472
- h(t.$slots, "menuIcon", B(R({ isOpen: l, color: o })), void 0, !0)
477
+ h(t.$slots, "menuIcon", V(B({ isOpen: l, color: o })), void 0, !0)
473
478
  ]),
474
479
  key: "0"
475
480
  } : void 0,
@@ -511,27 +516,27 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
511
516
  t.$slots.optionFullscreen ? {
512
517
  name: "optionFullscreen",
513
518
  fn: c(({ toggleFullscreen: l, isFullscreen: o }) => [
514
- h(t.$slots, "optionFullscreen", B(R({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
519
+ h(t.$slots, "optionFullscreen", V(B({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
515
520
  ]),
516
521
  key: "6"
517
522
  } : void 0,
518
523
  t.$slots.optionAnnotator ? {
519
524
  name: "optionAnnotator",
520
525
  fn: c(({ toggleAnnotator: l, isAnnotator: o }) => [
521
- h(t.$slots, "optionAnnotator", B(R({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
526
+ h(t.$slots, "optionAnnotator", V(B({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
522
527
  ]),
523
528
  key: "7"
524
529
  } : void 0
525
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
530
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
526
531
  (i(), p("svg", {
527
532
  ref_key: "svgRef",
528
- ref: Te,
529
- xmlns: s(It),
530
- class: W({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value, resizing: Z.value || s(P) }),
533
+ ref: _e,
534
+ xmlns: s(Ft),
535
+ class: W({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Z.value || s(S) }),
531
536
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
532
537
  style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
533
538
  }, [
534
- J(s(Ze)),
539
+ J(s(tt)),
535
540
  t.$slots["chart-background"] ? (i(), p("foreignObject", {
536
541
  key: 0,
537
542
  x: 0,
@@ -543,9 +548,9 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
543
548
  }
544
549
  }, [
545
550
  h(t.$slots, "chart-background", {}, void 0, !0)
546
- ], 8, Kt)) : k("", !0),
551
+ ], 8, Qt)) : b("", !0),
547
552
  C("defs", null, [
548
- (i(!0), p(re, null, ie(g.value, (l, o) => (i(), p("radialGradient", {
553
+ (i(!0), p(ie, null, ve(g.value, (l, o) => (i(), p("radialGradient", {
549
554
  cx: "50%",
550
555
  cy: "30%",
551
556
  r: "50%",
@@ -555,24 +560,24 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
555
560
  }, [
556
561
  C("stop", {
557
562
  offset: "0%",
558
- "stop-color": s(Ot)(s(Pt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
559
- }, null, 8, Zt),
563
+ "stop-color": s(St)(s(Pt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
564
+ }, null, 8, el),
560
565
  C("stop", {
561
566
  offset: "100%",
562
567
  "stop-color": l.color
563
- }, null, 8, el)
564
- ], 8, Qt))), 256))
568
+ }, null, 8, tl)
569
+ ], 8, Zt))), 256))
565
570
  ]),
566
- t.$slots.pattern ? (i(), p("g", tl, [
567
- (i(!0), p(re, null, ie(g.value, (l) => (i(), p("defs", null, [
568
- h(t.$slots, "pattern", Be({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
571
+ t.$slots.pattern ? (i(), p("g", ll, [
572
+ (i(!0), p(ie, null, ve(g.value, (l) => (i(), p("defs", null, [
573
+ h(t.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
569
574
  ]))), 256))
570
- ])) : k("", !0),
571
- (i(!0), p(re, null, ie(g.value, (l, o) => (i(), p("g", null, [
575
+ ])) : b("", !0),
576
+ (i(!0), p(ie, null, ve(g.value, (l, o) => (i(), p("g", null, [
572
577
  C("circle", {
573
578
  class: W({
574
- "vue-ui-rings-item": O.value && e.value.useCssAnimation,
575
- "vue-rings-item-onload": !O.value && e.value.useCssAnimation && !s(P),
579
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
580
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
576
581
  "vue-ui-rings-opacity": T.value !== null && T.value !== o
577
582
  }),
578
583
  style: N(`animation-delay:${o * 100}ms`),
@@ -581,11 +586,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
581
586
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
582
587
  r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
583
588
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
584
- }, null, 14, ll),
589
+ }, null, 14, al),
585
590
  C("circle", {
586
591
  class: W({
587
- "vue-ui-rings-item": O.value && e.value.useCssAnimation,
588
- "vue-rings-item-onload": !O.value && e.value.useCssAnimation && !s(P),
592
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
593
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
589
594
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
590
595
  "vue-ui-rings-blur": T.value !== null && T.value !== o
591
596
  }),
@@ -596,12 +601,12 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
596
601
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
597
602
  r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
598
603
  fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${o})` : l.color
599
- }, null, 14, al),
604
+ }, null, 14, ol),
600
605
  t.$slots.pattern ? (i(), p("circle", {
601
606
  key: 0,
602
607
  class: W({
603
- "vue-ui-rings-item": O.value && e.value.useCssAnimation,
604
- "vue-rings-item-onload": !O.value && e.value.useCssAnimation && !s(P),
608
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
609
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
605
610
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
606
611
  "vue-ui-rings-blur": T.value !== null && T.value !== o
607
612
  }),
@@ -612,67 +617,67 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
612
617
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
613
618
  r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
614
619
  fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
615
- }, null, 14, ol)) : k("", !0),
620
+ }, null, 14, sl)) : b("", !0),
616
621
  C("circle", {
617
622
  stroke: "none",
618
623
  cx: n.value.width / 2,
619
624
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
620
625
  r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
621
626
  fill: "transparent",
622
- onMouseenter: (r) => dt(l, o),
623
- onMouseleave: (r) => ct(l, o),
624
- onClick: (r) => vt(l, o)
625
- }, null, 40, sl)
627
+ onMouseenter: (r) => pt(l, o),
628
+ onMouseleave: (r) => dt(l, o),
629
+ onClick: (r) => ct(l, o)
630
+ }, null, 40, nl)
626
631
  ]))), 256)),
627
632
  h(t.$slots, "svg", { svg: n.value }, void 0, !0)
628
- ], 14, Jt)),
629
- t.$slots.watermark ? (i(), p("div", nl, [
630
- h(t.$slots, "watermark", B(R({ isPrinting: s(xe) || s(Ae) })), void 0, !0)
631
- ])) : k("", !0),
633
+ ], 14, Kt)),
634
+ t.$slots.watermark ? (i(), p("div", ul, [
635
+ h(t.$slots, "watermark", V(B({ isPrinting: s(Ae) || s(Oe) })), void 0, !0)
636
+ ])) : b("", !0),
632
637
  C("div", {
633
638
  id: `legend-bottom-${y.value}`
634
- }, null, 8, ul),
635
- ke.value ? (i(), I(bt, {
639
+ }, null, 8, rl),
640
+ we.value ? (i(), I(kt, {
636
641
  key: 5,
637
642
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
638
643
  }, [
639
644
  C("div", {
640
645
  ref_key: "chartLegend",
641
- ref: he
646
+ ref: ge
642
647
  }, [
643
- e.value.style.chart.legend.show ? (i(), I(jt, {
644
- key: `legend_${be.value}`,
645
- legendSet: Se.value,
646
- config: rt.value,
647
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => ae(l.uid))
648
- }, ue({
648
+ e.value.style.chart.legend.show ? (i(), I(Xt, {
649
+ key: `legend_${ke.value}`,
650
+ legendSet: Ne.value,
651
+ config: it.value,
652
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => oe(l.uid))
653
+ }, re({
649
654
  item: c(({ legend: l, index: o }) => [
650
- s(P) ? k("", !0) : (i(), p("div", {
655
+ s(S) ? b("", !0) : (i(), p("div", {
651
656
  key: 0,
652
- onClick: (r) => ae(l.uid),
653
- style: N(`opacity:${b.value.includes(l.uid) ? 0.5 : 1}`)
654
- }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? s(Ue)(
657
+ onClick: (r) => oe(l.uid),
658
+ style: N(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
659
+ }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? s(Ge)(
655
660
  e.value.style.chart.layout.labels.dataLabels.formatter,
656
661
  l.value,
657
- s(D)({
662
+ s(L)({
658
663
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
659
664
  v: l.value,
660
665
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
661
666
  r: e.value.style.chart.legend.roundingValue
662
667
  }),
663
668
  { datapoint: l, seriesIndex: o }
664
- ) : "") + " " + M(e.value.style.chart.legend.showPercentage ? b.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / $.value) ? "-" : s(D)({
669
+ ) : "") + " " + M(e.value.style.chart.legend.showPercentage ? m.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / $.value) ? "-" : s(L)({
665
670
  v: l.value / $.value * 100,
666
671
  s: "%",
667
672
  r: e.value.style.chart.legend.roundingPercentage
668
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, rl))
673
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, il))
669
674
  ]),
670
675
  _: 2
671
676
  }, [
672
677
  t.$slots.pattern ? {
673
678
  name: "legend-pattern",
674
679
  fn: c(({ legend: l, index: o }) => [
675
- J(Gt, {
680
+ J(Ht, {
676
681
  shape: l.shape,
677
682
  radius: 30,
678
683
  stroke: "none",
@@ -684,20 +689,20 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
684
689
  } : void 0
685
690
  ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
686
691
  key: 1,
687
- legend: Se.value
692
+ legend: Ne.value
688
693
  }, void 0, !0)
689
694
  ], 512)
690
- ], 8, ["to"])) : k("", !0),
695
+ ], 8, ["to"])) : b("", !0),
691
696
  t.$slots.source ? (i(), p("div", {
692
697
  key: 6,
693
698
  ref_key: "source",
694
- ref: ge,
699
+ ref: fe,
695
700
  dir: "auto"
696
701
  }, [
697
702
  h(t.$slots, "source", {}, void 0, !0)
698
- ], 512)) : k("", !0),
699
- J(s(Xe), {
700
- show: m.value.showTooltip && G.value && b.value.length < w.dataset.length,
703
+ ], 512)) : b("", !0),
704
+ J(s(qe), {
705
+ show: w.value.showTooltip && G.value && m.value.length < k.dataset.length,
701
706
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
702
707
  color: e.value.style.chart.tooltip.color,
703
708
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -709,43 +714,43 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
709
714
  offsetY: e.value.style.chart.tooltip.offsetY,
710
715
  parent: _.value,
711
716
  content: Q.value,
712
- isFullscreen: S.value,
717
+ isFullscreen: P.value,
713
718
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
714
719
  smooth: e.value.style.chart.tooltip.smooth,
715
720
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
716
721
  }, {
717
722
  "tooltip-before": c(() => [
718
- h(t.$slots, "tooltip-before", B(R({ ...oe.value })), void 0, !0)
723
+ h(t.$slots, "tooltip-before", V(B({ ...se.value })), void 0, !0)
719
724
  ]),
720
725
  "tooltip-after": c(() => [
721
- h(t.$slots, "tooltip-after", B(R({ ...oe.value })), void 0, !0)
726
+ h(t.$slots, "tooltip-after", V(B({ ...se.value })), void 0, !0)
722
727
  ]),
723
728
  _: 3
724
729
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
725
- ce.value ? (i(), I(kt(E.value.component), Be({ key: 7 }, E.value.props, {
730
+ de.value ? (i(), I(wt(E.value.component), Me({ key: 7 }, E.value.props, {
726
731
  ref_key: "tableUnit",
727
732
  ref: z,
728
- onClose: a[3] || (a[3] = (l) => m.value.showTable = !1)
729
- }), ue({
733
+ onClose: Ve
734
+ }), re({
730
735
  content: c(() => [
731
- (i(), I(s(Je), {
732
- key: `table_${me.value}`,
736
+ (i(), I(s(Qe), {
737
+ key: `table_${be.value}`,
733
738
  colNames: X.value.colNames,
734
739
  head: X.value.head,
735
740
  body: X.value.body,
736
741
  config: X.value.config,
737
742
  title: e.value.table.useDialog ? "" : E.value.title,
738
743
  withCloseButton: !e.value.table.useDialog,
739
- onClose: a[2] || (a[2] = (l) => m.value.showTable = !1)
744
+ onClose: Ve
740
745
  }, {
741
746
  th: c(({ th: l }) => [
742
747
  C("div", {
743
748
  innerHTML: l,
744
749
  style: { display: "flex", "align-items": "center" }
745
- }, null, 8, il)
750
+ }, null, 8, vl)
746
751
  ]),
747
752
  td: c(({ td: l }) => [
748
- Re(M(l.name || l), 1)
753
+ ze(M(l.name || l), 1)
749
754
  ]),
750
755
  _: 1
751
756
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -755,7 +760,7 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
755
760
  e.value.table.useDialog ? {
756
761
  name: "title",
757
762
  fn: c(() => [
758
- Re(M(E.value.title), 1)
763
+ ze(M(E.value.title), 1)
759
764
  ]),
760
765
  key: "0"
761
766
  } : void 0,
@@ -765,9 +770,9 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
765
770
  C("button", {
766
771
  tabindex: "0",
767
772
  class: "vue-ui-user-options-button",
768
- onClick: a[1] || (a[1] = (l) => se(e.value.userOptions.callbacks.csv))
773
+ onClick: a[1] || (a[1] = (l) => ne(e.value.userOptions.callbacks.csv))
769
774
  }, [
770
- J(s(Ye), {
775
+ J(s(Je), {
771
776
  name: "excel",
772
777
  stroke: E.value.props.color
773
778
  }, null, 8, ["stroke"])
@@ -775,11 +780,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
775
780
  ]),
776
781
  key: "1"
777
782
  } : void 0
778
- ]), 1040)) : k("", !0),
779
- s(P) ? (i(), I(zt, { key: 8 })) : k("", !0)
780
- ], 46, Yt));
783
+ ]), 1040)) : b("", !0),
784
+ s(S) ? (i(), I(Et, { key: 8 })) : b("", !0)
785
+ ], 46, qt));
781
786
  }
782
- }, Tl = /* @__PURE__ */ Xt(vl, [["__scopeId", "data-v-703adae5"]]);
787
+ }, _l = /* @__PURE__ */ Yt(cl, [["__scopeId", "data-v-d86f47cb"]]);
783
788
  export {
784
- Tl as default
789
+ _l as default
785
790
  };