vue-data-ui 3.22.8 → 3.22.10

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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.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/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -0,0 +1,931 @@
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-CnHx5WfV.js";
3
+ import { t as se } from "./useConfig-DYM3f6EI.js";
4
+ import { t as ce } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as de } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as fe } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as me } from "./img-CNdXiUfZ.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-Cr3jP7Qd.js").then((e) => e.t)), He = g(() => import("./Tooltip-CDbLl3TD.js")), Ue = g(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), We = g(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Ge = g(() => import("./DataTable-ByZy5gt1.js")), Ke = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), qe = g(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Je = g(() => import("./PackageVersion-BoTvk0i5.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-CdkCqtag.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
+ r[e] = `gradient_${e.slice(1)}`;
300
+ }), r;
301
+ }
302
+ let Tt = u(() => wt(G.value)), G = u(() => Ct(s(L.value))), K = S(null);
303
+ function Et(e) {
304
+ K.value = {
305
+ datapoint: e,
306
+ seriesIndex: -1,
307
+ series: G.value,
308
+ config: P.value
309
+ };
310
+ let t = P.value.style.chart.tooltip.customFormat;
311
+ if (ne(t) && ie(() => t({
312
+ seriesIndex: -1,
313
+ datapoint: e,
314
+ series: G.value,
315
+ config: P.value
316
+ }))) k.value = t({
317
+ seriesIndex: -1,
318
+ datapoint: e,
319
+ series: G.value,
320
+ config: P.value
321
+ });
322
+ else {
323
+ let t = "";
324
+ 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>`;
325
+ }
326
+ }
327
+ let q = S(null), J = S(null), Dt = S(null);
328
+ function Ot(e) {
329
+ Dt.value = q.value, q.value = e, e ? P.value.events.datapointEnter && P.value.events.datapointEnter({
330
+ datapoint: e,
331
+ seriesIndex: -1
332
+ }) : P.value.events.datapointLeave && P.value.events.datapointLeave({
333
+ datapoint: Dt.value || q.value,
334
+ seriesIndex: -1
335
+ }), e ? (st.value = !0, Et(e), J.value = e.uid) : (st.value = !1, k.value = "", J.value = null);
336
+ }
337
+ function kt(e) {
338
+ let t = [];
339
+ function n(e) {
340
+ e.forEach((e) => {
341
+ let r = {
342
+ name: e.name,
343
+ details: e.details || "-",
344
+ ancestor: e.ancestor && e.ancestor.name || "-",
345
+ color: e.color || ""
346
+ };
347
+ t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
348
+ });
349
+ }
350
+ return n(e), t;
351
+ }
352
+ let At = u(() => kt(G.value)), Y = u(() => ({
353
+ head: [
354
+ P.value.table.translations.nodeName,
355
+ P.value.table.translations.details,
356
+ P.value.table.translations.ancestor
357
+ ],
358
+ body: At.value.map((e, t) => [
359
+ {
360
+ color: e.color,
361
+ name: e.name
362
+ },
363
+ e.details,
364
+ e.ancestor || ""
365
+ ]),
366
+ config: {
367
+ th: {
368
+ backgroundColor: P.value.table.th.backgroundColor,
369
+ color: P.value.table.th.color,
370
+ outline: P.value.table.th.outline
371
+ },
372
+ td: {
373
+ backgroundColor: P.value.table.td.backgroundColor,
374
+ color: P.value.table.td.color,
375
+ outline: P.value.table.td.outline
376
+ },
377
+ breakpoint: P.value.table.responsiveBreakpoint
378
+ },
379
+ colNames: [
380
+ P.value.table.translations.nodeName,
381
+ P.value.table.translations.details,
382
+ P.value.table.translations.ancestor
383
+ ]
384
+ }));
385
+ function jt(e = null) {
386
+ v(() => {
387
+ let t = Y.value.body.map((e, t) => [
388
+ [e[0].name],
389
+ [e[1]],
390
+ [e[2]]
391
+ ]), n = i([
392
+ [P.value.style.chart.title.text],
393
+ [P.value.style.chart.title.subtitle.text],
394
+ [[...Y.value.head]]
395
+ ].concat(t));
396
+ e ? e(n) : o({
397
+ csvContent: n,
398
+ title: P.value.style.chart.title.text || "vue-ui-molecule"
399
+ });
400
+ });
401
+ }
402
+ function Mt() {
403
+ return G.value;
404
+ }
405
+ let X = S(!1);
406
+ function Nt(e) {
407
+ X.value = e, ct.value += 1;
408
+ }
409
+ function Pt() {
410
+ U.value.showTable = !U.value.showTable;
411
+ }
412
+ function Ft() {
413
+ U.value.showDataLabels = !U.value.showDataLabels;
414
+ }
415
+ function It() {
416
+ U.value.showTooltip = !U.value.showTooltip;
417
+ }
418
+ function Lt() {
419
+ U.value.showZoom = !U.value.showZoom;
420
+ }
421
+ let Z = S(!1);
422
+ function Rt() {
423
+ Z.value = !Z.value;
424
+ }
425
+ let zt = u(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = be(z, {
426
+ x: 0,
427
+ y: 0,
428
+ width: Math.max(10, W.value.width),
429
+ height: Math.max(10, W.value.height)
430
+ }, P.value.style.chart.zoom.speed, zt);
431
+ function Ut(e) {
432
+ P.value.events.datapointClick && P.value.events.datapointClick({
433
+ datapoint: e,
434
+ seriesIndex: -1
435
+ }), nt("selectNode", e);
436
+ }
437
+ async function Wt({ scale: e = 2 } = {}) {
438
+ if (!A.value) return;
439
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
440
+ domElement: A.value,
441
+ base64: !0,
442
+ img: !0,
443
+ scale: e
444
+ });
445
+ return {
446
+ imageUri: i,
447
+ base64: a,
448
+ title: P.value.style.chart.title.text,
449
+ width: t,
450
+ height: n,
451
+ aspectRatio: r
452
+ };
453
+ }
454
+ let $ = u(() => {
455
+ let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
456
+ return {
457
+ component: e ? Qe : We,
458
+ title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
459
+ props: e ? {
460
+ backgroundColor: P.value.table.th.backgroundColor,
461
+ color: P.value.table.th.color,
462
+ headerColor: P.value.table.th.color,
463
+ headerBg: P.value.table.th.backgroundColor,
464
+ isFullscreen: X.value,
465
+ fullscreenParent: A.value,
466
+ forcedWidth: Math.min(800, window.innerWidth * .8),
467
+ isCursorPointer: F.value
468
+ } : {
469
+ hideDetails: !0,
470
+ config: {
471
+ open: t,
472
+ maxHeight: 1e4,
473
+ body: {
474
+ backgroundColor: P.value.style.chart.backgroundColor,
475
+ color: P.value.style.chart.color
476
+ },
477
+ head: {
478
+ backgroundColor: P.value.style.chart.backgroundColor,
479
+ color: P.value.style.chart.color
480
+ }
481
+ }
482
+ }
483
+ };
484
+ });
485
+ T(() => U.value.showTable, (e) => {
486
+ P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
487
+ });
488
+ function Gt() {
489
+ U.value.showTable = !1, dt.value && dt.value.setTableIconState(!1);
490
+ }
491
+ let Kt = u(() => P.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
492
+ svg: z,
493
+ title: u(() => P.value.style.chart.title),
494
+ backgroundColor: Kt
495
+ });
496
+ async function Yt({ isCb: e }) {
497
+ N.value = !0, await v();
498
+ try {
499
+ if (e) {
500
+ let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
501
+ await Promise.resolve(P.value.userOptions.callbacks.svg({
502
+ blob: e,
503
+ url: t,
504
+ text: n,
505
+ dataUrl: r
506
+ }));
507
+ } else await Promise.resolve(qt());
508
+ } finally {
509
+ N.value = !1;
510
+ }
511
+ }
512
+ function Xt(e) {
513
+ if (e?.stage === "start") {
514
+ M.value = !0;
515
+ return;
516
+ }
517
+ if (e?.stage === "end") {
518
+ M.value = !1;
519
+ return;
520
+ }
521
+ vt();
522
+ }
523
+ async function Zt() {
524
+ if (nt("copyAlt", {
525
+ config: P.value,
526
+ dataset: G.value
527
+ }), !P.value.userOptions.callbacks.altCopy) {
528
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
529
+ return;
530
+ }
531
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
532
+ config: P.value,
533
+ dataset: G.value
534
+ }));
535
+ }
536
+ let Qt = u(() => P.value.style.chart.color);
537
+ return he({
538
+ getData: Mt,
539
+ getImage: Wt,
540
+ generatePdf: _t,
541
+ generateCsv: jt,
542
+ generateImage: vt,
543
+ generateSvg: Yt,
544
+ toggleTable: Pt,
545
+ toggleLabels: Ft,
546
+ toggleTooltip: It,
547
+ toggleAnnotator: Rt,
548
+ toggleFullscreen: Nt,
549
+ toggleZoom: Lt,
550
+ copyAlt: Zt
551
+ }), (e, t) => (x(), p("div", {
552
+ ref_key: "moleculeChart",
553
+ ref: A,
554
+ class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
555
+ style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
556
+ id: `cluster_${ot.value}`,
557
+ onMouseleave: t[2] ||= (e) => {
558
+ q.value = null, J.value = null, w(pt)(!1);
559
+ },
560
+ onMouseenter: t[3] ||= () => w(pt)(!0)
561
+ }, [
562
+ P.value.userOptions.buttons.annotator && w(z) ? (x(), d(w(Ke), {
563
+ key: 0,
564
+ svgRef: w(z),
565
+ backgroundColor: P.value.style.chart.backgroundColor,
566
+ color: P.value.style.chart.color,
567
+ active: Z.value,
568
+ isCursorPointer: F.value,
569
+ onClose: Rt
570
+ }, {
571
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
572
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
573
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
574
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
575
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
576
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
577
+ _: 3
578
+ }, 8, [
579
+ "svgRef",
580
+ "backgroundColor",
581
+ "color",
582
+ "active",
583
+ "isCursorPointer"
584
+ ])) : f("", !0),
585
+ yt.value ? (x(), p("div", Pe, null, 512)) : f("", !0),
586
+ P.value.style.chart.title.text ? (x(), p("div", Fe, [(x(), d(w(D), {
587
+ key: `title_${lt.value}`,
588
+ config: {
589
+ title: {
590
+ cy: "molecule-div-title",
591
+ ...P.value.style.chart.title
592
+ },
593
+ subtitle: {
594
+ cy: "molecule-div-subtitle",
595
+ ...P.value.style.chart.title.subtitle
596
+ }
597
+ }
598
+ }, null, 8, ["config"]))])) : f("", !0),
599
+ P.value.userOptions.show && rt.value && (w(mt) || w(R)) ? (x(), d(w(qe), {
600
+ ref_key: "userOptionsRef",
601
+ ref: dt,
602
+ key: `user_options_${ct.value}`,
603
+ backgroundColor: P.value.style.chart.backgroundColor,
604
+ color: P.value.style.chart.color,
605
+ isPrinting: w(V),
606
+ isImaging: w(H),
607
+ uid: ot.value,
608
+ hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
609
+ hasPdf: P.value.userOptions.buttons.pdf,
610
+ hasXls: P.value.userOptions.buttons.csv,
611
+ hasImg: P.value.userOptions.buttons.img,
612
+ hasSvg: P.value.userOptions.buttons.svg,
613
+ hasTable: P.value.userOptions.buttons.table,
614
+ hasLabel: P.value.userOptions.buttons.labels,
615
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
616
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
617
+ isTooltip: U.value.showTooltip,
618
+ titles: { ...P.value.userOptions.buttonTitles },
619
+ chartElement: A.value,
620
+ position: P.value.userOptions.position,
621
+ hasAnnotator: P.value.userOptions.buttons.annotator,
622
+ isAnnotation: Z.value,
623
+ callbacks: P.value.userOptions.callbacks,
624
+ printScale: P.value.userOptions.print.scale,
625
+ tableDialog: P.value.table.useDialog,
626
+ hasZoom: P.value.userOptions.buttons.zoom,
627
+ isZoom: U.value.showZoom,
628
+ isCursorPointer: F.value,
629
+ onToggleFullscreen: Nt,
630
+ onGeneratePdf: w(_t),
631
+ onGenerateCsv: jt,
632
+ onGenerateImage: Xt,
633
+ onGenerateSvg: Yt,
634
+ onToggleTable: Pt,
635
+ onToggleLabels: Ft,
636
+ onToggleTooltip: It,
637
+ onToggleAnnotator: Rt,
638
+ onToggleZoom: Lt,
639
+ onCopyAlt: Zt,
640
+ style: b({ visibility: w(mt) ? w(R) ? "visible" : "hidden" : "visible" })
641
+ }, Se({ _: 2 }, [
642
+ e.$slots.menuIcon ? {
643
+ name: "menuIcon",
644
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
645
+ isOpen: t,
646
+ color: n
647
+ })), void 0, !0)]),
648
+ key: "0"
649
+ } : void 0,
650
+ e.$slots.optionTooltip ? {
651
+ name: "optionTooltip",
652
+ fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
653
+ key: "1"
654
+ } : void 0,
655
+ e.$slots.optionPdf ? {
656
+ name: "optionPdf",
657
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
658
+ key: "2"
659
+ } : void 0,
660
+ e.$slots.optionCsv ? {
661
+ name: "optionCsv",
662
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
663
+ key: "3"
664
+ } : void 0,
665
+ e.$slots.optionImg ? {
666
+ name: "optionImg",
667
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
668
+ key: "4"
669
+ } : void 0,
670
+ e.$slots.optionSvg ? {
671
+ name: "optionSvg",
672
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
673
+ key: "5"
674
+ } : void 0,
675
+ e.$slots.optionTable ? {
676
+ name: "optionTable",
677
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
678
+ key: "6"
679
+ } : void 0,
680
+ e.$slots.optionLabels ? {
681
+ name: "optionLabels",
682
+ fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
683
+ key: "7"
684
+ } : void 0,
685
+ e.$slots.optionFullscreen ? {
686
+ name: "optionFullscreen",
687
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
688
+ toggleFullscreen: t,
689
+ isFullscreen: n
690
+ })), void 0, !0)]),
691
+ key: "8"
692
+ } : void 0,
693
+ e.$slots.optionAnnotator ? {
694
+ name: "optionAnnotator",
695
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
696
+ toggleAnnotator: t,
697
+ isAnnotator: n
698
+ })), void 0, !0)]),
699
+ key: "9"
700
+ } : void 0,
701
+ e.$slots.optionZoom ? {
702
+ name: "optionZoom",
703
+ fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", y(_({
704
+ toggleZoom: t,
705
+ isZoomLocked: n
706
+ })), void 0, !0)]),
707
+ key: "10"
708
+ } : void 0,
709
+ e.$slots.optionAltCopy ? {
710
+ name: "optionAltCopy",
711
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
712
+ key: "11"
713
+ } : void 0,
714
+ e.$slots["custom-menu-before"] ? {
715
+ name: "custom-menu-before",
716
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
717
+ key: "12"
718
+ } : void 0,
719
+ e.$slots["custom-menu-after"] ? {
720
+ name: "custom-menu-after",
721
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
722
+ key: "13"
723
+ } : void 0
724
+ ]), 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),
725
+ (x(), p("svg", {
726
+ ref_key: "svgRef",
727
+ ref: z,
728
+ key: `svg_${ht.value}`,
729
+ xmlns: w(ae),
730
+ viewBox: `${w(Q).x} ${w(Q).y} ${w(Q).width} ${w(Q).height}`,
731
+ class: Te({
732
+ "vue-data-ui-fullscreen--on": X.value,
733
+ "vue-data-ui-fulscreen--off": !X.value
734
+ }),
735
+ style: b(`overflow: hidden; background:transparent;color:${P.value.style.chart.color}`)
736
+ }, [
737
+ h(w(Je)),
738
+ e.$slots["chart-background"] ? (x(), p("foreignObject", {
739
+ key: 0,
740
+ x: 0,
741
+ y: 0,
742
+ width: W.value.width <= 0 ? 10 : W.value.width,
743
+ height: W.value.height <= 0 ? 10 : W.value.height,
744
+ style: { pointerEvents: "none" }
745
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : f("", !0),
746
+ m("defs", null, [(x(!0), p(xe, null, De(Object.keys(Tt.value), (e, t) => (x(), d(ge, {
747
+ t: "radial",
748
+ id: `gradient_${e}`,
749
+ key: `gradient_${e}_${t}`,
750
+ cx: "50%",
751
+ cy: "30%",
752
+ r: "50%",
753
+ fx: "50%",
754
+ fy: "50%",
755
+ stops: [[
756
+ "0%",
757
+ w(r)(e, .5),
758
+ 1
759
+ ], [
760
+ "100%",
761
+ e,
762
+ 1
763
+ ]]
764
+ }, null, 8, ["id", "stops"]))), 128))]),
765
+ h(w(Ye), {
766
+ dataset: G.value,
767
+ color: P.value.style.chart.links.stroke,
768
+ backgroundColor: P.value.style.chart.backgroundColor,
769
+ useChildColor: P.value.style.chart.links.useChildColor
770
+ }, null, 8, [
771
+ "dataset",
772
+ "color",
773
+ "backgroundColor",
774
+ "useChildColor"
775
+ ]),
776
+ h(w(Ze), {
777
+ dataset: G.value,
778
+ hoveredUid: J.value,
779
+ stroke: P.value.style.chart.nodes.stroke,
780
+ strokeHovered: P.value.style.chart.nodes.strokeHovered,
781
+ onClick: Ut,
782
+ onHover: Ot
783
+ }, {
784
+ node: E(({ node: t }) => [C(e.$slots, "node", y(_({ node: t })), void 0, !0)]),
785
+ "node-svg": E(({ nodeSvg: t }) => [C(e.$slots, "node-svg", y(_({ nodeSvg: t })), void 0, !0)]),
786
+ _: 3
787
+ }, 8, [
788
+ "dataset",
789
+ "hoveredUid",
790
+ "stroke",
791
+ "strokeHovered"
792
+ ]),
793
+ U.value.showDataLabels && !w(I) ? (x(), d(w(Xe), {
794
+ key: 1,
795
+ dataset: G.value,
796
+ color: P.value.style.chart.color,
797
+ hoveredUid: J.value
798
+ }, null, 8, [
799
+ "dataset",
800
+ "color",
801
+ "hoveredUid"
802
+ ])) : f("", !0),
803
+ C(e.$slots, "svg", { svg: {
804
+ ...W.value,
805
+ drawingArea: { ...w(Q) },
806
+ isPrintingImg: w(V) || w(H) || M.value,
807
+ isPrintingSvg: N.value
808
+ } }, void 0, !0)
809
+ ], 14, Ie)),
810
+ 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),
811
+ w(Vt) ? (x(), p("div", ze, [C(e.$slots, "reset-action", { reset: w(Bt) }, () => [m("button", {
812
+ "data-cy-reset": "",
813
+ tabindex: "0",
814
+ role: "button",
815
+ class: "vue-data-ui-refresh-button",
816
+ style: b({
817
+ background: P.value.style.chart.backgroundColor,
818
+ cursor: F.value ? "pointer" : "default"
819
+ }),
820
+ onClick: t[0] ||= (e) => w(Bt)(!0)
821
+ }, [h(w(Ue), {
822
+ name: "refresh",
823
+ stroke: P.value.style.chart.color
824
+ }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0),
825
+ e.$slots.source ? (x(), p("div", Be, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
826
+ h(w(He), {
827
+ teleportTo: P.value.style.chart.tooltip.teleportTo,
828
+ show: U.value.showTooltip && st.value,
829
+ backgroundColor: P.value.style.chart.tooltip.backgroundColor,
830
+ color: P.value.style.chart.tooltip.color,
831
+ borderRadius: P.value.style.chart.tooltip.borderRadius,
832
+ borderColor: P.value.style.chart.tooltip.borderColor,
833
+ borderWidth: P.value.style.chart.tooltip.borderWidth,
834
+ fontSize: P.value.style.chart.tooltip.fontSize,
835
+ backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
836
+ position: P.value.style.chart.tooltip.position,
837
+ offsetX: P.value.style.chart.tooltip.offsetX,
838
+ offsetY: P.value.style.chart.tooltip.offsetY,
839
+ parent: A.value,
840
+ content: k.value,
841
+ isFullscreen: X.value,
842
+ isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
843
+ smooth: P.value.style.chart.tooltip.smooth,
844
+ backdropFilter: P.value.style.chart.tooltip.backdropFilter,
845
+ smoothForce: P.value.style.chart.tooltip.smoothForce,
846
+ smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
847
+ }, {
848
+ "tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...K.value })), void 0, !0)]),
849
+ tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...K.value })), void 0, !0)]),
850
+ "tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...K.value })), void 0, !0)]),
851
+ _: 3
852
+ }, 8, [
853
+ "teleportTo",
854
+ "show",
855
+ "backgroundColor",
856
+ "color",
857
+ "borderRadius",
858
+ "borderColor",
859
+ "borderWidth",
860
+ "fontSize",
861
+ "backgroundOpacity",
862
+ "position",
863
+ "offsetX",
864
+ "offsetY",
865
+ "parent",
866
+ "content",
867
+ "isFullscreen",
868
+ "isCustom",
869
+ "smooth",
870
+ "backdropFilter",
871
+ "smoothForce",
872
+ "smoothSnapThreshold"
873
+ ]),
874
+ rt.value && P.value.userOptions.buttons.table ? (x(), d(Oe($.value.component), we({ key: 7 }, $.value.props, {
875
+ ref_key: "tableUnit",
876
+ ref: j,
877
+ onClose: Gt
878
+ }), Se({
879
+ content: E(() => [(x(), d(w(Ge), {
880
+ key: `table_${ut.value}`,
881
+ colNames: Y.value.colNames,
882
+ head: Y.value.head,
883
+ body: Y.value.body,
884
+ config: Y.value.config,
885
+ title: P.value.table.useDialog ? "" : $.value.title,
886
+ withCloseButton: !P.value.table.useDialog,
887
+ isCursorPointer: F.value,
888
+ onClose: Gt
889
+ }, {
890
+ th: E(({ th: e }) => [m("div", {
891
+ innerHTML: e,
892
+ style: {
893
+ display: "flex",
894
+ "align-items": "center"
895
+ }
896
+ }, null, 8, Ve)]),
897
+ td: E(({ td: e }) => [Ce(ke(e.name || e), 1)]),
898
+ _: 1
899
+ }, 8, [
900
+ "colNames",
901
+ "head",
902
+ "body",
903
+ "config",
904
+ "title",
905
+ "withCloseButton",
906
+ "isCursorPointer"
907
+ ]))]),
908
+ _: 2
909
+ }, [P.value.table.useDialog ? {
910
+ name: "title",
911
+ fn: E(() => [Ce(ke($.value.title), 1)]),
912
+ key: "0"
913
+ } : void 0, P.value.table.useDialog ? {
914
+ name: "actions",
915
+ fn: E(() => [m("button", {
916
+ tabindex: "0",
917
+ class: "vue-ui-user-options-button",
918
+ onClick: t[1] ||= (e) => jt(P.value.userOptions.callbacks.csv),
919
+ style: b({ cursor: F.value ? "pointer" : "default" })
920
+ }, [h(w(Ue), {
921
+ name: "fileCsv",
922
+ stroke: $.value.props.color
923
+ }, null, 8, ["stroke"])], 4)]),
924
+ key: "1"
925
+ } : void 0]), 1040)) : f("", !0),
926
+ C(e.$slots, "skeleton", {}, () => [w(I) ? (x(), d(ue, { key: 0 })) : f("", !0)], !0)
927
+ ], 46, Ne));
928
+ }
929
+ }, [["__scopeId", "data-v-96a218d7"]]);
930
+ //#endregion
931
+ export { Me as n, D as t };