vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  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-hill.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  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/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -0,0 +1,941 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $t as t, D as n, Et as r, M as i, Pt as a, Rt as o, S as ee, Vt as te, X as ne, at as s, et as c, ft as re, nt as l, t as u, tn as ie, w as ae } from "./lib-DOpaUOQx.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-C2uy4ltq.js";
5
+ import { t as le } from "./usePrinter-BBBooAGP.js";
6
+ import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
7
+ import { t as d } from "./useNestedProp-Bux0f4iY.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as me } from "./img-W50sC9SC.js";
11
+ import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { t as ge } from "./DefGrad-DVBqDjhO.js";
13
+ import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
14
+ import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
15
+ import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
16
+ import { t as be } from "./usePanZoom-CYU3B4T3.js";
17
+ import { Fragment as xe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Se, createTextVNode as Ce, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as we, nextTick as b, normalizeClass as Te, normalizeProps as x, normalizeStyle as S, onMounted as Ee, openBlock as C, ref as w, renderList as De, renderSlot as T, resolveDynamicComponent as Oe, toDisplayString as ke, toRefs as Ae, unref as E, useCssVars as je, watch as D, withCtx as O } from "vue";
18
+ //#region src/components/vue-ui-molecule.vue
19
+ var Me = /* @__PURE__ */ e({ default: () => k }), Ne = ["id"], Pe = {
20
+ key: 1,
21
+ ref: "noTitle",
22
+ class: "vue-data-ui-no-title-space",
23
+ style: "height:36px; width: 100%;background:transparent"
24
+ }, Fe = {
25
+ key: 2,
26
+ style: "width:100%;background:transparent;"
27
+ }, Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = {
28
+ key: 4,
29
+ class: "vue-data-ui-watermark"
30
+ }, ze = {
31
+ key: 5,
32
+ "data-dom-to-png-ignore": "",
33
+ class: "reset-wrapper"
34
+ }, Be = {
35
+ key: 6,
36
+ ref: "source",
37
+ dir: "auto"
38
+ }, k = /*#__PURE__*/ he({
39
+ __name: "vue-ui-molecule",
40
+ props: {
41
+ config: {
42
+ type: Object,
43
+ default() {
44
+ return {};
45
+ }
46
+ },
47
+ dataset: {
48
+ type: Array,
49
+ default() {
50
+ return [];
51
+ }
52
+ }
53
+ },
54
+ emits: ["selectNode", "copyAlt"],
55
+ setup(e, { expose: he, emit: Me }) {
56
+ je((e) => ({ v98264478: rn.value }));
57
+ let k = v(() => import("./Title-DeqmC-vN.js").then((e) => e.t)), Ve = v(() => import("./Tooltip-DZ4a3XJQ.js")), He = v(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), Ue = v(() => import("./vue-ui-accordion-yHZMJLaY.js").then((e) => e.n)), We = v(() => import("./DataTable-BD1eZ0zB.js")), Ge = v(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), Ke = v(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), qe = v(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), Je = v(() => import("./RecursiveLinks-BygcpDiT.js")), Ye = v(() => import("./RecursiveLabels-D9rfID6q.js")), Xe = v(() => import("./RecursiveCircles-D6aDPmoe.js")), Ze = v(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_molecule: Qe } = ce(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), A = e, tt = Me, nt = f(() => !!A.dataset && A.dataset.length);
58
+ Ee(() => {
59
+ it();
60
+ });
61
+ let rt = f(() => L.value.debug);
62
+ function it() {
63
+ o(A.dataset) && s({
64
+ componentName: "VueUiMolecule",
65
+ type: "dataset",
66
+ debug: rt.value
67
+ });
68
+ }
69
+ let j = w(ne()), M = w(!1), N = w(""), P = w(null), at = w(0), ot = w(0), st = w(0), F = w(null), I = w(null), L = w(mt()), R = f(() => L.value.style.chart.tooltip), z = f(() => L.value.style.chart), B = f(() => L.value.userOptions);
70
+ oe({
71
+ config: () => L.value,
72
+ dataset: () => A.dataset,
73
+ component: "VueUiMolecule",
74
+ rules: [
75
+ se.emptyArray,
76
+ {
77
+ test: (e) => e[0] && e[0].nodes && e[0].nodes.length === 0,
78
+ message: [
79
+ "👀 There are no children nodes attached to the root node. Consider:",
80
+ "",
81
+ "▶️ Adding children nodes to the root node."
82
+ ]
83
+ },
84
+ {
85
+ test: (e) => e[0] && e[0].nodes && e[0].nodes.length > 8,
86
+ message: [
87
+ "👀 The number of children nodes > 8, some nodes might overlap. Consider:",
88
+ "",
89
+ "▶️ Grouping data into broader categories."
90
+ ]
91
+ }
92
+ ]
93
+ });
94
+ let V = f(() => L.value.userOptions.useCursorPointer), ct = f(() => ie({
95
+ defaultConfig: {
96
+ userOptions: { show: !1 },
97
+ table: { show: !1 },
98
+ style: { chart: {
99
+ backgroundColor: "#99999930",
100
+ nodes: { stroke: "#6A6A6A" },
101
+ links: { stroke: "#6A6A6A80" }
102
+ } }
103
+ },
104
+ userConfig: L.value.skeletonConfig ?? {}
105
+ })), { loading: lt, FINAL_DATASET: ut } = ue({
106
+ ...Ae(A),
107
+ FINAL_CONFIG: L,
108
+ prepareConfig: mt,
109
+ skeletonDataset: A.config?.skeletonDataset ?? [{
110
+ name: "_",
111
+ color: "#CACACA",
112
+ nodes: [
113
+ {
114
+ name: "_",
115
+ color: "#CACACA",
116
+ nodes: [
117
+ {
118
+ name: "_",
119
+ color: "#CACACA"
120
+ },
121
+ {
122
+ name: "_",
123
+ color: "#CACACA"
124
+ },
125
+ {
126
+ name: "_",
127
+ color: "#CACACA"
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ name: "_",
133
+ color: "#CACACA",
134
+ nodes: [
135
+ {
136
+ name: "_",
137
+ color: "#CACACA"
138
+ },
139
+ {
140
+ name: "_",
141
+ color: "#CACACA"
142
+ },
143
+ {
144
+ name: "_",
145
+ color: "#CACACA"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ name: "_",
151
+ color: "#CACACA",
152
+ nodes: [
153
+ {
154
+ name: "_",
155
+ color: "#CACACA"
156
+ },
157
+ {
158
+ name: "_",
159
+ color: "#CACACA"
160
+ },
161
+ {
162
+ name: "_",
163
+ color: "#CACACA"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ name: "_",
169
+ color: "#CACACA",
170
+ nodes: [
171
+ {
172
+ name: "_",
173
+ color: "#CACACA"
174
+ },
175
+ {
176
+ name: "_",
177
+ color: "#CACACA"
178
+ },
179
+ {
180
+ name: "_",
181
+ color: "#CACACA"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ name: "_",
187
+ color: "#CACACA",
188
+ nodes: [
189
+ {
190
+ name: "_",
191
+ color: "#CACACA"
192
+ },
193
+ {
194
+ name: "_",
195
+ color: "#CACACA"
196
+ },
197
+ {
198
+ name: "_",
199
+ color: "#CACACA"
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ name: "_",
205
+ color: "#CACACA",
206
+ nodes: [
207
+ {
208
+ name: "_",
209
+ color: "#CACACA"
210
+ },
211
+ {
212
+ name: "_",
213
+ color: "#CACACA"
214
+ },
215
+ {
216
+ name: "_",
217
+ color: "#CACACA"
218
+ }
219
+ ]
220
+ }
221
+ ]
222
+ }],
223
+ skeletonConfig: ie({
224
+ defaultConfig: L.value,
225
+ userConfig: ct.value
226
+ })
227
+ }), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: L.value }), { svgRef: H } = ve({ config: z.value.title });
228
+ function mt() {
229
+ let e = d({
230
+ userConfig: A.config,
231
+ defaultConfig: Qe
232
+ }), n = e.theme;
233
+ if (!n) return e;
234
+ if (!$e.value(e)) return et(e), e;
235
+ let r = d({
236
+ userConfig: ye[n] || A.config,
237
+ defaultConfig: e
238
+ }), i = d({
239
+ userConfig: A.config,
240
+ defaultConfig: r
241
+ });
242
+ return {
243
+ ...i,
244
+ customPalette: i.customPalette.length ? i.customPalette : t[n] || te
245
+ };
246
+ }
247
+ function ht(e) {
248
+ let t = c(e);
249
+ return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
250
+ }
251
+ let gt = ht(A.config);
252
+ D((e, t) => A.config, (e) => {
253
+ let t = ht(newConfig), n = t !== gt;
254
+ gt = t;
255
+ let r = mt();
256
+ if (!n) {
257
+ L.value.style.chart.tooltip = r.style.chart.tooltip, U.value.showTooltip = L.value.style.chart.tooltip.show;
258
+ return;
259
+ }
260
+ L.value = r, dt.value = !L.value.userOptions.showOnChartHover, it(), ot.value += 1, st.value += 1, U.value.showTable = L.value.table.show, U.value.showTooltip = R.value.show, U.value.showZoom = z.value.zoom.show;
261
+ }, { deep: !0 });
262
+ let _t = w(0), vt = () => {
263
+ _t.value += 1;
264
+ };
265
+ D([() => lt.value, () => ut.value], async ([e]) => {
266
+ e || (await b(), W.value = Et(), await b(), vt(), await b(), Kt({
267
+ x: 0,
268
+ y: 0,
269
+ width: 400,
270
+ height: 400
271
+ }), Wt(!1));
272
+ }, {
273
+ flush: "post",
274
+ deep: !1
275
+ });
276
+ let { isPrinting: yt, isImaging: bt, generatePdf: xt, generateImage: St } = le({
277
+ elementId: `cluster_${j.value}`,
278
+ fileName: z.value.title.text || "vue-ui-molecule",
279
+ options: L.value.userOptions.print
280
+ }), Ct = f(() => L.value.userOptions.show && !z.value.title.text), wt = f(() => ae(L.value.customPalette)), U = w({
281
+ showTable: L.value.table.show,
282
+ showDataLabels: !0,
283
+ showTooltip: R.value.show,
284
+ showZoom: z.value.zoom.show
285
+ });
286
+ D(L, () => {
287
+ U.value = {
288
+ showTable: L.value.table.show,
289
+ showDataLabels: !0,
290
+ showTooltip: R.value.show,
291
+ showZoom: z.value.zoom.show
292
+ };
293
+ }, { immediate: !0 });
294
+ function Tt(e, t = 0) {
295
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? Tt(e[0].nodes, t + 1) : t;
296
+ }
297
+ function Et() {
298
+ let e = Tt(ut.value), t = 100, n = t;
299
+ for (let r = 0; r < e; r += 1) t /= 1, n += t;
300
+ return {
301
+ height: n,
302
+ width: n
303
+ };
304
+ }
305
+ let W = w(Et());
306
+ function Dt(e, t = {
307
+ x: -W.value.width / 2.43,
308
+ y: W.value.height / 2
309
+ }, n = W.value.width / 1.1, r = 24, a = 0, o = 0, s = "#BBBBBB", c = 0) {
310
+ if (!Array.isArray(e) || e.length === 0) return e;
311
+ let re = i({
312
+ plot: t,
313
+ radius: n,
314
+ sides: e.length,
315
+ rotation: a
316
+ });
317
+ return e.forEach((e, t) => {
318
+ let i = re.coordinates[t], l = e.color ? (() => {
319
+ let t = ee(e.color);
320
+ return t.startsWith("#") ? t : `#${t}`;
321
+ })() : null, u;
322
+ l ? u = l : c === 0 ? u = s : c === 1 ? (u = wt.value[o] || te[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [i] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(z.value.links.strokeWidth / (c + 1), r / 2), e.uid = ne(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Dt(e.nodes, i, n / 2.9, r / 2.2, a + Math.PI * t / e.nodes.length, o, u, c + 1));
323
+ }), e;
324
+ }
325
+ function Ot(e) {
326
+ let t = /* @__PURE__ */ new Set();
327
+ function n(e) {
328
+ e.forEach((e) => {
329
+ if (!e.color) return;
330
+ let r = e.color;
331
+ /^#?[0-9A-F]{6}$/i.test(r) || (r = ee(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
332
+ });
333
+ }
334
+ n(e);
335
+ let r = {};
336
+ return Array.from(t).forEach((e) => {
337
+ let t = e.slice(1);
338
+ r[e] = `gradient_${t}`;
339
+ }), r;
340
+ }
341
+ let kt = f(() => Ot(G.value)), G = f(() => Dt(c(ut.value))), K = w(null);
342
+ function At(e) {
343
+ K.value = {
344
+ datapoint: e,
345
+ seriesIndex: -1,
346
+ series: G.value,
347
+ config: L.value
348
+ };
349
+ let t = R.value.customFormat;
350
+ if (r(t) && re(() => t({
351
+ seriesIndex: -1,
352
+ datapoint: e,
353
+ series: G.value,
354
+ config: L.value
355
+ }))) N.value = t({
356
+ seriesIndex: -1,
357
+ datapoint: e,
358
+ series: G.value,
359
+ config: L.value
360
+ });
361
+ else {
362
+ let t = "";
363
+ 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 ${R.value.borderColor};margin-top: 2px">${e.details}</div>`), N.value = `<div style="font-family:inherit">${t}</div>`;
364
+ }
365
+ }
366
+ let q = w(null), J = w(null), jt = w(null);
367
+ function Mt(e) {
368
+ jt.value = q.value, q.value = e, e ? L.value.events.datapointEnter && L.value.events.datapointEnter({
369
+ datapoint: e,
370
+ seriesIndex: -1
371
+ }) : L.value.events.datapointLeave && L.value.events.datapointLeave({
372
+ datapoint: jt.value || q.value,
373
+ seriesIndex: -1
374
+ }), e ? (M.value = !0, At(e), J.value = e.uid) : (M.value = !1, N.value = "", J.value = null);
375
+ }
376
+ function Nt(e) {
377
+ let t = [];
378
+ function n(e) {
379
+ e.forEach((e) => {
380
+ let r = {
381
+ name: e.name,
382
+ details: e.details || "-",
383
+ ancestor: e.ancestor && e.ancestor.name || "-",
384
+ color: e.color || ""
385
+ };
386
+ t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
387
+ });
388
+ }
389
+ return n(e), t;
390
+ }
391
+ let Pt = f(() => Nt(G.value)), Y = f(() => ({
392
+ head: [
393
+ L.value.table.translations.nodeName,
394
+ L.value.table.translations.details,
395
+ L.value.table.translations.ancestor
396
+ ],
397
+ body: Pt.value.map((e, t) => [
398
+ {
399
+ color: e.color,
400
+ name: e.name
401
+ },
402
+ e.details,
403
+ e.ancestor || ""
404
+ ]),
405
+ config: {
406
+ th: {
407
+ backgroundColor: L.value.table.th.backgroundColor,
408
+ color: L.value.table.th.color,
409
+ outline: L.value.table.th.outline
410
+ },
411
+ td: {
412
+ backgroundColor: L.value.table.td.backgroundColor,
413
+ color: L.value.table.td.color,
414
+ outline: L.value.table.td.outline
415
+ },
416
+ breakpoint: L.value.table.responsiveBreakpoint
417
+ },
418
+ colNames: [
419
+ L.value.table.translations.nodeName,
420
+ L.value.table.translations.details,
421
+ L.value.table.translations.ancestor
422
+ ]
423
+ }));
424
+ function Ft(e = null) {
425
+ b(() => {
426
+ let t = Y.value.body.map((e, t) => [
427
+ [e[0].name],
428
+ [e[1]],
429
+ [e[2]]
430
+ ]), r = [
431
+ [z.value.title.text],
432
+ [z.value.title.subtitle.text],
433
+ [[...Y.value.head]]
434
+ ].concat(t), i = n(r);
435
+ e ? e(i) : l({
436
+ csvContent: i,
437
+ title: z.value.title.text || "vue-ui-molecule"
438
+ });
439
+ });
440
+ }
441
+ function It() {
442
+ return G.value;
443
+ }
444
+ let X = w(!1);
445
+ function Lt(e) {
446
+ X.value = e, at.value += 1;
447
+ }
448
+ function Rt() {
449
+ U.value.showTable = !U.value.showTable;
450
+ }
451
+ function zt() {
452
+ U.value.showDataLabels = !U.value.showDataLabels;
453
+ }
454
+ function Bt() {
455
+ U.value.showTooltip = !U.value.showTooltip;
456
+ }
457
+ function Vt() {
458
+ U.value.showZoom = !U.value.showZoom;
459
+ }
460
+ let Z = w(!1);
461
+ function Ht() {
462
+ Z.value = !Z.value;
463
+ }
464
+ let Ut = f(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Wt, isZoom: Gt, setInitialViewBox: Kt } = be(H, {
465
+ x: 0,
466
+ y: 0,
467
+ width: Math.max(10, W.value.width),
468
+ height: Math.max(10, W.value.height)
469
+ }, z.value.zoom.speed, Ut);
470
+ function qt(e) {
471
+ L.value.events.datapointClick && L.value.events.datapointClick({
472
+ datapoint: e,
473
+ seriesIndex: -1
474
+ }), tt("selectNode", e);
475
+ }
476
+ async function Jt({ scale: e = 2 } = {}) {
477
+ if (!P.value) return;
478
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
479
+ domElement: P.value,
480
+ base64: !0,
481
+ img: !0,
482
+ scale: e
483
+ });
484
+ return {
485
+ imageUri: i,
486
+ base64: a,
487
+ title: z.value.title.text,
488
+ width: t,
489
+ height: n,
490
+ aspectRatio: r
491
+ };
492
+ }
493
+ let $ = f(() => {
494
+ let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
495
+ return {
496
+ component: e ? Ze : Ue,
497
+ title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
498
+ props: e ? {
499
+ backgroundColor: L.value.table.th.backgroundColor,
500
+ color: L.value.table.th.color,
501
+ headerColor: L.value.table.th.color,
502
+ headerBg: L.value.table.th.backgroundColor,
503
+ isFullscreen: X.value,
504
+ fullscreenParent: P.value,
505
+ forcedWidth: Math.min(800, window.innerWidth * .8),
506
+ isCursorPointer: V.value
507
+ } : {
508
+ hideDetails: !0,
509
+ config: {
510
+ open: t,
511
+ maxHeight: 1e4,
512
+ body: {
513
+ backgroundColor: z.value.backgroundColor,
514
+ color: z.value.color
515
+ },
516
+ head: {
517
+ backgroundColor: z.value.backgroundColor,
518
+ color: z.value.color
519
+ }
520
+ }
521
+ }
522
+ };
523
+ });
524
+ D(() => U.value.showTable, (e) => {
525
+ L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
526
+ });
527
+ function Yt() {
528
+ U.value.showTable = !1, I.value && I.value.setTableIconState(!1);
529
+ }
530
+ let Xt = f(() => z.value.backgroundColor), Zt = f(() => z.value.title), { isCallbackImaging: Qt, isCallbackSvg: $t, generateSvg: en, onGenerateImage: tn } = pe({
531
+ svg: H,
532
+ title: Zt,
533
+ legend: null,
534
+ legendItems: null,
535
+ backgroundColor: Xt,
536
+ getSvgCallback: () => L.value.userOptions.callbacks.svg,
537
+ generateImage: St
538
+ });
539
+ async function nn() {
540
+ if (tt("copyAlt", {
541
+ config: L.value,
542
+ dataset: G.value
543
+ }), !L.value.userOptions.callbacks.altCopy) {
544
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
545
+ return;
546
+ }
547
+ await Promise.resolve(L.value.userOptions.callbacks.altCopy({
548
+ config: L.value,
549
+ dataset: G.value
550
+ }));
551
+ }
552
+ let rn = f(() => z.value.color);
553
+ return he({
554
+ getData: It,
555
+ getImage: Jt,
556
+ generatePdf: xt,
557
+ generateCsv: Ft,
558
+ generateImage: St,
559
+ generateSvg: en,
560
+ toggleTable: Rt,
561
+ toggleLabels: zt,
562
+ toggleTooltip: Bt,
563
+ toggleAnnotator: Ht,
564
+ toggleFullscreen: Lt,
565
+ toggleZoom: Vt,
566
+ copyAlt: nn
567
+ }), (e, t) => (C(), h("div", {
568
+ ref_key: "moleculeChart",
569
+ ref: P,
570
+ class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
571
+ style: S(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${z.value.backgroundColor}`),
572
+ id: `cluster_${j.value}`,
573
+ onMouseleave: t[2] ||= (e) => {
574
+ q.value = null, J.value = null, E(ft)(!1);
575
+ },
576
+ onMouseenter: t[3] ||= () => E(ft)(!0)
577
+ }, [
578
+ B.value.buttons.annotator && E(H) ? (C(), p(E(Ge), {
579
+ key: 0,
580
+ svgRef: E(H),
581
+ backgroundColor: z.value.backgroundColor,
582
+ color: z.value.color,
583
+ active: Z.value,
584
+ isCursorPointer: V.value,
585
+ onClose: Ht
586
+ }, {
587
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
588
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
589
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
590
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
591
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
592
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
593
+ _: 3
594
+ }, 8, [
595
+ "svgRef",
596
+ "backgroundColor",
597
+ "color",
598
+ "active",
599
+ "isCursorPointer"
600
+ ])) : m("", !0),
601
+ Ct.value ? (C(), h("div", Pe, null, 512)) : m("", !0),
602
+ z.value.title.text ? (C(), h("div", Fe, [(C(), p(E(k), {
603
+ key: `title_${ot.value}`,
604
+ config: {
605
+ title: {
606
+ cy: "molecule-div-title",
607
+ ...z.value.title
608
+ },
609
+ subtitle: {
610
+ cy: "molecule-div-subtitle",
611
+ ...z.value.title.subtitle
612
+ }
613
+ }
614
+ }, null, 8, ["config"]))])) : m("", !0),
615
+ B.value.show && nt.value && (E(pt) || E(dt)) ? (C(), p(E(Ke), {
616
+ ref_key: "userOptionsRef",
617
+ ref: I,
618
+ key: `user_options_${at.value}`,
619
+ backgroundColor: z.value.backgroundColor,
620
+ color: z.value.color,
621
+ isPrinting: E(yt),
622
+ isImaging: E(bt),
623
+ uid: j.value,
624
+ hasTooltip: B.value.buttons.tooltip && R.value.show,
625
+ hasPdf: B.value.buttons.pdf,
626
+ hasXls: B.value.buttons.csv,
627
+ hasImg: B.value.buttons.img,
628
+ hasSvg: B.value.buttons.svg,
629
+ hasTable: B.value.buttons.table,
630
+ hasLabel: B.value.buttons.labels,
631
+ hasFullscreen: B.value.buttons.fullscreen,
632
+ hasAltCopy: B.value.buttons.altCopy,
633
+ isTooltip: U.value.showTooltip,
634
+ titles: { ...B.value.buttonTitles },
635
+ chartElement: P.value,
636
+ position: B.value.position,
637
+ hasAnnotator: B.value.buttons.annotator,
638
+ isAnnotation: Z.value,
639
+ callbacks: B.value.callbacks,
640
+ printScale: B.value.print.scale,
641
+ tableDialog: L.value.table.useDialog,
642
+ hasZoom: B.value.buttons.zoom,
643
+ isZoom: U.value.showZoom,
644
+ isCursorPointer: V.value,
645
+ onToggleFullscreen: Lt,
646
+ onGeneratePdf: E(xt),
647
+ onGenerateCsv: Ft,
648
+ onGenerateImage: E(tn),
649
+ onGenerateSvg: E(en),
650
+ onToggleTable: Rt,
651
+ onToggleLabels: zt,
652
+ onToggleTooltip: Bt,
653
+ onToggleAnnotator: Ht,
654
+ onToggleZoom: Vt,
655
+ onCopyAlt: nn,
656
+ style: S({ visibility: E(pt) ? E(dt) ? "visible" : "hidden" : "visible" })
657
+ }, Se({ _: 2 }, [
658
+ e.$slots.menuIcon ? {
659
+ name: "menuIcon",
660
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
661
+ isOpen: t,
662
+ color: n
663
+ })), void 0, !0)]),
664
+ key: "0"
665
+ } : void 0,
666
+ e.$slots.optionTooltip ? {
667
+ name: "optionTooltip",
668
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
669
+ key: "1"
670
+ } : void 0,
671
+ e.$slots.optionPdf ? {
672
+ name: "optionPdf",
673
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
674
+ key: "2"
675
+ } : void 0,
676
+ e.$slots.optionCsv ? {
677
+ name: "optionCsv",
678
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
679
+ key: "3"
680
+ } : void 0,
681
+ e.$slots.optionImg ? {
682
+ name: "optionImg",
683
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
684
+ key: "4"
685
+ } : void 0,
686
+ e.$slots.optionSvg ? {
687
+ name: "optionSvg",
688
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
689
+ key: "5"
690
+ } : void 0,
691
+ e.$slots.optionTable ? {
692
+ name: "optionTable",
693
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
694
+ key: "6"
695
+ } : void 0,
696
+ e.$slots.optionLabels ? {
697
+ name: "optionLabels",
698
+ fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
699
+ key: "7"
700
+ } : void 0,
701
+ e.$slots.optionFullscreen ? {
702
+ name: "optionFullscreen",
703
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
704
+ toggleFullscreen: t,
705
+ isFullscreen: n
706
+ })), void 0, !0)]),
707
+ key: "8"
708
+ } : void 0,
709
+ e.$slots.optionAnnotator ? {
710
+ name: "optionAnnotator",
711
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
712
+ toggleAnnotator: t,
713
+ isAnnotator: n
714
+ })), void 0, !0)]),
715
+ key: "9"
716
+ } : void 0,
717
+ e.$slots.optionZoom ? {
718
+ name: "optionZoom",
719
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(y({
720
+ toggleZoom: t,
721
+ isZoomLocked: n
722
+ })), void 0, !0)]),
723
+ key: "10"
724
+ } : void 0,
725
+ e.$slots.optionAltCopy ? {
726
+ name: "optionAltCopy",
727
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
728
+ key: "11"
729
+ } : void 0,
730
+ e.$slots["custom-menu-before"] ? {
731
+ name: "custom-menu-before",
732
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
733
+ key: "12"
734
+ } : void 0,
735
+ e.$slots["custom-menu-after"] ? {
736
+ name: "custom-menu-after",
737
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
738
+ key: "13"
739
+ } : void 0
740
+ ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
741
+ (C(), h("svg", {
742
+ ref_key: "svgRef",
743
+ ref: H,
744
+ key: `svg_${_t.value}`,
745
+ xmlns: E(u),
746
+ viewBox: `${E(Q).x} ${E(Q).y} ${E(Q).width} ${E(Q).height}`,
747
+ class: Te({
748
+ "vue-data-ui-fullscreen--on": X.value,
749
+ "vue-data-ui-fulscreen--off": !X.value
750
+ }),
751
+ style: S(`overflow: hidden; background:transparent;color:${z.value.color}`)
752
+ }, [
753
+ _(E(qe)),
754
+ e.$slots["chart-background"] ? (C(), h("foreignObject", {
755
+ key: 0,
756
+ x: 0,
757
+ y: 0,
758
+ width: W.value.width <= 0 ? 10 : W.value.width,
759
+ height: W.value.height <= 0 ? 10 : W.value.height,
760
+ style: { pointerEvents: "none" }
761
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : m("", !0),
762
+ g("defs", null, [(C(!0), h(xe, null, De(Object.keys(kt.value), (e, t) => (C(), p(ge, {
763
+ t: "radial",
764
+ id: `gradient_${e}`,
765
+ key: `gradient_${e}_${t}`,
766
+ cx: "50%",
767
+ cy: "30%",
768
+ r: "50%",
769
+ fx: "50%",
770
+ fy: "50%",
771
+ stops: [[
772
+ "0%",
773
+ E(a)(e, .5),
774
+ 1
775
+ ], [
776
+ "100%",
777
+ e,
778
+ 1
779
+ ]]
780
+ }, null, 8, ["id", "stops"]))), 128))]),
781
+ _(E(Je), {
782
+ dataset: G.value,
783
+ color: z.value.links.stroke,
784
+ backgroundColor: z.value.backgroundColor,
785
+ useChildColor: z.value.links.useChildColor
786
+ }, null, 8, [
787
+ "dataset",
788
+ "color",
789
+ "backgroundColor",
790
+ "useChildColor"
791
+ ]),
792
+ _(E(Xe), {
793
+ dataset: G.value,
794
+ hoveredUid: J.value,
795
+ stroke: z.value.nodes.stroke,
796
+ strokeHovered: z.value.nodes.strokeHovered,
797
+ onClick: qt,
798
+ onHover: Mt
799
+ }, {
800
+ node: O(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
801
+ "node-svg": O(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
802
+ _: 3
803
+ }, 8, [
804
+ "dataset",
805
+ "hoveredUid",
806
+ "stroke",
807
+ "strokeHovered"
808
+ ]),
809
+ U.value.showDataLabels && !E(lt) ? (C(), p(E(Ye), {
810
+ key: 1,
811
+ dataset: G.value,
812
+ color: z.value.color,
813
+ hoveredUid: J.value
814
+ }, null, 8, [
815
+ "dataset",
816
+ "color",
817
+ "hoveredUid"
818
+ ])) : m("", !0),
819
+ T(e.$slots, "svg", { svg: {
820
+ ...W.value,
821
+ drawingArea: { ...E(Q) },
822
+ isPrintingImg: E(yt) || E(bt) || E(Qt),
823
+ isPrintingSvg: E($t)
824
+ } }, void 0, !0)
825
+ ], 14, Ie)),
826
+ e.$slots.watermark ? (C(), h("div", Re, [T(e.$slots, "watermark", x(y({ isPrinting: E(yt) || E(bt) || E(Qt) || E($t) })), void 0, !0)])) : m("", !0),
827
+ E(Gt) ? (C(), h("div", ze, [T(e.$slots, "reset-action", { reset: E(Wt) }, () => [g("button", {
828
+ "data-cy-reset": "",
829
+ tabindex: "0",
830
+ role: "button",
831
+ class: "vue-data-ui-refresh-button",
832
+ style: S({
833
+ background: z.value.backgroundColor,
834
+ cursor: V.value ? "pointer" : "default"
835
+ }),
836
+ onClick: t[0] ||= (e) => E(Wt)(!0)
837
+ }, [_(E(He), {
838
+ name: "refresh",
839
+ stroke: z.value.color
840
+ }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
841
+ e.$slots.source ? (C(), h("div", Be, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
842
+ _(E(Ve), {
843
+ teleportTo: R.value.teleportTo,
844
+ show: U.value.showTooltip && M.value,
845
+ backgroundColor: R.value.backgroundColor,
846
+ color: R.value.color,
847
+ borderRadius: R.value.borderRadius,
848
+ borderColor: R.value.borderColor,
849
+ borderWidth: R.value.borderWidth,
850
+ fontSize: R.value.fontSize,
851
+ backgroundOpacity: R.value.backgroundOpacity,
852
+ position: R.value.position,
853
+ offsetX: R.value.offsetX,
854
+ offsetY: R.value.offsetY,
855
+ parent: P.value,
856
+ content: N.value,
857
+ isFullscreen: X.value,
858
+ isCustom: R.value.customFormat && typeof R.value.customFormat == "function",
859
+ smooth: R.value.smooth,
860
+ backdropFilter: R.value.backdropFilter,
861
+ smoothForce: R.value.smoothForce,
862
+ smoothSnapThreshold: R.value.smoothSnapThreshold
863
+ }, {
864
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...K.value })), void 0, !0)]),
865
+ tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...K.value })), void 0, !0)]),
866
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...K.value })), void 0, !0)]),
867
+ _: 3
868
+ }, 8, [
869
+ "teleportTo",
870
+ "show",
871
+ "backgroundColor",
872
+ "color",
873
+ "borderRadius",
874
+ "borderColor",
875
+ "borderWidth",
876
+ "fontSize",
877
+ "backgroundOpacity",
878
+ "position",
879
+ "offsetX",
880
+ "offsetY",
881
+ "parent",
882
+ "content",
883
+ "isFullscreen",
884
+ "isCustom",
885
+ "smooth",
886
+ "backdropFilter",
887
+ "smoothForce",
888
+ "smoothSnapThreshold"
889
+ ]),
890
+ nt.value && B.value.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
891
+ ref_key: "tableUnit",
892
+ ref: F,
893
+ onClose: Yt
894
+ }), Se({
895
+ content: O(() => [(C(), p(E(We), {
896
+ key: `table_${st.value}`,
897
+ colNames: Y.value.colNames,
898
+ head: Y.value.head,
899
+ body: Y.value.body,
900
+ config: Y.value.config,
901
+ title: L.value.table.useDialog ? "" : $.value.title,
902
+ withCloseButton: !L.value.table.useDialog,
903
+ isCursorPointer: V.value,
904
+ onClose: Yt
905
+ }, {
906
+ th: O(({ th: e }) => [g("div", null, ke(e), 1)]),
907
+ td: O(({ td: e }) => [Ce(ke(e.name || e), 1)]),
908
+ _: 1
909
+ }, 8, [
910
+ "colNames",
911
+ "head",
912
+ "body",
913
+ "config",
914
+ "title",
915
+ "withCloseButton",
916
+ "isCursorPointer"
917
+ ]))]),
918
+ _: 2
919
+ }, [L.value.table.useDialog ? {
920
+ name: "title",
921
+ fn: O(() => [Ce(ke($.value.title), 1)]),
922
+ key: "0"
923
+ } : void 0, L.value.table.useDialog ? {
924
+ name: "actions",
925
+ fn: O(() => [g("button", {
926
+ tabindex: "0",
927
+ class: "vue-ui-user-options-button",
928
+ onClick: t[1] ||= (e) => Ft(B.value.callbacks.csv),
929
+ style: S({ cursor: V.value ? "pointer" : "default" })
930
+ }, [_(E(He), {
931
+ name: "fileCsv",
932
+ stroke: $.value.props.color
933
+ }, null, 8, ["stroke"])], 4)]),
934
+ key: "1"
935
+ } : void 0]), 1040)) : m("", !0),
936
+ T(e.$slots, "skeleton", {}, () => [E(lt) ? (C(), p(de, { key: 0 })) : m("", !0)], !0)
937
+ ], 46, Ne));
938
+ }
939
+ }, [["__scopeId", "data-v-96e92816"]]);
940
+ //#endregion
941
+ export { Me as n, k as t };