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,12 +1,12 @@
1
- import { defineAsyncComponent as x, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as T, createCommentVNode as g, createElementVNode as A, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as I, guardReactiveProps as S, Fragment as D, renderList as L, toDisplayString as F, createTextVNode as at, nextTick as lt } from "vue";
2
- import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-CbcpITE_.js";
1
+ import { defineAsyncComponent as T, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as O, createCommentVNode as g, createElementVNode as I, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as S, guardReactiveProps as F, Fragment as D, renderList as L, toDisplayString as M, createTextVNode as at, nextTick as lt } from "vue";
2
+ import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-BzQ0j5xI.js";
3
3
  import { t as gt, u as pt } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as _e } from "./useNestedProp-y56W8I7J.js";
5
- import { u as yt } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as _e } from "./useNestedProp-DqpZEE3h.js";
5
+ import { u as yt } from "./usePrinter-CpG5jh_z.js";
6
6
  import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
8
- import kt from "./Title-Dx8ctnVy.js";
9
- import wt from "./Legend-ZW-PFcHg.js";
8
+ import kt from "./Title-CJcZXNtK.js";
9
+ import wt from "./Legend-YPYnzTBz.js";
10
10
  import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], _t = ["id"], At = ["stdDeviation"], It = ["filter"], St = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Mt = { key: 2 }, Rt = ["onMouseenter"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Dt = {
12
12
  key: 5,
@@ -29,7 +29,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
29
29
  },
30
30
  emits: ["selectLegend"],
31
31
  setup(Ae, { expose: Ie, emit: Se }) {
32
- const Fe = x(() => import("./vue-ui-accordion-BkA7rtwr.js")), Me = x(() => import("./DataTable-CsoAI95B.js")), Re = x(() => import("./PackageVersion-DCAZ9Z7V.js")), Ne = x(() => import("./PenAndPaper-B9RP4oFj.js")), De = x(() => import("./vue-ui-skeleton-miKWlCAi.js")), Le = x(() => import("./Tooltip-COHlzpZI.js")), Ve = x(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), O = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), M = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
32
+ const Fe = T(() => import("./vue-ui-accordion-bpaEpjqI.js")), Me = T(() => import("./DataTable-CmbjnjRg.js")), Re = T(() => import("./PackageVersion-OcbP0WH2.js")), Ne = T(() => import("./PenAndPaper-BgPXmpGI.js")), De = T(() => import("./vue-ui-skeleton-CavMQlAm.js")), Le = T(() => import("./Tooltip-dXp8FaUj.js")), Ve = T(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), P = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), R = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
33
33
  get: () => de(),
34
34
  set: (t) => t
35
35
  }), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = mt({ config: e.value }), { svgRef: ve } = bt({ config: e.value.style.chart.title });
@@ -50,7 +50,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
50
50
  e.value = de(), H.value = !e.value.userOptions.showOnChartHover, ye(), se.value += 1, re.value += 1, ue.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
51
51
  }, { deep: !0 });
52
52
  const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } = yt({
53
- elementId: `vue-ui-onion_${O.value}`,
53
+ elementId: `vue-ui-onion_${P.value}`,
54
54
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
55
55
  options: e.value.userOptions.print
56
56
  }), Be = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => ut(e.value.customPalette)), m = u({
@@ -66,7 +66,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
66
66
  bottom: 64
67
67
  },
68
68
  minRadius: 64
69
- }), $ = xe(null), P = xe(null);
69
+ }), $ = xe(null), _ = xe(null);
70
70
  Ze(() => {
71
71
  ye();
72
72
  });
@@ -77,7 +77,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
77
77
  }), e.value.responsive) {
78
78
  const o = gt(() => {
79
79
  const { width: a, height: l } = pt({
80
- chart: M.value,
80
+ chart: R.value,
81
81
  title: e.value.style.chart.title.text ? ae.value : null,
82
82
  legend: e.value.style.chart.legend.show ? le.value : null,
83
83
  source: oe.value,
@@ -87,11 +87,11 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
87
87
  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;
88
88
  });
89
89
  });
90
- $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(o), P.value = M.value.parentNode, $.value.observe(P.value);
90
+ $.value && (_.value && $.value.unobserve(_.value), $.value.disconnect()), $.value = new ResizeObserver(o), _.value = R.value.parentNode, $.value.observe(_.value);
91
91
  }
92
92
  }
93
93
  et(() => {
94
- $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
94
+ $.value && (_.value && $.value.unobserve(_.value), $.value.disconnect());
95
95
  });
96
96
  const c = h(() => ({
97
97
  top: n.value.padding.top,
@@ -117,7 +117,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
117
117
  index: o
118
118
  });
119
119
  }), w.dataset.map((t, o) => {
120
- const a = `onion_serie_${o}_${O.value}`;
120
+ const a = `onion_serie_${o}_${P.value}`;
121
121
  return {
122
122
  ...t,
123
123
  percentage: t.percentage || 0,
@@ -130,24 +130,24 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
130
130
  segregate: () => me(a),
131
131
  isSegregated: y.value.includes(a)
132
132
  };
133
- }))), R = u(d.value), Ue = h(() => e.value.useStartAnimation), Ge = u(null), Ee = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
133
+ }))), N = u(d.value), Ue = h(() => e.value.useStartAnimation), Ge = u(null), Ee = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
134
134
  Ce(() => d.value, He, { immediate: !0 });
135
135
  function He() {
136
136
  if (Ue.value && !W.value) {
137
137
  let o = function() {
138
- t >= Ee.value ? (cancelAnimationFrame(Ge.value), R.value = d.value, W.value = !0) : (R.value = d.value.map((a) => ({
138
+ t >= Ee.value ? (cancelAnimationFrame(Ge.value), N.value = d.value, W.value = !0) : (N.value = d.value.map((a) => ({
139
139
  ...a,
140
140
  percentage: t < a.targetPercentage ? t : a.targetPercentage
141
141
  })), t += 1, requestAnimationFrame(o), W.value = !0);
142
142
  };
143
- R.value = d.value.map((a) => ({
143
+ N.value = d.value.map((a) => ({
144
144
  ...a,
145
145
  percentage: 0
146
146
  }));
147
147
  let t = 0;
148
148
  o();
149
149
  } else
150
- R.value = d.value;
150
+ N.value = d.value;
151
151
  }
152
152
  const We = h(() => ({
153
153
  cy: "onion-div-legend",
@@ -156,14 +156,14 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
156
156
  fontSize: e.value.style.chart.legend.fontSize,
157
157
  paddingBottom: 12,
158
158
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
159
- })), je = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), C = h(() => {
159
+ })), je = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), x = h(() => {
160
160
  const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
161
161
  return {
162
162
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
163
163
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
164
164
  };
165
- }), b = h(() => R.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
166
- const a = (c.value.maxRadius - C.value.track) / je.value / 2 * (1 + o), l = c.value.centerY - a;
165
+ }), b = h(() => N.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
166
+ const a = (c.value.maxRadius - x.value.track) / je.value / 2 * (1 + o), l = c.value.centerY - a;
167
167
  return {
168
168
  percentage: t.percentage || 0,
169
169
  ...t,
@@ -173,12 +173,12 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
173
173
  };
174
174
  }));
175
175
  function qe(t, o) {
176
- const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, N = l * (1 - o / 100);
176
+ const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, C = l * (1 - o / 100);
177
177
  return {
178
178
  bgDashArray: `${l} ${a}`,
179
179
  bgDashOffset: 0,
180
180
  dashArray: p,
181
- dashOffset: N,
181
+ dashOffset: C,
182
182
  fullOffset: 0,
183
183
  active: `
184
184
  M ${c.value.centerX},${c.value.centerY - t}
@@ -221,15 +221,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
221
221
  };
222
222
  return { head: t, body: o, config: a, colNames: t };
223
223
  });
224
- function be() {
224
+ function be(t = null) {
225
225
  lt(() => {
226
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = j.value.head, a = j.value.body, l = t.concat([o]).concat(a), p = dt(l);
227
- ht({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
226
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = j.value.head, l = j.value.body, p = o.concat([a]).concat(l), C = dt(p);
227
+ t ? t(C) : ht({ csvContent: C, title: e.value.style.chart.title.text || "vue-ui-onion" });
228
228
  });
229
229
  }
230
- const k = u(void 0), _ = u(!1);
230
+ const k = u(void 0), A = u(!1);
231
231
  function Qe(t) {
232
- _.value = t, te.value += 1;
232
+ A.value = t, te.value += 1;
233
233
  }
234
234
  const q = u(null);
235
235
  function ke({ datapoint: t, seriesIndex: o, show: a = !0 }) {
@@ -241,14 +241,14 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
241
241
  config: e.value
242
242
  }, Y.value = a;
243
243
  let p = "";
244
- const N = e.value.style.chart.tooltip.customFormat;
245
- if (Pe(N) && ft(() => N({
244
+ const C = e.value.style.chart.tooltip.customFormat;
245
+ if (Pe(C) && ft(() => C({
246
246
  seriesIndex: l,
247
247
  datapoint: t,
248
248
  series: d.value,
249
249
  config: e.value
250
250
  })))
251
- E.value = N({
251
+ E.value = C({
252
252
  seriesIndex: l,
253
253
  datapoint: t,
254
254
  series: d.value,
@@ -288,15 +288,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
288
288
  toggleTooltip: $e,
289
289
  toggleAnnotator: J
290
290
  }), (t, o) => (s(), i("div", {
291
- class: G(`vue-ui-onion ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
291
+ class: G(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
292
292
  ref_key: "onionChart",
293
- ref: M,
294
- id: `vue-ui-onion_${O.value}`,
293
+ ref: R,
294
+ id: `vue-ui-onion_${P.value}`,
295
295
  style: U(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
296
296
  onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
297
297
  onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
298
298
  }, [
299
- e.value.userOptions.buttons.annotator ? (s(), T(r(Ne), {
299
+ e.value.userOptions.buttons.annotator ? (s(), O(r(Ne), {
300
300
  key: 0,
301
301
  svgRef: r(ve),
302
302
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -317,7 +317,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
317
317
  ref: ae,
318
318
  style: "width:100%;background:transparent"
319
319
  }, [
320
- (s(), T(kt, {
320
+ (s(), O(kt, {
321
321
  key: `title_${se.value}`,
322
322
  config: {
323
323
  title: {
@@ -331,7 +331,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
331
331
  }
332
332
  }, null, 8, ["config"]))
333
333
  ], 512)) : g("", !0),
334
- e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), T(r(Ve), {
334
+ e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), O(r(Ve), {
335
335
  ref_key: "details",
336
336
  ref: Ye,
337
337
  key: `user_options${te.value}`,
@@ -339,20 +339,21 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
339
339
  color: e.value.style.chart.color,
340
340
  isImaging: r(fe),
341
341
  isPrinting: r(he),
342
- uid: O.value,
342
+ uid: P.value,
343
343
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
344
344
  hasPdf: e.value.userOptions.buttons.pdf,
345
345
  hasImg: e.value.userOptions.buttons.img,
346
346
  hasXls: e.value.userOptions.buttons.csv,
347
347
  hasTable: e.value.userOptions.buttons.table,
348
348
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
349
- isFullscreen: _.value,
349
+ isFullscreen: A.value,
350
350
  isTooltip: m.value.showTooltip,
351
351
  titles: { ...e.value.userOptions.buttonTitles },
352
- chartElement: M.value,
352
+ chartElement: R.value,
353
353
  position: e.value.userOptions.position,
354
354
  hasAnnotator: e.value.userOptions.buttons.annotator,
355
355
  isAnnotation: X.value,
356
+ callbacks: e.value.userOptions.callbacks,
356
357
  onToggleFullscreen: Qe,
357
358
  onGeneratePdf: r(ge),
358
359
  onGenerateCsv: be,
@@ -367,7 +368,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
367
368
  t.$slots.menuIcon ? {
368
369
  name: "menuIcon",
369
370
  fn: f(({ isOpen: a, color: l }) => [
370
- v(t.$slots, "menuIcon", I(S({ isOpen: a, color: l })), void 0, !0)
371
+ v(t.$slots, "menuIcon", S(F({ isOpen: a, color: l })), void 0, !0)
371
372
  ]),
372
373
  key: "0"
373
374
  } : void 0,
@@ -409,24 +410,24 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
409
410
  t.$slots.optionFullscreen ? {
410
411
  name: "optionFullscreen",
411
412
  fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
412
- v(t.$slots, "optionFullscreen", I(S({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
413
+ v(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
413
414
  ]),
414
415
  key: "6"
415
416
  } : void 0,
416
417
  t.$slots.optionAnnotator ? {
417
418
  name: "optionAnnotator",
418
419
  fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
419
- v(t.$slots, "optionAnnotator", I(S({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
420
+ v(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
420
421
  ]),
421
422
  key: "7"
422
423
  } : void 0
423
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
424
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
424
425
  z.value ? (s(), i("svg", {
425
426
  key: 4,
426
427
  ref_key: "svgRef",
427
428
  ref: ve,
428
429
  xmlns: r(vt),
429
- class: G({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
430
+ class: G({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
430
431
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
431
432
  style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
432
433
  }, [
@@ -448,7 +449,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
448
449
  cy: c.value.centerY,
449
450
  r: a.radius <= 0 ? 1e-4 : a.radius,
450
451
  stroke: e.value.style.chart.layout.gutter.color,
451
- "stroke-width": C.value.gutter,
452
+ "stroke-width": x.value.gutter,
452
453
  fill: "none",
453
454
  "stroke-dasharray": a.path.bgDashArray,
454
455
  "stroke-dashoffset": a.path.fullOffset,
@@ -461,7 +462,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
461
462
  cy: c.value.centerY,
462
463
  r: a.radius < 0 ? 1e-4 : a.radius,
463
464
  stroke: `${a.color}`,
464
- "stroke-width": C.value.track,
465
+ "stroke-width": x.value.track,
465
466
  fill: "none",
466
467
  "stroke-dasharray": a.path.dashArray,
467
468
  "stroke-dashoffset": a.path.dashOffset,
@@ -469,15 +470,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
469
470
  "stroke-linecap": "round",
470
471
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
471
472
  }, null, 10, Pt))), 256)),
472
- A("defs", null, [
473
- A("filter", {
474
- id: `blur_${O.value}`,
473
+ I("defs", null, [
474
+ I("filter", {
475
+ id: `blur_${P.value}`,
475
476
  x: "-50%",
476
477
  y: "-50%",
477
478
  width: "200%",
478
479
  height: "200%"
479
480
  }, [
480
- A("feGaussianBlur", {
481
+ I("feGaussianBlur", {
481
482
  in: "SourceGraphic",
482
483
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
483
484
  }, null, 8, At)
@@ -485,14 +486,14 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
485
486
  ]),
486
487
  e.value.style.chart.useGradient ? (s(), i("g", {
487
488
  key: 1,
488
- filter: `url(#blur_${O.value})`
489
+ filter: `url(#blur_${P.value})`
489
490
  }, [
490
491
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
491
492
  cx: c.value.centerX,
492
493
  cy: c.value.centerY,
493
494
  r: a.radius <= 0 ? 1e-4 : a.radius,
494
495
  stroke: "white",
495
- "stroke-width": C.value.track / 3,
496
+ "stroke-width": x.value.track / 3,
496
497
  fill: "none",
497
498
  "stroke-linecap": "round",
498
499
  "stroke-dasharray": a.path.dashArray,
@@ -505,7 +506,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
505
506
  cy: c.value.centerY,
506
507
  r: a.radius <= 0 ? 1e-4 : a.radius,
507
508
  stroke: "transparent",
508
- "stroke-width": Math.max(C.value.track, C.value.gutter),
509
+ "stroke-width": Math.max(x.value.track, x.value.gutter),
509
510
  fill: "none",
510
511
  "stroke-dasharray": a.path.bgDashArray,
511
512
  "stroke-dashoffset": a.path.fullOffset,
@@ -534,17 +535,17 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
534
535
  }, [
535
536
  y.value.includes(a.id) ? g("", !0) : (s(), i("text", {
536
537
  key: 0,
537
- x: n.value.width / 2 - C.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
538
+ x: n.value.width / 2 - x.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
538
539
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
539
540
  "text-anchor": "end",
540
541
  "font-size": e.value.style.chart.layout.labels.fontSize,
541
542
  fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
542
543
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
543
- }, F(a.name ? a.name + ": " : "") + " " + F(e.value.style.chart.layout.labels.percentage.show ? r(V)({
544
+ }, M(a.name ? a.name + ": " : "") + " " + M(e.value.style.chart.layout.labels.percentage.show ? r(V)({
544
545
  v: a.percentage,
545
546
  s: "%",
546
547
  r: e.value.style.chart.layout.labels.roundingPercentage
547
- }) : "") + " " + F(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
548
+ }) : "") + " " + M(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
548
549
  e.value.style.chart.layout.labels.value.formatter,
549
550
  a.value,
550
551
  r(V)({
@@ -570,9 +571,9 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
570
571
  v(t.$slots, "svg", { svg: n.value }, void 0, !0)
571
572
  ], 14, xt)) : g("", !0),
572
573
  t.$slots.watermark ? (s(), i("div", Dt, [
573
- v(t.$slots, "watermark", I(S({ isPrinting: r(he) || r(fe) })), void 0, !0)
574
+ v(t.$slots, "watermark", S(F({ isPrinting: r(he) || r(fe) })), void 0, !0)
574
575
  ])) : g("", !0),
575
- z.value ? g("", !0) : (s(), T(r(De), {
576
+ z.value ? g("", !0) : (s(), O(r(De), {
576
577
  key: 6,
577
578
  config: {
578
579
  type: "onion",
@@ -584,22 +585,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
584
585
  }
585
586
  }
586
587
  }, null, 8, ["config"])),
587
- A("div", {
588
+ I("div", {
588
589
  ref_key: "chartLegend",
589
590
  ref: le
590
591
  }, [
591
- e.value.style.chart.legend.show ? (s(), T(wt, {
592
+ e.value.style.chart.legend.show ? (s(), O(wt, {
592
593
  key: `legend_${ue.value}`,
593
594
  legendSet: d.value,
594
595
  config: We.value,
595
596
  onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
596
597
  }, {
597
598
  item: f(({ legend: a }) => [
598
- A("div", {
599
+ I("div", {
599
600
  "data-cy-legend-item": "",
600
601
  onClick: (l) => a.segregate(),
601
602
  style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
602
- }, F(a.name ? a.name + ": " : "") + " " + F((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Lt)
603
+ }, M(a.name ? a.name + ": " : "") + " " + M((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Lt)
603
604
  ]),
604
605
  _: 1
605
606
  }, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
@@ -626,20 +627,20 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
626
627
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
627
628
  position: e.value.style.chart.tooltip.position,
628
629
  offsetY: e.value.style.chart.tooltip.offsetY,
629
- parent: M.value,
630
+ parent: R.value,
630
631
  content: E.value,
631
- isFullscreen: _.value,
632
+ isFullscreen: A.value,
632
633
  isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
633
634
  }, {
634
635
  "tooltip-before": f(() => [
635
- v(t.$slots, "tooltip-before", I(S({ ...q.value })), void 0, !0)
636
+ v(t.$slots, "tooltip-before", S(F({ ...q.value })), void 0, !0)
636
637
  ]),
637
638
  "tooltip-after": f(() => [
638
- v(t.$slots, "tooltip-after", I(S({ ...q.value })), void 0, !0)
639
+ v(t.$slots, "tooltip-after", S(F({ ...q.value })), void 0, !0)
639
640
  ]),
640
641
  _: 3
641
642
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
642
- z.value ? (s(), T(r(Fe), {
643
+ z.value ? (s(), O(r(Fe), {
643
644
  key: 8,
644
645
  hideDetails: "",
645
646
  config: {
@@ -656,7 +657,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
656
657
  }
657
658
  }, {
658
659
  content: f(() => [
659
- (s(), T(r(Me), {
660
+ (s(), O(r(Me), {
660
661
  key: `table_${re.value}`,
661
662
  colNames: B.value.colNames,
662
663
  head: B.value.head,
@@ -666,10 +667,10 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
666
667
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
667
668
  }, {
668
669
  th: f(({ th: a }) => [
669
- at(F(a), 1)
670
+ at(M(a), 1)
670
671
  ]),
671
672
  td: f(({ td: a }) => [
672
- A("div", { innerHTML: a }, null, 8, Vt)
673
+ I("div", { innerHTML: a }, null, 8, Vt)
673
674
  ]),
674
675
  _: 1
675
676
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -678,7 +679,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
678
679
  }, 8, ["config"])) : g("", !0)
679
680
  ], 46, Ct));
680
681
  }
681
- }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-86272e4c"]]);
682
+ }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-33f77065"]]);
682
683
  export {
683
684
  Jt as default
684
685
  };
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as P, computed as x, ref as d, watch as lt, shallowRef as _e, onMounted as ot, onBeforeUnmount as st, createElementBlock as i, openBlock as u, unref as v, normalizeStyle as T, normalizeClass as j, createBlock as _, createCommentVNode as y, createElementVNode as N, createVNode as Fe, createSlots as nt, withCtx as k, renderSlot as g, normalizeProps as V, guardReactiveProps as E, Fragment as C, renderList as F, toDisplayString as U, createTextVNode as ut } from "vue";
2
- import { u as it, c as ae, t as rt, p as X, a as ct, o as vt, e as Pe, g as dt, b as ht, d as pt, D as mt, T as yt, U as ft, V as gt, X as bt, x as Ne, F as Y, q as xt, r as kt, i as Oe, f as Se, y as wt } from "./index-CbcpITE_.js";
2
+ import { u as it, c as ae, t as rt, p as X, a as ct, o as vt, e as Pe, g as dt, b as ht, d as pt, D as mt, T as yt, U as ft, V as gt, X as bt, x as Ne, F as Y, q as xt, r as kt, i as Oe, f as Se, y as wt } from "./index-BzQ0j5xI.js";
3
3
  import { t as Ct, u as $t } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as Le } from "./useNestedProp-y56W8I7J.js";
5
- import { u as At } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as Le } from "./useNestedProp-DqpZEE3h.js";
5
+ import { u as At } from "./usePrinter-CpG5jh_z.js";
6
6
  import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
8
- import zt from "./Title-Dx8ctnVy.js";
9
- import It from "./Legend-ZW-PFcHg.js";
10
- import { _ as _t } from "./Shape-BBbhObHC.js";
8
+ import zt from "./Title-CJcZXNtK.js";
9
+ import It from "./Legend-YPYnzTBz.js";
10
+ import { _ as _t } from "./Shape-WvXjwML_.js";
11
11
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], St = { style: { "pointer-events": "none" } }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x", "y", "fill", "font-size", "font-weight"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x", "y", "fill", "font-size", "font-weight"], Et = { key: 0 }, Ut = ["x", "y", "font-size", "fill"], Wt = ["width", "x", "y"], jt = { style: { width: "100%" } }, Bt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], Ht = ["d", "stroke", "stroke-width", "onMouseenter"], Gt = ["d", "onMouseenter"], Xt = {
13
13
  key: 5,
@@ -30,7 +30,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
30
30
  },
31
31
  emits: ["selectLegend", "selectDatapoint"],
32
32
  setup(De, { expose: Re, emit: Ve }) {
33
- const Ee = P(() => import("./vue-ui-accordion-BkA7rtwr.js")), Ue = P(() => import("./DataTable-CsoAI95B.js")), We = P(() => import("./PackageVersion-DCAZ9Z7V.js")), je = P(() => import("./PenAndPaper-B9RP4oFj.js")), Be = P(() => import("./vue-ui-skeleton-miKWlCAi.js")), He = P(() => import("./Tooltip-COHlzpZI.js")), Ge = P(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_parallel_coordinate_plot: Xe } = it(), M = De, O = x({
33
+ const Ee = P(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ue = P(() => import("./DataTable-CmbjnjRg.js")), We = P(() => import("./PackageVersion-OcbP0WH2.js")), je = P(() => import("./PenAndPaper-BgPXmpGI.js")), Be = P(() => import("./vue-ui-skeleton-CavMQlAm.js")), He = P(() => import("./Tooltip-dXp8FaUj.js")), Ge = P(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_parallel_coordinate_plot: Xe } = it(), M = De, O = x({
34
34
  get() {
35
35
  return !!M.dataset && M.dataset.length;
36
36
  },
@@ -314,9 +314,9 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
314
314
  head: R.value.head,
315
315
  body: R.value.body
316
316
  });
317
- function $e() {
318
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = Ce.value.head, a = Ce.value.body, o = t.concat([l]).concat(a), n = xt(o);
319
- kt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
317
+ function $e(t = null) {
318
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ce.value.head, o = Ce.value.body, n = l.concat([a]).concat(o), s = xt(n);
319
+ t ? t(s) : kt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
320
320
  }
321
321
  const Ae = Ve;
322
322
  function et(t) {
@@ -417,6 +417,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
417
417
  position: e.value.userOptions.position,
418
418
  hasAnnotator: e.value.userOptions.buttons.annotator,
419
419
  isAnnotation: H.value,
420
+ callbacks: e.value.userOptions.callbacks,
420
421
  onToggleFullscreen: Ye,
421
422
  onGeneratePdf: v(ge),
422
423
  onGenerateCsv: $e,
@@ -485,7 +486,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
485
486
  ]),
486
487
  key: "7"
487
488
  } : void 0
488
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
489
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
489
490
  O.value ? (u(), i("svg", {
490
491
  key: 4,
491
492
  ref_key: "svgRef",
@@ -767,7 +768,7 @@ const Pt = ["id"], Nt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"]
767
768
  }, 8, ["config"])) : y("", !0)
768
769
  ], 46, Pt));
769
770
  }
770
- }, ia = /* @__PURE__ */ Ft(Jt, [["__scopeId", "data-v-6615a1e0"]]);
771
+ }, ia = /* @__PURE__ */ Ft(Jt, [["__scopeId", "data-v-8f6e8eeb"]]);
771
772
  export {
772
773
  ia as default
773
774
  };
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as B, computed as g, ref as y, watch as Ie, shallowRef as Ee, onMounted as yt, onBeforeUnmount as bt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as O, createCommentVNode as h, createElementVNode as c, createVNode as ce, createSlots as ft, withCtx as m, renderSlot as x, normalizeProps as E, guardReactiveProps as U, Fragment as C, renderList as Y, toDisplayString as L, createTextVNode as pt, nextTick as gt } from "vue";
2
- import { u as mt, c as Ue, t as xt, p as he, a as $t, o as kt, e as D, b as Lt, d as wt, W as qt, i as R, f as V, X as _t, s as oe, w as Ct, Y as St, G as zt, q as Tt, r as Wt, x as Xt, y as Yt } from "./index-CbcpITE_.js";
2
+ import { u as mt, c as Ue, t as xt, p as he, a as $t, o as kt, e as D, b as Lt, d as wt, W as qt, i as R, f as V, X as _t, s as oe, w as Ct, Y as St, G as zt, q as Tt, r as Wt, x as Xt, y as Yt } from "./index-BzQ0j5xI.js";
3
3
  import { t as At, u as Mt } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as De } from "./useNestedProp-y56W8I7J.js";
5
- import { u as Nt } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as De } from "./useNestedProp-DqpZEE3h.js";
5
+ import { u as Nt } from "./usePrinter-CpG5jh_z.js";
6
6
  import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Vt from "./Title-Dx8ctnVy.js";
9
- import Pt from "./Legend-ZW-PFcHg.js";
10
- import { _ as Ge } from "./Shape-BBbhObHC.js";
8
+ import Vt from "./Title-CJcZXNtK.js";
9
+ import Pt from "./Legend-YPYnzTBz.js";
10
+ import { _ as Ge } from "./Shape-WvXjwML_.js";
11
11
  import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "height"], Et = ["id"], Ut = ["stop-color"], Dt = ["stop-color"], Gt = { key: 1 }, Qt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Zt = { key: 2 }, Kt = ["points", "fill"], el = ["points", "fill"], tl = ["points", "fill"], ll = ["points", "fill"], al = { key: 3 }, ul = ["y", "fill", "font-size"], ol = ["x", "y", "fill", "font-size"], sl = ["x", "y", "fill", "font-size"], rl = ["y", "fill", "font-size"], nl = { key: 4 }, il = ["x", "y", "font-size", "fill"], vl = ["x", "y", "font-size", "fill"], dl = ["x", "y", "font-size", "fill"], cl = ["id", "font-size", "transform", "fill"], hl = ["id", "font-size", "transform", "fill"], yl = ["id", "font-size", "transform", "fill"], bl = { key: 5 }, fl = ["fill", "points"], pl = ["x", "y", "width", "height"], gl = ["x", "y", "width", "height"], ml = ["x", "y", "width", "height"], xl = ["x", "y", "width", "height"], $l = {
13
13
  key: 0,
@@ -41,7 +41,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
41
41
  },
42
42
  emits: ["selectPlot", "selectSide", "selectLegend"],
43
43
  setup(Qe, { expose: Je, emit: je }) {
44
- const Ze = B(() => import("./DataTable-CsoAI95B.js")), Ke = B(() => import("./PenAndPaper-B9RP4oFj.js")), et = B(() => import("./vue-ui-accordion-BkA7rtwr.js")), tt = B(() => import("./vue-ui-skeleton-miKWlCAi.js")), lt = B(() => import("./Tooltip-COHlzpZI.js")), at = B(() => import("./UserOptions-CGn3YdRV.js")), ut = B(() => import("./PackageVersion-DCAZ9Z7V.js")), { vue_ui_quadrant: ot } = mt(), W = Qe, K = g(() => !!W.dataset && W.dataset.length), z = y(Ue()), se = je, st = y(null), ee = y(!1), re = y(""), ye = y(0), p = y(!1), G = y(null), be = y(null), fe = y(null), pe = y(null), ge = y(null), me = y(0), xe = y(0), $e = y(0), t = g({
44
+ const Ze = B(() => import("./DataTable-CmbjnjRg.js")), Ke = B(() => import("./PenAndPaper-BgPXmpGI.js")), et = B(() => import("./vue-ui-accordion-bpaEpjqI.js")), tt = B(() => import("./vue-ui-skeleton-CavMQlAm.js")), lt = B(() => import("./Tooltip-dXp8FaUj.js")), at = B(() => import("./UserOptions-Cs7JW3dK.js")), ut = B(() => import("./PackageVersion-OcbP0WH2.js")), { vue_ui_quadrant: ot } = mt(), W = Qe, K = g(() => !!W.dataset && W.dataset.length), z = y(Ue()), se = je, st = y(null), ee = y(!1), re = y(""), ye = y(0), p = y(!1), G = y(null), be = y(null), fe = y(null), pe = y(null), ge = y(null), me = y(0), xe = y(0), $e = y(0), t = g({
45
45
  get: () => qe(),
46
46
  set: (l) => l
47
47
  }), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } = Ot({ config: t.value }), { svgRef: we } = Rt({ config: t.value.style.chart.title });
@@ -628,10 +628,10 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
628
628
  }))
629
629
  }));
630
630
  }
631
- function Ve() {
631
+ function Ve(l = null) {
632
632
  gt(() => {
633
- const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u = le.value.head, a = le.value.body, s = l.concat([u]).concat(a), r = Tt(s);
634
- Wt({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
633
+ const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a = le.value.head, s = le.value.body, r = u.concat([a]).concat(s), b = Tt(r);
634
+ l ? l(b) : Wt({ csvContent: b, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
635
635
  });
636
636
  }
637
637
  const I = y(!1);
@@ -727,6 +727,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
727
727
  position: t.value.userOptions.position,
728
728
  hasAnnotator: t.value.userOptions.buttons.annotator,
729
729
  isAnnotation: ue.value,
730
+ callbacks: t.value.userOptions.callbacks,
730
731
  onToggleFullscreen: ht,
731
732
  onGeneratePdf: i(ze),
732
733
  onGenerateCsv: Ve,
@@ -802,7 +803,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
802
803
  ]),
803
804
  key: "8"
804
805
  } : void 0
805
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
806
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
806
807
  K.value ? (o(), n("svg", {
807
808
  key: 4,
808
809
  ref_key: "svgRef",
@@ -1327,7 +1328,7 @@ const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "he
1327
1328
  }, 8, ["config"])) : h("", !0)
1328
1329
  ], 46, Ft));
1329
1330
  }
1330
- }, ta = /* @__PURE__ */ Bt(Hl, [["__scopeId", "data-v-4b9d5e51"]]);
1331
+ }, ta = /* @__PURE__ */ Bt(Hl, [["__scopeId", "data-v-b0c27f16"]]);
1331
1332
  export {
1332
1333
  ta as default
1333
1334
  };