vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,932 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, C as n, Dt as r, E as i, Gt as a, K as ee, Nt as te, Q as o, X as s, bt as ne, et as c, j as re, qt as l, st as ie, t as ae, x as oe } from "./lib-CFm_J26b.js";
3
+ import { t as se } from "./useConfig-C0V0eG7L.js";
4
+ import { t as ce } from "./usePrinter-BH-xle1O.js";
5
+ import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as de } from "./useSvgExport-Ba9qBr9M.js";
7
+ import { t as fe } from "./useNestedProp-BY6DNN3i.js";
8
+ import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as me } from "./img-Bikk1dGb.js";
10
+ import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as ge } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
13
+ import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
15
+ import { t as be } from "./usePanZoom-CYU3B4T3.js";
16
+ import { Fragment as xe, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Se, createTextVNode as Ce, createVNode as h, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as we, nextTick as v, normalizeClass as Te, normalizeProps as y, normalizeStyle as b, onMounted as Ee, openBlock as x, ref as S, renderList as De, renderSlot as C, resolveDynamicComponent as Oe, toDisplayString as ke, toRefs as Ae, unref as w, useCssVars as je, watch as T, withCtx as E } from "vue";
17
+ //#region src/components/vue-ui-molecule.vue
18
+ var Me = /* @__PURE__ */ e({ default: () => D }), Ne = ["id"], Pe = {
19
+ key: 1,
20
+ ref: "noTitle",
21
+ class: "vue-data-ui-no-title-space",
22
+ style: "height:36px; width: 100%;background:transparent"
23
+ }, Fe = {
24
+ key: 2,
25
+ style: "width:100%;background:transparent;"
26
+ }, Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = {
27
+ key: 4,
28
+ class: "vue-data-ui-watermark"
29
+ }, ze = {
30
+ key: 5,
31
+ "data-dom-to-png-ignore": "",
32
+ class: "reset-wrapper"
33
+ }, Be = {
34
+ key: 6,
35
+ ref: "source",
36
+ dir: "auto"
37
+ }, Ve = ["innerHTML"], D = /*#__PURE__*/ he({
38
+ __name: "vue-ui-molecule",
39
+ props: {
40
+ config: {
41
+ type: Object,
42
+ default() {
43
+ return {};
44
+ }
45
+ },
46
+ dataset: {
47
+ type: Array,
48
+ default() {
49
+ return [];
50
+ }
51
+ }
52
+ },
53
+ emits: ["selectNode", "copyAlt"],
54
+ setup(e, { expose: he, emit: Me }) {
55
+ je((e) => ({ v62768f10: Qt.value }));
56
+ let D = g(() => import("./Title-BuPs74IB.js").then((e) => e.t)), He = g(() => import("./Tooltip-CA1rtSyl.js")), Ue = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), We = g(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), Ge = g(() => import("./DataTable-DzPEVvSo.js")), Ke = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), qe = g(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), Je = g(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), Ye = g(() => import("./RecursiveLinks-BygcpDiT.js")), Xe = g(() => import("./RecursiveLabels-D9rfID6q.js")), Ze = g(() => import("./RecursiveCircles-D6aDPmoe.js")), Qe = g(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_molecule: $e } = se(), { isThemeValid: et, warnInvalidTheme: tt } = pe(), O = e, nt = Me, rt = u(() => !!O.dataset && O.dataset.length);
57
+ Ee(() => {
58
+ at();
59
+ });
60
+ let it = u(() => P.value.debug);
61
+ function at() {
62
+ t(O.dataset) && c({
63
+ componentName: "VueUiMolecule",
64
+ type: "dataset",
65
+ debug: it.value
66
+ });
67
+ }
68
+ let ot = S(ee()), st = S(!1), k = S(""), A = S(null), ct = S(0), lt = S(0), ut = S(0), j = S(null), dt = S(null), M = S(!1), N = S(!1), P = S(B()), F = u(() => P.value.userOptions.useCursorPointer), ft = u(() => l({
69
+ defaultConfig: {
70
+ userOptions: { show: !1 },
71
+ table: { show: !1 },
72
+ style: { chart: {
73
+ backgroundColor: "#99999930",
74
+ nodes: { stroke: "#6A6A6A" },
75
+ links: { stroke: "#6A6A6A80" }
76
+ } }
77
+ },
78
+ userConfig: P.value.skeletonConfig ?? {}
79
+ })), { loading: I, FINAL_DATASET: L } = le({
80
+ ...Ae(O),
81
+ FINAL_CONFIG: P,
82
+ prepareConfig: B,
83
+ skeletonDataset: O.config?.skeletonDataset ?? [{
84
+ name: "_",
85
+ color: "#CACACA",
86
+ nodes: [
87
+ {
88
+ name: "_",
89
+ color: "#CACACA",
90
+ nodes: [
91
+ {
92
+ name: "_",
93
+ color: "#CACACA"
94
+ },
95
+ {
96
+ name: "_",
97
+ color: "#CACACA"
98
+ },
99
+ {
100
+ name: "_",
101
+ color: "#CACACA"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ name: "_",
107
+ color: "#CACACA",
108
+ nodes: [
109
+ {
110
+ name: "_",
111
+ color: "#CACACA"
112
+ },
113
+ {
114
+ name: "_",
115
+ color: "#CACACA"
116
+ },
117
+ {
118
+ name: "_",
119
+ color: "#CACACA"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ name: "_",
125
+ color: "#CACACA",
126
+ nodes: [
127
+ {
128
+ name: "_",
129
+ color: "#CACACA"
130
+ },
131
+ {
132
+ name: "_",
133
+ color: "#CACACA"
134
+ },
135
+ {
136
+ name: "_",
137
+ color: "#CACACA"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ name: "_",
143
+ color: "#CACACA",
144
+ nodes: [
145
+ {
146
+ name: "_",
147
+ color: "#CACACA"
148
+ },
149
+ {
150
+ name: "_",
151
+ color: "#CACACA"
152
+ },
153
+ {
154
+ name: "_",
155
+ color: "#CACACA"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ name: "_",
161
+ color: "#CACACA",
162
+ nodes: [
163
+ {
164
+ name: "_",
165
+ color: "#CACACA"
166
+ },
167
+ {
168
+ name: "_",
169
+ color: "#CACACA"
170
+ },
171
+ {
172
+ name: "_",
173
+ color: "#CACACA"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ name: "_",
179
+ color: "#CACACA",
180
+ nodes: [
181
+ {
182
+ name: "_",
183
+ color: "#CACACA"
184
+ },
185
+ {
186
+ name: "_",
187
+ color: "#CACACA"
188
+ },
189
+ {
190
+ name: "_",
191
+ color: "#CACACA"
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ }],
197
+ skeletonConfig: l({
198
+ defaultConfig: P.value,
199
+ userConfig: ft.value
200
+ })
201
+ }), { userOptionsVisible: R, setUserOptionsVisibility: pt, keepUserOptionState: mt } = _e({ config: P.value }), { svgRef: z } = ve({ config: P.value.style.chart.title });
202
+ function B() {
203
+ let e = fe({
204
+ userConfig: O.config,
205
+ defaultConfig: $e
206
+ }), t = e.theme;
207
+ if (!t) return e;
208
+ if (!et.value(e)) return tt(e), e;
209
+ let n = fe({
210
+ userConfig: ye[t] || O.config,
211
+ defaultConfig: e
212
+ }), r = fe({
213
+ userConfig: O.config,
214
+ defaultConfig: n
215
+ });
216
+ return {
217
+ ...r,
218
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || te
219
+ };
220
+ }
221
+ T(() => O.config, (e) => {
222
+ P.value = B(), R.value = !P.value.userOptions.showOnChartHover, at(), lt.value += 1, ut.value += 1, U.value.showTable = P.value.table.show, U.value.showTooltip = P.value.style.chart.tooltip.show, U.value.showZoom = P.value.style.chart.zoom.show;
223
+ }, { deep: !0 });
224
+ let ht = S(0), gt = () => {
225
+ ht.value += 1;
226
+ };
227
+ T([() => I.value, () => L.value], async ([e]) => {
228
+ e || (await v(), W.value = St(), await v(), gt(), await v(), Ht({
229
+ x: 0,
230
+ y: 0,
231
+ width: 400,
232
+ height: 400
233
+ }), Bt(!1));
234
+ }, {
235
+ flush: "post",
236
+ deep: !1
237
+ });
238
+ let { isPrinting: V, isImaging: H, generatePdf: _t, generateImage: vt } = ce({
239
+ elementId: `cluster_${ot.value}`,
240
+ fileName: P.value.style.chart.title.text || "vue-ui-molecule",
241
+ options: P.value.userOptions.print
242
+ }), yt = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), bt = u(() => n(P.value.customPalette)), U = S({
243
+ showTable: P.value.table.show,
244
+ showDataLabels: !0,
245
+ showTooltip: P.value.style.chart.tooltip.show,
246
+ showZoom: P.value.style.chart.zoom.show
247
+ });
248
+ T(P, () => {
249
+ U.value = {
250
+ showTable: P.value.table.show,
251
+ showDataLabels: !0,
252
+ showTooltip: P.value.style.chart.tooltip.show,
253
+ showZoom: P.value.style.chart.zoom.show
254
+ };
255
+ }, { immediate: !0 });
256
+ function xt(e, t = 0) {
257
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
258
+ }
259
+ function St() {
260
+ let e = xt(L.value), t = 100, n = t;
261
+ for (let r = 0; r < e; r += 1) t /= 1, n += t;
262
+ return {
263
+ height: n,
264
+ width: n
265
+ };
266
+ }
267
+ let W = S(St());
268
+ function Ct(e, t = {
269
+ x: -W.value.width / 2.43,
270
+ y: W.value.height / 2
271
+ }, n = W.value.width / 1.1, r = 24, i = 0, a = 0, o = "#BBBBBB", s = 0) {
272
+ if (!Array.isArray(e) || e.length === 0) return e;
273
+ let ne = re({
274
+ plot: t,
275
+ radius: n,
276
+ sides: e.length,
277
+ rotation: i
278
+ });
279
+ return e.forEach((e, t) => {
280
+ let c = ne.coordinates[t], re = e.color ? (() => {
281
+ let t = oe(e.color);
282
+ return t.startsWith("#") ? t : `#${t}`;
283
+ })() : null, l;
284
+ re ? l = re : s === 0 ? l = o : s === 1 ? (l = bt.value[a] || te[a] || o, a += 1) : l = o, e.polygonPath = { coordinates: [c] }, e.circleRadius = r, e.color = l, e.strokeWidth = Math.min(P.value.style.chart.links.strokeWidth / (s + 1), r / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, c, n / 2.9, r / 2.2, i + Math.PI * t / e.nodes.length, a, l, s + 1));
285
+ }), e;
286
+ }
287
+ function wt(e) {
288
+ let t = /* @__PURE__ */ new Set();
289
+ function n(e) {
290
+ e.forEach((e) => {
291
+ if (!e.color) return;
292
+ let r = e.color;
293
+ /^#?[0-9A-F]{6}$/i.test(r) || (r = oe(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
294
+ });
295
+ }
296
+ n(e);
297
+ let r = {};
298
+ return Array.from(t).forEach((e) => {
299
+ let t = e.slice(1);
300
+ r[e] = `gradient_${t}`;
301
+ }), r;
302
+ }
303
+ let Tt = u(() => wt(G.value)), G = u(() => Ct(s(L.value))), K = S(null);
304
+ function Et(e) {
305
+ K.value = {
306
+ datapoint: e,
307
+ seriesIndex: -1,
308
+ series: G.value,
309
+ config: P.value
310
+ };
311
+ let t = P.value.style.chart.tooltip.customFormat;
312
+ if (ne(t) && ie(() => t({
313
+ seriesIndex: -1,
314
+ datapoint: e,
315
+ series: G.value,
316
+ config: P.value
317
+ }))) k.value = t({
318
+ seriesIndex: -1,
319
+ datapoint: e,
320
+ series: G.value,
321
+ config: P.value
322
+ });
323
+ else {
324
+ let t = "";
325
+ t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${P.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), k.value = `<div style="font-family:inherit">${t}</div>`;
326
+ }
327
+ }
328
+ let q = S(null), J = S(null), Dt = S(null);
329
+ function Ot(e) {
330
+ Dt.value = q.value, q.value = e, e ? P.value.events.datapointEnter && P.value.events.datapointEnter({
331
+ datapoint: e,
332
+ seriesIndex: -1
333
+ }) : P.value.events.datapointLeave && P.value.events.datapointLeave({
334
+ datapoint: Dt.value || q.value,
335
+ seriesIndex: -1
336
+ }), e ? (st.value = !0, Et(e), J.value = e.uid) : (st.value = !1, k.value = "", J.value = null);
337
+ }
338
+ function kt(e) {
339
+ let t = [];
340
+ function n(e) {
341
+ e.forEach((e) => {
342
+ let r = {
343
+ name: e.name,
344
+ details: e.details || "-",
345
+ ancestor: e.ancestor && e.ancestor.name || "-",
346
+ color: e.color || ""
347
+ };
348
+ t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
349
+ });
350
+ }
351
+ return n(e), t;
352
+ }
353
+ let At = u(() => kt(G.value)), Y = u(() => ({
354
+ head: [
355
+ P.value.table.translations.nodeName,
356
+ P.value.table.translations.details,
357
+ P.value.table.translations.ancestor
358
+ ],
359
+ body: At.value.map((e, t) => [
360
+ {
361
+ color: e.color,
362
+ name: e.name
363
+ },
364
+ e.details,
365
+ e.ancestor || ""
366
+ ]),
367
+ config: {
368
+ th: {
369
+ backgroundColor: P.value.table.th.backgroundColor,
370
+ color: P.value.table.th.color,
371
+ outline: P.value.table.th.outline
372
+ },
373
+ td: {
374
+ backgroundColor: P.value.table.td.backgroundColor,
375
+ color: P.value.table.td.color,
376
+ outline: P.value.table.td.outline
377
+ },
378
+ breakpoint: P.value.table.responsiveBreakpoint
379
+ },
380
+ colNames: [
381
+ P.value.table.translations.nodeName,
382
+ P.value.table.translations.details,
383
+ P.value.table.translations.ancestor
384
+ ]
385
+ }));
386
+ function jt(e = null) {
387
+ v(() => {
388
+ let t = Y.value.body.map((e, t) => [
389
+ [e[0].name],
390
+ [e[1]],
391
+ [e[2]]
392
+ ]), n = i([
393
+ [P.value.style.chart.title.text],
394
+ [P.value.style.chart.title.subtitle.text],
395
+ [[...Y.value.head]]
396
+ ].concat(t));
397
+ e ? e(n) : o({
398
+ csvContent: n,
399
+ title: P.value.style.chart.title.text || "vue-ui-molecule"
400
+ });
401
+ });
402
+ }
403
+ function Mt() {
404
+ return G.value;
405
+ }
406
+ let X = S(!1);
407
+ function Nt(e) {
408
+ X.value = e, ct.value += 1;
409
+ }
410
+ function Pt() {
411
+ U.value.showTable = !U.value.showTable;
412
+ }
413
+ function Ft() {
414
+ U.value.showDataLabels = !U.value.showDataLabels;
415
+ }
416
+ function It() {
417
+ U.value.showTooltip = !U.value.showTooltip;
418
+ }
419
+ function Lt() {
420
+ U.value.showZoom = !U.value.showZoom;
421
+ }
422
+ let Z = S(!1);
423
+ function Rt() {
424
+ Z.value = !Z.value;
425
+ }
426
+ let zt = u(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = be(z, {
427
+ x: 0,
428
+ y: 0,
429
+ width: Math.max(10, W.value.width),
430
+ height: Math.max(10, W.value.height)
431
+ }, P.value.style.chart.zoom.speed, zt);
432
+ function Ut(e) {
433
+ P.value.events.datapointClick && P.value.events.datapointClick({
434
+ datapoint: e,
435
+ seriesIndex: -1
436
+ }), nt("selectNode", e);
437
+ }
438
+ async function Wt({ scale: e = 2 } = {}) {
439
+ if (!A.value) return;
440
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
441
+ domElement: A.value,
442
+ base64: !0,
443
+ img: !0,
444
+ scale: e
445
+ });
446
+ return {
447
+ imageUri: i,
448
+ base64: a,
449
+ title: P.value.style.chart.title.text,
450
+ width: t,
451
+ height: n,
452
+ aspectRatio: r
453
+ };
454
+ }
455
+ let $ = u(() => {
456
+ let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
457
+ return {
458
+ component: e ? Qe : We,
459
+ title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
460
+ props: e ? {
461
+ backgroundColor: P.value.table.th.backgroundColor,
462
+ color: P.value.table.th.color,
463
+ headerColor: P.value.table.th.color,
464
+ headerBg: P.value.table.th.backgroundColor,
465
+ isFullscreen: X.value,
466
+ fullscreenParent: A.value,
467
+ forcedWidth: Math.min(800, window.innerWidth * .8),
468
+ isCursorPointer: F.value
469
+ } : {
470
+ hideDetails: !0,
471
+ config: {
472
+ open: t,
473
+ maxHeight: 1e4,
474
+ body: {
475
+ backgroundColor: P.value.style.chart.backgroundColor,
476
+ color: P.value.style.chart.color
477
+ },
478
+ head: {
479
+ backgroundColor: P.value.style.chart.backgroundColor,
480
+ color: P.value.style.chart.color
481
+ }
482
+ }
483
+ }
484
+ };
485
+ });
486
+ T(() => U.value.showTable, (e) => {
487
+ P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
488
+ });
489
+ function Gt() {
490
+ U.value.showTable = !1, dt.value && dt.value.setTableIconState(!1);
491
+ }
492
+ let Kt = u(() => P.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
493
+ svg: z,
494
+ title: u(() => P.value.style.chart.title),
495
+ backgroundColor: Kt
496
+ });
497
+ async function Yt({ isCb: e }) {
498
+ N.value = !0, await v();
499
+ try {
500
+ if (e) {
501
+ let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
502
+ await Promise.resolve(P.value.userOptions.callbacks.svg({
503
+ blob: e,
504
+ url: t,
505
+ text: n,
506
+ dataUrl: r
507
+ }));
508
+ } else await Promise.resolve(qt());
509
+ } finally {
510
+ N.value = !1;
511
+ }
512
+ }
513
+ function Xt(e) {
514
+ if (e?.stage === "start") {
515
+ M.value = !0;
516
+ return;
517
+ }
518
+ if (e?.stage === "end") {
519
+ M.value = !1;
520
+ return;
521
+ }
522
+ vt();
523
+ }
524
+ async function Zt() {
525
+ if (nt("copyAlt", {
526
+ config: P.value,
527
+ dataset: G.value
528
+ }), !P.value.userOptions.callbacks.altCopy) {
529
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
530
+ return;
531
+ }
532
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
533
+ config: P.value,
534
+ dataset: G.value
535
+ }));
536
+ }
537
+ let Qt = u(() => P.value.style.chart.color);
538
+ return he({
539
+ getData: Mt,
540
+ getImage: Wt,
541
+ generatePdf: _t,
542
+ generateCsv: jt,
543
+ generateImage: vt,
544
+ generateSvg: Yt,
545
+ toggleTable: Pt,
546
+ toggleLabels: Ft,
547
+ toggleTooltip: It,
548
+ toggleAnnotator: Rt,
549
+ toggleFullscreen: Nt,
550
+ toggleZoom: Lt,
551
+ copyAlt: Zt
552
+ }), (e, t) => (x(), p("div", {
553
+ ref_key: "moleculeChart",
554
+ ref: A,
555
+ class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
556
+ style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
557
+ id: `cluster_${ot.value}`,
558
+ onMouseleave: t[2] ||= (e) => {
559
+ q.value = null, J.value = null, w(pt)(!1);
560
+ },
561
+ onMouseenter: t[3] ||= () => w(pt)(!0)
562
+ }, [
563
+ P.value.userOptions.buttons.annotator && w(z) ? (x(), d(w(Ke), {
564
+ key: 0,
565
+ svgRef: w(z),
566
+ backgroundColor: P.value.style.chart.backgroundColor,
567
+ color: P.value.style.chart.color,
568
+ active: Z.value,
569
+ isCursorPointer: F.value,
570
+ onClose: Rt
571
+ }, {
572
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
573
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
574
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
575
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
576
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
577
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
578
+ _: 3
579
+ }, 8, [
580
+ "svgRef",
581
+ "backgroundColor",
582
+ "color",
583
+ "active",
584
+ "isCursorPointer"
585
+ ])) : f("", !0),
586
+ yt.value ? (x(), p("div", Pe, null, 512)) : f("", !0),
587
+ P.value.style.chart.title.text ? (x(), p("div", Fe, [(x(), d(w(D), {
588
+ key: `title_${lt.value}`,
589
+ config: {
590
+ title: {
591
+ cy: "molecule-div-title",
592
+ ...P.value.style.chart.title
593
+ },
594
+ subtitle: {
595
+ cy: "molecule-div-subtitle",
596
+ ...P.value.style.chart.title.subtitle
597
+ }
598
+ }
599
+ }, null, 8, ["config"]))])) : f("", !0),
600
+ P.value.userOptions.show && rt.value && (w(mt) || w(R)) ? (x(), d(w(qe), {
601
+ ref_key: "userOptionsRef",
602
+ ref: dt,
603
+ key: `user_options_${ct.value}`,
604
+ backgroundColor: P.value.style.chart.backgroundColor,
605
+ color: P.value.style.chart.color,
606
+ isPrinting: w(V),
607
+ isImaging: w(H),
608
+ uid: ot.value,
609
+ hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
610
+ hasPdf: P.value.userOptions.buttons.pdf,
611
+ hasXls: P.value.userOptions.buttons.csv,
612
+ hasImg: P.value.userOptions.buttons.img,
613
+ hasSvg: P.value.userOptions.buttons.svg,
614
+ hasTable: P.value.userOptions.buttons.table,
615
+ hasLabel: P.value.userOptions.buttons.labels,
616
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
617
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
618
+ isTooltip: U.value.showTooltip,
619
+ titles: { ...P.value.userOptions.buttonTitles },
620
+ chartElement: A.value,
621
+ position: P.value.userOptions.position,
622
+ hasAnnotator: P.value.userOptions.buttons.annotator,
623
+ isAnnotation: Z.value,
624
+ callbacks: P.value.userOptions.callbacks,
625
+ printScale: P.value.userOptions.print.scale,
626
+ tableDialog: P.value.table.useDialog,
627
+ hasZoom: P.value.userOptions.buttons.zoom,
628
+ isZoom: U.value.showZoom,
629
+ isCursorPointer: F.value,
630
+ onToggleFullscreen: Nt,
631
+ onGeneratePdf: w(_t),
632
+ onGenerateCsv: jt,
633
+ onGenerateImage: Xt,
634
+ onGenerateSvg: Yt,
635
+ onToggleTable: Pt,
636
+ onToggleLabels: Ft,
637
+ onToggleTooltip: It,
638
+ onToggleAnnotator: Rt,
639
+ onToggleZoom: Lt,
640
+ onCopyAlt: Zt,
641
+ style: b({ visibility: w(mt) ? w(R) ? "visible" : "hidden" : "visible" })
642
+ }, Se({ _: 2 }, [
643
+ e.$slots.menuIcon ? {
644
+ name: "menuIcon",
645
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
646
+ isOpen: t,
647
+ color: n
648
+ })), void 0, !0)]),
649
+ key: "0"
650
+ } : void 0,
651
+ e.$slots.optionTooltip ? {
652
+ name: "optionTooltip",
653
+ fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
654
+ key: "1"
655
+ } : void 0,
656
+ e.$slots.optionPdf ? {
657
+ name: "optionPdf",
658
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
659
+ key: "2"
660
+ } : void 0,
661
+ e.$slots.optionCsv ? {
662
+ name: "optionCsv",
663
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
664
+ key: "3"
665
+ } : void 0,
666
+ e.$slots.optionImg ? {
667
+ name: "optionImg",
668
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
669
+ key: "4"
670
+ } : void 0,
671
+ e.$slots.optionSvg ? {
672
+ name: "optionSvg",
673
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
674
+ key: "5"
675
+ } : void 0,
676
+ e.$slots.optionTable ? {
677
+ name: "optionTable",
678
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
679
+ key: "6"
680
+ } : void 0,
681
+ e.$slots.optionLabels ? {
682
+ name: "optionLabels",
683
+ fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
684
+ key: "7"
685
+ } : void 0,
686
+ e.$slots.optionFullscreen ? {
687
+ name: "optionFullscreen",
688
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
689
+ toggleFullscreen: t,
690
+ isFullscreen: n
691
+ })), void 0, !0)]),
692
+ key: "8"
693
+ } : void 0,
694
+ e.$slots.optionAnnotator ? {
695
+ name: "optionAnnotator",
696
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
697
+ toggleAnnotator: t,
698
+ isAnnotator: n
699
+ })), void 0, !0)]),
700
+ key: "9"
701
+ } : void 0,
702
+ e.$slots.optionZoom ? {
703
+ name: "optionZoom",
704
+ fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", y(_({
705
+ toggleZoom: t,
706
+ isZoomLocked: n
707
+ })), void 0, !0)]),
708
+ key: "10"
709
+ } : void 0,
710
+ e.$slots.optionAltCopy ? {
711
+ name: "optionAltCopy",
712
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
713
+ key: "11"
714
+ } : void 0,
715
+ e.$slots["custom-menu-before"] ? {
716
+ name: "custom-menu-before",
717
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
718
+ key: "12"
719
+ } : void 0,
720
+ e.$slots["custom-menu-after"] ? {
721
+ name: "custom-menu-after",
722
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
723
+ key: "13"
724
+ } : void 0
725
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.style".split("."))) : f("", !0),
726
+ (x(), p("svg", {
727
+ ref_key: "svgRef",
728
+ ref: z,
729
+ key: `svg_${ht.value}`,
730
+ xmlns: w(ae),
731
+ viewBox: `${w(Q).x} ${w(Q).y} ${w(Q).width} ${w(Q).height}`,
732
+ class: Te({
733
+ "vue-data-ui-fullscreen--on": X.value,
734
+ "vue-data-ui-fulscreen--off": !X.value
735
+ }),
736
+ style: b(`overflow: hidden; background:transparent;color:${P.value.style.chart.color}`)
737
+ }, [
738
+ h(w(Je)),
739
+ e.$slots["chart-background"] ? (x(), p("foreignObject", {
740
+ key: 0,
741
+ x: 0,
742
+ y: 0,
743
+ width: W.value.width <= 0 ? 10 : W.value.width,
744
+ height: W.value.height <= 0 ? 10 : W.value.height,
745
+ style: { pointerEvents: "none" }
746
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : f("", !0),
747
+ m("defs", null, [(x(!0), p(xe, null, De(Object.keys(Tt.value), (e, t) => (x(), d(ge, {
748
+ t: "radial",
749
+ id: `gradient_${e}`,
750
+ key: `gradient_${e}_${t}`,
751
+ cx: "50%",
752
+ cy: "30%",
753
+ r: "50%",
754
+ fx: "50%",
755
+ fy: "50%",
756
+ stops: [[
757
+ "0%",
758
+ w(r)(e, .5),
759
+ 1
760
+ ], [
761
+ "100%",
762
+ e,
763
+ 1
764
+ ]]
765
+ }, null, 8, ["id", "stops"]))), 128))]),
766
+ h(w(Ye), {
767
+ dataset: G.value,
768
+ color: P.value.style.chart.links.stroke,
769
+ backgroundColor: P.value.style.chart.backgroundColor,
770
+ useChildColor: P.value.style.chart.links.useChildColor
771
+ }, null, 8, [
772
+ "dataset",
773
+ "color",
774
+ "backgroundColor",
775
+ "useChildColor"
776
+ ]),
777
+ h(w(Ze), {
778
+ dataset: G.value,
779
+ hoveredUid: J.value,
780
+ stroke: P.value.style.chart.nodes.stroke,
781
+ strokeHovered: P.value.style.chart.nodes.strokeHovered,
782
+ onClick: Ut,
783
+ onHover: Ot
784
+ }, {
785
+ node: E(({ node: t }) => [C(e.$slots, "node", y(_({ node: t })), void 0, !0)]),
786
+ "node-svg": E(({ nodeSvg: t }) => [C(e.$slots, "node-svg", y(_({ nodeSvg: t })), void 0, !0)]),
787
+ _: 3
788
+ }, 8, [
789
+ "dataset",
790
+ "hoveredUid",
791
+ "stroke",
792
+ "strokeHovered"
793
+ ]),
794
+ U.value.showDataLabels && !w(I) ? (x(), d(w(Xe), {
795
+ key: 1,
796
+ dataset: G.value,
797
+ color: P.value.style.chart.color,
798
+ hoveredUid: J.value
799
+ }, null, 8, [
800
+ "dataset",
801
+ "color",
802
+ "hoveredUid"
803
+ ])) : f("", !0),
804
+ C(e.$slots, "svg", { svg: {
805
+ ...W.value,
806
+ drawingArea: { ...w(Q) },
807
+ isPrintingImg: w(V) || w(H) || M.value,
808
+ isPrintingSvg: N.value
809
+ } }, void 0, !0)
810
+ ], 14, Ie)),
811
+ e.$slots.watermark ? (x(), p("div", Re, [C(e.$slots, "watermark", y(_({ isPrinting: w(V) || w(H) || M.value || N.value })), void 0, !0)])) : f("", !0),
812
+ w(Vt) ? (x(), p("div", ze, [C(e.$slots, "reset-action", { reset: w(Bt) }, () => [m("button", {
813
+ "data-cy-reset": "",
814
+ tabindex: "0",
815
+ role: "button",
816
+ class: "vue-data-ui-refresh-button",
817
+ style: b({
818
+ background: P.value.style.chart.backgroundColor,
819
+ cursor: F.value ? "pointer" : "default"
820
+ }),
821
+ onClick: t[0] ||= (e) => w(Bt)(!0)
822
+ }, [h(w(Ue), {
823
+ name: "refresh",
824
+ stroke: P.value.style.chart.color
825
+ }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0),
826
+ e.$slots.source ? (x(), p("div", Be, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
827
+ h(w(He), {
828
+ teleportTo: P.value.style.chart.tooltip.teleportTo,
829
+ show: U.value.showTooltip && st.value,
830
+ backgroundColor: P.value.style.chart.tooltip.backgroundColor,
831
+ color: P.value.style.chart.tooltip.color,
832
+ borderRadius: P.value.style.chart.tooltip.borderRadius,
833
+ borderColor: P.value.style.chart.tooltip.borderColor,
834
+ borderWidth: P.value.style.chart.tooltip.borderWidth,
835
+ fontSize: P.value.style.chart.tooltip.fontSize,
836
+ backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
837
+ position: P.value.style.chart.tooltip.position,
838
+ offsetX: P.value.style.chart.tooltip.offsetX,
839
+ offsetY: P.value.style.chart.tooltip.offsetY,
840
+ parent: A.value,
841
+ content: k.value,
842
+ isFullscreen: X.value,
843
+ isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
844
+ smooth: P.value.style.chart.tooltip.smooth,
845
+ backdropFilter: P.value.style.chart.tooltip.backdropFilter,
846
+ smoothForce: P.value.style.chart.tooltip.smoothForce,
847
+ smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
848
+ }, {
849
+ "tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...K.value })), void 0, !0)]),
850
+ tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...K.value })), void 0, !0)]),
851
+ "tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...K.value })), void 0, !0)]),
852
+ _: 3
853
+ }, 8, [
854
+ "teleportTo",
855
+ "show",
856
+ "backgroundColor",
857
+ "color",
858
+ "borderRadius",
859
+ "borderColor",
860
+ "borderWidth",
861
+ "fontSize",
862
+ "backgroundOpacity",
863
+ "position",
864
+ "offsetX",
865
+ "offsetY",
866
+ "parent",
867
+ "content",
868
+ "isFullscreen",
869
+ "isCustom",
870
+ "smooth",
871
+ "backdropFilter",
872
+ "smoothForce",
873
+ "smoothSnapThreshold"
874
+ ]),
875
+ rt.value && P.value.userOptions.buttons.table ? (x(), d(Oe($.value.component), we({ key: 7 }, $.value.props, {
876
+ ref_key: "tableUnit",
877
+ ref: j,
878
+ onClose: Gt
879
+ }), Se({
880
+ content: E(() => [(x(), d(w(Ge), {
881
+ key: `table_${ut.value}`,
882
+ colNames: Y.value.colNames,
883
+ head: Y.value.head,
884
+ body: Y.value.body,
885
+ config: Y.value.config,
886
+ title: P.value.table.useDialog ? "" : $.value.title,
887
+ withCloseButton: !P.value.table.useDialog,
888
+ isCursorPointer: F.value,
889
+ onClose: Gt
890
+ }, {
891
+ th: E(({ th: e }) => [m("div", {
892
+ innerHTML: e,
893
+ style: {
894
+ display: "flex",
895
+ "align-items": "center"
896
+ }
897
+ }, null, 8, Ve)]),
898
+ td: E(({ td: e }) => [Ce(ke(e.name || e), 1)]),
899
+ _: 1
900
+ }, 8, [
901
+ "colNames",
902
+ "head",
903
+ "body",
904
+ "config",
905
+ "title",
906
+ "withCloseButton",
907
+ "isCursorPointer"
908
+ ]))]),
909
+ _: 2
910
+ }, [P.value.table.useDialog ? {
911
+ name: "title",
912
+ fn: E(() => [Ce(ke($.value.title), 1)]),
913
+ key: "0"
914
+ } : void 0, P.value.table.useDialog ? {
915
+ name: "actions",
916
+ fn: E(() => [m("button", {
917
+ tabindex: "0",
918
+ class: "vue-ui-user-options-button",
919
+ onClick: t[1] ||= (e) => jt(P.value.userOptions.callbacks.csv),
920
+ style: b({ cursor: F.value ? "pointer" : "default" })
921
+ }, [h(w(Ue), {
922
+ name: "fileCsv",
923
+ stroke: $.value.props.color
924
+ }, null, 8, ["stroke"])], 4)]),
925
+ key: "1"
926
+ } : void 0]), 1040)) : f("", !0),
927
+ C(e.$slots, "skeleton", {}, () => [w(I) ? (x(), d(ue, { key: 0 })) : f("", !0)], !0)
928
+ ], 46, Ne));
929
+ }
930
+ }, [["__scopeId", "data-v-96a218d7"]]);
931
+ //#endregion
932
+ export { Me as n, D as t };