vue-data-ui 2.12.6 → 2.12.7-beta.0

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