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,13 +1,13 @@
1
- import { defineAsyncComponent as C, computed as b, ref as v, watch as Re, shallowRef as fe, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as ge, createBlock as I, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as f, normalizeProps as F, guardReactiveProps as M, createElementVNode as n, Fragment as P, renderList as B, toDisplayString as _, createTextVNode as be, nextTick as Ge } from "vue";
2
- import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-BsirVW_m.js";
1
+ import { defineAsyncComponent as C, computed as b, ref as d, watch as Re, shallowRef as fe, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as ge, createBlock as I, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as f, normalizeProps as F, guardReactiveProps as M, createElementVNode as n, Fragment as P, renderList as B, toDisplayString as _, createTextVNode as be, nextTick as Ge } from "vue";
2
+ import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-DvIXJm6t.js";
3
3
  import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
4
- import { u as me } from "./useNestedProp-Ej-oqNyf.js";
5
- import { u as et } from "./usePrinter-Dpd-vZym.js";
4
+ import { u as me } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as et } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
8
- import at from "./Title-DTuTBtAe.js";
8
+ import at from "./Title-Gi81VwUM.js";
9
9
  import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ct = ["x", "y", "width", "height", "fill", "rx"], ft = ["x", "y", "width", "height", "fill", "rx"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = { key: 0 }, xt = ["x", "y", "fill", "font-size", "font-weight"], mt = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 1 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = { key: 2 }, Ct = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "width", "height", "fill", "onMouseover"], Ft = {
10
+ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"], vt = ["stop-color"], dt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ct = ["x", "y", "width", "height", "fill", "rx"], ft = ["x", "y", "width", "height", "fill", "rx"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = { key: 0 }, xt = ["x", "y", "fill", "font-size", "font-weight"], mt = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 1 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = { key: 2 }, Ct = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "width", "height", "fill", "onMouseover"], Ft = {
11
11
  key: 5,
12
12
  class: "vue-data-ui-watermark"
13
13
  }, Mt = {
@@ -27,7 +27,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
27
27
  }
28
28
  },
29
29
  setup(J, { expose: we }) {
30
- const ke = C(() => import("./vue-ui-accordion-D2TcT2US.js")), _e = C(() => import("./DataTable-C6IBsdXI.js")), Ce = C(() => import("./PackageVersion-DfefmcMg.js")), $e = C(() => import("./PenAndPaper-CixPm-N0.js")), Te = C(() => import("./vue-ui-skeleton-CchtfQiJ.js")), Ae = C(() => import("./Tooltip-CVPiPR9d.js")), Le = C(() => import("./UserOptions-D8SRavqE.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = v(Ve()), ze = v(null), V = v(!1), W = v(""), E = v(null), K = v(0), N = v(null), Q = v(null), Z = v(null), ee = v(null), te = v(0), le = v(0), e = b({
30
+ const ke = C(() => import("./vue-ui-accordion-D55kCO5G.js")), _e = C(() => import("./DataTable-CHBLjKtZ.js")), Ce = C(() => import("./PackageVersion-Bg_9KCU-.js")), $e = C(() => import("./PenAndPaper-BPTpbnay.js")), Te = C(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ae = C(() => import("./Tooltip-CJxVw7-T.js")), Le = C(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = d(Ve()), ze = d(null), V = d(!1), W = d(""), E = d(null), K = d(0), N = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = b({
31
31
  get: () => ie(),
32
32
  set: (t) => t
33
33
  }), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = tt({ config: e.value }), { svgRef: se } = lt({ config: e.value.style.title });
@@ -72,14 +72,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
72
72
  De(() => {
73
73
  k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
74
74
  });
75
- const { isPrinting: re, isImaging: ne, generatePdf: de, generateImage: ve } = et({
75
+ const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = et({
76
76
  elementId: `vue-ui-age-pyramid_${m.value}`,
77
77
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
78
78
  options: e.value.userOptions.print
79
- }), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
79
+ }), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = d({
80
80
  showTable: e.value.table.show,
81
81
  showTooltip: e.value.style.tooltip.show
82
- }), p = v({
82
+ }), p = d({
83
83
  height: e.value.style.height,
84
84
  width: e.value.style.width
85
85
  }), o = b(() => {
@@ -104,10 +104,10 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
104
104
  }), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), L = b(() => {
105
105
  const t = Fe(R.value / 5), s = [], l = [];
106
106
  for (let a = 0; a <= 5; a += 1) {
107
- const d = t * a, w = t * (a - 5);
107
+ const v = t * a, w = t * (a - 5);
108
108
  s.push({
109
- value: d,
110
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + d / R.value * o.value.leftChart.width
109
+ value: v,
110
+ x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + v / R.value * o.value.leftChart.width
111
111
  }), l.push({
112
112
  value: Math.abs(w),
113
113
  x: o.value.left + o.value.width / 2 + w / R.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
@@ -157,7 +157,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
157
157
  height: a
158
158
  }
159
159
  };
160
- })), j = v(null);
160
+ })), j = d(null);
161
161
  function Pe(t, s) {
162
162
  E.value = t, j.value = {
163
163
  datapoint: s,
@@ -190,26 +190,26 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
190
190
  });
191
191
  else {
192
192
  let a = "";
193
- const d = z.value[t];
194
- a += `<div><b>${d.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
193
+ const v = z.value[t];
194
+ a += `<div><b>${v.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
195
195
  e.value.style.layout.dataLabels.yAxis.formatter,
196
- c(d.age),
197
- T({ v: c(d.age) }),
196
+ c(v.age),
197
+ T({ v: c(v.age) }),
198
198
  { datapoint: s, seriesIndex: t }
199
199
  )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${$(
200
200
  e.value.style.layout.dataLabels.xAxis.formatter,
201
- c(d.left.value),
202
- T({ v: c(d.left.value) }),
201
+ c(v.left.value),
202
+ T({ v: c(v.left.value) }),
203
203
  { datapoint: s, seriesIndex: t }
204
204
  )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${$(
205
205
  e.value.style.layout.dataLabels.xAxis.formatter,
206
- c(d.right.value),
207
- T({ v: c(d.right.value) }),
206
+ c(v.right.value),
207
+ T({ v: c(v.right.value) }),
208
208
  { datapoint: s, seriesIndex: t }
209
209
  )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${$(
210
210
  e.value.style.layout.dataLabels.xAxis.formatter,
211
- c(d.right.value) + c(d.left.value),
212
- T({ v: c(d.right.value) + c(d.left.value) }),
211
+ c(v.right.value) + c(v.left.value),
212
+ T({ v: c(v.right.value) + c(v.left.value) }),
213
213
  { datapoint: s, seriesIndex: t }
214
214
  )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
215
215
  }
@@ -223,8 +223,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
223
223
  w[2],
224
224
  w[3],
225
225
  w[2] + w[3]
226
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), d = Ye(a);
227
- t ? t(d) : qe({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
226
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), v = Ye(a);
227
+ t ? t(v) : qe({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
228
228
  });
229
229
  }
230
230
  const G = b(() => {
@@ -254,7 +254,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
254
254
  breakpoint: e.value.table.responsiveBreakpoint
255
255
  };
256
256
  return { head: t, body: s, config: l, colNames: t };
257
- }), O = v(!1);
257
+ }), O = d(!1);
258
258
  function Ne(t) {
259
259
  O.value = t, K.value += 1;
260
260
  }
@@ -264,14 +264,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
264
264
  function ce() {
265
265
  x.value.showTooltip = !x.value.showTooltip;
266
266
  }
267
- const U = v(!1);
267
+ const U = d(!1);
268
268
  function H() {
269
269
  U.value = !U.value;
270
270
  }
271
271
  return we({
272
- generatePdf: de,
272
+ generatePdf: ve,
273
273
  generateCsv: ye,
274
- generateImage: ve,
274
+ generateImage: de,
275
275
  toggleTable: he,
276
276
  toggleTooltip: ce,
277
277
  toggleAnnotator: H
@@ -342,10 +342,11 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
342
342
  hasAnnotator: e.value.userOptions.buttons.annotator,
343
343
  isAnnotation: U.value,
344
344
  callbacks: e.value.userOptions.callbacks,
345
+ printScale: e.value.userOptions.print.scale,
345
346
  onToggleFullscreen: Ne,
346
- onGeneratePdf: i(de),
347
+ onGeneratePdf: i(ve),
347
348
  onGenerateCsv: ye,
348
- onGenerateImage: i(ve),
349
+ onGenerateImage: i(de),
349
350
  onToggleTable: he,
350
351
  onToggleTooltip: ce,
351
352
  onToggleAnnotator: H,
@@ -409,7 +410,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
409
410
  ]),
410
411
  key: "7"
411
412
  } : void 0
412
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
413
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
413
414
  D.value ? (u(), r("svg", {
414
415
  key: 4,
415
416
  ref_key: "svgRef",
@@ -447,7 +448,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
447
448
  n("stop", {
448
449
  offset: "100%",
449
450
  "stop-color": i(q)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
450
- }, null, 8, dt)
451
+ }, null, 8, vt)
451
452
  ], 8, rt),
452
453
  n("linearGradient", {
453
454
  id: `age_pyramid_right_${m.value}`,
@@ -464,7 +465,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
464
465
  offset: "100%",
465
466
  "stop-color": e.value.style.layout.bars.right.color
466
467
  }, null, 8, ht)
467
- ], 8, vt)
468
+ ], 8, dt)
468
469
  ]),
469
470
  (u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
470
471
  n("rect", {
@@ -629,8 +630,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
629
630
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
630
631
  height: o.value.height / S.value <= 0 ? 1e-4 : o.value.height / S.value,
631
632
  fill: E.value !== null && E.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
632
- onMouseover: (d) => Pe(a, l),
633
- onMouseleave: s[0] || (s[0] = (d) => {
633
+ onMouseover: (v) => Pe(a, l),
634
+ onMouseleave: s[0] || (s[0] = (v) => {
634
635
  E.value = null, V.value = !1;
635
636
  })
636
637
  }, null, 40, It)
@@ -724,7 +725,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
724
725
  }, 8, ["config"])) : y("", !0)
725
726
  ], 46, st));
726
727
  }
727
- }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-210028cb"]]);
728
+ }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-07736a66"]]);
728
729
  export {
729
730
  Wt as default
730
731
  };
@@ -1,5 +1,5 @@
1
- import { z as p, A as v, u as w, B as A } from "./index-BsirVW_m.js";
2
- import { d as M } from "./dom-to-png-Br5bL5eX.js";
1
+ import { z as p, A as v, u as w, B as A } from "./index-DvIXJm6t.js";
2
+ import { d as M } from "./dom-to-png-CRHNL8VU.js";
3
3
  import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
4
4
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const m = {
@@ -1,11 +1,11 @@
1
1
  import { defineAsyncComponent as L, ref as g, computed as f, onMounted as be, watch as Q, onBeforeUnmount as ke, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as M, normalizeClass as Z, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as we, withCtx as p, renderSlot as m, normalizeProps as $, guardReactiveProps as O, createVNode as xe, Fragment as T, renderList as N, toDisplayString as A } from "vue";
2
- import { u as _e, o as Ce, e as ee, g as Le, c as $e, l as Oe, D as Ae, d as Be, i as B, f as P, X as Pe, a as Fe } from "./index-BsirVW_m.js";
3
- import { u as te } from "./useNestedProp-Ej-oqNyf.js";
4
- import { u as Ie } from "./usePrinter-Dpd-vZym.js";
5
- import { u as Se } from "./useUserOptionState-BIvW1Kz7.js";
2
+ import { u as _e, o as Ce, e as ee, g as Le, c as $e, l as Oe, D as Ae, d as Be, i as B, f as P, X as Pe, a as Se } from "./index-DvIXJm6t.js";
3
+ import { u as te } from "./useNestedProp-DrYHm61t.js";
4
+ import { u as Fe } from "./usePrinter-CWnXbGMb.js";
5
+ import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Me from "./Legend-bIoNrGWy.js";
8
- import Te from "./Title-DTuTBtAe.js";
7
+ import Me from "./Legend-nBXoxXJH.js";
8
+ import Te from "./Title-Gi81VwUM.js";
9
9
  import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Ue = ["id"], ze = {
11
11
  key: 1,
@@ -39,7 +39,7 @@ const Ue = ["id"], ze = {
39
39
  }
40
40
  },
41
41
  setup(ae, { expose: le }) {
42
- const se = L(() => import("./PackageVersion-DfefmcMg.js")), re = L(() => import("./PenAndPaper-CixPm-N0.js")), oe = L(() => import("./vue-ui-skeleton-CchtfQiJ.js")), ne = L(() => import("./UserOptions-D8SRavqE.js")), { vue_ui_bullet: ue } = _e(), u = ae, U = g(null), ie = g(null), z = g(0), ce = g(null), he = g(0), y = f({
42
+ const se = L(() => import("./PackageVersion-Bg_9KCU-.js")), re = L(() => import("./PenAndPaper-BPTpbnay.js")), oe = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), ne = L(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_bullet: ue } = _e(), u = ae, U = g(null), ie = g(null), z = g(0), ce = g(null), he = g(0), y = f({
43
43
  get: () => u.dataset.hasOwnProperty("value"),
44
44
  set: (t) => t
45
45
  }), b = f(() => u.dataset.segments ? Array.isArray(u.dataset.segments) ? u.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
@@ -95,7 +95,7 @@ segments: [
95
95
  });
96
96
  }) : y.value = !1, e.value.style.chart.animation.show && G(u.dataset.value || 0);
97
97
  }
98
- const F = g($e());
98
+ const S = g($e());
99
99
  function W() {
100
100
  const t = te({
101
101
  userConfig: u.config,
@@ -103,7 +103,7 @@ segments: [
103
103
  });
104
104
  return t.theme ? {
105
105
  ...te({
106
- userConfig: Fe.vue_ui_bullet[t.theme] || u.config,
106
+ userConfig: Se.vue_ui_bullet[t.theme] || u.config,
107
107
  defaultConfig: t
108
108
  })
109
109
  } : t;
@@ -111,9 +111,9 @@ segments: [
111
111
  const e = f({
112
112
  get: () => W(),
113
113
  set: (t) => t
114
- }), { userOptionsVisible: I, setUserOptionsVisibility: E, keepUserOptionState: V } = Se({ config: e.value }), { svgRef: D } = He({ config: e.value.style.chart.title });
114
+ }), { userOptionsVisible: F, setUserOptionsVisibility: E, keepUserOptionState: V } = Ie({ config: e.value }), { svgRef: D } = He({ config: e.value.style.chart.title });
115
115
  Q(() => u.config, (t) => {
116
- e.value = W(), I.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
116
+ e.value = W(), F.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
117
117
  }, { deep: !0 });
118
118
  const l = f(() => {
119
119
  const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
@@ -133,7 +133,7 @@ segments: [
133
133
  for (let s = 0; s < u.dataset.segments.length; s += 1)
134
134
  t.push(Oe(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
135
135
  return t;
136
- }), S = f(() => b.value ? {
136
+ }), I = f(() => b.value ? {
137
137
  min: Math.min(...u.dataset.segments.map((t) => t.from)),
138
138
  max: Math.max(...u.dataset.segments.map((t) => t.to))
139
139
  } : { min: 0, max: 1 }), c = g(de());
@@ -141,7 +141,7 @@ segments: [
141
141
  e.value.style.chart.animation.show ? G(t.value || 0) : c.value = t.value || 0;
142
142
  }, { deep: !0 });
143
143
  function de() {
144
- return e.value.style.chart.animation.show ? S.value.min : u.dataset.value || 0;
144
+ return e.value.style.chart.animation.show ? I.value.min : u.dataset.value || 0;
145
145
  }
146
146
  const j = g(null);
147
147
  function G(t) {
@@ -157,7 +157,7 @@ segments: [
157
157
  const h = f(() => {
158
158
  if (!b.value)
159
159
  return [];
160
- const t = Ae(S.value.min, S.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
160
+ const t = Ae(I.value.min, I.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
161
161
  x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
162
162
  }, d = {
163
163
  width: (c.value + s) / (t.max + s) * l.value.chartWidth
@@ -212,8 +212,8 @@ segments: [
212
212
  fontSize: e.value.style.chart.legend.fontSize,
213
213
  paddingBottom: 6,
214
214
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
215
- })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Ie({
216
- elementId: `bullet_${F.value}`,
215
+ })), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Fe({
216
+ elementId: `bullet_${S.value}`,
217
217
  fileName: e.value.style.chart.title.text || "vue-ui-bullet",
218
218
  options: e.value.userOptions.print
219
219
  }), fe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
@@ -237,7 +237,7 @@ segments: [
237
237
  ref: U,
238
238
  class: Z(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
239
239
  style: M(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
240
- id: `bullet_${F.value}`,
240
+ id: `bullet_${S.value}`,
241
241
  onMouseenter: s[0] || (s[0] = () => o(E)(!0)),
242
242
  onMouseleave: s[1] || (s[1] = () => o(E)(!1))
243
243
  }, [
@@ -271,14 +271,14 @@ segments: [
271
271
  }
272
272
  }, null, 8, ["config"]))
273
273
  ], 512)) : i("", !0),
274
- e.value.userOptions.show && y.value && (o(V) || o(I)) ? (r(), w(o(ne), {
274
+ e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(ne), {
275
275
  key: 3,
276
276
  ref: "details",
277
277
  backgroundColor: e.value.style.chart.backgroundColor,
278
278
  color: e.value.style.chart.color,
279
279
  isPrinting: o(X),
280
280
  isImaging: o(Y),
281
- uid: F.value,
281
+ uid: S.value,
282
282
  hasTooltip: !1,
283
283
  hasPdf: e.value.userOptions.buttons.pdf,
284
284
  hasImg: e.value.userOptions.buttons.img,
@@ -293,12 +293,13 @@ segments: [
293
293
  hasAnnotator: e.value.userOptions.buttons.annotator,
294
294
  isAnnotation: _.value,
295
295
  callbacks: e.value.userOptions.callbacks,
296
+ printScale: e.value.userOptions.print.scale,
296
297
  onToggleFullscreen: me,
297
298
  onGeneratePdf: o(J),
298
299
  onGenerateImage: o(K),
299
300
  onToggleAnnotator: H,
300
301
  style: M({
301
- visibility: o(V) ? o(I) ? "visible" : "hidden" : "visible"
302
+ visibility: o(V) ? o(F) ? "visible" : "hidden" : "visible"
302
303
  })
303
304
  }, we({ _: 2 }, [
304
305
  t.$slots.menuIcon ? {
@@ -336,7 +337,7 @@ segments: [
336
337
  ]),
337
338
  key: "4"
338
339
  } : void 0
339
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
340
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
340
341
  y.value ? (r(), n("svg", {
341
342
  key: 4,
342
343
  ref_key: "svgRef",
@@ -491,7 +492,7 @@ segments: [
491
492
  ], 512)) : i("", !0)
492
493
  ], 46, Ue));
493
494
  }
494
- }, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-6c6b173a"]]);
495
+ }, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-fb99af28"]]);
495
496
  export {
496
497
  vt as default
497
498
  };