vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,28 +1,22 @@
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-BFzQMJda.js";
3
- import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as Ze } from "./useNestedProp-v7KPpwuP.js";
5
- import { u as Et } from "./useChartAccessibility-BWojgys7.js";
6
- import { _ as zt } from "./Title-CzaCeCOm.js";
7
- import { _ as Ft } from "./PackageVersion-BjrblLPQ.js";
8
- import { _ as Xt } from "./PenAndPaper-BkP3J-Ft.js";
9
- import Rt from "./BaseIcon-CNbwMh_-.js";
10
- import { u as jt, U as Dt } from "./usePrinter-C5bLp34h.js";
11
- import { L as Ut } from "./Legend-BxtDQCIv.js";
12
- import { _ as Yt } from "./Shape-C69a0f29.js";
13
- import { D as Gt } from "./DataTable-Rajdtaf6.js";
14
- import Vt from "./vue-ui-accordion-BUz4JIIX.js";
15
- import Wt from "./vue-ui-skeleton-B_YI7Yuc.js";
1
+ import { useCssVars as Pt, defineAsyncComponent as Y, ref as h, shallowRef as qe, computed as C, watch as _t, onMounted as He, onBeforeUnmount as Qe, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as E, normalizeClass as z, createBlock as G, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as Ze, withCtx as _, normalizeProps as re, guardReactiveProps as ue, withModifiers as Je, createVNode as he, Fragment as F, renderList as U, mergeProps as Tt, toDisplayString as j, createTextVNode as St, nextTick as Ot } from "vue";
2
+ import { u as Bt, c as fe, t as Lt, p as ie, a as Nt, o as Et, e as Ke, g as zt, b as Ft, d as Rt, X as Xt, G as jt, f as ge, q as Dt, r as Vt, i as Yt } from "./index-BHEd2dgu.js";
3
+ import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
4
+ import { u as et } from "./useNestedProp-CZztHZIm.js";
5
+ import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
6
+ import { u as Wt } from "./usePrinter-C8URL2IU.js";
16
7
  import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
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"], 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 = {
8
+ import Qt from "./Legend-DtTYopxf.js";
9
+ import Zt from "./Title-Bc66VstS.js";
10
+ import Jt from "./Shape-B6kIkp2s.js";
11
+ import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "height"], oa = { key: 1 }, la = ["id", "d"], sa = { key: 2 }, na = ["transform"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill"], ca = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], da = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], ha = ["d", "fill", "stroke", "stroke-width"], fa = { key: 0 }, ga = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ma = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ya = { key: 1 }, ka = ["font-size", "font-weight", "fill"], $a = ["href"], wa = ["transform", "text-anchor", "font-size", "font-weight", "fill"], Ca = {
19
13
  key: 5,
20
14
  class: "vue-data-ui-watermark"
21
- }, $a = ["onClick"], wa = {
15
+ }, Ma = ["onClick"], xa = {
22
16
  key: 8,
23
17
  "data-dom-to-png-ignore": "",
24
18
  class: "reset-wrapper"
25
- }, Ca = { style: { "text-align": "right", width: "100%" } }, Ma = {
19
+ }, Aa = { style: { "text-align": "right", width: "100%" } }, Ia = {
26
20
  __name: "vue-ui-chord",
27
21
  props: {
28
22
  dataset: {
@@ -39,68 +33,68 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
39
33
  }
40
34
  },
41
35
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
42
- setup(Je, { expose: Ke, emit: et }) {
43
- mt((t) => ({
44
- "67a6305c": t.slicerColor
36
+ setup(tt, { expose: at, emit: ot }) {
37
+ Pt((t) => ({
38
+ cd4b43ce: t.slicerColor
45
39
  }));
46
- const { vue_ui_chord: tt } = Ct(), f = Je, J = 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(),
40
+ const lt = Y(() => import("./vue-ui-accordion-DntThSTF.js")), st = Y(() => import("./BaseIcon-DhWmrDAn.js")), nt = Y(() => import("./DataTable-Y5HbiUZU.js")), rt = Y(() => import("./PackageVersion-DaWGaZxE.js")), ut = Y(() => import("./PenAndPaper-C-CpE0NC.js")), it = Y(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), ct = Y(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_chord: dt } = Bt(), g = tt, te = ot, L = h(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = h(fe()), w = h(null), m = h(null), b = h(null), be = h(0), W = h(null), pe = h(null), me = h(null), ye = h(null), ke = h(null), $e = h(0), we = h(0), Ce = h(0), q = h(!1), R = qe(null), H = qe(null), a = C({
41
+ get: () => Te(),
48
42
  set: (t) => t
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({
43
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: xe } = Gt({ config: a.value }), { svgRef: Q } = Ut({ config: a.value.style.chart.title }), { isPrinting: Ae, isImaging: Ie, generatePdf: Pe, generateImage: _e } = Wt({
50
44
  elementId: `chord_${T.value}`,
51
45
  fileName: a.value.style.chart.title.text || "vue-ui-chord",
52
46
  options: a.value.userOptions.print
53
- }), q = d({
47
+ }), Z = h({
54
48
  showTable: a.value.table.show
55
49
  });
56
- function Ae() {
57
- const t = Ze({
58
- userConfig: f.config,
59
- defaultConfig: tt
50
+ function Te() {
51
+ const t = et({
52
+ userConfig: g.config,
53
+ defaultConfig: dt
60
54
  });
61
55
  return t.theme ? {
62
- ...Ze({
63
- userConfig: xt.vue_ui_chord[t.theme] || f.config,
56
+ ...et({
57
+ userConfig: Nt.vue_ui_chord[t.theme] || g.config,
64
58
  defaultConfig: t
65
59
  }),
66
- customPalette: Mt[t.theme] || re
60
+ customPalette: Lt[t.theme] || ie
67
61
  } : t;
68
62
  }
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;
63
+ _t(() => g.config, (t) => {
64
+ a.value = Te(), ce.value = !a.value.userOptions.showOnChartHover, Se(), $e.value += 1, we.value += 1, Ce.value += 1, x.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
71
65
  }, { deep: !0 });
72
- function Pe() {
73
- if (_t(f.dataset) ? Qe({
66
+ function Se() {
67
+ if (Et(g.dataset) ? Ke({
74
68
  componentName: "VueUiChord",
75
69
  type: "dataset"
76
- }) : It({
77
- datasetObject: f.dataset,
70
+ }) : zt({
71
+ datasetObject: g.dataset,
78
72
  requiredAttributes: ["matrix"]
79
73
  }).forEach((t) => {
80
- L.value = !1, Qe({
74
+ L.value = !1, Ke({
81
75
  componentName: "VueUiChord",
82
76
  type: "datasetAttribute",
83
77
  property: t
84
78
  });
85
- }), L.value && Te(), a.value.responsive) {
86
- const t = G.value.parentNode, o = qt(() => {
87
- const { width: l, height: u, heightNoTitle: s, heightSource: n, 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
- source: be.value,
92
- noTitle: me.value
93
- }), M = h + C + n + s;
94
- l < u ? G.value.style.width = "100%" : (G.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
95
- }, 100), e = new ResizeObserver(o);
96
- e.observe(t), ne.value = e, o();
79
+ }), L.value && Oe(), a.value.responsive) {
80
+ const t = qt(() => {
81
+ const { width: o, height: e, heightNoTitle: l, heightSource: u, heightTitle: s, heightLegend: r } = Ht({
82
+ chart: W.value,
83
+ title: a.value.style.chart.title.text ? pe.value : null,
84
+ legend: a.value.style.chart.legend.show ? me.value : null,
85
+ source: ye.value,
86
+ noTitle: ke.value
87
+ }), f = s + r + u + l;
88
+ o < e ? W.value.style.width = "100%" : (W.value.style.height = "100%", Q.value.style.height = `calc(100% - ${f}px)`);
89
+ }, 100);
90
+ R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect()), R.value = new ResizeObserver(t), H.value = W.value.parentNode, R.value.observe(H.value), t();
97
91
  }
98
- Se.value = setTimeout(() => {
99
- V.value = !0;
92
+ Be.value = setTimeout(() => {
93
+ q.value = !0;
100
94
  }, 500);
101
95
  }
102
- function Te() {
103
- if (!f.dataset || !Object.hasOwn(f.dataset, "matrix") || f.dataset.matrix.length < 2) {
96
+ function Oe() {
97
+ if (!g.dataset || !Object.hasOwn(g.dataset, "matrix") || g.dataset.matrix.length < 2) {
104
98
  console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
105
99
 
106
100
  matrix:[
@@ -109,99 +103,99 @@ matrix:[
109
103
  ]`), L.value = !1;
110
104
  return;
111
105
  }
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}
106
+ g.dataset.matrix.forEach((t, o) => {
107
+ 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}
114
108
 
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);
109
+ 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);
116
110
  });
117
111
  }
118
- const Se = d(null);
119
- Ve(() => {
120
- Pe();
112
+ const Be = h(null);
113
+ He(() => {
114
+ Se();
121
115
  });
122
- const S = d({
116
+ const S = h({
123
117
  height: 600,
124
118
  width: 600
125
- }), at = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), ot = x(() => At(a.value.customPalette)), p = x(() => ({
119
+ }), vt = C(() => a.value.userOptions.show && !a.value.style.chart.title.text), ht = C(() => Ft(a.value.customPalette)), p = C(() => ({
126
120
  inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
127
121
  outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
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])
122
+ })), ft = C(() => a.value.style.chart.arcs.padAngle / 100), y = C(() => L.value ? {
123
+ matrix: g.dataset.matrix ?? [[0]],
124
+ labels: g.dataset.labels ?? [""],
125
+ colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => Rt(t)) : g.dataset.matrix.map((t, o) => ht.value[o] || ie[o] || ie[o % ie.length])
132
126
  } : {
133
127
  matrix: [],
134
128
  labels: [],
135
129
  colors: []
136
130
  });
137
- function st(t, o) {
131
+ function gt(t, o) {
138
132
  const e = t.length, l = p.value.inner, u = new Array(e).fill(0);
139
133
  let s = 0;
140
134
  for (let c = 0; c < e; c += 1)
141
135
  for (let k = 0; k < e; k += 1)
142
136
  u[c] += t[c][k], s += t[c][k];
143
- const n = (2 * Math.PI - o * e) / s, h = [];
144
- let C = 0;
137
+ const r = (2 * Math.PI - o * e) / s, f = [];
138
+ let A = 0;
145
139
  for (let c = 0; c < e; c += 1) {
146
- const k = C, A = k + u[c] * n;
147
- h.push({
140
+ const k = A, P = k + u[c] * r;
141
+ f.push({
148
142
  index: c,
149
143
  pattern: `pattern_${T.value}_${c}`,
150
144
  startAngle: k,
151
- endAngle: A,
145
+ endAngle: P,
152
146
  name: y.value.labels[c],
153
- id: ve(),
147
+ id: fe(),
154
148
  color: y.value.colors[c],
155
149
  proportion: u[c] / s
156
- }), C = A + o;
150
+ }), A = P + o;
157
151
  }
158
- const M = [];
152
+ const I = [];
159
153
  for (let c = 0; c < e; c += 1) {
160
154
  const k = t[c].map((O, X) => ({ j: X, v: O }));
161
155
  k.sort((O, X) => X.v - O.v);
162
- let A = h[c].startAngle;
156
+ let P = f[c].startAngle;
163
157
  for (const { j: O, v: X } of k) {
164
- const D = A, Z = D + X * n;
165
- M.push({
158
+ const V = P, ee = V + X * r;
159
+ I.push({
166
160
  index: c,
167
161
  subIndex: O,
168
162
  pattern: `pattern_${T.value}_${c}`,
169
- startAngle: D,
170
- endAngle: Z,
163
+ startAngle: V,
164
+ endAngle: ee,
171
165
  value: X,
172
166
  groupName: y.value.labels[c],
173
- groupId: h[c].id,
167
+ groupId: f[c].id,
174
168
  groupColor: y.value.colors[c],
175
- midAngle: (D + Z) / 2,
176
- midBaseX: Math.cos((D + Z) / 2 - Math.PI / 2) * l,
177
- midBaseY: Math.sin((D + Z) / 2 - Math.PI / 2) * l
178
- }), A = Z;
169
+ midAngle: (V + ee) / 2,
170
+ midBaseX: Math.cos((V + ee) / 2 - Math.PI / 2) * l,
171
+ midBaseY: Math.sin((V + ee) / 2 - Math.PI / 2) * l
172
+ }), P = ee;
179
173
  }
180
174
  }
181
175
  const N = [];
182
- for (const c of M) {
183
- const k = M.find(
184
- (A) => A.index === c.subIndex && A.subIndex === c.index
176
+ for (const c of I) {
177
+ const k = I.find(
178
+ (P) => P.index === c.subIndex && P.subIndex === c.index
185
179
  );
186
- N.push({ source: c, target: k, id: ve() });
180
+ N.push({ source: c, target: k, id: fe() });
187
181
  }
188
- return { groups: h, chords: N };
182
+ return { groups: f, chords: N };
189
183
  }
190
- const _ = x(() => {
191
- const t = st(y.value.matrix, lt.value);
192
- return Te(), t.chords.sort(
184
+ const M = C(() => {
185
+ const t = gt(y.value.matrix, ft.value);
186
+ return Oe(), t.chords.sort(
193
187
  (o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
194
188
  ), t;
195
- }), rt = x(() => {
189
+ }), bt = C(() => {
196
190
  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
191
  if (m.value) {
198
192
  const s = m.value;
199
193
  if (s.source.value) {
200
- const n = String(s.source.value);
194
+ const r = String(s.source.value);
201
195
  l.push({
202
196
  id: s.id + "-src",
203
197
  theta: s.source.midAngle,
204
- w: n.length * e / t,
198
+ w: r.length * e / t,
205
199
  midBaseX: s.source.midBaseX,
206
200
  midBaseY: s.source.midBaseY,
207
201
  groupColor: s.source.groupColor,
@@ -209,11 +203,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
209
203
  });
210
204
  }
211
205
  if (s.target && s.target.value && s.target.value !== s.source.value) {
212
- const n = String(s.target.value);
206
+ const r = String(s.target.value);
213
207
  l.push({
214
208
  id: s.id + "-tgt",
215
209
  theta: s.target.midAngle,
216
- w: n.length * e / t,
210
+ w: r.length * e / t,
217
211
  midBaseX: s.target.midBaseX,
218
212
  midBaseY: s.target.midBaseY,
219
213
  groupColor: s.target.groupColor,
@@ -223,97 +217,97 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
223
217
  return l;
224
218
  }
225
219
  function u(s) {
226
- _.value.chords.filter((n) => n.source.groupId === s && n.source.value).forEach((n) => {
220
+ M.value.chords.filter((r) => r.source.groupId === s && r.source.value).forEach((r) => {
227
221
  {
228
- const h = String(n.source.value);
222
+ const f = String(r.source.value);
229
223
  l.push({
230
- id: n.id + "-src",
231
- theta: n.source.midAngle,
232
- w: h.length * e / t,
233
- midBaseX: n.source.midBaseX,
234
- midBaseY: n.source.midBaseY,
235
- groupColor: n.source.groupColor,
236
- value: n.source.value
224
+ id: r.id + "-src",
225
+ theta: r.source.midAngle,
226
+ w: f.length * e / t,
227
+ midBaseX: r.source.midBaseX,
228
+ midBaseY: r.source.midBaseY,
229
+ groupColor: r.source.groupColor,
230
+ value: r.source.value
237
231
  });
238
232
  }
239
- if (n.target && n.target.value && n.target.value !== n.source.value) {
240
- const h = String(n.target.value);
233
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
234
+ const f = String(r.target.value);
241
235
  l.push({
242
- id: n.id + "-tgt",
243
- theta: n.target.midAngle,
244
- w: h.length * e / t,
245
- midBaseX: n.target.midBaseX,
246
- midBaseY: n.target.midBaseY,
247
- groupColor: n.target.groupColor,
248
- value: n.target.value
236
+ id: r.id + "-tgt",
237
+ theta: r.target.midAngle,
238
+ w: f.length * e / t,
239
+ midBaseX: r.target.midBaseX,
240
+ midBaseY: r.target.midBaseY,
241
+ groupColor: r.target.groupColor,
242
+ value: r.target.value
249
243
  });
250
244
  }
251
245
  });
252
246
  }
253
- return g.value && u(g.value), w.value && u(w.value.id), l;
254
- }), nt = x(() => {
255
- const t = rt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
247
+ return b.value && u(b.value), w.value && u(w.value.id), l;
248
+ }), pt = C(() => {
249
+ const t = bt.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
256
250
  let e = !0, l = 0;
257
251
  for (; e && l++ < 10; ) {
258
252
  e = !1;
259
- for (let h = 1; h < t.length; h += 1) {
260
- const C = t[h - 1], M = t[h], N = C.theta + C.w + o;
261
- M.theta < N && (M.theta = N, e = !0);
253
+ for (let f = 1; f < t.length; f += 1) {
254
+ const A = t[f - 1], I = t[f], N = A.theta + A.w + o;
255
+ I.theta < N && (I.theta = N, e = !0);
262
256
  }
263
- const u = t[0], s = t[t.length - 1], n = s.theta + s.w + o - 2 * Math.PI;
264
- u.theta < n && (u.theta = n, e = !0);
257
+ const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
258
+ u.theta < r && (u.theta = r, e = !0);
265
259
  }
266
260
  return t;
267
261
  });
268
- function Oe(t, o, e, l) {
269
- const u = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, A = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
270
- return `M${n},${h} A${e},${e} 0 ${O} 1 ${C},${M} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${A} Z`;
262
+ function Le(t, o, e, l) {
263
+ const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, f = Math.sin(u) * e, A = Math.cos(s) * e, I = Math.sin(s) * e, N = Math.cos(s) * l, c = Math.sin(s) * l, k = Math.cos(u) * l, P = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
264
+ return `M${r},${f} A${e},${e} 0 ${O} 1 ${A},${I} L${N},${c} A${l},${l} 0 ${O} 0 ${k},${P} Z`;
271
265
  }
272
- function K(t, o) {
273
- const e = p.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, n = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, A = Math.cos(n) * e, O = Math.sin(n) * 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`;
266
+ function ae(t, o) {
267
+ const e = p.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, f = Math.cos(l) * e, A = Math.sin(l) * e, I = Math.cos(u) * e, N = Math.sin(u) * e, c = Math.cos(s) * e, k = Math.sin(s) * e, P = Math.cos(r) * e, O = Math.sin(r) * e, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, V = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
268
+ return `M${f},${A}A${e},${e} 0 ${X} 1 ${I},${N}Q0,0 ${c},${k}A${e},${e} 0 ${V} 1 ${P},${O}Q0,0 ${f},${A}Z`;
275
269
  }
276
- const Be = x(() => I.value * Math.PI / 180);
277
- function ut(t) {
270
+ const Ne = C(() => x.value * Math.PI / 180);
271
+ function mt(t) {
278
272
  return (t.startAngle + t.endAngle) / 2;
279
273
  }
280
- function it(t) {
281
- return ((ut(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
274
+ function yt(t) {
275
+ return ((mt(t) + Ne.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
282
276
  }
283
- function ct(t) {
284
- let o = t + Be.value;
277
+ function kt(t) {
278
+ let o = t + Ne.value;
285
279
  return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
286
280
  }
287
- function dt(t) {
281
+ function $t(t) {
288
282
  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);
289
283
  return `translate(${e},${l})`;
290
284
  }
291
- function vt(t, o, e) {
292
- const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, n = Math.sin(l) * e, h = Math.cos(u) * e, C = Math.sin(u) * e, M = o - t > Math.PI ? 1 : 0;
293
- return `M${s},${n} A${e},${e} 0 ${M} 1 ${h},${C}`;
285
+ function wt(t, o, e) {
286
+ const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, f = Math.cos(u) * e, A = Math.sin(u) * e, I = o - t > Math.PI ? 1 : 0;
287
+ return `M${s},${r} A${e},${e} 0 ${I} 1 ${f},${A}`;
294
288
  }
295
- const I = d(a.value.initialRotation), H = d(!1);
296
- let Le = 0, Ne = 0;
297
- function Ee(t) {
298
- 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;
289
+ const x = h(a.value.initialRotation), J = h(!1);
290
+ let Ee = 0, ze = 0;
291
+ function Fe(t) {
292
+ const o = Q.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;
299
293
  return Math.atan2(s - l, u - e);
300
294
  }
301
- function ze(t) {
302
- !a.value.enableRotation || Q.value || (t.preventDefault(), H.value = !0, Le = I.value, Ne = Ee(t));
295
+ function Re(t) {
296
+ !a.value.enableRotation || K.value || (t.preventDefault(), J.value = !0, Ee = x.value, ze = Fe(t));
303
297
  }
304
- function ee(t) {
305
- if (!H.value) return;
306
- const o = Ee(t);
307
- I.value = Le + (o - Ne) * 180 / Math.PI;
298
+ function oe(t) {
299
+ if (!J.value) return;
300
+ const o = Fe(t);
301
+ x.value = Ee + (o - ze) * 180 / Math.PI;
308
302
  }
309
- function te() {
310
- H.value = !1;
303
+ function le() {
304
+ J.value = !1;
311
305
  }
312
- function Fe(t) {
313
- return Lt(
306
+ function Xe(t) {
307
+ return Yt(
314
308
  a.value.style.chart.ribbons.labels.formatter,
315
309
  t,
316
- he({
310
+ ge({
317
311
  p: a.value.style.chart.ribbons.labels.prefix,
318
312
  v: t,
319
313
  s: a.value.style.chart.ribbons.labels.suffix,
@@ -321,80 +315,78 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
321
315
  })
322
316
  );
323
317
  }
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();
318
+ He(() => {
319
+ window.addEventListener("mousemove", oe), window.addEventListener("mouseup", le), window.addEventListener("touchmove", oe, { passive: !1 }), window.addEventListener("touchend", le);
320
+ }), Qe(() => {
321
+ window.removeEventListener("mousemove", oe), window.removeEventListener("mouseup", le), window.removeEventListener("touchmove", oe), window.removeEventListener("touchend", le), clearTimeout(Be.value), R.value && (H.value && R.value.unobserve(H.value), R.value.disconnect());
328
322
  });
329
- const ie = d(!1);
330
- function ht(t) {
331
- ie.value = t, fe.value += 1;
323
+ const de = h(!1);
324
+ function Ct(t) {
325
+ de.value = t, be.value += 1;
332
326
  }
333
- function ft(t) {
334
- g.value || (w.value = t);
327
+ function Mt(t) {
328
+ b.value || (w.value = t);
335
329
  }
336
- function gt(t) {
337
- g.value || (m.value = t);
330
+ function xt(t) {
331
+ b.value || (m.value = t);
338
332
  }
339
- function Xe(t) {
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;
333
+ function je(t) {
334
+ return !b.value && !w.value && !m.value ? 0.8 : (b.value ? b.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
342
335
  }
343
- function Re(t) {
344
- var l, u;
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, (u = m.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
336
+ function De(t) {
337
+ return !b.value && !w.value && !m.value || (b.value ? b.value === t.id : w.value ? w.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
346
338
  }
347
- const Q = d(!1);
348
- function ce() {
349
- Q.value = !Q.value;
339
+ const K = h(!1);
340
+ function ve() {
341
+ K.value = !K.value;
350
342
  }
351
- function je() {
352
- q.value.showTable = !q.value.showTable;
343
+ function Ve() {
344
+ Z.value.showTable = !Z.value.showTable;
353
345
  }
354
- function pt() {
355
- return _.value;
346
+ function At() {
347
+ return M.value;
356
348
  }
357
- const j = d(null);
358
- function De() {
349
+ const D = h(null);
350
+ function Ye() {
359
351
  const t = a.value.initialRotation;
360
- j.value !== null && cancelAnimationFrame(j.value);
352
+ D.value !== null && cancelAnimationFrame(D.value);
361
353
  const 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);
354
+ x.value += (t - x.value) * 0.05, Math.abs(x.value - t) < 0.1 ? (x.value = t, D.value = null) : D.value = requestAnimationFrame(o);
363
355
  };
364
- j.value = requestAnimationFrame(o);
356
+ D.value = requestAnimationFrame(o);
365
357
  }
366
- We(() => {
367
- j.value !== null && cancelAnimationFrame(j.value);
358
+ Qe(() => {
359
+ D.value !== null && cancelAnimationFrame(D.value);
368
360
  });
369
- function Ue(t) {
370
- t === g.value ? (g.value = null, J("selectLegend", null)) : (g.value = t, J("selectLegend", _.value.groups.find((o) => o.id === t)));
361
+ function Ge(t) {
362
+ t === b.value ? (b.value = null, te("selectLegend", null)) : (b.value = t, te("selectLegend", M.value.groups.find((o) => o.id === t)));
371
363
  }
372
- const Ye = x(() => _.value.groups.map((t, o) => ({
364
+ const Ue = C(() => M.value.groups.map((t, o) => ({
373
365
  name: t.name,
374
366
  color: t.color,
375
367
  shape: "circle",
376
368
  patternIndex: o,
377
369
  pattern: `pattern_${T.value}_${o}`,
378
370
  id: t.id,
379
- select: () => Ue(t.id),
380
- opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
381
- }))), bt = x(() => ({
371
+ select: () => Ge(t.id),
372
+ opacity: b.value ? b.value === t.id ? 1 : 0.3 : 1
373
+ }))), It = C(() => ({
382
374
  cy: "chord-div-legend",
383
375
  backgroundColor: a.value.style.chart.legend.backgroundColor,
384
376
  color: a.value.style.chart.legend.color,
385
377
  fontSize: a.value.style.chart.legend.fontSize,
386
378
  paddingBottom: 12,
387
379
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
388
- })), ae = x(() => {
389
- const t = _.value.groups.map((e, l) => ({
380
+ })), se = C(() => {
381
+ const t = M.value.groups.map((e, l) => ({
390
382
  name: e.name || l,
391
383
  color: e.color
392
384
  })), o = y.value.matrix;
393
385
  return { head: t, body: o };
394
- }), oe = x(() => {
395
- const t = [{ name: "", color: null }, ...ae.value.head], o = ae.value.body.map((u, s) => [
396
- ae.value.head[s],
397
- ...ae.value.body[s]
386
+ }), ne = C(() => {
387
+ const t = [{ name: "", color: null }, ...se.value.head], o = se.value.body.map((u, s) => [
388
+ se.value.head[s],
389
+ ...se.value.body[s]
398
390
  ]), e = {
399
391
  th: {
400
392
  backgroundColor: a.value.table.th.backgroundColor,
@@ -415,8 +407,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
415
407
  config: e
416
408
  };
417
409
  });
418
- function Ge() {
419
- wt(() => {
410
+ function We() {
411
+ Ot(() => {
420
412
  const t = y.value.matrix.map((l, u) => [
421
413
  [y.value.labels[u] || u],
422
414
  l
@@ -427,54 +419,54 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
427
419
  [""],
428
420
  ...y.value.labels.map((l, u) => [l || u])
429
421
  ]
430
- ].concat(t), e = Ot(o);
431
- Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
422
+ ].concat(t), e = Dt(o);
423
+ Vt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
432
424
  });
433
425
  }
434
- return Ke({
435
- getData: pt,
436
- generateCsv: Ge,
437
- generateImage: Ie,
438
- generatePdf: _e,
439
- toggleAnnotator: ce,
440
- toggleTable: je
441
- }), (t, o) => (r(), i("div", {
426
+ return at({
427
+ getData: At,
428
+ generateCsv: We,
429
+ generateImage: _e,
430
+ generatePdf: Pe,
431
+ toggleAnnotator: ve,
432
+ toggleTable: Ve
433
+ }), (t, o) => (n(), i("div", {
442
434
  ref_key: "chordChart",
443
- ref: G,
435
+ ref: W,
444
436
  class: z({
445
437
  "vue-ui-chord": !0,
446
- "vue-data-ui-wrapper-fullscreen": ie.value,
438
+ "vue-data-ui-wrapper-fullscreen": de.value,
447
439
  "vue-data-ui-responsive": a.value.responsive
448
440
  }),
449
441
  style: E(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
450
442
  id: `chord_${T.value}`,
451
- onMouseenter: o[4] || (o[4] = () => b(we)(!0)),
452
- onMouseleave: o[5] || (o[5] = () => b(we)(!1))
443
+ onMouseenter: o[4] || (o[4] = () => d(Me)(!0)),
444
+ onMouseleave: o[5] || (o[5] = () => d(Me)(!1))
453
445
  }, [
454
- a.value.userOptions.buttons.annotator && b(W) ? (r(), U(Xt, {
446
+ a.value.userOptions.buttons.annotator && d(Q) ? (n(), G(d(ut), {
455
447
  key: 0,
456
448
  color: a.value.style.chart.color,
457
449
  backgroundColor: a.value.style.chart.backgroundColor,
458
- active: Q.value,
459
- svgRef: b(W),
460
- onClose: ce
450
+ active: K.value,
451
+ svgRef: d(Q),
452
+ onClose: ve
461
453
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
462
454
  $(t.$slots, "userConfig", {}, void 0, !0),
463
- at.value ? (r(), i("div", {
455
+ vt.value ? (n(), i("div", {
464
456
  key: 1,
465
457
  ref_key: "noTitle",
466
- ref: me,
458
+ ref: ke,
467
459
  class: "vue-data-ui-no-title-space",
468
460
  style: "height:36px; width: 100%;background:transparent"
469
461
  }, null, 512)) : v("", !0),
470
- a.value.style.chart.title.text ? (r(), i("div", {
462
+ a.value.style.chart.title.text ? (n(), i("div", {
471
463
  key: 2,
472
464
  ref_key: "chartTitle",
473
- ref: ge,
465
+ ref: pe,
474
466
  style: "width:100%;background:transparent;padding-bottom:24px"
475
467
  }, [
476
- (r(), U(zt, {
477
- key: `title_${ye.value}`,
468
+ (n(), G(Zt, {
469
+ key: `title_${$e.value}`,
478
470
  config: {
479
471
  title: {
480
472
  cy: "chord-div-title",
@@ -487,13 +479,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
487
479
  }
488
480
  }, null, 8, ["config"]))
489
481
  ], 512)) : v("", !0),
490
- a.value.userOptions.show && L.value && (b(Ce) || b(ue)) ? (r(), U(Dt, {
482
+ a.value.userOptions.show && L.value && (d(xe) || d(ce)) ? (n(), G(d(ct), {
491
483
  ref: "details",
492
- key: `user_option_${fe.value}`,
484
+ key: `user_option_${be.value}`,
493
485
  backgroundColor: a.value.style.chart.backgroundColor,
494
486
  color: a.value.style.chart.color,
495
- isPrinting: b(Me),
496
- isImaging: b(xe),
487
+ isPrinting: d(Ae),
488
+ isImaging: d(Ie),
497
489
  uid: T.value,
498
490
  hasTooltip: !1,
499
491
  hasPdf: a.value.userOptions.buttons.pdf,
@@ -502,88 +494,88 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
502
494
  hasTable: a.value.userOptions.buttons.table,
503
495
  hasLabel: !1,
504
496
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
505
- isFullscreen: ie.value,
506
- chartElement: G.value,
497
+ isFullscreen: de.value,
498
+ chartElement: W.value,
507
499
  position: a.value.userOptions.position,
508
500
  titles: { ...a.value.userOptions.buttonTitles },
509
501
  hasAnnotator: a.value.userOptions.buttons.annotator,
510
- isAnnotation: Q.value,
511
- onToggleFullscreen: ht,
512
- onGeneratePdf: b(_e),
513
- onGenerateCsv: Ge,
514
- onGenerateImage: b(Ie),
515
- onToggleTable: je,
516
- onToggleAnnotator: ce,
502
+ isAnnotation: K.value,
503
+ onToggleFullscreen: Ct,
504
+ onGeneratePdf: d(Pe),
505
+ onGenerateCsv: We,
506
+ onGenerateImage: d(_e),
507
+ onToggleTable: Ve,
508
+ onToggleAnnotator: ve,
517
509
  style: E({
518
- visibility: b(Ce) ? b(ue) ? "visible" : "hidden" : "visible"
510
+ visibility: d(xe) ? d(ce) ? "visible" : "hidden" : "visible"
519
511
  })
520
- }, qe({ _: 2 }, [
512
+ }, Ze({ _: 2 }, [
521
513
  t.$slots.menuIcon ? {
522
514
  name: "menuIcon",
523
- fn: P(({ isOpen: e, color: l }) => [
524
- $(t.$slots, "menuIcon", le(se({ isOpen: e, color: l })), void 0, !0)
515
+ fn: _(({ isOpen: e, color: l }) => [
516
+ $(t.$slots, "menuIcon", re(ue({ isOpen: e, color: l })), void 0, !0)
525
517
  ]),
526
518
  key: "0"
527
519
  } : void 0,
528
520
  t.$slots.optionPdf ? {
529
521
  name: "optionPdf",
530
- fn: P(() => [
522
+ fn: _(() => [
531
523
  $(t.$slots, "optionPdf", {}, void 0, !0)
532
524
  ]),
533
525
  key: "1"
534
526
  } : void 0,
535
527
  t.$slots.optionCsv ? {
536
528
  name: "optionCsv",
537
- fn: P(() => [
529
+ fn: _(() => [
538
530
  $(t.$slots, "optionCsv", {}, void 0, !0)
539
531
  ]),
540
532
  key: "2"
541
533
  } : void 0,
542
534
  t.$slots.optionImg ? {
543
535
  name: "optionImg",
544
- fn: P(() => [
536
+ fn: _(() => [
545
537
  $(t.$slots, "optionImg", {}, void 0, !0)
546
538
  ]),
547
539
  key: "3"
548
540
  } : void 0,
549
541
  t.$slots.optionTable ? {
550
542
  name: "optionTable",
551
- fn: P(() => [
543
+ fn: _(() => [
552
544
  $(t.$slots, "optionTable", {}, void 0, !0)
553
545
  ]),
554
546
  key: "4"
555
547
  } : void 0,
556
548
  t.$slots.optionFullscreen ? {
557
549
  name: "optionFullscreen",
558
- fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
559
- $(t.$slots, "optionFullscreen", le(se({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
550
+ fn: _(({ toggleFullscreen: e, isFullscreen: l }) => [
551
+ $(t.$slots, "optionFullscreen", re(ue({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
560
552
  ]),
561
553
  key: "5"
562
554
  } : void 0,
563
555
  t.$slots.optionAnnotator ? {
564
556
  name: "optionAnnotator",
565
- fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
566
- $(t.$slots, "optionAnnotator", le(se({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
557
+ fn: _(({ toggleAnnotator: e, isAnnotator: l }) => [
558
+ $(t.$slots, "optionAnnotator", re(ue({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
567
559
  ]),
568
560
  key: "6"
569
561
  } : void 0
570
562
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
571
- L.value ? (r(), i("svg", {
563
+ L.value ? (n(), i("svg", {
572
564
  key: 4,
573
- xmlns: b(Tt),
565
+ xmlns: d(Xt),
574
566
  ref_key: "svgRef",
575
- ref: W,
567
+ ref: Q,
576
568
  viewBox: `0 0 ${S.value.width} ${S.value.height}`,
577
569
  preserveAspectRatio: "xMidYMid meet",
578
570
  style: {
579
571
  overflow: "visible"
580
572
  },
581
- class: z({ "vue-ui-chord-rotating": H.value, "vue-ui-chord-idle": !H.value }),
582
- onMousedown: He(ze, ["prevent"]),
583
- onTouchstart: He(ze, ["prevent"])
573
+ class: z({ "vue-ui-chord-rotating": J.value, "vue-ui-chord-idle": !J.value }),
574
+ onMousedown: Je(Re, ["prevent"]),
575
+ onTouchstart: Je(Re, ["prevent"])
584
576
  }, [
585
- de(Ft),
586
- t.$slots["chart-background"] ? (r(), i("foreignObject", {
577
+ he(d(rt)),
578
+ t.$slots["chart-background"] ? (n(), i("foreignObject", {
587
579
  key: 0,
588
580
  x: 0,
589
581
  y: 0,
@@ -594,32 +586,32 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
594
586
  }
595
587
  }, [
596
588
  $(t.$slots, "chart-background", {}, void 0, !0)
597
- ], 8, Kt)) : v("", !0),
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", {
589
+ ], 8, aa)) : v("", !0),
590
+ a.value.style.chart.arcs.labels.curved ? (n(), i("defs", oa, [
591
+ (n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("path", {
600
592
  key: `labelPath-${l}`,
601
593
  id: `labelPath-${l}_${T.value}`,
602
- d: vt(
594
+ d: wt(
603
595
  e.startAngle,
604
596
  e.endAngle,
605
597
  (p.value.inner + p.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
606
598
  ),
607
599
  fill: "none"
608
- }, null, 8, ta))), 128))
600
+ }, null, 8, la))), 128))
609
601
  ])) : v("", !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)
602
+ t.$slots.pattern ? (n(), i("g", sa, [
603
+ (n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("defs", null, [
604
+ $(t.$slots, "pattern", Tt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
613
605
  ]))), 256))
614
606
  ])) : v("", !0),
615
607
  B("g", {
616
- transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
608
+ transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${x.value})`
617
609
  }, [
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 }),
610
+ (n(!0), i(F, null, U(M.value.groups, (e, l) => (n(), i("g", null, [
611
+ (n(), i("path", {
612
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
621
613
  key: `arc-${l}`,
622
- d: Oe(
614
+ d: Le(
623
615
  e.startAngle,
624
616
  e.endAngle,
625
617
  p.value.outer,
@@ -631,16 +623,16 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
631
623
  "stroke-linecap": "round",
632
624
  "stroke-linejoin": "round",
633
625
  style: E({
634
- opacity: Re(e)
626
+ opacity: De(e)
635
627
  }),
636
- onMouseenter: () => ft(e),
628
+ onMouseenter: () => Mt(e),
637
629
  onMouseleave: o[0] || (o[0] = (u) => w.value = null),
638
- onClick: (u) => J("selectGroup", e)
639
- }, null, 46, la)),
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 }),
630
+ onClick: (u) => te("selectGroup", e)
631
+ }, null, 46, ra)),
632
+ t.$slots.pattern ? (n(), i("path", {
633
+ class: z({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !q.value }),
642
634
  key: `arc-${l}`,
643
- d: Oe(
635
+ d: Le(
644
636
  e.startAngle,
645
637
  e.endAngle,
646
638
  p.value.outer,
@@ -652,59 +644,59 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
652
644
  "stroke-linecap": "round",
653
645
  "stroke-linejoin": "round",
654
646
  style: E({
655
- opacity: Re(e),
647
+ opacity: De(e),
656
648
  pointerEvents: "none"
657
649
  })
658
- }, null, 14, sa)) : v("", !0)
650
+ }, null, 14, ua)) : v("", !0)
659
651
  ]))), 256)),
660
652
  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, {
653
+ (n(!0), i(F, null, U(w.value ? M.value.chords.filter((e) => e.source.groupId === w.value.id) : b.value ? M.value.chords.filter((e) => e.source.groupId === b.value) : M.value.chords, (e) => (n(), i(F, {
662
654
  key: `ribbon-${e.id}`
663
655
  }, [
664
- e.source.value ? (r(), i("path", {
656
+ e.source.value ? (n(), i("path", {
665
657
  key: 0,
666
- class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
667
- d: K(e.source, e.target),
658
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
659
+ d: ae(e.source, e.target),
668
660
  fill: a.value.style.chart.backgroundColor,
669
661
  style: E({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
670
- }, null, 14, ra)) : v("", !0),
671
- e.source.value ? (r(), i("path", {
662
+ }, null, 14, ia)) : v("", !0),
663
+ e.source.value ? (n(), i("path", {
672
664
  key: 1,
673
- class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
674
- d: K(e.source, e.target),
665
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
666
+ d: ae(e.source, e.target),
675
667
  fill: y.value.colors[e.source.index],
676
668
  stroke: a.value.style.chart.ribbons.stroke,
677
669
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
678
670
  "stroke-linecap": "round",
679
671
  "stroke-linejoin": "round",
680
- style: E({ opacity: Xe(e) }),
681
- onMouseenter: () => gt({
672
+ style: E({ opacity: je(e) }),
673
+ onMouseenter: () => xt({
682
674
  ...e,
683
- path: K(e.source, e.target),
675
+ path: ae(e.source, e.target),
684
676
  color: y.value.colors[e.source.index]
685
677
  }),
686
- onClick: (l) => J("selectRibbon", {
678
+ onClick: (l) => te("selectRibbon", {
687
679
  ...e,
688
680
  color: y.value.colors[e.source.index]
689
681
  }),
690
682
  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", {
683
+ }, null, 46, ca)) : v("", !0),
684
+ e.source.value && t.$slots.pattern ? (n(), i("path", {
693
685
  key: 2,
694
- class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !V.value }),
695
- d: K(e.source, e.target),
686
+ class: z({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !q.value }),
687
+ d: ae(e.source, e.target),
696
688
  fill: `url(#pattern_${T.value}_${e.source.index})`,
697
689
  stroke: a.value.style.chart.ribbons.stroke,
698
690
  "stroke-width": a.value.style.chart.ribbons.strokeWidth,
699
691
  "stroke-linecap": "round",
700
692
  "stroke-linejoin": "round",
701
693
  style: E({
702
- opacity: Xe(e),
694
+ opacity: je(e),
703
695
  pointerEvents: "none"
704
696
  })
705
- }, null, 14, ua)) : v("", !0)
697
+ }, null, 14, da)) : v("", !0)
706
698
  ], 64))), 128)),
707
- m.value ? (r(), i("path", {
699
+ m.value ? (n(), i("path", {
708
700
  key: 0,
709
701
  d: m.value.path,
710
702
  fill: m.value.color,
@@ -716,8 +708,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
716
708
  style: {
717
709
  pointerEvents: "none"
718
710
  }
719
- }, null, 8, ia)) : v("", !0),
720
- m.value && t.$slots.pattern ? (r(), i("path", {
711
+ }, null, 8, va)) : v("", !0),
712
+ m.value && t.$slots.pattern ? (n(), i("path", {
721
713
  key: 1,
722
714
  d: m.value.path,
723
715
  fill: `url(#${m.value.source.pattern})`,
@@ -729,10 +721,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
729
721
  style: {
730
722
  pointerEvents: "none"
731
723
  }
732
- }, null, 8, ca)) : v("", !0)
724
+ }, null, 8, ha)) : v("", !0)
733
725
  ]),
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, {
726
+ (w.value || m.value || b.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", fa, [
727
+ (n(!0), i(F, null, U(pt.value, (e) => (n(), i(F, {
736
728
  key: e.id
737
729
  }, [
738
730
  B("line", {
@@ -743,7 +735,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
743
735
  stroke: a.value.style.chart.backgroundColor,
744
736
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
745
737
  "pointer-events": "none"
746
- }, null, 8, va),
738
+ }, null, 8, ga),
747
739
  B("line", {
748
740
  x1: e.midBaseX,
749
741
  y1: e.midBaseY,
@@ -752,8 +744,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
752
744
  stroke: a.value.style.chart.ribbons.labels.connector.stroke,
753
745
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
754
746
  "pointer-events": "none"
755
- }, null, 8, ha),
756
- a.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
747
+ }, null, 8, ba),
748
+ a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
757
749
  key: 0,
758
750
  cx: Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
759
751
  cy: Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
@@ -762,65 +754,65 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
762
754
  "stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
763
755
  fill: e.groupColor,
764
756
  "pointer-events": "none"
765
- }, null, 8, fa)) : v("", !0),
757
+ }, null, 8, pa)) : v("", !0),
766
758
  B("text", {
767
759
  transform: `
768
760
  translate(
769
761
  ${Math.cos(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
770
762
  ${Math.sin(e.theta - Math.PI / 2) * (p.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
771
- ) rotate(${-I.value})
763
+ ) rotate(${-x.value})
772
764
  `,
773
765
  fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
774
- "text-anchor": ct(e.theta),
766
+ "text-anchor": kt(e.theta),
775
767
  "font-size": a.value.style.chart.ribbons.labels.fontSize,
776
768
  "font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
777
769
  dy: ".35em",
778
770
  "pointer-events": "none"
779
- }, R(Fe(e.value)), 9, ga)
771
+ }, j(Xe(e.value)), 9, ma)
780
772
  ], 64))), 128))
781
773
  ])) : v("", !0),
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", {
774
+ a.value.style.chart.arcs.labels.show ? (n(), i("g", ya, [
775
+ a.value.style.chart.arcs.labels.curved ? (n(!0), i(F, { key: 0 }, U(M.value.groups, (e, l) => (n(), i("text", {
784
776
  key: `curved-label-${l}`,
785
777
  "font-size": a.value.style.chart.arcs.labels.fontSize,
786
778
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
787
- fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? b(St)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
779
+ fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? d(jt)(y.value.colors[l]) : a.value.style.chart.arcs.labels.color
788
780
  }, [
789
781
  B("textPath", {
790
782
  href: `#labelPath-${l}_${T.value}`,
791
783
  startOffset: "50%",
792
784
  "text-anchor": "middle"
793
- }, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
785
+ }, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
794
786
  p: " (",
795
787
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
796
788
  s: "%)",
797
789
  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", {
790
+ }) : ""), 9, $a)
791
+ ], 8, ka))), 128)) : !w.value && !m.value && !b.value ? (n(!0), i(F, { key: 1 }, U(M.value.groups, (e, l) => (n(), i("text", {
800
792
  key: `label-${l}`,
801
793
  transform: `
802
- ${dt((e.startAngle + e.endAngle) / 2)}
803
- rotate(${-I.value})
794
+ ${$t((e.startAngle + e.endAngle) / 2)}
795
+ rotate(${-x.value})
804
796
  `,
805
797
  dy: ".35em",
806
- "text-anchor": it(e) > Math.PI ? "end" : "start",
798
+ "text-anchor": yt(e) > Math.PI ? "end" : "start",
807
799
  "font-size": a.value.style.chart.arcs.labels.fontSize,
808
800
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
809
801
  fill: a.value.style.chart.arcs.labels.color
810
- }, R(y.value.labels[l]) + R(a.value.style.chart.arcs.labels.showPercentage ? b(he)({
802
+ }, j(y.value.labels[l]) + j(a.value.style.chart.arcs.labels.showPercentage ? d(ge)({
811
803
  p: " (",
812
804
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
813
805
  s: "%)",
814
806
  r: a.value.style.chart.arcs.labels.roundingPercentage
815
- }) : ""), 9, ya))), 128)) : v("", !0)
807
+ }) : ""), 9, wa))), 128)) : v("", !0)
816
808
  ])) : v("", !0)
817
- ], 8, oa),
809
+ ], 8, na),
818
810
  $(t.$slots, "svg", { svg: { height: 600, width: 600 } }, 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)
811
+ ], 42, ta)) : v("", !0),
812
+ t.$slots.watermark ? (n(), i("div", Ca, [
813
+ $(t.$slots, "watermark", re(ue({ isPrinting: d(Ae) || d(Ie) })), void 0, !0)
822
814
  ])) : v("", !0),
823
- L.value ? v("", !0) : (r(), U(Wt, {
815
+ L.value ? v("", !0) : (n(), G(d(it), {
824
816
  key: 6,
825
817
  config: {
826
818
  type: "chord",
@@ -834,28 +826,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
834
826
  }, null, 8, ["config"])),
835
827
  B("div", {
836
828
  ref_key: "chartLegend",
837
- ref: pe
829
+ ref: me
838
830
  }, [
839
- a.value.style.chart.legend.show ? (r(), U(Ut, {
840
- key: `legend_${$e.value}`,
841
- legendSet: Ye.value,
842
- config: bt.value,
843
- onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ue(e.id))
844
- }, qe({
845
- item: P(({ legend: e }) => [
831
+ a.value.style.chart.legend.show ? (n(), G(Qt, {
832
+ key: `legend_${Ce.value}`,
833
+ legendSet: Ue.value,
834
+ config: It.value,
835
+ onClickMarker: o[2] || (o[2] = ({ legend: e }) => Ge(e.id))
836
+ }, Ze({
837
+ item: _(({ legend: e }) => [
846
838
  B("div", {
847
839
  style: E({
848
- opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
840
+ opacity: b.value ? b.value === e.id ? 1 : 0.3 : 1
849
841
  }),
850
842
  onClick: (l) => e.select()
851
- }, R(e.name), 13, $a)
843
+ }, j(e.name), 13, Ma)
852
844
  ]),
853
845
  _: 2
854
846
  }, [
855
847
  t.$slots.pattern ? {
856
848
  name: "legend-pattern",
857
- fn: P(({ legend: e, index: l }) => [
858
- de(Yt, {
849
+ fn: _(({ legend: e, index: l }) => [
850
+ he(Jt, {
859
851
  shape: e.shape,
860
852
  radius: 30,
861
853
  stroke: "none",
@@ -866,18 +858,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
866
858
  key: "0"
867
859
  } : void 0
868
860
  ]), 1032, ["legendSet", "config"])) : v("", !0),
869
- $(t.$slots, "legend", { legend: Ye.value }, void 0, !0)
861
+ $(t.$slots, "legend", { legend: Ue.value }, void 0, !0)
870
862
  ], 512),
871
- t.$slots.source ? (r(), i("div", {
863
+ t.$slots.source ? (n(), i("div", {
872
864
  key: 7,
873
865
  ref_key: "source",
874
- ref: be,
866
+ ref: ye,
875
867
  dir: "auto"
876
868
  }, [
877
869
  $(t.$slots, "source", {}, void 0, !0)
878
870
  ], 512)) : v("", !0),
879
- I.value !== a.value.initialRotation ? (r(), i("div", wa, [
880
- $(t.$slots, "reset-action", { reset: De }, () => [
871
+ x.value !== a.value.initialRotation ? (n(), i("div", xa, [
872
+ $(t.$slots, "reset-action", { reset: Ye }, () => [
881
873
  B("button", {
882
874
  "data-cy-reset": "",
883
875
  tabindex: "0",
@@ -886,20 +878,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
886
878
  style: E({
887
879
  background: a.value.style.chart.backgroundColor
888
880
  }),
889
- onClick: De
881
+ onClick: Ye
890
882
  }, [
891
- de(Rt, {
883
+ he(d(st), {
892
884
  name: "refresh",
893
885
  stroke: a.value.style.chart.color
894
886
  }, null, 8, ["stroke"])
895
887
  ], 4)
896
888
  ], !0)
897
889
  ])) : v("", !0),
898
- L.value ? (r(), U(Vt, {
890
+ L.value ? (n(), G(d(lt), {
899
891
  key: 9,
900
892
  hideDetails: "",
901
893
  config: {
902
- open: q.value.showTable,
894
+ open: Z.value.showTable,
903
895
  maxHeight: 1e4,
904
896
  body: {
905
897
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -911,30 +903,30 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
911
903
  }
912
904
  }
913
905
  }, {
914
- content: P(() => [
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,
906
+ content: _(() => [
907
+ (n(), G(d(nt), {
908
+ key: `table_${we.value}`,
909
+ colNames: ne.value.colNames,
910
+ head: ne.value.head,
911
+ body: ne.value.body,
912
+ config: ne.value.config,
921
913
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
922
- onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
914
+ onClose: o[3] || (o[3] = (e) => Z.value.showTable = !1)
923
915
  }, {
924
- th: P(({ th: e }) => [
925
- $t(R(e.name), 1)
916
+ th: _(({ th: e }) => [
917
+ St(j(e.name), 1)
926
918
  ]),
927
- td: P(({ td: e }) => [
928
- B("div", Ca, R(e.name ? e.name : Fe(e)), 1)
919
+ td: _(({ td: e }) => [
920
+ B("div", Aa, j(e.name ? e.name : Xe(e)), 1)
929
921
  ]),
930
922
  _: 1
931
923
  }, 8, ["colNames", "head", "body", "config", "title"]))
932
924
  ]),
933
925
  _: 1
934
926
  }, 8, ["config"])) : v("", !0)
935
- ], 46, Zt));
927
+ ], 46, ea));
936
928
  }
937
- }, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-764356e7"]]);
929
+ }, Ra = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-f848c3b0"]]);
938
930
  export {
939
- Da as default
931
+ Ra as default
940
932
  };