vue-data-ui 3.23.0 → 3.23.2

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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-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/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -0,0 +1,935 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Jt as r, Kt as i, M as a, Ot as o, Pt as ee, S as te, Z as s, ct as c, jt as ne, q as re, t as l, tt as u, w as ie, xt as ae } from "./lib-Bttd6u5E.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-DlNpz6P8.js";
5
+ import { t as le } from "./usePrinter-DN5bYhTG.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as d } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as me } from "./img-Bnokohej.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
+ }, Ve = ["innerHTML"], 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) => ({ v2c5beca2: $t.value }));
57
+ let k = v(() => import("./Title-BE3qg9xl.js").then((e) => e.t)), He = v(() => import("./Tooltip-DhjyfHwz.js")), Ue = v(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), We = v(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Ge = v(() => import("./DataTable-BbKgJ5UI.js")), Ke = v(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), qe = v(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Je = v(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Ye = v(() => import("./RecursiveLinks-BygcpDiT.js")), Xe = v(() => import("./RecursiveLabels-D9rfID6q.js")), Ze = v(() => import("./RecursiveCircles-D6aDPmoe.js")), Qe = v(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_molecule: $e } = ce(), { isThemeValid: et, warnInvalidTheme: tt } = fe(), A = e, nt = Me, rt = f(() => !!A.dataset && A.dataset.length);
58
+ Ee(() => {
59
+ at();
60
+ });
61
+ let it = f(() => P.value.debug);
62
+ function at() {
63
+ ne(A.dataset) && u({
64
+ componentName: "VueUiMolecule",
65
+ type: "dataset",
66
+ debug: it.value
67
+ });
68
+ }
69
+ let ot = w(re()), st = w(!1), j = w(""), M = w(null), ct = w(0), lt = w(0), ut = w(0), N = w(null), dt = w(null), P = w(B());
70
+ oe({
71
+ config: () => P.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 F = f(() => P.value.userOptions.useCursorPointer), ft = f(() => r({
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: P.value.skeletonConfig ?? {}
105
+ })), { loading: I, FINAL_DATASET: L } = ue({
106
+ ...Ae(A),
107
+ FINAL_CONFIG: P,
108
+ prepareConfig: B,
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: r({
224
+ defaultConfig: P.value,
225
+ userConfig: ft.value
226
+ })
227
+ }), { userOptionsVisible: R, setUserOptionsVisibility: pt, keepUserOptionState: mt } = _e({ config: P.value }), { svgRef: z } = ve({ config: P.value.style.chart.title });
228
+ function B() {
229
+ let e = d({
230
+ userConfig: A.config,
231
+ defaultConfig: $e
232
+ }), t = e.theme;
233
+ if (!t) return e;
234
+ if (!et.value(e)) return tt(e), e;
235
+ let n = d({
236
+ userConfig: ye[t] || A.config,
237
+ defaultConfig: e
238
+ }), r = d({
239
+ userConfig: A.config,
240
+ defaultConfig: n
241
+ });
242
+ return {
243
+ ...r,
244
+ customPalette: r.customPalette.length ? r.customPalette : i[t] || ee
245
+ };
246
+ }
247
+ D(() => A.config, (e) => {
248
+ 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;
249
+ }, { deep: !0 });
250
+ let ht = w(0), gt = () => {
251
+ ht.value += 1;
252
+ };
253
+ D([() => I.value, () => L.value], async ([e]) => {
254
+ e || (await b(), W.value = St(), await b(), gt(), await b(), Ht({
255
+ x: 0,
256
+ y: 0,
257
+ width: 400,
258
+ height: 400
259
+ }), Bt(!1));
260
+ }, {
261
+ flush: "post",
262
+ deep: !1
263
+ });
264
+ let { isPrinting: V, isImaging: H, generatePdf: _t, generateImage: vt } = le({
265
+ elementId: `cluster_${ot.value}`,
266
+ fileName: P.value.style.chart.title.text || "vue-ui-molecule",
267
+ options: P.value.userOptions.print
268
+ }), yt = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), bt = f(() => ie(P.value.customPalette)), U = w({
269
+ showTable: P.value.table.show,
270
+ showDataLabels: !0,
271
+ showTooltip: P.value.style.chart.tooltip.show,
272
+ showZoom: P.value.style.chart.zoom.show
273
+ });
274
+ D(P, () => {
275
+ U.value = {
276
+ showTable: P.value.table.show,
277
+ showDataLabels: !0,
278
+ showTooltip: P.value.style.chart.tooltip.show,
279
+ showZoom: P.value.style.chart.zoom.show
280
+ };
281
+ }, { immediate: !0 });
282
+ function xt(e, t = 0) {
283
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
284
+ }
285
+ function St() {
286
+ let e = xt(L.value), t = 100, n = t;
287
+ for (let r = 0; r < e; r += 1) t /= 1, n += t;
288
+ return {
289
+ height: n,
290
+ width: n
291
+ };
292
+ }
293
+ let W = w(St());
294
+ function Ct(e, t = {
295
+ x: -W.value.width / 2.43,
296
+ y: W.value.height / 2
297
+ }, n = W.value.width / 1.1, r = 24, i = 0, o = 0, s = "#BBBBBB", c = 0) {
298
+ if (!Array.isArray(e) || e.length === 0) return e;
299
+ let ne = a({
300
+ plot: t,
301
+ radius: n,
302
+ sides: e.length,
303
+ rotation: i
304
+ });
305
+ return e.forEach((e, t) => {
306
+ let a = ne.coordinates[t], l = e.color ? (() => {
307
+ let t = te(e.color);
308
+ return t.startsWith("#") ? t : `#${t}`;
309
+ })() : null, u;
310
+ l ? u = l : c === 0 ? u = s : c === 1 ? (u = bt.value[o] || ee[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(P.value.style.chart.links.strokeWidth / (c + 1), r / 2), e.uid = re(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, a, n / 2.9, r / 2.2, i + Math.PI * t / e.nodes.length, o, u, c + 1));
311
+ }), e;
312
+ }
313
+ function wt(e) {
314
+ let t = /* @__PURE__ */ new Set();
315
+ function n(e) {
316
+ e.forEach((e) => {
317
+ if (!e.color) return;
318
+ let r = e.color;
319
+ /^#?[0-9A-F]{6}$/i.test(r) || (r = te(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
320
+ });
321
+ }
322
+ n(e);
323
+ let r = {};
324
+ return Array.from(t).forEach((e) => {
325
+ let t = e.slice(1);
326
+ r[e] = `gradient_${t}`;
327
+ }), r;
328
+ }
329
+ let Tt = f(() => wt(G.value)), G = f(() => Ct(s(L.value))), K = w(null);
330
+ function Et(e) {
331
+ K.value = {
332
+ datapoint: e,
333
+ seriesIndex: -1,
334
+ series: G.value,
335
+ config: P.value
336
+ };
337
+ let t = P.value.style.chart.tooltip.customFormat;
338
+ if (ae(t) && c(() => t({
339
+ seriesIndex: -1,
340
+ datapoint: e,
341
+ series: G.value,
342
+ config: P.value
343
+ }))) j.value = t({
344
+ seriesIndex: -1,
345
+ datapoint: e,
346
+ series: G.value,
347
+ config: P.value
348
+ });
349
+ else {
350
+ let t = "";
351
+ 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>`), j.value = `<div style="font-family:inherit">${t}</div>`;
352
+ }
353
+ }
354
+ let q = w(null), J = w(null), Dt = w(null);
355
+ function Ot(e) {
356
+ Dt.value = q.value, q.value = e, e ? P.value.events.datapointEnter && P.value.events.datapointEnter({
357
+ datapoint: e,
358
+ seriesIndex: -1
359
+ }) : P.value.events.datapointLeave && P.value.events.datapointLeave({
360
+ datapoint: Dt.value || q.value,
361
+ seriesIndex: -1
362
+ }), e ? (st.value = !0, Et(e), J.value = e.uid) : (st.value = !1, j.value = "", J.value = null);
363
+ }
364
+ function kt(e) {
365
+ let t = [];
366
+ function n(e) {
367
+ e.forEach((e) => {
368
+ let r = {
369
+ name: e.name,
370
+ details: e.details || "-",
371
+ ancestor: e.ancestor && e.ancestor.name || "-",
372
+ color: e.color || ""
373
+ };
374
+ t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
375
+ });
376
+ }
377
+ return n(e), t;
378
+ }
379
+ let At = f(() => kt(G.value)), Y = f(() => ({
380
+ head: [
381
+ P.value.table.translations.nodeName,
382
+ P.value.table.translations.details,
383
+ P.value.table.translations.ancestor
384
+ ],
385
+ body: At.value.map((e, t) => [
386
+ {
387
+ color: e.color,
388
+ name: e.name
389
+ },
390
+ e.details,
391
+ e.ancestor || ""
392
+ ]),
393
+ config: {
394
+ th: {
395
+ backgroundColor: P.value.table.th.backgroundColor,
396
+ color: P.value.table.th.color,
397
+ outline: P.value.table.th.outline
398
+ },
399
+ td: {
400
+ backgroundColor: P.value.table.td.backgroundColor,
401
+ color: P.value.table.td.color,
402
+ outline: P.value.table.td.outline
403
+ },
404
+ breakpoint: P.value.table.responsiveBreakpoint
405
+ },
406
+ colNames: [
407
+ P.value.table.translations.nodeName,
408
+ P.value.table.translations.details,
409
+ P.value.table.translations.ancestor
410
+ ]
411
+ }));
412
+ function jt(e = null) {
413
+ b(() => {
414
+ let r = Y.value.body.map((e, t) => [
415
+ [e[0].name],
416
+ [e[1]],
417
+ [e[2]]
418
+ ]), i = [
419
+ [P.value.style.chart.title.text],
420
+ [P.value.style.chart.title.subtitle.text],
421
+ [[...Y.value.head]]
422
+ ].concat(r), a = n(i);
423
+ e ? e(a) : t({
424
+ csvContent: a,
425
+ title: P.value.style.chart.title.text || "vue-ui-molecule"
426
+ });
427
+ });
428
+ }
429
+ function Mt() {
430
+ return G.value;
431
+ }
432
+ let X = w(!1);
433
+ function Nt(e) {
434
+ X.value = e, ct.value += 1;
435
+ }
436
+ function Pt() {
437
+ U.value.showTable = !U.value.showTable;
438
+ }
439
+ function Ft() {
440
+ U.value.showDataLabels = !U.value.showDataLabels;
441
+ }
442
+ function It() {
443
+ U.value.showTooltip = !U.value.showTooltip;
444
+ }
445
+ function Lt() {
446
+ U.value.showZoom = !U.value.showZoom;
447
+ }
448
+ let Z = w(!1);
449
+ function Rt() {
450
+ Z.value = !Z.value;
451
+ }
452
+ let zt = f(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = be(z, {
453
+ x: 0,
454
+ y: 0,
455
+ width: Math.max(10, W.value.width),
456
+ height: Math.max(10, W.value.height)
457
+ }, P.value.style.chart.zoom.speed, zt);
458
+ function Ut(e) {
459
+ P.value.events.datapointClick && P.value.events.datapointClick({
460
+ datapoint: e,
461
+ seriesIndex: -1
462
+ }), nt("selectNode", e);
463
+ }
464
+ async function Wt({ scale: e = 2 } = {}) {
465
+ if (!M.value) return;
466
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
467
+ domElement: M.value,
468
+ base64: !0,
469
+ img: !0,
470
+ scale: e
471
+ });
472
+ return {
473
+ imageUri: i,
474
+ base64: a,
475
+ title: P.value.style.chart.title.text,
476
+ width: t,
477
+ height: n,
478
+ aspectRatio: r
479
+ };
480
+ }
481
+ let $ = f(() => {
482
+ let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
483
+ return {
484
+ component: e ? Qe : We,
485
+ title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
486
+ props: e ? {
487
+ backgroundColor: P.value.table.th.backgroundColor,
488
+ color: P.value.table.th.color,
489
+ headerColor: P.value.table.th.color,
490
+ headerBg: P.value.table.th.backgroundColor,
491
+ isFullscreen: X.value,
492
+ fullscreenParent: M.value,
493
+ forcedWidth: Math.min(800, window.innerWidth * .8),
494
+ isCursorPointer: F.value
495
+ } : {
496
+ hideDetails: !0,
497
+ config: {
498
+ open: t,
499
+ maxHeight: 1e4,
500
+ body: {
501
+ backgroundColor: P.value.style.chart.backgroundColor,
502
+ color: P.value.style.chart.color
503
+ },
504
+ head: {
505
+ backgroundColor: P.value.style.chart.backgroundColor,
506
+ color: P.value.style.chart.color
507
+ }
508
+ }
509
+ }
510
+ };
511
+ });
512
+ D(() => U.value.showTable, (e) => {
513
+ P.value.table.show || (e && P.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
514
+ });
515
+ function Gt() {
516
+ U.value.showTable = !1, dt.value && dt.value.setTableIconState(!1);
517
+ }
518
+ let Kt = f(() => P.value.style.chart.backgroundColor), qt = f(() => P.value.style.chart.title), { isCallbackImaging: Jt, isCallbackSvg: Yt, generateSvg: Xt, onGenerateImage: Zt } = pe({
519
+ svg: z,
520
+ title: qt,
521
+ legend: null,
522
+ legendItems: null,
523
+ backgroundColor: Kt,
524
+ getSvgCallback: () => P.value.userOptions.callbacks.svg,
525
+ generateImage: vt
526
+ });
527
+ async function Qt() {
528
+ if (nt("copyAlt", {
529
+ config: P.value,
530
+ dataset: G.value
531
+ }), !P.value.userOptions.callbacks.altCopy) {
532
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
533
+ return;
534
+ }
535
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
536
+ config: P.value,
537
+ dataset: G.value
538
+ }));
539
+ }
540
+ let $t = f(() => P.value.style.chart.color);
541
+ return he({
542
+ getData: Mt,
543
+ getImage: Wt,
544
+ generatePdf: _t,
545
+ generateCsv: jt,
546
+ generateImage: vt,
547
+ generateSvg: Xt,
548
+ toggleTable: Pt,
549
+ toggleLabels: Ft,
550
+ toggleTooltip: It,
551
+ toggleAnnotator: Rt,
552
+ toggleFullscreen: Nt,
553
+ toggleZoom: Lt,
554
+ copyAlt: Qt
555
+ }), (e, t) => (C(), h("div", {
556
+ ref_key: "moleculeChart",
557
+ ref: M,
558
+ class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
559
+ style: S(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
560
+ id: `cluster_${ot.value}`,
561
+ onMouseleave: t[2] ||= (e) => {
562
+ q.value = null, J.value = null, E(pt)(!1);
563
+ },
564
+ onMouseenter: t[3] ||= () => E(pt)(!0)
565
+ }, [
566
+ P.value.userOptions.buttons.annotator && E(z) ? (C(), p(E(Ke), {
567
+ key: 0,
568
+ svgRef: E(z),
569
+ backgroundColor: P.value.style.chart.backgroundColor,
570
+ color: P.value.style.chart.color,
571
+ active: Z.value,
572
+ isCursorPointer: F.value,
573
+ onClose: Rt
574
+ }, {
575
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
576
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
577
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
578
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
579
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
580
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
581
+ _: 3
582
+ }, 8, [
583
+ "svgRef",
584
+ "backgroundColor",
585
+ "color",
586
+ "active",
587
+ "isCursorPointer"
588
+ ])) : m("", !0),
589
+ yt.value ? (C(), h("div", Pe, null, 512)) : m("", !0),
590
+ P.value.style.chart.title.text ? (C(), h("div", Fe, [(C(), p(E(k), {
591
+ key: `title_${lt.value}`,
592
+ config: {
593
+ title: {
594
+ cy: "molecule-div-title",
595
+ ...P.value.style.chart.title
596
+ },
597
+ subtitle: {
598
+ cy: "molecule-div-subtitle",
599
+ ...P.value.style.chart.title.subtitle
600
+ }
601
+ }
602
+ }, null, 8, ["config"]))])) : m("", !0),
603
+ P.value.userOptions.show && rt.value && (E(mt) || E(R)) ? (C(), p(E(qe), {
604
+ ref_key: "userOptionsRef",
605
+ ref: dt,
606
+ key: `user_options_${ct.value}`,
607
+ backgroundColor: P.value.style.chart.backgroundColor,
608
+ color: P.value.style.chart.color,
609
+ isPrinting: E(V),
610
+ isImaging: E(H),
611
+ uid: ot.value,
612
+ hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
613
+ hasPdf: P.value.userOptions.buttons.pdf,
614
+ hasXls: P.value.userOptions.buttons.csv,
615
+ hasImg: P.value.userOptions.buttons.img,
616
+ hasSvg: P.value.userOptions.buttons.svg,
617
+ hasTable: P.value.userOptions.buttons.table,
618
+ hasLabel: P.value.userOptions.buttons.labels,
619
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
620
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
621
+ isTooltip: U.value.showTooltip,
622
+ titles: { ...P.value.userOptions.buttonTitles },
623
+ chartElement: M.value,
624
+ position: P.value.userOptions.position,
625
+ hasAnnotator: P.value.userOptions.buttons.annotator,
626
+ isAnnotation: Z.value,
627
+ callbacks: P.value.userOptions.callbacks,
628
+ printScale: P.value.userOptions.print.scale,
629
+ tableDialog: P.value.table.useDialog,
630
+ hasZoom: P.value.userOptions.buttons.zoom,
631
+ isZoom: U.value.showZoom,
632
+ isCursorPointer: F.value,
633
+ onToggleFullscreen: Nt,
634
+ onGeneratePdf: E(_t),
635
+ onGenerateCsv: jt,
636
+ onGenerateImage: E(Zt),
637
+ onGenerateSvg: E(Xt),
638
+ onToggleTable: Pt,
639
+ onToggleLabels: Ft,
640
+ onToggleTooltip: It,
641
+ onToggleAnnotator: Rt,
642
+ onToggleZoom: Lt,
643
+ onCopyAlt: Qt,
644
+ style: S({ visibility: E(mt) ? E(R) ? "visible" : "hidden" : "visible" })
645
+ }, Se({ _: 2 }, [
646
+ e.$slots.menuIcon ? {
647
+ name: "menuIcon",
648
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
649
+ isOpen: t,
650
+ color: n
651
+ })), void 0, !0)]),
652
+ key: "0"
653
+ } : void 0,
654
+ e.$slots.optionTooltip ? {
655
+ name: "optionTooltip",
656
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
657
+ key: "1"
658
+ } : void 0,
659
+ e.$slots.optionPdf ? {
660
+ name: "optionPdf",
661
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
662
+ key: "2"
663
+ } : void 0,
664
+ e.$slots.optionCsv ? {
665
+ name: "optionCsv",
666
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
667
+ key: "3"
668
+ } : void 0,
669
+ e.$slots.optionImg ? {
670
+ name: "optionImg",
671
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
672
+ key: "4"
673
+ } : void 0,
674
+ e.$slots.optionSvg ? {
675
+ name: "optionSvg",
676
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
677
+ key: "5"
678
+ } : void 0,
679
+ e.$slots.optionTable ? {
680
+ name: "optionTable",
681
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
682
+ key: "6"
683
+ } : void 0,
684
+ e.$slots.optionLabels ? {
685
+ name: "optionLabels",
686
+ fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
687
+ key: "7"
688
+ } : void 0,
689
+ e.$slots.optionFullscreen ? {
690
+ name: "optionFullscreen",
691
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
692
+ toggleFullscreen: t,
693
+ isFullscreen: n
694
+ })), void 0, !0)]),
695
+ key: "8"
696
+ } : void 0,
697
+ e.$slots.optionAnnotator ? {
698
+ name: "optionAnnotator",
699
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
700
+ toggleAnnotator: t,
701
+ isAnnotator: n
702
+ })), void 0, !0)]),
703
+ key: "9"
704
+ } : void 0,
705
+ e.$slots.optionZoom ? {
706
+ name: "optionZoom",
707
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(y({
708
+ toggleZoom: t,
709
+ isZoomLocked: n
710
+ })), void 0, !0)]),
711
+ key: "10"
712
+ } : void 0,
713
+ e.$slots.optionAltCopy ? {
714
+ name: "optionAltCopy",
715
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
716
+ key: "11"
717
+ } : void 0,
718
+ e.$slots["custom-menu-before"] ? {
719
+ name: "custom-menu-before",
720
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
721
+ key: "12"
722
+ } : void 0,
723
+ e.$slots["custom-menu-after"] ? {
724
+ name: "custom-menu-after",
725
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
726
+ key: "13"
727
+ } : void 0
728
+ ]), 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),
729
+ (C(), h("svg", {
730
+ ref_key: "svgRef",
731
+ ref: z,
732
+ key: `svg_${ht.value}`,
733
+ xmlns: E(l),
734
+ viewBox: `${E(Q).x} ${E(Q).y} ${E(Q).width} ${E(Q).height}`,
735
+ class: Te({
736
+ "vue-data-ui-fullscreen--on": X.value,
737
+ "vue-data-ui-fulscreen--off": !X.value
738
+ }),
739
+ style: S(`overflow: hidden; background:transparent;color:${P.value.style.chart.color}`)
740
+ }, [
741
+ _(E(Je)),
742
+ e.$slots["chart-background"] ? (C(), h("foreignObject", {
743
+ key: 0,
744
+ x: 0,
745
+ y: 0,
746
+ width: W.value.width <= 0 ? 10 : W.value.width,
747
+ height: W.value.height <= 0 ? 10 : W.value.height,
748
+ style: { pointerEvents: "none" }
749
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : m("", !0),
750
+ g("defs", null, [(C(!0), h(xe, null, De(Object.keys(Tt.value), (e, t) => (C(), p(ge, {
751
+ t: "radial",
752
+ id: `gradient_${e}`,
753
+ key: `gradient_${e}_${t}`,
754
+ cx: "50%",
755
+ cy: "30%",
756
+ r: "50%",
757
+ fx: "50%",
758
+ fy: "50%",
759
+ stops: [[
760
+ "0%",
761
+ E(o)(e, .5),
762
+ 1
763
+ ], [
764
+ "100%",
765
+ e,
766
+ 1
767
+ ]]
768
+ }, null, 8, ["id", "stops"]))), 128))]),
769
+ _(E(Ye), {
770
+ dataset: G.value,
771
+ color: P.value.style.chart.links.stroke,
772
+ backgroundColor: P.value.style.chart.backgroundColor,
773
+ useChildColor: P.value.style.chart.links.useChildColor
774
+ }, null, 8, [
775
+ "dataset",
776
+ "color",
777
+ "backgroundColor",
778
+ "useChildColor"
779
+ ]),
780
+ _(E(Ze), {
781
+ dataset: G.value,
782
+ hoveredUid: J.value,
783
+ stroke: P.value.style.chart.nodes.stroke,
784
+ strokeHovered: P.value.style.chart.nodes.strokeHovered,
785
+ onClick: Ut,
786
+ onHover: Ot
787
+ }, {
788
+ node: O(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
789
+ "node-svg": O(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
790
+ _: 3
791
+ }, 8, [
792
+ "dataset",
793
+ "hoveredUid",
794
+ "stroke",
795
+ "strokeHovered"
796
+ ]),
797
+ U.value.showDataLabels && !E(I) ? (C(), p(E(Xe), {
798
+ key: 1,
799
+ dataset: G.value,
800
+ color: P.value.style.chart.color,
801
+ hoveredUid: J.value
802
+ }, null, 8, [
803
+ "dataset",
804
+ "color",
805
+ "hoveredUid"
806
+ ])) : m("", !0),
807
+ T(e.$slots, "svg", { svg: {
808
+ ...W.value,
809
+ drawingArea: { ...E(Q) },
810
+ isPrintingImg: E(V) || E(H) || E(Jt),
811
+ isPrintingSvg: E(Yt)
812
+ } }, void 0, !0)
813
+ ], 14, Ie)),
814
+ e.$slots.watermark ? (C(), h("div", Re, [T(e.$slots, "watermark", x(y({ isPrinting: E(V) || E(H) || E(Jt) || E(Yt) })), void 0, !0)])) : m("", !0),
815
+ E(Vt) ? (C(), h("div", ze, [T(e.$slots, "reset-action", { reset: E(Bt) }, () => [g("button", {
816
+ "data-cy-reset": "",
817
+ tabindex: "0",
818
+ role: "button",
819
+ class: "vue-data-ui-refresh-button",
820
+ style: S({
821
+ background: P.value.style.chart.backgroundColor,
822
+ cursor: F.value ? "pointer" : "default"
823
+ }),
824
+ onClick: t[0] ||= (e) => E(Bt)(!0)
825
+ }, [_(E(Ue), {
826
+ name: "refresh",
827
+ stroke: P.value.style.chart.color
828
+ }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
829
+ e.$slots.source ? (C(), h("div", Be, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
830
+ _(E(He), {
831
+ teleportTo: P.value.style.chart.tooltip.teleportTo,
832
+ show: U.value.showTooltip && st.value,
833
+ backgroundColor: P.value.style.chart.tooltip.backgroundColor,
834
+ color: P.value.style.chart.tooltip.color,
835
+ borderRadius: P.value.style.chart.tooltip.borderRadius,
836
+ borderColor: P.value.style.chart.tooltip.borderColor,
837
+ borderWidth: P.value.style.chart.tooltip.borderWidth,
838
+ fontSize: P.value.style.chart.tooltip.fontSize,
839
+ backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
840
+ position: P.value.style.chart.tooltip.position,
841
+ offsetX: P.value.style.chart.tooltip.offsetX,
842
+ offsetY: P.value.style.chart.tooltip.offsetY,
843
+ parent: M.value,
844
+ content: j.value,
845
+ isFullscreen: X.value,
846
+ isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
847
+ smooth: P.value.style.chart.tooltip.smooth,
848
+ backdropFilter: P.value.style.chart.tooltip.backdropFilter,
849
+ smoothForce: P.value.style.chart.tooltip.smoothForce,
850
+ smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
851
+ }, {
852
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...K.value })), void 0, !0)]),
853
+ tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...K.value })), void 0, !0)]),
854
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...K.value })), void 0, !0)]),
855
+ _: 3
856
+ }, 8, [
857
+ "teleportTo",
858
+ "show",
859
+ "backgroundColor",
860
+ "color",
861
+ "borderRadius",
862
+ "borderColor",
863
+ "borderWidth",
864
+ "fontSize",
865
+ "backgroundOpacity",
866
+ "position",
867
+ "offsetX",
868
+ "offsetY",
869
+ "parent",
870
+ "content",
871
+ "isFullscreen",
872
+ "isCustom",
873
+ "smooth",
874
+ "backdropFilter",
875
+ "smoothForce",
876
+ "smoothSnapThreshold"
877
+ ]),
878
+ rt.value && P.value.userOptions.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
879
+ ref_key: "tableUnit",
880
+ ref: N,
881
+ onClose: Gt
882
+ }), Se({
883
+ content: O(() => [(C(), p(E(Ge), {
884
+ key: `table_${ut.value}`,
885
+ colNames: Y.value.colNames,
886
+ head: Y.value.head,
887
+ body: Y.value.body,
888
+ config: Y.value.config,
889
+ title: P.value.table.useDialog ? "" : $.value.title,
890
+ withCloseButton: !P.value.table.useDialog,
891
+ isCursorPointer: F.value,
892
+ onClose: Gt
893
+ }, {
894
+ th: O(({ th: e }) => [g("div", {
895
+ innerHTML: e,
896
+ style: {
897
+ display: "flex",
898
+ "align-items": "center"
899
+ }
900
+ }, null, 8, Ve)]),
901
+ td: O(({ td: e }) => [Ce(ke(e.name || e), 1)]),
902
+ _: 1
903
+ }, 8, [
904
+ "colNames",
905
+ "head",
906
+ "body",
907
+ "config",
908
+ "title",
909
+ "withCloseButton",
910
+ "isCursorPointer"
911
+ ]))]),
912
+ _: 2
913
+ }, [P.value.table.useDialog ? {
914
+ name: "title",
915
+ fn: O(() => [Ce(ke($.value.title), 1)]),
916
+ key: "0"
917
+ } : void 0, P.value.table.useDialog ? {
918
+ name: "actions",
919
+ fn: O(() => [g("button", {
920
+ tabindex: "0",
921
+ class: "vue-ui-user-options-button",
922
+ onClick: t[1] ||= (e) => jt(P.value.userOptions.callbacks.csv),
923
+ style: S({ cursor: F.value ? "pointer" : "default" })
924
+ }, [_(E(Ue), {
925
+ name: "fileCsv",
926
+ stroke: $.value.props.color
927
+ }, null, 8, ["stroke"])], 4)]),
928
+ key: "1"
929
+ } : void 0]), 1040)) : m("", !0),
930
+ T(e.$slots, "skeleton", {}, () => [E(I) ? (C(), p(de, { key: 0 })) : m("", !0)], !0)
931
+ ], 46, Ne));
932
+ }
933
+ }, [["__scopeId", "data-v-65b09aea"]]);
934
+ //#endregion
935
+ export { Me as n, k as t };