vue-data-ui 3.26.5 → 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-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-B_yBcZ1-.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-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
  95. package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-CKv-jztN.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 -59
  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-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-DgITf95R.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-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-BMy_y9S6.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-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-kdpasmXb.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-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-D6IKPpL-.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-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-C8ZxX1Zw.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-V_OnJN9Y.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-Bf9IKwDr.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-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-qcLrNL09.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-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-CXeMKqKz.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-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DWYTZz_v.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-kOK6x4al.js +0 -1242
  184. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  185. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  186. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  187. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  189. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  190. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
  192. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  193. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  194. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  195. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  197. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  198. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  200. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
@@ -1,941 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $t as t, D as n, Et as r, M as i, Pt as a, Rt as o, S as ee, Vt as te, X as ne, at as s, et as c, ft as re, nt as l, t as u, tn as ie, w as ae } from "./lib-TWIH5fGr.js";
3
- import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-DObkR9Aa.js";
5
- import { t as le } from "./usePrinter-8Y1Rju0Y.js";
6
- import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as d } from "./useNestedProp-BxOdWM0c.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-KURaWjZI.js";
11
- import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { t as ge } from "./DefGrad-DVBqDjhO.js";
13
- import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
16
- import { t as be } from "./usePanZoom-CYU3B4T3.js";
17
- import { Fragment as xe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Se, createTextVNode as Ce, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as we, nextTick as b, normalizeClass as Te, normalizeProps as x, normalizeStyle as S, onMounted as Ee, openBlock as C, ref as w, renderList as De, renderSlot as T, resolveDynamicComponent as Oe, toDisplayString as ke, toRefs as Ae, unref as E, useCssVars as je, watch as D, withCtx as O } from "vue";
18
- //#region src/components/vue-ui-molecule.vue
19
- var Me = /* @__PURE__ */ e({ default: () => k }), Ne = ["id"], Pe = {
20
- key: 1,
21
- ref: "noTitle",
22
- class: "vue-data-ui-no-title-space",
23
- style: "height:36px; width: 100%;background:transparent"
24
- }, Fe = {
25
- key: 2,
26
- style: "width:100%;background:transparent;"
27
- }, Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = {
28
- key: 4,
29
- class: "vue-data-ui-watermark"
30
- }, ze = {
31
- key: 5,
32
- "data-dom-to-png-ignore": "",
33
- class: "reset-wrapper"
34
- }, Be = {
35
- key: 6,
36
- ref: "source",
37
- dir: "auto"
38
- }, k = /*#__PURE__*/ he({
39
- __name: "vue-ui-molecule",
40
- props: {
41
- config: {
42
- type: Object,
43
- default() {
44
- return {};
45
- }
46
- },
47
- dataset: {
48
- type: Array,
49
- default() {
50
- return [];
51
- }
52
- }
53
- },
54
- emits: ["selectNode", "copyAlt"],
55
- setup(e, { expose: he, emit: Me }) {
56
- je((e) => ({ v98264478: rn.value }));
57
- let k = v(() => import("./Title-Bd98RysU.js").then((e) => e.t)), Ve = v(() => import("./Tooltip-DmQeI5WE.js")), He = v(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), Ue = v(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), We = v(() => import("./DataTable-B6LDCXBz.js")), Ge = v(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), Ke = v(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), qe = v(() => import("./PackageVersion-CslTvFsC.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-BCFCiP_6.js").then((e) => e.n)), { vue_ui_molecule: Qe } = ce(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), A = e, tt = Me, nt = f(() => !!A.dataset && A.dataset.length);
58
- Ee(() => {
59
- it();
60
- });
61
- let rt = f(() => L.value.debug);
62
- function it() {
63
- o(A.dataset) && s({
64
- componentName: "VueUiMolecule",
65
- type: "dataset",
66
- debug: rt.value
67
- });
68
- }
69
- let j = w(ne()), M = w(!1), N = w(""), P = w(null), at = w(0), ot = w(0), st = w(0), F = w(null), I = w(null), L = w(mt()), R = f(() => L.value.style.chart.tooltip), z = f(() => L.value.style.chart), B = f(() => L.value.userOptions);
70
- oe({
71
- config: () => L.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 V = f(() => L.value.userOptions.useCursorPointer), ct = f(() => ie({
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: L.value.skeletonConfig ?? {}
105
- })), { loading: lt, FINAL_DATASET: ut } = ue({
106
- ...Ae(A),
107
- FINAL_CONFIG: L,
108
- prepareConfig: mt,
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: ie({
224
- defaultConfig: L.value,
225
- userConfig: ct.value
226
- })
227
- }), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: L.value }), { svgRef: H } = ve({ config: z.value.title });
228
- function mt() {
229
- let e = d({
230
- userConfig: A.config,
231
- defaultConfig: Qe
232
- }), n = e.theme;
233
- if (!n) return e;
234
- if (!$e.value(e)) return et(e), e;
235
- let r = d({
236
- userConfig: ye[n] || A.config,
237
- defaultConfig: e
238
- }), i = d({
239
- userConfig: A.config,
240
- defaultConfig: r
241
- });
242
- return {
243
- ...i,
244
- customPalette: i.customPalette.length ? i.customPalette : t[n] || te
245
- };
246
- }
247
- function ht(e) {
248
- let t = c(e);
249
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
250
- }
251
- let gt = ht(A.config);
252
- D((e, t) => A.config, (e) => {
253
- let t = ht(newConfig), n = t !== gt;
254
- gt = t;
255
- let r = mt();
256
- if (!n) {
257
- L.value.style.chart.tooltip = r.style.chart.tooltip, U.value.showTooltip = L.value.style.chart.tooltip.show;
258
- return;
259
- }
260
- L.value = r, dt.value = !L.value.userOptions.showOnChartHover, it(), ot.value += 1, st.value += 1, U.value.showTable = L.value.table.show, U.value.showTooltip = R.value.show, U.value.showZoom = z.value.zoom.show;
261
- }, { deep: !0 });
262
- let _t = w(0), vt = () => {
263
- _t.value += 1;
264
- };
265
- D([() => lt.value, () => ut.value], async ([e]) => {
266
- e || (await b(), W.value = Et(), await b(), vt(), 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: yt, isImaging: bt, generatePdf: xt, generateImage: St } = le({
277
- elementId: `cluster_${j.value}`,
278
- fileName: z.value.title.text || "vue-ui-molecule",
279
- options: L.value.userOptions.print
280
- }), Ct = f(() => L.value.userOptions.show && !z.value.title.text), wt = f(() => ae(L.value.customPalette)), U = w({
281
- showTable: L.value.table.show,
282
- showDataLabels: !0,
283
- showTooltip: R.value.show,
284
- showZoom: z.value.zoom.show
285
- });
286
- D(L, () => {
287
- U.value = {
288
- showTable: L.value.table.show,
289
- showDataLabels: !0,
290
- showTooltip: R.value.show,
291
- showZoom: z.value.zoom.show
292
- };
293
- }, { immediate: !0 });
294
- function Tt(e, t = 0) {
295
- return Array.isArray(e) && e.length > 0 && e[0].nodes ? Tt(e[0].nodes, t + 1) : t;
296
- }
297
- function Et() {
298
- let e = Tt(ut.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 W = w(Et());
306
- function Dt(e, t = {
307
- x: -W.value.width / 2.43,
308
- y: W.value.height / 2
309
- }, n = W.value.width / 1.1, r = 24, a = 0, o = 0, s = "#BBBBBB", c = 0) {
310
- if (!Array.isArray(e) || e.length === 0) return e;
311
- let re = i({
312
- plot: t,
313
- radius: n,
314
- sides: e.length,
315
- rotation: a
316
- });
317
- return e.forEach((e, t) => {
318
- let i = 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 = wt.value[o] || te[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [i] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(z.value.links.strokeWidth / (c + 1), r / 2), e.uid = ne(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Dt(e.nodes, i, n / 2.9, r / 2.2, a + Math.PI * t / e.nodes.length, o, u, c + 1));
323
- }), e;
324
- }
325
- function Ot(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 kt = f(() => Ot(G.value)), G = f(() => Dt(c(ut.value))), K = w(null);
342
- function At(e) {
343
- K.value = {
344
- datapoint: e,
345
- seriesIndex: -1,
346
- series: G.value,
347
- config: L.value
348
- };
349
- let t = R.value.customFormat;
350
- if (r(t) && re(() => t({
351
- seriesIndex: -1,
352
- datapoint: e,
353
- series: G.value,
354
- config: L.value
355
- }))) N.value = t({
356
- seriesIndex: -1,
357
- datapoint: e,
358
- series: G.value,
359
- config: L.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 ${R.value.borderColor};margin-top: 2px">${e.details}</div>`), N.value = `<div style="font-family:inherit">${t}</div>`;
364
- }
365
- }
366
- let q = w(null), J = w(null), jt = w(null);
367
- function Mt(e) {
368
- jt.value = q.value, q.value = e, e ? L.value.events.datapointEnter && L.value.events.datapointEnter({
369
- datapoint: e,
370
- seriesIndex: -1
371
- }) : L.value.events.datapointLeave && L.value.events.datapointLeave({
372
- datapoint: jt.value || q.value,
373
- seriesIndex: -1
374
- }), e ? (M.value = !0, At(e), J.value = e.uid) : (M.value = !1, N.value = "", J.value = null);
375
- }
376
- function Nt(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 Pt = f(() => Nt(G.value)), Y = f(() => ({
392
- head: [
393
- L.value.table.translations.nodeName,
394
- L.value.table.translations.details,
395
- L.value.table.translations.ancestor
396
- ],
397
- body: Pt.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: L.value.table.th.backgroundColor,
408
- color: L.value.table.th.color,
409
- outline: L.value.table.th.outline
410
- },
411
- td: {
412
- backgroundColor: L.value.table.td.backgroundColor,
413
- color: L.value.table.td.color,
414
- outline: L.value.table.td.outline
415
- },
416
- breakpoint: L.value.table.responsiveBreakpoint
417
- },
418
- colNames: [
419
- L.value.table.translations.nodeName,
420
- L.value.table.translations.details,
421
- L.value.table.translations.ancestor
422
- ]
423
- }));
424
- function Ft(e = null) {
425
- b(() => {
426
- let t = Y.value.body.map((e, t) => [
427
- [e[0].name],
428
- [e[1]],
429
- [e[2]]
430
- ]), r = [
431
- [z.value.title.text],
432
- [z.value.title.subtitle.text],
433
- [[...Y.value.head]]
434
- ].concat(t), i = n(r);
435
- e ? e(i) : l({
436
- csvContent: i,
437
- title: z.value.title.text || "vue-ui-molecule"
438
- });
439
- });
440
- }
441
- function It() {
442
- return G.value;
443
- }
444
- let X = w(!1);
445
- function Lt(e) {
446
- X.value = e, at.value += 1;
447
- }
448
- function Rt() {
449
- U.value.showTable = !U.value.showTable;
450
- }
451
- function zt() {
452
- U.value.showDataLabels = !U.value.showDataLabels;
453
- }
454
- function Bt() {
455
- U.value.showTooltip = !U.value.showTooltip;
456
- }
457
- function Vt() {
458
- U.value.showZoom = !U.value.showZoom;
459
- }
460
- let Z = w(!1);
461
- function Ht() {
462
- Z.value = !Z.value;
463
- }
464
- let Ut = f(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Wt, isZoom: Gt, setInitialViewBox: Kt } = be(H, {
465
- x: 0,
466
- y: 0,
467
- width: Math.max(10, W.value.width),
468
- height: Math.max(10, W.value.height)
469
- }, z.value.zoom.speed, Ut);
470
- function qt(e) {
471
- L.value.events.datapointClick && L.value.events.datapointClick({
472
- datapoint: e,
473
- seriesIndex: -1
474
- }), tt("selectNode", e);
475
- }
476
- async function Jt({ scale: e = 2 } = {}) {
477
- if (!P.value) return;
478
- let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
479
- domElement: P.value,
480
- base64: !0,
481
- img: !0,
482
- scale: e
483
- });
484
- return {
485
- imageUri: i,
486
- base64: a,
487
- title: z.value.title.text,
488
- width: t,
489
- height: n,
490
- aspectRatio: r
491
- };
492
- }
493
- let $ = f(() => {
494
- let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
495
- return {
496
- component: e ? Ze : Ue,
497
- title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
498
- props: e ? {
499
- backgroundColor: L.value.table.th.backgroundColor,
500
- color: L.value.table.th.color,
501
- headerColor: L.value.table.th.color,
502
- headerBg: L.value.table.th.backgroundColor,
503
- isFullscreen: X.value,
504
- fullscreenParent: P.value,
505
- forcedWidth: Math.min(800, window.innerWidth * .8),
506
- isCursorPointer: V.value
507
- } : {
508
- hideDetails: !0,
509
- config: {
510
- open: t,
511
- maxHeight: 1e4,
512
- body: {
513
- backgroundColor: z.value.backgroundColor,
514
- color: z.value.color
515
- },
516
- head: {
517
- backgroundColor: z.value.backgroundColor,
518
- color: z.value.color
519
- }
520
- }
521
- }
522
- };
523
- });
524
- D(() => U.value.showTable, (e) => {
525
- L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
526
- });
527
- function Yt() {
528
- U.value.showTable = !1, I.value && I.value.setTableIconState(!1);
529
- }
530
- let Xt = f(() => z.value.backgroundColor), Zt = f(() => z.value.title), { isCallbackImaging: Qt, isCallbackSvg: $t, generateSvg: en, onGenerateImage: tn } = pe({
531
- svg: H,
532
- title: Zt,
533
- legend: null,
534
- legendItems: null,
535
- backgroundColor: Xt,
536
- getSvgCallback: () => L.value.userOptions.callbacks.svg,
537
- generateImage: St
538
- });
539
- async function nn() {
540
- if (tt("copyAlt", {
541
- config: L.value,
542
- dataset: G.value
543
- }), !L.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(L.value.userOptions.callbacks.altCopy({
548
- config: L.value,
549
- dataset: G.value
550
- }));
551
- }
552
- let rn = f(() => z.value.color);
553
- return he({
554
- getData: It,
555
- getImage: Jt,
556
- generatePdf: xt,
557
- generateCsv: Ft,
558
- generateImage: St,
559
- generateSvg: en,
560
- toggleTable: Rt,
561
- toggleLabels: zt,
562
- toggleTooltip: Bt,
563
- toggleAnnotator: Ht,
564
- toggleFullscreen: Lt,
565
- toggleZoom: Vt,
566
- copyAlt: nn
567
- }), (e, t) => (C(), h("div", {
568
- ref_key: "moleculeChart",
569
- ref: P,
570
- class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
571
- style: S(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${z.value.backgroundColor}`),
572
- id: `cluster_${j.value}`,
573
- onMouseleave: t[2] ||= (e) => {
574
- q.value = null, J.value = null, E(ft)(!1);
575
- },
576
- onMouseenter: t[3] ||= () => E(ft)(!0)
577
- }, [
578
- B.value.buttons.annotator && E(H) ? (C(), p(E(Ge), {
579
- key: 0,
580
- svgRef: E(H),
581
- backgroundColor: z.value.backgroundColor,
582
- color: z.value.color,
583
- active: Z.value,
584
- isCursorPointer: V.value,
585
- onClose: Ht
586
- }, {
587
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
588
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
589
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
590
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
591
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
592
- "annotator-action-delete": O(({ 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
- Ct.value ? (C(), h("div", Pe, null, 512)) : m("", !0),
602
- z.value.title.text ? (C(), h("div", Fe, [(C(), p(E(k), {
603
- key: `title_${ot.value}`,
604
- config: {
605
- title: {
606
- cy: "molecule-div-title",
607
- ...z.value.title
608
- },
609
- subtitle: {
610
- cy: "molecule-div-subtitle",
611
- ...z.value.title.subtitle
612
- }
613
- }
614
- }, null, 8, ["config"]))])) : m("", !0),
615
- B.value.show && nt.value && (E(pt) || E(dt)) ? (C(), p(E(Ke), {
616
- ref_key: "userOptionsRef",
617
- ref: I,
618
- key: `user_options_${at.value}`,
619
- backgroundColor: z.value.backgroundColor,
620
- color: z.value.color,
621
- isPrinting: E(yt),
622
- isImaging: E(bt),
623
- uid: j.value,
624
- hasTooltip: B.value.buttons.tooltip && R.value.show,
625
- hasPdf: B.value.buttons.pdf,
626
- hasXls: B.value.buttons.csv,
627
- hasImg: B.value.buttons.img,
628
- hasSvg: B.value.buttons.svg,
629
- hasTable: B.value.buttons.table,
630
- hasLabel: B.value.buttons.labels,
631
- hasFullscreen: B.value.buttons.fullscreen,
632
- hasAltCopy: B.value.buttons.altCopy,
633
- isTooltip: U.value.showTooltip,
634
- titles: { ...B.value.buttonTitles },
635
- chartElement: P.value,
636
- position: B.value.position,
637
- hasAnnotator: B.value.buttons.annotator,
638
- isAnnotation: Z.value,
639
- callbacks: B.value.callbacks,
640
- printScale: B.value.print.scale,
641
- tableDialog: L.value.table.useDialog,
642
- hasZoom: B.value.buttons.zoom,
643
- isZoom: U.value.showZoom,
644
- isCursorPointer: V.value,
645
- onToggleFullscreen: Lt,
646
- onGeneratePdf: E(xt),
647
- onGenerateCsv: Ft,
648
- onGenerateImage: E(tn),
649
- onGenerateSvg: E(en),
650
- onToggleTable: Rt,
651
- onToggleLabels: zt,
652
- onToggleTooltip: Bt,
653
- onToggleAnnotator: Ht,
654
- onToggleZoom: Vt,
655
- onCopyAlt: nn,
656
- style: S({ visibility: E(pt) ? E(dt) ? "visible" : "hidden" : "visible" })
657
- }, Se({ _: 2 }, [
658
- e.$slots.menuIcon ? {
659
- name: "menuIcon",
660
- fn: O(({ 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: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
669
- key: "1"
670
- } : void 0,
671
- e.$slots.optionPdf ? {
672
- name: "optionPdf",
673
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
674
- key: "2"
675
- } : void 0,
676
- e.$slots.optionCsv ? {
677
- name: "optionCsv",
678
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
679
- key: "3"
680
- } : void 0,
681
- e.$slots.optionImg ? {
682
- name: "optionImg",
683
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
684
- key: "4"
685
- } : void 0,
686
- e.$slots.optionSvg ? {
687
- name: "optionSvg",
688
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
689
- key: "5"
690
- } : void 0,
691
- e.$slots.optionTable ? {
692
- name: "optionTable",
693
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
694
- key: "6"
695
- } : void 0,
696
- e.$slots.optionLabels ? {
697
- name: "optionLabels",
698
- fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
699
- key: "7"
700
- } : void 0,
701
- e.$slots.optionFullscreen ? {
702
- name: "optionFullscreen",
703
- fn: O(({ 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: O(({ 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: O(({ 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: O(({ 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: O(() => [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: O(() => [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: H,
744
- key: `svg_${_t.value}`,
745
- xmlns: E(u),
746
- viewBox: `${E(Q).x} ${E(Q).y} ${E(Q).width} ${E(Q).height}`,
747
- class: Te({
748
- "vue-data-ui-fullscreen--on": X.value,
749
- "vue-data-ui-fulscreen--off": !X.value
750
- }),
751
- style: S(`overflow: hidden; background:transparent;color:${z.value.color}`)
752
- }, [
753
- _(E(qe)),
754
- e.$slots["chart-background"] ? (C(), h("foreignObject", {
755
- key: 0,
756
- x: 0,
757
- y: 0,
758
- width: W.value.width <= 0 ? 10 : W.value.width,
759
- height: W.value.height <= 0 ? 10 : W.value.height,
760
- style: { pointerEvents: "none" }
761
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : m("", !0),
762
- g("defs", null, [(C(!0), h(xe, null, De(Object.keys(kt.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
- E(a)(e, .5),
774
- 1
775
- ], [
776
- "100%",
777
- e,
778
- 1
779
- ]]
780
- }, null, 8, ["id", "stops"]))), 128))]),
781
- _(E(Je), {
782
- dataset: G.value,
783
- color: z.value.links.stroke,
784
- backgroundColor: z.value.backgroundColor,
785
- useChildColor: z.value.links.useChildColor
786
- }, null, 8, [
787
- "dataset",
788
- "color",
789
- "backgroundColor",
790
- "useChildColor"
791
- ]),
792
- _(E(Xe), {
793
- dataset: G.value,
794
- hoveredUid: J.value,
795
- stroke: z.value.nodes.stroke,
796
- strokeHovered: z.value.nodes.strokeHovered,
797
- onClick: qt,
798
- onHover: Mt
799
- }, {
800
- node: O(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
801
- "node-svg": O(({ 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
- U.value.showDataLabels && !E(lt) ? (C(), p(E(Ye), {
810
- key: 1,
811
- dataset: G.value,
812
- color: z.value.color,
813
- hoveredUid: J.value
814
- }, null, 8, [
815
- "dataset",
816
- "color",
817
- "hoveredUid"
818
- ])) : m("", !0),
819
- T(e.$slots, "svg", { svg: {
820
- ...W.value,
821
- drawingArea: { ...E(Q) },
822
- isPrintingImg: E(yt) || E(bt) || E(Qt),
823
- isPrintingSvg: E($t)
824
- } }, void 0, !0)
825
- ], 14, Ie)),
826
- e.$slots.watermark ? (C(), h("div", Re, [T(e.$slots, "watermark", x(y({ isPrinting: E(yt) || E(bt) || E(Qt) || E($t) })), void 0, !0)])) : m("", !0),
827
- E(Gt) ? (C(), h("div", ze, [T(e.$slots, "reset-action", { reset: E(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: z.value.backgroundColor,
834
- cursor: V.value ? "pointer" : "default"
835
- }),
836
- onClick: t[0] ||= (e) => E(Wt)(!0)
837
- }, [_(E(He), {
838
- name: "refresh",
839
- stroke: z.value.color
840
- }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
841
- e.$slots.source ? (C(), h("div", Be, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
842
- _(E(Ve), {
843
- teleportTo: R.value.teleportTo,
844
- show: U.value.showTooltip && M.value,
845
- backgroundColor: R.value.backgroundColor,
846
- color: R.value.color,
847
- borderRadius: R.value.borderRadius,
848
- borderColor: R.value.borderColor,
849
- borderWidth: R.value.borderWidth,
850
- fontSize: R.value.fontSize,
851
- backgroundOpacity: R.value.backgroundOpacity,
852
- position: R.value.position,
853
- offsetX: R.value.offsetX,
854
- offsetY: R.value.offsetY,
855
- parent: P.value,
856
- content: N.value,
857
- isFullscreen: X.value,
858
- isCustom: R.value.customFormat && typeof R.value.customFormat == "function",
859
- smooth: R.value.smooth,
860
- backdropFilter: R.value.backdropFilter,
861
- smoothForce: R.value.smoothForce,
862
- smoothSnapThreshold: R.value.smoothSnapThreshold
863
- }, {
864
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...K.value })), void 0, !0)]),
865
- tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...K.value })), void 0, !0)]),
866
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...K.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 && B.value.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
891
- ref_key: "tableUnit",
892
- ref: F,
893
- onClose: Yt
894
- }), Se({
895
- content: O(() => [(C(), p(E(We), {
896
- key: `table_${st.value}`,
897
- colNames: Y.value.colNames,
898
- head: Y.value.head,
899
- body: Y.value.body,
900
- config: Y.value.config,
901
- title: L.value.table.useDialog ? "" : $.value.title,
902
- withCloseButton: !L.value.table.useDialog,
903
- isCursorPointer: V.value,
904
- onClose: Yt
905
- }, {
906
- th: O(({ th: e }) => [g("div", null, ke(e), 1)]),
907
- td: O(({ td: e }) => [Ce(ke(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
- }, [L.value.table.useDialog ? {
920
- name: "title",
921
- fn: O(() => [Ce(ke($.value.title), 1)]),
922
- key: "0"
923
- } : void 0, L.value.table.useDialog ? {
924
- name: "actions",
925
- fn: O(() => [g("button", {
926
- tabindex: "0",
927
- class: "vue-ui-user-options-button",
928
- onClick: t[1] ||= (e) => Ft(B.value.callbacks.csv),
929
- style: S({ cursor: V.value ? "pointer" : "default" })
930
- }, [_(E(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", {}, () => [E(lt) ? (C(), p(de, { key: 0 })) : m("", !0)], !0)
937
- ], 46, Ne));
938
- }
939
- }, [["__scopeId", "data-v-96e92816"]]);
940
- //#endregion
941
- export { Me as n, k as t };