vue-data-ui 2.16.4 → 2.16.6

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 +2 -2
  2. package/dist/{Arrow-CQWVJ5sZ.js → Arrow-DCqxVwey.js} +1 -1
  3. package/dist/{BaseDraggableDialog-Fz8fA4VM.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
  4. package/dist/{BaseIcon-CfYrW3zO.js → BaseIcon-Bn996RXm.js} +1 -1
  5. package/dist/{ColorPicker-B2ITT7Lp.js → ColorPicker-OFfLkKNb.js} +2 -2
  6. package/dist/{DataTable-C6IBsdXI.js → DataTable-CHBLjKtZ.js} +2 -2
  7. package/dist/{Legend-bIoNrGWy.js → Legend-nBXoxXJH.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-BsSwoYpL.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
  9. package/dist/{PackageVersion-DfefmcMg.js → PackageVersion-Bg_9KCU-.js} +1 -1
  10. package/dist/{PenAndPaper-CixPm-N0.js → PenAndPaper-BPTpbnay.js} +3 -3
  11. package/dist/{Shape-dKMmmbg5.js → Shape-Bnf512BA.js} +1 -1
  12. package/dist/{Slicer-szgfOkiL.js → Slicer-BrqtJG2E.js} +2 -2
  13. package/dist/{SparkTooltip-D_NmtqzO.js → SparkTooltip-C-rLATAw.js} +1 -1
  14. package/dist/{Title-DTuTBtAe.js → Title-Gi81VwUM.js} +1 -1
  15. package/dist/{Tooltip-CVPiPR9d.js → Tooltip-CJxVw7-T.js} +1 -1
  16. package/dist/{UserOptions-D8SRavqE.js → UserOptions-CBEK6_jo.js} +137 -129
  17. package/dist/{dom-to-png-Br5bL5eX.js → dom-to-png-CRHNL8VU.js} +1 -1
  18. package/dist/img-BgOg8opa.js +27 -0
  19. package/dist/{index-BsirVW_m.js → index-DvIXJm6t.js} +1 -1
  20. package/dist/{pdf-BBk37REU.js → pdf-DhTxBrbJ.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +2 -2
  23. package/dist/types/vue-data-ui.d.ts +2 -2
  24. package/dist/{useNestedProp-Ej-oqNyf.js → useNestedProp-DrYHm61t.js} +1 -1
  25. package/dist/{usePrinter-Dpd-vZym.js → usePrinter-CWnXbGMb.js} +2 -2
  26. package/dist/{vue-data-ui-Bd_shukQ.js → vue-data-ui-B8EWlMIK.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Baaeejpi.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
  29. package/dist/{vue-ui-accordion-D2TcT2US.js → vue-ui-accordion-D55kCO5G.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BW2q5yMT.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
  31. package/dist/{vue-ui-annotator-DR6dXmoQ.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
  32. package/dist/{vue-ui-bullet-BYvOXGoO.js → vue-ui-bullet-FeScjj7q.js} +23 -22
  33. package/dist/{vue-ui-candlestick-DXGY7-1u.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
  34. package/dist/{vue-ui-carousel-table-DpRdTSdS.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
  35. package/dist/{vue-ui-chestnut--uqQw5gd.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
  36. package/dist/{vue-ui-chord-C6z1Oi8y.js → vue-ui-chord-BgLbFBT9.js} +87 -86
  37. package/dist/{vue-ui-circle-pack-BgtFPkv2.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
  38. package/dist/{vue-ui-cursor-C_KZ7SW0.js → vue-ui-cursor-DWmfnM25.js} +2 -2
  39. package/dist/{vue-ui-dashboard-YSzYS59X.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
  40. package/dist/{vue-ui-digits-B6Ej5XbC.js → vue-ui-digits-BgQch3Fc.js} +2 -2
  41. package/dist/{vue-ui-donut-BYouj_X8.js → vue-ui-donut-B59bCV5_.js} +74 -73
  42. package/dist/{vue-ui-donut-evolution-DHIMoo_a.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
  43. package/dist/{vue-ui-dumbbell-rHe7aWF7.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
  44. package/dist/{vue-ui-flow-hV-6uTPS.js → vue-ui-flow-DxF0ELtv.js} +9 -8
  45. package/dist/{vue-ui-funnel-45FdkG1w.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-yg-YRwYP.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
  47. package/dist/{vue-ui-gauge-Ccf__w06.js → vue-ui-gauge-D7arhDmb.js} +8 -7
  48. package/dist/{vue-ui-gizmo-CxSBWMgK.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cz1GzvLQ.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
  50. package/dist/{vue-ui-history-plot-DChEbCv0.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
  51. package/dist/{vue-ui-kpi-D1cHw1LD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-FxoEnicn.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
  53. package/dist/{vue-ui-molecule-BvGzvTQc.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-DomwWh69.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-BrC9S0cw.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
  56. package/dist/{vue-ui-onion-YvCPFGpJ.js → vue-ui-onion-Buu4VX3u.js} +40 -39
  57. package/dist/{vue-ui-parallel-coordinate-plot-D_ji0o1R.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
  58. package/dist/{vue-ui-quadrant-B1xa2r0Q.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
  59. package/dist/{vue-ui-quick-chart-ClCOLJ5y.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
  60. package/dist/{vue-ui-radar-B460wd0h.js → vue-ui-radar-68NMPxxQ.js} +26 -25
  61. package/dist/{vue-ui-rating-D1_WFLlk.js → vue-ui-rating-swH9kRr3.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-ECKEkE2-.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
  63. package/dist/{vue-ui-ridgeline-E-1Lcv1j.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
  64. package/dist/{vue-ui-rings-BsSwSht6.js → vue-ui-rings-M-9dPI5D.js} +45 -44
  65. package/dist/{vue-ui-scatter-CVEd6_m1.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
  66. package/dist/{vue-ui-skeleton-CchtfQiJ.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
  67. package/dist/{vue-ui-smiley-CkedzX6d.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-ByPzMHci.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DoVR95AR.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B9WEsmn8.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B5Ub1nsA.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BqHPNt6h.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BhL0IxK5.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CuSsigBj.js → vue-ui-stackbar-BDpMsTYe.js} +277 -275
  75. package/dist/{vue-ui-strip-plot-BTqp8p9u.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
  76. package/dist/{vue-ui-table-Du7un5Fm.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-YxGFfRC3.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-Bbt4GjUn.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
  79. package/dist/{vue-ui-thermometer-Cnc4zVKO.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
  80. package/dist/{vue-ui-timer-DgVQY-BQ.js → vue-ui-timer-Bes74INL.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BTHDxycu.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
  82. package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
  83. package/dist/{vue-ui-vertical-bar-C5aombcF.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
  84. package/dist/{vue-ui-waffle-DHDmy4xh.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
  85. package/dist/{vue-ui-wheel-DmPltDq0.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
  86. package/dist/{vue-ui-word-cloud-D15rS85A.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
  87. package/dist/{vue-ui-world-9lR_bov_.js → vue-ui-world-B9PxVO4n.js} +8 -7
  88. package/dist/{vue-ui-xy-DnEdi5Hn.js → vue-ui-xy-DtJ7qJib.js} +69 -68
  89. package/dist/{vue-ui-xy-canvas-BaZZ7r1e.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
  90. package/package.json +1 -1
  91. package/dist/img-BOi0vhPf.js +0 -20
  92. package/dist/vue-ui-treemap-B96LGRM_.js +0 -952
@@ -1,19 +1,19 @@
1
1
  import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as y, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
2
- import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-BsirVW_m.js";
2
+ import { u as Lt, c as Nt, t as St, p as D, a as Pt, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-DvIXJm6t.js";
3
3
  import { t as Bt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-Ej-oqNyf.js";
5
- import { u as Dt } from "./usePrinter-Dpd-vZym.js";
4
+ import { u as je } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as Dt } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xt from "./vue-ui-accordion-D2TcT2US.js";
9
- import qe from "./Legend-bIoNrGWy.js";
10
- import Ht from "./Title-DTuTBtAe.js";
11
- import { _ as Ye } from "./Shape-dKMmmbg5.js";
8
+ import Xt from "./vue-ui-accordion-D55kCO5G.js";
9
+ import qe from "./Legend-nBXoxXJH.js";
10
+ import Ht from "./Title-Gi81VwUM.js";
11
+ import { _ as Ye } from "./Shape-Bnf512BA.js";
12
12
  import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
14
14
  key: 6,
15
15
  class: "vue-data-ui-watermark"
16
- }, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sl = {
16
+ }, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = {
17
17
  __name: "vue-ui-vertical-bar",
18
18
  props: {
19
19
  config: {
@@ -32,9 +32,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
32
32
  emits: ["selectLegend"],
33
33
  setup(Ke, { expose: Je, emit: Qe }) {
34
34
  _t((l) => ({
35
- "8661a912": l.tdo
35
+ "7fbb7b73": l.tdo
36
36
  }));
37
- const Ze = H(() => import("./BaseIcon-CfYrW3zO.js")), et = H(() => import("./PackageVersion-DfefmcMg.js")), tt = H(() => import("./PenAndPaper-CixPm-N0.js")), lt = H(() => import("./vue-ui-skeleton-CchtfQiJ.js")), at = H(() => import("./Tooltip-CVPiPR9d.js")), ot = H(() => import("./UserOptions-D8SRavqE.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
37
+ const Ze = H(() => import("./BaseIcon-Bn996RXm.js")), et = H(() => import("./PackageVersion-Bg_9KCU-.js")), tt = H(() => import("./PenAndPaper-BPTpbnay.js")), lt = H(() => import("./vue-ui-skeleton-BAOt2neL.js")), at = H(() => import("./Tooltip-CJxVw7-T.js")), ot = H(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
38
38
  get: () => Ce(),
39
39
  set: (l) => l
40
40
  }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
@@ -45,20 +45,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
45
45
  });
46
46
  return l.theme ? {
47
47
  ...je({
48
- userConfig: St.vue_ui_vertical_bar[l.theme] || T.config,
48
+ userConfig: Pt.vue_ui_vertical_bar[l.theme] || T.config,
49
49
  defaultConfig: l
50
50
  }),
51
- customPalette: Pt[l.theme] || D
51
+ customPalette: St[l.theme] || D
52
52
  } : l;
53
53
  }
54
54
  Xe(() => T.config, (l) => {
55
55
  e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, f.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
56
56
  }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
- const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
57
+ const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Dt({
58
58
  elementId: `vue-ui-vertical-bar_${C.value}`,
59
59
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
60
60
  options: e.value.userOptions.print
61
- }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
61
+ }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
62
62
  We(() => {
63
63
  Oe();
64
64
  });
@@ -121,14 +121,14 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
121
121
  id: t,
122
122
  absoluteIndex: a,
123
123
  shape: "square",
124
- opacity: P.value.includes(t) ? 0.5 : 1,
124
+ opacity: S.value.includes(t) ? 0.5 : 1,
125
125
  value: Math.abs(_),
126
126
  sign: x,
127
127
  hasChildren: o,
128
128
  isChild: !1,
129
129
  segregate: () => K(t),
130
- isSegregated: P.value.includes(t),
131
- color: ye(l.color) || Se.value[a] || D[a] || D[a % D.length],
130
+ isSegregated: S.value.includes(t),
131
+ color: ye(l.color) || Pe.value[a] || D[a] || D[a % D.length],
132
132
  children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
133
133
  ...p,
134
134
  value: N(Math.abs(p.value)),
@@ -141,7 +141,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
141
141
  parentSign: x,
142
142
  id: `vertical_child_${a}_${V}_${C.value}`,
143
143
  childIndex: V,
144
- color: ye(p.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
144
+ color: ye(p.color) || ye(l.color) || Pe.value[a] || D[a] || D[a % D.length]
145
145
  })).map((p, V) => ({
146
146
  ...p,
147
147
  isFirstChild: V === 0,
@@ -175,17 +175,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
175
175
  function le() {
176
176
  te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
177
177
  }
178
- const P = d([]);
178
+ const S = d([]);
179
179
  function K(l) {
180
- P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
180
+ S.value.includes(l) ? S.value = S.value.filter((a) => a !== l) : S.value.push(l), le(), it("selectLegend", M.value);
181
181
  }
182
- const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
182
+ const M = m(() => F.value.filter((l) => !S.value.includes(l.id))), P = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
183
  function Ae(l, a = !1, t = 0) {
184
184
  return a ? E({
185
- v: N(Math.abs(l) / S.value * 100),
185
+ v: N(Math.abs(l) / P.value * 100),
186
186
  s: "%",
187
187
  r: t
188
- }) : Math.abs(l) / S.value;
188
+ }) : Math.abs(l) / P.value;
189
189
  }
190
190
  const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
191
191
  function w(l) {
@@ -201,7 +201,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
201
201
  y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
202
  name: t.name,
203
203
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
204
- percentageToTotal: isNaN(t.value / S.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
204
+ percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
205
  sign: t.sign
206
206
  };
207
207
  }
@@ -242,7 +242,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
242
242
  }),
243
243
  { datapoint: l, seriesIndex: a }
244
244
  )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${E({
245
- v: Math.abs(l.value) / S.value * 100,
245
+ v: Math.abs(l.value) / P.value * 100,
246
246
  s: "%",
247
247
  r: e.value.style.chart.tooltip.roundingPercentage
248
248
  })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
@@ -280,11 +280,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
280
280
  color: t.color,
281
281
  parentName: t.parentName,
282
282
  parentValue: t.parentValue,
283
- percentageToTotal: t.parentValue / S.value,
283
+ percentageToTotal: t.parentValue / P.value,
284
284
  childName: t.name,
285
285
  childValue: t.sign === 1 ? t.value : -t.value,
286
286
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
287
- childPercentageToTotal: Math.abs(t.value) / S.value
287
+ childPercentageToTotal: Math.abs(t.value) / P.value
288
288
  } : {
289
289
  color: "",
290
290
  parentName: "",
@@ -293,12 +293,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
293
293
  childName: t.name,
294
294
  childValue: t.sign === 1 ? t.value : -t.value,
295
295
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
296
- childPercentageToTotal: Math.abs(t.value) / S.value
296
+ childPercentageToTotal: Math.abs(t.value) / P.value
297
297
  } : {
298
298
  color: t.color,
299
299
  parentName: t.name,
300
300
  parentValue: t.sign === 1 ? t.value : -t.value,
301
- percentageToTotal: Math.abs(t.value) / S.value,
301
+ percentageToTotal: Math.abs(t.value) / P.value,
302
302
  childName: "",
303
303
  childValue: "",
304
304
  childPercentageToParent: "",
@@ -356,7 +356,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
356
356
  recalculateHeight: le,
357
357
  generatePdf: Ne,
358
358
  generateCsv: Re,
359
- generateImage: Pe,
359
+ generateImage: Se,
360
360
  toggleTable: De,
361
361
  toggleSort: Ee,
362
362
  toggleTooltip: Ue,
@@ -429,10 +429,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
429
429
  hasAnnotator: e.value.userOptions.buttons.annotator,
430
430
  isAnnotation: oe.value,
431
431
  callbacks: e.value.userOptions.callbacks,
432
+ printScale: e.value.userOptions.print.scale,
432
433
  onToggleFullscreen: bt,
433
434
  onGeneratePdf: r(Ne),
434
435
  onGenerateCsv: Re,
435
- onGenerateImage: r(Pe),
436
+ onGenerateImage: r(Se),
436
437
  onToggleTable: De,
437
438
  onToggleSort: Ee,
438
439
  onToggleTooltip: Ue,
@@ -511,7 +512,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
511
512
  ]),
512
513
  key: "9"
513
514
  } : void 0
514
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
515
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
515
516
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
516
517
  key: 4,
517
518
  ref_key: "chartLegend",
@@ -526,7 +527,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
526
527
  item: k(({ legend: t, index: o }) => [
527
528
  n("div", {
528
529
  onClick: (_) => K(t.id),
529
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
530
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
530
531
  }, h(t.name) + ": " + h(r(ne)(
531
532
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
532
533
  t.value,
@@ -735,7 +736,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
735
736
  item: k(({ legend: t, index: o }) => [
736
737
  n("div", {
737
738
  onClick: (_) => K(t.id),
738
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
739
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
739
740
  }, h(t.name) + ": " + h(r(ne)(
740
741
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
741
742
  t.value,
@@ -775,7 +776,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
775
776
  b(l.$slots, "source", {}, void 0, !0)
776
777
  ], 512)) : y("", !0),
777
778
  Q(r(at), {
778
- show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
779
+ show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
779
780
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
780
781
  color: e.value.style.chart.tooltip.color,
781
782
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -863,7 +864,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
863
864
  }, null, 4),
864
865
  n("th", {
865
866
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
866
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
867
+ }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
867
868
  n("th", {
868
869
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
869
870
  }, "100%", 4),
@@ -939,7 +940,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
939
940
  style: c(`outline:${e.value.table.td.outline}`),
940
941
  "data-cell": L.value.head[6] ?? ""
941
942
  }, [
942
- n("div", Pl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
943
+ n("div", Sl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
943
944
  ], 12, Nl)
944
945
  ], 6))), 256))
945
946
  ])
@@ -952,7 +953,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
952
953
  }, 8, ["config"])) : y("", !0)
953
954
  ], 46, Gt));
954
955
  }
955
- }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-56a29a80"]]);
956
+ }, Xl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-fd58c8ff"]]);
956
957
  export {
957
958
  Xl as default
958
959
  };
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as B, useSlots as pt, computed as d, ref as c, watch as Me, shallowRef as De, onMounted as ft, onBeforeUnmount as yt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as Re, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ue, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ee, toDisplayString as L, createTextVNode as Ge, nextTick as gt } from "vue";
2
- import { u as bt, c as mt, t as wt, p as M, a as kt, o as xt, e as ce, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, F as St, L as Ot, d as Pt, q as At, r as Ft, x as Lt, y as zt } from "./index-BsirVW_m.js";
2
+ import { u as bt, c as mt, t as wt, p as M, a as kt, o as xt, e as ce, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, F as St, L as Ot, d as Pt, q as At, r as Ft, x as Lt, y as zt } from "./index-DvIXJm6t.js";
3
3
  import { t as Nt, u as Bt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-Ej-oqNyf.js";
5
- import { u as Vt } from "./usePrinter-Dpd-vZym.js";
4
+ import { u as je } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as Vt } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Rt from "./Title-DTuTBtAe.js";
9
- import Ut from "./Legend-bIoNrGWy.js";
10
- import { _ as Et } from "./Shape-dKMmmbg5.js";
8
+ import Rt from "./Title-Gi81VwUM.js";
9
+ import Ut from "./Legend-nBXoxXJH.js";
10
+ import { _ as Et } from "./Shape-Bnf512BA.js";
11
11
  import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], Jt = ["x", "y", "height", "width"], Kt = ["height", "width"], Qt = { key: 0 }, Zt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], el = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], tl = { key: 1 }, ll = ["rx", "x", "y", "height", "width", "fill", "filter"], al = ["x", "y", "height", "width", "filter"], ol = { key: 0 }, ul = { key: 1 }, sl = { key: 2 }, rl = { key: 3 }, nl = ["onMouseover", "x", "y", "height", "width"], il = {
13
13
  key: 5,
@@ -30,7 +30,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
30
30
  },
31
31
  emits: ["selectLegend"],
32
32
  setup(We, { expose: qe, emit: He }) {
33
- const Xe = B(() => import("./DataTable-C6IBsdXI.js")), Ye = B(() => import("./PenAndPaper-CixPm-N0.js")), Je = B(() => import("./vue-ui-accordion-D2TcT2US.js")), Ke = B(() => import("./vue-ui-skeleton-CchtfQiJ.js")), Qe = B(() => import("./Tooltip-CVPiPR9d.js")), Ze = B(() => import("./UserOptions-D8SRavqE.js")), et = B(() => import("./PackageVersion-DfefmcMg.js")), { vue_ui_waffle: tt } = bt(), m = We, lt = pt(), Q = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = c(null), ae = c(!1), oe = c(""), D = c(null), de = c(0), H = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), be = c(0), me = c(0), e = d({
33
+ const Xe = B(() => import("./DataTable-CHBLjKtZ.js")), Ye = B(() => import("./PenAndPaper-BPTpbnay.js")), Je = B(() => import("./vue-ui-accordion-D55kCO5G.js")), Ke = B(() => import("./vue-ui-skeleton-BAOt2neL.js")), Qe = B(() => import("./Tooltip-CJxVw7-T.js")), Ze = B(() => import("./UserOptions-CBEK6_jo.js")), et = B(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_waffle: tt } = bt(), m = We, lt = pt(), Q = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = c(null), ae = c(!1), oe = c(""), D = c(null), de = c(0), H = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), be = c(0), me = c(0), e = d({
34
34
  get: () => Ce(),
35
35
  set: (t) => t
36
36
  }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Mt({ config: e.value }), { svgRef: xe } = Dt({ config: e.value.style.chart.title });
@@ -477,6 +477,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
477
477
  hasAnnotator: e.value.userOptions.buttons.annotator,
478
478
  isAnnotation: le.value,
479
479
  callbacks: e.value.userOptions.callbacks,
480
+ printScale: e.value.userOptions.print.scale,
480
481
  onToggleFullscreen: ht,
481
482
  onGeneratePdf: n(Te),
482
483
  onGenerateCsv: Ne,
@@ -544,7 +545,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
544
545
  ]),
545
546
  key: "7"
546
547
  } : void 0
547
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
548
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
548
549
  Q.value ? (s(), r("svg", {
549
550
  key: 4,
550
551
  ref_key: "svgRef",
@@ -844,7 +845,7 @@ const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"],
844
845
  }, 8, ["config"])) : f("", !0)
845
846
  ], 46, jt));
846
847
  }
847
- }, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-da21b411"]]);
848
+ }, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-79c12b4f"]]);
848
849
  export {
849
850
  Il as default
850
851
  };
@@ -1,11 +1,11 @@
1
1
  import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
2
- import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-BsirVW_m.js";
2
+ import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-DvIXJm6t.js";
3
3
  import { t as Me, u as Te } from "./useResponsive-DfdjqQps.js";
4
- import { u as oe } from "./useNestedProp-Ej-oqNyf.js";
5
- import { u as Ne } from "./usePrinter-Dpd-vZym.js";
4
+ import { u as ne } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as Ne } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xe from "./Title-DTuTBtAe.js";
8
+ import Xe from "./Title-Gi81VwUM.js";
9
9
  import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
11
11
  key: 5,
@@ -26,18 +26,18 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
26
26
  }
27
27
  }
28
28
  },
29
- setup(ne, { expose: se }) {
30
- const ue = $(() => import("./PenAndPaper-CixPm-N0.js")), re = $(() => import("./vue-ui-skeleton-CchtfQiJ.js")), ie = $(() => import("./UserOptions-D8SRavqE.js")), ce = $(() => import("./PackageVersion-DfefmcMg.js")), { vue_ui_wheel: ve } = $e(), d = ne, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
29
+ setup(oe, { expose: se }) {
30
+ const ue = $(() => import("./PenAndPaper-BPTpbnay.js")), re = $(() => import("./vue-ui-skeleton-BAOt2neL.js")), ie = $(() => import("./UserOptions-CBEK6_jo.js")), ce = $(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_wheel: ve } = $e(), d = oe, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
31
31
  get: () => j(),
32
32
  set: (t) => t
33
33
  }), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
34
34
  function j() {
35
- const t = oe({
35
+ const t = ne({
36
36
  userConfig: d.config,
37
37
  defaultConfig: ve
38
38
  });
39
39
  return t.theme ? {
40
- ...oe({
40
+ ...ne({
41
41
  userConfig: Ie.vue_ui_wheel[t.theme] || d.config,
42
42
  defaultConfig: t
43
43
  })
@@ -50,19 +50,19 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
50
50
  elementId: x.value,
51
51
  fileName: e.value.style.chart.title.text || "vue-ui-wheel",
52
52
  options: e.value.userOptions.print
53
- }), de = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
53
+ }), de = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), n = c({
54
54
  size: 360,
55
55
  height: 360,
56
56
  width: 360
57
57
  }), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
58
- radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
59
- centerX: o.value.width / 2,
60
- centerY: o.value.height / 2
58
+ radius: Math.min(n.value.width, n.value.height) * 0.9 / 2,
59
+ centerX: n.value.width / 2,
60
+ centerY: n.value.height / 2
61
61
  }));
62
- function q(t, n = 1) {
62
+ function q(t, o = 1) {
63
63
  return {
64
- x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
65
- y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
64
+ x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * o,
65
+ y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * o
66
66
  };
67
67
  }
68
68
  const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
@@ -79,14 +79,14 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
79
79
  type: "dataset"
80
80
  }), J(d.dataset.percentage || 0), e.value.responsive) {
81
81
  const t = Me(() => {
82
- const { width: n, height: a } = Te({
82
+ const { width: o, height: a } = Te({
83
83
  chart: w.value,
84
84
  title: e.value.style.chart.title.text ? R.value : null,
85
85
  source: U.value,
86
86
  noTitle: X.value
87
87
  });
88
88
  requestAnimationFrame(() => {
89
- o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
89
+ n.value.width = o, n.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(o, a);
90
90
  });
91
91
  });
92
92
  f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect()), f.value = new ResizeObserver(t), g.value = w.value.parentNode, f.value.observe(g.value);
@@ -96,8 +96,8 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
96
96
  f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect());
97
97
  });
98
98
  function J(t) {
99
- let n = e.value.style.chart.animation.speed;
100
- const a = Math.abs(t - r.value) / (n * 120);
99
+ let o = e.value.style.chart.animation.speed;
100
+ const a = Math.abs(t - r.value) / (o * 120);
101
101
  function i() {
102
102
  r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(i);
103
103
  }
@@ -105,14 +105,14 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
105
105
  }
106
106
  const m = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / m.value), K = p(() => {
107
107
  const t = [];
108
- for (let n = 0; n < m.value; n += 1) {
109
- const a = r.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: pe } = q(o.value.size / m.value * n), { x: ge, y: me } = q(o.value.size / m.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
108
+ for (let o = 0; o < m.value; o += 1) {
109
+ const a = r.value > o * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: pe } = q(n.value.size / m.value * o), { x: ge, y: me } = q(n.value.size / m.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
110
110
  t.push({
111
111
  x1: i,
112
112
  y1: pe,
113
113
  x2: ge,
114
114
  y2: me,
115
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? ae(a, n * b.value / m.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
115
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? ae(a, o * b.value / m.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
116
116
  });
117
117
  }
118
118
  return t;
@@ -132,14 +132,14 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
132
132
  generatePdf: H,
133
133
  generateImage: W,
134
134
  toggleAnnotator: z
135
- }), (t, n) => (s(), v("div", {
135
+ }), (t, o) => (s(), v("div", {
136
136
  class: "vue-ui-wheel",
137
137
  ref_key: "wheelChart",
138
138
  ref: w,
139
139
  id: x.value,
140
140
  style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
141
- onMouseenter: n[0] || (n[0] = () => l(L)(!0)),
142
- onMouseleave: n[1] || (n[1] = () => l(L)(!1))
141
+ onMouseenter: o[0] || (o[0] = () => l(L)(!0)),
142
+ onMouseleave: o[1] || (o[1] = () => l(L)(!1))
143
143
  }, [
144
144
  e.value.userOptions.buttons.annotator ? (s(), _(l(ue), {
145
145
  key: 0,
@@ -196,6 +196,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
196
196
  isAnnotation: O.value,
197
197
  chartElement: w.value,
198
198
  callbacks: e.value.userOptions.callbacks,
199
+ printScale: e.value.userOptions.print.scale,
199
200
  onToggleFullscreen: fe,
200
201
  onGeneratePdf: l(H),
201
202
  onGenerateImage: l(W),
@@ -239,14 +240,14 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
239
240
  ]),
240
241
  key: "4"
241
242
  } : void 0
242
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
243
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
243
244
  P.value ? (s(), v("svg", {
244
245
  key: 4,
245
246
  ref_key: "svgRef",
246
247
  ref: G,
247
248
  xmlns: l(Fe),
248
249
  class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
249
- viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
250
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
250
251
  style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
251
252
  }, [
252
253
  Ce(l(ce)),
@@ -254,8 +255,8 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
254
255
  key: 0,
255
256
  x: 0,
256
257
  y: 0,
257
- width: o.value.width <= 0 ? 10 : o.value.width,
258
- height: o.value.height <= 0 ? 10 : o.value.height,
258
+ width: n.value.width <= 0 ? 10 : n.value.width,
259
+ height: n.value.height <= 0 ? 10 : n.value.height,
259
260
  style: {
260
261
  pointerEvents: "none"
261
262
  }
@@ -268,7 +269,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
268
269
  y1: a.y1,
269
270
  y2: a.y2,
270
271
  stroke: a.color,
271
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
272
+ "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(n.value.width, n.value.height),
272
273
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
273
274
  class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
274
275
  }, null, 10, je))), 256)) : (s(!0), v(ee, { key: 2 }, te(ye.value, (a, i) => (s(), v("path", {
@@ -303,7 +304,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
303
304
  r: e.value.style.chart.layout.percentage.rounding
304
305
  })
305
306
  )), 9, He)) : h("", !0),
306
- y(t.$slots, "svg", { svg: o.value }, void 0, !0)
307
+ y(t.$slots, "svg", { svg: n.value }, void 0, !0)
307
308
  ], 14, Be)) : h("", !0),
308
309
  t.$slots.watermark ? (s(), v("div", We, [
309
310
  y(t.$slots, "watermark", I(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
@@ -330,7 +331,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
330
331
  }, null, 8, ["config"]))
331
332
  ], 44, Le));
332
333
  }
333
- }, ot = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-b1e78d19"]]);
334
+ }, nt = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-88c72001"]]);
334
335
  export {
335
- ot as default
336
+ nt as default
336
337
  };