vue-data-ui 2.4.40 → 2.4.42

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 (167) hide show
  1. package/dist/{Arrow-DkayNE_-.js → Arrow-DE71uBJZ.js} +1 -1
  2. package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-DTscDttD.cjs} +1 -1
  3. package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-C8XxmpRq.js} +1 -1
  4. package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
  5. package/dist/{DataTable-BB87HJ5b.cjs → DataTable-DEdQvqB1.cjs} +1 -1
  6. package/dist/{DataTable-BuiPd6c1.js → DataTable-D_w08xos.js} +2 -2
  7. package/dist/{Legend-BRVDmlwW.js → Legend-BWDoQii_.js} +1 -1
  8. package/dist/{Legend-D2Yi-COI.cjs → Legend-C4rlR-Ge.cjs} +1 -1
  9. package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-CH6MCx6T.js} +1 -1
  10. package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
  11. package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BWTR3U2d.js} +3 -3
  12. package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
  13. package/dist/{Shape-DVggzfpA.cjs → Shape-BLS-KzBD.cjs} +1 -1
  14. package/dist/{Shape-Dwxh0EWa.js → Shape-xrlfL_v4.js} +1 -1
  15. package/dist/Slicer-8gKX0l4Q.cjs +1 -0
  16. package/dist/Slicer-DIYseEL1.js +423 -0
  17. package/dist/{Title-RB80eFiD.cjs → Title-B-xkTfi8.cjs} +1 -1
  18. package/dist/{Title-BFvWnqI4.js → Title-Cnl9ySNH.js} +1 -1
  19. package/dist/Tooltip-Brbj6DqX.cjs +1 -0
  20. package/dist/{Tooltip-RHI1EGzy.js → Tooltip-DEAOBZ8h.js} +33 -25
  21. package/dist/index-B68kzBN9.cjs +9 -0
  22. package/dist/{index-DY8hDTi7.js → index-DnukYspq.js} +56 -43
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +13 -0
  25. package/dist/types/vue-data-ui.d.ts +13 -0
  26. package/dist/{useNestedProp-lhL30X68.js → useNestedProp-CVOQGx-X.js} +1 -1
  27. package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
  28. package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-C9yUesCc.cjs} +1 -1
  29. package/dist/{usePrinter-DjAQofRy.js → usePrinter-DVIALk5e.js} +1 -1
  30. package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-BmmjmNbb.js} +60 -60
  31. package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +3 -3
  34. package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-f9NTID9e.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
  40. package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-C82vEb7R.js} +1 -1
  41. package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
  43. package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
  44. package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
  45. package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
  46. package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
  48. package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
  54. package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-DtNvb8lM.js} +2 -2
  56. package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-C028OlzU.js} +99 -98
  57. package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
  59. package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
  62. package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-QRimZUXT.js} +46 -46
  63. package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CBymVSdd.js} +19 -19
  66. package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
  68. package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
  69. package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
  74. package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
  76. package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-CZi84tUl.js} +26 -25
  82. package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
  85. package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
  86. package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-CIRGvycb.js} +49 -48
  87. package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
  88. package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
  89. package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
  90. package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
  91. package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
  93. package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
  94. package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-CXXAYowO.js} +38 -37
  95. package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DOqMciYJ.js} +2 -2
  97. package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
  98. package/dist/vue-ui-relation-circle-BEv568py.cjs +1 -0
  99. package/dist/vue-ui-relation-circle-CR3iWQV_.js +492 -0
  100. package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-B--CFaNX.js} +49 -48
  101. package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
  102. package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-C-RD4h73.js} +26 -25
  103. package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
  107. package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
  119. package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
  122. package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
  123. package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
  124. package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
  125. package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
  126. package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-CS-NSZjj.js} +1 -1
  127. package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
  129. package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
  134. package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
  136. package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
  138. package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
  139. package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
  141. package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
  142. package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-DYdcFM17.js} +79 -78
  144. package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
  145. package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
  148. package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-B3346TfB.js} +195 -185
  149. package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
  150. package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
  151. package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
  152. package/package.json +1 -1
  153. package/dist/Slicer-BXHFpzP5.cjs +0 -1
  154. package/dist/Slicer-D7x1gyjP.js +0 -400
  155. package/dist/Tooltip-BC1YZMi2.cjs +0 -1
  156. package/dist/index--lHmCKjC.cjs +0 -9
  157. package/dist/vue-ui-candlestick-CVJB9WMH.js +0 -725
  158. package/dist/vue-ui-candlestick-Cb7CgmeV.cjs +0 -2
  159. package/dist/vue-ui-donut-evolution-DWdf8MKP.cjs +0 -1
  160. package/dist/vue-ui-donut-evolution-KdVsB3m_.js +0 -895
  161. package/dist/vue-ui-quick-chart-79l8Uv8o.cjs +0 -15
  162. package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
  163. package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
  164. package/dist/vue-ui-rings-L8pGRQbs.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BtOrW2Ml.cjs +0 -6
  166. package/dist/vue-ui-xy-Cqb73yZ3.cjs +0 -3
  167. package/dist/vue-ui-xy-canvas-7OwcP1-L.cjs +0 -9
@@ -0,0 +1,492 @@
1
+ import { useCssVars as Re, computed as f, ref as r, watch as je, onMounted as Ge, onBeforeUnmount as Ue, openBlock as s, createElementBlock as i, normalizeStyle as O, createBlock as F, createCommentVNode as v, unref as d, createSlots as We, withCtx as B, renderSlot as k, normalizeProps as A, guardReactiveProps as W, normalizeClass as D, createVNode as De, createElementVNode as Ve, Fragment as C, renderList as P, mergeProps as ye, toDisplayString as T } from "vue";
2
+ import { u as Xe, c as Ye, t as qe, a as He, p as fe, b as Je, o as Ke, e as he, g as Qe, X as Ze, G as ge, i as V, f as X, F as Y } from "./index-DnukYspq.js";
3
+ import { t as et, u as tt } from "./useResponsive-CoxXLe23.js";
4
+ import { _ as lt } from "./Title-Cnl9ySNH.js";
5
+ import { u as st, U as at } from "./usePrinter-DVIALk5e.js";
6
+ import it from "./vue-ui-skeleton-CXdyOF4T.js";
7
+ import { u as me } from "./useNestedProp-CVOQGx-X.js";
8
+ import { _ as nt } from "./PackageVersion-CH6MCx6T.js";
9
+ import { P as rt } from "./PenAndPaper-BWTR3U2d.js";
10
+ import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ot = ["id"], ct = ["xmlns", "viewBox"], dt = ["cx", "cy", "r", "stroke", "stroke-width"], vt = { key: 0 }, yt = ["stroke", "d", "stroke-width"], ft = { style: { "pointer-events": "none" } }, ht = ["cx", "cy", "fill", "r", "stroke"], gt = ["x", "y", "fill", "font-size"], mt = { key: 1 }, kt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], xt = { style: { "pointer-events": "none" } }, pt = ["cx", "cy", "fill", "r", "stroke"], wt = ["x", "y", "fill", "font-size"], bt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], _t = ["cx", "cy", "fill", "stroke", "onClick", "r"], $t = {
12
+ key: 5,
13
+ class: "vue-data-ui-watermark"
14
+ }, Ct = {
15
+ __name: "vue-ui-relation-circle",
16
+ props: {
17
+ dataset: {
18
+ type: Array,
19
+ default() {
20
+ return [];
21
+ }
22
+ },
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ }
29
+ },
30
+ setup(ke, { expose: xe }) {
31
+ const x = ke;
32
+ Re((e) => ({
33
+ "7693a9d2": Ce.value,
34
+ "65d94d14": $e.value,
35
+ fa445a50: Pe.value
36
+ }));
37
+ const { vue_ui_relation_circle: pe } = Xe(), E = f(() => !!x.dataset && Object.keys(x.dataset).length), L = r(Ye()), q = r(0), z = r(null), H = r(null), J = r(null), K = r(null), Q = r(0), l = f({
38
+ get: () => Z(),
39
+ set: (e) => e
40
+ });
41
+ function Z() {
42
+ const e = me({
43
+ userConfig: x.config,
44
+ defaultConfig: pe
45
+ });
46
+ return e.theme ? {
47
+ ...me({
48
+ userConfig: qe.vue_ui_relation_circle[e.theme] || x.config,
49
+ defaultConfig: e
50
+ }),
51
+ customPalette: He[e.theme] || fe
52
+ } : e;
53
+ }
54
+ je(() => x.config, (e) => {
55
+ l.value = Z(), re(), Q.value += 1;
56
+ }, { deep: !0 });
57
+ const { isPrinting: ee, isImaging: te, generatePdf: le, generateImage: se } = st({
58
+ elementId: `relation_circle_${L.value}`,
59
+ fileName: l.value.style.title.text || "vue-ui-relation-circle"
60
+ }), we = f(() => l.value.userOptions.show && !l.value.style.title.text), ae = f(() => Je(l.value.customPalette)), w = r([]), h = r([]), u = r({}), g = r([]), be = r(0), N = f(() => x.dataset.slice(0, l.value.style.limit)), _ = r(l.value.style.size), m = r(l.value.style.weightLabels.size), ie = r(l.value.style.plot.radius), ne = r(l.value.style.labels.fontSize), o = r({
61
+ height: l.value.style.size,
62
+ width: l.value.style.size
63
+ }), b = f({
64
+ get() {
65
+ return _.value * l.value.style.circle.radiusProportion;
66
+ },
67
+ set(e) {
68
+ return e;
69
+ }
70
+ }), _e = f(() => l.value.style.links.curved), $e = f(() => `${l.value.style.animation.speedMs}ms`), Ce = f(() => b.value * 2), Pe = f(() => b.value * 4), I = r(null);
71
+ Ge(() => {
72
+ re(), document.getElementById(`relation_circle_${L.value}`).addEventListener("click", ue);
73
+ });
74
+ function re() {
75
+ if (Ke(x.dataset) ? he({
76
+ componentName: "VueUiRelationCircle",
77
+ type: "dataset"
78
+ }) : x.dataset.forEach((e, a) => {
79
+ Qe({
80
+ datasetObject: e,
81
+ requiredAttributes: ["id", "label", "relations", "weights"]
82
+ }).forEach((t) => {
83
+ he({
84
+ componentName: "VueUiRelationCircle",
85
+ type: "datasetSerieAttribute",
86
+ property: t,
87
+ index: a
88
+ });
89
+ });
90
+ }), l.value.responsive) {
91
+ const e = et(() => {
92
+ const { width: a, height: t } = tt({
93
+ chart: z.value,
94
+ title: l.value.style.title.text ? H.value : null,
95
+ source: J.value,
96
+ noTitle: K.value
97
+ });
98
+ _.value = Math.min(a, t), o.value.width = a, o.value.height = t, b.value = _.value * l.value.style.circle.radiusProportion, w.value = [], h.value = [], oe(), ce(), m.value = Y({
99
+ relator: _.value,
100
+ adjuster: l.value.style.size,
101
+ source: l.value.style.weightLabels.size,
102
+ threshold: 6,
103
+ fallback: 6
104
+ }), ie.value = Y({
105
+ relator: _.value,
106
+ adjuster: l.value.style.size,
107
+ source: l.value.style.plot.radius,
108
+ threshold: 1,
109
+ fallback: 1
110
+ }), ne.value = Y({
111
+ relator: _.value,
112
+ adjuster: l.value.style.size,
113
+ source: l.value.style.labels.fontSize,
114
+ threshold: 6,
115
+ fallback: 6
116
+ });
117
+ });
118
+ I.value = new ResizeObserver(e), I.value.observe(z.value.parentNode);
119
+ } else
120
+ w.value = [], h.value = [], oe(), ce();
121
+ }
122
+ Ue(() => {
123
+ document.getElementById(`relation_circle_${L.value}`).removeEventListener("click", ue), I.value && I.value.disconnect();
124
+ });
125
+ function ue(e) {
126
+ const a = e.target;
127
+ a && Array.from(a.classList).includes("vue-ui-user-options") || a && Array.from(a.classList).includes("vue-ui-user-options-summary") || a && Array.from(a.classList).includes("vue-data-ui-button") || a && Array.from(a.classList).includes("vue-ui-relation-circle-legend") || (u.value = {}, g.value = []);
128
+ }
129
+ function oe() {
130
+ const e = 6.28319 / N.value.length, a = 360 / N.value.length;
131
+ let t = 0, n = 0;
132
+ N.value.forEach((y, c) => {
133
+ const G = y.weights.reduce((Ee, Ne) => Ee + Ne, 0), U = b.value * Math.cos(t) + o.value.width / 2, Te = b.value * Math.sin(t) + o.value.height / 2 + l.value.style.circle.offsetY;
134
+ w.value.push({ x: U, y: Te, ...y, color: y.color ? y.color : ae.value[c] ? ae.value[c] : fe[c], regAngle: n, totalWeight: G }), t += e, n += a;
135
+ });
136
+ }
137
+ function Le(e, a) {
138
+ const t = (e.x + a.x) / 2, n = (e.y + a.y) / 2;
139
+ return { x: t, y: n };
140
+ }
141
+ function ce() {
142
+ h.value = [], w.value.forEach((e) => {
143
+ w.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
144
+ const y = t.relations.indexOf(e.id);
145
+ h.value.push({
146
+ weight: t.weights[y] ? t.weights[y] : 0,
147
+ relationId: `${e.id}_${t.id}`,
148
+ x1: e.x,
149
+ y1: e.y,
150
+ x2: t.x,
151
+ y2: t.y,
152
+ colorSource: e.color,
153
+ colorTarget: t.color,
154
+ midPointLine: Le({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
155
+ midPointBezier: ze({
156
+ x1: e.x,
157
+ x2: t.x,
158
+ y1: e.y,
159
+ y2: t.y
160
+ }),
161
+ ...e
162
+ });
163
+ });
164
+ });
165
+ }
166
+ function ze(e) {
167
+ const a = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, n = { x: e.x1, y: e.y1 }, y = {
168
+ x: o.value.width / 2,
169
+ y: o.value.height / 2 + l.value.style.circle.offsetY
170
+ }, c = 0.5, G = Math.pow(1 - c, 3) * a.x + 3 * Math.pow(1 - c, 2) * c * n.x + 3 * (1 - c) * Math.pow(c, 2) * y.x + Math.pow(c, 3) * t.x, U = Math.pow(1 - c, 3) * a.y + 3 * Math.pow(1 - c, 2) * c * n.y + 3 * (1 - c) * Math.pow(c, 2) * y.y + Math.pow(c, 3) * t.y;
171
+ return { x: G, y: U };
172
+ }
173
+ const Oe = f(() => Math.max(...h.value.map((e) => e.weight)));
174
+ function Ae(e) {
175
+ return Object.hasOwn(u.value, "x") ? g.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
176
+ }
177
+ function p(e) {
178
+ return e.colorSource;
179
+ }
180
+ function de(e) {
181
+ return Object.hasOwn(u.value, "x") ? g.value.includes(e.id) && e.relationId === `${e.id}_${u.value.id}` || e.relationId === `${u.value.id}_${e.id}` ? `opacity:1;stroke-width:${R(e)}` : "opacity: 0" : "opacity: 1";
182
+ }
183
+ function $(e) {
184
+ return Object.hasOwn(u.value, "x") ? !!(g.value.includes(e.id) && e.relationId === `${e.id}_${u.value.id}` || e.relationId === `${u.value.id}_${e.id}`) : !1;
185
+ }
186
+ function Ie(e) {
187
+ return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
188
+ }
189
+ function Me(e) {
190
+ return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
191
+ }
192
+ function Se(e) {
193
+ return Object.hasOwn(u.value, "x") ? u.value.id === e.id || g.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
194
+ }
195
+ function Fe(e) {
196
+ return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
197
+ }
198
+ function ve(e) {
199
+ be.value = 360 - e.regAngle, u.value.id && e.id === u.value.id ? (u.value = {}, g.value = []) : (u.value = e, g.value = [...e.relations]);
200
+ }
201
+ function R(e) {
202
+ const a = e.weight / Oe.value * l.value.style.links.maxWidth;
203
+ return Math.max(0.3, a);
204
+ }
205
+ const M = r(!1);
206
+ function Be(e) {
207
+ M.value = e, q.value += 1;
208
+ }
209
+ const S = r(!1);
210
+ function j() {
211
+ S.value = !S.value;
212
+ }
213
+ return xe({
214
+ generatePdf: le,
215
+ generateImage: se,
216
+ toggleAnnotator: j
217
+ }), (e, a) => (s(), i("div", {
218
+ ref_key: "relationCircleChart",
219
+ ref: z,
220
+ class: "vue-ui-relation-circle",
221
+ style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
222
+ id: `relation_circle_${L.value}`
223
+ }, [
224
+ l.value.userOptions.buttons.annotator ? (s(), F(rt, {
225
+ key: 0,
226
+ parent: z.value,
227
+ backgroundColor: l.value.style.backgroundColor,
228
+ color: l.value.style.color,
229
+ active: S.value,
230
+ onClose: j
231
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
232
+ we.value ? (s(), i("div", {
233
+ key: 1,
234
+ ref_key: "noTitle",
235
+ ref: K,
236
+ class: "vue-data-ui-no-title-space",
237
+ style: "height:36px; width: 100%;background:transparent"
238
+ }, null, 512)) : v("", !0),
239
+ l.value.style.title.text ? (s(), i("div", {
240
+ key: 2,
241
+ ref_key: "chartTitle",
242
+ ref: H,
243
+ style: "width:100%;background:transparent"
244
+ }, [
245
+ (s(), F(lt, {
246
+ key: `title_${Q.value}`,
247
+ config: {
248
+ title: {
249
+ cy: "relation-div-title",
250
+ ...l.value.style.title
251
+ },
252
+ subtitle: {
253
+ cy: "relation-div-subtitle",
254
+ ...l.value.style.title.subtitle
255
+ }
256
+ }
257
+ }, null, 8, ["config"]))
258
+ ], 512)) : v("", !0),
259
+ l.value.userOptions.show && E.value ? (s(), F(at, {
260
+ ref: "details",
261
+ key: `user_options_${q.value}`,
262
+ backgroundColor: l.value.style.backgroundColor,
263
+ color: l.value.style.color,
264
+ isPrinting: d(ee),
265
+ isImaging: d(te),
266
+ uid: L.value,
267
+ hasPdf: l.value.userOptions.buttons.pdf,
268
+ hasImg: l.value.userOptions.buttons.img,
269
+ hasFullscreen: l.value.userOptions.buttons.img,
270
+ hasXls: !1,
271
+ isFullscreen: M.value,
272
+ titles: { ...l.value.userOptions.buttonTitles },
273
+ chartElement: z.value,
274
+ position: l.value.userOptions.position,
275
+ hasAnnotator: l.value.userOptions.buttons.annotator,
276
+ isAnnotation: S.value,
277
+ onToggleFullscreen: Be,
278
+ onGeneratePdf: d(le),
279
+ onGenerateImage: d(se),
280
+ onToggleAnnotator: j
281
+ }, We({ _: 2 }, [
282
+ e.$slots.optionPdf ? {
283
+ name: "optionPdf",
284
+ fn: B(() => [
285
+ k(e.$slots, "optionPdf", {}, void 0, !0)
286
+ ]),
287
+ key: "0"
288
+ } : void 0,
289
+ e.$slots.optionImg ? {
290
+ name: "optionImg",
291
+ fn: B(() => [
292
+ k(e.$slots, "optionImg", {}, void 0, !0)
293
+ ]),
294
+ key: "1"
295
+ } : void 0,
296
+ e.$slots.optionFullscreen ? {
297
+ name: "optionFullscreen",
298
+ fn: B(({ toggleFullscreen: t, isFullscreen: n }) => [
299
+ k(e.$slots, "optionFullscreen", A(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
300
+ ]),
301
+ key: "2"
302
+ } : void 0,
303
+ e.$slots.optionAnnotator ? {
304
+ name: "optionAnnotator",
305
+ fn: B(({ toggleAnnotator: t, isAnnotator: n }) => [
306
+ k(e.$slots, "optionAnnotator", A(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
307
+ ]),
308
+ key: "3"
309
+ } : void 0
310
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
311
+ E.value ? (s(), i("svg", {
312
+ key: 4,
313
+ xmlns: d(Ze),
314
+ class: D([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
315
+ viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
316
+ width: "100%",
317
+ style: "user-select:none; background:transparent"
318
+ }, [
319
+ De(nt),
320
+ Ve("circle", {
321
+ cx: (o.value.width <= 0 ? 1e-4 : o.value.width) / 2,
322
+ cy: (o.value.height <= 0 ? 1e-4 : o.value.height) / 2 + l.value.style.circle.offsetY,
323
+ r: b.value <= 0 ? 1e-4 : b.value,
324
+ stroke: l.value.style.circle.stroke,
325
+ "stroke-width": l.value.style.circle.strokeWidth,
326
+ fill: "transparent",
327
+ class: "main-circle"
328
+ }, null, 8, dt),
329
+ _e.value ? (s(), i("g", vt, [
330
+ (s(!0), i(C, null, P(h.value, (t, n) => (s(), i("path", {
331
+ key: `relation_${n}`,
332
+ style: O(de(t)),
333
+ stroke: p(t),
334
+ class: D(["relation", { "vue-ui-relation-circle-selected": u.value.hasOwnProperty("id") && g.value.includes(t.id) }]),
335
+ d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${o.value.width / 2},${o.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
336
+ fill: "none",
337
+ "stroke-width": R(t),
338
+ "stroke-linecap": "round"
339
+ }, null, 14, yt))), 128)),
340
+ (s(!0), i(C, null, P(h.value, (t, n) => (s(), i("g", ft, [
341
+ $(t) ? k(e.$slots, "dataLabel", A(ye({ key: 0 }, {
342
+ x: t.midPointBezier.x,
343
+ y: t.midPointBezier.y,
344
+ color: p(t),
345
+ weight: t.weight,
346
+ fontSize: m.value
347
+ })), void 0, !0) : v("", !0),
348
+ $(t) && !e.$slots.dataLabel ? (s(), i("circle", {
349
+ key: 1,
350
+ cx: t.midPointBezier.x,
351
+ cy: t.midPointBezier.y,
352
+ fill: p(t),
353
+ r: m.value,
354
+ stroke: l.value.style.backgroundColor,
355
+ "stroke-width": "1"
356
+ }, null, 8, ht)) : v("", !0),
357
+ $(t) && !e.$slots.dataLabel ? (s(), i("text", {
358
+ key: 2,
359
+ x: t.midPointBezier.x,
360
+ y: t.midPointBezier.y + m.value / 3,
361
+ fill: d(ge)(p(t)),
362
+ "text-anchor": "middle",
363
+ "font-size": m.value
364
+ }, T(d(V)(
365
+ l.value.style.weightLabels.formatter,
366
+ t.weight,
367
+ d(X)({
368
+ p: l.value.style.weightLabels.prefix,
369
+ v: t.weight,
370
+ s: l.value.style.weightLabels.suffix,
371
+ r: l.value.style.weightLabels.rounding
372
+ }),
373
+ { ...t }
374
+ )), 9, gt)) : v("", !0)
375
+ ]))), 256))
376
+ ])) : (s(), i("g", mt, [
377
+ (s(!0), i(C, null, P(h.value, (t, n) => (s(), i("line", {
378
+ key: `relation_${n}`,
379
+ stroke: p(t),
380
+ "stroke-width": R(t),
381
+ style: O(de(t)),
382
+ x1: t.x1,
383
+ x2: t.x2,
384
+ y1: t.y1,
385
+ y2: t.y2,
386
+ class: D({ "vue-ui-relation-circle-selected": u.value.hasOwnProperty("id") && g.value.includes(t.id) }),
387
+ "stroke-linecap": "round"
388
+ }, null, 14, kt))), 128)),
389
+ (s(!0), i(C, null, P(h.value, (t, n) => (s(), i("g", xt, [
390
+ $(t) ? k(e.$slots, "dataLabel", A(ye({ key: 0 }, {
391
+ x: t.midPointLine.x,
392
+ y: t.midPointLine.y,
393
+ color: p(t),
394
+ weight: t.weight,
395
+ fontSize: m.value
396
+ })), void 0, !0) : v("", !0),
397
+ $(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (s(), i("circle", {
398
+ key: 1,
399
+ cx: t.midPointLine.x,
400
+ cy: t.midPointLine.y,
401
+ fill: p(t),
402
+ r: m.value,
403
+ stroke: l.value.style.backgroundColor,
404
+ "stroke-width": "1"
405
+ }, null, 8, pt)) : v("", !0),
406
+ $(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (s(), i("text", {
407
+ key: 2,
408
+ x: t.midPointLine.x,
409
+ y: t.midPointLine.y + m.value / 3,
410
+ fill: d(ge)(p(t)),
411
+ "text-anchor": "middle",
412
+ "font-size": m.value
413
+ }, T(d(V)(
414
+ l.value.style.weightLabels.formatter,
415
+ t.weight,
416
+ d(X)({
417
+ p: l.value.style.weightLabels.prefix,
418
+ v: t.weight,
419
+ s: l.value.style.weightLabels.suffix,
420
+ r: l.value.style.weightLabels.rounding
421
+ }),
422
+ { ...t }
423
+ )), 9, wt)) : v("", !0)
424
+ ]))), 256))
425
+ ])),
426
+ (s(!0), i(C, null, P(w.value, (t, n) => (s(), i("text", {
427
+ key: `plot_text_${n}`,
428
+ "text-anchor": Ie(t),
429
+ transform: Fe(t),
430
+ x: Me(t),
431
+ y: t.y + 5,
432
+ onClick: (y) => ve(t),
433
+ class: "vue-ui-relation-circle-legend",
434
+ "transform-origin": "start",
435
+ "font-weight": u.value.id === t.id ? "900" : "400",
436
+ style: O(`font-family:${l.value.style.fontFamily};${Se(t)}`),
437
+ "font-size": ne.value,
438
+ fill: l.value.style.labels.color
439
+ }, T(t.label) + " (" + T(d(V)(
440
+ l.value.style.weightLabels.formatter,
441
+ t.totalWeight,
442
+ d(X)({
443
+ p: l.value.style.weightLabels.prefix,
444
+ v: t.totalWeight,
445
+ s: l.value.style.weightLabels.suffix,
446
+ r: l.value.style.weightLabels.rounding
447
+ }),
448
+ { ...t }
449
+ )) + ") ", 13, bt))), 128)),
450
+ (s(!0), i(C, null, P(w.value, (t, n) => (s(), i("circle", {
451
+ cx: t.x,
452
+ cy: t.y,
453
+ key: `plot_${n}`,
454
+ style: O(Ae(t)),
455
+ class: "vue-ui-relation-circle-plot",
456
+ fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
457
+ stroke: l.value.style.backgroundColor,
458
+ "stroke-width": "1",
459
+ onClick: (y) => ve(t),
460
+ r: ie.value
461
+ }, null, 12, _t))), 128)),
462
+ k(e.$slots, "svg", { svg: o.value }, void 0, !0)
463
+ ], 10, ct)) : v("", !0),
464
+ e.$slots.watermark ? (s(), i("div", $t, [
465
+ k(e.$slots, "watermark", A(W({ isPrinting: d(ee) || d(te) })), void 0, !0)
466
+ ])) : v("", !0),
467
+ e.$slots.source ? (s(), i("div", {
468
+ key: 6,
469
+ ref_key: "source",
470
+ ref: J,
471
+ dir: "auto"
472
+ }, [
473
+ k(e.$slots, "source", {}, void 0, !0)
474
+ ], 512)) : v("", !0),
475
+ E.value ? v("", !0) : (s(), F(it, {
476
+ key: 7,
477
+ config: {
478
+ type: "relationCircle",
479
+ style: {
480
+ backgroundColor: l.value.style.backgroundColor,
481
+ relationCircle: {
482
+ color: "#CCCCCC"
483
+ }
484
+ }
485
+ }
486
+ }, null, 8, ["config"]))
487
+ ], 12, ot));
488
+ }
489
+ }, Tt = /* @__PURE__ */ ut(Ct, [["__scopeId", "data-v-f7051bc9"]]);
490
+ export {
491
+ Tt as default
492
+ };