vue-data-ui 3.22.13 → 3.23.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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,932 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, Dt as r, E as i, Gt as a, K as ee, Nt as te, Q as o, X as s, bt as ne, et as c, j as re, qt as l, st as ie, t as ae, x as oe } from "./lib-CFm_J26b.js";
3
- import { t as se } from "./useConfig-C0V0eG7L.js";
4
- import { t as ce } from "./usePrinter-BH-xle1O.js";
5
- import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as de } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as fe } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as me } from "./img-Bikk1dGb.js";
10
- import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { t as ge } from "./DefGrad-DVBqDjhO.js";
12
- import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
13
- import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
14
- import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
15
- import { t as be } from "./usePanZoom-CYU3B4T3.js";
16
- import { Fragment as xe, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Se, createTextVNode as Ce, createVNode as h, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as we, nextTick as v, normalizeClass as Te, normalizeProps as y, normalizeStyle as b, onMounted as Ee, openBlock as x, ref as S, renderList as De, renderSlot as C, resolveDynamicComponent as Oe, toDisplayString as ke, toRefs as Ae, unref as w, useCssVars as je, watch as T, withCtx as E } from "vue";
17
- //#region src/components/vue-ui-molecule.vue
18
- var Me = /* @__PURE__ */ e({ default: () => D }), Ne = ["id"], Pe = {
19
- key: 1,
20
- ref: "noTitle",
21
- class: "vue-data-ui-no-title-space",
22
- style: "height:36px; width: 100%;background:transparent"
23
- }, Fe = {
24
- key: 2,
25
- style: "width:100%;background:transparent;"
26
- }, Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = {
27
- key: 4,
28
- class: "vue-data-ui-watermark"
29
- }, ze = {
30
- key: 5,
31
- "data-dom-to-png-ignore": "",
32
- class: "reset-wrapper"
33
- }, Be = {
34
- key: 6,
35
- ref: "source",
36
- dir: "auto"
37
- }, Ve = ["innerHTML"], D = /*#__PURE__*/ he({
38
- __name: "vue-ui-molecule",
39
- props: {
40
- config: {
41
- type: Object,
42
- default() {
43
- return {};
44
- }
45
- },
46
- dataset: {
47
- type: Array,
48
- default() {
49
- return [];
50
- }
51
- }
52
- },
53
- emits: ["selectNode", "copyAlt"],
54
- setup(e, { expose: he, emit: Me }) {
55
- je((e) => ({ v62768f10: Qt.value }));
56
- let D = g(() => import("./Title-BuPs74IB.js").then((e) => e.t)), He = g(() => import("./Tooltip-CA1rtSyl.js")), Ue = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), We = g(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ge = g(() => import("./DataTable-DzPEVvSo.js")), Ke = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), qe = g(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), Je = g(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Ye = g(() => import("./RecursiveLinks-BygcpDiT.js")), Xe = g(() => import("./RecursiveLabels-D9rfID6q.js")), Ze = g(() => import("./RecursiveCircles-D6aDPmoe.js")), Qe = g(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_molecule: $e } = se(), { isThemeValid: et, warnInvalidTheme: tt } = pe(), O = e, nt = Me, rt = u(() => !!O.dataset && O.dataset.length);
57
- Ee(() => {
58
- at();
59
- });
60
- let it = u(() => P.value.debug);
61
- function at() {
62
- t(O.dataset) && c({
63
- componentName: "VueUiMolecule",
64
- type: "dataset",
65
- debug: it.value
66
- });
67
- }
68
- let ot = S(ee()), st = S(!1), k = S(""), A = S(null), ct = S(0), lt = S(0), ut = S(0), j = S(null), dt = S(null), M = S(!1), N = S(!1), P = S(B()), F = u(() => P.value.userOptions.useCursorPointer), ft = u(() => l({
69
- defaultConfig: {
70
- userOptions: { show: !1 },
71
- table: { show: !1 },
72
- style: { chart: {
73
- backgroundColor: "#99999930",
74
- nodes: { stroke: "#6A6A6A" },
75
- links: { stroke: "#6A6A6A80" }
76
- } }
77
- },
78
- userConfig: P.value.skeletonConfig ?? {}
79
- })), { loading: I, FINAL_DATASET: L } = le({
80
- ...Ae(O),
81
- FINAL_CONFIG: P,
82
- prepareConfig: B,
83
- skeletonDataset: O.config?.skeletonDataset ?? [{
84
- name: "_",
85
- color: "#CACACA",
86
- nodes: [
87
- {
88
- name: "_",
89
- color: "#CACACA",
90
- nodes: [
91
- {
92
- name: "_",
93
- color: "#CACACA"
94
- },
95
- {
96
- name: "_",
97
- color: "#CACACA"
98
- },
99
- {
100
- name: "_",
101
- color: "#CACACA"
102
- }
103
- ]
104
- },
105
- {
106
- name: "_",
107
- color: "#CACACA",
108
- nodes: [
109
- {
110
- name: "_",
111
- color: "#CACACA"
112
- },
113
- {
114
- name: "_",
115
- color: "#CACACA"
116
- },
117
- {
118
- name: "_",
119
- color: "#CACACA"
120
- }
121
- ]
122
- },
123
- {
124
- name: "_",
125
- color: "#CACACA",
126
- nodes: [
127
- {
128
- name: "_",
129
- color: "#CACACA"
130
- },
131
- {
132
- name: "_",
133
- color: "#CACACA"
134
- },
135
- {
136
- name: "_",
137
- color: "#CACACA"
138
- }
139
- ]
140
- },
141
- {
142
- name: "_",
143
- color: "#CACACA",
144
- nodes: [
145
- {
146
- name: "_",
147
- color: "#CACACA"
148
- },
149
- {
150
- name: "_",
151
- color: "#CACACA"
152
- },
153
- {
154
- name: "_",
155
- color: "#CACACA"
156
- }
157
- ]
158
- },
159
- {
160
- name: "_",
161
- color: "#CACACA",
162
- nodes: [
163
- {
164
- name: "_",
165
- color: "#CACACA"
166
- },
167
- {
168
- name: "_",
169
- color: "#CACACA"
170
- },
171
- {
172
- name: "_",
173
- color: "#CACACA"
174
- }
175
- ]
176
- },
177
- {
178
- name: "_",
179
- color: "#CACACA",
180
- nodes: [
181
- {
182
- name: "_",
183
- color: "#CACACA"
184
- },
185
- {
186
- name: "_",
187
- color: "#CACACA"
188
- },
189
- {
190
- name: "_",
191
- color: "#CACACA"
192
- }
193
- ]
194
- }
195
- ]
196
- }],
197
- skeletonConfig: l({
198
- defaultConfig: P.value,
199
- userConfig: ft.value
200
- })
201
- }), { userOptionsVisible: R, setUserOptionsVisibility: pt, keepUserOptionState: mt } = _e({ config: P.value }), { svgRef: z } = ve({ config: P.value.style.chart.title });
202
- function B() {
203
- let e = fe({
204
- userConfig: O.config,
205
- defaultConfig: $e
206
- }), t = e.theme;
207
- if (!t) return e;
208
- if (!et.value(e)) return tt(e), e;
209
- let n = fe({
210
- userConfig: ye[t] || O.config,
211
- defaultConfig: e
212
- }), r = fe({
213
- userConfig: O.config,
214
- defaultConfig: n
215
- });
216
- return {
217
- ...r,
218
- customPalette: r.customPalette.length ? r.customPalette : a[t] || te
219
- };
220
- }
221
- T(() => O.config, (e) => {
222
- 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;
223
- }, { deep: !0 });
224
- let ht = S(0), gt = () => {
225
- ht.value += 1;
226
- };
227
- T([() => I.value, () => L.value], async ([e]) => {
228
- e || (await v(), W.value = St(), await v(), gt(), await v(), Ht({
229
- x: 0,
230
- y: 0,
231
- width: 400,
232
- height: 400
233
- }), Bt(!1));
234
- }, {
235
- flush: "post",
236
- deep: !1
237
- });
238
- let { isPrinting: V, isImaging: H, generatePdf: _t, generateImage: vt } = ce({
239
- elementId: `cluster_${ot.value}`,
240
- fileName: P.value.style.chart.title.text || "vue-ui-molecule",
241
- options: P.value.userOptions.print
242
- }), yt = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), bt = u(() => n(P.value.customPalette)), U = S({
243
- showTable: P.value.table.show,
244
- showDataLabels: !0,
245
- showTooltip: P.value.style.chart.tooltip.show,
246
- showZoom: P.value.style.chart.zoom.show
247
- });
248
- T(P, () => {
249
- U.value = {
250
- showTable: P.value.table.show,
251
- showDataLabels: !0,
252
- showTooltip: P.value.style.chart.tooltip.show,
253
- showZoom: P.value.style.chart.zoom.show
254
- };
255
- }, { immediate: !0 });
256
- function xt(e, t = 0) {
257
- return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
258
- }
259
- function St() {
260
- let e = xt(L.value), t = 100, n = t;
261
- for (let r = 0; r < e; r += 1) t /= 1, n += t;
262
- return {
263
- height: n,
264
- width: n
265
- };
266
- }
267
- let W = S(St());
268
- function Ct(e, t = {
269
- x: -W.value.width / 2.43,
270
- y: W.value.height / 2
271
- }, n = W.value.width / 1.1, r = 24, i = 0, a = 0, o = "#BBBBBB", s = 0) {
272
- if (!Array.isArray(e) || e.length === 0) return e;
273
- let ne = re({
274
- plot: t,
275
- radius: n,
276
- sides: e.length,
277
- rotation: i
278
- });
279
- return e.forEach((e, t) => {
280
- let c = ne.coordinates[t], re = e.color ? (() => {
281
- let t = oe(e.color);
282
- return t.startsWith("#") ? t : `#${t}`;
283
- })() : null, l;
284
- re ? l = re : s === 0 ? l = o : s === 1 ? (l = bt.value[a] || te[a] || o, a += 1) : l = o, e.polygonPath = { coordinates: [c] }, e.circleRadius = r, e.color = l, e.strokeWidth = Math.min(P.value.style.chart.links.strokeWidth / (s + 1), r / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, c, n / 2.9, r / 2.2, i + Math.PI * t / e.nodes.length, a, l, s + 1));
285
- }), e;
286
- }
287
- function wt(e) {
288
- let t = /* @__PURE__ */ new Set();
289
- function n(e) {
290
- e.forEach((e) => {
291
- if (!e.color) return;
292
- let r = e.color;
293
- /^#?[0-9A-F]{6}$/i.test(r) || (r = oe(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
294
- });
295
- }
296
- n(e);
297
- let r = {};
298
- return Array.from(t).forEach((e) => {
299
- let t = e.slice(1);
300
- r[e] = `gradient_${t}`;
301
- }), r;
302
- }
303
- let Tt = u(() => wt(G.value)), G = u(() => Ct(s(L.value))), K = S(null);
304
- function Et(e) {
305
- K.value = {
306
- datapoint: e,
307
- seriesIndex: -1,
308
- series: G.value,
309
- config: P.value
310
- };
311
- let t = P.value.style.chart.tooltip.customFormat;
312
- if (ne(t) && ie(() => t({
313
- seriesIndex: -1,
314
- datapoint: e,
315
- series: G.value,
316
- config: P.value
317
- }))) k.value = t({
318
- seriesIndex: -1,
319
- datapoint: e,
320
- series: G.value,
321
- config: P.value
322
- });
323
- else {
324
- let t = "";
325
- 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>`), k.value = `<div style="font-family:inherit">${t}</div>`;
326
- }
327
- }
328
- let q = S(null), J = S(null), Dt = S(null);
329
- function Ot(e) {
330
- Dt.value = q.value, q.value = e, e ? P.value.events.datapointEnter && P.value.events.datapointEnter({
331
- datapoint: e,
332
- seriesIndex: -1
333
- }) : P.value.events.datapointLeave && P.value.events.datapointLeave({
334
- datapoint: Dt.value || q.value,
335
- seriesIndex: -1
336
- }), e ? (st.value = !0, Et(e), J.value = e.uid) : (st.value = !1, k.value = "", J.value = null);
337
- }
338
- function kt(e) {
339
- let t = [];
340
- function n(e) {
341
- e.forEach((e) => {
342
- let r = {
343
- name: e.name,
344
- details: e.details || "-",
345
- ancestor: e.ancestor && e.ancestor.name || "-",
346
- color: e.color || ""
347
- };
348
- t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
349
- });
350
- }
351
- return n(e), t;
352
- }
353
- let At = u(() => kt(G.value)), Y = u(() => ({
354
- head: [
355
- P.value.table.translations.nodeName,
356
- P.value.table.translations.details,
357
- P.value.table.translations.ancestor
358
- ],
359
- body: At.value.map((e, t) => [
360
- {
361
- color: e.color,
362
- name: e.name
363
- },
364
- e.details,
365
- e.ancestor || ""
366
- ]),
367
- config: {
368
- th: {
369
- backgroundColor: P.value.table.th.backgroundColor,
370
- color: P.value.table.th.color,
371
- outline: P.value.table.th.outline
372
- },
373
- td: {
374
- backgroundColor: P.value.table.td.backgroundColor,
375
- color: P.value.table.td.color,
376
- outline: P.value.table.td.outline
377
- },
378
- breakpoint: P.value.table.responsiveBreakpoint
379
- },
380
- colNames: [
381
- P.value.table.translations.nodeName,
382
- P.value.table.translations.details,
383
- P.value.table.translations.ancestor
384
- ]
385
- }));
386
- function jt(e = null) {
387
- v(() => {
388
- let t = Y.value.body.map((e, t) => [
389
- [e[0].name],
390
- [e[1]],
391
- [e[2]]
392
- ]), n = i([
393
- [P.value.style.chart.title.text],
394
- [P.value.style.chart.title.subtitle.text],
395
- [[...Y.value.head]]
396
- ].concat(t));
397
- e ? e(n) : o({
398
- csvContent: n,
399
- title: P.value.style.chart.title.text || "vue-ui-molecule"
400
- });
401
- });
402
- }
403
- function Mt() {
404
- return G.value;
405
- }
406
- let X = S(!1);
407
- function Nt(e) {
408
- X.value = e, ct.value += 1;
409
- }
410
- function Pt() {
411
- U.value.showTable = !U.value.showTable;
412
- }
413
- function Ft() {
414
- U.value.showDataLabels = !U.value.showDataLabels;
415
- }
416
- function It() {
417
- U.value.showTooltip = !U.value.showTooltip;
418
- }
419
- function Lt() {
420
- U.value.showZoom = !U.value.showZoom;
421
- }
422
- let Z = S(!1);
423
- function Rt() {
424
- Z.value = !Z.value;
425
- }
426
- let zt = u(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = be(z, {
427
- x: 0,
428
- y: 0,
429
- width: Math.max(10, W.value.width),
430
- height: Math.max(10, W.value.height)
431
- }, P.value.style.chart.zoom.speed, zt);
432
- function Ut(e) {
433
- P.value.events.datapointClick && P.value.events.datapointClick({
434
- datapoint: e,
435
- seriesIndex: -1
436
- }), nt("selectNode", e);
437
- }
438
- async function Wt({ scale: e = 2 } = {}) {
439
- if (!A.value) return;
440
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
441
- domElement: A.value,
442
- base64: !0,
443
- img: !0,
444
- scale: e
445
- });
446
- return {
447
- imageUri: i,
448
- base64: a,
449
- title: P.value.style.chart.title.text,
450
- width: t,
451
- height: n,
452
- aspectRatio: r
453
- };
454
- }
455
- let $ = u(() => {
456
- let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
457
- return {
458
- component: e ? Qe : We,
459
- title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
460
- props: e ? {
461
- backgroundColor: P.value.table.th.backgroundColor,
462
- color: P.value.table.th.color,
463
- headerColor: P.value.table.th.color,
464
- headerBg: P.value.table.th.backgroundColor,
465
- isFullscreen: X.value,
466
- fullscreenParent: A.value,
467
- forcedWidth: Math.min(800, window.innerWidth * .8),
468
- isCursorPointer: F.value
469
- } : {
470
- hideDetails: !0,
471
- config: {
472
- open: t,
473
- maxHeight: 1e4,
474
- body: {
475
- backgroundColor: P.value.style.chart.backgroundColor,
476
- color: P.value.style.chart.color
477
- },
478
- head: {
479
- backgroundColor: P.value.style.chart.backgroundColor,
480
- color: P.value.style.chart.color
481
- }
482
- }
483
- }
484
- };
485
- });
486
- T(() => U.value.showTable, (e) => {
487
- P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
488
- });
489
- function Gt() {
490
- U.value.showTable = !1, dt.value && dt.value.setTableIconState(!1);
491
- }
492
- let Kt = u(() => P.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
493
- svg: z,
494
- title: u(() => P.value.style.chart.title),
495
- backgroundColor: Kt
496
- });
497
- async function Yt({ isCb: e }) {
498
- N.value = !0, await v();
499
- try {
500
- if (e) {
501
- let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
502
- await Promise.resolve(P.value.userOptions.callbacks.svg({
503
- blob: e,
504
- url: t,
505
- text: n,
506
- dataUrl: r
507
- }));
508
- } else await Promise.resolve(qt());
509
- } finally {
510
- N.value = !1;
511
- }
512
- }
513
- function Xt(e) {
514
- if (e?.stage === "start") {
515
- M.value = !0;
516
- return;
517
- }
518
- if (e?.stage === "end") {
519
- M.value = !1;
520
- return;
521
- }
522
- vt();
523
- }
524
- async function Zt() {
525
- if (nt("copyAlt", {
526
- config: P.value,
527
- dataset: G.value
528
- }), !P.value.userOptions.callbacks.altCopy) {
529
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
530
- return;
531
- }
532
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
533
- config: P.value,
534
- dataset: G.value
535
- }));
536
- }
537
- let Qt = u(() => P.value.style.chart.color);
538
- return he({
539
- getData: Mt,
540
- getImage: Wt,
541
- generatePdf: _t,
542
- generateCsv: jt,
543
- generateImage: vt,
544
- generateSvg: Yt,
545
- toggleTable: Pt,
546
- toggleLabels: Ft,
547
- toggleTooltip: It,
548
- toggleAnnotator: Rt,
549
- toggleFullscreen: Nt,
550
- toggleZoom: Lt,
551
- copyAlt: Zt
552
- }), (e, t) => (x(), p("div", {
553
- ref_key: "moleculeChart",
554
- ref: A,
555
- class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
556
- style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
557
- id: `cluster_${ot.value}`,
558
- onMouseleave: t[2] ||= (e) => {
559
- q.value = null, J.value = null, w(pt)(!1);
560
- },
561
- onMouseenter: t[3] ||= () => w(pt)(!0)
562
- }, [
563
- P.value.userOptions.buttons.annotator && w(z) ? (x(), d(w(Ke), {
564
- key: 0,
565
- svgRef: w(z),
566
- backgroundColor: P.value.style.chart.backgroundColor,
567
- color: P.value.style.chart.color,
568
- active: Z.value,
569
- isCursorPointer: F.value,
570
- onClose: Rt
571
- }, {
572
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
573
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
574
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
575
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
576
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
577
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
578
- _: 3
579
- }, 8, [
580
- "svgRef",
581
- "backgroundColor",
582
- "color",
583
- "active",
584
- "isCursorPointer"
585
- ])) : f("", !0),
586
- yt.value ? (x(), p("div", Pe, null, 512)) : f("", !0),
587
- P.value.style.chart.title.text ? (x(), p("div", Fe, [(x(), d(w(D), {
588
- key: `title_${lt.value}`,
589
- config: {
590
- title: {
591
- cy: "molecule-div-title",
592
- ...P.value.style.chart.title
593
- },
594
- subtitle: {
595
- cy: "molecule-div-subtitle",
596
- ...P.value.style.chart.title.subtitle
597
- }
598
- }
599
- }, null, 8, ["config"]))])) : f("", !0),
600
- P.value.userOptions.show && rt.value && (w(mt) || w(R)) ? (x(), d(w(qe), {
601
- ref_key: "userOptionsRef",
602
- ref: dt,
603
- key: `user_options_${ct.value}`,
604
- backgroundColor: P.value.style.chart.backgroundColor,
605
- color: P.value.style.chart.color,
606
- isPrinting: w(V),
607
- isImaging: w(H),
608
- uid: ot.value,
609
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
610
- hasPdf: P.value.userOptions.buttons.pdf,
611
- hasXls: P.value.userOptions.buttons.csv,
612
- hasImg: P.value.userOptions.buttons.img,
613
- hasSvg: P.value.userOptions.buttons.svg,
614
- hasTable: P.value.userOptions.buttons.table,
615
- hasLabel: P.value.userOptions.buttons.labels,
616
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
617
- hasAltCopy: P.value.userOptions.buttons.altCopy,
618
- isTooltip: U.value.showTooltip,
619
- titles: { ...P.value.userOptions.buttonTitles },
620
- chartElement: A.value,
621
- position: P.value.userOptions.position,
622
- hasAnnotator: P.value.userOptions.buttons.annotator,
623
- isAnnotation: Z.value,
624
- callbacks: P.value.userOptions.callbacks,
625
- printScale: P.value.userOptions.print.scale,
626
- tableDialog: P.value.table.useDialog,
627
- hasZoom: P.value.userOptions.buttons.zoom,
628
- isZoom: U.value.showZoom,
629
- isCursorPointer: F.value,
630
- onToggleFullscreen: Nt,
631
- onGeneratePdf: w(_t),
632
- onGenerateCsv: jt,
633
- onGenerateImage: Xt,
634
- onGenerateSvg: Yt,
635
- onToggleTable: Pt,
636
- onToggleLabels: Ft,
637
- onToggleTooltip: It,
638
- onToggleAnnotator: Rt,
639
- onToggleZoom: Lt,
640
- onCopyAlt: Zt,
641
- style: b({ visibility: w(mt) ? w(R) ? "visible" : "hidden" : "visible" })
642
- }, Se({ _: 2 }, [
643
- e.$slots.menuIcon ? {
644
- name: "menuIcon",
645
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
646
- isOpen: t,
647
- color: n
648
- })), void 0, !0)]),
649
- key: "0"
650
- } : void 0,
651
- e.$slots.optionTooltip ? {
652
- name: "optionTooltip",
653
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
654
- key: "1"
655
- } : void 0,
656
- e.$slots.optionPdf ? {
657
- name: "optionPdf",
658
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
659
- key: "2"
660
- } : void 0,
661
- e.$slots.optionCsv ? {
662
- name: "optionCsv",
663
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
664
- key: "3"
665
- } : void 0,
666
- e.$slots.optionImg ? {
667
- name: "optionImg",
668
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
669
- key: "4"
670
- } : void 0,
671
- e.$slots.optionSvg ? {
672
- name: "optionSvg",
673
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
674
- key: "5"
675
- } : void 0,
676
- e.$slots.optionTable ? {
677
- name: "optionTable",
678
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
679
- key: "6"
680
- } : void 0,
681
- e.$slots.optionLabels ? {
682
- name: "optionLabels",
683
- fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
684
- key: "7"
685
- } : void 0,
686
- e.$slots.optionFullscreen ? {
687
- name: "optionFullscreen",
688
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
689
- toggleFullscreen: t,
690
- isFullscreen: n
691
- })), void 0, !0)]),
692
- key: "8"
693
- } : void 0,
694
- e.$slots.optionAnnotator ? {
695
- name: "optionAnnotator",
696
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
697
- toggleAnnotator: t,
698
- isAnnotator: n
699
- })), void 0, !0)]),
700
- key: "9"
701
- } : void 0,
702
- e.$slots.optionZoom ? {
703
- name: "optionZoom",
704
- fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", y(_({
705
- toggleZoom: t,
706
- isZoomLocked: n
707
- })), void 0, !0)]),
708
- key: "10"
709
- } : void 0,
710
- e.$slots.optionAltCopy ? {
711
- name: "optionAltCopy",
712
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
713
- key: "11"
714
- } : void 0,
715
- e.$slots["custom-menu-before"] ? {
716
- name: "custom-menu-before",
717
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
718
- key: "12"
719
- } : void 0,
720
- e.$slots["custom-menu-after"] ? {
721
- name: "custom-menu-after",
722
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
723
- key: "13"
724
- } : void 0
725
- ]), 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("."))) : f("", !0),
726
- (x(), p("svg", {
727
- ref_key: "svgRef",
728
- ref: z,
729
- key: `svg_${ht.value}`,
730
- xmlns: w(ae),
731
- viewBox: `${w(Q).x} ${w(Q).y} ${w(Q).width} ${w(Q).height}`,
732
- class: Te({
733
- "vue-data-ui-fullscreen--on": X.value,
734
- "vue-data-ui-fulscreen--off": !X.value
735
- }),
736
- style: b(`overflow: hidden; background:transparent;color:${P.value.style.chart.color}`)
737
- }, [
738
- h(w(Je)),
739
- e.$slots["chart-background"] ? (x(), p("foreignObject", {
740
- key: 0,
741
- x: 0,
742
- y: 0,
743
- width: W.value.width <= 0 ? 10 : W.value.width,
744
- height: W.value.height <= 0 ? 10 : W.value.height,
745
- style: { pointerEvents: "none" }
746
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : f("", !0),
747
- m("defs", null, [(x(!0), p(xe, null, De(Object.keys(Tt.value), (e, t) => (x(), d(ge, {
748
- t: "radial",
749
- id: `gradient_${e}`,
750
- key: `gradient_${e}_${t}`,
751
- cx: "50%",
752
- cy: "30%",
753
- r: "50%",
754
- fx: "50%",
755
- fy: "50%",
756
- stops: [[
757
- "0%",
758
- w(r)(e, .5),
759
- 1
760
- ], [
761
- "100%",
762
- e,
763
- 1
764
- ]]
765
- }, null, 8, ["id", "stops"]))), 128))]),
766
- h(w(Ye), {
767
- dataset: G.value,
768
- color: P.value.style.chart.links.stroke,
769
- backgroundColor: P.value.style.chart.backgroundColor,
770
- useChildColor: P.value.style.chart.links.useChildColor
771
- }, null, 8, [
772
- "dataset",
773
- "color",
774
- "backgroundColor",
775
- "useChildColor"
776
- ]),
777
- h(w(Ze), {
778
- dataset: G.value,
779
- hoveredUid: J.value,
780
- stroke: P.value.style.chart.nodes.stroke,
781
- strokeHovered: P.value.style.chart.nodes.strokeHovered,
782
- onClick: Ut,
783
- onHover: Ot
784
- }, {
785
- node: E(({ node: t }) => [C(e.$slots, "node", y(_({ node: t })), void 0, !0)]),
786
- "node-svg": E(({ nodeSvg: t }) => [C(e.$slots, "node-svg", y(_({ nodeSvg: t })), void 0, !0)]),
787
- _: 3
788
- }, 8, [
789
- "dataset",
790
- "hoveredUid",
791
- "stroke",
792
- "strokeHovered"
793
- ]),
794
- U.value.showDataLabels && !w(I) ? (x(), d(w(Xe), {
795
- key: 1,
796
- dataset: G.value,
797
- color: P.value.style.chart.color,
798
- hoveredUid: J.value
799
- }, null, 8, [
800
- "dataset",
801
- "color",
802
- "hoveredUid"
803
- ])) : f("", !0),
804
- C(e.$slots, "svg", { svg: {
805
- ...W.value,
806
- drawingArea: { ...w(Q) },
807
- isPrintingImg: w(V) || w(H) || M.value,
808
- isPrintingSvg: N.value
809
- } }, void 0, !0)
810
- ], 14, Ie)),
811
- e.$slots.watermark ? (x(), p("div", Re, [C(e.$slots, "watermark", y(_({ isPrinting: w(V) || w(H) || M.value || N.value })), void 0, !0)])) : f("", !0),
812
- w(Vt) ? (x(), p("div", ze, [C(e.$slots, "reset-action", { reset: w(Bt) }, () => [m("button", {
813
- "data-cy-reset": "",
814
- tabindex: "0",
815
- role: "button",
816
- class: "vue-data-ui-refresh-button",
817
- style: b({
818
- background: P.value.style.chart.backgroundColor,
819
- cursor: F.value ? "pointer" : "default"
820
- }),
821
- onClick: t[0] ||= (e) => w(Bt)(!0)
822
- }, [h(w(Ue), {
823
- name: "refresh",
824
- stroke: P.value.style.chart.color
825
- }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0),
826
- e.$slots.source ? (x(), p("div", Be, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
827
- h(w(He), {
828
- teleportTo: P.value.style.chart.tooltip.teleportTo,
829
- show: U.value.showTooltip && st.value,
830
- backgroundColor: P.value.style.chart.tooltip.backgroundColor,
831
- color: P.value.style.chart.tooltip.color,
832
- borderRadius: P.value.style.chart.tooltip.borderRadius,
833
- borderColor: P.value.style.chart.tooltip.borderColor,
834
- borderWidth: P.value.style.chart.tooltip.borderWidth,
835
- fontSize: P.value.style.chart.tooltip.fontSize,
836
- backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
837
- position: P.value.style.chart.tooltip.position,
838
- offsetX: P.value.style.chart.tooltip.offsetX,
839
- offsetY: P.value.style.chart.tooltip.offsetY,
840
- parent: A.value,
841
- content: k.value,
842
- isFullscreen: X.value,
843
- isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
844
- smooth: P.value.style.chart.tooltip.smooth,
845
- backdropFilter: P.value.style.chart.tooltip.backdropFilter,
846
- smoothForce: P.value.style.chart.tooltip.smoothForce,
847
- smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
848
- }, {
849
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...K.value })), void 0, !0)]),
850
- tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...K.value })), void 0, !0)]),
851
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...K.value })), void 0, !0)]),
852
- _: 3
853
- }, 8, [
854
- "teleportTo",
855
- "show",
856
- "backgroundColor",
857
- "color",
858
- "borderRadius",
859
- "borderColor",
860
- "borderWidth",
861
- "fontSize",
862
- "backgroundOpacity",
863
- "position",
864
- "offsetX",
865
- "offsetY",
866
- "parent",
867
- "content",
868
- "isFullscreen",
869
- "isCustom",
870
- "smooth",
871
- "backdropFilter",
872
- "smoothForce",
873
- "smoothSnapThreshold"
874
- ]),
875
- rt.value && P.value.userOptions.buttons.table ? (x(), d(Oe($.value.component), we({ key: 7 }, $.value.props, {
876
- ref_key: "tableUnit",
877
- ref: j,
878
- onClose: Gt
879
- }), Se({
880
- content: E(() => [(x(), d(w(Ge), {
881
- key: `table_${ut.value}`,
882
- colNames: Y.value.colNames,
883
- head: Y.value.head,
884
- body: Y.value.body,
885
- config: Y.value.config,
886
- title: P.value.table.useDialog ? "" : $.value.title,
887
- withCloseButton: !P.value.table.useDialog,
888
- isCursorPointer: F.value,
889
- onClose: Gt
890
- }, {
891
- th: E(({ th: e }) => [m("div", {
892
- innerHTML: e,
893
- style: {
894
- display: "flex",
895
- "align-items": "center"
896
- }
897
- }, null, 8, Ve)]),
898
- td: E(({ td: e }) => [Ce(ke(e.name || e), 1)]),
899
- _: 1
900
- }, 8, [
901
- "colNames",
902
- "head",
903
- "body",
904
- "config",
905
- "title",
906
- "withCloseButton",
907
- "isCursorPointer"
908
- ]))]),
909
- _: 2
910
- }, [P.value.table.useDialog ? {
911
- name: "title",
912
- fn: E(() => [Ce(ke($.value.title), 1)]),
913
- key: "0"
914
- } : void 0, P.value.table.useDialog ? {
915
- name: "actions",
916
- fn: E(() => [m("button", {
917
- tabindex: "0",
918
- class: "vue-ui-user-options-button",
919
- onClick: t[1] ||= (e) => jt(P.value.userOptions.callbacks.csv),
920
- style: b({ cursor: F.value ? "pointer" : "default" })
921
- }, [h(w(Ue), {
922
- name: "fileCsv",
923
- stroke: $.value.props.color
924
- }, null, 8, ["stroke"])], 4)]),
925
- key: "1"
926
- } : void 0]), 1040)) : f("", !0),
927
- C(e.$slots, "skeleton", {}, () => [w(I) ? (x(), d(ue, { key: 0 })) : f("", !0)], !0)
928
- ], 46, Ne));
929
- }
930
- }, [["__scopeId", "data-v-96a218d7"]]);
931
- //#endregion
932
- export { Me as n, D as t };