vue-data-ui 2.17.0 → 2.17.1

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 (91) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +63 -160
  23. package/dist/types/vue-data-ui.d.ts +63 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
  55. package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
  82. package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as _, computed as c, onMounted as Oe, ref as y, watch as Te, createElementBlock as h, openBlock as r, unref as a, normalizeStyle as F, normalizeClass as oe, createBlock as m, createCommentVNode as i, renderSlot as v, createVNode as E, createSlots as Ie, withCtx as f, normalizeProps as S, guardReactiveProps as V, createElementVNode as s, Fragment as le, renderList as ae, toDisplayString as O, createTextVNode as se, nextTick as Le } from "vue";
2
- import { u as Fe, o as Se, e as re, c as Ve, a as je, R as Re, X as Ue, s as C, w as Be, S as Ee, i as ne, f as j, q as We, r as ze } from "./index-pPGk-uhD.js";
3
- import { u as ue } from "./useNestedProp-DjACxgdZ.js";
4
- import { u as De } from "./usePrinter-DDHcrl0A.js";
1
+ import { defineAsyncComponent as _, computed as c, onMounted as Oe, ref as h, watch as Te, createElementBlock as f, openBlock as r, unref as a, normalizeStyle as F, normalizeClass as oe, createBlock as g, createCommentVNode as i, renderSlot as v, createVNode as E, createSlots as Ie, withCtx as p, normalizeProps as S, guardReactiveProps as V, createElementVNode as s, Fragment as le, renderList as ae, toDisplayString as T, createTextVNode as se, nextTick as Le } from "vue";
2
+ import { u as Fe, o as Se, e as re, c as Ve, a as Re, R as je, X as Be, s as w, w as Ue, S as Ee, i as ne, f as R, q as We, r as ze } from "./index-CobsZUkv.js";
3
+ import { u as ue } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as De } from "./usePrinter-DPh6U_Qk.js";
5
5
  import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Xe from "./Legend-Bxlv67uY.js";
8
- import Ke from "./Title-B-2bV0SW.js";
9
- import qe from "./img-Y_hYz-ZC.js";
7
+ import Xe from "./Legend-3LNqqLDg.js";
8
+ import Ke from "./Title-DpERl1yr.js";
9
+ import qe from "./img-utitT2Gd.js";
10
10
  import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Je = ["id"], Qe = {
12
12
  key: 2,
@@ -35,7 +35,7 @@ const Je = ["id"], Qe = {
35
35
  }
36
36
  },
37
37
  setup(ie, { expose: de }) {
38
- const ce = _(() => import("./vue-ui-accordion-CVnA550V.js")), $ = _(() => import("./BaseIcon-naqtCxVi.js")), ve = _(() => import("./DataTable-D0VYDhfx.js")), ye = _(() => import("./PackageVersion-5TR4ocqp.js")), he = _(() => import("./PenAndPaper-D6AqipIO.js")), fe = _(() => import("./vue-ui-skeleton-DJPjyNYn.js")), pe = _(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_mood_radar: me } = Fe(), d = ie, M = c(() => !!d.dataset && Object.keys(d.dataset).length);
38
+ const ce = _(() => import("./vue-ui-accordion-UewqY6OI.js")), $ = _(() => import("./BaseIcon-D9Tz8ARD.js")), ve = _(() => import("./DataTable-Dt-TIOyY.js")), ye = _(() => import("./PackageVersion-C-4Ee8BQ.js")), he = _(() => import("./PenAndPaper-Cde-wJ3N.js")), fe = _(() => import("./vue-ui-skeleton-8s4xts8z.js")), pe = _(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_mood_radar: me } = Fe(), d = ie, M = c(() => !!d.dataset && Object.keys(d.dataset).length);
39
39
  Oe(() => {
40
40
  W();
41
41
  });
@@ -45,10 +45,10 @@ const Je = ["id"], Qe = {
45
45
  type: "dataset"
46
46
  });
47
47
  }
48
- const P = y(Ve()), T = y(null), ge = y(null), n = y(null), ke = y(null), be = y(0), Ce = y(0), z = y(0), e = c({
48
+ const P = h(Ve()), N = h(null), ge = h(null), n = h(null), ke = h(null), be = h(0), Ce = h(0), z = h(0), e = c({
49
49
  get: () => X(),
50
50
  set: (o) => o
51
- }), { userOptionsVisible: R, setUserOptionsVisibility: D, keepUserOptionState: G } = Ge({ config: e.value }), { svgRef: H } = He({ config: e.value.style.chart.title });
51
+ }), { userOptionsVisible: j, setUserOptionsVisibility: D, keepUserOptionState: G } = Ge({ config: e.value }), { svgRef: H } = He({ config: e.value.style.chart.title });
52
52
  function X() {
53
53
  const o = ue({
54
54
  userConfig: d.config,
@@ -56,44 +56,44 @@ const Je = ["id"], Qe = {
56
56
  });
57
57
  return o.theme ? {
58
58
  ...ue({
59
- userConfig: je.vue_ui_mood_radar[o.theme] || d.config,
59
+ userConfig: Re.vue_ui_mood_radar[o.theme] || d.config,
60
60
  defaultConfig: o
61
61
  })
62
62
  } : o;
63
63
  }
64
64
  Te(() => d.config, (o) => {
65
- e.value = X(), R.value = !e.value.userOptions.showOnChartHover, W(), be.value += 1, Ce.value += 1, z.value += 1, N.value.showTable = e.value.table.show;
65
+ e.value = X(), j.value = !e.value.userOptions.showOnChartHover, W(), be.value += 1, Ce.value += 1, z.value += 1, A.value.showTable = e.value.table.show;
66
66
  }, { deep: !0 });
67
67
  const { isPrinting: K, isImaging: q, generatePdf: Y, generateImage: J } = De({
68
68
  elementId: P.value,
69
69
  fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
70
70
  options: e.value.userOptions.print
71
- }), we = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), N = y({
71
+ }), we = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = h({
72
72
  showTable: e.value.table.show
73
- }), p = c(() => ({
73
+ }), m = c(() => ({
74
74
  height: 256,
75
75
  width: 256
76
- })), U = c(() => Re({
77
- plot: { x: 128, y: p.value.height / 2 },
76
+ })), B = c(() => je({
77
+ plot: { x: 128, y: m.value.height / 2 },
78
78
  radius: 90,
79
79
  sides: 5,
80
80
  rotation: 11
81
81
  }));
82
- function xe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: x, key: k, value: Ae }) {
82
+ function xe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: b, key: y, value: Ae }) {
83
83
  return {
84
- x: o + (t - o) * x,
85
- y: l + (u - l) * x,
86
- key: k,
84
+ x: o + (t - o) * b,
85
+ y: l + (u - l) * b,
86
+ key: y,
87
87
  value: Ae
88
88
  };
89
89
  }
90
- const _e = c(() => Math.max(...Object.values(d.dataset).map((o) => isNaN(o) ? 0 : o))), w = c(() => Object.values(d.dataset).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), g = c(() => Object.keys(d.dataset).map((o, l) => {
90
+ const _e = c(() => Math.max(...Object.values(d.dataset).map((o) => isNaN(o) ? 0 : o))), x = c(() => Object.values(d.dataset).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), k = c(() => Object.keys(d.dataset).map((o, l) => {
91
91
  const t = typeof d.dataset[o] != "number" || isNaN(d.dataset[o]) ? 0 : d.dataset[o];
92
92
  return {
93
93
  index: l,
94
94
  key: o,
95
95
  value: t,
96
- proportion: t / w.value,
96
+ proportion: t / x.value,
97
97
  color: e.value.style.chart.layout.smileys.colors[o]
98
98
  };
99
99
  }).sort((o, l) => l.key - o.key)), Q = c(() => M.value ? (["1", "2", "3", "4", "5"].forEach((o) => {
@@ -102,20 +102,20 @@ const Je = ["id"], Qe = {
102
102
  type: "datasetAttribute",
103
103
  property: o
104
104
  });
105
- }), U.value.coordinates.map((o, l) => {
105
+ }), B.value.coordinates.map((o, l) => {
106
106
  const t = xe({
107
- centerX: p.value.width / 2,
108
- centerY: p.value.height / 2,
107
+ centerX: m.value.width / 2,
108
+ centerY: m.value.height / 2,
109
109
  apexX: o.x,
110
110
  apexY: o.y,
111
- proportion: g.value[l].value / _e.value,
112
- key: g.value[l].key,
113
- value: g.value[l].value
111
+ proportion: k.value[l].value / _e.value,
112
+ key: k.value[l].key,
113
+ value: k.value[l].value
114
114
  });
115
115
  return {
116
116
  ...o,
117
117
  plots: t,
118
- key: g.value[l].key
118
+ key: k.value[l].key
119
119
  };
120
120
  })) : []), $e = c(() => ({
121
121
  cy: "mood-radar-legend",
@@ -128,33 +128,33 @@ const Je = ["id"], Qe = {
128
128
  function Me(o) {
129
129
  o === n.value ? n.value = null : n.value = o;
130
130
  }
131
- const b = c(() => {
132
- const o = g.value.map((t) => ({
131
+ const C = c(() => {
132
+ const o = k.value.map((t) => ({
133
133
  name: t.key,
134
134
  color: t.color
135
- })), l = g.value.map((t) => isNaN(t.value) ? 0 : t.value);
135
+ })), l = k.value.map((t) => isNaN(t.value) ? 0 : t.value);
136
136
  return { head: o, body: l };
137
137
  });
138
138
  function Z(o = null) {
139
139
  Le(() => {
140
- const l = b.value.head.map((x, k) => [[
141
- x.name
142
- ], [b.value.body[k]], [isNaN(b.value.body[k] / w.value) ? "-" : b.value.body[k] / w.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), u = We(t);
140
+ const l = C.value.head.map((b, y) => [[
141
+ b.name
142
+ ], [C.value.body[y]], [isNaN(C.value.body[y] / x.value) ? "-" : C.value.body[y] / x.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), u = We(t);
143
143
  o ? o(u) : ze({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
144
144
  });
145
145
  }
146
146
  const I = c(() => {
147
147
  const o = [
148
148
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
149
- Number(w.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
149
+ Number(x.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
150
150
  "100%"
151
- ], l = b.value.head.map((x, k) => [
151
+ ], l = C.value.head.map((b, y) => [
152
152
  {
153
- color: x.color,
154
- name: x.name
153
+ color: b.color,
154
+ name: b.name
155
155
  },
156
- b.value.body[k].toFixed(e.value.table.td.roundingValue),
157
- isNaN(b.value.body[k] / w.value) ? "-" : (b.value.body[k] / w.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
156
+ C.value.body[y].toFixed(e.value.table.td.roundingValue),
157
+ isNaN(C.value.body[y] / x.value) ? "-" : (C.value.body[y] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
158
158
  ]), t = {
159
159
  th: {
160
160
  backgroundColor: e.value.table.th.backgroundColor,
@@ -180,23 +180,30 @@ const Je = ["id"], Qe = {
180
180
  };
181
181
  });
182
182
  function Pe() {
183
- return g.value;
183
+ return k.value;
184
184
  }
185
185
  function ee() {
186
- N.value.showTable = !N.value.showTable;
186
+ A.value.showTable = !A.value.showTable;
187
187
  }
188
- const A = y(!1);
188
+ const O = h(!1);
189
189
  function te(o) {
190
- A.value = o;
190
+ O.value = o;
191
191
  }
192
- const L = y(!1);
193
- function B() {
192
+ const L = h(!1);
193
+ function U() {
194
194
  L.value = !L.value;
195
195
  }
196
196
  async function Ne({ scale: o = 2 } = {}) {
197
- if (!T.value) return;
198
- const { imageUri: l, base64: t } = await qe({ domElement: T.value, base64: !0, img: !0, scale: o });
199
- return { imageUri: l, base64: t };
197
+ if (!N.value) return;
198
+ const { width: l, height: t } = N.value.getBoundingClientRect(), u = l / t, { imageUri: b, base64: y } = await qe({ domElement: N.value, base64: !0, img: !0, scale: o });
199
+ return {
200
+ imageUri: b,
201
+ base64: y,
202
+ title: e.value.style.chart.title.text,
203
+ width: l,
204
+ height: t,
205
+ aspectRatio: u
206
+ };
200
207
  }
201
208
  return de({
202
209
  getData: Pe,
@@ -205,33 +212,33 @@ const Je = ["id"], Qe = {
205
212
  generateCsv: Z,
206
213
  generateImage: J,
207
214
  toggleTable: ee,
208
- toggleAnnotator: B,
215
+ toggleAnnotator: U,
209
216
  toggleFullscreen: te
210
- }), (o, l) => (r(), h("div", {
211
- class: oe(`vue-ui-mood-radar ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
217
+ }), (o, l) => (r(), f("div", {
218
+ class: oe(`vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
212
219
  ref_key: "moodRadarChart",
213
- ref: T,
220
+ ref: N,
214
221
  id: `${P.value}`,
215
222
  style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
216
223
  onMouseenter: l[11] || (l[11] = () => a(D)(!0)),
217
224
  onMouseleave: l[12] || (l[12] = () => a(D)(!1))
218
225
  }, [
219
- e.value.userOptions.buttons.annotator ? (r(), m(a(he), {
226
+ e.value.userOptions.buttons.annotator ? (r(), g(a(he), {
220
227
  key: 0,
221
228
  svgRef: a(H),
222
229
  backgroundColor: e.value.style.chart.backgroundColor,
223
230
  color: e.value.style.chart.color,
224
231
  active: L.value,
225
- onClose: B
232
+ onClose: U
226
233
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
227
- we.value ? (r(), h("div", {
234
+ we.value ? (r(), f("div", {
228
235
  key: 1,
229
236
  ref_key: "noTitle",
230
237
  ref: ke,
231
238
  class: "vue-data-ui-no-title-space",
232
239
  style: "height:36px; width: 100%;background:transparent"
233
240
  }, null, 512)) : i("", !0),
234
- e.value.style.chart.title.text ? (r(), h("div", Qe, [
241
+ e.value.style.chart.title.text ? (r(), f("div", Qe, [
235
242
  E(Ke, {
236
243
  config: {
237
244
  title: {
@@ -245,7 +252,7 @@ const Je = ["id"], Qe = {
245
252
  }
246
253
  }, null, 8, ["config"])
247
254
  ])) : i("", !0),
248
- e.value.userOptions.show && M.value && (a(G) || a(R)) ? (r(), m(a(pe), {
255
+ e.value.userOptions.show && M.value && (a(G) || a(j)) ? (r(), g(a(pe), {
249
256
  key: 3,
250
257
  ref_key: "details",
251
258
  ref: ge,
@@ -259,9 +266,9 @@ const Je = ["id"], Qe = {
259
266
  hasImg: e.value.userOptions.buttons.img,
260
267
  hasTable: e.value.userOptions.buttons.table,
261
268
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
262
- isFullscreen: A.value,
269
+ isFullscreen: O.value,
263
270
  titles: { ...e.value.userOptions.buttonTitles },
264
- chartElement: T.value,
271
+ chartElement: N.value,
265
272
  position: e.value.userOptions.position,
266
273
  hasAnnotator: e.value.userOptions.buttons.annotator,
267
274
  isAnnotation: L.value,
@@ -272,77 +279,77 @@ const Je = ["id"], Qe = {
272
279
  onGenerateCsv: Z,
273
280
  onGenerateImage: a(J),
274
281
  onToggleTable: ee,
275
- onToggleAnnotator: B,
282
+ onToggleAnnotator: U,
276
283
  style: F({
277
- visibility: a(G) ? a(R) ? "visible" : "hidden" : "visible"
284
+ visibility: a(G) ? a(j) ? "visible" : "hidden" : "visible"
278
285
  })
279
286
  }, Ie({ _: 2 }, [
280
287
  o.$slots.menuIcon ? {
281
288
  name: "menuIcon",
282
- fn: f(({ isOpen: t, color: u }) => [
289
+ fn: p(({ isOpen: t, color: u }) => [
283
290
  v(o.$slots, "menuIcon", S(V({ isOpen: t, color: u })), void 0, !0)
284
291
  ]),
285
292
  key: "0"
286
293
  } : void 0,
287
294
  o.$slots.optionPdf ? {
288
295
  name: "optionPdf",
289
- fn: f(() => [
296
+ fn: p(() => [
290
297
  v(o.$slots, "optionPdf", {}, void 0, !0)
291
298
  ]),
292
299
  key: "1"
293
300
  } : void 0,
294
301
  o.$slots.optionCsv ? {
295
302
  name: "optionCsv",
296
- fn: f(() => [
303
+ fn: p(() => [
297
304
  v(o.$slots, "optionCsv", {}, void 0, !0)
298
305
  ]),
299
306
  key: "2"
300
307
  } : void 0,
301
308
  o.$slots.optionImg ? {
302
309
  name: "optionImg",
303
- fn: f(() => [
310
+ fn: p(() => [
304
311
  v(o.$slots, "optionImg", {}, void 0, !0)
305
312
  ]),
306
313
  key: "3"
307
314
  } : void 0,
308
315
  o.$slots.optionTable ? {
309
316
  name: "optionTable",
310
- fn: f(() => [
317
+ fn: p(() => [
311
318
  v(o.$slots, "optionTable", {}, void 0, !0)
312
319
  ]),
313
320
  key: "4"
314
321
  } : void 0,
315
322
  o.$slots.optionFullscreen ? {
316
323
  name: "optionFullscreen",
317
- fn: f(({ toggleFullscreen: t, isFullscreen: u }) => [
324
+ fn: p(({ toggleFullscreen: t, isFullscreen: u }) => [
318
325
  v(o.$slots, "optionFullscreen", S(V({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
319
326
  ]),
320
327
  key: "5"
321
328
  } : void 0,
322
329
  o.$slots.optionAnnotator ? {
323
330
  name: "optionAnnotator",
324
- fn: f(({ toggleAnnotator: t, isAnnotator: u }) => [
331
+ fn: p(({ toggleAnnotator: t, isAnnotator: u }) => [
325
332
  v(o.$slots, "optionAnnotator", S(V({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
326
333
  ]),
327
334
  key: "6"
328
335
  } : void 0
329
336
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
330
- M.value ? (r(), h("svg", {
337
+ M.value ? (r(), f("svg", {
331
338
  key: 4,
332
339
  ref_key: "svgRef",
333
340
  ref: H,
334
- xmlns: a(Ue),
335
- viewBox: `0 0 ${p.value.width} ${p.value.height}`,
336
- class: oe({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
341
+ xmlns: a(Be),
342
+ viewBox: `0 0 ${m.value.width} ${m.value.height}`,
343
+ class: oe({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
337
344
  style: F(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
338
345
  }, [
339
346
  E(a(ye)),
340
- o.$slots["chart-background"] ? (r(), h("foreignObject", {
347
+ o.$slots["chart-background"] ? (r(), f("foreignObject", {
341
348
  key: 0,
342
349
  x: 0,
343
350
  y: 0,
344
- width: p.value.width,
345
- height: p.value.height,
351
+ width: m.value.width,
352
+ height: m.value.height,
346
353
  style: {
347
354
  pointerEvents: "none"
348
355
  }
@@ -360,24 +367,24 @@ const Je = ["id"], Qe = {
360
367
  }, [
361
368
  s("stop", {
362
369
  offset: "0%",
363
- "stop-color": a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
370
+ "stop-color": a(w)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
364
371
  }, null, 8, ot),
365
372
  s("stop", {
366
373
  offset: "100%",
367
- "stop-color": a(C)(a(Be)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
374
+ "stop-color": a(w)(a(Ue)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
368
375
  }, null, 8, lt)
369
376
  ], 8, tt)
370
377
  ]),
371
- (r(!0), h(le, null, ae(U.value.coordinates, (t) => (r(), h("line", {
372
- x1: p.value.width / 2,
373
- y1: p.value.height / 2,
378
+ (r(!0), f(le, null, ae(B.value.coordinates, (t) => (r(), f("line", {
379
+ x1: m.value.width / 2,
380
+ y1: m.value.height / 2,
374
381
  x2: t.x,
375
382
  y2: t.y,
376
383
  stroke: e.value.style.chart.layout.grid.stroke,
377
384
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
378
385
  }, null, 8, at))), 256)),
379
386
  s("path", {
380
- d: U.value.path,
387
+ d: B.value.path,
381
388
  fill: "none",
382
389
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
383
390
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
@@ -398,7 +405,7 @@ const Je = ["id"], Qe = {
398
405
  cx: "128",
399
406
  cy: "25",
400
407
  r: "20",
401
- fill: n.value === 5 ? a(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
408
+ fill: n.value === 5 ? a(w)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
402
409
  }, null, 40, nt),
403
410
  s("path", {
404
411
  fill: "none",
@@ -414,7 +421,7 @@ const Je = ["id"], Qe = {
414
421
  cx: "227",
415
422
  cy: "95.5",
416
423
  r: "20",
417
- fill: n.value === 4 ? a(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
424
+ fill: n.value === 4 ? a(w)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
418
425
  }, null, 40, it),
419
426
  s("path", {
420
427
  fill: "none",
@@ -430,7 +437,7 @@ const Je = ["id"], Qe = {
430
437
  cx: "190",
431
438
  cy: "213.5",
432
439
  r: "20",
433
- fill: n.value === 3 ? a(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
440
+ fill: n.value === 3 ? a(w)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
434
441
  }, null, 40, ct),
435
442
  s("path", {
436
443
  fill: "none",
@@ -446,7 +453,7 @@ const Je = ["id"], Qe = {
446
453
  cx: "65",
447
454
  cy: "213.5",
448
455
  r: "20",
449
- fill: n.value === 2 ? a(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
456
+ fill: n.value === 2 ? a(w)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
450
457
  }, null, 40, yt),
451
458
  s("path", {
452
459
  fill: "none",
@@ -462,7 +469,7 @@ const Je = ["id"], Qe = {
462
469
  cx: "29",
463
470
  cy: "95.5",
464
471
  r: "20",
465
- fill: n.value === 1 ? a(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
472
+ fill: n.value === 1 ? a(w)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
466
473
  }, null, 40, ft),
467
474
  s("path", {
468
475
  d: a(Ee)(Q.value.map((t) => t.plots)),
@@ -470,9 +477,9 @@ const Je = ["id"], Qe = {
470
477
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
471
478
  "stroke-linecap": "round",
472
479
  "stroke-linejoin": "round",
473
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
480
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(w)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
474
481
  }, null, 8, pt),
475
- (r(!0), h(le, null, ae(Q.value.map((t) => t.plots), (t, u) => (r(), h("g", {
482
+ (r(!0), f(le, null, ae(Q.value.map((t) => t.plots), (t, u) => (r(), f("g", {
476
483
  class: "vue-ui-mood-radar-trap",
477
484
  style: F(`opacity:${n.value == t.key ? "1" : "0"}`)
478
485
  }, [
@@ -506,10 +513,10 @@ const Je = ["id"], Qe = {
506
513
  "font-size": "12",
507
514
  "text-anchor": "middle",
508
515
  "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
509
- }, O(a(ne)(
516
+ }, T(a(ne)(
510
517
  e.value.style.chart.layout.dataLabel.formatter,
511
518
  t.value,
512
- a(j)({
519
+ a(R)({
513
520
  p: e.value.style.chart.layout.dataLabel.prefix,
514
521
  v: t.value,
515
522
  s: e.value.style.chart.layout.dataLabel.suffix,
@@ -523,18 +530,18 @@ const Je = ["id"], Qe = {
523
530
  fill: e.value.style.chart.layout.dataLabel.color,
524
531
  "font-size": "12",
525
532
  "text-anchor": "middle"
526
- }, " (" + O(a(j)({
527
- v: t.value / w.value * 100,
533
+ }, " (" + T(a(R)({
534
+ v: t.value / x.value * 100,
528
535
  s: "%",
529
536
  r: e.value.style.chart.layout.dataLabel.roundingPercentage
530
537
  })) + ") ", 9, Ct)
531
538
  ], 4))), 256)),
532
- v(o.$slots, "svg", { svg: p.value }, void 0, !0)
539
+ v(o.$slots, "svg", { svg: m.value }, void 0, !0)
533
540
  ], 14, Ze)) : i("", !0),
534
- o.$slots.watermark ? (r(), h("div", wt, [
541
+ o.$slots.watermark ? (r(), f("div", wt, [
535
542
  v(o.$slots, "watermark", S(V({ isPrinting: a(K) || a(q) })), void 0, !0)
536
543
  ])) : i("", !0),
537
- M.value ? i("", !0) : (r(), m(a(fe), {
544
+ M.value ? i("", !0) : (r(), g(a(fe), {
538
545
  key: 6,
539
546
  config: {
540
547
  type: "radar",
@@ -551,51 +558,51 @@ const Je = ["id"], Qe = {
551
558
  }
552
559
  }
553
560
  }, null, 8, ["config"])),
554
- e.value.style.chart.legend.show ? (r(), m(Xe, {
555
- legendSet: g.value,
561
+ e.value.style.chart.legend.show ? (r(), g(Xe, {
562
+ legendSet: k.value,
556
563
  config: $e.value,
557
564
  key: `legend_${z.value}`,
558
565
  style: { display: "flex", "row-gap": "6px" }
559
566
  }, {
560
- item: f(({ legend: t, index: u }) => [
567
+ item: p(({ legend: t, index: u }) => [
561
568
  s("div", {
562
569
  onClick: () => Me(t.key),
563
570
  style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
564
571
  }, [
565
- t.key == 1 ? (r(), m(a($), {
572
+ t.key == 1 ? (r(), g(a($), {
566
573
  key: 0,
567
574
  strokeWidth: 1,
568
575
  name: "moodSad",
569
576
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
570
577
  }, null, 8, ["stroke"])) : i("", !0),
571
- t.key == 2 ? (r(), m(a($), {
578
+ t.key == 2 ? (r(), g(a($), {
572
579
  key: 1,
573
580
  strokeWidth: 1,
574
581
  name: "moodFlat",
575
582
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
576
583
  }, null, 8, ["stroke"])) : i("", !0),
577
- t.key == 3 ? (r(), m(a($), {
584
+ t.key == 3 ? (r(), g(a($), {
578
585
  key: 2,
579
586
  strokeWidth: 1,
580
587
  name: "moodNeutral",
581
588
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
582
589
  }, null, 8, ["stroke"])) : i("", !0),
583
- t.key == 4 ? (r(), m(a($), {
590
+ t.key == 4 ? (r(), g(a($), {
584
591
  key: 3,
585
592
  strokeWidth: 1,
586
593
  name: "smiley",
587
594
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
588
595
  }, null, 8, ["stroke"])) : i("", !0),
589
- t.key == 5 ? (r(), m(a($), {
596
+ t.key == 5 ? (r(), g(a($), {
590
597
  key: 4,
591
598
  strokeWidth: 1,
592
599
  name: "moodHappy",
593
600
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
594
601
  }, null, 8, ["stroke"])) : i("", !0),
595
- s("span", _t, O(a(ne)(
602
+ s("span", _t, T(a(ne)(
596
603
  e.value.style.chart.layout.dataLabel.formatter,
597
604
  t.value,
598
- a(j)({
605
+ a(R)({
599
606
  p: e.value.style.chart.layout.dataLabel.prefix,
600
607
  v: t.value,
601
608
  s: e.value.style.chart.layout.dataLabel.suffix,
@@ -603,7 +610,7 @@ const Je = ["id"], Qe = {
603
610
  }),
604
611
  { datapoint: t, seriesIndex: u }
605
612
  )), 1),
606
- se(" (" + O(a(j)({
613
+ se(" (" + T(a(R)({
607
614
  v: t.proportion * 100,
608
615
  s: "%",
609
616
  r: e.value.style.chart.legend.roundingPercentage
@@ -612,15 +619,15 @@ const Je = ["id"], Qe = {
612
619
  ]),
613
620
  _: 1
614
621
  }, 8, ["legendSet", "config"])) : i("", !0),
615
- v(o.$slots, "legend", { legend: g.value }, void 0, !0),
616
- o.$slots.source ? (r(), h("div", $t, [
622
+ v(o.$slots, "legend", { legend: k.value }, void 0, !0),
623
+ o.$slots.source ? (r(), f("div", $t, [
617
624
  v(o.$slots, "source", {}, void 0, !0)
618
625
  ], 512)) : i("", !0),
619
- M.value ? (r(), m(a(ce), {
626
+ M.value ? (r(), g(a(ce), {
620
627
  key: 9,
621
628
  hideDetails: "",
622
629
  config: {
623
- open: N.value.showTable,
630
+ open: A.value.showTable,
624
631
  maxHeight: 1e4,
625
632
  body: {
626
633
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -632,23 +639,23 @@ const Je = ["id"], Qe = {
632
639
  }
633
640
  }
634
641
  }, {
635
- content: f(() => [
642
+ content: p(() => [
636
643
  E(a(ve), {
637
644
  colNames: I.value.colNames,
638
645
  head: I.value.head,
639
646
  body: I.value.body,
640
647
  config: I.value.config,
641
648
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
642
- onClose: l[10] || (l[10] = (t) => N.value.showTable = !1)
649
+ onClose: l[10] || (l[10] = (t) => A.value.showTable = !1)
643
650
  }, {
644
- th: f(({ th: t }) => [
651
+ th: p(({ th: t }) => [
645
652
  s("div", {
646
653
  innerHTML: t,
647
654
  style: { display: "flex", "align-items": "center" }
648
655
  }, null, 8, Mt)
649
656
  ]),
650
- td: f(({ td: t }) => [
651
- se(O(t.name || t), 1)
657
+ td: p(({ td: t }) => [
658
+ se(T(t.name || t), 1)
652
659
  ]),
653
660
  _: 1
654
661
  }, 8, ["colNames", "head", "body", "config", "title"])
@@ -657,7 +664,7 @@ const Je = ["id"], Qe = {
657
664
  }, 8, ["config"])) : i("", !0)
658
665
  ], 46, Je));
659
666
  }
660
- }, Rt = /* @__PURE__ */ Ye(Pt, [["__scopeId", "data-v-24375ed1"]]);
667
+ }, jt = /* @__PURE__ */ Ye(Pt, [["__scopeId", "data-v-a85b97be"]]);
661
668
  export {
662
- Rt as default
669
+ jt as default
663
670
  };