vue-data-ui 3.0.23 → 3.1.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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as N, ref as u, computed as y, toRefs as Ue, onMounted as We, watch as Ge, createElementBlock as c, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as fe, createBlock as g, createCommentVNode as d, createElementVNode as s, createVNode as Y, createSlots as He, withCtx as m, renderSlot as h, normalizeProps as j, guardReactiveProps as z, Fragment as pe, renderList as ge, toDisplayString as E, Teleport as Xe, createTextVNode as Ke, nextTick as qe } from "vue";
2
- import { u as Ye, c as Je, t as Qe, o as Ze, f as me, b as et, R as tt, X as ot, s as C, x as lt, S as at, k as ke, i as U, v as st, w as nt } from "./index-BEuUtONc.js";
3
- import { t as rt, u as ut } from "./useResponsive-DfdjqQps.js";
4
- import { u as it, B as dt } from "./useLoading-D7YHNtLX.js";
5
- import { u as ct } from "./usePrinter-DiB0_UNt.js";
6
- import { u as be } from "./useNestedProp-DhLFhguL.js";
7
- import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
9
- import ht from "./img-z5p1gGfY.js";
10
- import ft from "./Title-D_e0SFWS.js";
11
- import pt from "./Legend-CyYXMSsW.js";
12
- import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "height"], Ct = ["id"], wt = ["stop-color"], $t = ["stop-color"], _t = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = ["d", "stroke", "stroke-width"], Mt = ["transform"], Nt = ["stroke"], Pt = ["fill"], Tt = ["transform"], Ot = ["stroke"], Lt = ["fill"], It = ["transform"], St = ["stroke"], Ft = ["fill"], Et = ["transform"], Rt = ["stroke"], Bt = ["fill"], Dt = ["transform"], Vt = ["stroke"], jt = ["fill"], zt = ["d", "stroke", "stroke-width", "fill"], Ut = ["x1", "y1", "x2", "y2", "stroke"], Wt = ["cx", "cy", "fill", "stroke"], Gt = ["cx", "cy", "fill", "stroke"], Ht = ["x", "y", "fill", "font-weight"], Xt = ["x", "y", "fill"], Kt = {
1
+ import { defineAsyncComponent as P, ref as u, computed as c, toRefs as Ye, onMounted as Je, watch as ge, createElementBlock as v, openBlock as r, unref as a, normalizeStyle as j, normalizeClass as me, createBlock as m, createCommentVNode as d, createElementVNode as s, createVNode as z, createSlots as ke, withCtx as y, renderSlot as f, normalizeProps as W, guardReactiveProps as G, Fragment as be, renderList as Ce, toDisplayString as L, Teleport as Qe, resolveDynamicComponent as Ze, mergeProps as et, createTextVNode as we, nextTick as xe } from "vue";
2
+ import { u as tt, c as ot, t as lt, o as at, f as $e, b as st, R as nt, X as rt, s as $, x as ut, S as it, k as _e, i as H, v as dt, w as ct } from "./index-BKQqb9lF.js";
3
+ import { t as vt, u as yt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ht, B as ft } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as pt } from "./usePrinter-BzuXiubT.js";
6
+ import { u as Ae } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as mt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import kt from "./img-gBDz7xQQ.js";
10
+ import bt from "./Title-Dz-j6ERs.js";
11
+ import Ct from "./Legend-8_V5egWW.js";
12
+ import { _ as wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "height"], Mt = ["id"], Pt = ["stop-color"], Tt = ["stop-color"], Nt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = ["d", "stroke", "stroke-width"], Lt = ["transform"], It = ["stroke"], Dt = ["fill"], St = ["transform"], Ft = ["stroke"], Bt = ["fill"], Et = ["transform"], Rt = ["stroke"], Vt = ["fill"], Ut = ["transform"], jt = ["stroke"], zt = ["fill"], Wt = ["transform"], Gt = ["stroke"], Ht = ["fill"], Xt = ["d", "stroke", "stroke-width", "fill"], Kt = ["x1", "y1", "x2", "y2", "stroke"], qt = ["cx", "cy", "fill", "stroke"], Yt = ["cx", "cy", "fill", "stroke"], Jt = ["x", "y", "fill", "font-weight"], Qt = ["x", "y", "fill"], Zt = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, qt = ["id"], Yt = ["onClick"], Jt = {
16
+ }, eo = ["id"], to = ["onClick"], oo = {
17
17
  key: 5,
18
18
  style: { "font-weight": "bold" }
19
- }, Qt = { key: 6 }, Zt = ["innerHTML"], eo = {
19
+ }, lo = { key: 6 }, ao = ["innerHTML"], so = {
20
20
  __name: "vue-ui-mood-radar",
21
21
  props: {
22
22
  config: {
@@ -32,11 +32,16 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
32
32
  }
33
33
  }
34
34
  },
35
- setup(xe, { expose: Ce }) {
36
- const we = N(() => import("./vue-ui-accordion-B4YfUjZ5.js")), P = N(() => import("./BaseIcon-CgUOIGjr.js")), $e = N(() => import("./DataTable-nO6ydJO2.js")), _e = N(() => import("./PackageVersion-B6M-3jRt.js")), Ae = N(() => import("./PenAndPaper-zym5uEeN.js")), Me = N(() => import("./UserOptions-z0NWZ7aQ.js")), { vue_ui_mood_radar: Ne } = Ye(), w = xe, k = u(Je()), $ = u(null), Pe = u(null), f = u(null), J = u(null), Te = u(0), Oe = u(0), Q = u(0), Z = u(null), ee = u(null), T = u(null), R = u(null), te = u(null), oe = u(!1), le = y(() => !!w.dataset && Object.keys(w.dataset).length), e = u(H()), { loading: W, FINAL_DATASET: _ } = it({
37
- ...Ue(w),
35
+ setup(Me, { expose: Pe }) {
36
+ const T = P(() => import("./BaseIcon-DLesaZpW.js")), Te = P(() => import("./vue-ui-accordion-B5QeV3BK.js")), Ne = P(() => import("./DataTable-BAf4Obr9.js")), Oe = P(() => import("./PenAndPaper-B6OvfyHH.js")), Le = P(() => import("./UserOptions-CsDlFB0L.js")), Ie = P(() => import("./PackageVersion-Cv_ypT0N.js")), De = P(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_mood_radar: Se } = tt(), _ = Me, k = u(ot()), C = u(null), Fe = u(null), p = u(null), ee = u(null), Be = u(0), Ee = u(0), te = u(0), oe = u(null), le = u(null), I = u(null), R = u(null), ae = u(null), se = u(!1), D = u(null), ne = c(() => !!_.dataset && Object.keys(_.dataset).length), e = u(q()), { loading: X, FINAL_DATASET: A } = ht({
37
+ ...Ye(_),
38
38
  FINAL_CONFIG: e,
39
- prepareConfig: H,
39
+ prepareConfig: q,
40
+ callback: () => {
41
+ Promise.resolve().then(async () => {
42
+ await xe(), w.value.showTable = e.value.table.show;
43
+ });
44
+ },
40
45
  skeletonDataset: {
41
46
  1: 1,
42
47
  2: 1,
@@ -44,7 +49,7 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
44
49
  4: 1,
45
50
  5: 1
46
51
  },
47
- skeletonConfig: Qe({
52
+ skeletonConfig: lt({
48
53
  defaultConfig: e.value,
49
54
  userConfig: {
50
55
  userOptions: { show: !1 },
@@ -85,117 +90,117 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
85
90
  }
86
91
  })
87
92
  });
88
- We(() => {
89
- oe.value = !0, ae();
93
+ Je(() => {
94
+ se.value = !0, re();
90
95
  });
91
- const Le = y(() => e.value.debug);
92
- function ae() {
93
- if (Ze(w.dataset) && me({
96
+ const Re = c(() => e.value.debug);
97
+ function re() {
98
+ if (at(_.dataset) && $e({
94
99
  componentName: "VueUiMoodRadar",
95
100
  type: "dataset",
96
- debug: Le.value
101
+ debug: Re.value
97
102
  }), e.value.responsive) {
98
- const o = rt(() => {
99
- const { width: l, height: t } = ut({
100
- chart: $.value,
101
- title: e.value.style.chart.title.text ? Z.value : null,
102
- legend: e.value.style.chart.legend.show ? ee.value : null,
103
- noTitle: J.value,
104
- source: te.value
103
+ const o = vt(() => {
104
+ const { width: l, height: t } = yt({
105
+ chart: C.value,
106
+ title: e.value.style.chart.title.text ? oe.value : null,
107
+ legend: e.value.style.chart.legend.show ? le.value : null,
108
+ noTitle: ee.value,
109
+ source: ae.value
105
110
  });
106
111
  requestAnimationFrame(() => {
107
112
  n.value.width = l, n.value.height = t - 12;
108
113
  });
109
114
  });
110
- T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(o), R.value = $.value.parentNode, T.value.observe(R.value);
115
+ I.value && (R.value && I.value.unobserve(R.value), I.value.disconnect()), I.value = new ResizeObserver(o), R.value = C.value.parentNode, I.value.observe(R.value);
111
116
  }
112
117
  }
113
- const { userOptionsVisible: G, setUserOptionsVisibility: se, keepUserOptionState: ne } = vt({ config: e.value }), { svgRef: re } = yt({ config: e.value.style.chart.title });
114
- function H() {
115
- const o = be({
116
- userConfig: w.config,
117
- defaultConfig: Ne
118
+ const { userOptionsVisible: K, setUserOptionsVisibility: ue, keepUserOptionState: ie } = gt({ config: e.value }), { svgRef: de } = mt({ config: e.value.style.chart.title });
119
+ function q() {
120
+ const o = Ae({
121
+ userConfig: _.config,
122
+ defaultConfig: Se
118
123
  });
119
124
  return o.theme ? {
120
- ...be({
121
- userConfig: et.vue_ui_mood_radar[o.theme] || w.config,
125
+ ...Ae({
126
+ userConfig: st.vue_ui_mood_radar[o.theme] || _.config,
122
127
  defaultConfig: o
123
128
  })
124
129
  } : o;
125
130
  }
126
- Ge(() => w.config, (o) => {
127
- e.value = H(), G.value = !e.value.userOptions.showOnChartHover, ae(), Te.value += 1, Oe.value += 1, Q.value += 1, O.value.showTable = e.value.table.show;
131
+ ge(() => _.config, (o) => {
132
+ e.value = q(), K.value = !e.value.userOptions.showOnChartHover, re(), Be.value += 1, Ee.value += 1, te.value += 1, w.value.showTable = e.value.table.show;
128
133
  }, { deep: !0 });
129
- const { isPrinting: ue, isImaging: ie, generatePdf: de, generateImage: ce } = ct({
134
+ const { isPrinting: ce, isImaging: ve, generatePdf: ye, generateImage: he } = pt({
130
135
  elementId: k.value,
131
136
  fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
132
137
  options: e.value.userOptions.print
133
- }), Ie = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = u({
138
+ }), Ve = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), w = u({
134
139
  showTable: e.value.table.show
135
140
  }), n = u({
136
141
  height: 256,
137
142
  width: 256
138
- }), Se = {
143
+ }), Ue = {
139
144
  5: { x: 128, y: 35 },
140
145
  4: { x: 218, y: 98.5 },
141
146
  3: { x: 185, y: 204 },
142
147
  2: { x: 70, y: 204 },
143
148
  1: { x: 38.5, y: 98.5 }
144
- }, Fe = y(() => {
149
+ }, je = c(() => {
145
150
  const o = {};
146
- return K.value.forEach((l) => {
151
+ return J.value.forEach((l) => {
147
152
  o[l.key] = { x: l.x, y: l.y };
148
153
  }), o;
149
154
  });
150
- function L(o) {
151
- const l = Se[o], t = Fe.value[o] || l;
155
+ function S(o) {
156
+ const l = Ue[o], t = je.value[o] || l;
152
157
  return `translate(${t.x - l.x}, ${t.y - l.y})`;
153
158
  }
154
- const X = y(() => tt({
159
+ const Y = c(() => nt({
155
160
  plot: { x: n.value.width / 2, y: n.value.height / 2 },
156
161
  radius: Math.min(n.value.height, n.value.width) * 0.35,
157
162
  sides: 5,
158
163
  rotation: 11
159
164
  }));
160
- function Ee({ centerX: o, centerY: l, apexX: t, apexY: i, proportion: b, key: p, value: ze }) {
165
+ function ze({ centerX: o, centerY: l, apexX: t, apexY: i, proportion: b, key: g, value: qe }) {
161
166
  return {
162
167
  x: o + (t - o) * b,
163
168
  y: l + (i - l) * b,
164
- key: p,
165
- value: ze
169
+ key: g,
170
+ value: qe
166
171
  };
167
172
  }
168
- const Re = y(() => Math.max(...Object.values(_.value).map((o) => isNaN(o) ? 0 : o))), A = y(() => Object.values(_.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), v = y(() => Object.keys(_.value).map((o, l) => {
169
- const t = typeof _.value[o] != "number" || isNaN(_.value[o]) ? 0 : _.value[o];
173
+ const We = c(() => Math.max(...Object.values(A.value).map((o) => isNaN(o) ? 0 : o))), M = c(() => Object.values(A.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), h = c(() => Object.keys(A.value).map((o, l) => {
174
+ const t = typeof A.value[o] != "number" || isNaN(A.value[o]) ? 0 : A.value[o];
170
175
  return {
171
176
  index: l,
172
177
  key: o,
173
178
  value: t,
174
- proportion: t / A.value,
179
+ proportion: t / M.value,
175
180
  color: e.value.style.chart.layout.smileys.colors[o]
176
181
  };
177
- }).sort((o, l) => l.key - o.key)), K = y(() => (["1", "2", "3", "4", "5"].forEach((o) => {
178
- [null, void 0].includes(_.value[o]) && me({
182
+ }).sort((o, l) => l.key - o.key)), J = c(() => (["1", "2", "3", "4", "5"].forEach((o) => {
183
+ [null, void 0].includes(A.value[o]) && $e({
179
184
  componentName: "VueUiMoodRadar",
180
185
  type: "datasetAttribute",
181
186
  property: o
182
187
  });
183
- }), X.value.coordinates.map((o, l) => {
184
- const t = Ee({
188
+ }), Y.value.coordinates.map((o, l) => {
189
+ const t = ze({
185
190
  centerX: n.value.width / 2,
186
191
  centerY: n.value.height / 2,
187
192
  apexX: o.x,
188
193
  apexY: o.y,
189
- proportion: v.value[l].value / Re.value,
190
- key: v.value[l].key,
191
- value: v.value[l].value
194
+ proportion: h.value[l].value / We.value,
195
+ key: h.value[l].key,
196
+ value: h.value[l].value
192
197
  });
193
198
  return {
194
199
  ...o,
195
200
  plots: t,
196
- key: v.value[l].key
201
+ key: h.value[l].key
197
202
  };
198
- }))), Be = y(() => ({
203
+ }))), Ge = c(() => ({
199
204
  cy: "mood-radar-legend",
200
205
  backgroundColor: e.value.style.chart.legend.backgroundColor,
201
206
  color: e.value.style.chart.legend.color,
@@ -203,50 +208,50 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
203
208
  paddingBottom: 12,
204
209
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
205
210
  }));
206
- function De(o) {
207
- o === f.value ? f.value = null : (f.value = o, M(o));
211
+ function He(o) {
212
+ o === p.value ? p.value = null : (p.value = o, N(o));
208
213
  }
209
- function I(o) {
210
- f.value = o;
211
- const l = v.value.find((t) => t.key === o);
214
+ function F(o) {
215
+ p.value = o;
216
+ const l = h.value.find((t) => t.key === o);
212
217
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
213
218
  }
214
- function S(o) {
215
- f.value = null;
216
- const l = v.value.find((t) => t.key === o);
219
+ function B(o) {
220
+ p.value = null;
221
+ const l = h.value.find((t) => t.key === o);
217
222
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
218
223
  }
219
- function M(o) {
220
- const l = v.value.find((t) => t.key === o);
224
+ function N(o) {
225
+ const l = h.value.find((t) => t.key === o);
221
226
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
222
227
  }
223
- const x = y(() => {
224
- const o = v.value.map((t) => ({
228
+ const x = c(() => {
229
+ const o = h.value.map((t) => ({
225
230
  name: t.key,
226
231
  color: t.color
227
- })), l = v.value.map((t) => isNaN(t.value) ? 0 : t.value);
232
+ })), l = h.value.map((t) => isNaN(t.value) ? 0 : t.value);
228
233
  return { head: o, body: l };
229
234
  });
230
- function ve(o = null) {
231
- qe(() => {
232
- const l = x.value.head.map((b, p) => [[
235
+ function Q(o = null) {
236
+ xe(() => {
237
+ const l = x.value.head.map((b, g) => [[
233
238
  b.name
234
- ], [x.value.body[p]], [isNaN(x.value.body[p] / A.value) ? "-" : x.value.body[p] / A.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = st(t);
235
- o ? o(i) : nt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
239
+ ], [x.value.body[g]], [isNaN(x.value.body[g] / M.value) ? "-" : x.value.body[g] / M.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = dt(t);
240
+ o ? o(i) : ct({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
236
241
  });
237
242
  }
238
- const B = y(() => {
243
+ const V = c(() => {
239
244
  const o = [
240
245
  ' <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>',
241
- Number(A.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
246
+ Number(M.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
242
247
  "100%"
243
- ], l = x.value.head.map((b, p) => [
248
+ ], l = x.value.head.map((b, g) => [
244
249
  {
245
250
  color: b.color,
246
251
  name: b.name
247
252
  },
248
- x.value.body[p].toFixed(e.value.table.td.roundingValue),
249
- isNaN(x.value.body[p] / A.value) ? "-" : (x.value.body[p] / A.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
253
+ x.value.body[g].toFixed(e.value.table.td.roundingValue),
254
+ isNaN(x.value.body[g] / M.value) ? "-" : (x.value.body[g] / M.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
250
255
  ]), t = {
251
256
  th: {
252
257
  backgroundColor: e.value.table.th.backgroundColor,
@@ -271,72 +276,104 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
271
276
  colNames: i
272
277
  };
273
278
  });
274
- function Ve() {
275
- return v.value;
279
+ function Xe() {
280
+ return h.value;
276
281
  }
277
- function ye() {
278
- O.value.showTable = !O.value.showTable;
282
+ function fe() {
283
+ w.value.showTable = !w.value.showTable;
279
284
  }
280
- const F = u(!1);
281
- function he(o) {
282
- F.value = o;
285
+ const O = u(!1);
286
+ function pe(o) {
287
+ O.value = o;
283
288
  }
284
- const D = u(!1);
285
- function q() {
286
- D.value = !D.value;
289
+ const U = u(!1);
290
+ function Z() {
291
+ U.value = !U.value;
287
292
  }
288
- async function je({ scale: o = 2 } = {}) {
289
- if (!$.value) return;
290
- const { width: l, height: t } = $.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: p } = await ht({ domElement: $.value, base64: !0, img: !0, scale: o });
293
+ async function Ke({ scale: o = 2 } = {}) {
294
+ if (!C.value) return;
295
+ const { width: l, height: t } = C.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: g } = await kt({ domElement: C.value, base64: !0, img: !0, scale: o });
291
296
  return {
292
297
  imageUri: b,
293
- base64: p,
298
+ base64: g,
294
299
  title: e.value.style.chart.title.text,
295
300
  width: l,
296
301
  height: t,
297
302
  aspectRatio: i
298
303
  };
299
304
  }
300
- return Ce({
301
- getData: Ve,
302
- getImage: je,
303
- generatePdf: de,
304
- generateCsv: ve,
305
- generateImage: ce,
306
- toggleTable: ye,
307
- toggleAnnotator: q,
308
- toggleFullscreen: he
309
- }), (o, l) => (r(), c("div", {
310
- class: fe(`vue-ui-mood-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
305
+ const E = c(() => {
306
+ const o = e.value.table.useDialog && !e.value.table.show, l = w.value.showTable;
307
+ return {
308
+ component: o ? De : Te,
309
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
310
+ props: o ? {
311
+ backgroundColor: e.value.table.th.backgroundColor,
312
+ color: e.value.table.th.color,
313
+ headerColor: e.value.table.th.color,
314
+ headerBg: e.value.table.th.backgroundColor,
315
+ isFullscreen: O.value,
316
+ fullscreenParent: C.value,
317
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
318
+ } : {
319
+ hideDetails: !0,
320
+ config: {
321
+ open: l,
322
+ maxHeight: 1e4,
323
+ body: {
324
+ backgroundColor: e.value.style.chart.backgroundColor,
325
+ color: e.value.style.chart.color
326
+ },
327
+ head: {
328
+ backgroundColor: e.value.style.chart.backgroundColor,
329
+ color: e.value.style.chart.color
330
+ }
331
+ }
332
+ }
333
+ };
334
+ });
335
+ return ge(() => w.value.showTable, (o) => {
336
+ e.value.table.show || (o && e.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
337
+ }), Pe({
338
+ getData: Xe,
339
+ getImage: Ke,
340
+ generatePdf: ye,
341
+ generateCsv: Q,
342
+ generateImage: he,
343
+ toggleTable: fe,
344
+ toggleAnnotator: Z,
345
+ toggleFullscreen: pe
346
+ }), (o, l) => (r(), v("div", {
347
+ class: me(`vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
311
348
  ref_key: "moodRadarChart",
312
- ref: $,
349
+ ref: C,
313
350
  id: `${k.value}`,
314
- style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
315
- onMouseenter: l[16] || (l[16] = () => a(se)(!0)),
316
- onMouseleave: l[17] || (l[17] = () => a(se)(!1))
351
+ style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
352
+ onMouseenter: l[18] || (l[18] = () => a(ue)(!0)),
353
+ onMouseleave: l[19] || (l[19] = () => a(ue)(!1))
317
354
  }, [
318
- e.value.userOptions.buttons.annotator ? (r(), g(a(Ae), {
355
+ e.value.userOptions.buttons.annotator ? (r(), m(a(Oe), {
319
356
  key: 0,
320
- svgRef: a(re),
357
+ svgRef: a(de),
321
358
  backgroundColor: e.value.style.chart.backgroundColor,
322
359
  color: e.value.style.chart.color,
323
- active: D.value,
324
- onClose: q
360
+ active: U.value,
361
+ onClose: Z
325
362
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
326
- Ie.value ? (r(), c("div", {
363
+ Ve.value ? (r(), v("div", {
327
364
  key: 1,
328
365
  ref_key: "noTitle",
329
- ref: J,
366
+ ref: ee,
330
367
  class: "vue-data-ui-no-title-space",
331
368
  style: "height:36px; width: 100%;background:transparent"
332
369
  }, null, 512)) : d("", !0),
333
- e.value.style.chart.title.text ? (r(), c("div", {
370
+ e.value.style.chart.title.text ? (r(), v("div", {
334
371
  key: 2,
335
372
  ref_key: "chartTitle",
336
- ref: Z,
373
+ ref: oe,
337
374
  style: "width:100%;background:transparent"
338
375
  }, [
339
- Y(ft, {
376
+ z(bt, {
340
377
  config: {
341
378
  title: {
342
379
  cy: "mood-radar-title",
@@ -351,99 +388,99 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
351
388
  ], 512)) : d("", !0),
352
389
  s("div", {
353
390
  id: `legend-top-${k.value}`
354
- }, null, 8, kt),
355
- e.value.userOptions.show && le.value && (a(ne) || a(G)) ? (r(), g(a(Me), {
391
+ }, null, 8, $t),
392
+ e.value.userOptions.show && ne.value && (a(ie) || a(K)) ? (r(), m(a(Le), {
356
393
  key: 3,
357
394
  ref_key: "details",
358
- ref: Pe,
395
+ ref: Fe,
359
396
  backgroundColor: e.value.style.chart.backgroundColor,
360
397
  color: e.value.style.chart.color,
361
- isPrinting: a(ue),
362
- isImaging: a(ie),
398
+ isPrinting: a(ce),
399
+ isImaging: a(ve),
363
400
  uid: k.value,
364
401
  hasPdf: e.value.userOptions.buttons.pdf,
365
402
  hasXls: e.value.userOptions.buttons.csv,
366
403
  hasImg: e.value.userOptions.buttons.img,
367
404
  hasTable: e.value.userOptions.buttons.table,
368
405
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
369
- isFullscreen: F.value,
406
+ isFullscreen: O.value,
370
407
  titles: { ...e.value.userOptions.buttonTitles },
371
- chartElement: $.value,
408
+ chartElement: C.value,
372
409
  position: e.value.userOptions.position,
373
410
  hasAnnotator: e.value.userOptions.buttons.annotator,
374
- isAnnotation: D.value,
411
+ isAnnotation: U.value,
375
412
  callbacks: e.value.userOptions.callbacks,
376
413
  printScale: e.value.userOptions.print.scale,
377
- onToggleFullscreen: he,
378
- onGeneratePdf: a(de),
379
- onGenerateCsv: ve,
380
- onGenerateImage: a(ce),
381
- onToggleTable: ye,
382
- onToggleAnnotator: q,
383
- style: V({
384
- visibility: a(ne) ? a(G) ? "visible" : "hidden" : "visible"
414
+ onToggleFullscreen: pe,
415
+ onGeneratePdf: a(ye),
416
+ onGenerateCsv: Q,
417
+ onGenerateImage: a(he),
418
+ onToggleTable: fe,
419
+ onToggleAnnotator: Z,
420
+ style: j({
421
+ visibility: a(ie) ? a(K) ? "visible" : "hidden" : "visible"
385
422
  })
386
- }, He({ _: 2 }, [
423
+ }, ke({ _: 2 }, [
387
424
  o.$slots.menuIcon ? {
388
425
  name: "menuIcon",
389
- fn: m(({ isOpen: t, color: i }) => [
390
- h(o.$slots, "menuIcon", j(z({ isOpen: t, color: i })), void 0, !0)
426
+ fn: y(({ isOpen: t, color: i }) => [
427
+ f(o.$slots, "menuIcon", W(G({ isOpen: t, color: i })), void 0, !0)
391
428
  ]),
392
429
  key: "0"
393
430
  } : void 0,
394
431
  o.$slots.optionPdf ? {
395
432
  name: "optionPdf",
396
- fn: m(() => [
397
- h(o.$slots, "optionPdf", {}, void 0, !0)
433
+ fn: y(() => [
434
+ f(o.$slots, "optionPdf", {}, void 0, !0)
398
435
  ]),
399
436
  key: "1"
400
437
  } : void 0,
401
438
  o.$slots.optionCsv ? {
402
439
  name: "optionCsv",
403
- fn: m(() => [
404
- h(o.$slots, "optionCsv", {}, void 0, !0)
440
+ fn: y(() => [
441
+ f(o.$slots, "optionCsv", {}, void 0, !0)
405
442
  ]),
406
443
  key: "2"
407
444
  } : void 0,
408
445
  o.$slots.optionImg ? {
409
446
  name: "optionImg",
410
- fn: m(() => [
411
- h(o.$slots, "optionImg", {}, void 0, !0)
447
+ fn: y(() => [
448
+ f(o.$slots, "optionImg", {}, void 0, !0)
412
449
  ]),
413
450
  key: "3"
414
451
  } : void 0,
415
452
  o.$slots.optionTable ? {
416
453
  name: "optionTable",
417
- fn: m(() => [
418
- h(o.$slots, "optionTable", {}, void 0, !0)
454
+ fn: y(() => [
455
+ f(o.$slots, "optionTable", {}, void 0, !0)
419
456
  ]),
420
457
  key: "4"
421
458
  } : void 0,
422
459
  o.$slots.optionFullscreen ? {
423
460
  name: "optionFullscreen",
424
- fn: m(({ toggleFullscreen: t, isFullscreen: i }) => [
425
- h(o.$slots, "optionFullscreen", j(z({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
461
+ fn: y(({ toggleFullscreen: t, isFullscreen: i }) => [
462
+ f(o.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
426
463
  ]),
427
464
  key: "5"
428
465
  } : void 0,
429
466
  o.$slots.optionAnnotator ? {
430
467
  name: "optionAnnotator",
431
- fn: m(({ toggleAnnotator: t, isAnnotator: i }) => [
432
- h(o.$slots, "optionAnnotator", j(z({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
468
+ fn: y(({ toggleAnnotator: t, isAnnotator: i }) => [
469
+ f(o.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
433
470
  ]),
434
471
  key: "6"
435
472
  } : void 0
436
473
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
437
- (r(), c("svg", {
474
+ (r(), v("svg", {
438
475
  ref_key: "svgRef",
439
- ref: re,
440
- xmlns: a(ot),
476
+ ref: de,
477
+ xmlns: a(rt),
441
478
  viewBox: `0 0 ${n.value.width} ${n.value.height}`,
442
- class: fe({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
443
- style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
479
+ class: me({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
480
+ style: j(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
444
481
  }, [
445
- Y(a(_e)),
446
- o.$slots["chart-background"] ? (r(), c("foreignObject", {
482
+ z(a(Ie)),
483
+ o.$slots["chart-background"] ? (r(), v("foreignObject", {
447
484
  key: 0,
448
485
  x: 0,
449
486
  y: 0,
@@ -453,8 +490,8 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
453
490
  pointerEvents: "none"
454
491
  }
455
492
  }, [
456
- h(o.$slots, "chart-background", {}, void 0, !0)
457
- ], 8, xt)) : d("", !0),
493
+ f(o.$slots, "chart-background", {}, void 0, !0)
494
+ ], 8, At)) : d("", !0),
458
495
  s("defs", null, [
459
496
  s("radialGradient", {
460
497
  cx: "50%",
@@ -466,32 +503,32 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
466
503
  }, [
467
504
  s("stop", {
468
505
  offset: "0%",
469
- "stop-color": a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
470
- }, null, 8, wt),
506
+ "stop-color": a($)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
507
+ }, null, 8, Pt),
471
508
  s("stop", {
472
509
  offset: "100%",
473
- "stop-color": a(C)(a(lt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
474
- }, null, 8, $t)
475
- ], 8, Ct)
510
+ "stop-color": a($)(a(ut)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
511
+ }, null, 8, Tt)
512
+ ], 8, Mt)
476
513
  ]),
477
- (r(!0), c(pe, null, ge(X.value.coordinates, (t) => (r(), c("line", {
514
+ (r(!0), v(be, null, Ce(Y.value.coordinates, (t) => (r(), v("line", {
478
515
  x1: n.value.width / 2,
479
516
  y1: n.value.height / 2,
480
517
  x2: t.x,
481
518
  y2: t.y,
482
519
  stroke: e.value.style.chart.layout.grid.stroke,
483
520
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
484
- }, null, 8, _t))), 256)),
521
+ }, null, 8, Nt))), 256)),
485
522
  s("path", {
486
- d: X.value.path,
523
+ d: Y.value.path,
487
524
  fill: "none",
488
525
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
489
526
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
490
527
  "stroke-linejoin": "round",
491
528
  "stroke-linecap": "round"
492
- }, null, 8, At),
529
+ }, null, 8, Ot),
493
530
  s("g", {
494
- transform: L("5")
531
+ transform: S("5")
495
532
  }, [
496
533
  s("path", {
497
534
  fill: "none",
@@ -499,20 +536,20 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
499
536
  "stroke-width": "1",
500
537
  "stroke-linecap": "round",
501
538
  d: "M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"
502
- }, null, 8, Nt),
539
+ }, null, 8, It),
503
540
  s("circle", {
504
541
  class: "vue-ui-mood-radar-trap",
505
542
  cx: "128",
506
543
  cy: "25",
507
544
  r: "20",
508
- fill: f.value === "5" ? a(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
509
- onMouseenter: l[0] || (l[0] = (t) => I("5")),
510
- onMouseleave: l[1] || (l[1] = (t) => S("5")),
511
- onClick: l[2] || (l[2] = (t) => M("5"))
512
- }, null, 40, Pt)
513
- ], 8, Mt),
545
+ fill: p.value === "5" ? a($)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
546
+ onMouseenter: l[0] || (l[0] = (t) => F("5")),
547
+ onMouseleave: l[1] || (l[1] = (t) => B("5")),
548
+ onClick: l[2] || (l[2] = (t) => N("5"))
549
+ }, null, 40, Dt)
550
+ ], 8, Lt),
514
551
  s("g", {
515
- transform: L("4")
552
+ transform: S("4")
516
553
  }, [
517
554
  s("path", {
518
555
  fill: "none",
@@ -520,20 +557,20 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
520
557
  "stroke-width": "1",
521
558
  "stroke-linecap": "round",
522
559
  d: "M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"
523
- }, null, 8, Ot),
560
+ }, null, 8, Ft),
524
561
  s("circle", {
525
562
  class: "vue-ui-mood-radar-trap",
526
563
  cx: "227",
527
564
  cy: "95.5",
528
565
  r: "20",
529
- fill: f.value === "4" ? a(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
530
- onMouseenter: l[3] || (l[3] = (t) => I("4")),
531
- onMouseleave: l[4] || (l[4] = (t) => S("4")),
532
- onClick: l[5] || (l[5] = (t) => M("4"))
533
- }, null, 40, Lt)
534
- ], 8, Tt),
566
+ fill: p.value === "4" ? a($)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
567
+ onMouseenter: l[3] || (l[3] = (t) => F("4")),
568
+ onMouseleave: l[4] || (l[4] = (t) => B("4")),
569
+ onClick: l[5] || (l[5] = (t) => N("4"))
570
+ }, null, 40, Bt)
571
+ ], 8, St),
535
572
  s("g", {
536
- transform: L("3")
573
+ transform: S("3")
537
574
  }, [
538
575
  s("path", {
539
576
  fill: "none",
@@ -541,20 +578,20 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
541
578
  "stroke-width": "1",
542
579
  "stroke-linecap": "round",
543
580
  d: "M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"
544
- }, null, 8, St),
581
+ }, null, 8, Rt),
545
582
  s("circle", {
546
583
  class: "vue-ui-mood-radar-trap",
547
584
  cx: "190",
548
585
  cy: "213.5",
549
586
  r: "20",
550
- fill: f.value === "3" ? a(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
551
- onMouseenter: l[6] || (l[6] = (t) => I("3")),
552
- onMouseleave: l[7] || (l[7] = (t) => S("3")),
553
- onClick: l[8] || (l[8] = (t) => M("3"))
554
- }, null, 40, Ft)
555
- ], 8, It),
587
+ fill: p.value === "3" ? a($)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
588
+ onMouseenter: l[6] || (l[6] = (t) => F("3")),
589
+ onMouseleave: l[7] || (l[7] = (t) => B("3")),
590
+ onClick: l[8] || (l[8] = (t) => N("3"))
591
+ }, null, 40, Vt)
592
+ ], 8, Et),
556
593
  s("g", {
557
- transform: L("2")
594
+ transform: S("2")
558
595
  }, [
559
596
  s("path", {
560
597
  fill: "none",
@@ -562,20 +599,20 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
562
599
  "stroke-width": "1",
563
600
  "stroke-linecap": "round",
564
601
  d: "M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"
565
- }, null, 8, Rt),
602
+ }, null, 8, jt),
566
603
  s("circle", {
567
604
  class: "vue-ui-mood-radar-trap",
568
605
  cx: "65",
569
606
  cy: "213.5",
570
607
  r: "20",
571
- fill: f.value === "2" ? a(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
572
- onMouseenter: l[9] || (l[9] = (t) => I("2")),
573
- onMouseleave: l[10] || (l[10] = (t) => S("2")),
574
- onClick: l[11] || (l[11] = (t) => M("2"))
575
- }, null, 40, Bt)
576
- ], 8, Et),
608
+ fill: p.value === "2" ? a($)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
609
+ onMouseenter: l[9] || (l[9] = (t) => F("2")),
610
+ onMouseleave: l[10] || (l[10] = (t) => B("2")),
611
+ onClick: l[11] || (l[11] = (t) => N("2"))
612
+ }, null, 40, zt)
613
+ ], 8, Ut),
577
614
  s("g", {
578
- transform: L("1")
615
+ transform: S("1")
579
616
  }, [
580
617
  s("path", {
581
618
  fill: "none",
@@ -583,29 +620,29 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
583
620
  "stroke-width": "1",
584
621
  "stroke-linecap": "round",
585
622
  d: "M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"
586
- }, null, 8, Vt),
623
+ }, null, 8, Gt),
587
624
  s("circle", {
588
625
  class: "vue-ui-mood-radar-trap",
589
626
  cx: "29",
590
627
  cy: "95.5",
591
628
  r: "20",
592
- fill: f.value === "1" ? a(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
593
- onMouseenter: l[12] || (l[12] = (t) => I("1")),
594
- onMouseleave: l[13] || (l[13] = (t) => S("1")),
595
- onClick: l[14] || (l[14] = (t) => M("1"))
596
- }, null, 40, jt)
597
- ], 8, Dt),
629
+ fill: p.value === "1" ? a($)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
630
+ onMouseenter: l[12] || (l[12] = (t) => F("1")),
631
+ onMouseleave: l[13] || (l[13] = (t) => B("1")),
632
+ onClick: l[14] || (l[14] = (t) => N("1"))
633
+ }, null, 40, Ht)
634
+ ], 8, Wt),
598
635
  s("path", {
599
- d: a(at)(K.value.map((t) => t.plots)),
636
+ d: a(it)(J.value.map((t) => t.plots)),
600
637
  stroke: e.value.style.chart.layout.dataPolygon.stroke,
601
638
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
602
639
  "stroke-linecap": "round",
603
640
  "stroke-linejoin": "round",
604
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
605
- }, null, 8, zt),
606
- (r(!0), c(pe, null, ge(K.value.map((t) => t.plots), (t, i) => (r(), c("g", {
641
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a($)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
642
+ }, null, 8, Xt),
643
+ (r(!0), v(be, null, Ce(J.value.map((t) => t.plots), (t, i) => (r(), v("g", {
607
644
  class: "vue-ui-mood-radar-trap",
608
- style: V(`opacity:${f.value == t.key ? "1" : "0"}`)
645
+ style: j(`opacity:${p.value == t.key ? "1" : "0"}`)
609
646
  }, [
610
647
  s("line", {
611
648
  x1: t.x,
@@ -613,7 +650,7 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
613
650
  x2: n.value.width / 2,
614
651
  y2: n.value.height / 2,
615
652
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
616
- }, null, 8, Ut),
653
+ }, null, 8, Kt),
617
654
  s("circle", {
618
655
  cx: t.x,
619
656
  cy: t.y,
@@ -621,7 +658,7 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
621
658
  r: "3",
622
659
  stroke: e.value.style.chart.backgroundColor,
623
660
  "stroke-width": 0.5
624
- }, null, 8, Wt),
661
+ }, null, 8, qt),
625
662
  s("circle", {
626
663
  cx: n.value.width / 2,
627
664
  cy: n.value.height / 2,
@@ -629,7 +666,7 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
629
666
  r: "3",
630
667
  stroke: e.value.style.chart.backgroundColor,
631
668
  "stroke-width": 0.5
632
- }, null, 8, Gt),
669
+ }, null, 8, Yt),
633
670
  s("text", {
634
671
  x: n.value.width / 2,
635
672
  y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
@@ -637,90 +674,90 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
637
674
  "font-size": "12",
638
675
  "text-anchor": "middle",
639
676
  "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
640
- }, E(a(ke)(
677
+ }, L(a(_e)(
641
678
  e.value.style.chart.layout.dataLabel.formatter,
642
679
  t.value,
643
- a(U)({
680
+ a(H)({
644
681
  p: e.value.style.chart.layout.dataLabel.prefix,
645
682
  v: t.value,
646
683
  s: e.value.style.chart.layout.dataLabel.suffix,
647
684
  r: e.value.style.chart.layout.dataLabel.roundingValue
648
685
  }),
649
686
  { datapoint: t, seriesIndex: i }
650
- )), 9, Ht),
687
+ )), 9, Jt),
651
688
  s("text", {
652
689
  x: n.value.width / 2,
653
690
  y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
654
691
  fill: e.value.style.chart.layout.dataLabel.color,
655
692
  "font-size": "12",
656
693
  "text-anchor": "middle"
657
- }, " (" + E(a(U)({
658
- v: t.value / A.value * 100,
694
+ }, " (" + L(a(H)({
695
+ v: t.value / M.value * 100,
659
696
  s: "%",
660
697
  r: e.value.style.chart.layout.dataLabel.roundingPercentage
661
- })) + ") ", 9, Xt)
698
+ })) + ") ", 9, Qt)
662
699
  ], 4))), 256)),
663
- h(o.$slots, "svg", { svg: n.value }, void 0, !0)
664
- ], 14, bt)),
665
- o.$slots.watermark ? (r(), c("div", Kt, [
666
- h(o.$slots, "watermark", j(z({ isPrinting: a(ue) || a(ie) })), void 0, !0)
700
+ f(o.$slots, "svg", { svg: n.value }, void 0, !0)
701
+ ], 14, _t)),
702
+ o.$slots.watermark ? (r(), v("div", Zt, [
703
+ f(o.$slots, "watermark", W(G({ isPrinting: a(ce) || a(ve) })), void 0, !0)
667
704
  ])) : d("", !0),
668
705
  s("div", {
669
706
  id: `legend-bottom-${k.value}`
670
- }, null, 8, qt),
671
- oe.value ? (r(), g(Xe, {
707
+ }, null, 8, eo),
708
+ se.value ? (r(), m(Qe, {
672
709
  key: 5,
673
710
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
674
711
  }, [
675
712
  s("div", {
676
713
  ref_key: "chartLegend",
677
- ref: ee
714
+ ref: le
678
715
  }, [
679
- e.value.style.chart.legend.show ? (r(), g(pt, {
680
- legendSet: v.value,
681
- config: Be.value,
682
- key: `legend_${Q.value}`,
716
+ e.value.style.chart.legend.show ? (r(), m(Ct, {
717
+ legendSet: h.value,
718
+ config: Ge.value,
719
+ key: `legend_${te.value}`,
683
720
  style: { display: "flex", "row-gap": "6px" }
684
721
  }, {
685
- item: m(({ legend: t, index: i }) => [
722
+ item: y(({ legend: t, index: i }) => [
686
723
  s("div", {
687
- onClick: () => De(t.key),
724
+ onClick: () => He(t.key),
688
725
  style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
689
726
  }, [
690
- t.key == 1 ? (r(), g(a(P), {
727
+ t.key == 1 ? (r(), m(a(T), {
691
728
  key: 0,
692
729
  strokeWidth: 1,
693
730
  name: "moodSad",
694
731
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
695
732
  }, null, 8, ["stroke"])) : d("", !0),
696
- t.key == 2 ? (r(), g(a(P), {
733
+ t.key == 2 ? (r(), m(a(T), {
697
734
  key: 1,
698
735
  strokeWidth: 1,
699
736
  name: "moodFlat",
700
737
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
701
738
  }, null, 8, ["stroke"])) : d("", !0),
702
- t.key == 3 ? (r(), g(a(P), {
739
+ t.key == 3 ? (r(), m(a(T), {
703
740
  key: 2,
704
741
  strokeWidth: 1,
705
742
  name: "moodNeutral",
706
743
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
707
744
  }, null, 8, ["stroke"])) : d("", !0),
708
- t.key == 4 ? (r(), g(a(P), {
745
+ t.key == 4 ? (r(), m(a(T), {
709
746
  key: 3,
710
747
  strokeWidth: 1,
711
748
  name: "smiley",
712
749
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
713
750
  }, null, 8, ["stroke"])) : d("", !0),
714
- t.key == 5 ? (r(), g(a(P), {
751
+ t.key == 5 ? (r(), m(a(T), {
715
752
  key: 4,
716
753
  strokeWidth: 1,
717
754
  name: "moodHappy",
718
755
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
719
756
  }, null, 8, ["stroke"])) : d("", !0),
720
- a(W) ? d("", !0) : (r(), c("span", Jt, E(a(ke)(
757
+ a(X) ? d("", !0) : (r(), v("span", oo, L(a(_e)(
721
758
  e.value.style.chart.layout.dataLabel.formatter,
722
759
  t.value,
723
- a(U)({
760
+ a(H)({
724
761
  p: e.value.style.chart.layout.dataLabel.prefix,
725
762
  v: t.value,
726
763
  s: e.value.style.chart.layout.dataLabel.suffix,
@@ -728,69 +765,83 @@ const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "heigh
728
765
  }),
729
766
  { datapoint: t, seriesIndex: i }
730
767
  )), 1)),
731
- a(W) ? d("", !0) : (r(), c("span", Qt, "(" + E(a(U)({
768
+ a(X) ? d("", !0) : (r(), v("span", lo, "(" + L(a(H)({
732
769
  v: t.proportion * 100,
733
770
  s: "%",
734
771
  r: e.value.style.chart.legend.roundingPercentage
735
772
  })) + ")", 1))
736
- ], 8, Yt)
773
+ ], 8, to)
737
774
  ]),
738
775
  _: 1
739
776
  }, 8, ["legendSet", "config"])) : d("", !0),
740
- h(o.$slots, "legend", { legend: v.value }, void 0, !0)
777
+ f(o.$slots, "legend", { legend: h.value }, void 0, !0)
741
778
  ], 512)
742
779
  ], 8, ["to"])) : d("", !0),
743
- o.$slots.source ? (r(), c("div", {
780
+ o.$slots.source ? (r(), v("div", {
744
781
  key: 6,
745
782
  ref_key: "source",
746
- ref: te,
783
+ ref: ae,
747
784
  dir: "auto"
748
785
  }, [
749
- h(o.$slots, "source", {}, void 0, !0)
786
+ f(o.$slots, "source", {}, void 0, !0)
750
787
  ], 512)) : d("", !0),
751
- le.value ? (r(), g(a(we), {
752
- key: 7,
753
- hideDetails: "",
754
- config: {
755
- open: O.value.showTable,
756
- maxHeight: 1e4,
757
- body: {
758
- backgroundColor: e.value.style.chart.backgroundColor,
759
- color: e.value.style.chart.color
760
- },
761
- head: {
762
- backgroundColor: e.value.style.chart.backgroundColor,
763
- color: e.value.style.chart.color
764
- }
765
- }
766
- }, {
767
- content: m(() => [
768
- Y(a($e), {
769
- colNames: B.value.colNames,
770
- head: B.value.head,
771
- body: B.value.body,
772
- config: B.value.config,
773
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
774
- onClose: l[15] || (l[15] = (t) => O.value.showTable = !1)
788
+ ne.value ? (r(), m(Ze(E.value.component), et({ key: 7 }, E.value.props, {
789
+ ref_key: "tableUnit",
790
+ ref: D,
791
+ onClose: l[17] || (l[17] = (t) => w.value.showTable = !1)
792
+ }), ke({
793
+ content: y(() => [
794
+ z(a(Ne), {
795
+ colNames: V.value.colNames,
796
+ head: V.value.head,
797
+ body: V.value.body,
798
+ config: V.value.config,
799
+ title: e.value.table.useDialog ? "" : E.value.title,
800
+ withCloseButton: !e.value.table.useDialog,
801
+ onClose: l[16] || (l[16] = (t) => w.value.showTable = !1)
775
802
  }, {
776
- th: m(({ th: t }) => [
803
+ th: y(({ th: t }) => [
777
804
  s("div", {
778
805
  innerHTML: t,
779
806
  style: { display: "flex", "align-items": "center" }
780
- }, null, 8, Zt)
807
+ }, null, 8, ao)
781
808
  ]),
782
- td: m(({ td: t }) => [
783
- Ke(E(t.name || t), 1)
809
+ td: y(({ td: t }) => [
810
+ we(L(t.name || t), 1)
784
811
  ]),
785
812
  _: 1
786
- }, 8, ["colNames", "head", "body", "config", "title"])
813
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
787
814
  ]),
788
- _: 1
789
- }, 8, ["config"])) : d("", !0),
790
- a(W) ? (r(), g(dt, { key: 8 })) : d("", !0)
791
- ], 46, mt));
815
+ _: 2
816
+ }, [
817
+ e.value.table.useDialog ? {
818
+ name: "title",
819
+ fn: y(() => [
820
+ we(L(E.value.title), 1)
821
+ ]),
822
+ key: "0"
823
+ } : void 0,
824
+ e.value.table.useDialog ? {
825
+ name: "actions",
826
+ fn: y(() => [
827
+ s("button", {
828
+ tabindex: "0",
829
+ class: "vue-ui-user-options-button",
830
+ onClick: l[15] || (l[15] = (t) => Q(e.value.userOptions.callbacks.csv))
831
+ }, [
832
+ z(a(T), {
833
+ name: "excel",
834
+ stroke: E.value.props.color
835
+ }, null, 8, ["stroke"])
836
+ ])
837
+ ]),
838
+ key: "1"
839
+ } : void 0
840
+ ]), 1040)) : d("", !0),
841
+ a(X) ? (r(), m(ft, { key: 8 })) : d("", !0)
842
+ ], 46, xt));
792
843
  }
793
- }, ho = /* @__PURE__ */ gt(eo, [["__scopeId", "data-v-daa609e7"]]);
844
+ }, ko = /* @__PURE__ */ wt(so, [["__scopeId", "data-v-5ae0d1e0"]]);
794
845
  export {
795
- ho as default
846
+ ko as default
796
847
  };