vue-data-ui 3.2.7 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
  95. package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
  97. package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
  99. package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
  100. package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
  101. package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
  102. package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
  105. package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
  106. package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
  108. package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
  111. package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
  114. package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
  115. package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
  116. package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
  117. package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
  118. package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
  121. package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
  123. package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
  124. package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
  125. package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
  127. package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
  128. package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
  132. package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
  133. package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
  134. package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
  135. package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
  136. package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
  137. package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
  138. package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
  139. package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
  140. package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
  142. package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
  143. package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
  144. package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
  151. package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
  152. package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
  154. package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-DH8opsJv.js +0 -325
  157. package/dist/vue-ui-flow-B72CBzC3.js +0 -909
  158. package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
  159. package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
@@ -1,25 +1,26 @@
1
- import { useCssVars as Ht, defineAsyncComponent as W, ref as v, shallowRef as rt, toRefs as qt, watch as xe, computed as $, onMounted as ut, onBeforeUnmount as it, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ae, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as ct, createVNode as fe, Fragment as z, renderList as H, mergeProps as vt, toDisplayString as q, Teleport as Qt, resolveDynamicComponent as Zt, createTextVNode as dt, nextTick as ht } from "vue";
2
- import { c as Ie, t as Jt, b as Kt, p as ge, o as ea, f as ft, g as ta, e as aa, h as oa, X as la, E as na, d as _e, H as sa, ac as ra, x as ua, y as ia, a as ca } from "./lib-BEpWEyMm.js";
3
- import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha, a as gt } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as fa, B as ga } from "./BaseScanner-BgWxam9d.js";
6
- import { u as ba } from "./usePrinter-w23K-ezx.js";
7
- import { u as pa } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ma } from "./useChartAccessibility-9icAAmYg.js";
9
- import ya from "./img-DjWwQXVS.js";
10
- import { _ as ka } from "./Shape-C_C_OmqR.js";
11
- import $a from "./Title-DG2nloSB.js";
12
- import { t as wa } from "./themes-Dw-dDudK.js";
13
- import Ca from "./Legend-BpoFJ8fc.js";
14
- import { _ as Ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ya = { key: 1 }, Ga = ["font-size", "font-weight", "fill"], Wa = ["href"], Ha = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], qa = {
1
+ import { useCssVars as ea, defineAsyncComponent as W, ref as v, shallowRef as ut, toRefs as ta, watch as Ae, computed as p, onMounted as it, onBeforeUnmount as ct, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ie, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as vt, createVNode as fe, Fragment as z, renderList as H, mergeProps as dt, toDisplayString as q, Teleport as aa, resolveDynamicComponent as oa, createTextVNode as ht, nextTick as ft } from "vue";
2
+ import { c as _e, t as la, b as na, p as ge, o as sa, f as gt, g as ra, e as ua, h as ia, X as ca, E as va, d as Pe, H as da, ac as ha, x as fa, y as ga, a as ba } from "./lib-GIYcnm0E.js";
3
+ import { t as pa, u as ma } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ya, a as bt } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as ka, B as $a } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as wa } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as Ca } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Ma } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as xa } from "./useChartAccessibility-9icAAmYg.js";
10
+ import Aa from "./img-6wPuVVtk.js";
11
+ import { _ as Ia } from "./Shape-DJG2zW7b.js";
12
+ import _a from "./Title-D17CJXko.js";
13
+ import { t as Pa } from "./themes-Dw-dDudK.js";
14
+ import Sa from "./Legend-DsogCeTb.js";
15
+ import { _ as Ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Ba = ["id"], Oa = ["id"], La = ["xmlns", "viewBox"], Da = ["width", "height"], Ea = { key: 1 }, Na = ["id", "d"], Ra = { key: 2 }, Fa = ["transform"], za = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ua = ["d", "fill", "stroke", "stroke-width"], Xa = ["d", "fill"], Va = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], ja = ["d", "fill", "stroke", "stroke-width"], Ga = ["d", "fill", "stroke", "stroke-width"], Ya = ["d", "fill", "stroke", "stroke-width"], Wa = { key: 0 }, Ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], qa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], Za = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ja = { key: 1 }, Ka = ["font-size", "font-weight", "fill"], eo = ["href"], to = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], ao = {
16
17
  key: 4,
17
18
  class: "vue-data-ui-watermark"
18
- }, Qa = ["id"], Za = ["onClick"], Ja = {
19
+ }, oo = ["id"], lo = ["onClick"], no = {
19
20
  key: 7,
20
21
  "data-dom-to-png-ignore": "",
21
22
  class: "reset-wrapper"
22
- }, Ka = { style: { "text-align": "right", width: "100%" } }, eo = {
23
+ }, so = { style: { "text-align": "right", width: "100%" } }, ro = {
23
24
  __name: "vue-ui-chord",
24
25
  props: {
25
26
  dataset: {
@@ -36,17 +37,17 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
36
37
  }
37
38
  },
38
39
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
39
- setup(bt, { expose: pt, emit: mt }) {
40
- Ht((t) => ({
41
- v9b041f44: t.slicerColor
40
+ setup(pt, { expose: mt, emit: yt }) {
41
+ ea((t) => ({
42
+ dd6a513c: t.slicerColor
42
43
  }));
43
- const yt = W(() => import("./vue-ui-accordion-CeMTgpl0.js")), Pe = W(() => import("./BaseIcon-Bz-1GQhu.js")), kt = W(() => import("./DataTable-BvjacRbw.js")), $t = W(() => import("./PackageVersion-Cwrh45ON.js")), wt = W(() => import("./PenAndPaper-CR8q353D.js")), Ct = W(() => import("./UserOptions-DsTgvAok.js")), Mt = W(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_chord: xt } = ha(), S = bt, ne = mt, E = v(!!S.dataset && Object.hasOwn(S.dataset, "matrix")), k = v(Ie()), C = v(null), p = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Se = v(null), Oe = v(null), Le = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = rt(null), Z = rt(null), De = v(!1), J = v(null), ye = v(null), e = v($e()), { loading: Ee, FINAL_DATASET: M, manualLoading: K } = fa({
44
- ...qt(S),
44
+ const kt = W(() => import("./vue-ui-accordion-Dch9YrCi.js")), Se = W(() => import("./BaseIcon-CtqN7W_g.js")), $t = W(() => import("./DataTable-BeI6gYJX.js")), wt = W(() => import("./PackageVersion-C9oklnuy.js")), Ct = W(() => import("./PenAndPaper-BxbYiPy4.js")), Mt = W(() => import("./UserOptions-B3vCIe-u.js")), xt = W(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_chord: At } = ya(), B = pt, ne = yt, E = v(!!B.dataset && Object.hasOwn(B.dataset, "matrix")), $ = v(_e()), C = v(null), m = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Oe = v(null), Le = v(null), De = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = ut(null), Z = ut(null), Ee = v(!1), K = v(null), ye = v(null), e = v($e()), { loading: Ne, FINAL_DATASET: M, manualLoading: ee } = ka({
45
+ ...ta(B),
45
46
  FINAL_CONFIG: e,
46
47
  prepareConfig: $e,
47
48
  callback: () => {
48
49
  Promise.resolve().then(async () => {
49
- await ht(), j.value.showTable = e.value.table.show;
50
+ await ft(), j.value.showTable = e.value.table.show;
50
51
  });
51
52
  },
52
53
  skeletonDataset: {
@@ -59,7 +60,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
59
60
  labels: [],
60
61
  colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
61
62
  },
62
- skeletonConfig: Jt({
63
+ skeletonConfig: la({
63
64
  defaultConfig: e.value,
64
65
  userConfig: {
65
66
  useCssAnimation: !1,
@@ -88,65 +89,65 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
88
89
  }
89
90
  }
90
91
  })
91
- }), { userOptionsVisible: ke, setUserOptionsVisibility: Ne, keepUserOptionState: Re } = pa({ config: e.value }), { svgRef: ee } = ma({ config: e.value.style.chart.title }), { isPrinting: Fe, isImaging: ze, generatePdf: Ue, generateImage: Xe } = ba({
92
- elementId: `chord_${k.value}`,
92
+ }), { userOptionsVisible: ke, setUserOptionsVisibility: Re, keepUserOptionState: Fe } = Ma({ config: e.value }), { svgRef: J } = xa({ config: e.value.style.chart.title }), { isPrinting: ze, isImaging: Ue, generatePdf: Xe, generateImage: Ve } = wa({
93
+ elementId: `chord_${$.value}`,
93
94
  fileName: e.value.style.chart.title.text || "vue-ui-chord",
94
95
  options: e.value.userOptions.print
95
96
  }), j = v({
96
97
  showTable: e.value.table.show
97
98
  });
98
99
  function $e() {
99
- const t = gt({
100
- userConfig: S.config,
101
- defaultConfig: xt
100
+ const t = bt({
101
+ userConfig: B.config,
102
+ defaultConfig: At
102
103
  });
103
104
  return t.theme ? {
104
- ...gt({
105
- userConfig: wa.vue_ui_chord[t.theme] || S.config,
105
+ ...bt({
106
+ userConfig: Pa.vue_ui_chord[t.theme] || B.config,
106
107
  defaultConfig: t
107
108
  }),
108
- customPalette: Kt[t.theme] || ge
109
+ customPalette: na[t.theme] || ge
109
110
  } : t;
110
111
  }
111
- xe(() => S.config, (t) => {
112
- Ee.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, we(), be.value += 1, pe.value += 1, me.value += 1, _.value = e.value.initialRotation, j.value.showTable = e.value.table.show;
112
+ Ae(() => B.config, (t) => {
113
+ Ne.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, we(), be.value += 1, pe.value += 1, me.value += 1, _.value = e.value.initialRotation, j.value.showTable = e.value.table.show;
113
114
  }, { deep: !0 });
114
- const Ve = $(() => e.value.debug);
115
- xe(() => S.dataset, () => {
116
- je(), we(), be.value += 1, pe.value += 1, me.value += 1;
115
+ const je = p(() => e.value.debug);
116
+ Ae(() => B.dataset, () => {
117
+ Ge(), we(), be.value += 1, pe.value += 1, me.value += 1;
117
118
  });
118
- function je() {
119
- if (ea(S.dataset)) {
120
- ft({
119
+ function Ge() {
120
+ if (sa(B.dataset)) {
121
+ gt({
121
122
  componentName: "VueUiChord",
122
123
  type: "dataset",
123
- debug: Ve.value
124
- }), E.value = !1, K.value = !0;
124
+ debug: je.value
125
+ }), E.value = !1, ee.value = !0;
125
126
  return;
126
127
  }
127
- const t = ta({
128
- datasetObject: S.dataset,
128
+ const t = ra({
129
+ datasetObject: B.dataset,
129
130
  requiredAttributes: ["matrix"]
130
131
  });
131
132
  if (t.length) {
132
133
  t.forEach((s) => {
133
- ft({
134
+ gt({
134
135
  componentName: "VueUiChord",
135
136
  type: "datasetAttribute",
136
137
  property: s,
137
- debug: Ve.value
138
+ debug: je.value
138
139
  });
139
- }), E.value = !1, K.value = !0;
140
+ }), E.value = !1, ee.value = !0;
140
141
  return;
141
142
  }
142
- const o = S.dataset.matrix;
143
+ const o = B.dataset.matrix;
143
144
  if (!Array.isArray(o) || o.length < 2) {
144
145
  console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
145
146
 
146
147
  matrix:[
147
148
  [1, 1],
148
149
  [1, 1]
149
- ]`), E.value = !1, K.value = !0;
150
+ ]`), E.value = !1, ee.value = !0;
150
151
  return;
151
152
  }
152
153
  const a = o.length, l = o.findIndex((s) => !Array.isArray(s) || s.length !== a);
@@ -155,22 +156,22 @@ matrix:[
155
156
  `VueUiChord - Invalid matrix: dataset.matrix at index ${l} has ${Array.isArray(o[l]) ? o[l].length : "NaN"} elements instead of the required ${a}
156
157
 
157
158
  dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
158
- ), E.value = !1, K.value = !0;
159
+ ), E.value = !1, ee.value = !0;
159
160
  return;
160
161
  }
161
- E.value = !0, K.value = !1;
162
+ E.value = !0, ee.value = !1;
162
163
  }
163
164
  function we() {
164
- if (je(), e.value.responsive) {
165
- const t = va(() => {
166
- const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } = da({
165
+ if (Ge(), e.value.responsive) {
166
+ const t = pa(() => {
167
+ const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } = ma({
167
168
  chart: O.value,
168
169
  title: e.value.style.chart.title.text ? Be.value : null,
169
- legend: e.value.style.chart.legend.show ? Se.value : null,
170
- source: Oe.value,
171
- noTitle: Le.value
170
+ legend: e.value.style.chart.legend.show ? Oe.value : null,
171
+ source: Le.value,
172
+ noTitle: De.value
172
173
  }), f = n + u + s + l;
173
- o < a ? O.value.style.width = "100%" : (O.value.style.height = "100%", ee.value.style.height = `calc(100% - ${f}px)`);
174
+ o < a ? O.value.style.width = "100%" : (O.value.style.height = "100%", J.value.style.height = `calc(100% - ${f}px)`);
174
175
  }, 100);
175
176
  U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect()), U.value = new ResizeObserver(t), Z.value = O.value.parentNode, U.value.observe(Z.value), t();
176
177
  }
@@ -178,7 +179,7 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
178
179
  Q.value = !0;
179
180
  }, 500);
180
181
  }
181
- function At() {
182
+ function It() {
182
183
  if (!M.value || !Object.hasOwn(M.value, "matrix") || M.value.matrix.length < 2) {
183
184
  console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
184
185
 
@@ -195,82 +196,82 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
195
196
  });
196
197
  }
197
198
  const Ye = v(null);
198
- ut(() => {
199
- De.value = !0, we();
199
+ it(() => {
200
+ Ee.value = !0, we();
200
201
  });
201
202
  const L = v({
202
203
  height: 600,
203
204
  width: 600
204
- }), It = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = $(() => aa(e.value.customPalette)), b = $(() => ({
205
+ }), _t = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = p(() => ua(e.value.customPalette)), b = p(() => ({
205
206
  inner: L.value.width * 0.3 * e.value.style.chart.arcs.innerRadiusRatio,
206
207
  outer: L.value.width * 0.34 * e.value.style.chart.arcs.outerRadiusRatio
207
- })), Pt = $(() => e.value.style.chart.arcs.padAngle / 100), m = $(() => ({
208
+ })), St = p(() => e.value.style.chart.arcs.padAngle / 100), y = p(() => ({
208
209
  matrix: M.value.matrix ?? [[0]],
209
210
  labels: M.value.labels ?? [""],
210
- colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) => oa(t)) : M.value.matrix.map((t, o) => _t.value[o] || ge[o] || ge[o % ge.length])
211
+ colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) => ia(t)) : M.value.matrix.map((t, o) => Pt.value[o] || ge[o] || ge[o % ge.length])
211
212
  }));
212
213
  function Tt(t, o) {
213
214
  const a = t.length, l = b.value.inner, s = new Array(a).fill(0);
214
215
  let n = 0;
215
216
  for (let c = 0; c < a; c += 1)
216
- for (let y = 0; y < a; y += 1)
217
- s[c] += t[c][y], n += t[c][y];
217
+ for (let k = 0; k < a; k += 1)
218
+ s[c] += t[c][k], n += t[c][k];
218
219
  const u = (2 * Math.PI - o * a) / n, f = [];
219
220
  let P = 0;
220
221
  for (let c = 0; c < a; c += 1) {
221
- const y = P, B = y + s[c] * u;
222
+ const k = P, T = k + s[c] * u;
222
223
  f.push({
223
224
  index: c,
224
- pattern: `pattern_${k.value}_${c}`,
225
- startAngle: y,
226
- endAngle: B,
227
- name: m.value.labels[c],
228
- id: Ie(),
229
- color: m.value.colors[c],
225
+ pattern: `pattern_${$.value}_${c}`,
226
+ startAngle: k,
227
+ endAngle: T,
228
+ name: y.value.labels[c],
229
+ id: _e(),
230
+ color: y.value.colors[c],
230
231
  proportion: s[c] / n
231
- }), P = B + o;
232
+ }), P = T + o;
232
233
  }
233
- const T = [];
234
+ const S = [];
234
235
  for (let c = 0; c < a; c += 1) {
235
- const y = t[c].map((D, X) => ({ j: X, v: D }));
236
- y.sort((D, X) => X.v - D.v);
237
- let B = f[c].startAngle;
238
- for (const { j: D, v: X } of y) {
239
- const G = B, le = G + X * u;
240
- T.push({
236
+ const k = t[c].map((D, X) => ({ j: X, v: D }));
237
+ k.sort((D, X) => X.v - D.v);
238
+ let T = f[c].startAngle;
239
+ for (const { j: D, v: X } of k) {
240
+ const Y = T, le = Y + X * u;
241
+ S.push({
241
242
  index: c,
242
243
  subIndex: D,
243
- pattern: `pattern_${k.value}_${c}`,
244
- startAngle: G,
244
+ pattern: `pattern_${$.value}_${c}`,
245
+ startAngle: Y,
245
246
  endAngle: le,
246
247
  value: X,
247
- groupName: m.value.labels[c],
248
+ groupName: y.value.labels[c],
248
249
  groupId: f[c].id,
249
- groupColor: m.value.colors[c],
250
- midAngle: (G + le) / 2,
251
- midBaseX: Math.cos((G + le) / 2 - Math.PI / 2) * l,
252
- midBaseY: Math.sin((G + le) / 2 - Math.PI / 2) * l
253
- }), B = le;
250
+ groupColor: y.value.colors[c],
251
+ midAngle: (Y + le) / 2,
252
+ midBaseX: Math.cos((Y + le) / 2 - Math.PI / 2) * l,
253
+ midBaseY: Math.sin((Y + le) / 2 - Math.PI / 2) * l
254
+ }), T = le;
254
255
  }
255
256
  }
256
257
  const N = [];
257
- for (const c of T) {
258
- const y = T.find(
259
- (B) => B.index === c.subIndex && B.subIndex === c.index
258
+ for (const c of S) {
259
+ const k = S.find(
260
+ (T) => T.index === c.subIndex && T.subIndex === c.index
260
261
  );
261
- N.push({ source: c, target: y, id: Ie() });
262
+ N.push({ source: c, target: k, id: _e() });
262
263
  }
263
264
  return { groups: f, chords: N };
264
265
  }
265
- const A = $(() => {
266
- const t = Tt(m.value.matrix, Pt.value);
267
- return At(), t.chords.sort(
266
+ const A = p(() => {
267
+ const t = Tt(y.value.matrix, St.value);
268
+ return It(), t.chords.sort(
268
269
  (o, a) => Math.max(a.source.value, a.target.value) - Math.max(o.source.value, o.target.value)
269
270
  ), t;
270
- }), Bt = $(() => {
271
+ }), Bt = p(() => {
271
272
  const t = b.value.outer + e.value.style.chart.ribbons.labels.offset + 12, a = e.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
272
- if (p.value) {
273
- const n = p.value;
273
+ if (m.value) {
274
+ const n = m.value;
274
275
  if (n.source.value) {
275
276
  const u = String(n.source.value);
276
277
  l.push({
@@ -326,69 +327,69 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
326
327
  });
327
328
  }
328
329
  return g.value && s(g.value), C.value && s(C.value.id), l;
329
- }), St = $(() => {
330
+ }), Ot = p(() => {
330
331
  const t = Bt.value.map((s) => ({ ...s })).sort((s, n) => s.theta - n.theta), o = e.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
331
332
  let a = !0, l = 0;
332
333
  for (; a && l++ < 10; ) {
333
334
  a = !1;
334
335
  for (let f = 1; f < t.length; f += 1) {
335
- const P = t[f - 1], T = t[f], N = P.theta + P.w + o;
336
- T.theta < N && (T.theta = N, a = !0);
336
+ const P = t[f - 1], S = t[f], N = P.theta + P.w + o;
337
+ S.theta < N && (S.theta = N, a = !0);
337
338
  }
338
339
  const s = t[0], n = t[t.length - 1], u = n.theta + n.w + o - 2 * Math.PI;
339
340
  s.theta < u && (s.theta = u, a = !0);
340
341
  }
341
342
  return t;
342
343
  });
343
- function Ge(t, o, a, l) {
344
- const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, T = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, y = Math.cos(s) * l, B = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
345
- return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${T} L${N},${c} A${l},${l} 0 ${D} 0 ${y},${B} Z`;
344
+ function We(t, o, a, l) {
345
+ const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, S = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, k = Math.cos(s) * l, T = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
346
+ return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${S} L${N},${c} A${l},${l} 0 ${D} 0 ${k},${T} Z`;
346
347
  }
347
348
  function se(t, o) {
348
- const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, G = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
349
- return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${G} 1 ${B},${D}Q0,0 ${f},${P}Z`;
350
- }
351
- const We = $(() => _.value * Math.PI / 180);
352
- function Ot(t) {
353
- return (t.startAngle + t.endAngle) / 2;
349
+ const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, S = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, k = Math.sin(n) * a, T = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, Y = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
350
+ return `M${f},${P}A${a},${a} 0 ${X} 1 ${S},${N}Q0,0 ${c},${k}A${a},${a} 0 ${Y} 1 ${T},${D}Q0,0 ${f},${P}Z`;
354
351
  }
352
+ const He = p(() => _.value * Math.PI / 180);
355
353
  function Lt(t) {
356
- return ((Ot(t) + We.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
354
+ return (t.startAngle + t.endAngle) / 2;
357
355
  }
358
356
  function Dt(t) {
359
- let o = t + We.value;
360
- return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
357
+ return ((Lt(t) + He.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
361
358
  }
362
359
  function Et(t) {
360
+ let o = t + He.value;
361
+ return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
362
+ }
363
+ function Nt(t) {
363
364
  const o = t - Math.PI / 2, a = Math.cos(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24);
364
365
  return `translate(${a},${l})`;
365
366
  }
366
- function Nt(t, o, a) {
367
- const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a, P = Math.sin(s) * a, T = o - t > Math.PI ? 1 : 0;
368
- return `M${n},${u} A${a},${a} 0 ${T} 1 ${f},${P}`;
367
+ function Rt(t, o, a) {
368
+ const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a, P = Math.sin(s) * a, S = o - t > Math.PI ? 1 : 0;
369
+ return `M${n},${u} A${a},${a} 0 ${S} 1 ${f},${P}`;
369
370
  }
370
371
  const _ = v(e.value.initialRotation), te = v(!1);
371
- let He = 0, qe = 0;
372
- function Qe(t) {
373
- const o = ee.value.getBoundingClientRect(), a = o.left + o.width / 2, l = o.top + o.height / 2, s = t.clientX ?? t.touches[0].clientX, n = t.clientY ?? t.touches[0].clientY;
372
+ let qe = 0, Qe = 0;
373
+ function Ze(t) {
374
+ const o = J.value.getBoundingClientRect(), a = o.left + o.width / 2, l = o.top + o.height / 2, s = t.clientX ?? t.touches[0].clientX, n = t.clientY ?? t.touches[0].clientY;
374
375
  return Math.atan2(n - l, s - a);
375
376
  }
376
- function Ze(t) {
377
- !e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0, He = _.value, qe = Qe(t));
377
+ function Je(t) {
378
+ !e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0, qe = _.value, Qe = Ze(t));
378
379
  }
379
380
  function re(t) {
380
381
  if (!te.value) return;
381
- const o = Qe(t);
382
- _.value = He + (o - qe) * 180 / Math.PI;
382
+ const o = Ze(t);
383
+ _.value = qe + (o - Qe) * 180 / Math.PI;
383
384
  }
384
385
  function ue() {
385
386
  te.value = !1;
386
387
  }
387
- function Je(t) {
388
- return ca(
388
+ function Ke(t) {
389
+ return ba(
389
390
  e.value.style.chart.ribbons.labels.formatter,
390
391
  t,
391
- _e({
392
+ Pe({
392
393
  p: e.value.style.chart.ribbons.labels.prefix,
393
394
  v: t,
394
395
  s: e.value.style.chart.ribbons.labels.suffix,
@@ -396,87 +397,87 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
396
397
  })
397
398
  );
398
399
  }
399
- ut(() => {
400
+ it(() => {
400
401
  window.addEventListener("mousemove", re), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", re, { passive: !1 }), window.addEventListener("touchend", ue);
401
- }), it(() => {
402
+ }), ct(() => {
402
403
  window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(Ye.value), U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect());
403
404
  });
404
405
  const ie = v(!1);
405
- function Ke(t) {
406
+ function et(t) {
406
407
  ie.value = t, Te.value += 1;
407
408
  }
408
- function Rt(t, o) {
409
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (C.value = t);
410
- }
411
409
  function Ft(t, o) {
412
- C.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
410
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (C.value = t);
413
411
  }
414
412
  function zt(t, o) {
415
- ne("selectGroup", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
413
+ C.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
416
414
  }
417
415
  function Ut(t, o) {
418
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (p.value = t);
416
+ ne("selectGroup", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
419
417
  }
420
418
  function Xt(t, o) {
421
- p.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
419
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (m.value = t);
422
420
  }
423
421
  function Vt(t, o) {
424
- ne("selectRibbon", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
422
+ m.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
425
423
  }
426
- function et(t) {
427
- return !g.value && !C.value && !p.value ? 0.8 : (g.value ? g.value === t.source.groupId : C.value ? C.value.id === t.source.groupId : p.value?.id === t.id) ? 1 : 0.1;
424
+ function jt(t, o) {
425
+ ne("selectRibbon", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
428
426
  }
429
427
  function tt(t) {
430
- return !g.value && !C.value && !p.value || (g.value ? g.value === t.id : C.value ? C.value.id === t.id : [p.value?.source.groupId, p.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
428
+ return !g.value && !C.value && !m.value ? 0.8 : (g.value ? g.value === t.source.groupId : C.value ? C.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
429
+ }
430
+ function at(t) {
431
+ return !g.value && !C.value && !m.value || (g.value ? g.value === t.id : C.value ? C.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
431
432
  }
432
433
  const ae = v(!1);
433
434
  function Ce() {
434
435
  ae.value = !ae.value;
435
436
  }
436
- function at() {
437
+ function ot() {
437
438
  j.value.showTable = !j.value.showTable;
438
439
  }
439
- function jt() {
440
+ function Gt() {
440
441
  return A.value;
441
442
  }
442
- const Y = v(null);
443
- function ot() {
443
+ const G = v(null);
444
+ function lt() {
444
445
  const t = e.value.initialRotation;
445
- Y.value !== null && cancelAnimationFrame(Y.value);
446
+ G.value !== null && cancelAnimationFrame(G.value);
446
447
  const o = () => {
447
- _.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, Y.value = null) : Y.value = requestAnimationFrame(o);
448
+ _.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, G.value = null) : G.value = requestAnimationFrame(o);
448
449
  };
449
- Y.value = requestAnimationFrame(o);
450
+ G.value = requestAnimationFrame(o);
450
451
  }
451
- it(() => {
452
- Y.value !== null && cancelAnimationFrame(Y.value);
452
+ ct(() => {
453
+ G.value !== null && cancelAnimationFrame(G.value);
453
454
  });
454
- function lt(t) {
455
+ function nt(t) {
455
456
  t === g.value ? (g.value = null, ne("selectLegend", null)) : (g.value = t, ne("selectLegend", A.value.groups.find((o) => o.id === t)));
456
457
  }
457
- const nt = $(() => A.value.groups.map((t, o) => ({
458
+ const Me = p(() => A.value.groups.map((t, o) => ({
458
459
  name: t.name,
459
460
  color: t.color,
460
461
  shape: "circle",
461
462
  patternIndex: o,
462
- pattern: `pattern_${k.value}_${o}`,
463
+ pattern: `pattern_${$.value}_${o}`,
463
464
  id: t.id,
464
- select: () => lt(t.id),
465
+ select: () => nt(t.id),
465
466
  opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
466
- }))), Yt = $(() => ({
467
+ }))), Yt = p(() => ({
467
468
  cy: "chord-div-legend",
468
469
  backgroundColor: e.value.style.chart.legend.backgroundColor,
469
470
  color: e.value.style.chart.legend.color,
470
471
  fontSize: e.value.style.chart.legend.fontSize,
471
472
  paddingBottom: 12,
472
473
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
473
- })), ce = $(() => {
474
+ })), ce = p(() => {
474
475
  const t = A.value.groups.map((a, l) => ({
475
476
  name: a.name || l,
476
477
  color: a.color
477
- })), o = m.value.matrix;
478
+ })), o = y.value.matrix;
478
479
  return { head: t, body: o };
479
- }), ve = $(() => {
480
+ }), ve = p(() => {
480
481
  const t = [{ name: "", color: null }, ...ce.value.head], o = ce.value.body.map((s, n) => [
481
482
  ce.value.head[n],
482
483
  ...ce.value.body[n]
@@ -500,25 +501,25 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
500
501
  config: a
501
502
  };
502
503
  });
503
- function Me(t = null) {
504
- ht(() => {
505
- const o = m.value.matrix.map((s, n) => [
506
- [m.value.labels[n] || n],
504
+ function xe(t = null) {
505
+ ft(() => {
506
+ const o = y.value.matrix.map((s, n) => [
507
+ [y.value.labels[n] || n],
507
508
  s
508
509
  ]), a = [
509
510
  [e.value.style.chart.title.text],
510
511
  [e.value.style.chart.title.subtitle.text],
511
512
  [
512
513
  [""],
513
- ...m.value.labels.map((s, n) => [s || n])
514
+ ...y.value.labels.map((s, n) => [s || n])
514
515
  ]
515
- ].concat(o), l = ua(a);
516
- t ? t(l) : ia({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
516
+ ].concat(o), l = fa(a);
517
+ t ? t(l) : ga({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
517
518
  });
518
519
  }
519
- async function Gt({ scale: t = 2 } = {}) {
520
+ async function Wt({ scale: t = 2 } = {}) {
520
521
  if (!O.value) return;
521
- const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await ya({ domElement: O.value, base64: !0, img: !0, scale: t });
522
+ const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await Aa({ domElement: O.value, base64: !0, img: !0, scale: t });
522
523
  return {
523
524
  imageUri: s,
524
525
  base64: n,
@@ -528,18 +529,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
528
529
  aspectRatio: l
529
530
  };
530
531
  }
531
- function Wt(t, o) {
532
- return `${m.value.labels[o]}${e.value.style.chart.arcs.labels.showPercentage ? _e({
532
+ function Ht(t, o) {
533
+ return `${y.value.labels[o]}${e.value.style.chart.arcs.labels.showPercentage ? Pe({
533
534
  p: " (",
534
535
  v: isNaN(t.proportion) ? 0 : t.proportion * 100,
535
536
  s: "%)",
536
537
  r: e.value.style.chart.arcs.labels.roundingPercentage
537
538
  }) : ""}`;
538
539
  }
539
- const oe = $(() => {
540
+ const oe = p(() => {
540
541
  const t = e.value.table.useDialog && !e.value.table.show, o = j.value.showTable;
541
542
  return {
542
- component: t ? Mt : yt,
543
+ component: t ? xt : kt,
543
544
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
544
545
  props: t ? {
545
546
  backgroundColor: e.value.table.th.backgroundColor,
@@ -566,47 +567,63 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
566
567
  }
567
568
  };
568
569
  });
569
- xe(() => j.value.showTable, (t) => {
570
- e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
570
+ Ae(() => j.value.showTable, (t) => {
571
+ e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
571
572
  });
572
573
  function st() {
573
574
  j.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
574
575
  }
575
- return pt({
576
- getData: jt,
577
- getImage: Gt,
578
- generateCsv: Me,
579
- generateImage: Xe,
580
- generatePdf: Ue,
576
+ const qt = p(() => e.value.style.chart.backgroundColor), Qt = p(() => e.value.style.chart.legend), Zt = p(() => e.value.style.chart.title), { exportSvg: Jt, getSvg: Kt } = Ca({
577
+ svg: J,
578
+ title: Zt,
579
+ legend: Qt,
580
+ legendItems: Me,
581
+ backgroundColor: qt
582
+ });
583
+ async function rt({ isCb: t }) {
584
+ if (t) {
585
+ const { blob: o, url: a, text: l, dataUrl: s } = await Kt();
586
+ e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: s });
587
+ } else
588
+ Jt();
589
+ }
590
+ return mt({
591
+ getData: Gt,
592
+ getImage: Wt,
593
+ generateCsv: xe,
594
+ generateImage: Ve,
595
+ generateSvg: rt,
596
+ generatePdf: Xe,
581
597
  toggleAnnotator: Ce,
582
- toggleTable: at,
583
- toggleFullscreen: Ke
598
+ toggleTable: ot,
599
+ toggleFullscreen: et
584
600
  }), (t, o) => (r(), i("div", {
585
601
  ref_key: "chordChart",
586
602
  ref: O,
587
603
  class: F({
604
+ "vue-data-ui-component": !0,
588
605
  "vue-ui-chord": !0,
589
606
  "vue-data-ui-wrapper-fullscreen": ie.value,
590
607
  "vue-data-ui-responsive": e.value.responsive
591
608
  }),
592
609
  style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
593
- id: `chord_${k.value}`,
594
- onMouseenter: o[2] || (o[2] = () => d(Ne)(!0)),
595
- onMouseleave: o[3] || (o[3] = () => d(Ne)(!1))
610
+ id: `chord_${$.value}`,
611
+ onMouseenter: o[2] || (o[2] = () => d(Re)(!0)),
612
+ onMouseleave: o[3] || (o[3] = () => d(Re)(!1))
596
613
  }, [
597
- e.value.userOptions.buttons.annotator && d(ee) ? (r(), V(d(wt), {
614
+ e.value.userOptions.buttons.annotator && d(J) ? (r(), V(d(Ct), {
598
615
  key: 0,
599
616
  color: e.value.style.chart.color,
600
617
  backgroundColor: e.value.style.chart.backgroundColor,
601
618
  active: ae.value,
602
- svgRef: d(ee),
619
+ svgRef: d(J),
603
620
  onClose: Ce
604
621
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
605
622
  w(t.$slots, "userConfig", {}, void 0, !0),
606
- It.value ? (r(), i("div", {
623
+ _t.value ? (r(), i("div", {
607
624
  key: 1,
608
625
  ref_key: "noTitle",
609
- ref: Le,
626
+ ref: De,
610
627
  class: "vue-data-ui-no-title-space",
611
628
  style: "height:36px; width: 100%;background:transparent"
612
629
  }, null, 512)) : h("", !0),
@@ -616,7 +633,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
616
633
  ref: Be,
617
634
  style: "width:100%;background:transparent;padding-bottom:24px"
618
635
  }, [
619
- (r(), V($a, {
636
+ (r(), V(_a, {
620
637
  key: `title_${be.value}`,
621
638
  config: {
622
639
  title: {
@@ -631,20 +648,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
631
648
  }, null, 8, ["config"]))
632
649
  ], 512)) : h("", !0),
633
650
  I("div", {
634
- id: `legend-top-${k.value}`
635
- }, null, 8, Aa),
636
- e.value.userOptions.show && E.value && (d(Re) || d(ke)) ? (r(), V(d(Ct), {
651
+ id: `legend-top-${$.value}`
652
+ }, null, 8, Oa),
653
+ e.value.userOptions.show && E.value && (d(Fe) || d(ke)) ? (r(), V(d(Mt), {
637
654
  ref_key: "userOptionsRef",
638
655
  ref: ye,
639
656
  key: `user_option_${Te.value}`,
640
657
  backgroundColor: e.value.style.chart.backgroundColor,
641
658
  color: e.value.style.chart.color,
642
- isPrinting: d(Fe),
643
- isImaging: d(ze),
644
- uid: k.value,
659
+ isPrinting: d(ze),
660
+ isImaging: d(Ue),
661
+ uid: $.value,
645
662
  hasTooltip: !1,
646
663
  hasPdf: e.value.userOptions.buttons.pdf,
647
664
  hasImg: e.value.userOptions.buttons.img,
665
+ hasSvg: e.value.userOptions.buttons.svg,
648
666
  hasXls: e.value.userOptions.buttons.csv,
649
667
  hasTable: e.value.userOptions.buttons.table,
650
668
  hasLabel: !1,
@@ -658,16 +676,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
658
676
  callbacks: e.value.userOptions.callbacks,
659
677
  printScale: e.value.userOptions.print.scale,
660
678
  tableDialog: e.value.table.useDialog,
661
- onToggleFullscreen: Ke,
662
- onGeneratePdf: d(Ue),
663
- onGenerateCsv: Me,
664
- onGenerateImage: d(Xe),
665
- onToggleTable: at,
679
+ onToggleFullscreen: et,
680
+ onGeneratePdf: d(Xe),
681
+ onGenerateCsv: xe,
682
+ onGenerateImage: d(Ve),
683
+ onGenerateSvg: rt,
684
+ onToggleTable: ot,
666
685
  onToggleAnnotator: Ce,
667
686
  style: R({
668
- visibility: d(Re) ? d(ke) ? "visible" : "hidden" : "visible"
687
+ visibility: d(Fe) ? d(ke) ? "visible" : "hidden" : "visible"
669
688
  })
670
- }, Ae({ _: 2 }, [
689
+ }, Ie({ _: 2 }, [
671
690
  t.$slots.menuIcon ? {
672
691
  name: "menuIcon",
673
692
  fn: x(({ isOpen: a, color: l }) => [
@@ -717,21 +736,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
717
736
  ]),
718
737
  key: "6"
719
738
  } : void 0
720
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
739
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
721
740
  (r(), i("svg", {
722
- xmlns: d(la),
741
+ xmlns: d(ca),
723
742
  ref_key: "svgRef",
724
- ref: ee,
743
+ ref: J,
725
744
  viewBox: `0 0 ${L.value.width} ${L.value.height}`,
726
745
  preserveAspectRatio: "xMidYMid meet",
727
746
  style: {
728
747
  overflow: "visible"
729
748
  },
730
749
  class: F({ "vue-ui-chord-rotating": te.value, "vue-ui-chord-idle": !te.value }),
731
- onMousedown: ct(Ze, ["prevent"]),
732
- onTouchstart: ct(Ze, ["prevent"])
750
+ onMousedown: vt(Je, ["prevent"]),
751
+ onTouchstart: vt(Je, ["prevent"])
733
752
  }, [
734
- fe(d($t)),
753
+ fe(d(wt)),
735
754
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
736
755
  key: 0,
737
756
  x: 0,
@@ -743,22 +762,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
743
762
  }
744
763
  }, [
745
764
  w(t.$slots, "chart-background", {}, void 0, !0)
746
- ], 8, _a)) : h("", !0),
747
- e.value.style.chart.arcs.labels.curved ? (r(), i("defs", Pa, [
765
+ ], 8, Da)) : h("", !0),
766
+ e.value.style.chart.arcs.labels.curved ? (r(), i("defs", Ea, [
748
767
  (r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("path", {
749
768
  key: `labelPath-${l}`,
750
- id: `labelPath-${l}_${k.value}`,
751
- d: Nt(
769
+ id: `labelPath-${l}_${$.value}`,
770
+ d: Rt(
752
771
  a.startAngle,
753
772
  a.endAngle,
754
773
  (b.value.inner + b.value.outer) / 2 + e.value.style.chart.arcs.labels.offset
755
774
  ),
756
775
  fill: "none"
757
- }, null, 8, Ta))), 128))
776
+ }, null, 8, Na))), 128))
758
777
  ])) : h("", !0),
759
- t.$slots.pattern ? (r(), i("g", Ba, [
778
+ t.$slots.pattern ? (r(), i("g", Ra, [
760
779
  (r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("defs", null, [
761
- w(t.$slots, "pattern", vt({ ref_for: !0 }, { seriesIndex: a.index, patternId: `pattern_${k.value}_${l}` }), void 0, !0)
780
+ w(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: a.index, patternId: `pattern_${$.value}_${l}` }), void 0, !0)
762
781
  ]))), 256))
763
782
  ])) : h("", !0),
764
783
  I("g", {
@@ -768,28 +787,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
768
787
  (r(), i("path", {
769
788
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
770
789
  key: `arc-${l}`,
771
- d: Ge(
790
+ d: We(
772
791
  a.startAngle,
773
792
  a.endAngle,
774
793
  b.value.outer,
775
794
  b.value.inner
776
795
  ),
777
- fill: m.value.colors[l],
796
+ fill: y.value.colors[l],
778
797
  stroke: e.value.style.chart.arcs.stroke,
779
798
  "stroke-width": e.value.style.chart.arcs.strokeWidth,
780
799
  "stroke-linecap": "round",
781
800
  "stroke-linejoin": "round",
782
801
  style: R({
783
- opacity: tt(a)
802
+ opacity: at(a)
784
803
  }),
785
- onMouseenter: (s) => Rt(a, l),
786
- onMouseleave: (s) => Ft(a, l),
787
- onClick: (s) => zt(a, l)
788
- }, null, 46, Oa)),
804
+ onMouseenter: (s) => Ft(a, l),
805
+ onMouseleave: (s) => zt(a, l),
806
+ onClick: (s) => Ut(a, l)
807
+ }, null, 46, za)),
789
808
  t.$slots.pattern ? (r(), i("path", {
790
809
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
791
810
  key: `arc-${l}`,
792
- d: Ge(
811
+ d: We(
793
812
  a.startAngle,
794
813
  a.endAngle,
795
814
  b.value.outer,
@@ -801,10 +820,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
801
820
  "stroke-linecap": "round",
802
821
  "stroke-linejoin": "round",
803
822
  style: R({
804
- opacity: tt(a),
823
+ opacity: at(a),
805
824
  pointerEvents: "none"
806
825
  })
807
- }, null, 14, La)) : h("", !0)
826
+ }, null, 14, Ua)) : h("", !0)
808
827
  ]))), 256)),
809
828
  I("g", null, [
810
829
  (r(!0), i(z, null, H(C.value ? A.value.chords.filter((a) => a.source.groupId === C.value.id) : g.value ? A.value.chords.filter((a) => a.source.groupId === g.value) : A.value.chords, (a, l) => (r(), i(z, {
@@ -816,50 +835,50 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
816
835
  d: se(a.source, a.target),
817
836
  fill: e.value.style.chart.backgroundColor,
818
837
  style: R({ opacity: e.value.style.chart.ribbons.underlayerOpacity })
819
- }, null, 14, Da)) : h("", !0),
838
+ }, null, 14, Xa)) : h("", !0),
820
839
  a.source.value ? (r(), i("path", {
821
840
  key: 1,
822
841
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
823
842
  d: se(a.source, a.target),
824
- fill: m.value.colors[a.source.index],
843
+ fill: y.value.colors[a.source.index],
825
844
  stroke: e.value.style.chart.ribbons.stroke,
826
845
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
827
846
  "stroke-linecap": "round",
828
847
  "stroke-linejoin": "round",
829
- style: R({ opacity: et(a) }),
830
- onMouseenter: (s) => Ut({
848
+ style: R({ opacity: tt(a) }),
849
+ onMouseenter: (s) => Xt({
831
850
  ...a,
832
851
  path: se(a.source, a.target),
833
- color: m.value.colors[a.source.index]
852
+ color: y.value.colors[a.source.index]
834
853
  }, l),
835
- onClick: (s) => Vt({
854
+ onClick: (s) => jt({
836
855
  ...a,
837
- color: m.value.colors[a.source.index]
856
+ color: y.value.colors[a.source.index]
838
857
  }, l),
839
- onMouseleave: (s) => Xt({
858
+ onMouseleave: (s) => Vt({
840
859
  ...a,
841
- color: m.value.colors[a.source.index]
860
+ color: y.value.colors[a.source.index]
842
861
  }, l)
843
- }, null, 46, Ea)) : h("", !0),
862
+ }, null, 46, Va)) : h("", !0),
844
863
  a.source.value && t.$slots.pattern ? (r(), i("path", {
845
864
  key: 2,
846
865
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
847
866
  d: se(a.source, a.target),
848
- fill: `url(#pattern_${k.value}_${a.source.index})`,
867
+ fill: `url(#pattern_${$.value}_${a.source.index})`,
849
868
  stroke: e.value.style.chart.ribbons.stroke,
850
869
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
851
870
  "stroke-linecap": "round",
852
871
  "stroke-linejoin": "round",
853
872
  style: R({
854
- opacity: et(a),
873
+ opacity: tt(a),
855
874
  pointerEvents: "none"
856
875
  })
857
- }, null, 14, Na)) : h("", !0)
876
+ }, null, 14, ja)) : h("", !0)
858
877
  ], 64))), 128)),
859
- p.value ? (r(), i("path", {
878
+ m.value ? (r(), i("path", {
860
879
  key: 0,
861
- d: p.value.path,
862
- fill: p.value.color,
880
+ d: m.value.path,
881
+ fill: m.value.color,
863
882
  stroke: e.value.style.chart.ribbons.stroke,
864
883
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
865
884
  "stroke-linecap": "round",
@@ -868,11 +887,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
868
887
  style: {
869
888
  pointerEvents: "none"
870
889
  }
871
- }, null, 8, Ra)) : h("", !0),
872
- p.value && t.$slots.pattern ? (r(), i("path", {
890
+ }, null, 8, Ga)) : h("", !0),
891
+ m.value && t.$slots.pattern ? (r(), i("path", {
873
892
  key: 1,
874
- d: p.value.path,
875
- fill: `url(#${p.value.source.pattern})`,
893
+ d: m.value.path,
894
+ fill: `url(#${m.value.source.pattern})`,
876
895
  stroke: e.value.style.chart.ribbons.stroke,
877
896
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
878
897
  "stroke-linecap": "round",
@@ -881,10 +900,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
881
900
  style: {
882
901
  pointerEvents: "none"
883
902
  }
884
- }, null, 8, Fa)) : h("", !0)
903
+ }, null, 8, Ya)) : h("", !0)
885
904
  ]),
886
- (C.value || p.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", za, [
887
- (r(!0), i(z, null, H(St.value, (a) => (r(), i(z, {
905
+ (C.value || m.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", Wa, [
906
+ (r(!0), i(z, null, H(Ot.value, (a) => (r(), i(z, {
888
907
  key: a.id
889
908
  }, [
890
909
  I("line", {
@@ -895,7 +914,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
895
914
  stroke: e.value.style.chart.backgroundColor,
896
915
  "stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
897
916
  "pointer-events": "none"
898
- }, null, 8, Ua),
917
+ }, null, 8, Ha),
899
918
  I("line", {
900
919
  x1: a.midBaseX,
901
920
  y1: a.midBaseY,
@@ -904,7 +923,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
904
923
  stroke: e.value.style.chart.ribbons.labels.connector.stroke,
905
924
  "stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth,
906
925
  "pointer-events": "none"
907
- }, null, 8, Xa),
926
+ }, null, 8, qa),
908
927
  e.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
909
928
  key: 0,
910
929
  cx: Math.cos(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 12),
@@ -914,7 +933,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
914
933
  "stroke-width": e.value.style.chart.ribbons.labels.marker.strokeWidth,
915
934
  fill: a.groupColor,
916
935
  "pointer-events": "none"
917
- }, null, 8, Va)) : h("", !0),
936
+ }, null, 8, Qa)) : h("", !0),
918
937
  I("text", {
919
938
  transform: `
920
939
  translate(
@@ -923,113 +942,113 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
923
942
  ) rotate(${-_.value})
924
943
  `,
925
944
  fill: e.value.style.chart.ribbons.labels.useSerieColor ? a.groupColor : e.value.style.chart.ribbons.labels.color,
926
- "text-anchor": Dt(a.theta),
945
+ "text-anchor": Et(a.theta),
927
946
  "font-size": e.value.style.chart.ribbons.labels.fontSize,
928
947
  "font-weight": e.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
929
948
  dy: ".35em",
930
949
  "pointer-events": "none"
931
- }, q(Je(a.value)), 9, ja)
950
+ }, q(Ke(a.value)), 9, Za)
932
951
  ], 64))), 128))
933
952
  ])) : h("", !0),
934
- e.value.style.chart.arcs.labels.show ? (r(), i("g", Ya, [
953
+ e.value.style.chart.arcs.labels.show ? (r(), i("g", Ja, [
935
954
  e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, H(A.value.groups, (a, l) => (r(), i("text", {
936
955
  class: "vue-ui-chord-label-curved",
937
956
  key: `curved-label-${l}`,
938
957
  "font-size": e.value.style.chart.arcs.labels.fontSize,
939
958
  "font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
940
- fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(na)(m.value.colors[l]) : e.value.style.chart.arcs.labels.color
959
+ fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(va)(y.value.colors[l]) : e.value.style.chart.arcs.labels.color
941
960
  }, [
942
961
  I("textPath", {
943
- href: `#labelPath-${l}_${k.value}`,
962
+ href: `#labelPath-${l}_${$.value}`,
944
963
  startOffset: "50%",
945
964
  "text-anchor": "middle"
946
- }, q(m.value.labels[l]) + q(e.value.style.chart.arcs.labels.showPercentage ? d(_e)({
965
+ }, q(y.value.labels[l]) + q(e.value.style.chart.arcs.labels.showPercentage ? d(Pe)({
947
966
  p: " (",
948
967
  v: isNaN(a.proportion) ? 0 : a.proportion * 100,
949
968
  s: "%)",
950
969
  r: e.value.style.chart.arcs.labels.roundingPercentage
951
- }) : ""), 9, Wa)
952
- ], 8, Ga))), 128)) : !C.value && !p.value && !g.value ? (r(!0), i(z, { key: 1 }, H(A.value.groups, (a, l) => (r(), i("text", {
970
+ }) : ""), 9, eo)
971
+ ], 8, Ka))), 128)) : !C.value && !m.value && !g.value ? (r(!0), i(z, { key: 1 }, H(A.value.groups, (a, l) => (r(), i("text", {
953
972
  class: "vue-ui-chord-label-straight",
954
973
  key: `label-${l}`,
955
974
  transform: `
956
- ${Et((a.startAngle + a.endAngle) / 2)}
975
+ ${Nt((a.startAngle + a.endAngle) / 2)}
957
976
  rotate(${-_.value})
958
977
  `,
959
978
  dy: ".35em",
960
- "text-anchor": Lt(a) > Math.PI ? "end" : "start",
979
+ "text-anchor": Dt(a) > Math.PI ? "end" : "start",
961
980
  "font-size": e.value.style.chart.arcs.labels.fontSize,
962
981
  "font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
963
982
  fill: e.value.style.chart.arcs.labels.color,
964
- innerHTML: d(sa)({
965
- content: d(ra)(Wt(a, l)),
983
+ innerHTML: d(da)({
984
+ content: d(ha)(Ht(a, l)),
966
985
  fontSize: e.value.style.chart.arcs.labels.fontSize,
967
986
  fill: e.value.style.chart.arcs.labels.color,
968
987
  x: 0,
969
988
  y: 0
970
989
  })
971
- }, null, 8, Ha))), 128)) : h("", !0)
990
+ }, null, 8, to))), 128)) : h("", !0)
972
991
  ])) : h("", !0)
973
- ], 8, Sa),
992
+ ], 8, Fa),
974
993
  w(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
975
- ], 42, Ia)),
976
- t.$slots.watermark ? (r(), i("div", qa, [
977
- w(t.$slots, "watermark", de(he({ isPrinting: d(Fe) || d(ze) })), void 0, !0)
994
+ ], 42, La)),
995
+ t.$slots.watermark ? (r(), i("div", ao, [
996
+ w(t.$slots, "watermark", de(he({ isPrinting: d(ze) || d(Ue) })), void 0, !0)
978
997
  ])) : h("", !0),
979
998
  I("div", {
980
- id: `legend-bottom-${k.value}`
981
- }, null, 8, Qa),
982
- De.value ? (r(), V(Qt, {
999
+ id: `legend-bottom-${$.value}`
1000
+ }, null, 8, oo),
1001
+ Ee.value ? (r(), V(aa, {
983
1002
  key: 5,
984
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1003
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
985
1004
  }, [
986
1005
  I("div", {
987
1006
  ref_key: "chartLegend",
988
- ref: Se
1007
+ ref: Oe
989
1008
  }, [
990
- e.value.style.chart.legend.show ? (r(), V(Ca, {
1009
+ e.value.style.chart.legend.show ? (r(), V(Sa, {
991
1010
  key: `legend_${me.value}`,
992
- legendSet: nt.value,
1011
+ legendSet: Me.value,
993
1012
  config: Yt.value,
994
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => lt(a.id))
995
- }, Ae({
1013
+ onClickMarker: o[0] || (o[0] = ({ legend: a }) => nt(a.id))
1014
+ }, Ie({
996
1015
  item: x(({ legend: a }) => [
997
1016
  I("div", {
998
1017
  style: R({
999
1018
  opacity: g.value ? g.value === a.id ? 1 : 0.3 : 1
1000
1019
  }),
1001
1020
  onClick: (l) => a.select()
1002
- }, q(a.name), 13, Za)
1021
+ }, q(a.name), 13, lo)
1003
1022
  ]),
1004
1023
  _: 2
1005
1024
  }, [
1006
1025
  t.$slots.pattern ? {
1007
1026
  name: "legend-pattern",
1008
1027
  fn: x(({ legend: a, index: l }) => [
1009
- fe(ka, {
1028
+ fe(Ia, {
1010
1029
  shape: a.shape,
1011
1030
  radius: 30,
1012
1031
  stroke: "none",
1013
1032
  plot: { x: 30, y: 30 },
1014
- fill: `url(#pattern_${k.value}_${l})`
1033
+ fill: `url(#pattern_${$.value}_${l})`
1015
1034
  }, null, 8, ["shape", "fill"])
1016
1035
  ]),
1017
1036
  key: "0"
1018
1037
  } : void 0
1019
1038
  ]), 1032, ["legendSet", "config"])) : h("", !0),
1020
- w(t.$slots, "legend", { legend: nt.value }, void 0, !0)
1039
+ w(t.$slots, "legend", { legend: Me.value }, void 0, !0)
1021
1040
  ], 512)
1022
1041
  ], 8, ["to"])) : h("", !0),
1023
1042
  t.$slots.source ? (r(), i("div", {
1024
1043
  key: 6,
1025
1044
  ref_key: "source",
1026
- ref: Oe,
1045
+ ref: Le,
1027
1046
  dir: "auto"
1028
1047
  }, [
1029
1048
  w(t.$slots, "source", {}, void 0, !0)
1030
1049
  ], 512)) : h("", !0),
1031
- _.value !== e.value.initialRotation ? (r(), i("div", Ja, [
1032
- w(t.$slots, "reset-action", { reset: ot }, () => [
1050
+ _.value !== e.value.initialRotation ? (r(), i("div", no, [
1051
+ w(t.$slots, "reset-action", { reset: lt }, () => [
1033
1052
  I("button", {
1034
1053
  "data-cy-reset": "",
1035
1054
  tabindex: "0",
@@ -1038,22 +1057,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1038
1057
  style: R({
1039
1058
  background: e.value.style.chart.backgroundColor
1040
1059
  }),
1041
- onClick: ot
1060
+ onClick: lt
1042
1061
  }, [
1043
- fe(d(Pe), {
1062
+ fe(d(Se), {
1044
1063
  name: "refresh",
1045
1064
  stroke: e.value.style.chart.color
1046
1065
  }, null, 8, ["stroke"])
1047
1066
  ], 4)
1048
1067
  ], !0)
1049
1068
  ])) : h("", !0),
1050
- E.value && e.value.userOptions.buttons.table ? (r(), V(Zt(oe.value.component), vt({ key: 8 }, oe.value.props, {
1069
+ E.value && e.value.userOptions.buttons.table ? (r(), V(oa(oe.value.component), dt({ key: 8 }, oe.value.props, {
1051
1070
  ref_key: "tableUnit",
1052
- ref: J,
1071
+ ref: K,
1053
1072
  onClose: st
1054
- }), Ae({
1073
+ }), Ie({
1055
1074
  content: x(() => [
1056
- (r(), V(d(kt), {
1075
+ (r(), V(d($t), {
1057
1076
  key: `table_${pe.value}`,
1058
1077
  colNames: ve.value.colNames,
1059
1078
  head: ve.value.head,
@@ -1064,10 +1083,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1064
1083
  onClose: st
1065
1084
  }, {
1066
1085
  th: x(({ th: a }) => [
1067
- dt(q(a.name), 1)
1086
+ ht(q(a.name), 1)
1068
1087
  ]),
1069
1088
  td: x(({ td: a }) => [
1070
- I("div", Ka, q(a.name ? a.name : Je(a)), 1)
1089
+ I("div", so, q(a.name ? a.name : Ke(a)), 1)
1071
1090
  ]),
1072
1091
  _: 1
1073
1092
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1077,7 +1096,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1077
1096
  e.value.table.useDialog ? {
1078
1097
  name: "title",
1079
1098
  fn: x(() => [
1080
- dt(q(oe.value.title), 1)
1099
+ ht(q(oe.value.title), 1)
1081
1100
  ]),
1082
1101
  key: "0"
1083
1102
  } : void 0,
@@ -1087,9 +1106,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1087
1106
  I("button", {
1088
1107
  tabindex: "0",
1089
1108
  class: "vue-ui-user-options-button",
1090
- onClick: o[1] || (o[1] = (a) => Me(e.value.userOptions.callbacks.csv))
1109
+ onClick: o[1] || (o[1] = (a) => xe(e.value.userOptions.callbacks.csv))
1091
1110
  }, [
1092
- fe(d(Pe), {
1111
+ fe(d(Se), {
1093
1112
  name: "excel",
1094
1113
  stroke: oe.value.props.color
1095
1114
  }, null, 8, ["stroke"])
@@ -1098,10 +1117,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1098
1117
  key: "1"
1099
1118
  } : void 0
1100
1119
  ]), 1040)) : h("", !0),
1101
- d(Ee) ? (r(), V(ga, { key: 9 })) : h("", !0)
1102
- ], 46, xa));
1120
+ d(Ne) ? (r(), V($a, { key: 9 })) : h("", !0)
1121
+ ], 46, Ba));
1103
1122
  }
1104
- }, bo = /* @__PURE__ */ Ma(eo, [["__scopeId", "data-v-8fbd9d0d"]]);
1123
+ }, Mo = /* @__PURE__ */ Ta(ro, [["__scopeId", "data-v-84d34aa4"]]);
1105
1124
  export {
1106
- bo as default
1125
+ Mo as default
1107
1126
  };