vue-data-ui 3.25.11 → 3.25.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -1,941 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Lt as i, M as a, Pt as ee, S as te, Yt as o, Z as s, Zt as c, jt as ne, lt as l, nt as u, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
3
- import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-D32D002m.js";
5
- import { t as le } from "./usePrinter-hohanNCX.js";
6
- import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as d } from "./useNestedProp-Chvyfpl-.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-BkMKbWsI.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-CPHi-evi.js").then((e) => e.t)), Ve = v(() => import("./Tooltip-hhrkQ3Lk.js")), He = v(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Ue = v(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), We = v(() => import("./DataTable-oiM9uWrQ.js")), Ge = v(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Ke = v(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), qe = v(() => import("./PackageVersion-CEvZNFTz.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-Gm4Q30j0.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
- ee(A.dataset) && u({
64
- componentName: "VueUiMolecule",
65
- type: "dataset",
66
- debug: rt.value
67
- });
68
- }
69
- let at = w(re()), 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(ht()), 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: B, FINAL_DATASET: dt } = ue({
106
- ...ke(A),
107
- FINAL_CONFIG: F,
108
- prepareConfig: ht,
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: ft, setUserOptionsVisibility: pt, keepUserOptionState: mt } = _e({ config: F.value }), { svgRef: V } = ve({ config: L.value.title });
228
- function ht() {
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 gt(e) {
248
- let t = s(e);
249
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
250
- }
251
- let _t = gt(A.config);
252
- O((e, t) => A.config, (e) => {
253
- let t = gt(newConfig), n = t !== _t;
254
- _t = t;
255
- let r = ht();
256
- if (!n) {
257
- F.value.style.chart.tooltip = r.style.chart.tooltip, H.value.showTooltip = F.value.style.chart.tooltip.show;
258
- return;
259
- }
260
- F.value = r, ft.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = I.value.show, H.value.showZoom = L.value.zoom.show;
261
- }, { deep: !0 });
262
- let vt = w(0), yt = () => {
263
- vt.value += 1;
264
- };
265
- O([() => B.value, () => dt.value], async ([e]) => {
266
- e || (await b(), U.value = Dt(), await b(), yt(), await b(), Kt({
267
- x: 0,
268
- y: 0,
269
- width: 400,
270
- height: 400
271
- }), Wt(!1));
272
- }, {
273
- flush: "post",
274
- deep: !1
275
- });
276
- let { isPrinting: bt, isImaging: xt, generatePdf: St, generateImage: Ct } = le({
277
- elementId: `cluster_${at.value}`,
278
- fileName: L.value.title.text || "vue-ui-molecule",
279
- options: F.value.userOptions.print
280
- }), wt = f(() => F.value.userOptions.show && !L.value.title.text), Tt = f(() => ae(F.value.customPalette)), H = 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
- H.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 Et(e, t = 0) {
295
- return Array.isArray(e) && e.length > 0 && e[0].nodes ? Et(e[0].nodes, t + 1) : t;
296
- }
297
- function Dt() {
298
- let e = Et(dt.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 U = w(Dt());
306
- function Ot(e, t = {
307
- x: -U.value.width / 2.43,
308
- y: U.value.height / 2
309
- }, n = U.value.width / 1.1, r = 24, ee = 0, o = 0, s = "#BBBBBB", c = 0) {
310
- if (!Array.isArray(e) || e.length === 0) return e;
311
- let ne = a({
312
- plot: t,
313
- radius: n,
314
- sides: e.length,
315
- rotation: ee
316
- });
317
- return e.forEach((e, t) => {
318
- let a = ne.coordinates[t], l = e.color ? (() => {
319
- let t = te(e.color);
320
- return t.startsWith("#") ? t : `#${t}`;
321
- })() : null, u;
322
- l ? u = l : c === 0 ? u = s : c === 1 ? (u = Tt.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 = re(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ot(e.nodes, a, n / 2.9, r / 2.2, ee + Math.PI * t / e.nodes.length, o, u, c + 1));
323
- }), e;
324
- }
325
- function kt(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 = te(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 At = f(() => kt(W.value)), W = f(() => Ot(s(dt.value))), G = w(null);
342
- function jt(e) {
343
- G.value = {
344
- datapoint: e,
345
- seriesIndex: -1,
346
- series: W.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: W.value,
354
- config: F.value
355
- }))) j.value = t({
356
- seriesIndex: -1,
357
- datapoint: e,
358
- series: W.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 K = w(null), q = w(null), Mt = w(null);
367
- function Nt(e) {
368
- Mt.value = K.value, K.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: Mt.value || K.value,
373
- seriesIndex: -1
374
- }), e ? (ot.value = !0, jt(e), q.value = e.uid) : (ot.value = !1, j.value = "", q.value = null);
375
- }
376
- function Pt(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 Ft = f(() => Pt(W.value)), J = f(() => ({
392
- head: [
393
- F.value.table.translations.nodeName,
394
- F.value.table.translations.details,
395
- F.value.table.translations.ancestor
396
- ],
397
- body: Ft.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 It(e = null) {
425
- b(() => {
426
- let n = J.value.body.map((e, t) => [
427
- [e[0].name],
428
- [e[1]],
429
- [e[2]]
430
- ]), i = [
431
- [L.value.title.text],
432
- [L.value.title.subtitle.text],
433
- [[...J.value.head]]
434
- ].concat(n), a = r(i);
435
- e ? e(a) : t({
436
- csvContent: a,
437
- title: L.value.title.text || "vue-ui-molecule"
438
- });
439
- });
440
- }
441
- function Lt() {
442
- return W.value;
443
- }
444
- let Y = w(!1);
445
- function Rt(e) {
446
- Y.value = e, st.value += 1;
447
- }
448
- function zt() {
449
- H.value.showTable = !H.value.showTable;
450
- }
451
- function Bt() {
452
- H.value.showDataLabels = !H.value.showDataLabels;
453
- }
454
- function Vt() {
455
- H.value.showTooltip = !H.value.showTooltip;
456
- }
457
- function Ht() {
458
- H.value.showZoom = !H.value.showZoom;
459
- }
460
- let X = w(!1);
461
- function Z() {
462
- X.value = !X.value;
463
- }
464
- let Ut = f(() => !X.value && H.value.showZoom), { viewBox: Q, resetZoom: Wt, isZoom: Gt, setInitialViewBox: Kt } = be(V, {
465
- x: 0,
466
- y: 0,
467
- width: Math.max(10, U.value.width),
468
- height: Math.max(10, U.value.height)
469
- }, L.value.zoom.speed, Ut);
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 = H.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: Y.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(() => H.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
- H.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: V,
532
- title: Zt,
533
- legend: null,
534
- legendItems: null,
535
- backgroundColor: Xt,
536
- getSvgCallback: () => F.value.userOptions.callbacks.svg,
537
- generateImage: Ct
538
- });
539
- async function nn() {
540
- if (tt("copyAlt", {
541
- config: F.value,
542
- dataset: W.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: W.value
550
- }));
551
- }
552
- let rn = f(() => L.value.color);
553
- return he({
554
- getData: Lt,
555
- getImage: Jt,
556
- generatePdf: St,
557
- generateCsv: It,
558
- generateImage: Ct,
559
- generateSvg: en,
560
- toggleTable: zt,
561
- toggleLabels: Bt,
562
- toggleTooltip: Vt,
563
- toggleAnnotator: Z,
564
- toggleFullscreen: Rt,
565
- toggleZoom: Ht,
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 ${Y.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
- K.value = null, q.value = null, D(pt)(!1);
575
- },
576
- onMouseenter: t[3] ||= () => D(pt)(!0)
577
- }, [
578
- R.value.buttons.annotator && D(V) ? (C(), p(D(Ge), {
579
- key: 0,
580
- svgRef: D(V),
581
- backgroundColor: L.value.backgroundColor,
582
- color: L.value.color,
583
- active: X.value,
584
- isCursorPointer: z.value,
585
- onClose: Z
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
- wt.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(mt) || D(ft)) ? (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(bt),
622
- isImaging: D(xt),
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: H.value.showTooltip,
634
- titles: { ...R.value.buttonTitles },
635
- chartElement: M.value,
636
- position: R.value.position,
637
- hasAnnotator: R.value.buttons.annotator,
638
- isAnnotation: X.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: H.value.showZoom,
644
- isCursorPointer: z.value,
645
- onToggleFullscreen: Rt,
646
- onGeneratePdf: D(St),
647
- onGenerateCsv: It,
648
- onGenerateImage: D(tn),
649
- onGenerateSvg: D(en),
650
- onToggleTable: zt,
651
- onToggleLabels: Bt,
652
- onToggleTooltip: Vt,
653
- onToggleAnnotator: Z,
654
- onToggleZoom: Ht,
655
- onCopyAlt: nn,
656
- style: S({ visibility: D(mt) ? D(ft) ? "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: V,
744
- key: `svg_${vt.value}`,
745
- xmlns: D(ie),
746
- viewBox: `${D(Q).x} ${D(Q).y} ${D(Q).width} ${D(Q).height}`,
747
- class: Te({
748
- "vue-data-ui-fullscreen--on": Y.value,
749
- "vue-data-ui-fulscreen--off": !Y.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: U.value.width <= 0 ? 10 : U.value.width,
759
- height: U.value.height <= 0 ? 10 : U.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(At.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(ne)(e, .5),
774
- 1
775
- ], [
776
- "100%",
777
- e,
778
- 1
779
- ]]
780
- }, null, 8, ["id", "stops"]))), 128))]),
781
- _(D(Je), {
782
- dataset: W.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: W.value,
794
- hoveredUid: q.value,
795
- stroke: L.value.nodes.stroke,
796
- strokeHovered: L.value.nodes.strokeHovered,
797
- onClick: qt,
798
- onHover: Nt
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
- H.value.showDataLabels && !D(B) ? (C(), p(D(Ye), {
810
- key: 1,
811
- dataset: W.value,
812
- color: L.value.color,
813
- hoveredUid: q.value
814
- }, null, 8, [
815
- "dataset",
816
- "color",
817
- "hoveredUid"
818
- ])) : m("", !0),
819
- T(e.$slots, "svg", { svg: {
820
- ...U.value,
821
- drawingArea: { ...D(Q) },
822
- isPrintingImg: D(bt) || D(xt) || 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(bt) || D(xt) || D(Qt) || D($t) })), void 0, !0)])) : m("", !0),
827
- D(Gt) ? (C(), h("div", Re, [T(e.$slots, "reset-action", { reset: D(Wt) }, () => [g("button", {
828
- "data-cy-reset": "",
829
- tabindex: "0",
830
- role: "button",
831
- class: "vue-data-ui-refresh-button",
832
- style: S({
833
- background: L.value.backgroundColor,
834
- cursor: z.value ? "pointer" : "default"
835
- }),
836
- onClick: t[0] ||= (e) => D(Wt)(!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: H.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: Y.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({ ...G.value })), void 0, !0)]),
865
- tooltip: k(() => [T(e.$slots, "tooltip", x(y({ ...G.value })), void 0, !0)]),
866
- "tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(y({ ...G.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: J.value.colNames,
898
- head: J.value.head,
899
- body: J.value.body,
900
- config: J.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) => It(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(B) ? (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 };