vue-data-ui 3.23.0 → 3.23.2

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