vue-data-ui 3.2.8 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.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-DxyZSvDx.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
  84. package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.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-CovTrBjm.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
  90. package/dist/useSvgExport-DrjCWun4.js +750 -0
  91. package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
  106. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
  107. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
  109. package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
  119. package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
  146. package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.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-CEjkWSLj.js";
3
+ import { t as pa, u as ma } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ya, a as bt } from "./useNestedProp-Ce3PwN8T.js";
5
+ import { u as ka, B as $a } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as wa } from "./usePrinter-DJ1iH-F_.js";
7
+ import { u as Ca } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Ma } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as xa } from "./useChartAccessibility-9icAAmYg.js";
10
+ import Aa from "./img-J2dLIr8Y.js";
11
+ import { _ as Ia } from "./Shape-BceHSLHf.js";
12
+ import _a from "./Title-Camz1Lce.js";
13
+ import { t as Pa } from "./themes-Dw-dDudK.js";
14
+ import Sa from "./Legend-By4rru90.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
- fdd13ee4: 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-CDIzGCG1.js")), Pe = W(() => import("./BaseIcon-Bz-1GQhu.js")), kt = W(() => import("./DataTable-BvjacRbw.js")), $t = W(() => import("./PackageVersion-C40g0Rfc.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-VTP418mC.js")), Se = W(() => import("./BaseIcon-eZbszQrv.js")), $t = W(() => import("./DataTable-yAMEyP6y.js")), wt = W(() => import("./PackageVersion-BfykJm_B.js")), Ct = W(() => import("./PenAndPaper-Bo-lMUik.js")), Mt = W(() => import("./UserOptions-CSja1SGU.js")), xt = W(() => import("./BaseDraggableDialog-CVGErydD.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,21 +567,36 @@ 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,
@@ -591,23 +607,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
591
607
  "vue-data-ui-responsive": e.value.responsive
592
608
  }),
593
609
  style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
594
- id: `chord_${k.value}`,
595
- onMouseenter: o[2] || (o[2] = () => d(Ne)(!0)),
596
- 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))
597
613
  }, [
598
- e.value.userOptions.buttons.annotator && d(ee) ? (r(), V(d(wt), {
614
+ e.value.userOptions.buttons.annotator && d(J) ? (r(), V(d(Ct), {
599
615
  key: 0,
600
616
  color: e.value.style.chart.color,
601
617
  backgroundColor: e.value.style.chart.backgroundColor,
602
618
  active: ae.value,
603
- svgRef: d(ee),
619
+ svgRef: d(J),
604
620
  onClose: Ce
605
621
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
606
622
  w(t.$slots, "userConfig", {}, void 0, !0),
607
- It.value ? (r(), i("div", {
623
+ _t.value ? (r(), i("div", {
608
624
  key: 1,
609
625
  ref_key: "noTitle",
610
- ref: Le,
626
+ ref: De,
611
627
  class: "vue-data-ui-no-title-space",
612
628
  style: "height:36px; width: 100%;background:transparent"
613
629
  }, null, 512)) : h("", !0),
@@ -617,7 +633,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
617
633
  ref: Be,
618
634
  style: "width:100%;background:transparent;padding-bottom:24px"
619
635
  }, [
620
- (r(), V($a, {
636
+ (r(), V(_a, {
621
637
  key: `title_${be.value}`,
622
638
  config: {
623
639
  title: {
@@ -632,20 +648,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
632
648
  }, null, 8, ["config"]))
633
649
  ], 512)) : h("", !0),
634
650
  I("div", {
635
- id: `legend-top-${k.value}`
636
- }, null, 8, Aa),
637
- 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), {
638
654
  ref_key: "userOptionsRef",
639
655
  ref: ye,
640
656
  key: `user_option_${Te.value}`,
641
657
  backgroundColor: e.value.style.chart.backgroundColor,
642
658
  color: e.value.style.chart.color,
643
- isPrinting: d(Fe),
644
- isImaging: d(ze),
645
- uid: k.value,
659
+ isPrinting: d(ze),
660
+ isImaging: d(Ue),
661
+ uid: $.value,
646
662
  hasTooltip: !1,
647
663
  hasPdf: e.value.userOptions.buttons.pdf,
648
664
  hasImg: e.value.userOptions.buttons.img,
665
+ hasSvg: e.value.userOptions.buttons.svg,
649
666
  hasXls: e.value.userOptions.buttons.csv,
650
667
  hasTable: e.value.userOptions.buttons.table,
651
668
  hasLabel: !1,
@@ -659,16 +676,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
659
676
  callbacks: e.value.userOptions.callbacks,
660
677
  printScale: e.value.userOptions.print.scale,
661
678
  tableDialog: e.value.table.useDialog,
662
- onToggleFullscreen: Ke,
663
- onGeneratePdf: d(Ue),
664
- onGenerateCsv: Me,
665
- onGenerateImage: d(Xe),
666
- onToggleTable: at,
679
+ onToggleFullscreen: et,
680
+ onGeneratePdf: d(Xe),
681
+ onGenerateCsv: xe,
682
+ onGenerateImage: d(Ve),
683
+ onGenerateSvg: rt,
684
+ onToggleTable: ot,
667
685
  onToggleAnnotator: Ce,
668
686
  style: R({
669
- visibility: d(Re) ? d(ke) ? "visible" : "hidden" : "visible"
687
+ visibility: d(Fe) ? d(ke) ? "visible" : "hidden" : "visible"
670
688
  })
671
- }, Ae({ _: 2 }, [
689
+ }, Ie({ _: 2 }, [
672
690
  t.$slots.menuIcon ? {
673
691
  name: "menuIcon",
674
692
  fn: x(({ isOpen: a, color: l }) => [
@@ -718,21 +736,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
718
736
  ]),
719
737
  key: "6"
720
738
  } : void 0
721
- ]), 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),
722
740
  (r(), i("svg", {
723
- xmlns: d(la),
741
+ xmlns: d(ca),
724
742
  ref_key: "svgRef",
725
- ref: ee,
743
+ ref: J,
726
744
  viewBox: `0 0 ${L.value.width} ${L.value.height}`,
727
745
  preserveAspectRatio: "xMidYMid meet",
728
746
  style: {
729
747
  overflow: "visible"
730
748
  },
731
749
  class: F({ "vue-ui-chord-rotating": te.value, "vue-ui-chord-idle": !te.value }),
732
- onMousedown: ct(Ze, ["prevent"]),
733
- onTouchstart: ct(Ze, ["prevent"])
750
+ onMousedown: vt(Je, ["prevent"]),
751
+ onTouchstart: vt(Je, ["prevent"])
734
752
  }, [
735
- fe(d($t)),
753
+ fe(d(wt)),
736
754
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
737
755
  key: 0,
738
756
  x: 0,
@@ -744,22 +762,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
744
762
  }
745
763
  }, [
746
764
  w(t.$slots, "chart-background", {}, void 0, !0)
747
- ], 8, _a)) : h("", !0),
748
- 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, [
749
767
  (r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("path", {
750
768
  key: `labelPath-${l}`,
751
- id: `labelPath-${l}_${k.value}`,
752
- d: Nt(
769
+ id: `labelPath-${l}_${$.value}`,
770
+ d: Rt(
753
771
  a.startAngle,
754
772
  a.endAngle,
755
773
  (b.value.inner + b.value.outer) / 2 + e.value.style.chart.arcs.labels.offset
756
774
  ),
757
775
  fill: "none"
758
- }, null, 8, Ta))), 128))
776
+ }, null, 8, Na))), 128))
759
777
  ])) : h("", !0),
760
- t.$slots.pattern ? (r(), i("g", Ba, [
778
+ t.$slots.pattern ? (r(), i("g", Ra, [
761
779
  (r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("defs", null, [
762
- 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)
763
781
  ]))), 256))
764
782
  ])) : h("", !0),
765
783
  I("g", {
@@ -769,28 +787,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
769
787
  (r(), i("path", {
770
788
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
771
789
  key: `arc-${l}`,
772
- d: Ge(
790
+ d: We(
773
791
  a.startAngle,
774
792
  a.endAngle,
775
793
  b.value.outer,
776
794
  b.value.inner
777
795
  ),
778
- fill: m.value.colors[l],
796
+ fill: y.value.colors[l],
779
797
  stroke: e.value.style.chart.arcs.stroke,
780
798
  "stroke-width": e.value.style.chart.arcs.strokeWidth,
781
799
  "stroke-linecap": "round",
782
800
  "stroke-linejoin": "round",
783
801
  style: R({
784
- opacity: tt(a)
802
+ opacity: at(a)
785
803
  }),
786
- onMouseenter: (s) => Rt(a, l),
787
- onMouseleave: (s) => Ft(a, l),
788
- onClick: (s) => zt(a, l)
789
- }, 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)),
790
808
  t.$slots.pattern ? (r(), i("path", {
791
809
  class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
792
810
  key: `arc-${l}`,
793
- d: Ge(
811
+ d: We(
794
812
  a.startAngle,
795
813
  a.endAngle,
796
814
  b.value.outer,
@@ -802,10 +820,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
802
820
  "stroke-linecap": "round",
803
821
  "stroke-linejoin": "round",
804
822
  style: R({
805
- opacity: tt(a),
823
+ opacity: at(a),
806
824
  pointerEvents: "none"
807
825
  })
808
- }, null, 14, La)) : h("", !0)
826
+ }, null, 14, Ua)) : h("", !0)
809
827
  ]))), 256)),
810
828
  I("g", null, [
811
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, {
@@ -817,50 +835,50 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
817
835
  d: se(a.source, a.target),
818
836
  fill: e.value.style.chart.backgroundColor,
819
837
  style: R({ opacity: e.value.style.chart.ribbons.underlayerOpacity })
820
- }, null, 14, Da)) : h("", !0),
838
+ }, null, 14, Xa)) : h("", !0),
821
839
  a.source.value ? (r(), i("path", {
822
840
  key: 1,
823
841
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
824
842
  d: se(a.source, a.target),
825
- fill: m.value.colors[a.source.index],
843
+ fill: y.value.colors[a.source.index],
826
844
  stroke: e.value.style.chart.ribbons.stroke,
827
845
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
828
846
  "stroke-linecap": "round",
829
847
  "stroke-linejoin": "round",
830
- style: R({ opacity: et(a) }),
831
- onMouseenter: (s) => Ut({
848
+ style: R({ opacity: tt(a) }),
849
+ onMouseenter: (s) => Xt({
832
850
  ...a,
833
851
  path: se(a.source, a.target),
834
- color: m.value.colors[a.source.index]
852
+ color: y.value.colors[a.source.index]
835
853
  }, l),
836
- onClick: (s) => Vt({
854
+ onClick: (s) => jt({
837
855
  ...a,
838
- color: m.value.colors[a.source.index]
856
+ color: y.value.colors[a.source.index]
839
857
  }, l),
840
- onMouseleave: (s) => Xt({
858
+ onMouseleave: (s) => Vt({
841
859
  ...a,
842
- color: m.value.colors[a.source.index]
860
+ color: y.value.colors[a.source.index]
843
861
  }, l)
844
- }, null, 46, Ea)) : h("", !0),
862
+ }, null, 46, Va)) : h("", !0),
845
863
  a.source.value && t.$slots.pattern ? (r(), i("path", {
846
864
  key: 2,
847
865
  class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
848
866
  d: se(a.source, a.target),
849
- fill: `url(#pattern_${k.value}_${a.source.index})`,
867
+ fill: `url(#pattern_${$.value}_${a.source.index})`,
850
868
  stroke: e.value.style.chart.ribbons.stroke,
851
869
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
852
870
  "stroke-linecap": "round",
853
871
  "stroke-linejoin": "round",
854
872
  style: R({
855
- opacity: et(a),
873
+ opacity: tt(a),
856
874
  pointerEvents: "none"
857
875
  })
858
- }, null, 14, Na)) : h("", !0)
876
+ }, null, 14, ja)) : h("", !0)
859
877
  ], 64))), 128)),
860
- p.value ? (r(), i("path", {
878
+ m.value ? (r(), i("path", {
861
879
  key: 0,
862
- d: p.value.path,
863
- fill: p.value.color,
880
+ d: m.value.path,
881
+ fill: m.value.color,
864
882
  stroke: e.value.style.chart.ribbons.stroke,
865
883
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
866
884
  "stroke-linecap": "round",
@@ -869,11 +887,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
869
887
  style: {
870
888
  pointerEvents: "none"
871
889
  }
872
- }, null, 8, Ra)) : h("", !0),
873
- p.value && t.$slots.pattern ? (r(), i("path", {
890
+ }, null, 8, Ga)) : h("", !0),
891
+ m.value && t.$slots.pattern ? (r(), i("path", {
874
892
  key: 1,
875
- d: p.value.path,
876
- fill: `url(#${p.value.source.pattern})`,
893
+ d: m.value.path,
894
+ fill: `url(#${m.value.source.pattern})`,
877
895
  stroke: e.value.style.chart.ribbons.stroke,
878
896
  "stroke-width": e.value.style.chart.ribbons.strokeWidth,
879
897
  "stroke-linecap": "round",
@@ -882,10 +900,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
882
900
  style: {
883
901
  pointerEvents: "none"
884
902
  }
885
- }, null, 8, Fa)) : h("", !0)
903
+ }, null, 8, Ya)) : h("", !0)
886
904
  ]),
887
- (C.value || p.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", za, [
888
- (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, {
889
907
  key: a.id
890
908
  }, [
891
909
  I("line", {
@@ -896,7 +914,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
896
914
  stroke: e.value.style.chart.backgroundColor,
897
915
  "stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
898
916
  "pointer-events": "none"
899
- }, null, 8, Ua),
917
+ }, null, 8, Ha),
900
918
  I("line", {
901
919
  x1: a.midBaseX,
902
920
  y1: a.midBaseY,
@@ -905,7 +923,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
905
923
  stroke: e.value.style.chart.ribbons.labels.connector.stroke,
906
924
  "stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth,
907
925
  "pointer-events": "none"
908
- }, null, 8, Xa),
926
+ }, null, 8, qa),
909
927
  e.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
910
928
  key: 0,
911
929
  cx: Math.cos(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 12),
@@ -915,7 +933,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
915
933
  "stroke-width": e.value.style.chart.ribbons.labels.marker.strokeWidth,
916
934
  fill: a.groupColor,
917
935
  "pointer-events": "none"
918
- }, null, 8, Va)) : h("", !0),
936
+ }, null, 8, Qa)) : h("", !0),
919
937
  I("text", {
920
938
  transform: `
921
939
  translate(
@@ -924,113 +942,113 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
924
942
  ) rotate(${-_.value})
925
943
  `,
926
944
  fill: e.value.style.chart.ribbons.labels.useSerieColor ? a.groupColor : e.value.style.chart.ribbons.labels.color,
927
- "text-anchor": Dt(a.theta),
945
+ "text-anchor": Et(a.theta),
928
946
  "font-size": e.value.style.chart.ribbons.labels.fontSize,
929
947
  "font-weight": e.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
930
948
  dy: ".35em",
931
949
  "pointer-events": "none"
932
- }, q(Je(a.value)), 9, ja)
950
+ }, q(Ke(a.value)), 9, Za)
933
951
  ], 64))), 128))
934
952
  ])) : h("", !0),
935
- e.value.style.chart.arcs.labels.show ? (r(), i("g", Ya, [
953
+ e.value.style.chart.arcs.labels.show ? (r(), i("g", Ja, [
936
954
  e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, H(A.value.groups, (a, l) => (r(), i("text", {
937
955
  class: "vue-ui-chord-label-curved",
938
956
  key: `curved-label-${l}`,
939
957
  "font-size": e.value.style.chart.arcs.labels.fontSize,
940
958
  "font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
941
- 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
942
960
  }, [
943
961
  I("textPath", {
944
- href: `#labelPath-${l}_${k.value}`,
962
+ href: `#labelPath-${l}_${$.value}`,
945
963
  startOffset: "50%",
946
964
  "text-anchor": "middle"
947
- }, 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)({
948
966
  p: " (",
949
967
  v: isNaN(a.proportion) ? 0 : a.proportion * 100,
950
968
  s: "%)",
951
969
  r: e.value.style.chart.arcs.labels.roundingPercentage
952
- }) : ""), 9, Wa)
953
- ], 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", {
954
972
  class: "vue-ui-chord-label-straight",
955
973
  key: `label-${l}`,
956
974
  transform: `
957
- ${Et((a.startAngle + a.endAngle) / 2)}
975
+ ${Nt((a.startAngle + a.endAngle) / 2)}
958
976
  rotate(${-_.value})
959
977
  `,
960
978
  dy: ".35em",
961
- "text-anchor": Lt(a) > Math.PI ? "end" : "start",
979
+ "text-anchor": Dt(a) > Math.PI ? "end" : "start",
962
980
  "font-size": e.value.style.chart.arcs.labels.fontSize,
963
981
  "font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
964
982
  fill: e.value.style.chart.arcs.labels.color,
965
- innerHTML: d(sa)({
966
- content: d(ra)(Wt(a, l)),
983
+ innerHTML: d(da)({
984
+ content: d(ha)(Ht(a, l)),
967
985
  fontSize: e.value.style.chart.arcs.labels.fontSize,
968
986
  fill: e.value.style.chart.arcs.labels.color,
969
987
  x: 0,
970
988
  y: 0
971
989
  })
972
- }, null, 8, Ha))), 128)) : h("", !0)
990
+ }, null, 8, to))), 128)) : h("", !0)
973
991
  ])) : h("", !0)
974
- ], 8, Sa),
992
+ ], 8, Fa),
975
993
  w(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
976
- ], 42, Ia)),
977
- t.$slots.watermark ? (r(), i("div", qa, [
978
- 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)
979
997
  ])) : h("", !0),
980
998
  I("div", {
981
- id: `legend-bottom-${k.value}`
982
- }, null, 8, Qa),
983
- De.value ? (r(), V(Qt, {
999
+ id: `legend-bottom-${$.value}`
1000
+ }, null, 8, oo),
1001
+ Ee.value ? (r(), V(aa, {
984
1002
  key: 5,
985
- 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}`
986
1004
  }, [
987
1005
  I("div", {
988
1006
  ref_key: "chartLegend",
989
- ref: Se
1007
+ ref: Oe
990
1008
  }, [
991
- e.value.style.chart.legend.show ? (r(), V(Ca, {
1009
+ e.value.style.chart.legend.show ? (r(), V(Sa, {
992
1010
  key: `legend_${me.value}`,
993
- legendSet: nt.value,
1011
+ legendSet: Me.value,
994
1012
  config: Yt.value,
995
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => lt(a.id))
996
- }, Ae({
1013
+ onClickMarker: o[0] || (o[0] = ({ legend: a }) => nt(a.id))
1014
+ }, Ie({
997
1015
  item: x(({ legend: a }) => [
998
1016
  I("div", {
999
1017
  style: R({
1000
1018
  opacity: g.value ? g.value === a.id ? 1 : 0.3 : 1
1001
1019
  }),
1002
1020
  onClick: (l) => a.select()
1003
- }, q(a.name), 13, Za)
1021
+ }, q(a.name), 13, lo)
1004
1022
  ]),
1005
1023
  _: 2
1006
1024
  }, [
1007
1025
  t.$slots.pattern ? {
1008
1026
  name: "legend-pattern",
1009
1027
  fn: x(({ legend: a, index: l }) => [
1010
- fe(ka, {
1028
+ fe(Ia, {
1011
1029
  shape: a.shape,
1012
1030
  radius: 30,
1013
1031
  stroke: "none",
1014
1032
  plot: { x: 30, y: 30 },
1015
- fill: `url(#pattern_${k.value}_${l})`
1033
+ fill: `url(#pattern_${$.value}_${l})`
1016
1034
  }, null, 8, ["shape", "fill"])
1017
1035
  ]),
1018
1036
  key: "0"
1019
1037
  } : void 0
1020
1038
  ]), 1032, ["legendSet", "config"])) : h("", !0),
1021
- w(t.$slots, "legend", { legend: nt.value }, void 0, !0)
1039
+ w(t.$slots, "legend", { legend: Me.value }, void 0, !0)
1022
1040
  ], 512)
1023
1041
  ], 8, ["to"])) : h("", !0),
1024
1042
  t.$slots.source ? (r(), i("div", {
1025
1043
  key: 6,
1026
1044
  ref_key: "source",
1027
- ref: Oe,
1045
+ ref: Le,
1028
1046
  dir: "auto"
1029
1047
  }, [
1030
1048
  w(t.$slots, "source", {}, void 0, !0)
1031
1049
  ], 512)) : h("", !0),
1032
- _.value !== e.value.initialRotation ? (r(), i("div", Ja, [
1033
- w(t.$slots, "reset-action", { reset: ot }, () => [
1050
+ _.value !== e.value.initialRotation ? (r(), i("div", no, [
1051
+ w(t.$slots, "reset-action", { reset: lt }, () => [
1034
1052
  I("button", {
1035
1053
  "data-cy-reset": "",
1036
1054
  tabindex: "0",
@@ -1039,22 +1057,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1039
1057
  style: R({
1040
1058
  background: e.value.style.chart.backgroundColor
1041
1059
  }),
1042
- onClick: ot
1060
+ onClick: lt
1043
1061
  }, [
1044
- fe(d(Pe), {
1062
+ fe(d(Se), {
1045
1063
  name: "refresh",
1046
1064
  stroke: e.value.style.chart.color
1047
1065
  }, null, 8, ["stroke"])
1048
1066
  ], 4)
1049
1067
  ], !0)
1050
1068
  ])) : h("", !0),
1051
- 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, {
1052
1070
  ref_key: "tableUnit",
1053
- ref: J,
1071
+ ref: K,
1054
1072
  onClose: st
1055
- }), Ae({
1073
+ }), Ie({
1056
1074
  content: x(() => [
1057
- (r(), V(d(kt), {
1075
+ (r(), V(d($t), {
1058
1076
  key: `table_${pe.value}`,
1059
1077
  colNames: ve.value.colNames,
1060
1078
  head: ve.value.head,
@@ -1065,10 +1083,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1065
1083
  onClose: st
1066
1084
  }, {
1067
1085
  th: x(({ th: a }) => [
1068
- dt(q(a.name), 1)
1086
+ ht(q(a.name), 1)
1069
1087
  ]),
1070
1088
  td: x(({ td: a }) => [
1071
- I("div", Ka, q(a.name ? a.name : Je(a)), 1)
1089
+ I("div", so, q(a.name ? a.name : Ke(a)), 1)
1072
1090
  ]),
1073
1091
  _: 1
1074
1092
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1078,7 +1096,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1078
1096
  e.value.table.useDialog ? {
1079
1097
  name: "title",
1080
1098
  fn: x(() => [
1081
- dt(q(oe.value.title), 1)
1099
+ ht(q(oe.value.title), 1)
1082
1100
  ]),
1083
1101
  key: "0"
1084
1102
  } : void 0,
@@ -1088,9 +1106,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1088
1106
  I("button", {
1089
1107
  tabindex: "0",
1090
1108
  class: "vue-ui-user-options-button",
1091
- 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))
1092
1110
  }, [
1093
- fe(d(Pe), {
1111
+ fe(d(Se), {
1094
1112
  name: "excel",
1095
1113
  stroke: oe.value.props.color
1096
1114
  }, null, 8, ["stroke"])
@@ -1099,10 +1117,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
1099
1117
  key: "1"
1100
1118
  } : void 0
1101
1119
  ]), 1040)) : h("", !0),
1102
- d(Ee) ? (r(), V(ga, { key: 9 })) : h("", !0)
1103
- ], 46, xa));
1120
+ d(Ne) ? (r(), V($a, { key: 9 })) : h("", !0)
1121
+ ], 46, Ba));
1104
1122
  }
1105
- }, bo = /* @__PURE__ */ Ma(eo, [["__scopeId", "data-v-d00f4c7e"]]);
1123
+ }, Mo = /* @__PURE__ */ Ta(ro, [["__scopeId", "data-v-84d34aa4"]]);
1106
1124
  export {
1107
- bo as default
1125
+ Mo as default
1108
1126
  };