vue-data-ui 3.22.6 → 3.22.7

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 (191) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
  16. package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.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-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
  89. package/dist/exposedLib-Be0ifkti.js +19 -0
  90. package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
  91. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
  92. package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
  93. package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
  94. package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
  95. package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
  101. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
  102. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
  103. package/dist/utils.js +10 -10
  104. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
  105. package/dist/vue-data-ui.js +72 -72
  106. package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
  107. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
  108. package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
  109. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
  110. package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
  111. package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
  112. package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
  113. package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
  114. package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
  115. package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
  116. package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
  117. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
  118. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
  119. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
  120. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
  121. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
  122. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
  123. package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
  124. package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
  125. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
  126. package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
  127. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
  128. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
  129. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
  130. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
  131. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
  132. package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
  133. package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
  134. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
  136. package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
  137. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
  138. package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
  139. package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
  140. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
  141. package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
  142. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
  143. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
  144. package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
  145. package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
  146. package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
  147. package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
  148. package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
  149. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
  150. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
  151. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
  152. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
  153. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
  154. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
  155. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
  156. package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
  157. package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
  158. package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
  159. package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
  160. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
  161. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
  162. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
  163. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
  164. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
  165. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
  166. package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
  167. package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
  168. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
  169. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
  170. package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
  171. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
  172. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
  173. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
  174. package/package.json +1 -1
  175. package/dist/exposedLib-CjwriUaG.js +0 -19
  176. package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
  177. package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
  178. package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
  179. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  180. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  181. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  182. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  183. package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
  184. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  185. package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
  186. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  187. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  188. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  189. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  190. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  191. package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
@@ -0,0 +1,925 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Gt as t, J as n, Ot as r, Q as i, S as a, Tt as o, Ut as s, W as ee, X as te, at as c, b as ne, jt as re, k as l, t as u, vt as ie, w as ae } from "./lib-EAmk-PgA.js";
3
+ import { t as oe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as se } from "./usePrinter-DnGzpp6Q.js";
5
+ import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ue } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as d } from "./useNestedProp-D8XqxgOU.js";
8
+ import { t as de } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as fe } from "./img-B_abIg0o.js";
10
+ import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as me } from "./useUserOptionState-DK-_1ddE.js";
12
+ import { t as he } from "./useChartAccessibility-DYqac8yF.js";
13
+ import { t as ge } from "./vue_ui_molecule-CO9L59SF.js";
14
+ import { t as _e } from "./usePanZoom-CYU3B4T3.js";
15
+ import { Fragment as ve, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ye, createTextVNode as be, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as xe, nextTick as b, normalizeClass as Se, normalizeProps as x, normalizeStyle as S, onMounted as Ce, openBlock as C, ref as w, renderList as we, renderSlot as T, resolveDynamicComponent as Te, toDisplayString as Ee, toRefs as De, unref as E, useCssVars as Oe, watch as D, withCtx as O } from "vue";
16
+ //#region src/components/vue-ui-molecule.vue
17
+ var ke = /* @__PURE__ */ e({ default: () => k }), Ae = ["id"], je = {
18
+ key: 1,
19
+ ref: "noTitle",
20
+ class: "vue-data-ui-no-title-space",
21
+ style: "height:36px; width: 100%;background:transparent"
22
+ }, Me = {
23
+ key: 2,
24
+ style: "width:100%;background:transparent;"
25
+ }, Ne = ["xmlns", "viewBox"], Pe = ["width", "height"], Fe = ["id"], Ie = ["stop-color"], Le = ["stop-color"], Re = {
26
+ key: 4,
27
+ class: "vue-data-ui-watermark"
28
+ }, ze = {
29
+ key: 5,
30
+ "data-dom-to-png-ignore": "",
31
+ class: "reset-wrapper"
32
+ }, Be = {
33
+ key: 6,
34
+ ref: "source",
35
+ dir: "auto"
36
+ }, Ve = ["innerHTML"], k = /*#__PURE__*/ pe({
37
+ __name: "vue-ui-molecule",
38
+ props: {
39
+ config: {
40
+ type: Object,
41
+ default() {
42
+ return {};
43
+ }
44
+ },
45
+ dataset: {
46
+ type: Array,
47
+ default() {
48
+ return [];
49
+ }
50
+ }
51
+ },
52
+ emits: ["selectNode", "copyAlt"],
53
+ setup(e, { expose: pe, emit: ke }) {
54
+ Oe((e) => ({ v2702dffc: en.value }));
55
+ let k = v(() => import("./Title-PiTKr6sp.js").then((e) => e.t)), He = v(() => import("./Tooltip-B8yYfISA.js")), Ue = v(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), We = v(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Ge = v(() => import("./DataTable-CVF7DoZn.js")), Ke = v(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), qe = v(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Je = v(() => import("./PackageVersion-Dse0n05o.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-1wwwdwV2.js").then((e) => e.n)), { vue_ui_molecule: $e } = oe(), { isThemeValid: et, warnInvalidTheme: tt } = de(), A = e, nt = ke, rt = f(() => !!A.dataset && A.dataset.length);
56
+ Ce(() => {
57
+ at();
58
+ });
59
+ let it = f(() => z.value.debug);
60
+ function at() {
61
+ r(A.dataset) && i({
62
+ componentName: "VueUiMolecule",
63
+ type: "dataset",
64
+ debug: it.value
65
+ });
66
+ }
67
+ let j = w(ee()), M = w(!1), N = w(""), P = w(null), ot = w(0), st = w(0), ct = w(0), F = w(null), I = w(null), L = w(!1), R = w(!1), z = w(mt()), B = f(() => z.value.userOptions.useCursorPointer), lt = f(() => t({
68
+ defaultConfig: {
69
+ userOptions: { show: !1 },
70
+ table: { show: !1 },
71
+ style: { chart: {
72
+ backgroundColor: "#99999930",
73
+ nodes: { stroke: "#6A6A6A" },
74
+ links: { stroke: "#6A6A6A80" }
75
+ } }
76
+ },
77
+ userConfig: z.value.skeletonConfig ?? {}
78
+ })), { loading: V, FINAL_DATASET: ut } = ce({
79
+ ...De(A),
80
+ FINAL_CONFIG: z,
81
+ prepareConfig: mt,
82
+ skeletonDataset: A.config?.skeletonDataset ?? [{
83
+ name: "_",
84
+ color: "#CACACA",
85
+ nodes: [
86
+ {
87
+ name: "_",
88
+ color: "#CACACA",
89
+ nodes: [
90
+ {
91
+ name: "_",
92
+ color: "#CACACA"
93
+ },
94
+ {
95
+ name: "_",
96
+ color: "#CACACA"
97
+ },
98
+ {
99
+ name: "_",
100
+ color: "#CACACA"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ name: "_",
106
+ color: "#CACACA",
107
+ nodes: [
108
+ {
109
+ name: "_",
110
+ color: "#CACACA"
111
+ },
112
+ {
113
+ name: "_",
114
+ color: "#CACACA"
115
+ },
116
+ {
117
+ name: "_",
118
+ color: "#CACACA"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ name: "_",
124
+ color: "#CACACA",
125
+ nodes: [
126
+ {
127
+ name: "_",
128
+ color: "#CACACA"
129
+ },
130
+ {
131
+ name: "_",
132
+ color: "#CACACA"
133
+ },
134
+ {
135
+ name: "_",
136
+ color: "#CACACA"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ name: "_",
142
+ color: "#CACACA",
143
+ nodes: [
144
+ {
145
+ name: "_",
146
+ color: "#CACACA"
147
+ },
148
+ {
149
+ name: "_",
150
+ color: "#CACACA"
151
+ },
152
+ {
153
+ name: "_",
154
+ color: "#CACACA"
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ name: "_",
160
+ color: "#CACACA",
161
+ nodes: [
162
+ {
163
+ name: "_",
164
+ color: "#CACACA"
165
+ },
166
+ {
167
+ name: "_",
168
+ color: "#CACACA"
169
+ },
170
+ {
171
+ name: "_",
172
+ color: "#CACACA"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ name: "_",
178
+ color: "#CACACA",
179
+ nodes: [
180
+ {
181
+ name: "_",
182
+ color: "#CACACA"
183
+ },
184
+ {
185
+ name: "_",
186
+ color: "#CACACA"
187
+ },
188
+ {
189
+ name: "_",
190
+ color: "#CACACA"
191
+ }
192
+ ]
193
+ }
194
+ ]
195
+ }],
196
+ skeletonConfig: t({
197
+ defaultConfig: z.value,
198
+ userConfig: lt.value
199
+ })
200
+ }), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = me({ config: z.value }), { svgRef: H } = he({ config: z.value.style.chart.title });
201
+ function mt() {
202
+ let e = d({
203
+ userConfig: A.config,
204
+ defaultConfig: $e
205
+ }), t = e.theme;
206
+ if (!t) return e;
207
+ if (!et.value(e)) return tt(e), e;
208
+ let n = d({
209
+ userConfig: ge[t] || A.config,
210
+ defaultConfig: e
211
+ }), r = d({
212
+ userConfig: A.config,
213
+ defaultConfig: n
214
+ });
215
+ return {
216
+ ...r,
217
+ customPalette: r.customPalette.length ? r.customPalette : s[t] || re
218
+ };
219
+ }
220
+ D(() => A.config, (e) => {
221
+ z.value = mt(), dt.value = !z.value.userOptions.showOnChartHover, at(), st.value += 1, ct.value += 1, U.value.showTable = z.value.table.show, U.value.showTooltip = z.value.style.chart.tooltip.show, U.value.showZoom = z.value.style.chart.zoom.show;
222
+ }, { deep: !0 });
223
+ let ht = w(0), gt = () => {
224
+ ht.value += 1;
225
+ };
226
+ D([() => V.value, () => ut.value], async ([e]) => {
227
+ e || (await b(), W.value = wt(), await b(), gt(), await b(), Wt({
228
+ x: 0,
229
+ y: 0,
230
+ width: 400,
231
+ height: 400
232
+ }), Ht(!1));
233
+ }, {
234
+ flush: "post",
235
+ deep: !1
236
+ });
237
+ let { isPrinting: _t, isImaging: vt, generatePdf: yt, generateImage: bt } = se({
238
+ elementId: `cluster_${j.value}`,
239
+ fileName: z.value.style.chart.title.text || "vue-ui-molecule",
240
+ options: z.value.userOptions.print
241
+ }), xt = f(() => z.value.userOptions.show && !z.value.style.chart.title.text), St = f(() => a(z.value.customPalette)), U = w({
242
+ showTable: z.value.table.show,
243
+ showDataLabels: !0,
244
+ showTooltip: z.value.style.chart.tooltip.show,
245
+ showZoom: z.value.style.chart.zoom.show
246
+ });
247
+ D(z, () => {
248
+ U.value = {
249
+ showTable: z.value.table.show,
250
+ showDataLabels: !0,
251
+ showTooltip: z.value.style.chart.tooltip.show,
252
+ showZoom: z.value.style.chart.zoom.show
253
+ };
254
+ }, { immediate: !0 });
255
+ function Ct(e, t = 0) {
256
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? Ct(e[0].nodes, t + 1) : t;
257
+ }
258
+ function wt() {
259
+ let e = Ct(ut.value), t = 100, n = t;
260
+ for (let r = 0; r < e; r += 1) t /= 1, n += t;
261
+ return {
262
+ height: n,
263
+ width: n
264
+ };
265
+ }
266
+ let W = w(wt());
267
+ function Tt(e, t = {
268
+ x: -W.value.width / 2.43,
269
+ y: W.value.height / 2
270
+ }, n = W.value.width / 1.1, r = 24, i = 0, a = 0, o = "#BBBBBB", s = 0) {
271
+ if (!Array.isArray(e) || e.length === 0) return e;
272
+ let te = l({
273
+ plot: t,
274
+ radius: n,
275
+ sides: e.length,
276
+ rotation: i
277
+ });
278
+ return e.forEach((e, t) => {
279
+ let c = te.coordinates[t], l = e.color ? (() => {
280
+ let t = ne(e.color);
281
+ return t.startsWith("#") ? t : `#${t}`;
282
+ })() : null, u;
283
+ l ? u = l : s === 0 ? u = o : s === 1 ? (u = St.value[a] || re[a] || o, a += 1) : u = o, e.polygonPath = { coordinates: [c] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(z.value.style.chart.links.strokeWidth / (s + 1), r / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Tt(e.nodes, c, n / 2.9, r / 2.2, i + Math.PI * t / e.nodes.length, a, u, s + 1));
284
+ }), e;
285
+ }
286
+ function Et(e) {
287
+ let t = /* @__PURE__ */ new Set();
288
+ function n(e) {
289
+ e.forEach((e) => {
290
+ if (!e.color) return;
291
+ let r = e.color;
292
+ /^#?[0-9A-F]{6}$/i.test(r) || (r = ne(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
293
+ });
294
+ }
295
+ n(e);
296
+ let r = {};
297
+ return Array.from(t).forEach((e) => {
298
+ r[e] = `gradient_${e.slice(1)}`;
299
+ }), r;
300
+ }
301
+ let Dt = f(() => Et(G.value)), G = f(() => Tt(n(ut.value))), K = w(null);
302
+ function Ot(e) {
303
+ K.value = {
304
+ datapoint: e,
305
+ seriesIndex: -1,
306
+ series: G.value,
307
+ config: z.value
308
+ };
309
+ let t = z.value.style.chart.tooltip.customFormat;
310
+ if (ie(t) && c(() => t({
311
+ seriesIndex: -1,
312
+ datapoint: e,
313
+ series: G.value,
314
+ config: z.value
315
+ }))) N.value = t({
316
+ seriesIndex: -1,
317
+ datapoint: e,
318
+ series: G.value,
319
+ config: z.value
320
+ });
321
+ else {
322
+ let t = "";
323
+ 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 ${z.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), N.value = `<div style="font-family:inherit">${t}</div>`;
324
+ }
325
+ }
326
+ let q = w(null), J = w(null), kt = w(null);
327
+ function At(e) {
328
+ kt.value = q.value, q.value = e, e ? z.value.events.datapointEnter && z.value.events.datapointEnter({
329
+ datapoint: e,
330
+ seriesIndex: -1
331
+ }) : z.value.events.datapointLeave && z.value.events.datapointLeave({
332
+ datapoint: kt.value || q.value,
333
+ seriesIndex: -1
334
+ }), e ? (M.value = !0, Ot(e), J.value = e.uid) : (M.value = !1, N.value = "", J.value = null);
335
+ }
336
+ function jt(e) {
337
+ let t = [];
338
+ function n(e) {
339
+ e.forEach((e) => {
340
+ let r = {
341
+ name: e.name,
342
+ details: e.details || "-",
343
+ ancestor: e.ancestor && e.ancestor.name || "-",
344
+ color: e.color || ""
345
+ };
346
+ t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
347
+ });
348
+ }
349
+ return n(e), t;
350
+ }
351
+ let Mt = f(() => jt(G.value)), Y = f(() => ({
352
+ head: [
353
+ z.value.table.translations.nodeName,
354
+ z.value.table.translations.details,
355
+ z.value.table.translations.ancestor
356
+ ],
357
+ body: Mt.value.map((e, t) => [
358
+ {
359
+ color: e.color,
360
+ name: e.name
361
+ },
362
+ e.details,
363
+ e.ancestor || ""
364
+ ]),
365
+ config: {
366
+ th: {
367
+ backgroundColor: z.value.table.th.backgroundColor,
368
+ color: z.value.table.th.color,
369
+ outline: z.value.table.th.outline
370
+ },
371
+ td: {
372
+ backgroundColor: z.value.table.td.backgroundColor,
373
+ color: z.value.table.td.color,
374
+ outline: z.value.table.td.outline
375
+ },
376
+ breakpoint: z.value.table.responsiveBreakpoint
377
+ },
378
+ colNames: [
379
+ z.value.table.translations.nodeName,
380
+ z.value.table.translations.details,
381
+ z.value.table.translations.ancestor
382
+ ]
383
+ }));
384
+ function Nt(e = null) {
385
+ b(() => {
386
+ let t = Y.value.body.map((e, t) => [
387
+ [e[0].name],
388
+ [e[1]],
389
+ [e[2]]
390
+ ]), n = ae([
391
+ [z.value.style.chart.title.text],
392
+ [z.value.style.chart.title.subtitle.text],
393
+ [[...Y.value.head]]
394
+ ].concat(t));
395
+ e ? e(n) : te({
396
+ csvContent: n,
397
+ title: z.value.style.chart.title.text || "vue-ui-molecule"
398
+ });
399
+ });
400
+ }
401
+ function Pt() {
402
+ return G.value;
403
+ }
404
+ let X = w(!1);
405
+ function Ft(e) {
406
+ X.value = e, ot.value += 1;
407
+ }
408
+ function It() {
409
+ U.value.showTable = !U.value.showTable;
410
+ }
411
+ function Lt() {
412
+ U.value.showDataLabels = !U.value.showDataLabels;
413
+ }
414
+ function Rt() {
415
+ U.value.showTooltip = !U.value.showTooltip;
416
+ }
417
+ function zt() {
418
+ U.value.showZoom = !U.value.showZoom;
419
+ }
420
+ let Z = w(!1);
421
+ function Bt() {
422
+ Z.value = !Z.value;
423
+ }
424
+ let Vt = f(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Ht, isZoom: Ut, setInitialViewBox: Wt } = _e(H, {
425
+ x: 0,
426
+ y: 0,
427
+ width: Math.max(10, W.value.width),
428
+ height: Math.max(10, W.value.height)
429
+ }, z.value.style.chart.zoom.speed, Vt);
430
+ function Gt(e) {
431
+ z.value.events.datapointClick && z.value.events.datapointClick({
432
+ datapoint: e,
433
+ seriesIndex: -1
434
+ }), nt("selectNode", e);
435
+ }
436
+ async function Kt({ scale: e = 2 } = {}) {
437
+ if (!P.value) return;
438
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
439
+ domElement: P.value,
440
+ base64: !0,
441
+ img: !0,
442
+ scale: e
443
+ });
444
+ return {
445
+ imageUri: i,
446
+ base64: a,
447
+ title: z.value.style.chart.title.text,
448
+ width: t,
449
+ height: n,
450
+ aspectRatio: r
451
+ };
452
+ }
453
+ let $ = f(() => {
454
+ let e = z.value.table.useDialog && !z.value.table.show, t = U.value.showTable;
455
+ return {
456
+ component: e ? Qe : We,
457
+ title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
458
+ props: e ? {
459
+ backgroundColor: z.value.table.th.backgroundColor,
460
+ color: z.value.table.th.color,
461
+ headerColor: z.value.table.th.color,
462
+ headerBg: z.value.table.th.backgroundColor,
463
+ isFullscreen: X.value,
464
+ fullscreenParent: P.value,
465
+ forcedWidth: Math.min(800, window.innerWidth * .8),
466
+ isCursorPointer: B.value
467
+ } : {
468
+ hideDetails: !0,
469
+ config: {
470
+ open: t,
471
+ maxHeight: 1e4,
472
+ body: {
473
+ backgroundColor: z.value.style.chart.backgroundColor,
474
+ color: z.value.style.chart.color
475
+ },
476
+ head: {
477
+ backgroundColor: z.value.style.chart.backgroundColor,
478
+ color: z.value.style.chart.color
479
+ }
480
+ }
481
+ }
482
+ };
483
+ });
484
+ D(() => U.value.showTable, (e) => {
485
+ z.value.table.show || (e && z.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
486
+ });
487
+ function qt() {
488
+ U.value.showTable = !1, I.value && I.value.setTableIconState(!1);
489
+ }
490
+ let Jt = f(() => z.value.style.chart.backgroundColor), { exportSvg: Yt, getSvg: Xt } = ue({
491
+ svg: H,
492
+ title: f(() => z.value.style.chart.title),
493
+ backgroundColor: Jt
494
+ });
495
+ async function Zt({ isCb: e }) {
496
+ R.value = !0, await b();
497
+ try {
498
+ if (e) {
499
+ let { blob: e, url: t, text: n, dataUrl: r } = await Xt();
500
+ await Promise.resolve(z.value.userOptions.callbacks.svg({
501
+ blob: e,
502
+ url: t,
503
+ text: n,
504
+ dataUrl: r
505
+ }));
506
+ } else await Promise.resolve(Yt());
507
+ } finally {
508
+ R.value = !1;
509
+ }
510
+ }
511
+ function Qt(e) {
512
+ if (e?.stage === "start") {
513
+ L.value = !0;
514
+ return;
515
+ }
516
+ if (e?.stage === "end") {
517
+ L.value = !1;
518
+ return;
519
+ }
520
+ bt();
521
+ }
522
+ async function $t() {
523
+ if (nt("copyAlt", {
524
+ config: z.value,
525
+ dataset: G.value
526
+ }), !z.value.userOptions.callbacks.altCopy) {
527
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
528
+ return;
529
+ }
530
+ await Promise.resolve(z.value.userOptions.callbacks.altCopy({
531
+ config: z.value,
532
+ dataset: G.value
533
+ }));
534
+ }
535
+ let en = f(() => z.value.style.chart.color);
536
+ return pe({
537
+ getData: Pt,
538
+ getImage: Kt,
539
+ generatePdf: yt,
540
+ generateCsv: Nt,
541
+ generateImage: bt,
542
+ generateSvg: Zt,
543
+ toggleTable: It,
544
+ toggleLabels: Lt,
545
+ toggleTooltip: Rt,
546
+ toggleAnnotator: Bt,
547
+ toggleFullscreen: Ft,
548
+ toggleZoom: zt,
549
+ copyAlt: $t
550
+ }), (e, t) => (C(), h("div", {
551
+ ref_key: "moleculeChart",
552
+ ref: P,
553
+ class: Se(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
554
+ style: S(`font-family:${z.value.style.fontFamily};width:100%; text-align:center;background:${z.value.style.chart.backgroundColor}`),
555
+ id: `cluster_${j.value}`,
556
+ onMouseleave: t[2] ||= (e) => {
557
+ q.value = null, J.value = null, E(ft)(!1);
558
+ },
559
+ onMouseenter: t[3] ||= () => E(ft)(!0)
560
+ }, [
561
+ z.value.userOptions.buttons.annotator && E(H) ? (C(), p(E(Ke), {
562
+ key: 0,
563
+ svgRef: E(H),
564
+ backgroundColor: z.value.style.chart.backgroundColor,
565
+ color: z.value.style.chart.color,
566
+ active: Z.value,
567
+ isCursorPointer: B.value,
568
+ onClose: Bt
569
+ }, {
570
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
571
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
572
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
573
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
574
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
575
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
576
+ _: 3
577
+ }, 8, [
578
+ "svgRef",
579
+ "backgroundColor",
580
+ "color",
581
+ "active",
582
+ "isCursorPointer"
583
+ ])) : m("", !0),
584
+ xt.value ? (C(), h("div", je, null, 512)) : m("", !0),
585
+ z.value.style.chart.title.text ? (C(), h("div", Me, [(C(), p(E(k), {
586
+ key: `title_${st.value}`,
587
+ config: {
588
+ title: {
589
+ cy: "molecule-div-title",
590
+ ...z.value.style.chart.title
591
+ },
592
+ subtitle: {
593
+ cy: "molecule-div-subtitle",
594
+ ...z.value.style.chart.title.subtitle
595
+ }
596
+ }
597
+ }, null, 8, ["config"]))])) : m("", !0),
598
+ z.value.userOptions.show && rt.value && (E(pt) || E(dt)) ? (C(), p(E(qe), {
599
+ ref_key: "userOptionsRef",
600
+ ref: I,
601
+ key: `user_options_${ot.value}`,
602
+ backgroundColor: z.value.style.chart.backgroundColor,
603
+ color: z.value.style.chart.color,
604
+ isPrinting: E(_t),
605
+ isImaging: E(vt),
606
+ uid: j.value,
607
+ hasTooltip: z.value.userOptions.buttons.tooltip && z.value.style.chart.tooltip.show,
608
+ hasPdf: z.value.userOptions.buttons.pdf,
609
+ hasXls: z.value.userOptions.buttons.csv,
610
+ hasImg: z.value.userOptions.buttons.img,
611
+ hasSvg: z.value.userOptions.buttons.svg,
612
+ hasTable: z.value.userOptions.buttons.table,
613
+ hasLabel: z.value.userOptions.buttons.labels,
614
+ hasFullscreen: z.value.userOptions.buttons.fullscreen,
615
+ hasAltCopy: z.value.userOptions.buttons.altCopy,
616
+ isTooltip: U.value.showTooltip,
617
+ titles: { ...z.value.userOptions.buttonTitles },
618
+ chartElement: P.value,
619
+ position: z.value.userOptions.position,
620
+ hasAnnotator: z.value.userOptions.buttons.annotator,
621
+ isAnnotation: Z.value,
622
+ callbacks: z.value.userOptions.callbacks,
623
+ printScale: z.value.userOptions.print.scale,
624
+ tableDialog: z.value.table.useDialog,
625
+ hasZoom: z.value.userOptions.buttons.zoom,
626
+ isZoom: U.value.showZoom,
627
+ isCursorPointer: B.value,
628
+ onToggleFullscreen: Ft,
629
+ onGeneratePdf: E(yt),
630
+ onGenerateCsv: Nt,
631
+ onGenerateImage: Qt,
632
+ onGenerateSvg: Zt,
633
+ onToggleTable: It,
634
+ onToggleLabels: Lt,
635
+ onToggleTooltip: Rt,
636
+ onToggleAnnotator: Bt,
637
+ onToggleZoom: zt,
638
+ onCopyAlt: $t,
639
+ style: S({ visibility: E(pt) ? E(dt) ? "visible" : "hidden" : "visible" })
640
+ }, ye({ _: 2 }, [
641
+ e.$slots.menuIcon ? {
642
+ name: "menuIcon",
643
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
644
+ isOpen: t,
645
+ color: n
646
+ })), void 0, !0)]),
647
+ key: "0"
648
+ } : void 0,
649
+ e.$slots.optionTooltip ? {
650
+ name: "optionTooltip",
651
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
652
+ key: "1"
653
+ } : void 0,
654
+ e.$slots.optionPdf ? {
655
+ name: "optionPdf",
656
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
657
+ key: "2"
658
+ } : void 0,
659
+ e.$slots.optionCsv ? {
660
+ name: "optionCsv",
661
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
662
+ key: "3"
663
+ } : void 0,
664
+ e.$slots.optionImg ? {
665
+ name: "optionImg",
666
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
667
+ key: "4"
668
+ } : void 0,
669
+ e.$slots.optionSvg ? {
670
+ name: "optionSvg",
671
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
672
+ key: "5"
673
+ } : void 0,
674
+ e.$slots.optionTable ? {
675
+ name: "optionTable",
676
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
677
+ key: "6"
678
+ } : void 0,
679
+ e.$slots.optionLabels ? {
680
+ name: "optionLabels",
681
+ fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
682
+ key: "7"
683
+ } : void 0,
684
+ e.$slots.optionFullscreen ? {
685
+ name: "optionFullscreen",
686
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
687
+ toggleFullscreen: t,
688
+ isFullscreen: n
689
+ })), void 0, !0)]),
690
+ key: "8"
691
+ } : void 0,
692
+ e.$slots.optionAnnotator ? {
693
+ name: "optionAnnotator",
694
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
695
+ toggleAnnotator: t,
696
+ isAnnotator: n
697
+ })), void 0, !0)]),
698
+ key: "9"
699
+ } : void 0,
700
+ e.$slots.optionZoom ? {
701
+ name: "optionZoom",
702
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(y({
703
+ toggleZoom: t,
704
+ isZoomLocked: n
705
+ })), void 0, !0)]),
706
+ key: "10"
707
+ } : void 0,
708
+ e.$slots.optionAltCopy ? {
709
+ name: "optionAltCopy",
710
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
711
+ key: "11"
712
+ } : void 0,
713
+ e.$slots["custom-menu-before"] ? {
714
+ name: "custom-menu-before",
715
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
716
+ key: "12"
717
+ } : void 0,
718
+ e.$slots["custom-menu-after"] ? {
719
+ name: "custom-menu-after",
720
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
721
+ key: "13"
722
+ } : void 0
723
+ ]), 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("."))) : m("", !0),
724
+ (C(), h("svg", {
725
+ ref_key: "svgRef",
726
+ ref: H,
727
+ key: `svg_${ht.value}`,
728
+ xmlns: E(u),
729
+ viewBox: `${E(Q).x} ${E(Q).y} ${E(Q).width} ${E(Q).height}`,
730
+ class: Se({
731
+ "vue-data-ui-fullscreen--on": X.value,
732
+ "vue-data-ui-fulscreen--off": !X.value
733
+ }),
734
+ style: S(`overflow: hidden; background:transparent;color:${z.value.style.chart.color}`)
735
+ }, [
736
+ _(E(Je)),
737
+ e.$slots["chart-background"] ? (C(), h("foreignObject", {
738
+ key: 0,
739
+ x: 0,
740
+ y: 0,
741
+ width: W.value.width <= 0 ? 10 : W.value.width,
742
+ height: W.value.height <= 0 ? 10 : W.value.height,
743
+ style: { pointerEvents: "none" }
744
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : m("", !0),
745
+ g("defs", null, [(C(!0), h(ve, null, we(Object.keys(Dt.value), (e) => (C(), h("radialGradient", {
746
+ id: `gradient_${e}`,
747
+ cx: "50%",
748
+ cy: "30%",
749
+ r: "50%",
750
+ fx: "50%",
751
+ fy: "50%"
752
+ }, [g("stop", {
753
+ offset: "0%",
754
+ "stop-color": E(o)(e, .5)
755
+ }, null, 8, Ie), g("stop", {
756
+ offset: "100%",
757
+ "stop-color": e
758
+ }, null, 8, Le)], 8, Fe))), 256))]),
759
+ _(E(Ye), {
760
+ dataset: G.value,
761
+ color: z.value.style.chart.links.stroke,
762
+ backgroundColor: z.value.style.chart.backgroundColor,
763
+ useChildColor: z.value.style.chart.links.useChildColor
764
+ }, null, 8, [
765
+ "dataset",
766
+ "color",
767
+ "backgroundColor",
768
+ "useChildColor"
769
+ ]),
770
+ _(E(Ze), {
771
+ dataset: G.value,
772
+ hoveredUid: J.value,
773
+ stroke: z.value.style.chart.nodes.stroke,
774
+ strokeHovered: z.value.style.chart.nodes.strokeHovered,
775
+ onClick: Gt,
776
+ onHover: At
777
+ }, {
778
+ node: O(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
779
+ "node-svg": O(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
780
+ _: 3
781
+ }, 8, [
782
+ "dataset",
783
+ "hoveredUid",
784
+ "stroke",
785
+ "strokeHovered"
786
+ ]),
787
+ U.value.showDataLabels && !E(V) ? (C(), p(E(Xe), {
788
+ key: 1,
789
+ dataset: G.value,
790
+ color: z.value.style.chart.color,
791
+ hoveredUid: J.value
792
+ }, null, 8, [
793
+ "dataset",
794
+ "color",
795
+ "hoveredUid"
796
+ ])) : m("", !0),
797
+ T(e.$slots, "svg", { svg: {
798
+ ...W.value,
799
+ drawingArea: { ...E(Q) },
800
+ isPrintingImg: E(_t) || E(vt) || L.value,
801
+ isPrintingSvg: R.value
802
+ } }, void 0, !0)
803
+ ], 14, Ne)),
804
+ e.$slots.watermark ? (C(), h("div", Re, [T(e.$slots, "watermark", x(y({ isPrinting: E(_t) || E(vt) || L.value || R.value })), void 0, !0)])) : m("", !0),
805
+ E(Ut) ? (C(), h("div", ze, [T(e.$slots, "reset-action", { reset: E(Ht) }, () => [g("button", {
806
+ "data-cy-reset": "",
807
+ tabindex: "0",
808
+ role: "button",
809
+ class: "vue-data-ui-refresh-button",
810
+ style: S({
811
+ background: z.value.style.chart.backgroundColor,
812
+ cursor: B.value ? "pointer" : "default"
813
+ }),
814
+ onClick: t[0] ||= (e) => E(Ht)(!0)
815
+ }, [_(E(Ue), {
816
+ name: "refresh",
817
+ stroke: z.value.style.chart.color
818
+ }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
819
+ e.$slots.source ? (C(), h("div", Be, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
820
+ _(E(He), {
821
+ teleportTo: z.value.style.chart.tooltip.teleportTo,
822
+ show: U.value.showTooltip && M.value,
823
+ backgroundColor: z.value.style.chart.tooltip.backgroundColor,
824
+ color: z.value.style.chart.tooltip.color,
825
+ borderRadius: z.value.style.chart.tooltip.borderRadius,
826
+ borderColor: z.value.style.chart.tooltip.borderColor,
827
+ borderWidth: z.value.style.chart.tooltip.borderWidth,
828
+ fontSize: z.value.style.chart.tooltip.fontSize,
829
+ backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
830
+ position: z.value.style.chart.tooltip.position,
831
+ offsetX: z.value.style.chart.tooltip.offsetX,
832
+ offsetY: z.value.style.chart.tooltip.offsetY,
833
+ parent: P.value,
834
+ content: N.value,
835
+ isFullscreen: X.value,
836
+ isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
837
+ smooth: z.value.style.chart.tooltip.smooth,
838
+ backdropFilter: z.value.style.chart.tooltip.backdropFilter,
839
+ smoothForce: z.value.style.chart.tooltip.smoothForce,
840
+ smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold
841
+ }, {
842
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...K.value })), void 0, !0)]),
843
+ tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...K.value })), void 0, !0)]),
844
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...K.value })), void 0, !0)]),
845
+ _: 3
846
+ }, 8, [
847
+ "teleportTo",
848
+ "show",
849
+ "backgroundColor",
850
+ "color",
851
+ "borderRadius",
852
+ "borderColor",
853
+ "borderWidth",
854
+ "fontSize",
855
+ "backgroundOpacity",
856
+ "position",
857
+ "offsetX",
858
+ "offsetY",
859
+ "parent",
860
+ "content",
861
+ "isFullscreen",
862
+ "isCustom",
863
+ "smooth",
864
+ "backdropFilter",
865
+ "smoothForce",
866
+ "smoothSnapThreshold"
867
+ ]),
868
+ rt.value && z.value.userOptions.buttons.table ? (C(), p(Te($.value.component), xe({ key: 7 }, $.value.props, {
869
+ ref_key: "tableUnit",
870
+ ref: F,
871
+ onClose: qt
872
+ }), ye({
873
+ content: O(() => [(C(), p(E(Ge), {
874
+ key: `table_${ct.value}`,
875
+ colNames: Y.value.colNames,
876
+ head: Y.value.head,
877
+ body: Y.value.body,
878
+ config: Y.value.config,
879
+ title: z.value.table.useDialog ? "" : $.value.title,
880
+ withCloseButton: !z.value.table.useDialog,
881
+ isCursorPointer: B.value,
882
+ onClose: qt
883
+ }, {
884
+ th: O(({ th: e }) => [g("div", {
885
+ innerHTML: e,
886
+ style: {
887
+ display: "flex",
888
+ "align-items": "center"
889
+ }
890
+ }, null, 8, Ve)]),
891
+ td: O(({ td: e }) => [be(Ee(e.name || e), 1)]),
892
+ _: 1
893
+ }, 8, [
894
+ "colNames",
895
+ "head",
896
+ "body",
897
+ "config",
898
+ "title",
899
+ "withCloseButton",
900
+ "isCursorPointer"
901
+ ]))]),
902
+ _: 2
903
+ }, [z.value.table.useDialog ? {
904
+ name: "title",
905
+ fn: O(() => [be(Ee($.value.title), 1)]),
906
+ key: "0"
907
+ } : void 0, z.value.table.useDialog ? {
908
+ name: "actions",
909
+ fn: O(() => [g("button", {
910
+ tabindex: "0",
911
+ class: "vue-ui-user-options-button",
912
+ onClick: t[1] ||= (e) => Nt(z.value.userOptions.callbacks.csv),
913
+ style: S({ cursor: B.value ? "pointer" : "default" })
914
+ }, [_(E(Ue), {
915
+ name: "fileCsv",
916
+ stroke: $.value.props.color
917
+ }, null, 8, ["stroke"])], 4)]),
918
+ key: "1"
919
+ } : void 0]), 1040)) : m("", !0),
920
+ T(e.$slots, "skeleton", {}, () => [E(V) ? (C(), p(le, { key: 0 })) : m("", !0)], !0)
921
+ ], 46, Ae));
922
+ }
923
+ }, [["__scopeId", "data-v-102eae3a"]]);
924
+ //#endregion
925
+ export { ke as n, k as t };