vue-data-ui 3.22.7 → 3.22.9

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 (206) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
  3. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
  11. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
  12. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
  13. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  14. package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
  15. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
  16. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  17. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  18. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  19. package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
  90. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  91. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  92. package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
  93. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  94. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  95. package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
  96. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  97. package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/utils.d.ts +18 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  104. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  105. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  106. package/dist/utils.js +24 -24
  107. package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
  108. package/dist/vue-data-ui.js +77 -77
  109. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  110. package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
  111. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
  112. package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
  113. package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
  114. package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
  115. package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
  116. package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
  117. package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
  118. package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
  120. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
  121. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
  122. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
  123. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
  124. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
  125. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
  126. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
  127. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
  128. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
  129. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  130. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
  131. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  132. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
  133. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  134. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
  135. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
  136. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
  137. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  139. package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
  140. package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
  141. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
  142. package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
  143. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
  144. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
  145. package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
  146. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
  147. package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
  148. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
  149. package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
  150. package/dist/vue-ui-rings-J990vNbX.js +1252 -0
  151. package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
  152. package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
  153. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
  154. package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
  155. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  156. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
  157. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  158. package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
  159. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
  160. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
  161. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  162. package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
  165. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
  166. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  167. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
  168. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
  169. package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
  170. package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
  171. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
  172. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
  173. package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
  174. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
  175. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
  176. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
  177. package/package.json +1 -1
  178. package/dist/BaseIcon-_-BX7be3.js +0 -502
  179. package/dist/exposedLib-Be0ifkti.js +0 -19
  180. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  182. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  183. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  184. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  185. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  186. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  187. package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
  188. package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
  189. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  190. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  191. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  192. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  193. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  194. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
  198. package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
  199. package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
  200. package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
  201. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  202. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  203. package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
  204. package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
  205. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  206. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -0,0 +1,931 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, A as n, Et as r, G as ee, Kt as i, Mt as te, S as a, T as o, Wt as s, Y as c, Z as ne, b as re, kt as ie, ot as l, t as ae, yt as oe } from "./lib-JqW18y5I.js";
3
+ import { t as se } from "./useConfig-DYM3f6EI.js";
4
+ import { t as ce } from "./usePrinter-CqqHmnBI.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 u } from "./useNestedProp-DIuuzG1r.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./img-DnP3eXuv.js";
10
+ import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as he } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
13
+ import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as ve } from "./vue_ui_molecule-CO9L59SF.js";
15
+ import { t as ye } from "./usePanZoom-CYU3B4T3.js";
16
+ import { Fragment as be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as xe, createTextVNode as Se, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ce, nextTick as y, normalizeClass as we, normalizeProps as b, normalizeStyle as x, onMounted as Te, openBlock as S, ref as C, renderList as Ee, renderSlot as w, resolveDynamicComponent as De, toDisplayString as Oe, toRefs as ke, unref as T, useCssVars as Ae, watch as E, withCtx as D } from "vue";
17
+ //#region src/components/vue-ui-molecule.vue
18
+ var je = /* @__PURE__ */ e({ default: () => O }), Me = ["id"], Ne = {
19
+ key: 1,
20
+ ref: "noTitle",
21
+ class: "vue-data-ui-no-title-space",
22
+ style: "height:36px; width: 100%;background:transparent"
23
+ }, Pe = {
24
+ key: 2,
25
+ style: "width:100%;background:transparent;"
26
+ }, Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = {
27
+ key: 4,
28
+ class: "vue-data-ui-watermark"
29
+ }, Re = {
30
+ key: 5,
31
+ "data-dom-to-png-ignore": "",
32
+ class: "reset-wrapper"
33
+ }, ze = {
34
+ key: 6,
35
+ ref: "source",
36
+ dir: "auto"
37
+ }, Be = ["innerHTML"], O = /*#__PURE__*/ me({
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: me, emit: je }) {
55
+ Ae((e) => ({ v62768f10: Qt.value }));
56
+ let O = _(() => import("./Title-CcNiYzEo.js").then((e) => e.t)), Ve = _(() => import("./Tooltip-CxOrWlFy.js")), He = _(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ue = _(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), We = _(() => import("./DataTable-BxpTMgfK.js")), Ge = _(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ke = _(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), qe = _(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Je = _(() => import("./RecursiveLinks-BygcpDiT.js")), Ye = _(() => import("./RecursiveLabels-D9rfID6q.js")), Xe = _(() => import("./RecursiveCircles-D6aDPmoe.js")), Ze = _(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_molecule: Qe } = se(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), k = e, tt = je, nt = d(() => !!k.dataset && k.dataset.length);
57
+ Te(() => {
58
+ it();
59
+ });
60
+ let rt = d(() => F.value.debug);
61
+ function it() {
62
+ ie(k.dataset) && t({
63
+ componentName: "VueUiMolecule",
64
+ type: "dataset",
65
+ debug: rt.value
66
+ });
67
+ }
68
+ let at = C(ee()), ot = C(!1), A = C(""), j = C(null), st = C(0), ct = C(0), lt = C(0), M = C(null), ut = C(null), N = C(!1), P = C(!1), F = C(V()), I = d(() => F.value.userOptions.useCursorPointer), dt = d(() => i({
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: F.value.skeletonConfig ?? {}
79
+ })), { loading: L, FINAL_DATASET: R } = le({
80
+ ...ke(k),
81
+ FINAL_CONFIG: F,
82
+ prepareConfig: V,
83
+ skeletonDataset: k.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: i({
198
+ defaultConfig: F.value,
199
+ userConfig: dt.value
200
+ })
201
+ }), { userOptionsVisible: z, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ge({ config: F.value }), { svgRef: B } = _e({ config: F.value.style.chart.title });
202
+ function V() {
203
+ let e = u({
204
+ userConfig: k.config,
205
+ defaultConfig: Qe
206
+ }), t = e.theme;
207
+ if (!t) return e;
208
+ if (!$e.value(e)) return et(e), e;
209
+ let n = u({
210
+ userConfig: ve[t] || k.config,
211
+ defaultConfig: e
212
+ }), r = u({
213
+ userConfig: k.config,
214
+ defaultConfig: n
215
+ });
216
+ return {
217
+ ...r,
218
+ customPalette: r.customPalette.length ? r.customPalette : s[t] || te
219
+ };
220
+ }
221
+ E(() => k.config, (e) => {
222
+ F.value = V(), z.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, U.value.showTable = F.value.table.show, U.value.showTooltip = F.value.style.chart.tooltip.show, U.value.showZoom = F.value.style.chart.zoom.show;
223
+ }, { deep: !0 });
224
+ let mt = C(0), ht = () => {
225
+ mt.value += 1;
226
+ };
227
+ E([() => L.value, () => R.value], async ([e]) => {
228
+ e || (await y(), W.value = St(), await y(), ht(), await y(), 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: H, isImaging: gt, generatePdf: _t, generateImage: vt } = ce({
239
+ elementId: `cluster_${at.value}`,
240
+ fileName: F.value.style.chart.title.text || "vue-ui-molecule",
241
+ options: F.value.userOptions.print
242
+ }), yt = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), bt = d(() => a(F.value.customPalette)), U = C({
243
+ showTable: F.value.table.show,
244
+ showDataLabels: !0,
245
+ showTooltip: F.value.style.chart.tooltip.show,
246
+ showZoom: F.value.style.chart.zoom.show
247
+ });
248
+ E(F, () => {
249
+ U.value = {
250
+ showTable: F.value.table.show,
251
+ showDataLabels: !0,
252
+ showTooltip: F.value.style.chart.tooltip.show,
253
+ showZoom: F.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(R.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 = C(St());
268
+ function Ct(e, t = {
269
+ x: -W.value.width / 2.43,
270
+ y: W.value.height / 2
271
+ }, r = W.value.width / 1.1, i = 24, a = 0, o = 0, s = "#BBBBBB", c = 0) {
272
+ if (!Array.isArray(e) || e.length === 0) return e;
273
+ let ne = n({
274
+ plot: t,
275
+ radius: r,
276
+ sides: e.length,
277
+ rotation: a
278
+ });
279
+ return e.forEach((e, t) => {
280
+ let n = ne.coordinates[t], ie = e.color ? (() => {
281
+ let t = re(e.color);
282
+ return t.startsWith("#") ? t : `#${t}`;
283
+ })() : null, l;
284
+ ie ? l = ie : c === 0 ? l = s : c === 1 ? (l = bt.value[o] || te[o] || s, o += 1) : l = s, e.polygonPath = { coordinates: [n] }, e.circleRadius = i, e.color = l, e.strokeWidth = Math.min(F.value.style.chart.links.strokeWidth / (c + 1), i / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, n, r / 2.9, i / 2.2, a + Math.PI * t / e.nodes.length, o, l, c + 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 = re(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 = d(() => wt(G.value)), G = d(() => Ct(c(R.value))), K = C(null);
303
+ function Et(e) {
304
+ K.value = {
305
+ datapoint: e,
306
+ seriesIndex: -1,
307
+ series: G.value,
308
+ config: F.value
309
+ };
310
+ let t = F.value.style.chart.tooltip.customFormat;
311
+ if (oe(t) && l(() => t({
312
+ seriesIndex: -1,
313
+ datapoint: e,
314
+ series: G.value,
315
+ config: F.value
316
+ }))) A.value = t({
317
+ seriesIndex: -1,
318
+ datapoint: e,
319
+ series: G.value,
320
+ config: F.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 ${F.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), A.value = `<div style="font-family:inherit">${t}</div>`;
325
+ }
326
+ }
327
+ let q = C(null), J = C(null), Dt = C(null);
328
+ function Ot(e) {
329
+ Dt.value = q.value, q.value = e, e ? F.value.events.datapointEnter && F.value.events.datapointEnter({
330
+ datapoint: e,
331
+ seriesIndex: -1
332
+ }) : F.value.events.datapointLeave && F.value.events.datapointLeave({
333
+ datapoint: Dt.value || q.value,
334
+ seriesIndex: -1
335
+ }), e ? (ot.value = !0, Et(e), J.value = e.uid) : (ot.value = !1, A.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 = d(() => kt(G.value)), Y = d(() => ({
353
+ head: [
354
+ F.value.table.translations.nodeName,
355
+ F.value.table.translations.details,
356
+ F.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: F.value.table.th.backgroundColor,
369
+ color: F.value.table.th.color,
370
+ outline: F.value.table.th.outline
371
+ },
372
+ td: {
373
+ backgroundColor: F.value.table.td.backgroundColor,
374
+ color: F.value.table.td.color,
375
+ outline: F.value.table.td.outline
376
+ },
377
+ breakpoint: F.value.table.responsiveBreakpoint
378
+ },
379
+ colNames: [
380
+ F.value.table.translations.nodeName,
381
+ F.value.table.translations.details,
382
+ F.value.table.translations.ancestor
383
+ ]
384
+ }));
385
+ function jt(e = null) {
386
+ y(() => {
387
+ let t = Y.value.body.map((e, t) => [
388
+ [e[0].name],
389
+ [e[1]],
390
+ [e[2]]
391
+ ]), n = o([
392
+ [F.value.style.chart.title.text],
393
+ [F.value.style.chart.title.subtitle.text],
394
+ [[...Y.value.head]]
395
+ ].concat(t));
396
+ e ? e(n) : ne({
397
+ csvContent: n,
398
+ title: F.value.style.chart.title.text || "vue-ui-molecule"
399
+ });
400
+ });
401
+ }
402
+ function Mt() {
403
+ return G.value;
404
+ }
405
+ let X = C(!1);
406
+ function Nt(e) {
407
+ X.value = e, st.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 = C(!1);
422
+ function Rt() {
423
+ Z.value = !Z.value;
424
+ }
425
+ let zt = d(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = ye(B, {
426
+ x: 0,
427
+ y: 0,
428
+ width: Math.max(10, W.value.width),
429
+ height: Math.max(10, W.value.height)
430
+ }, F.value.style.chart.zoom.speed, zt);
431
+ function Ut(e) {
432
+ F.value.events.datapointClick && F.value.events.datapointClick({
433
+ datapoint: e,
434
+ seriesIndex: -1
435
+ }), tt("selectNode", e);
436
+ }
437
+ async function Wt({ scale: e = 2 } = {}) {
438
+ if (!j.value) return;
439
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await pe({
440
+ domElement: j.value,
441
+ base64: !0,
442
+ img: !0,
443
+ scale: e
444
+ });
445
+ return {
446
+ imageUri: ee,
447
+ base64: i,
448
+ title: F.value.style.chart.title.text,
449
+ width: t,
450
+ height: n,
451
+ aspectRatio: r
452
+ };
453
+ }
454
+ let $ = d(() => {
455
+ let e = F.value.table.useDialog && !F.value.table.show, t = U.value.showTable;
456
+ return {
457
+ component: e ? Ze : Ue,
458
+ title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
459
+ props: e ? {
460
+ backgroundColor: F.value.table.th.backgroundColor,
461
+ color: F.value.table.th.color,
462
+ headerColor: F.value.table.th.color,
463
+ headerBg: F.value.table.th.backgroundColor,
464
+ isFullscreen: X.value,
465
+ fullscreenParent: j.value,
466
+ forcedWidth: Math.min(800, window.innerWidth * .8),
467
+ isCursorPointer: I.value
468
+ } : {
469
+ hideDetails: !0,
470
+ config: {
471
+ open: t,
472
+ maxHeight: 1e4,
473
+ body: {
474
+ backgroundColor: F.value.style.chart.backgroundColor,
475
+ color: F.value.style.chart.color
476
+ },
477
+ head: {
478
+ backgroundColor: F.value.style.chart.backgroundColor,
479
+ color: F.value.style.chart.color
480
+ }
481
+ }
482
+ }
483
+ };
484
+ });
485
+ E(() => U.value.showTable, (e) => {
486
+ F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
487
+ });
488
+ function Gt() {
489
+ U.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
490
+ }
491
+ let Kt = d(() => F.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
492
+ svg: B,
493
+ title: d(() => F.value.style.chart.title),
494
+ backgroundColor: Kt
495
+ });
496
+ async function Yt({ isCb: e }) {
497
+ P.value = !0, await y();
498
+ try {
499
+ if (e) {
500
+ let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
501
+ await Promise.resolve(F.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
+ P.value = !1;
510
+ }
511
+ }
512
+ function Xt(e) {
513
+ if (e?.stage === "start") {
514
+ N.value = !0;
515
+ return;
516
+ }
517
+ if (e?.stage === "end") {
518
+ N.value = !1;
519
+ return;
520
+ }
521
+ vt();
522
+ }
523
+ async function Zt() {
524
+ if (tt("copyAlt", {
525
+ config: F.value,
526
+ dataset: G.value
527
+ }), !F.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(F.value.userOptions.callbacks.altCopy({
532
+ config: F.value,
533
+ dataset: G.value
534
+ }));
535
+ }
536
+ let Qt = d(() => F.value.style.chart.color);
537
+ return me({
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) => (S(), m("div", {
552
+ ref_key: "moleculeChart",
553
+ ref: j,
554
+ class: we(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
555
+ style: x(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
556
+ id: `cluster_${at.value}`,
557
+ onMouseleave: t[2] ||= (e) => {
558
+ q.value = null, J.value = null, T(ft)(!1);
559
+ },
560
+ onMouseenter: t[3] ||= () => T(ft)(!0)
561
+ }, [
562
+ F.value.userOptions.buttons.annotator && T(B) ? (S(), f(T(Ge), {
563
+ key: 0,
564
+ svgRef: T(B),
565
+ backgroundColor: F.value.style.chart.backgroundColor,
566
+ color: F.value.style.chart.color,
567
+ active: Z.value,
568
+ isCursorPointer: I.value,
569
+ onClose: Rt
570
+ }, {
571
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
572
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
573
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
574
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
575
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
576
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
577
+ _: 3
578
+ }, 8, [
579
+ "svgRef",
580
+ "backgroundColor",
581
+ "color",
582
+ "active",
583
+ "isCursorPointer"
584
+ ])) : p("", !0),
585
+ yt.value ? (S(), m("div", Ne, null, 512)) : p("", !0),
586
+ F.value.style.chart.title.text ? (S(), m("div", Pe, [(S(), f(T(O), {
587
+ key: `title_${ct.value}`,
588
+ config: {
589
+ title: {
590
+ cy: "molecule-div-title",
591
+ ...F.value.style.chart.title
592
+ },
593
+ subtitle: {
594
+ cy: "molecule-div-subtitle",
595
+ ...F.value.style.chart.title.subtitle
596
+ }
597
+ }
598
+ }, null, 8, ["config"]))])) : p("", !0),
599
+ F.value.userOptions.show && nt.value && (T(pt) || T(z)) ? (S(), f(T(Ke), {
600
+ ref_key: "userOptionsRef",
601
+ ref: ut,
602
+ key: `user_options_${st.value}`,
603
+ backgroundColor: F.value.style.chart.backgroundColor,
604
+ color: F.value.style.chart.color,
605
+ isPrinting: T(H),
606
+ isImaging: T(gt),
607
+ uid: at.value,
608
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
609
+ hasPdf: F.value.userOptions.buttons.pdf,
610
+ hasXls: F.value.userOptions.buttons.csv,
611
+ hasImg: F.value.userOptions.buttons.img,
612
+ hasSvg: F.value.userOptions.buttons.svg,
613
+ hasTable: F.value.userOptions.buttons.table,
614
+ hasLabel: F.value.userOptions.buttons.labels,
615
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
616
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
617
+ isTooltip: U.value.showTooltip,
618
+ titles: { ...F.value.userOptions.buttonTitles },
619
+ chartElement: j.value,
620
+ position: F.value.userOptions.position,
621
+ hasAnnotator: F.value.userOptions.buttons.annotator,
622
+ isAnnotation: Z.value,
623
+ callbacks: F.value.userOptions.callbacks,
624
+ printScale: F.value.userOptions.print.scale,
625
+ tableDialog: F.value.table.useDialog,
626
+ hasZoom: F.value.userOptions.buttons.zoom,
627
+ isZoom: U.value.showZoom,
628
+ isCursorPointer: I.value,
629
+ onToggleFullscreen: Nt,
630
+ onGeneratePdf: T(_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: x({ visibility: T(pt) ? T(z) ? "visible" : "hidden" : "visible" })
641
+ }, xe({ _: 2 }, [
642
+ e.$slots.menuIcon ? {
643
+ name: "menuIcon",
644
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
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: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
653
+ key: "1"
654
+ } : void 0,
655
+ e.$slots.optionPdf ? {
656
+ name: "optionPdf",
657
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
658
+ key: "2"
659
+ } : void 0,
660
+ e.$slots.optionCsv ? {
661
+ name: "optionCsv",
662
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
663
+ key: "3"
664
+ } : void 0,
665
+ e.$slots.optionImg ? {
666
+ name: "optionImg",
667
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
668
+ key: "4"
669
+ } : void 0,
670
+ e.$slots.optionSvg ? {
671
+ name: "optionSvg",
672
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
673
+ key: "5"
674
+ } : void 0,
675
+ e.$slots.optionTable ? {
676
+ name: "optionTable",
677
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
678
+ key: "6"
679
+ } : void 0,
680
+ e.$slots.optionLabels ? {
681
+ name: "optionLabels",
682
+ fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
683
+ key: "7"
684
+ } : void 0,
685
+ e.$slots.optionFullscreen ? {
686
+ name: "optionFullscreen",
687
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
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: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
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: D(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(v({
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: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
712
+ key: "11"
713
+ } : void 0,
714
+ e.$slots["custom-menu-before"] ? {
715
+ name: "custom-menu-before",
716
+ fn: D(() => [w(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: D(() => [w(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("."))) : p("", !0),
725
+ (S(), m("svg", {
726
+ ref_key: "svgRef",
727
+ ref: B,
728
+ key: `svg_${mt.value}`,
729
+ xmlns: T(ae),
730
+ viewBox: `${T(Q).x} ${T(Q).y} ${T(Q).width} ${T(Q).height}`,
731
+ class: we({
732
+ "vue-data-ui-fullscreen--on": X.value,
733
+ "vue-data-ui-fulscreen--off": !X.value
734
+ }),
735
+ style: x(`overflow: hidden; background:transparent;color:${F.value.style.chart.color}`)
736
+ }, [
737
+ g(T(qe)),
738
+ e.$slots["chart-background"] ? (S(), m("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
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : p("", !0),
746
+ h("defs", null, [(S(!0), m(be, null, Ee(Object.keys(Tt.value), (e, t) => (S(), f(he, {
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
+ T(r)(e, .5),
758
+ 1
759
+ ], [
760
+ "100%",
761
+ e,
762
+ 1
763
+ ]]
764
+ }, null, 8, ["id", "stops"]))), 128))]),
765
+ g(T(Je), {
766
+ dataset: G.value,
767
+ color: F.value.style.chart.links.stroke,
768
+ backgroundColor: F.value.style.chart.backgroundColor,
769
+ useChildColor: F.value.style.chart.links.useChildColor
770
+ }, null, 8, [
771
+ "dataset",
772
+ "color",
773
+ "backgroundColor",
774
+ "useChildColor"
775
+ ]),
776
+ g(T(Xe), {
777
+ dataset: G.value,
778
+ hoveredUid: J.value,
779
+ stroke: F.value.style.chart.nodes.stroke,
780
+ strokeHovered: F.value.style.chart.nodes.strokeHovered,
781
+ onClick: Ut,
782
+ onHover: Ot
783
+ }, {
784
+ node: D(({ node: t }) => [w(e.$slots, "node", b(v({ node: t })), void 0, !0)]),
785
+ "node-svg": D(({ nodeSvg: t }) => [w(e.$slots, "node-svg", b(v({ nodeSvg: t })), void 0, !0)]),
786
+ _: 3
787
+ }, 8, [
788
+ "dataset",
789
+ "hoveredUid",
790
+ "stroke",
791
+ "strokeHovered"
792
+ ]),
793
+ U.value.showDataLabels && !T(L) ? (S(), f(T(Ye), {
794
+ key: 1,
795
+ dataset: G.value,
796
+ color: F.value.style.chart.color,
797
+ hoveredUid: J.value
798
+ }, null, 8, [
799
+ "dataset",
800
+ "color",
801
+ "hoveredUid"
802
+ ])) : p("", !0),
803
+ w(e.$slots, "svg", { svg: {
804
+ ...W.value,
805
+ drawingArea: { ...T(Q) },
806
+ isPrintingImg: T(H) || T(gt) || N.value,
807
+ isPrintingSvg: P.value
808
+ } }, void 0, !0)
809
+ ], 14, Fe)),
810
+ e.$slots.watermark ? (S(), m("div", Le, [w(e.$slots, "watermark", b(v({ isPrinting: T(H) || T(gt) || N.value || P.value })), void 0, !0)])) : p("", !0),
811
+ T(Vt) ? (S(), m("div", Re, [w(e.$slots, "reset-action", { reset: T(Bt) }, () => [h("button", {
812
+ "data-cy-reset": "",
813
+ tabindex: "0",
814
+ role: "button",
815
+ class: "vue-data-ui-refresh-button",
816
+ style: x({
817
+ background: F.value.style.chart.backgroundColor,
818
+ cursor: I.value ? "pointer" : "default"
819
+ }),
820
+ onClick: t[0] ||= (e) => T(Bt)(!0)
821
+ }, [g(T(He), {
822
+ name: "refresh",
823
+ stroke: F.value.style.chart.color
824
+ }, null, 8, ["stroke"])], 4)], !0)])) : p("", !0),
825
+ e.$slots.source ? (S(), m("div", ze, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
826
+ g(T(Ve), {
827
+ teleportTo: F.value.style.chart.tooltip.teleportTo,
828
+ show: U.value.showTooltip && ot.value,
829
+ backgroundColor: F.value.style.chart.tooltip.backgroundColor,
830
+ color: F.value.style.chart.tooltip.color,
831
+ borderRadius: F.value.style.chart.tooltip.borderRadius,
832
+ borderColor: F.value.style.chart.tooltip.borderColor,
833
+ borderWidth: F.value.style.chart.tooltip.borderWidth,
834
+ fontSize: F.value.style.chart.tooltip.fontSize,
835
+ backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
836
+ position: F.value.style.chart.tooltip.position,
837
+ offsetX: F.value.style.chart.tooltip.offsetX,
838
+ offsetY: F.value.style.chart.tooltip.offsetY,
839
+ parent: j.value,
840
+ content: A.value,
841
+ isFullscreen: X.value,
842
+ isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
843
+ smooth: F.value.style.chart.tooltip.smooth,
844
+ backdropFilter: F.value.style.chart.tooltip.backdropFilter,
845
+ smoothForce: F.value.style.chart.tooltip.smoothForce,
846
+ smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold
847
+ }, {
848
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...K.value })), void 0, !0)]),
849
+ tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...K.value })), void 0, !0)]),
850
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...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
+ nt.value && F.value.userOptions.buttons.table ? (S(), f(De($.value.component), Ce({ key: 7 }, $.value.props, {
875
+ ref_key: "tableUnit",
876
+ ref: M,
877
+ onClose: Gt
878
+ }), xe({
879
+ content: D(() => [(S(), f(T(We), {
880
+ key: `table_${lt.value}`,
881
+ colNames: Y.value.colNames,
882
+ head: Y.value.head,
883
+ body: Y.value.body,
884
+ config: Y.value.config,
885
+ title: F.value.table.useDialog ? "" : $.value.title,
886
+ withCloseButton: !F.value.table.useDialog,
887
+ isCursorPointer: I.value,
888
+ onClose: Gt
889
+ }, {
890
+ th: D(({ th: e }) => [h("div", {
891
+ innerHTML: e,
892
+ style: {
893
+ display: "flex",
894
+ "align-items": "center"
895
+ }
896
+ }, null, 8, Be)]),
897
+ td: D(({ td: e }) => [Se(Oe(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
+ }, [F.value.table.useDialog ? {
910
+ name: "title",
911
+ fn: D(() => [Se(Oe($.value.title), 1)]),
912
+ key: "0"
913
+ } : void 0, F.value.table.useDialog ? {
914
+ name: "actions",
915
+ fn: D(() => [h("button", {
916
+ tabindex: "0",
917
+ class: "vue-ui-user-options-button",
918
+ onClick: t[1] ||= (e) => jt(F.value.userOptions.callbacks.csv),
919
+ style: x({ cursor: I.value ? "pointer" : "default" })
920
+ }, [g(T(He), {
921
+ name: "fileCsv",
922
+ stroke: $.value.props.color
923
+ }, null, 8, ["stroke"])], 4)]),
924
+ key: "1"
925
+ } : void 0]), 1040)) : p("", !0),
926
+ w(e.$slots, "skeleton", {}, () => [T(L) ? (S(), f(ue, { key: 0 })) : p("", !0)], !0)
927
+ ], 46, Me));
928
+ }
929
+ }, [["__scopeId", "data-v-96a218d7"]]);
930
+ //#endregion
931
+ export { je as n, O as t };