vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 (92) hide show
  1. package/README.md +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,11 +1,11 @@
1
- import { useCssVars as Ie, computed as c, defineAsyncComponent as N, ref as v, shallowRef as ye, onMounted as De, onBeforeUnmount as Re, watch as Me, createElementBlock as u, openBlock as o, unref as s, normalizeStyle as _, normalizeClass as O, createBlock as z, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as m, normalizeProps as B, guardReactiveProps as E, createVNode as Be, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ee, nextTick as Ue } from "vue";
2
- import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, G as Je, F as K, a as Ke, q as Qe, r as Ze } from "./index-CbcpITE_.js";
3
- import { u as pe } from "./useNestedProp-y56W8I7J.js";
4
- import { u as et } from "./usePrinter-u-gQiRNz.js";
1
+ import { useCssVars as Ie, computed as v, defineAsyncComponent as O, ref as d, shallowRef as ye, onMounted as De, onBeforeUnmount as Re, watch as Me, createElementBlock as u, openBlock as o, unref as s, normalizeStyle as _, normalizeClass as N, createBlock as z, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as E, createVNode as Be, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ee, nextTick as Ue } from "vue";
2
+ import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, G as Je, F as K, a as Ke, q as Qe, r as Ze } from "./index-BzQ0j5xI.js";
3
+ import { u as pe } from "./useNestedProp-DqpZEE3h.js";
4
+ import { u as et } from "./usePrinter-CpG5jh_z.js";
5
5
  import { t as tt, u as at } from "./useResponsive-JZ9xq-JV.js";
6
6
  import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as st } from "./useChartAccessibility-9icAAmYg.js";
8
- import ot from "./Title-Dx8ctnVy.js";
8
+ import ot from "./Title-CJcZXNtK.js";
9
9
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], dt = ["stop-color"], ht = ["stop-color"], ft = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["points", "fill"], gt = ["stroke", "stroke-width", "rx"], pt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = {
11
11
  key: 5,
@@ -28,15 +28,15 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
28
28
  },
29
29
  setup(ke, { expose: Ce }) {
30
30
  Ie((t) => ({
31
- "34edcc02": Pe.value
31
+ "0918d580": Pe.value
32
32
  }));
33
- const we = N(() => import("./vue-ui-accordion-BkA7rtwr.js")), $e = N(() => import("./DataTable-CsoAI95B.js")), xe = N(() => import("./PackageVersion-DCAZ9Z7V.js")), _e = N(() => import("./PenAndPaper-B9RP4oFj.js")), Le = N(() => import("./vue-ui-skeleton-miKWlCAi.js")), Ae = N(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_funnel: Te } = Ge(), y = ke, R = v(null), S = v(je()), Q = v(0), Z = v(0), ee = v(0), te = v(null), ae = v(null), le = v(null), C = ye(null), L = ye(null), $ = v(!1), A = c(() => !!y.dataset && y.dataset.length);
33
+ const we = O(() => import("./vue-ui-accordion-bpaEpjqI.js")), $e = O(() => import("./DataTable-CmbjnjRg.js")), xe = O(() => import("./PackageVersion-OcbP0WH2.js")), _e = O(() => import("./PenAndPaper-BgPXmpGI.js")), Le = O(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ae = O(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_funnel: Te } = Ge(), m = ke, R = d(null), S = d(je()), Q = d(0), Z = d(0), ee = d(0), te = d(null), ae = d(null), le = d(null), C = ye(null), L = ye(null), $ = d(!1), A = v(() => !!m.dataset && m.dataset.length);
34
34
  De(se);
35
35
  function se() {
36
- if (He(y.dataset) ? ge({
36
+ if (He(m.dataset) ? ge({
37
37
  componentName: "VueUiFunnel",
38
38
  type: "dataset"
39
- }) : y.dataset.forEach((t, l) => {
39
+ }) : m.dataset.forEach((t, l) => {
40
40
  Xe({
41
41
  datasetObject: t,
42
42
  requiredAttributes: ["name", "value"]
@@ -57,19 +57,19 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
57
57
  noTitle: te.value
58
58
  });
59
59
  requestAnimationFrame(() => {
60
- i.value.height = a, i.value.width = l, k.value = he(), e.value.responsiveProportionalSizing && (d.value.circles = K({
60
+ i.value.height = a, i.value.width = l, k.value = he(), e.value.responsiveProportionalSizing && (h.value.circles = K({
61
61
  relator: Math.min(l, a),
62
62
  adjuster: 600,
63
63
  source: e.value.style.chart.circles.dataLabels.fontSize,
64
64
  threshold: 10,
65
65
  fallback: 10
66
- }), d.value.names = K({
66
+ }), h.value.names = K({
67
67
  relator: Math.min(l, a),
68
68
  adjuster: 600,
69
69
  source: e.value.style.chart.bars.dataLabels.name.fontSize,
70
70
  threshold: 10,
71
71
  fallback: 10
72
- }), d.value.values = K({
72
+ }), h.value.values = K({
73
73
  relator: Math.min(l, a),
74
74
  adjuster: 600,
75
75
  source: e.value.style.chart.bars.dataLabels.value.fontSize,
@@ -86,42 +86,42 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
86
86
  });
87
87
  function oe() {
88
88
  const t = pe({
89
- userConfig: y.config,
89
+ userConfig: m.config,
90
90
  defaultConfig: Te
91
91
  });
92
92
  return t.theme ? {
93
93
  ...pe({
94
- userConfig: Ke.vue_ui_funnel[t.theme] || y.config,
94
+ userConfig: Ke.vue_ui_funnel[t.theme] || m.config,
95
95
  defaultConfig: t
96
96
  })
97
97
  } : t;
98
98
  }
99
- const e = c({
99
+ const e = v({
100
100
  get: () => oe(),
101
101
  set: (t) => t
102
102
  }), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = lt({ config: e.value }), { svgRef: ue } = st({ config: e.value.style.chart.title });
103
- Me(() => y.config, (t) => {
104
- e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, d.value.circles = e.value.style.chart.circles.dataLabels.fontSize, d.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, d.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
103
+ Me(() => m.config, (t) => {
104
+ e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
105
105
  }, { deep: !0 });
106
106
  const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = et({
107
107
  elementId: `funnel_${S.value}`,
108
108
  fileName: e.value.style.chart.title.text || "vue-ui-funnel",
109
109
  options: e.value.userOptions.print
110
- }), Ne = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = v({
110
+ }), Oe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
111
111
  showTable: e.value.table.show
112
- }), d = v({
112
+ }), h = d({
113
113
  circles: e.value.style.chart.circles.dataLabels.fontSize,
114
114
  names: e.value.style.chart.bars.dataLabels.name.fontSize,
115
115
  values: e.value.style.chart.bars.dataLabels.value.fontSize
116
- }), i = c({
116
+ }), i = v({
117
117
  get: () => ({
118
118
  height: e.value.style.chart.height,
119
119
  width: e.value.style.chart.width
120
120
  }),
121
121
  set: (t) => t
122
- }), p = c(() => A.value ? y.dataset.map((t, l) => ({
122
+ }), p = v(() => A.value ? m.dataset.map((t, l) => ({
123
123
  ...t,
124
- color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
124
+ color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
125
125
  })) : []);
126
126
  setTimeout(() => {
127
127
  $.value = !0;
@@ -137,8 +137,8 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
137
137
  height: i.value.height - l - e.value.style.chart.padding.bottom
138
138
  };
139
139
  }
140
- const k = v(he()), T = c(() => k.value.height / y.dataset.length), x = c(() => T.value * e.value.style.chart.bars.gapRatio), fe = c(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = c(() => p.value.map((t, l) => {
141
- const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2, b = t.value / p.value[0].value, h = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
140
+ const k = d(he()), T = v(() => k.value.height / m.dataset.length), x = v(() => T.value * e.value.style.chart.bars.gapRatio), fe = v(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = v(() => p.value.map((t, l) => {
141
+ const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2, y = t.value / p.value[0].value, c = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
142
142
  return {
143
143
  ...t,
144
144
  cx: k.value.left + a / 2,
@@ -146,65 +146,65 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
146
146
  datapointIndex: l,
147
147
  fill: t.color,
148
148
  height: Math.max(a, 0),
149
- proportion: b,
149
+ proportion: y,
150
150
  r: Math.max(a / 2, 0),
151
- width: Math.max(h, 0),
151
+ width: Math.max(c, 0),
152
152
  x: k.value.left + a + fe.value,
153
153
  y: n
154
154
  };
155
- })), Oe = c(() => {
155
+ })), Ne = v(() => {
156
156
  const t = r.value.map((l) => `${l.x + l.width},${l.y + (T.value - x.value) / 2}`);
157
157
  return `${r.value[0].x},${r.value[0].y + (T.value - x.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (T.value - x.value) / 2}`;
158
- }), ze = c(() => ({
158
+ }), ze = v(() => ({
159
159
  x1: r.value[0].cx,
160
160
  y1: r.value[0].cy,
161
161
  x2: r.value.at(-1).cx,
162
162
  y2: r.value.at(-1).cy
163
- })), F = v(!1);
163
+ })), F = d(!1);
164
164
  function Se(t) {
165
165
  F.value = t, Q.value += 1;
166
166
  }
167
- const Pe = c(() => `${p.value.length * 150}ms`), M = v(!1);
167
+ const Pe = v(() => `${p.value.length * 150}ms`), M = d(!1);
168
168
  function Y() {
169
169
  M.value = !M.value;
170
170
  }
171
171
  function be() {
172
172
  P.value.showTable = !P.value.showTable;
173
173
  }
174
- const I = c(() => {
174
+ const I = v(() => {
175
175
  const t = p.value.map((a) => ({
176
176
  name: a.name,
177
177
  color: a.color
178
178
  })), l = p.value.map((a) => a.value);
179
179
  return { head: t, body: l };
180
- }), V = c(() => {
180
+ }), V = v(() => {
181
181
  const t = [
182
182
  e.value.table.columnNames.series,
183
183
  e.value.table.columnNames.value,
184
184
  e.value.table.columnNames.percentage
185
- ], l = I.value.head.map((b, h) => {
185
+ ], l = I.value.head.map((y, c) => {
186
186
  const D = H(
187
187
  e.value.style.chart.bars.dataLabels.value.formatter,
188
- I.value.body[h],
188
+ I.value.body[c],
189
189
  X({
190
190
  p: e.value.style.chart.bars.dataLabels.value.prefix,
191
- v: I.value.body[h],
191
+ v: I.value.body[c],
192
192
  s: e.value.style.chart.bars.dataLabels.value.suffix,
193
193
  r: e.value.table.td.roundingValue
194
194
  }),
195
- { datapoint: r.value[h] }
195
+ { datapoint: r.value[c] }
196
196
  ), W = H(
197
197
  e.value.style.chart.circles.dataLabels.formatter,
198
- r.value[h].proportion * 100,
198
+ r.value[c].proportion * 100,
199
199
  X({
200
- v: r.value[h].proportion * 100,
200
+ v: r.value[c].proportion * 100,
201
201
  s: "%",
202
202
  r: e.value.table.td.roundingPercentage
203
203
  }),
204
- { datapoint: r.value[h] }
204
+ { datapoint: r.value[c] }
205
205
  );
206
206
  return [
207
- { color: b.color, name: b.name },
207
+ { color: y.color, name: y.name },
208
208
  D,
209
209
  W
210
210
  ];
@@ -232,12 +232,12 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
232
232
  config: a
233
233
  };
234
234
  });
235
- function me() {
235
+ function me(t = null) {
236
236
  Ue(() => {
237
- const t = I.value.head.map((n, b) => [[
238
- n.name
239
- ], [I.value.body[b]], [r.value[b].proportion * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(t), a = Qe(l);
240
- Ze({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-funnel" });
237
+ const l = I.value.head.map((y, c) => [[
238
+ y.name
239
+ ], [I.value.body[c]], [r.value[c].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), n = Qe(a);
240
+ t ? t(n) : Ze({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-funnel" });
241
241
  });
242
242
  }
243
243
  function Fe() {
@@ -253,7 +253,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
253
253
  }), (t, l) => (o(), u("div", {
254
254
  ref_key: "funnelChart",
255
255
  ref: R,
256
- class: O(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
256
+ class: N(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
257
257
  style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
258
258
  id: `funnel_${S.value}`,
259
259
  onMouseenter: l[1] || (l[1] = () => s(ne)(!0)),
@@ -267,7 +267,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
267
267
  active: M.value,
268
268
  onClose: Y
269
269
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
270
- Ne.value ? (o(), u("div", {
270
+ Oe.value ? (o(), u("div", {
271
271
  key: 1,
272
272
  ref_key: "noTitle",
273
273
  ref: te,
@@ -315,6 +315,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
315
315
  titles: { ...e.value.userOptions.buttonTitles },
316
316
  hasAnnotator: e.value.userOptions.buttons.annotator,
317
317
  isAnnotation: M.value,
318
+ callbacks: e.value.userOptions.callbacks,
318
319
  onToggleAnnotator: Y,
319
320
  onToggleFullscreen: Se,
320
321
  onGeneratePdf: s(ve),
@@ -328,59 +329,59 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
328
329
  t.$slots.menuIcon ? {
329
330
  name: "menuIcon",
330
331
  fn: g(({ isOpen: a, color: n }) => [
331
- m(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
332
+ b(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
332
333
  ]),
333
334
  key: "0"
334
335
  } : void 0,
335
336
  t.$slots.optionPdf ? {
336
337
  name: "optionPdf",
337
338
  fn: g(() => [
338
- m(t.$slots, "optionPdf", {}, void 0, !0)
339
+ b(t.$slots, "optionPdf", {}, void 0, !0)
339
340
  ]),
340
341
  key: "1"
341
342
  } : void 0,
342
343
  t.$slots.optionCsv ? {
343
344
  name: "optionCsv",
344
345
  fn: g(() => [
345
- m(t.$slots, "optionCsv", {}, void 0, !0)
346
+ b(t.$slots, "optionCsv", {}, void 0, !0)
346
347
  ]),
347
348
  key: "2"
348
349
  } : void 0,
349
350
  t.$slots.optionImg ? {
350
351
  name: "optionImg",
351
352
  fn: g(() => [
352
- m(t.$slots, "optionImg", {}, void 0, !0)
353
+ b(t.$slots, "optionImg", {}, void 0, !0)
353
354
  ]),
354
355
  key: "3"
355
356
  } : void 0,
356
357
  t.$slots.optionTable ? {
357
358
  name: "optionTable",
358
359
  fn: g(() => [
359
- m(t.$slots, "optionTable", {}, void 0, !0)
360
+ b(t.$slots, "optionTable", {}, void 0, !0)
360
361
  ]),
361
362
  key: "4"
362
363
  } : void 0,
363
364
  t.$slots.optionFullscreen ? {
364
365
  name: "optionFullscreen",
365
366
  fn: g(({ toggleFullscreen: a, isFullscreen: n }) => [
366
- m(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
367
+ b(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
367
368
  ]),
368
369
  key: "5"
369
370
  } : void 0,
370
371
  t.$slots.optionAnnotator ? {
371
372
  name: "optionAnnotator",
372
373
  fn: g(({ toggleAnnotator: a, isAnnotator: n }) => [
373
- m(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
374
+ b(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
374
375
  ]),
375
376
  key: "6"
376
377
  } : void 0
377
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
378
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
378
379
  A.value ? (o(), u("svg", {
379
380
  key: 4,
380
381
  ref_key: "svgRef",
381
382
  ref: ue,
382
383
  xmlns: s(We),
383
- class: O({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
384
+ class: N({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
384
385
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
385
386
  style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
386
387
  }, [
@@ -395,7 +396,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
395
396
  pointerEvents: "none"
396
397
  }
397
398
  }, [
398
- m(t.$slots, "chart-background", {}, void 0, !0)
399
+ b(t.$slots, "chart-background", {}, void 0, !0)
399
400
  ], 8, it)) : f("", !0),
400
401
  w("defs", null, [
401
402
  w("linearGradient", {
@@ -432,7 +433,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
432
433
  strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
433
434
  }
434
435
  }), null, 16, ft)) : f("", !0),
435
- (o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: b, fill: h }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: b, fill: h }, {
436
+ (o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: y, fill: c }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: y, fill: c }, {
436
437
  stroke: e.value.style.chart.circles.stroke,
437
438
  "stroke-width": e.value.style.chart.circles.strokeWidth,
438
439
  class: {
@@ -444,12 +445,12 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
444
445
  }), null, 16, bt))), 256)),
445
446
  (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("text", {
446
447
  x: a.cx,
447
- y: a.cy + d.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
448
+ y: a.cy + h.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
448
449
  "text-anchor": "middle",
449
- "font-size": d.value.circles,
450
+ "font-size": h.value.circles,
450
451
  fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Je)(a.color) : e.value.style.chart.circles.dataLabels.color,
451
452
  "font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
452
- class: O({
453
+ class: N({
453
454
  animated: e.value.useCssAnimation && !$.value
454
455
  }),
455
456
  style: _({
@@ -467,16 +468,16 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
467
468
  )), 15, mt))), 256)),
468
469
  e.value.style.chart.area.show ? (o(), u("polygon", {
469
470
  key: 2,
470
- points: Oe.value,
471
+ points: Ne.value,
471
472
  fill: `url(#funnel_area_${S.value})`,
472
- class: O({
473
+ class: N({
473
474
  animated: e.value.useCssAnimation && !$.value
474
475
  }),
475
476
  style: _({
476
477
  transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
477
478
  })
478
479
  }, null, 14, yt)) : f("", !0),
479
- (o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: b, width: h, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: b, width: h, fill: D }, {
480
+ (o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: y, width: c, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: y, width: c, fill: D }, {
480
481
  stroke: e.value.style.chart.bars.stroke,
481
482
  "stroke-width": e.value.style.chart.bars.strokeWidth,
482
483
  rx: e.value.style.chart.bars.borderRadius,
@@ -490,12 +491,12 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
490
491
  (o(!0), u(U, null, G(r.value, (a, n) => (o(), u("g", null, [
491
492
  w("text", {
492
493
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
493
- y: a.cy - d.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
494
+ y: a.cy - h.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
494
495
  "text-anchor": "start",
495
- "font-size": d.value.names,
496
+ "font-size": h.value.names,
496
497
  fill: e.value.style.chart.bars.dataLabels.name.color,
497
498
  "font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
498
- class: O({
499
+ class: N({
499
500
  animated: e.value.useCssAnimation && !$.value
500
501
  }),
501
502
  style: _({
@@ -504,12 +505,12 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
504
505
  }, j(a.name), 15, pt),
505
506
  w("text", {
506
507
  x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
507
- y: a.cy + d.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
508
+ y: a.cy + h.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
508
509
  "text-anchor": "start",
509
- "font-size": d.value.values,
510
+ "font-size": h.value.values,
510
511
  fill: e.value.style.chart.bars.dataLabels.value.color,
511
512
  "font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
512
- class: O({
513
+ class: N({
513
514
  animated: e.value.useCssAnimation && !$.value
514
515
  }),
515
516
  style: _({
@@ -527,10 +528,10 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
527
528
  { datapoint: a }
528
529
  )), 15, kt)
529
530
  ]))), 256)),
530
- m(t.$slots, "svg", { svg: i.value }, void 0, !0)
531
+ b(t.$slots, "svg", { svg: i.value }, void 0, !0)
531
532
  ], 14, ut)) : f("", !0),
532
533
  t.$slots.watermark ? (o(), u("div", Ct, [
533
- m(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
534
+ b(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
534
535
  ])) : f("", !0),
535
536
  A.value ? f("", !0) : (o(), z(s(Le), {
536
537
  key: 6,
@@ -553,7 +554,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
553
554
  ref: ae,
554
555
  dir: "auto"
555
556
  }, [
556
- m(t.$slots, "source", {}, void 0, !0)
557
+ b(t.$slots, "source", {}, void 0, !0)
557
558
  ], 512)) : f("", !0),
558
559
  A.value ? (o(), z(s(we), {
559
560
  key: 8,
@@ -597,7 +598,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
597
598
  }, 8, ["config"])) : f("", !0)
598
599
  ], 46, rt));
599
600
  }
600
- }, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-6edc5cb1"]]);
601
+ }, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-f6eb5104"]]);
601
602
  export {
602
603
  Pt as default
603
604
  };