vue-data-ui 2.12.0 → 2.12.2

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 (86) hide show
  1. package/README.md +3 -1
  2. package/dist/{Arrow-DDRsdhZn.js → Arrow-DIWP4RKK.js} +1 -1
  3. package/dist/{BaseIcon-CPSasvwJ.js → BaseIcon-C8PYAGSm.js} +1 -1
  4. package/dist/{ColorPicker-Bu3ocoLc.js → ColorPicker-DVqKbGvI.js} +3 -3
  5. package/dist/{DataTable-64MQdfSC.js → DataTable-bu8svd8_.js} +2 -2
  6. package/dist/{Legend-DQGaC-7K.js → Legend-DPhZp44K.js} +2 -2
  7. package/dist/{PackageVersion-BZmn5l24.js → PackageVersion-DV3lyC6_.js} +1 -1
  8. package/dist/{PenAndPaper-BGTby4ih.js → PenAndPaper-mmgChIlY.js} +3 -3
  9. package/dist/{Shape-CrvsxzqI.js → Shape-CqqGhNJ7.js} +1 -1
  10. package/dist/{Slicer-Jxw9aXXo.js → Slicer-4gNIAogU.js} +2 -2
  11. package/dist/{Title-CbtqUCDq.js → Title-BjMd4WGZ.js} +1 -1
  12. package/dist/{Tooltip-BW22mERF.js → Tooltip-QXYFefbw.js} +1 -1
  13. package/dist/{dom-to-png-mqrqFtQK.js → dom-to-png-xlji2G1x.js} +1 -1
  14. package/dist/{img-Y8EW2l65.js → img-DazS1-Hk.js} +1 -1
  15. package/dist/{index-k-TENgkl.js → index-DISniBjo.js} +27 -25
  16. package/dist/{pdf-z0T-YjDO.js → pdf-CQZKhr5c.js} +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/types/vue-data-ui.d.cts +2 -0
  19. package/dist/types/vue-data-ui.d.ts +2 -0
  20. package/dist/{useNestedProp-BQzXvt0H.js → useNestedProp-Cg1rd0rj.js} +1 -1
  21. package/dist/{usePrinter-B3U6P71r.js → usePrinter-Cw5Mv9xt.js} +3 -3
  22. package/dist/{vue-data-ui-BwwD2u_u.js → vue-data-ui-BTvacIdS.js} +63 -63
  23. package/dist/vue-data-ui.js +1 -1
  24. package/dist/{vue-ui-3d-bar-Bx_MIxW7.js → vue-ui-3d-bar-BxHQK-2L.js} +9 -9
  25. package/dist/{vue-ui-accordion-BvG2cZf1.js → vue-ui-accordion-CFpwBwSP.js} +3 -3
  26. package/dist/{vue-ui-age-pyramid-CDKy2P9O.js → vue-ui-age-pyramid-MdH3FVAn.js} +10 -10
  27. package/dist/{vue-ui-annotator-BAJTr6FD.js → vue-ui-annotator-CoTlk9ka.js} +2 -2
  28. package/dist/{vue-ui-bullet-Dje2wg8I.js → vue-ui-bullet-BXcym8wq.js} +8 -8
  29. package/dist/{vue-ui-candlestick-fX576D5A.js → vue-ui-candlestick-pPYXGx-u.js} +11 -11
  30. package/dist/{vue-ui-carousel-table-CmObt9aO.js → vue-ui-carousel-table-CSBqSz49.js} +4 -4
  31. package/dist/{vue-ui-chestnut-PBM9zTQ-.js → vue-ui-chestnut-BIB3Y5Do.js} +8 -8
  32. package/dist/{vue-ui-chord-B-0byToI.js → vue-ui-chord-D7Zxwz-p.js} +349 -333
  33. package/dist/{vue-ui-circle-pack-rbvrpRAc.js → vue-ui-circle-pack-CshPHdim.js} +9 -9
  34. package/dist/{vue-ui-cursor-TKh5iDDp.js → vue-ui-cursor-Dy7yoURO.js} +2 -2
  35. package/dist/{vue-ui-dashboard-C82YUwLA.js → vue-ui-dashboard-CTcgQdrY.js} +62 -62
  36. package/dist/{vue-ui-digits-CvBJi0Tq.js → vue-ui-digits-BgMG_ZD8.js} +2 -2
  37. package/dist/{vue-ui-donut-C4j70CI7.js → vue-ui-donut-CD5UvHFF.js} +12 -12
  38. package/dist/{vue-ui-donut-evolution-DMqXUt12.js → vue-ui-donut-evolution-CTTMpOmA.js} +11 -11
  39. package/dist/{vue-ui-dumbbell-DpO9YGBE.js → vue-ui-dumbbell-Bndr5fG2.js} +10 -10
  40. package/dist/{vue-ui-flow-CUfqW31t.js → vue-ui-flow-CEbuZB4v.js} +11 -11
  41. package/dist/{vue-ui-funnel-BfduqCYK.js → vue-ui-funnel-np6S0JDG.js} +9 -9
  42. package/dist/{vue-ui-galaxy-DPar-E51.js → vue-ui-galaxy-CcRvS9jz.js} +11 -11
  43. package/dist/{vue-ui-gauge-CcjDaq63.js → vue-ui-gauge-DZHM1d1w.js} +7 -7
  44. package/dist/{vue-ui-gizmo-B_ym3int.js → vue-ui-gizmo-VsNpWU8R.js} +3 -3
  45. package/dist/{vue-ui-heatmap-DI-_vOk9.js → vue-ui-heatmap-COGgS2DC.js} +10 -10
  46. package/dist/{vue-ui-history-plot-BsArezyK.js → vue-ui-history-plot-DP8d4EI1.js} +11 -11
  47. package/dist/{vue-ui-kpi-BpWcYF6b.js → vue-ui-kpi-DRE3-5BM.js} +3 -3
  48. package/dist/{vue-ui-mini-loader-BGa_4ML-.js → vue-ui-mini-loader-CXAQz2Au.js} +2 -2
  49. package/dist/{vue-ui-molecule-DX2iIPZk.js → vue-ui-molecule-CqszhlfW.js} +11 -11
  50. package/dist/{vue-ui-mood-radar-Cg5i5Gja.js → vue-ui-mood-radar-D5sAYfFF.js} +11 -11
  51. package/dist/{vue-ui-nested-donuts-DYU9w0VR.js → vue-ui-nested-donuts-C3FhBgMa.js} +11 -11
  52. package/dist/{vue-ui-onion-MVnP5IPP.js → vue-ui-onion-w4Bhv7xJ.js} +11 -11
  53. package/dist/{vue-ui-parallel-coordinate-plot-BUO5USbO.js → vue-ui-parallel-coordinate-plot-CkP97yTg.js} +12 -12
  54. package/dist/{vue-ui-quadrant-DvCdsNT3.js → vue-ui-quadrant-CjNqMQH1.js} +12 -12
  55. package/dist/{vue-ui-quick-chart-Coq_TT4K.js → vue-ui-quick-chart-D-RFob0G.js} +9 -9
  56. package/dist/{vue-ui-radar-ksmA1eNa.js → vue-ui-radar-GGHlFIw7.js} +12 -12
  57. package/dist/{vue-ui-rating-BjNei1jK.js → vue-ui-rating-Kl95_moc.js} +2 -2
  58. package/dist/{vue-ui-relation-circle-Dz27DBjO.js → vue-ui-relation-circle-TKmNIsV8.js} +7 -7
  59. package/dist/{vue-ui-ridgeline-DvACw7ca.js → vue-ui-ridgeline-DZTiIMvd.js} +12 -12
  60. package/dist/{vue-ui-rings-3U2BWSD-.js → vue-ui-rings-9KoP64bM.js} +12 -12
  61. package/dist/{vue-ui-scatter-CzCxAM-H.js → vue-ui-scatter-XvOvEdKX.js} +12 -12
  62. package/dist/{vue-ui-skeleton-LOBxYAj5.js → vue-ui-skeleton-DCo7JrxG.js} +3 -3
  63. package/dist/{vue-ui-smiley-B5x0f6IE.js → vue-ui-smiley-D4l-H6u5.js} +2 -2
  64. package/dist/{vue-ui-spark-trend-BJL392y-.js → vue-ui-spark-trend-CCoAQ33g.js} +5 -5
  65. package/dist/{vue-ui-sparkbar-CYTCFFZ4.js → vue-ui-sparkbar-DGIrdVjR.js} +4 -4
  66. package/dist/{vue-ui-sparkgauge-CtgQ7eqo.js → vue-ui-sparkgauge-B9ENwH2o.js} +4 -4
  67. package/dist/{vue-ui-sparkhistogram-Drd-nNZL.js → vue-ui-sparkhistogram-RhVUFKFA.js} +5 -5
  68. package/dist/{vue-ui-sparkline-RMyEJzSC.js → vue-ui-sparkline-BvRg6qp5.js} +4 -4
  69. package/dist/{vue-ui-sparkstackbar-xwahpmeL.js → vue-ui-sparkstackbar-DMTAd6mK.js} +5 -5
  70. package/dist/{vue-ui-stackbar-BOhzD5_W.js → vue-ui-stackbar-Dz3jTKsH.js} +13 -13
  71. package/dist/{vue-ui-strip-plot-jus4xcWs.js → vue-ui-strip-plot-gH9KxfjT.js} +11 -11
  72. package/dist/{vue-ui-table-heatmap-sT80xAnB.js → vue-ui-table-heatmap-DzEL36oR.js} +4 -4
  73. package/dist/{vue-ui-table-sparkline-B9G42V97.js → vue-ui-table-sparkline-D5BCWZ-0.js} +5 -5
  74. package/dist/{vue-ui-table-BCArkzoU.js → vue-ui-table-viiFQ5KP.js} +3 -3
  75. package/dist/{vue-ui-thermometer-CMqRiRxw.js → vue-ui-thermometer-ralhUVUt.js} +7 -7
  76. package/dist/{vue-ui-timer-DLXveBI_.js → vue-ui-timer-DThtG4by.js} +5 -5
  77. package/dist/{vue-ui-tiremarks-BP2_KcUJ.js → vue-ui-tiremarks-CykunRsN.js} +7 -7
  78. package/dist/{vue-ui-treemap-CNHi1E6G.js → vue-ui-treemap-qk-p7xMT.js} +12 -12
  79. package/dist/{vue-ui-vertical-bar-kpSssDOU.js → vue-ui-vertical-bar-EWqYvvQn.js} +12 -12
  80. package/dist/{vue-ui-waffle-Br8t4XKd.js → vue-ui-waffle-6X5vGivF.js} +12 -12
  81. package/dist/{vue-ui-wheel-D80M81Bf.js → vue-ui-wheel-BYjveZ2z.js} +7 -7
  82. package/dist/{vue-ui-word-cloud-w4Qq_dqB.js → vue-ui-word-cloud-DmYJrVSa.js} +10 -10
  83. package/dist/{vue-ui-world-CDSH4faH.js → vue-ui-world-uRUcczm9.js} +11 -11
  84. package/dist/{vue-ui-xy-CCHnnV7y.js → vue-ui-xy-cUHI3LR_.js} +16 -16
  85. package/dist/{vue-ui-xy-canvas-TJ6MbOBd.js → vue-ui-xy-canvas-BI49wqJK.js} +12 -12
  86. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- import { useCssVars as pt, ref as d, computed as x, watch as mt, onMounted as Ge, onBeforeUnmount as Ve, createElementBlock as i, openBlock as n, unref as k, normalizeStyle as N, normalizeClass as X, createBlock as j, createCommentVNode as v, renderSlot as $, createElementVNode as O, createSlots as We, withCtx as P, normalizeProps as oe, guardReactiveProps as le, withModifiers as qe, createVNode as de, Fragment as z, renderList as U, mergeProps as yt, toDisplayString as V, createTextVNode as kt, nextTick as $t } from "vue";
2
- import { u as wt, c as ve, t as Ct, p as se, a as Mt, o as xt, e as He, g as _t, b as It, d as At, X as Pt, G as Tt, q as St, r as Bt, i as Ot, f as Lt } from "./index-k-TENgkl.js";
3
- import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as Qe } from "./useNestedProp-BQzXvt0H.js";
5
- import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
6
- import { _ as zt } from "./Title-CbtqUCDq.js";
7
- import { _ as Ft } from "./PackageVersion-BZmn5l24.js";
8
- import { _ as Xt } from "./PenAndPaper-BGTby4ih.js";
9
- import Rt from "./BaseIcon-CPSasvwJ.js";
10
- import { u as Dt, U as jt } from "./usePrinter-B3U6P71r.js";
11
- import { L as Ut } from "./Legend-DQGaC-7K.js";
12
- import { _ as Yt } from "./Shape-CrvsxzqI.js";
13
- import { D as Gt } from "./DataTable-64MQdfSC.js";
14
- import Vt from "./vue-ui-accordion-BvG2cZf1.js";
15
- import Wt from "./vue-ui-skeleton-LOBxYAj5.js";
1
+ import { useCssVars as mt, ref as d, computed as x, watch as yt, onMounted as Ve, onBeforeUnmount as We, createElementBlock as i, openBlock as r, unref as b, normalizeStyle as E, normalizeClass as z, createBlock as U, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as qe, withCtx as P, normalizeProps as le, guardReactiveProps as se, withModifiers as He, createVNode as de, Fragment as F, renderList as Y, mergeProps as kt, toDisplayString as R, createTextVNode as $t, nextTick as wt } from "vue";
2
+ import { u as Ct, c as ve, t as Mt, p as re, a as xt, o as _t, e as Qe, g as It, b as At, d as Pt, X as Tt, G as St, f as he, q as Ot, r as Bt, i as Lt } from "./index-DISniBjo.js";
3
+ import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
4
+ import { u as Ze } from "./useNestedProp-Cg1rd0rj.js";
5
+ import { u as Et } from "./useChartAccessibility-BWojgys7.js";
6
+ import { _ as zt } from "./Title-BjMd4WGZ.js";
7
+ import { _ as Ft } from "./PackageVersion-DV3lyC6_.js";
8
+ import { _ as Xt } from "./PenAndPaper-mmgChIlY.js";
9
+ import Rt from "./BaseIcon-C8PYAGSm.js";
10
+ import { u as jt, U as Dt } from "./usePrinter-Cw5Mv9xt.js";
11
+ import { L as Ut } from "./Legend-DPhZp44K.js";
12
+ import { _ as Yt } from "./Shape-CqqGhNJ7.js";
13
+ import { D as Gt } from "./DataTable-bu8svd8_.js";
14
+ import Vt from "./vue-ui-accordion-CFpwBwSP.js";
15
+ import Wt from "./vue-ui-skeleton-DCo7JrxG.js";
16
16
  import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
17
17
  import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ba = { key: 1 }, pa = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
18
+ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], ra = ["d", "fill"], na = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], pa = { key: 1 }, ba = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
19
19
  key: 5,
20
20
  class: "vue-data-ui-watermark"
21
21
  }, $a = ["onClick"], wa = {
@@ -39,164 +39,169 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
39
39
  }
40
40
  },
41
41
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
42
- setup(Ze, { expose: Je, emit: Ke }) {
43
- pt((t) => ({
44
- "46d5979d": t.slicerColor
42
+ setup(Je, { expose: Ke, emit: et }) {
43
+ mt((t) => ({
44
+ "7189608a": t.slicerColor
45
45
  }));
46
- const { vue_ui_chord: et } = wt(), g = Ze, Z = Ke, L = d(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = d(ve()), w = d(null), p = d(null), f = d(null), he = d(0), Y = d(null), fe = d(null), ge = d(null), be = d(null), pe = d(null), me = d(0), ye = d(0), ke = d(0), G = d(!1), ne = d(null), a = x({
47
- get: () => Ie(),
46
+ const { vue_ui_chord: tt } = Ct(), f = Je, Z = et, L = d(!!f.dataset && Object.hasOwn(f.dataset, "matrix")), T = d(ve()), w = d(null), m = d(null), g = d(null), fe = d(0), G = d(null), ge = d(null), pe = d(null), be = d(null), me = d(null), ye = d(0), ke = d(0), $e = d(0), V = d(!1), ne = d(null), a = x({
47
+ get: () => Ae(),
48
48
  set: (t) => t
49
- }), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: a.value }), { svgRef: W } = Nt({ config: a.value.style.chart.title }), { isPrinting: Ce, isImaging: Me, generatePdf: xe, generateImage: _e } = Dt({
49
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: Ce } = Nt({ config: a.value }), { svgRef: W } = Et({ config: a.value.style.chart.title }), { isPrinting: Me, isImaging: xe, generatePdf: _e, generateImage: Ie } = jt({
50
50
  elementId: `chord_${T.value}`,
51
51
  fileName: a.value.style.chart.title.text || "vue-ui-chord",
52
52
  options: a.value.userOptions.print
53
53
  }), q = d({
54
54
  showTable: a.value.table.show
55
55
  });
56
- function Ie() {
57
- const t = Qe({
58
- userConfig: g.config,
59
- defaultConfig: et
56
+ function Ae() {
57
+ const t = Ze({
58
+ userConfig: f.config,
59
+ defaultConfig: tt
60
60
  });
61
61
  return t.theme ? {
62
- ...Qe({
63
- userConfig: Mt.vue_ui_chord[t.theme] || g.config,
62
+ ...Ze({
63
+ userConfig: xt.vue_ui_chord[t.theme] || f.config,
64
64
  defaultConfig: t
65
65
  }),
66
- customPalette: Ct[t.theme] || se
66
+ customPalette: Mt[t.theme] || re
67
67
  } : t;
68
68
  }
69
- mt(() => g.config, (t) => {
70
- a.value = Ie(), re.value = !a.value.userOptions.showOnChartHover, Ae(), me.value += 1, ye.value += 1, ke.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
69
+ yt(() => f.config, (t) => {
70
+ a.value = Ae(), ue.value = !a.value.userOptions.showOnChartHover, Pe(), ye.value += 1, ke.value += 1, $e.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
71
71
  }, { deep: !0 });
72
- function Ae() {
73
- if (xt(g.dataset) ? He({
72
+ function Pe() {
73
+ if (_t(f.dataset) ? Qe({
74
74
  componentName: "VueUiChord",
75
75
  type: "dataset"
76
- }) : _t({
77
- datasetObject: g.dataset,
76
+ }) : It({
77
+ datasetObject: f.dataset,
78
78
  requiredAttributes: ["matrix"]
79
79
  }).forEach((t) => {
80
- L.value = !1, He({
80
+ L.value = !1, Qe({
81
81
  componentName: "VueUiChord",
82
82
  type: "datasetAttribute",
83
83
  property: t
84
84
  });
85
- }), L.value && Pe(), a.value.responsive) {
86
- const t = Y.value.parentNode, o = qt(() => {
87
- const { width: l, height: u, heightNoTitle: s, heightSource: r, heightTitle: h, heightLegend: C } = Ht({
88
- chart: Y.value,
89
- title: a.value.style.chart.title.text ? fe.value : null,
90
- legend: a.value.style.chart.legend.show ? ge.value : null,
85
+ }), L.value && Te(), a.value.responsive) {
86
+ const t = G.value.parentNode, o = qt(() => {
87
+ const { width: l, height: n, heightNoTitle: s, heightSource: u, heightTitle: h, heightLegend: C } = Ht({
88
+ chart: G.value,
89
+ title: a.value.style.chart.title.text ? ge.value : null,
90
+ legend: a.value.style.chart.legend.show ? pe.value : null,
91
91
  source: be.value,
92
- noTitle: pe.value
93
- }), M = h + C + r + s;
94
- l < u ? Y.value.style.width = "100%" : (Y.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
92
+ noTitle: me.value
93
+ }), M = h + C + u + s;
94
+ l < n ? G.value.style.width = "100%" : (G.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
95
95
  }, 100), e = new ResizeObserver(o);
96
96
  e.observe(t), ne.value = e, o();
97
97
  }
98
- Te.value = setTimeout(() => {
99
- G.value = !0;
98
+ Se.value = setTimeout(() => {
99
+ V.value = !0;
100
100
  }, 500);
101
101
  }
102
- function Pe() {
103
- g.dataset.matrix.length < 2 && (console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
102
+ function Te() {
103
+ if (!f.dataset || !Object.hasOwn(f.dataset, "matrix") || f.dataset.matrix.length < 2) {
104
+ console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
104
105
 
105
106
  matrix:[
106
107
  [1, 1],
107
108
  [1, 1]
108
- ]`), L.value = !1), g.dataset.matrix.forEach((t, o) => {
109
- t.length !== g.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${g.dataset.matrix.length}
109
+ ]`), L.value = !1;
110
+ return;
111
+ }
112
+ f.dataset.matrix.forEach((t, o) => {
113
+ t.length !== f.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${f.dataset.matrix.length}
110
114
 
111
- dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${g.dataset.matrix.length})`), L.value = !1);
115
+ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${f.dataset.matrix.length})`), L.value = !1);
112
116
  });
113
117
  }
114
- const Te = d(null);
115
- Ge(() => {
116
- Ae();
118
+ const Se = d(null);
119
+ Ve(() => {
120
+ Pe();
117
121
  });
118
122
  const S = d({
119
123
  height: 600,
120
124
  width: 600
121
- }), tt = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), at = x(() => It(a.value.customPalette)), b = x(() => ({
125
+ }), at = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), ot = x(() => At(a.value.customPalette)), p = x(() => ({
122
126
  inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
123
127
  outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
124
- })), ot = x(() => a.value.style.chart.arcs.padAngle / 100), m = x(() => L.value ? {
125
- matrix: g.dataset.matrix ?? [[0]],
126
- labels: g.dataset.labels ?? [""],
127
- colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => At(t)) : g.dataset.matrix.map((t, o) => at.value[o] || se[o] || se[o % se.length])
128
+ })), lt = x(() => a.value.style.chart.arcs.padAngle / 100), y = x(() => L.value ? {
129
+ matrix: f.dataset.matrix ?? [[0]],
130
+ labels: f.dataset.labels ?? [""],
131
+ colors: f.dataset.colors && Array.isArray(f.dataset.colors) && f.dataset.colors.length ? f.dataset.colors.map((t) => Pt(t)) : f.dataset.matrix.map((t, o) => ot.value[o] || re[o] || re[o % re.length])
128
132
  } : {
129
133
  matrix: [],
130
134
  labels: [],
131
135
  colors: []
132
136
  });
133
- function lt(t, o) {
134
- const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
137
+ function st(t, o) {
138
+ const e = t.length, l = p.value.inner, n = new Array(e).fill(0);
135
139
  let s = 0;
136
140
  for (let c = 0; c < e; c += 1)
137
- for (let y = 0; y < e; y += 1)
138
- u[c] += t[c][y], s += t[c][y];
139
- const r = (2 * Math.PI - o * e) / s, h = [];
141
+ for (let k = 0; k < e; k += 1)
142
+ n[c] += t[c][k], s += t[c][k];
143
+ const u = (2 * Math.PI - o * e) / s, h = [];
140
144
  let C = 0;
141
145
  for (let c = 0; c < e; c += 1) {
142
- const y = C, A = y + u[c] * r;
146
+ const k = C, A = k + n[c] * u;
143
147
  h.push({
144
148
  index: c,
145
149
  pattern: `pattern_${T.value}_${c}`,
146
- startAngle: y,
150
+ startAngle: k,
147
151
  endAngle: A,
148
- name: m.value.labels[c],
152
+ name: y.value.labels[c],
149
153
  id: ve(),
150
- color: m.value.colors[c]
154
+ color: y.value.colors[c],
155
+ proportion: n[c] / s
151
156
  }), C = A + o;
152
157
  }
153
158
  const M = [];
154
159
  for (let c = 0; c < e; c += 1) {
155
- const y = t[c].map((B, F) => ({ j: F, v: B }));
156
- y.sort((B, F) => F.v - B.v);
160
+ const k = t[c].map((O, X) => ({ j: X, v: O }));
161
+ k.sort((O, X) => X.v - O.v);
157
162
  let A = h[c].startAngle;
158
- for (const { j: B, v: F } of y) {
159
- const D = A, Q = D + F * r;
163
+ for (const { j: O, v: X } of k) {
164
+ const D = A, Q = D + X * u;
160
165
  M.push({
161
166
  index: c,
162
- subIndex: B,
167
+ subIndex: O,
163
168
  pattern: `pattern_${T.value}_${c}`,
164
169
  startAngle: D,
165
170
  endAngle: Q,
166
- value: F,
167
- groupName: m.value.labels[c],
171
+ value: X,
172
+ groupName: y.value.labels[c],
168
173
  groupId: h[c].id,
169
- groupColor: m.value.colors[c],
174
+ groupColor: y.value.colors[c],
170
175
  midAngle: (D + Q) / 2,
171
176
  midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
172
177
  midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
173
178
  }), A = Q;
174
179
  }
175
180
  }
176
- const E = [];
181
+ const N = [];
177
182
  for (const c of M) {
178
- const y = M.find(
183
+ const k = M.find(
179
184
  (A) => A.index === c.subIndex && A.subIndex === c.index
180
185
  );
181
- E.push({ source: c, target: y, id: ve() });
186
+ N.push({ source: c, target: k, id: ve() });
182
187
  }
183
- return { groups: h, chords: E };
188
+ return { groups: h, chords: N };
184
189
  }
185
190
  const _ = x(() => {
186
- const t = lt(m.value.matrix, ot.value);
187
- return Pe(), t.chords.sort(
191
+ const t = st(y.value.matrix, lt.value);
192
+ return Te(), t.chords.sort(
188
193
  (o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
189
194
  ), t;
190
- }), st = x(() => {
191
- const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
192
- if (p.value) {
193
- const s = p.value;
195
+ }), rt = x(() => {
196
+ const t = p.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
197
+ if (m.value) {
198
+ const s = m.value;
194
199
  if (s.source.value) {
195
- const r = String(s.source.value);
200
+ const u = String(s.source.value);
196
201
  l.push({
197
202
  id: s.id + "-src",
198
203
  theta: s.source.midAngle,
199
- w: r.length * e / t,
204
+ w: u.length * e / t,
200
205
  midBaseX: s.source.midBaseX,
201
206
  midBaseY: s.source.midBaseY,
202
207
  groupColor: s.source.groupColor,
@@ -204,11 +209,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
204
209
  });
205
210
  }
206
211
  if (s.target && s.target.value && s.target.value !== s.source.value) {
207
- const r = String(s.target.value);
212
+ const u = String(s.target.value);
208
213
  l.push({
209
214
  id: s.id + "-tgt",
210
215
  theta: s.target.midAngle,
211
- w: r.length * e / t,
216
+ w: u.length * e / t,
212
217
  midBaseX: s.target.midBaseX,
213
218
  midBaseY: s.target.midBaseY,
214
219
  groupColor: s.target.groupColor,
@@ -217,98 +222,98 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
217
222
  }
218
223
  return l;
219
224
  }
220
- function u(s) {
221
- _.value.chords.filter((r) => r.source.groupId === s && r.source.value).forEach((r) => {
225
+ function n(s) {
226
+ _.value.chords.filter((u) => u.source.groupId === s && u.source.value).forEach((u) => {
222
227
  {
223
- const h = String(r.source.value);
228
+ const h = String(u.source.value);
224
229
  l.push({
225
- id: r.id + "-src",
226
- theta: r.source.midAngle,
230
+ id: u.id + "-src",
231
+ theta: u.source.midAngle,
227
232
  w: h.length * e / t,
228
- midBaseX: r.source.midBaseX,
229
- midBaseY: r.source.midBaseY,
230
- groupColor: r.source.groupColor,
231
- value: r.source.value
233
+ midBaseX: u.source.midBaseX,
234
+ midBaseY: u.source.midBaseY,
235
+ groupColor: u.source.groupColor,
236
+ value: u.source.value
232
237
  });
233
238
  }
234
- if (r.target && r.target.value && r.target.value !== r.source.value) {
235
- const h = String(r.target.value);
239
+ if (u.target && u.target.value && u.target.value !== u.source.value) {
240
+ const h = String(u.target.value);
236
241
  l.push({
237
- id: r.id + "-tgt",
238
- theta: r.target.midAngle,
242
+ id: u.id + "-tgt",
243
+ theta: u.target.midAngle,
239
244
  w: h.length * e / t,
240
- midBaseX: r.target.midBaseX,
241
- midBaseY: r.target.midBaseY,
242
- groupColor: r.target.groupColor,
243
- value: r.target.value
245
+ midBaseX: u.target.midBaseX,
246
+ midBaseY: u.target.midBaseY,
247
+ groupColor: u.target.groupColor,
248
+ value: u.target.value
244
249
  });
245
250
  }
246
251
  });
247
252
  }
248
- return f.value && u(f.value), w.value && u(w.value.id), l;
253
+ return g.value && n(g.value), w.value && n(w.value.id), l;
249
254
  }), nt = x(() => {
250
- const t = st.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
255
+ const t = rt.value.map((n) => ({ ...n })).sort((n, s) => n.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
251
256
  let e = !0, l = 0;
252
257
  for (; e && l++ < 10; ) {
253
258
  e = !1;
254
259
  for (let h = 1; h < t.length; h += 1) {
255
- const C = t[h - 1], M = t[h], E = C.theta + C.w + o;
256
- M.theta < E && (M.theta = E, e = !0);
260
+ const C = t[h - 1], M = t[h], N = C.theta + C.w + o;
261
+ M.theta < N && (M.theta = N, e = !0);
257
262
  }
258
- const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
259
- u.theta < r && (u.theta = r, e = !0);
263
+ const n = t[0], s = t[t.length - 1], u = s.theta + s.w + o - 2 * Math.PI;
264
+ n.theta < u && (n.theta = u, e = !0);
260
265
  }
261
266
  return t;
262
267
  });
263
- function Se(t, o, e, l) {
264
- const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, y = Math.cos(u) * l, A = Math.sin(u) * l, B = o - t > Math.PI ? 1 : 0;
265
- return `M${r},${h} A${e},${e} 0 ${B} 1 ${C},${M} L${E},${c} A${l},${l} 0 ${B} 0 ${y},${A} Z`;
268
+ function Oe(t, o, e, l) {
269
+ const n = t - Math.PI / 2, s = o - Math.PI / 2, u = Math.cos(n) * e, h = Math.sin(n) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(n) * l, A = Math.sin(n) * l, O = o - t > Math.PI ? 1 : 0;
270
+ return `M${u},${h} A${e},${e} 0 ${O} 1 ${C},${M} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${A} Z`;
266
271
  }
267
272
  function J(t, o) {
268
- const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, y = Math.sin(s) * e, A = Math.cos(r) * e, B = Math.sin(r) * e, F = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
269
- return `M${h},${C}A${e},${e} 0 ${F} 1 ${M},${E}Q0,0 ${c},${y}A${e},${e} 0 ${D} 1 ${A},${B}Q0,0 ${h},${C}Z`;
273
+ const e = p.value.inner, l = t.startAngle - Math.PI / 2, n = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(n) * e, N = Math.sin(n) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, A = Math.cos(u) * e, O = Math.sin(u) * e, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
274
+ return `M${h},${C}A${e},${e} 0 ${X} 1 ${M},${N}Q0,0 ${c},${k}A${e},${e} 0 ${D} 1 ${A},${O}Q0,0 ${h},${C}Z`;
270
275
  }
271
276
  const Be = x(() => I.value * Math.PI / 180);
272
- function rt(t) {
273
- return (t.startAngle + t.endAngle) / 2;
274
- }
275
277
  function ut(t) {
276
- return ((rt(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
278
+ return (t.startAngle + t.endAngle) / 2;
277
279
  }
278
280
  function it(t) {
281
+ return ((ut(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
282
+ }
283
+ function ct(t) {
279
284
  let o = t + Be.value;
280
285
  return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
281
286
  }
282
- function ct(t) {
283
- const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
287
+ function dt(t) {
288
+ const o = t - Math.PI / 2, e = Math.cos(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (p.value.outer + a.value.style.chart.arcs.labels.offset + 24);
284
289
  return `translate(${e},${l})`;
285
290
  }
286
- function dt(t, o, e) {
287
- const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, h = Math.cos(u) * e, C = Math.sin(u) * e, M = o - t > Math.PI ? 1 : 0;
288
- return `M${s},${r} A${e},${e} 0 ${M} 1 ${h},${C}`;
291
+ function vt(t, o, e) {
292
+ const l = t - Math.PI / 2, n = o - Math.PI / 2, s = Math.cos(l) * e, u = Math.sin(l) * e, h = Math.cos(n) * e, C = Math.sin(n) * e, M = o - t > Math.PI ? 1 : 0;
293
+ return `M${s},${u} A${e},${e} 0 ${M} 1 ${h},${C}`;
289
294
  }
290
- const I = d(a.value.initialRotation), ue = d(!1);
291
- let Oe = 0, Le = 0;
295
+ const I = d(a.value.initialRotation), K = d(!1);
296
+ let Le = 0, Ne = 0;
292
297
  function Ee(t) {
293
- const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
294
- return Math.atan2(s - l, u - e);
298
+ const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, n = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
299
+ return Math.atan2(s - l, n - e);
295
300
  }
296
- function Ne(t) {
297
- !a.value.enableRotation || H.value || (t.preventDefault(), ue.value = !0, Oe = I.value, Le = Ee(t));
301
+ function ze(t) {
302
+ !a.value.enableRotation || H.value || (t.preventDefault(), K.value = !0, Le = I.value, Ne = Ee(t));
298
303
  }
299
- function K(t) {
300
- if (!ue.value) return;
304
+ function ee(t) {
305
+ if (!K.value) return;
301
306
  const o = Ee(t);
302
- I.value = Oe + (o - Le) * 180 / Math.PI;
307
+ I.value = Le + (o - Ne) * 180 / Math.PI;
303
308
  }
304
- function ee() {
305
- ue.value = !1;
309
+ function te() {
310
+ K.value = !1;
306
311
  }
307
- function ze(t) {
308
- return Ot(
312
+ function Fe(t) {
313
+ return Lt(
309
314
  a.value.style.chart.ribbons.labels.formatter,
310
315
  t,
311
- Lt({
316
+ he({
312
317
  p: a.value.style.chart.ribbons.labels.prefix,
313
318
  v: t,
314
319
  s: a.value.style.chart.ribbons.labels.suffix,
@@ -316,63 +321,63 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
316
321
  })
317
322
  );
318
323
  }
319
- Ge(() => {
320
- window.addEventListener("mousemove", K), window.addEventListener("mouseup", ee), window.addEventListener("touchmove", K, { passive: !1 }), window.addEventListener("touchend", ee);
321
- }), Ve(() => {
322
- window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", ee), window.removeEventListener("touchmove", K), window.removeEventListener("touchend", ee), clearTimeout(Te.value), ne.value && ne.value.disconnect();
324
+ Ve(() => {
325
+ window.addEventListener("mousemove", ee), window.addEventListener("mouseup", te), window.addEventListener("touchmove", ee, { passive: !1 }), window.addEventListener("touchend", te);
326
+ }), We(() => {
327
+ window.removeEventListener("mousemove", ee), window.removeEventListener("mouseup", te), window.removeEventListener("touchmove", ee), window.removeEventListener("touchend", te), clearTimeout(Se.value), ne.value && ne.value.disconnect();
323
328
  });
324
329
  const ie = d(!1);
325
- function vt(t) {
326
- ie.value = t, he.value += 1;
327
- }
328
330
  function ht(t) {
329
- f.value || (w.value = t);
331
+ ie.value = t, fe.value += 1;
330
332
  }
331
333
  function ft(t) {
332
- f.value || (p.value = t);
334
+ g.value || (w.value = t);
333
335
  }
334
- function Fe(t) {
335
- var l;
336
- return !f.value && !w.value && !p.value ? 0.8 : (f.value ? f.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
336
+ function gt(t) {
337
+ g.value || (m.value = t);
337
338
  }
338
339
  function Xe(t) {
339
- var l, u;
340
- return !f.value && !w.value && !p.value || (f.value ? f.value === t.id : w.value ? w.value.id === t.id : [(l = p.value) == null ? void 0 : l.source.groupId, (u = p.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
340
+ var l;
341
+ return !g.value && !w.value && !m.value ? 0.8 : (g.value ? g.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = m.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
342
+ }
343
+ function Re(t) {
344
+ var l, n;
345
+ return !g.value && !w.value && !m.value || (g.value ? g.value === t.id : w.value ? w.value.id === t.id : [(l = m.value) == null ? void 0 : l.source.groupId, (n = m.value) == null ? void 0 : n.target.groupId].includes(t.id)) ? 1 : 0.3;
341
346
  }
342
347
  const H = d(!1);
343
348
  function ce() {
344
349
  H.value = !H.value;
345
350
  }
346
- function Re() {
351
+ function je() {
347
352
  q.value.showTable = !q.value.showTable;
348
353
  }
349
- function gt() {
354
+ function pt() {
350
355
  return _.value;
351
356
  }
352
- const R = d(null);
357
+ const j = d(null);
353
358
  function De() {
354
359
  const t = a.value.initialRotation;
355
- R.value !== null && cancelAnimationFrame(R.value);
360
+ j.value !== null && cancelAnimationFrame(j.value);
356
361
  const o = () => {
357
- I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t, R.value = null) : R.value = requestAnimationFrame(o);
362
+ I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t, j.value = null) : j.value = requestAnimationFrame(o);
358
363
  };
359
- R.value = requestAnimationFrame(o);
364
+ j.value = requestAnimationFrame(o);
360
365
  }
361
- Ve(() => {
362
- R.value !== null && cancelAnimationFrame(R.value);
366
+ We(() => {
367
+ j.value !== null && cancelAnimationFrame(j.value);
363
368
  });
364
- function je(t) {
365
- t === f.value ? (f.value = null, Z("selectLegend", null)) : (f.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
369
+ function Ue(t) {
370
+ t === g.value ? (g.value = null, Z("selectLegend", null)) : (g.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
366
371
  }
367
- const Ue = x(() => _.value.groups.map((t, o) => ({
372
+ const Ye = x(() => _.value.groups.map((t, o) => ({
368
373
  name: t.name,
369
374
  color: t.color,
370
375
  shape: "circle",
371
376
  patternIndex: o,
372
377
  pattern: `pattern_${T.value}_${o}`,
373
378
  id: t.id,
374
- select: () => je(t.id),
375
- opacity: f.value ? f.value === t.id ? 1 : 0.3 : 1
379
+ select: () => Ue(t.id),
380
+ opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
376
381
  }))), bt = x(() => ({
377
382
  cy: "chord-div-legend",
378
383
  backgroundColor: a.value.style.chart.legend.backgroundColor,
@@ -380,16 +385,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
380
385
  fontSize: a.value.style.chart.legend.fontSize,
381
386
  paddingBottom: 12,
382
387
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
383
- })), te = x(() => {
388
+ })), ae = x(() => {
384
389
  const t = _.value.groups.map((e, l) => ({
385
390
  name: e.name || l,
386
391
  color: e.color
387
- })), o = m.value.matrix;
392
+ })), o = y.value.matrix;
388
393
  return { head: t, body: o };
389
- }), ae = x(() => {
390
- const t = [{ name: "", color: null }, ...te.value.head], o = te.value.body.map((u, s) => [
391
- te.value.head[s],
392
- ...te.value.body[s]
394
+ }), oe = x(() => {
395
+ const t = [{ name: "", color: null }, ...ae.value.head], o = ae.value.body.map((n, s) => [
396
+ ae.value.head[s],
397
+ ...ae.value.body[s]
393
398
  ]), e = {
394
399
  th: {
395
400
  backgroundColor: a.value.table.th.backgroundColor,
@@ -410,66 +415,66 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
410
415
  config: e
411
416
  };
412
417
  });
413
- function Ye() {
414
- $t(() => {
415
- const t = m.value.matrix.map((l, u) => [
416
- [m.value.labels[u] || u],
418
+ function Ge() {
419
+ wt(() => {
420
+ const t = y.value.matrix.map((l, n) => [
421
+ [y.value.labels[n] || n],
417
422
  l
418
423
  ]), o = [
419
424
  [a.value.style.chart.title.text],
420
425
  [a.value.style.chart.title.subtitle.text],
421
426
  [
422
427
  [""],
423
- ...m.value.labels.map((l, u) => [l || u])
428
+ ...y.value.labels.map((l, n) => [l || n])
424
429
  ]
425
- ].concat(t), e = St(o);
430
+ ].concat(t), e = Ot(o);
426
431
  Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
427
432
  });
428
433
  }
429
- return Je({
430
- getData: gt,
431
- generateCsv: Ye,
432
- generateImage: _e,
433
- generatePdf: xe,
434
+ return Ke({
435
+ getData: pt,
436
+ generateCsv: Ge,
437
+ generateImage: Ie,
438
+ generatePdf: _e,
434
439
  toggleAnnotator: ce,
435
- toggleTable: Re
436
- }), (t, o) => (n(), i("div", {
440
+ toggleTable: je
441
+ }), (t, o) => (r(), i("div", {
437
442
  ref_key: "chordChart",
438
- ref: Y,
439
- class: X({
443
+ ref: G,
444
+ class: z({
440
445
  "vue-ui-chord": !0,
441
446
  "vue-data-ui-wrapper-fullscreen": ie.value,
442
447
  "vue-data-ui-responsive": a.value.responsive
443
448
  }),
444
- style: N(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
449
+ style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
445
450
  id: `chord_${T.value}`,
446
- onMouseenter: o[4] || (o[4] = () => k($e)(!0)),
447
- onMouseleave: o[5] || (o[5] = () => k($e)(!1))
451
+ onMouseenter: o[4] || (o[4] = () => b(we)(!0)),
452
+ onMouseleave: o[5] || (o[5] = () => b(we)(!1))
448
453
  }, [
449
- a.value.userOptions.buttons.annotator && k(W) ? (n(), j(Xt, {
454
+ a.value.userOptions.buttons.annotator && b(W) ? (r(), U(Xt, {
450
455
  key: 0,
451
456
  color: a.value.style.chart.color,
452
457
  backgroundColor: a.value.style.chart.backgroundColor,
453
458
  active: H.value,
454
- svgRef: k(W),
459
+ svgRef: b(W),
455
460
  onClose: ce
456
461
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
457
462
  $(t.$slots, "userConfig", {}, void 0, !0),
458
- tt.value ? (n(), i("div", {
463
+ at.value ? (r(), i("div", {
459
464
  key: 1,
460
465
  ref_key: "noTitle",
461
- ref: pe,
466
+ ref: me,
462
467
  class: "vue-data-ui-no-title-space",
463
468
  style: "height:36px; width: 100%;background:transparent"
464
469
  }, null, 512)) : v("", !0),
465
- a.value.style.chart.title.text ? (n(), i("div", {
470
+ a.value.style.chart.title.text ? (r(), i("div", {
466
471
  key: 2,
467
472
  ref_key: "chartTitle",
468
- ref: fe,
473
+ ref: ge,
469
474
  style: "width:100%;background:transparent;padding-bottom:24px"
470
475
  }, [
471
- (n(), j(zt, {
472
- key: `title_${me.value}`,
476
+ (r(), U(zt, {
477
+ key: `title_${ye.value}`,
473
478
  config: {
474
479
  title: {
475
480
  cy: "chord-div-title",
@@ -482,13 +487,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
482
487
  }
483
488
  }, null, 8, ["config"]))
484
489
  ], 512)) : v("", !0),
485
- a.value.userOptions.show && L.value && (k(we) || k(re)) ? (n(), j(jt, {
490
+ a.value.userOptions.show && L.value && (b(Ce) || b(ue)) ? (r(), U(Dt, {
486
491
  ref: "details",
487
- key: `user_option_${he.value}`,
492
+ key: `user_option_${fe.value}`,
488
493
  backgroundColor: a.value.style.chart.backgroundColor,
489
494
  color: a.value.style.chart.color,
490
- isPrinting: k(Ce),
491
- isImaging: k(Me),
495
+ isPrinting: b(Me),
496
+ isImaging: b(xe),
492
497
  uid: T.value,
493
498
  hasTooltip: !1,
494
499
  hasPdf: a.value.userOptions.buttons.pdf,
@@ -498,25 +503,25 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
498
503
  hasLabel: !1,
499
504
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
500
505
  isFullscreen: ie.value,
501
- chartElement: Y.value,
506
+ chartElement: G.value,
502
507
  position: a.value.userOptions.position,
503
508
  titles: { ...a.value.userOptions.buttonTitles },
504
509
  hasAnnotator: a.value.userOptions.buttons.annotator,
505
510
  isAnnotation: H.value,
506
- onToggleFullscreen: vt,
507
- onGeneratePdf: k(xe),
508
- onGenerateCsv: Ye,
509
- onGenerateImage: k(_e),
510
- onToggleTable: Re,
511
+ onToggleFullscreen: ht,
512
+ onGeneratePdf: b(_e),
513
+ onGenerateCsv: Ge,
514
+ onGenerateImage: b(Ie),
515
+ onToggleTable: je,
511
516
  onToggleAnnotator: ce,
512
- style: N({
513
- visibility: k(we) ? k(re) ? "visible" : "hidden" : "visible"
517
+ style: E({
518
+ visibility: b(Ce) ? b(ue) ? "visible" : "hidden" : "visible"
514
519
  })
515
- }, We({ _: 2 }, [
520
+ }, qe({ _: 2 }, [
516
521
  t.$slots.menuIcon ? {
517
522
  name: "menuIcon",
518
523
  fn: P(({ isOpen: e, color: l }) => [
519
- $(t.$slots, "menuIcon", oe(le({ isOpen: e, color: l })), void 0, !0)
524
+ $(t.$slots, "menuIcon", le(se({ isOpen: e, color: l })), void 0, !0)
520
525
  ]),
521
526
  key: "0"
522
527
  } : void 0,
@@ -551,21 +556,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
551
556
  t.$slots.optionFullscreen ? {
552
557
  name: "optionFullscreen",
553
558
  fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
554
- $(t.$slots, "optionFullscreen", oe(le({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
559
+ $(t.$slots, "optionFullscreen", le(se({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
555
560
  ]),
556
561
  key: "5"
557
562
  } : void 0,
558
563
  t.$slots.optionAnnotator ? {
559
564
  name: "optionAnnotator",
560
565
  fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
561
- $(t.$slots, "optionAnnotator", oe(le({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
566
+ $(t.$slots, "optionAnnotator", le(se({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
562
567
  ]),
563
568
  key: "6"
564
569
  } : void 0
565
570
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
566
- L.value ? (n(), i("svg", {
571
+ L.value ? (r(), i("svg", {
567
572
  key: 4,
568
- xmlns: k(Pt),
573
+ xmlns: b(Tt),
569
574
  ref_key: "svgRef",
570
575
  ref: W,
571
576
  viewBox: `0 0 ${S.value.width} ${S.value.height}`,
@@ -573,11 +578,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
573
578
  style: {
574
579
  overflow: "visible"
575
580
  },
576
- onMousedown: qe(Ne, ["prevent"]),
577
- onTouchstart: qe(Ne, ["prevent"])
581
+ class: z({ "vue-ui-chord-rotating": K.value, "vue-ui-chord-idle": !t.rotating }),
582
+ onMousedown: He(ze, ["prevent"]),
583
+ onTouchstart: He(ze, ["prevent"])
578
584
  }, [
579
585
  de(Ft),
580
- t.$slots["chart-background"] ? (n(), i("foreignObject", {
586
+ t.$slots["chart-background"] ? (r(), i("foreignObject", {
581
587
  key: 0,
582
588
  x: 0,
583
589
  y: 0,
@@ -589,222 +595,232 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
589
595
  }, [
590
596
  $(t.$slots, "chart-background", {}, void 0, !0)
591
597
  ], 8, Kt)) : v("", !0),
592
- a.value.style.chart.arcs.labels.curved ? (n(), i("defs", ea, [
593
- (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("path", {
598
+ a.value.style.chart.arcs.labels.curved ? (r(), i("defs", ea, [
599
+ (r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("path", {
594
600
  key: `labelPath-${l}`,
595
601
  id: `labelPath-${l}_${T.value}`,
596
- d: dt(
602
+ d: vt(
597
603
  e.startAngle,
598
604
  e.endAngle,
599
- (b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
605
+ (p.value.inner + p.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
600
606
  ),
601
607
  fill: "none"
602
608
  }, null, 8, ta))), 128))
603
609
  ])) : v("", !0),
604
- t.$slots.pattern ? (n(), i("g", aa, [
605
- (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("defs", null, [
606
- $(t.$slots, "pattern", yt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
610
+ t.$slots.pattern ? (r(), i("g", aa, [
611
+ (r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("defs", null, [
612
+ $(t.$slots, "pattern", kt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
607
613
  ]))), 256))
608
614
  ])) : v("", !0),
609
- O("g", {
615
+ B("g", {
610
616
  transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
611
617
  }, [
612
- (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("g", null, [
613
- (n(), i("path", {
614
- class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
618
+ (r(!0), i(F, null, Y(_.value.groups, (e, l) => (r(), i("g", null, [
619
+ (r(), i("path", {
620
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !V.value }),
615
621
  key: `arc-${l}`,
616
- d: Se(
622
+ d: Oe(
617
623
  e.startAngle,
618
624
  e.endAngle,
619
- b.value.outer,
620
- b.value.inner
625
+ p.value.outer,
626
+ p.value.inner
621
627
  ),
622
- fill: m.value.colors[l],
628
+ fill: y.value.colors[l],
623
629
  stroke: a.value.style.chart.arcs.stroke,
624
630
  "stroke-width": a.value.style.chart.arcs.strokeWidth,
625
631
  "stroke-linecap": "round",
626
632
  "stroke-linejoin": "round",
627
- style: N({
628
- opacity: Xe(e)
633
+ style: E({
634
+ opacity: Re(e)
629
635
  }),
630
- onMouseenter: () => ht(e),
631
- onMouseleave: o[0] || (o[0] = (u) => w.value = null),
632
- onClick: (u) => Z("selectGroup", e)
636
+ onMouseenter: () => ft(e),
637
+ onMouseleave: o[0] || (o[0] = (n) => w.value = null),
638
+ onClick: (n) => Z("selectGroup", e)
633
639
  }, null, 46, la)),
634
- t.$slots.pattern ? (n(), i("path", {
635
- class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
640
+ t.$slots.pattern ? (r(), i("path", {
641
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !V.value }),
636
642
  key: `arc-${l}`,
637
- d: Se(
643
+ d: Oe(
638
644
  e.startAngle,
639
645
  e.endAngle,
640
- b.value.outer,
641
- b.value.inner
646
+ p.value.outer,
647
+ p.value.inner
642
648
  ),
643
649
  fill: `url(#${e.pattern})`,
644
650
  stroke: a.value.style.chart.arcs.stroke,
645
651
  "stroke-width": a.value.style.chart.arcs.strokeWidth,
646
652
  "stroke-linecap": "round",
647
653
  "stroke-linejoin": "round",
648
- style: N({
649
- opacity: Xe(e),
654
+ style: E({
655
+ opacity: Re(e),
650
656
  pointerEvents: "none"
651
657
  })
652
658
  }, null, 14, sa)) : v("", !0)
653
659
  ]))), 256)),
654
- O("g", null, [
655
- (n(!0), i(z, null, U(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : f.value ? _.value.chords.filter((e) => e.source.groupId === f.value) : _.value.chords, (e) => (n(), i(z, {
660
+ B("g", null, [
661
+ (r(!0), i(F, null, Y(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : g.value ? _.value.chords.filter((e) => e.source.groupId === g.value) : _.value.chords, (e) => (r(), i(F, {
656
662
  key: `ribbon-${e.id}`
657
663
  }, [
658
- e.source.value ? (n(), i("path", {
664
+ e.source.value ? (r(), i("path", {
659
665
  key: 0,
660
- class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
666
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
661
667
  d: J(e.source, e.target),
662
668
  fill: a.value.style.chart.backgroundColor,
663
- style: N({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
664
- }, null, 14, na)) : v("", !0),
665
- e.source.value ? (n(), i("path", {
669
+ style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
670
+ }, null, 14, ra)) : v("", !0),
671
+ e.source.value ? (r(), i("path", {
666
672
  key: 1,
667
- class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
673
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
668
674
  d: J(e.source, e.target),
669
- fill: m.value.colors[e.source.index],
675
+ fill: y.value.colors[e.source.index],
670
676
  stroke: a.value.style.chart.ribbons.stroke,
671
677
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
672
678
  "stroke-linecap": "round",
673
679
  "stroke-linejoin": "round",
674
- style: N({ opacity: Fe(e) }),
675
- onMouseenter: () => ft({
680
+ style: E({ opacity: Xe(e) }),
681
+ onMouseenter: () => gt({
676
682
  ...e,
677
683
  path: J(e.source, e.target),
678
- color: m.value.colors[e.source.index]
684
+ color: y.value.colors[e.source.index]
679
685
  }),
680
686
  onClick: (l) => Z("selectRibbon", {
681
687
  ...e,
682
- color: m.value.colors[e.source.index]
688
+ color: y.value.colors[e.source.index]
683
689
  }),
684
- onMouseleave: o[1] || (o[1] = (l) => p.value = null)
685
- }, null, 46, ra)) : v("", !0),
686
- e.source.value && t.$slots.pattern ? (n(), i("path", {
690
+ onMouseleave: o[1] || (o[1] = (l) => m.value = null)
691
+ }, null, 46, na)) : v("", !0),
692
+ e.source.value && t.$slots.pattern ? (r(), i("path", {
687
693
  key: 2,
688
- class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
694
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
689
695
  d: J(e.source, e.target),
690
696
  fill: `url(#pattern_${T.value}_${e.source.index})`,
691
697
  stroke: a.value.style.chart.ribbons.stroke,
692
698
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
693
699
  "stroke-linecap": "round",
694
700
  "stroke-linejoin": "round",
695
- style: N({
696
- opacity: Fe(e),
701
+ style: E({
702
+ opacity: Xe(e),
697
703
  pointerEvents: "none"
698
704
  })
699
705
  }, null, 14, ua)) : v("", !0)
700
706
  ], 64))), 128)),
701
- p.value ? (n(), i("path", {
707
+ m.value ? (r(), i("path", {
702
708
  key: 0,
703
- d: p.value.path,
704
- fill: p.value.color,
709
+ d: m.value.path,
710
+ fill: m.value.color,
705
711
  stroke: a.value.style.chart.ribbons.stroke,
706
712
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
707
713
  "stroke-linecap": "round",
708
714
  "stroke-linejoin": "round",
709
- class: X({ "vue-ui-chord-ribbon": !0 }),
715
+ class: z({ "vue-ui-chord-ribbon": !0 }),
710
716
  style: {
711
717
  pointerEvents: "none"
712
718
  }
713
719
  }, null, 8, ia)) : v("", !0),
714
- p.value && t.$slots.pattern ? (n(), i("path", {
720
+ m.value && t.$slots.pattern ? (r(), i("path", {
715
721
  key: 1,
716
- d: p.value.path,
717
- fill: `url(#${p.value.source.pattern})`,
722
+ d: m.value.path,
723
+ fill: `url(#${m.value.source.pattern})`,
718
724
  stroke: a.value.style.chart.ribbons.stroke,
719
725
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
720
726
  "stroke-linecap": "round",
721
727
  "stroke-linejoin": "round",
722
- class: X({ "vue-ui-chord-ribbon": !0 }),
728
+ class: z({ "vue-ui-chord-ribbon": !0 }),
723
729
  style: {
724
730
  pointerEvents: "none"
725
731
  }
726
732
  }, null, 8, ca)) : v("", !0)
727
733
  ]),
728
- (w.value || p.value || f.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", da, [
729
- (n(!0), i(z, null, U(nt.value, (e) => (n(), i(z, {
734
+ (w.value || m.value || g.value) && a.value.style.chart.ribbons.labels.show ? (r(), i("g", da, [
735
+ (r(!0), i(F, null, Y(nt.value, (e) => (r(), i(F, {
730
736
  key: e.id
731
737
  }, [
732
- O("line", {
738
+ B("line", {
733
739
  x1: e.midBaseX,
734
740
  y1: e.midBaseY,
735
- x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
736
- y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
741
+ x2: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
742
+ y2: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
737
743
  stroke: a.value.style.chart.backgroundColor,
738
744
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
739
745
  "pointer-events": "none"
740
746
  }, null, 8, va),
741
- O("line", {
747
+ B("line", {
742
748
  x1: e.midBaseX,
743
749
  y1: e.midBaseY,
744
- x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
745
- y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
750
+ x2: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
751
+ y2: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
746
752
  stroke: a.value.style.chart.ribbons.labels.connector.stroke,
747
753
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
748
754
  "pointer-events": "none"
749
755
  }, null, 8, ha),
750
- a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
756
+ a.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
751
757
  key: 0,
752
- cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
753
- cy: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
758
+ cx: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
759
+ cy: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
754
760
  r: a.value.style.chart.ribbons.labels.marker.radius,
755
761
  stroke: a.value.style.chart.ribbons.labels.marker.stroke,
756
762
  "stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
757
763
  fill: e.groupColor,
758
764
  "pointer-events": "none"
759
765
  }, null, 8, fa)) : v("", !0),
760
- O("text", {
766
+ B("text", {
761
767
  transform: `
762
768
  translate(
763
- ${Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
764
- ${Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
769
+ ${Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
770
+ ${Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
765
771
  ) rotate(${-I.value})
766
772
  `,
767
773
  fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
768
- "text-anchor": it(e.theta),
774
+ "text-anchor": ct(e.theta),
769
775
  "font-size": a.value.style.chart.ribbons.labels.fontSize,
770
776
  "font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
771
777
  dy: ".35em",
772
778
  "pointer-events": "none"
773
- }, V(ze(e.value)), 9, ga)
779
+ }, R(Fe(e.value)), 9, ga)
774
780
  ], 64))), 128))
775
781
  ])) : v("", !0),
776
- a.value.style.chart.arcs.labels.show ? (n(), i("g", ba, [
777
- a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, U(_.value.groups, (e, l) => (n(), i("text", {
782
+ a.value.style.chart.arcs.labels.show ? (r(), i("g", pa, [
783
+ a.value.style.chart.arcs.labels.curved ? (r(!0), i(F, { key: 0 }, Y(_.value.groups, (e, l) => (r(), i("text", {
778
784
  key: `curved-label-${l}`,
779
785
  "font-size": a.value.style.chart.arcs.labels.fontSize,
780
786
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
781
- fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? k(Tt)(m.value.colors[l]) : a.value.style.chart.arcs.labels.color
787
+ fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? b(St)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
782
788
  }, [
783
- O("textPath", {
789
+ B("textPath", {
784
790
  href: `#labelPath-${l}_${T.value}`,
785
791
  startOffset: "50%",
786
792
  "text-anchor": "middle"
787
- }, V(m.value.labels[l]), 9, ma)
788
- ], 8, pa))), 128)) : !w.value && !p.value && !f.value ? (n(!0), i(z, { key: 1 }, U(_.value.groups, (e, l) => (n(), i("text", {
793
+ }, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
794
+ p: " (",
795
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
796
+ s: "%)",
797
+ r: a.value.style.chart.arcs.labels.roundingPercentage
798
+ }) : ""), 9, ma)
799
+ ], 8, ba))), 128)) : !w.value && !m.value && !g.value ? (r(!0), i(F, { key: 1 }, Y(_.value.groups, (e, l) => (r(), i("text", {
789
800
  key: `label-${l}`,
790
801
  transform: `
791
- ${ct((e.startAngle + e.endAngle) / 2)}
802
+ ${dt((e.startAngle + e.endAngle) / 2)}
792
803
  rotate(${-I.value})
793
804
  `,
794
805
  dy: ".35em",
795
- "text-anchor": ut(e) > Math.PI ? "end" : "start",
806
+ "text-anchor": it(e) > Math.PI ? "end" : "start",
796
807
  "font-size": a.value.style.chart.arcs.labels.fontSize,
797
808
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
798
809
  fill: a.value.style.chart.arcs.labels.color
799
- }, V(m.value.labels[l]), 9, ya))), 128)) : v("", !0)
810
+ }, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
811
+ p: " (",
812
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
813
+ s: "%)",
814
+ r: a.value.style.chart.arcs.labels.roundingPercentage
815
+ }) : ""), 9, ya))), 128)) : v("", !0)
800
816
  ])) : v("", !0)
801
817
  ], 8, oa),
802
818
  $(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
803
- ], 40, Jt)) : v("", !0),
804
- t.$slots.watermark ? (n(), i("div", ka, [
805
- $(t.$slots, "watermark", oe(le({ isPrinting: k(Ce) || k(Me) })), void 0, !0)
819
+ ], 42, Jt)) : v("", !0),
820
+ t.$slots.watermark ? (r(), i("div", ka, [
821
+ $(t.$slots, "watermark", le(se({ isPrinting: b(Me) || b(xe) })), void 0, !0)
806
822
  ])) : v("", !0),
807
- L.value ? v("", !0) : (n(), j(Wt, {
823
+ L.value ? v("", !0) : (r(), U(Wt, {
808
824
  key: 6,
809
825
  config: {
810
826
  type: "chord",
@@ -816,23 +832,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
816
832
  }
817
833
  }
818
834
  }, null, 8, ["config"])),
819
- O("div", {
835
+ B("div", {
820
836
  ref_key: "chartLegend",
821
- ref: ge
837
+ ref: pe
822
838
  }, [
823
- a.value.style.chart.legend.show ? (n(), j(Ut, {
824
- key: `legend_${ke.value}`,
825
- legendSet: Ue.value,
839
+ a.value.style.chart.legend.show ? (r(), U(Ut, {
840
+ key: `legend_${$e.value}`,
841
+ legendSet: Ye.value,
826
842
  config: bt.value,
827
- onClickMarker: o[2] || (o[2] = ({ legend: e }) => je(e.id))
828
- }, We({
843
+ onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ue(e.id))
844
+ }, qe({
829
845
  item: P(({ legend: e, index: l }) => [
830
- O("div", {
831
- style: N({
832
- opacity: f.value ? f.value === e.id ? 1 : 0.3 : 1
846
+ B("div", {
847
+ style: E({
848
+ opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
833
849
  }),
834
- onClick: (u) => e.select()
835
- }, V(e.name), 13, $a)
850
+ onClick: (n) => e.select()
851
+ }, R(e.name), 13, $a)
836
852
  ]),
837
853
  _: 2
838
854
  }, [
@@ -850,9 +866,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
850
866
  key: "0"
851
867
  } : void 0
852
868
  ]), 1032, ["legendSet", "config"])) : v("", !0),
853
- $(t.$slots, "legend", { legend: Ue.value }, void 0, !0)
869
+ $(t.$slots, "legend", { legend: Ye.value }, void 0, !0)
854
870
  ], 512),
855
- t.$slots.source ? (n(), i("div", {
871
+ t.$slots.source ? (r(), i("div", {
856
872
  key: 7,
857
873
  ref_key: "source",
858
874
  ref: be,
@@ -860,14 +876,14 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
860
876
  }, [
861
877
  $(t.$slots, "source", {}, void 0, !0)
862
878
  ], 512)) : v("", !0),
863
- I.value !== a.value.initialRotation ? (n(), i("div", wa, [
879
+ I.value !== a.value.initialRotation ? (r(), i("div", wa, [
864
880
  $(t.$slots, "reset-action", { reset: De }, () => [
865
- O("button", {
881
+ B("button", {
866
882
  "data-cy-reset": "",
867
883
  tabindex: "0",
868
884
  role: "button",
869
885
  class: "vue-data-ui-refresh-button",
870
- style: N({
886
+ style: E({
871
887
  background: a.value.style.chart.backgroundColor
872
888
  }),
873
889
  onClick: De
@@ -879,7 +895,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
879
895
  ], 4)
880
896
  ], !0)
881
897
  ])) : v("", !0),
882
- L.value ? (n(), j(Vt, {
898
+ L.value ? (r(), U(Vt, {
883
899
  key: 9,
884
900
  hideDetails: "",
885
901
  config: {
@@ -896,20 +912,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
896
912
  }
897
913
  }, {
898
914
  content: P(() => [
899
- (n(), j(Gt, {
900
- key: `table_${ye.value}`,
901
- colNames: ae.value.colNames,
902
- head: ae.value.head,
903
- body: ae.value.body,
904
- config: ae.value.config,
915
+ (r(), U(Gt, {
916
+ key: `table_${ke.value}`,
917
+ colNames: oe.value.colNames,
918
+ head: oe.value.head,
919
+ body: oe.value.body,
920
+ config: oe.value.config,
905
921
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
906
922
  onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
907
923
  }, {
908
924
  th: P(({ th: e }) => [
909
- kt(V(e.name), 1)
925
+ $t(R(e.name), 1)
910
926
  ]),
911
927
  td: P(({ td: e }) => [
912
- O("div", Ca, V(e.name ? e.name : ze(e)), 1)
928
+ B("div", Ca, R(e.name ? e.name : Fe(e)), 1)
913
929
  ]),
914
930
  _: 1
915
931
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -918,7 +934,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
918
934
  }, 8, ["config"])) : v("", !0)
919
935
  ], 46, Zt));
920
936
  }
921
- }, ja = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-e77f35e2"]]);
937
+ }, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-0406fd61"]]);
922
938
  export {
923
- ja as default
939
+ Da as default
924
940
  };