vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -1,929 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, At as n, D as r, It as i, Jt as a, M as o, Nt as s, S as ee, St as c, Xt as l, Z as te, lt as u, nt as d, q as ne, t as re, w as ie } from "./lib-BPg41jWd.js";
3
- import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
4
- import { t as se } from "./useConfig-CyCVHo81.js";
5
- import { t as ce } from "./usePrinter-CsDAx75S.js";
6
- import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as de } from "./useNestedProp-fNUUtYXm.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-EYBQVkRw.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: () => Ve }), 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
- }, Ve = /*#__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) => ({ v168d8cce: Qt.value }));
57
- let Ve = v(() => import("./Title-BLrnZl5j.js").then((e) => e.t)), He = v(() => import("./Tooltip-CmmM0DtW.js")), Ue = v(() => import("./BaseIcon-Oj70ytWI.js").then((e) => e.n)), We = v(() => import("./vue-ui-accordion-BGxpEtfk.js").then((e) => e.n)), Ge = v(() => import("./DataTable-DcDMoMmQ.js")), Ke = v(() => import("./PenAndPaper-Co2OSRzH.js").then((e) => e.t)), qe = v(() => import("./UserOptions-pq95M7ss.js").then((e) => e.n)), Je = v(() => import("./PackageVersion-DWq6mo_q.js").then((e) => e.t)), Ye = v(() => import("./RecursiveLinks-BygcpDiT.js")), Xe = v(() => import("./RecursiveLabels-D9rfID6q.js")), Ze = v(() => import("./RecursiveCircles-D6aDPmoe.js")), Qe = v(() => import("./BaseDraggableDialog-Cwj9aGdF.js").then((e) => e.n)), { vue_ui_molecule: $e } = se(), { isThemeValid: et, warnInvalidTheme: tt } = fe(), k = e, nt = Me, rt = f(() => !!k.dataset && k.dataset.length);
58
- Ee(() => {
59
- at();
60
- });
61
- let it = f(() => P.value.debug);
62
- function at() {
63
- s(k.dataset) && d({
64
- componentName: "VueUiMolecule",
65
- type: "dataset",
66
- debug: it.value
67
- });
68
- }
69
- let ot = w(ne()), st = w(!1), A = w(""), j = w(null), ct = w(0), lt = w(0), ut = w(0), M = w(null), N = w(null), P = w(B());
70
- ae({
71
- config: () => P.value,
72
- dataset: () => k.dataset,
73
- component: "VueUiMolecule",
74
- rules: [
75
- oe.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 F = f(() => P.value.userOptions.useCursorPointer), dt = f(() => l({
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: P.value.skeletonConfig ?? {}
105
- })), { loading: I, FINAL_DATASET: L } = le({
106
- ...Ae(k),
107
- FINAL_CONFIG: P,
108
- prepareConfig: B,
109
- skeletonDataset: k.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: l({
224
- defaultConfig: P.value,
225
- userConfig: dt.value
226
- })
227
- }), { userOptionsVisible: R, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: P.value }), { svgRef: z } = ve({ config: P.value.style.chart.title });
228
- function B() {
229
- let e = de({
230
- userConfig: k.config,
231
- defaultConfig: $e
232
- }), t = e.theme;
233
- if (!t) return e;
234
- if (!et.value(e)) return tt(e), e;
235
- let n = de({
236
- userConfig: ye[t] || k.config,
237
- defaultConfig: e
238
- }), r = de({
239
- userConfig: k.config,
240
- defaultConfig: n
241
- });
242
- return {
243
- ...r,
244
- customPalette: r.customPalette.length ? r.customPalette : a[t] || i
245
- };
246
- }
247
- D(() => k.config, (e) => {
248
- P.value = B(), R.value = !P.value.userOptions.showOnChartHover, at(), lt.value += 1, ut.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = P.value.style.chart.tooltip.show, H.value.showZoom = P.value.style.chart.zoom.show;
249
- }, { deep: !0 });
250
- let mt = w(0), ht = () => {
251
- mt.value += 1;
252
- };
253
- D([() => I.value, () => L.value], async ([e]) => {
254
- e || (await b(), U.value = St(), await b(), ht(), await b(), Vt({
255
- x: 0,
256
- y: 0,
257
- width: 400,
258
- height: 400
259
- }), Q(!1));
260
- }, {
261
- flush: "post",
262
- deep: !1
263
- });
264
- let { isPrinting: V, isImaging: gt, generatePdf: _t, generateImage: vt } = ce({
265
- elementId: `cluster_${ot.value}`,
266
- fileName: P.value.style.chart.title.text || "vue-ui-molecule",
267
- options: P.value.userOptions.print
268
- }), yt = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), bt = f(() => ie(P.value.customPalette)), H = w({
269
- showTable: P.value.table.show,
270
- showDataLabels: !0,
271
- showTooltip: P.value.style.chart.tooltip.show,
272
- showZoom: P.value.style.chart.zoom.show
273
- });
274
- D(P, () => {
275
- H.value = {
276
- showTable: P.value.table.show,
277
- showDataLabels: !0,
278
- showTooltip: P.value.style.chart.tooltip.show,
279
- showZoom: P.value.style.chart.zoom.show
280
- };
281
- }, { immediate: !0 });
282
- function xt(e, t = 0) {
283
- return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
284
- }
285
- function St() {
286
- let e = xt(L.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 U = w(St());
294
- function Ct(e, t = {
295
- x: -U.value.width / 2.43,
296
- y: U.value.height / 2
297
- }, n = U.value.width / 1.1, r = 24, a = 0, s = 0, c = "#BBBBBB", l = 0) {
298
- if (!Array.isArray(e) || e.length === 0) return e;
299
- let te = o({
300
- plot: t,
301
- radius: n,
302
- sides: e.length,
303
- rotation: a
304
- });
305
- return e.forEach((e, t) => {
306
- let o = te.coordinates[t], u = e.color ? (() => {
307
- let t = ee(e.color);
308
- return t.startsWith("#") ? t : `#${t}`;
309
- })() : null, d;
310
- u ? d = u : l === 0 ? d = c : l === 1 ? (d = bt.value[s] || i[s] || c, s += 1) : d = c, e.polygonPath = { coordinates: [o] }, e.circleRadius = r, e.color = d, e.strokeWidth = Math.min(P.value.style.chart.links.strokeWidth / (l + 1), r / 2), e.uid = ne(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, o, n / 2.9, r / 2.2, a + Math.PI * t / e.nodes.length, s, d, l + 1));
311
- }), e;
312
- }
313
- function wt(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 = ee(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 Tt = f(() => wt(W.value)), W = f(() => Ct(te(L.value))), G = w(null);
330
- function Et(e) {
331
- G.value = {
332
- datapoint: e,
333
- seriesIndex: -1,
334
- series: W.value,
335
- config: P.value
336
- };
337
- let t = P.value.style.chart.tooltip.customFormat;
338
- if (c(t) && u(() => t({
339
- seriesIndex: -1,
340
- datapoint: e,
341
- series: W.value,
342
- config: P.value
343
- }))) A.value = t({
344
- seriesIndex: -1,
345
- datapoint: e,
346
- series: W.value,
347
- config: P.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 ${P.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), A.value = `<div style="font-family:inherit">${t}</div>`;
352
- }
353
- }
354
- let K = w(null), q = w(null), Dt = w(null);
355
- function Ot(e) {
356
- Dt.value = K.value, K.value = e, e ? P.value.events.datapointEnter && P.value.events.datapointEnter({
357
- datapoint: e,
358
- seriesIndex: -1
359
- }) : P.value.events.datapointLeave && P.value.events.datapointLeave({
360
- datapoint: Dt.value || K.value,
361
- seriesIndex: -1
362
- }), e ? (st.value = !0, Et(e), q.value = e.uid) : (st.value = !1, A.value = "", q.value = null);
363
- }
364
- function kt(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 At = f(() => kt(W.value)), J = f(() => ({
380
- head: [
381
- P.value.table.translations.nodeName,
382
- P.value.table.translations.details,
383
- P.value.table.translations.ancestor
384
- ],
385
- body: At.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: P.value.table.th.backgroundColor,
396
- color: P.value.table.th.color,
397
- outline: P.value.table.th.outline
398
- },
399
- td: {
400
- backgroundColor: P.value.table.td.backgroundColor,
401
- color: P.value.table.td.color,
402
- outline: P.value.table.td.outline
403
- },
404
- breakpoint: P.value.table.responsiveBreakpoint
405
- },
406
- colNames: [
407
- P.value.table.translations.nodeName,
408
- P.value.table.translations.details,
409
- P.value.table.translations.ancestor
410
- ]
411
- }));
412
- function jt(e = null) {
413
- b(() => {
414
- let n = J.value.body.map((e, t) => [
415
- [e[0].name],
416
- [e[1]],
417
- [e[2]]
418
- ]), i = [
419
- [P.value.style.chart.title.text],
420
- [P.value.style.chart.title.subtitle.text],
421
- [[...J.value.head]]
422
- ].concat(n), a = r(i);
423
- e ? e(a) : t({
424
- csvContent: a,
425
- title: P.value.style.chart.title.text || "vue-ui-molecule"
426
- });
427
- });
428
- }
429
- function Mt() {
430
- return W.value;
431
- }
432
- let Y = w(!1);
433
- function Nt(e) {
434
- Y.value = e, ct.value += 1;
435
- }
436
- function Pt() {
437
- H.value.showTable = !H.value.showTable;
438
- }
439
- function Ft() {
440
- H.value.showDataLabels = !H.value.showDataLabels;
441
- }
442
- function It() {
443
- H.value.showTooltip = !H.value.showTooltip;
444
- }
445
- function Lt() {
446
- H.value.showZoom = !H.value.showZoom;
447
- }
448
- let X = w(!1);
449
- function Rt() {
450
- X.value = !X.value;
451
- }
452
- let zt = f(() => !X.value && H.value.showZoom), { viewBox: Z, resetZoom: Q, isZoom: Bt, setInitialViewBox: Vt } = be(z, {
453
- x: 0,
454
- y: 0,
455
- width: Math.max(10, U.value.width),
456
- height: Math.max(10, U.value.height)
457
- }, P.value.style.chart.zoom.speed, zt);
458
- function Ht(e) {
459
- P.value.events.datapointClick && P.value.events.datapointClick({
460
- datapoint: e,
461
- seriesIndex: -1
462
- }), nt("selectNode", e);
463
- }
464
- async function Ut({ scale: e = 2 } = {}) {
465
- if (!j.value) return;
466
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
467
- domElement: j.value,
468
- base64: !0,
469
- img: !0,
470
- scale: e
471
- });
472
- return {
473
- imageUri: i,
474
- base64: a,
475
- title: P.value.style.chart.title.text,
476
- width: t,
477
- height: n,
478
- aspectRatio: r
479
- };
480
- }
481
- let $ = f(() => {
482
- let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
483
- return {
484
- component: e ? Qe : We,
485
- title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
486
- props: e ? {
487
- backgroundColor: P.value.table.th.backgroundColor,
488
- color: P.value.table.th.color,
489
- headerColor: P.value.table.th.color,
490
- headerBg: P.value.table.th.backgroundColor,
491
- isFullscreen: Y.value,
492
- fullscreenParent: j.value,
493
- forcedWidth: Math.min(800, window.innerWidth * .8),
494
- isCursorPointer: F.value
495
- } : {
496
- hideDetails: !0,
497
- config: {
498
- open: t,
499
- maxHeight: 1e4,
500
- body: {
501
- backgroundColor: P.value.style.chart.backgroundColor,
502
- color: P.value.style.chart.color
503
- },
504
- head: {
505
- backgroundColor: P.value.style.chart.backgroundColor,
506
- color: P.value.style.chart.color
507
- }
508
- }
509
- }
510
- };
511
- });
512
- D(() => H.value.showTable, (e) => {
513
- P.value.table.show || (e && P.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
514
- });
515
- function Wt() {
516
- H.value.showTable = !1, N.value && N.value.setTableIconState(!1);
517
- }
518
- let Gt = f(() => P.value.style.chart.backgroundColor), Kt = f(() => P.value.style.chart.title), { isCallbackImaging: qt, isCallbackSvg: Jt, generateSvg: Yt, onGenerateImage: Xt } = pe({
519
- svg: z,
520
- title: Kt,
521
- legend: null,
522
- legendItems: null,
523
- backgroundColor: Gt,
524
- getSvgCallback: () => P.value.userOptions.callbacks.svg,
525
- generateImage: vt
526
- });
527
- async function Zt() {
528
- if (nt("copyAlt", {
529
- config: P.value,
530
- dataset: W.value
531
- }), !P.value.userOptions.callbacks.altCopy) {
532
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
533
- return;
534
- }
535
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
536
- config: P.value,
537
- dataset: W.value
538
- }));
539
- }
540
- let Qt = f(() => P.value.style.chart.color);
541
- return he({
542
- getData: Mt,
543
- getImage: Ut,
544
- generatePdf: _t,
545
- generateCsv: jt,
546
- generateImage: vt,
547
- generateSvg: Yt,
548
- toggleTable: Pt,
549
- toggleLabels: Ft,
550
- toggleTooltip: It,
551
- toggleAnnotator: Rt,
552
- toggleFullscreen: Nt,
553
- toggleZoom: Lt,
554
- copyAlt: Zt
555
- }), (e, t) => (C(), h("div", {
556
- ref_key: "moleculeChart",
557
- ref: j,
558
- class: Te(`vue-data-ui-component vue-ui-molecule ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
559
- style: S(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
560
- id: `cluster_${ot.value}`,
561
- onMouseleave: t[2] ||= (e) => {
562
- K.value = null, q.value = null, E(ft)(!1);
563
- },
564
- onMouseenter: t[3] ||= () => E(ft)(!0)
565
- }, [
566
- P.value.userOptions.buttons.annotator && E(z) ? (C(), p(E(Ke), {
567
- key: 0,
568
- svgRef: E(z),
569
- backgroundColor: P.value.style.chart.backgroundColor,
570
- color: P.value.style.chart.color,
571
- active: X.value,
572
- isCursorPointer: F.value,
573
- onClose: Rt
574
- }, {
575
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
576
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
577
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
578
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
579
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
580
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
581
- _: 3
582
- }, 8, [
583
- "svgRef",
584
- "backgroundColor",
585
- "color",
586
- "active",
587
- "isCursorPointer"
588
- ])) : m("", !0),
589
- yt.value ? (C(), h("div", Pe, null, 512)) : m("", !0),
590
- P.value.style.chart.title.text ? (C(), h("div", Fe, [(C(), p(E(Ve), {
591
- key: `title_${lt.value}`,
592
- config: {
593
- title: {
594
- cy: "molecule-div-title",
595
- ...P.value.style.chart.title
596
- },
597
- subtitle: {
598
- cy: "molecule-div-subtitle",
599
- ...P.value.style.chart.title.subtitle
600
- }
601
- }
602
- }, null, 8, ["config"]))])) : m("", !0),
603
- P.value.userOptions.show && rt.value && (E(pt) || E(R)) ? (C(), p(E(qe), {
604
- ref_key: "userOptionsRef",
605
- ref: N,
606
- key: `user_options_${ct.value}`,
607
- backgroundColor: P.value.style.chart.backgroundColor,
608
- color: P.value.style.chart.color,
609
- isPrinting: E(V),
610
- isImaging: E(gt),
611
- uid: ot.value,
612
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
613
- hasPdf: P.value.userOptions.buttons.pdf,
614
- hasXls: P.value.userOptions.buttons.csv,
615
- hasImg: P.value.userOptions.buttons.img,
616
- hasSvg: P.value.userOptions.buttons.svg,
617
- hasTable: P.value.userOptions.buttons.table,
618
- hasLabel: P.value.userOptions.buttons.labels,
619
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
620
- hasAltCopy: P.value.userOptions.buttons.altCopy,
621
- isTooltip: H.value.showTooltip,
622
- titles: { ...P.value.userOptions.buttonTitles },
623
- chartElement: j.value,
624
- position: P.value.userOptions.position,
625
- hasAnnotator: P.value.userOptions.buttons.annotator,
626
- isAnnotation: X.value,
627
- callbacks: P.value.userOptions.callbacks,
628
- printScale: P.value.userOptions.print.scale,
629
- tableDialog: P.value.table.useDialog,
630
- hasZoom: P.value.userOptions.buttons.zoom,
631
- isZoom: H.value.showZoom,
632
- isCursorPointer: F.value,
633
- onToggleFullscreen: Nt,
634
- onGeneratePdf: E(_t),
635
- onGenerateCsv: jt,
636
- onGenerateImage: E(Xt),
637
- onGenerateSvg: E(Yt),
638
- onToggleTable: Pt,
639
- onToggleLabels: Ft,
640
- onToggleTooltip: It,
641
- onToggleAnnotator: Rt,
642
- onToggleZoom: Lt,
643
- onCopyAlt: Zt,
644
- style: S({ visibility: E(pt) ? E(R) ? "visible" : "hidden" : "visible" })
645
- }, Se({ _: 2 }, [
646
- e.$slots.menuIcon ? {
647
- name: "menuIcon",
648
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
649
- isOpen: t,
650
- color: n
651
- })), void 0, !0)]),
652
- key: "0"
653
- } : void 0,
654
- e.$slots.optionTooltip ? {
655
- name: "optionTooltip",
656
- fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
657
- key: "1"
658
- } : void 0,
659
- e.$slots.optionPdf ? {
660
- name: "optionPdf",
661
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
662
- key: "2"
663
- } : void 0,
664
- e.$slots.optionCsv ? {
665
- name: "optionCsv",
666
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
667
- key: "3"
668
- } : void 0,
669
- e.$slots.optionImg ? {
670
- name: "optionImg",
671
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
672
- key: "4"
673
- } : void 0,
674
- e.$slots.optionSvg ? {
675
- name: "optionSvg",
676
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
677
- key: "5"
678
- } : void 0,
679
- e.$slots.optionTable ? {
680
- name: "optionTable",
681
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
682
- key: "6"
683
- } : void 0,
684
- e.$slots.optionLabels ? {
685
- name: "optionLabels",
686
- fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
687
- key: "7"
688
- } : void 0,
689
- e.$slots.optionFullscreen ? {
690
- name: "optionFullscreen",
691
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
692
- toggleFullscreen: t,
693
- isFullscreen: n
694
- })), void 0, !0)]),
695
- key: "8"
696
- } : void 0,
697
- e.$slots.optionAnnotator ? {
698
- name: "optionAnnotator",
699
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
700
- toggleAnnotator: t,
701
- isAnnotator: n
702
- })), void 0, !0)]),
703
- key: "9"
704
- } : void 0,
705
- e.$slots.optionZoom ? {
706
- name: "optionZoom",
707
- fn: O(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(y({
708
- toggleZoom: t,
709
- isZoomLocked: n
710
- })), void 0, !0)]),
711
- key: "10"
712
- } : void 0,
713
- e.$slots.optionAltCopy ? {
714
- name: "optionAltCopy",
715
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
716
- key: "11"
717
- } : void 0,
718
- e.$slots["custom-menu-before"] ? {
719
- name: "custom-menu-before",
720
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
721
- key: "12"
722
- } : void 0,
723
- e.$slots["custom-menu-after"] ? {
724
- name: "custom-menu-after",
725
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
726
- key: "13"
727
- } : void 0
728
- ]), 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),
729
- (C(), h("svg", {
730
- ref_key: "svgRef",
731
- ref: z,
732
- key: `svg_${mt.value}`,
733
- xmlns: E(re),
734
- viewBox: `${E(Z).x} ${E(Z).y} ${E(Z).width} ${E(Z).height}`,
735
- class: Te({
736
- "vue-data-ui-fullscreen--on": Y.value,
737
- "vue-data-ui-fulscreen--off": !Y.value
738
- }),
739
- style: S(`overflow: hidden; background:transparent;color:${P.value.style.chart.color}`)
740
- }, [
741
- _(E(Je)),
742
- e.$slots["chart-background"] ? (C(), h("foreignObject", {
743
- key: 0,
744
- x: 0,
745
- y: 0,
746
- width: U.value.width <= 0 ? 10 : U.value.width,
747
- height: U.value.height <= 0 ? 10 : U.value.height,
748
- style: { pointerEvents: "none" }
749
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : m("", !0),
750
- g("defs", null, [(C(!0), h(xe, null, De(Object.keys(Tt.value), (e, t) => (C(), p(ge, {
751
- t: "radial",
752
- id: `gradient_${e}`,
753
- key: `gradient_${e}_${t}`,
754
- cx: "50%",
755
- cy: "30%",
756
- r: "50%",
757
- fx: "50%",
758
- fy: "50%",
759
- stops: [[
760
- "0%",
761
- E(n)(e, .5),
762
- 1
763
- ], [
764
- "100%",
765
- e,
766
- 1
767
- ]]
768
- }, null, 8, ["id", "stops"]))), 128))]),
769
- _(E(Ye), {
770
- dataset: W.value,
771
- color: P.value.style.chart.links.stroke,
772
- backgroundColor: P.value.style.chart.backgroundColor,
773
- useChildColor: P.value.style.chart.links.useChildColor
774
- }, null, 8, [
775
- "dataset",
776
- "color",
777
- "backgroundColor",
778
- "useChildColor"
779
- ]),
780
- _(E(Ze), {
781
- dataset: W.value,
782
- hoveredUid: q.value,
783
- stroke: P.value.style.chart.nodes.stroke,
784
- strokeHovered: P.value.style.chart.nodes.strokeHovered,
785
- onClick: Ht,
786
- onHover: Ot
787
- }, {
788
- node: O(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
789
- "node-svg": O(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
790
- _: 3
791
- }, 8, [
792
- "dataset",
793
- "hoveredUid",
794
- "stroke",
795
- "strokeHovered"
796
- ]),
797
- H.value.showDataLabels && !E(I) ? (C(), p(E(Xe), {
798
- key: 1,
799
- dataset: W.value,
800
- color: P.value.style.chart.color,
801
- hoveredUid: q.value
802
- }, null, 8, [
803
- "dataset",
804
- "color",
805
- "hoveredUid"
806
- ])) : m("", !0),
807
- T(e.$slots, "svg", { svg: {
808
- ...U.value,
809
- drawingArea: { ...E(Z) },
810
- isPrintingImg: E(V) || E(gt) || E(qt),
811
- isPrintingSvg: E(Jt)
812
- } }, void 0, !0)
813
- ], 14, Ie)),
814
- e.$slots.watermark ? (C(), h("div", Re, [T(e.$slots, "watermark", x(y({ isPrinting: E(V) || E(gt) || E(qt) || E(Jt) })), void 0, !0)])) : m("", !0),
815
- E(Bt) ? (C(), h("div", ze, [T(e.$slots, "reset-action", { reset: E(Q) }, () => [g("button", {
816
- "data-cy-reset": "",
817
- tabindex: "0",
818
- role: "button",
819
- class: "vue-data-ui-refresh-button",
820
- style: S({
821
- background: P.value.style.chart.backgroundColor,
822
- cursor: F.value ? "pointer" : "default"
823
- }),
824
- onClick: t[0] ||= (e) => E(Q)(!0)
825
- }, [_(E(Ue), {
826
- name: "refresh",
827
- stroke: P.value.style.chart.color
828
- }, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
829
- e.$slots.source ? (C(), h("div", Be, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
830
- _(E(He), {
831
- teleportTo: P.value.style.chart.tooltip.teleportTo,
832
- show: H.value.showTooltip && st.value,
833
- backgroundColor: P.value.style.chart.tooltip.backgroundColor,
834
- color: P.value.style.chart.tooltip.color,
835
- borderRadius: P.value.style.chart.tooltip.borderRadius,
836
- borderColor: P.value.style.chart.tooltip.borderColor,
837
- borderWidth: P.value.style.chart.tooltip.borderWidth,
838
- fontSize: P.value.style.chart.tooltip.fontSize,
839
- backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
840
- position: P.value.style.chart.tooltip.position,
841
- offsetX: P.value.style.chart.tooltip.offsetX,
842
- offsetY: P.value.style.chart.tooltip.offsetY,
843
- parent: j.value,
844
- content: A.value,
845
- isFullscreen: Y.value,
846
- isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
847
- smooth: P.value.style.chart.tooltip.smooth,
848
- backdropFilter: P.value.style.chart.tooltip.backdropFilter,
849
- smoothForce: P.value.style.chart.tooltip.smoothForce,
850
- smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold
851
- }, {
852
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...G.value })), void 0, !0)]),
853
- tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...G.value })), void 0, !0)]),
854
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...G.value })), void 0, !0)]),
855
- _: 3
856
- }, 8, [
857
- "teleportTo",
858
- "show",
859
- "backgroundColor",
860
- "color",
861
- "borderRadius",
862
- "borderColor",
863
- "borderWidth",
864
- "fontSize",
865
- "backgroundOpacity",
866
- "position",
867
- "offsetX",
868
- "offsetY",
869
- "parent",
870
- "content",
871
- "isFullscreen",
872
- "isCustom",
873
- "smooth",
874
- "backdropFilter",
875
- "smoothForce",
876
- "smoothSnapThreshold"
877
- ]),
878
- rt.value && P.value.userOptions.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
879
- ref_key: "tableUnit",
880
- ref: M,
881
- onClose: Wt
882
- }), Se({
883
- content: O(() => [(C(), p(E(Ge), {
884
- key: `table_${ut.value}`,
885
- colNames: J.value.colNames,
886
- head: J.value.head,
887
- body: J.value.body,
888
- config: J.value.config,
889
- title: P.value.table.useDialog ? "" : $.value.title,
890
- withCloseButton: !P.value.table.useDialog,
891
- isCursorPointer: F.value,
892
- onClose: Wt
893
- }, {
894
- th: O(({ th: e }) => [g("div", null, ke(e), 1)]),
895
- td: O(({ td: e }) => [Ce(ke(e.name || e), 1)]),
896
- _: 1
897
- }, 8, [
898
- "colNames",
899
- "head",
900
- "body",
901
- "config",
902
- "title",
903
- "withCloseButton",
904
- "isCursorPointer"
905
- ]))]),
906
- _: 2
907
- }, [P.value.table.useDialog ? {
908
- name: "title",
909
- fn: O(() => [Ce(ke($.value.title), 1)]),
910
- key: "0"
911
- } : void 0, P.value.table.useDialog ? {
912
- name: "actions",
913
- fn: O(() => [g("button", {
914
- tabindex: "0",
915
- class: "vue-ui-user-options-button",
916
- onClick: t[1] ||= (e) => jt(P.value.userOptions.callbacks.csv),
917
- style: S({ cursor: F.value ? "pointer" : "default" })
918
- }, [_(E(Ue), {
919
- name: "fileCsv",
920
- stroke: $.value.props.color
921
- }, null, 8, ["stroke"])], 4)]),
922
- key: "1"
923
- } : void 0]), 1040)) : m("", !0),
924
- T(e.$slots, "skeleton", {}, () => [E(I) ? (C(), p(ue, { key: 0 })) : m("", !0)], !0)
925
- ], 46, Ne));
926
- }
927
- }, [["__scopeId", "data-v-09af1533"]]);
928
- //#endregion
929
- export { Me as n, Ve as t };