vue-data-ui 3.26.4 → 3.27.0

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 (200) hide show
  1. package/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.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-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
  95. package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
  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 +212 -60
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
  184. package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
  185. package/dist/vue-ui-funnel-eVH871L3.js +0 -749
  186. package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
  187. package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
  189. package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
  190. package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
  192. package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
  193. package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
  194. package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
  195. package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
  197. package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
  198. package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
  200. package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
@@ -0,0 +1,941 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { D as t, Dt as n, Ft as r, Ht as i, M as a, S as ee, X as te, at as ne, en as o, et as s, nn as c, nt as re, pt as l, t as u, w as ie, zt as ae } from "./lib-D4wK6ljP.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-D_6ZrPMD.js";
5
+ import { t as le } from "./usePrinter-DdW2GSm0.js";
6
+ import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
7
+ import { t as d } from "./useNestedProp-DR_8JPol.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-Bb5rHcpO.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 E, toRefs as ke, unref as D, useCssVars as Ae, watch as O, withCtx as k } from "vue";
18
+ //#region src/components/vue-ui-molecule.vue
19
+ var je = /* @__PURE__ */ e({ default: () => Be }), Me = ["id"], Ne = {
20
+ key: 1,
21
+ ref: "noTitle",
22
+ class: "vue-data-ui-no-title-space",
23
+ style: "height:36px; width: 100%;background:transparent"
24
+ }, Pe = {
25
+ key: 2,
26
+ style: "width:100%;background:transparent;"
27
+ }, Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = {
28
+ key: 4,
29
+ class: "vue-data-ui-watermark"
30
+ }, Re = {
31
+ key: 5,
32
+ "data-dom-to-png-ignore": "",
33
+ class: "reset-wrapper"
34
+ }, ze = {
35
+ key: 6,
36
+ ref: "source",
37
+ dir: "auto"
38
+ }, Be = /*#__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: je }) {
56
+ Ae((e) => ({ v98264478: rn.value }));
57
+ let Be = v(() => import("./Title-BMCuINbv.js").then((e) => e.t)), Ve = v(() => import("./Tooltip-C4ZTwkLF.js")), He = v(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Ue = v(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), We = v(() => import("./DataTable-CjF_An2h.js")), Ge = v(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ke = v(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), qe = v(() => import("./PackageVersion-D7H9nfK0.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-C50TEJFv.js").then((e) => e.n)), { vue_ui_molecule: Qe } = ce(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), A = e, tt = je, nt = f(() => !!A.dataset && A.dataset.length);
58
+ Ee(() => {
59
+ it();
60
+ });
61
+ let rt = f(() => F.value.debug);
62
+ function it() {
63
+ ae(A.dataset) && ne({
64
+ componentName: "VueUiMolecule",
65
+ type: "dataset",
66
+ debug: rt.value
67
+ });
68
+ }
69
+ let at = w(te()), ot = w(!1), j = w(""), M = w(null), st = w(0), ct = w(0), lt = w(0), N = w(null), P = w(null), F = w(gt()), I = f(() => F.value.style.chart.tooltip), L = f(() => F.value.style.chart), R = f(() => F.value.userOptions);
70
+ oe({
71
+ config: () => F.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 z = f(() => F.value.userOptions.useCursorPointer), ut = f(() => c({
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: F.value.skeletonConfig ?? {}
105
+ })), { loading: dt, FINAL_DATASET: ft } = ue({
106
+ ...ke(A),
107
+ FINAL_CONFIG: F,
108
+ prepareConfig: gt,
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: c({
224
+ defaultConfig: F.value,
225
+ userConfig: ut.value
226
+ })
227
+ }), { userOptionsVisible: pt, setUserOptionsVisibility: mt, keepUserOptionState: ht } = _e({ config: F.value }), { svgRef: B } = ve({ config: L.value.title });
228
+ function gt() {
229
+ let e = d({
230
+ userConfig: A.config,
231
+ defaultConfig: Qe
232
+ }), t = e.theme;
233
+ if (!t) return e;
234
+ if (!$e.value(e)) return et(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 : o[t] || i
245
+ };
246
+ }
247
+ function _t(e) {
248
+ let t = s(e);
249
+ return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
250
+ }
251
+ let vt = _t(A.config);
252
+ O((e, t) => A.config, (e) => {
253
+ let t = _t(newConfig), n = t !== vt;
254
+ vt = t;
255
+ let r = gt();
256
+ if (!n) {
257
+ F.value.style.chart.tooltip = r.style.chart.tooltip, V.value.showTooltip = F.value.style.chart.tooltip.show;
258
+ return;
259
+ }
260
+ F.value = r, pt.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, V.value.showTable = F.value.table.show, V.value.showTooltip = I.value.show, V.value.showZoom = L.value.zoom.show;
261
+ }, { deep: !0 });
262
+ let yt = w(0), bt = () => {
263
+ yt.value += 1;
264
+ };
265
+ O([() => dt.value, () => ft.value], async ([e]) => {
266
+ e || (await b(), H.value = Ot(), await b(), bt(), await b(), Kt({
267
+ x: 0,
268
+ y: 0,
269
+ width: 400,
270
+ height: 400
271
+ }), Q(!1));
272
+ }, {
273
+ flush: "post",
274
+ deep: !1
275
+ });
276
+ let { isPrinting: xt, isImaging: St, generatePdf: Ct, generateImage: wt } = le({
277
+ elementId: `cluster_${at.value}`,
278
+ fileName: L.value.title.text || "vue-ui-molecule",
279
+ options: F.value.userOptions.print
280
+ }), Tt = f(() => F.value.userOptions.show && !L.value.title.text), Et = f(() => ie(F.value.customPalette)), V = w({
281
+ showTable: F.value.table.show,
282
+ showDataLabels: !0,
283
+ showTooltip: I.value.show,
284
+ showZoom: L.value.zoom.show
285
+ });
286
+ O(F, () => {
287
+ V.value = {
288
+ showTable: F.value.table.show,
289
+ showDataLabels: !0,
290
+ showTooltip: I.value.show,
291
+ showZoom: L.value.zoom.show
292
+ };
293
+ }, { immediate: !0 });
294
+ function Dt(e, t = 0) {
295
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? Dt(e[0].nodes, t + 1) : t;
296
+ }
297
+ function Ot() {
298
+ let e = Dt(ft.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 H = w(Ot());
306
+ function kt(e, t = {
307
+ x: -H.value.width / 2.43,
308
+ y: H.value.height / 2
309
+ }, n = H.value.width / 1.1, r = 24, ne = 0, o = 0, s = "#BBBBBB", c = 0) {
310
+ if (!Array.isArray(e) || e.length === 0) return e;
311
+ let re = a({
312
+ plot: t,
313
+ radius: n,
314
+ sides: e.length,
315
+ rotation: ne
316
+ });
317
+ return e.forEach((e, t) => {
318
+ let a = 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 = Et.value[o] || i[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(L.value.links.strokeWidth / (c + 1), r / 2), e.uid = te(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = kt(e.nodes, a, n / 2.9, r / 2.2, ne + Math.PI * t / e.nodes.length, o, u, c + 1));
323
+ }), e;
324
+ }
325
+ function At(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 jt = f(() => At(U.value)), U = f(() => kt(s(ft.value))), W = w(null);
342
+ function Mt(e) {
343
+ W.value = {
344
+ datapoint: e,
345
+ seriesIndex: -1,
346
+ series: U.value,
347
+ config: F.value
348
+ };
349
+ let t = I.value.customFormat;
350
+ if (n(t) && l(() => t({
351
+ seriesIndex: -1,
352
+ datapoint: e,
353
+ series: U.value,
354
+ config: F.value
355
+ }))) j.value = t({
356
+ seriesIndex: -1,
357
+ datapoint: e,
358
+ series: U.value,
359
+ config: F.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 ${I.value.borderColor};margin-top: 2px">${e.details}</div>`), j.value = `<div style="font-family:inherit">${t}</div>`;
364
+ }
365
+ }
366
+ let G = w(null), K = w(null), Nt = w(null);
367
+ function Pt(e) {
368
+ Nt.value = G.value, G.value = e, e ? F.value.events.datapointEnter && F.value.events.datapointEnter({
369
+ datapoint: e,
370
+ seriesIndex: -1
371
+ }) : F.value.events.datapointLeave && F.value.events.datapointLeave({
372
+ datapoint: Nt.value || G.value,
373
+ seriesIndex: -1
374
+ }), e ? (ot.value = !0, Mt(e), K.value = e.uid) : (ot.value = !1, j.value = "", K.value = null);
375
+ }
376
+ function Ft(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 It = f(() => Ft(U.value)), q = f(() => ({
392
+ head: [
393
+ F.value.table.translations.nodeName,
394
+ F.value.table.translations.details,
395
+ F.value.table.translations.ancestor
396
+ ],
397
+ body: It.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: F.value.table.th.backgroundColor,
408
+ color: F.value.table.th.color,
409
+ outline: F.value.table.th.outline
410
+ },
411
+ td: {
412
+ backgroundColor: F.value.table.td.backgroundColor,
413
+ color: F.value.table.td.color,
414
+ outline: F.value.table.td.outline
415
+ },
416
+ breakpoint: F.value.table.responsiveBreakpoint
417
+ },
418
+ colNames: [
419
+ F.value.table.translations.nodeName,
420
+ F.value.table.translations.details,
421
+ F.value.table.translations.ancestor
422
+ ]
423
+ }));
424
+ function Lt(e = null) {
425
+ b(() => {
426
+ let n = q.value.body.map((e, t) => [
427
+ [e[0].name],
428
+ [e[1]],
429
+ [e[2]]
430
+ ]), r = [
431
+ [L.value.title.text],
432
+ [L.value.title.subtitle.text],
433
+ [[...q.value.head]]
434
+ ].concat(n), i = t(r);
435
+ e ? e(i) : re({
436
+ csvContent: i,
437
+ title: L.value.title.text || "vue-ui-molecule"
438
+ });
439
+ });
440
+ }
441
+ function Rt() {
442
+ return U.value;
443
+ }
444
+ let J = w(!1);
445
+ function zt(e) {
446
+ J.value = e, st.value += 1;
447
+ }
448
+ function Bt() {
449
+ V.value.showTable = !V.value.showTable;
450
+ }
451
+ function Vt() {
452
+ V.value.showDataLabels = !V.value.showDataLabels;
453
+ }
454
+ function Ht() {
455
+ V.value.showTooltip = !V.value.showTooltip;
456
+ }
457
+ function Ut() {
458
+ V.value.showZoom = !V.value.showZoom;
459
+ }
460
+ let Y = w(!1);
461
+ function X() {
462
+ Y.value = !Y.value;
463
+ }
464
+ let Wt = f(() => !Y.value && V.value.showZoom), { viewBox: Z, resetZoom: Q, isZoom: Gt, setInitialViewBox: Kt } = be(B, {
465
+ x: 0,
466
+ y: 0,
467
+ width: Math.max(10, H.value.width),
468
+ height: Math.max(10, H.value.height)
469
+ }, L.value.zoom.speed, Wt);
470
+ function qt(e) {
471
+ F.value.events.datapointClick && F.value.events.datapointClick({
472
+ datapoint: e,
473
+ seriesIndex: -1
474
+ }), tt("selectNode", e);
475
+ }
476
+ async function Jt({ scale: e = 2 } = {}) {
477
+ if (!M.value) return;
478
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
479
+ domElement: M.value,
480
+ base64: !0,
481
+ img: !0,
482
+ scale: e
483
+ });
484
+ return {
485
+ imageUri: i,
486
+ base64: a,
487
+ title: L.value.title.text,
488
+ width: t,
489
+ height: n,
490
+ aspectRatio: r
491
+ };
492
+ }
493
+ let $ = f(() => {
494
+ let e = F.value.table.useDialog && !F.value.table.show, t = V.value.showTable;
495
+ return {
496
+ component: e ? Ze : Ue,
497
+ title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
498
+ props: e ? {
499
+ backgroundColor: F.value.table.th.backgroundColor,
500
+ color: F.value.table.th.color,
501
+ headerColor: F.value.table.th.color,
502
+ headerBg: F.value.table.th.backgroundColor,
503
+ isFullscreen: J.value,
504
+ fullscreenParent: M.value,
505
+ forcedWidth: Math.min(800, window.innerWidth * .8),
506
+ isCursorPointer: z.value
507
+ } : {
508
+ hideDetails: !0,
509
+ config: {
510
+ open: t,
511
+ maxHeight: 1e4,
512
+ body: {
513
+ backgroundColor: L.value.backgroundColor,
514
+ color: L.value.color
515
+ },
516
+ head: {
517
+ backgroundColor: L.value.backgroundColor,
518
+ color: L.value.color
519
+ }
520
+ }
521
+ }
522
+ };
523
+ });
524
+ O(() => V.value.showTable, (e) => {
525
+ F.value.table.show || (e && F.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
526
+ });
527
+ function Yt() {
528
+ V.value.showTable = !1, P.value && P.value.setTableIconState(!1);
529
+ }
530
+ let Xt = f(() => L.value.backgroundColor), Zt = f(() => L.value.title), { isCallbackImaging: Qt, isCallbackSvg: $t, generateSvg: en, onGenerateImage: tn } = pe({
531
+ svg: B,
532
+ title: Zt,
533
+ legend: null,
534
+ legendItems: null,
535
+ backgroundColor: Xt,
536
+ getSvgCallback: () => F.value.userOptions.callbacks.svg,
537
+ generateImage: wt
538
+ });
539
+ async function nn() {
540
+ if (tt("copyAlt", {
541
+ config: F.value,
542
+ dataset: U.value
543
+ }), !F.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(F.value.userOptions.callbacks.altCopy({
548
+ config: F.value,
549
+ dataset: U.value
550
+ }));
551
+ }
552
+ let rn = f(() => L.value.color);
553
+ return he({
554
+ getData: Rt,
555
+ getImage: Jt,
556
+ generatePdf: Ct,
557
+ generateCsv: Lt,
558
+ generateImage: wt,
559
+ generateSvg: en,
560
+ toggleTable: Bt,
561
+ toggleLabels: Vt,
562
+ toggleTooltip: Ht,
563
+ toggleAnnotator: X,
564
+ toggleFullscreen: zt,
565
+ toggleZoom: Ut,
566
+ copyAlt: nn
567
+ }), (e, t) => (C(), h("div", {
568
+ ref_key: "moleculeChart",
569
+ ref: M,
570
+ class: Te(`vue-data-ui-component vue-ui-molecule ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
571
+ style: S(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor}`),
572
+ id: `cluster_${at.value}`,
573
+ onMouseleave: t[2] ||= (e) => {
574
+ G.value = null, K.value = null, D(mt)(!1);
575
+ },
576
+ onMouseenter: t[3] ||= () => D(mt)(!0)
577
+ }, [
578
+ R.value.buttons.annotator && D(B) ? (C(), p(D(Ge), {
579
+ key: 0,
580
+ svgRef: D(B),
581
+ backgroundColor: L.value.backgroundColor,
582
+ color: L.value.color,
583
+ active: Y.value,
584
+ isCursorPointer: z.value,
585
+ onClose: X
586
+ }, {
587
+ "annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
588
+ "annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
589
+ "annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
590
+ "annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
591
+ "annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
592
+ "annotator-action-delete": k(({ 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
+ Tt.value ? (C(), h("div", Ne, null, 512)) : m("", !0),
602
+ L.value.title.text ? (C(), h("div", Pe, [(C(), p(D(Be), {
603
+ key: `title_${ct.value}`,
604
+ config: {
605
+ title: {
606
+ cy: "molecule-div-title",
607
+ ...L.value.title
608
+ },
609
+ subtitle: {
610
+ cy: "molecule-div-subtitle",
611
+ ...L.value.title.subtitle
612
+ }
613
+ }
614
+ }, null, 8, ["config"]))])) : m("", !0),
615
+ R.value.show && nt.value && (D(ht) || D(pt)) ? (C(), p(D(Ke), {
616
+ ref_key: "userOptionsRef",
617
+ ref: P,
618
+ key: `user_options_${st.value}`,
619
+ backgroundColor: L.value.backgroundColor,
620
+ color: L.value.color,
621
+ isPrinting: D(xt),
622
+ isImaging: D(St),
623
+ uid: at.value,
624
+ hasTooltip: R.value.buttons.tooltip && I.value.show,
625
+ hasPdf: R.value.buttons.pdf,
626
+ hasXls: R.value.buttons.csv,
627
+ hasImg: R.value.buttons.img,
628
+ hasSvg: R.value.buttons.svg,
629
+ hasTable: R.value.buttons.table,
630
+ hasLabel: R.value.buttons.labels,
631
+ hasFullscreen: R.value.buttons.fullscreen,
632
+ hasAltCopy: R.value.buttons.altCopy,
633
+ isTooltip: V.value.showTooltip,
634
+ titles: { ...R.value.buttonTitles },
635
+ chartElement: M.value,
636
+ position: R.value.position,
637
+ hasAnnotator: R.value.buttons.annotator,
638
+ isAnnotation: Y.value,
639
+ callbacks: R.value.callbacks,
640
+ printScale: R.value.print.scale,
641
+ tableDialog: F.value.table.useDialog,
642
+ hasZoom: R.value.buttons.zoom,
643
+ isZoom: V.value.showZoom,
644
+ isCursorPointer: z.value,
645
+ onToggleFullscreen: zt,
646
+ onGeneratePdf: D(Ct),
647
+ onGenerateCsv: Lt,
648
+ onGenerateImage: D(tn),
649
+ onGenerateSvg: D(en),
650
+ onToggleTable: Bt,
651
+ onToggleLabels: Vt,
652
+ onToggleTooltip: Ht,
653
+ onToggleAnnotator: X,
654
+ onToggleZoom: Ut,
655
+ onCopyAlt: nn,
656
+ style: S({ visibility: D(ht) ? D(pt) ? "visible" : "hidden" : "visible" })
657
+ }, Se({ _: 2 }, [
658
+ e.$slots.menuIcon ? {
659
+ name: "menuIcon",
660
+ fn: k(({ 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: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
669
+ key: "1"
670
+ } : void 0,
671
+ e.$slots.optionPdf ? {
672
+ name: "optionPdf",
673
+ fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
674
+ key: "2"
675
+ } : void 0,
676
+ e.$slots.optionCsv ? {
677
+ name: "optionCsv",
678
+ fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
679
+ key: "3"
680
+ } : void 0,
681
+ e.$slots.optionImg ? {
682
+ name: "optionImg",
683
+ fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
684
+ key: "4"
685
+ } : void 0,
686
+ e.$slots.optionSvg ? {
687
+ name: "optionSvg",
688
+ fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
689
+ key: "5"
690
+ } : void 0,
691
+ e.$slots.optionTable ? {
692
+ name: "optionTable",
693
+ fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
694
+ key: "6"
695
+ } : void 0,
696
+ e.$slots.optionLabels ? {
697
+ name: "optionLabels",
698
+ fn: k(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
699
+ key: "7"
700
+ } : void 0,
701
+ e.$slots.optionFullscreen ? {
702
+ name: "optionFullscreen",
703
+ fn: k(({ 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: k(({ 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: k(({ 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: k(({ 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: k(() => [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: k(() => [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: B,
744
+ key: `svg_${yt.value}`,
745
+ xmlns: D(u),
746
+ viewBox: `${D(Z).x} ${D(Z).y} ${D(Z).width} ${D(Z).height}`,
747
+ class: Te({
748
+ "vue-data-ui-fullscreen--on": J.value,
749
+ "vue-data-ui-fulscreen--off": !J.value
750
+ }),
751
+ style: S(`overflow: hidden; background:transparent;color:${L.value.color}`)
752
+ }, [
753
+ _(D(qe)),
754
+ e.$slots["chart-background"] ? (C(), h("foreignObject", {
755
+ key: 0,
756
+ x: 0,
757
+ y: 0,
758
+ width: H.value.width <= 0 ? 10 : H.value.width,
759
+ height: H.value.height <= 0 ? 10 : H.value.height,
760
+ style: { pointerEvents: "none" }
761
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : m("", !0),
762
+ g("defs", null, [(C(!0), h(xe, null, De(Object.keys(jt.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
+ D(r)(e, .5),
774
+ 1
775
+ ], [
776
+ "100%",
777
+ e,
778
+ 1
779
+ ]]
780
+ }, null, 8, ["id", "stops"]))), 128))]),
781
+ _(D(Je), {
782
+ dataset: U.value,
783
+ color: L.value.links.stroke,
784
+ backgroundColor: L.value.backgroundColor,
785
+ useChildColor: L.value.links.useChildColor
786
+ }, null, 8, [
787
+ "dataset",
788
+ "color",
789
+ "backgroundColor",
790
+ "useChildColor"
791
+ ]),
792
+ _(D(Xe), {
793
+ dataset: U.value,
794
+ hoveredUid: K.value,
795
+ stroke: L.value.nodes.stroke,
796
+ strokeHovered: L.value.nodes.strokeHovered,
797
+ onClick: qt,
798
+ onHover: Pt
799
+ }, {
800
+ node: k(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
801
+ "node-svg": k(({ 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
+ V.value.showDataLabels && !D(dt) ? (C(), p(D(Ye), {
810
+ key: 1,
811
+ dataset: U.value,
812
+ color: L.value.color,
813
+ hoveredUid: K.value
814
+ }, null, 8, [
815
+ "dataset",
816
+ "color",
817
+ "hoveredUid"
818
+ ])) : m("", !0),
819
+ T(e.$slots, "svg", { svg: {
820
+ ...H.value,
821
+ drawingArea: { ...D(Z) },
822
+ isPrintingImg: D(xt) || D(St) || D(Qt),
823
+ isPrintingSvg: D($t)
824
+ } }, void 0, !0)
825
+ ], 14, Fe)),
826
+ e.$slots.watermark ? (C(), h("div", Le, [T(e.$slots, "watermark", x(y({ isPrinting: D(xt) || D(St) || D(Qt) || D($t) })), void 0, !0)])) : m("", !0),
827
+ D(Gt) ? (C(), h("div", Re, [T(e.$slots, "reset-action", { reset: D(Q) }, () => [g("button", {
828
+ "data-cy-reset": "",
829
+ tabindex: "0",
830
+ role: "button",
831
+ class: "vue-data-ui-refresh-button",
832
+ style: S({
833
+ background: L.value.backgroundColor,
834
+ cursor: z.value ? "pointer" : "default"
835
+ }),
836
+ onClick: t[0] ||= (e) => D(Q)(!0)
837
+ }, [_(D(He), {
838
+ name: "refresh",
839
+ stroke: L.value.color
840
+ }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
841
+ e.$slots.source ? (C(), h("div", ze, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
842
+ _(D(Ve), {
843
+ teleportTo: I.value.teleportTo,
844
+ show: V.value.showTooltip && ot.value,
845
+ backgroundColor: I.value.backgroundColor,
846
+ color: I.value.color,
847
+ borderRadius: I.value.borderRadius,
848
+ borderColor: I.value.borderColor,
849
+ borderWidth: I.value.borderWidth,
850
+ fontSize: I.value.fontSize,
851
+ backgroundOpacity: I.value.backgroundOpacity,
852
+ position: I.value.position,
853
+ offsetX: I.value.offsetX,
854
+ offsetY: I.value.offsetY,
855
+ parent: M.value,
856
+ content: j.value,
857
+ isFullscreen: J.value,
858
+ isCustom: I.value.customFormat && typeof I.value.customFormat == "function",
859
+ smooth: I.value.smooth,
860
+ backdropFilter: I.value.backdropFilter,
861
+ smoothForce: I.value.smoothForce,
862
+ smoothSnapThreshold: I.value.smoothSnapThreshold
863
+ }, {
864
+ "tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(y({ ...W.value })), void 0, !0)]),
865
+ tooltip: k(() => [T(e.$slots, "tooltip", x(y({ ...W.value })), void 0, !0)]),
866
+ "tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(y({ ...W.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 && R.value.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
891
+ ref_key: "tableUnit",
892
+ ref: N,
893
+ onClose: Yt
894
+ }), Se({
895
+ content: k(() => [(C(), p(D(We), {
896
+ key: `table_${lt.value}`,
897
+ colNames: q.value.colNames,
898
+ head: q.value.head,
899
+ body: q.value.body,
900
+ config: q.value.config,
901
+ title: F.value.table.useDialog ? "" : $.value.title,
902
+ withCloseButton: !F.value.table.useDialog,
903
+ isCursorPointer: z.value,
904
+ onClose: Yt
905
+ }, {
906
+ th: k(({ th: e }) => [g("div", null, E(e), 1)]),
907
+ td: k(({ td: e }) => [Ce(E(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
+ }, [F.value.table.useDialog ? {
920
+ name: "title",
921
+ fn: k(() => [Ce(E($.value.title), 1)]),
922
+ key: "0"
923
+ } : void 0, F.value.table.useDialog ? {
924
+ name: "actions",
925
+ fn: k(() => [g("button", {
926
+ tabindex: "0",
927
+ class: "vue-ui-user-options-button",
928
+ onClick: t[1] ||= (e) => Lt(R.value.callbacks.csv),
929
+ style: S({ cursor: z.value ? "pointer" : "default" })
930
+ }, [_(D(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", {}, () => [D(dt) ? (C(), p(de, { key: 0 })) : m("", !0)], !0)
937
+ ], 46, Me));
938
+ }
939
+ }, [["__scopeId", "data-v-96e92816"]]);
940
+ //#endregion
941
+ export { je as n, Be as t };