vue-data-ui 3.23.1 → 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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -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 l, tt as u, w as ie, xt as ae } from "./lib-Bttd6u5E.js";
3
- import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-D3scuR88.js";
5
- import { t as le } from "./usePrinter-DN5bYhTG.js";
6
- import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as fe } from "./useSvgExport-DH-FfcqQ.js";
8
- import { t as pe } from "./useNestedProp-vPNvh7rV.js";
9
- import { t as me } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as he } from "./img-Bnokohej.js";
11
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { t as _e } from "./DefGrad-DVBqDjhO.js";
13
- import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as be } from "./vue_ui_molecule-CO9L59SF.js";
16
- import { t as xe } from "./usePanZoom-CYU3B4T3.js";
17
- import { Fragment as Se, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ce, createTextVNode as we, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Te, nextTick as y, normalizeClass as Ee, normalizeProps as b, normalizeStyle as x, onMounted as De, openBlock as S, ref as C, renderList as Oe, renderSlot as w, resolveDynamicComponent as ke, toDisplayString as Ae, toRefs as je, unref as T, useCssVars as Me, watch as E, withCtx as D } from "vue";
18
- //#region src/components/vue-ui-molecule.vue
19
- var Ne = /* @__PURE__ */ e({ default: () => O }), Pe = ["id"], Fe = {
20
- key: 1,
21
- ref: "noTitle",
22
- class: "vue-data-ui-no-title-space",
23
- style: "height:36px; width: 100%;background:transparent"
24
- }, Ie = {
25
- key: 2,
26
- style: "width:100%;background:transparent;"
27
- }, Le = ["xmlns", "viewBox"], Re = ["width", "height"], ze = {
28
- key: 4,
29
- class: "vue-data-ui-watermark"
30
- }, Be = {
31
- key: 5,
32
- "data-dom-to-png-ignore": "",
33
- class: "reset-wrapper"
34
- }, Ve = {
35
- key: 6,
36
- ref: "source",
37
- dir: "auto"
38
- }, He = ["innerHTML"], O = /*#__PURE__*/ ge({
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: ge, emit: Ne }) {
56
- Me((e) => ({ v2082f13d: tn.value }));
57
- let O = _(() => import("./Title-BE3qg9xl.js").then((e) => e.t)), Ue = _(() => import("./Tooltip-DhjyfHwz.js")), We = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Ge = _(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Ke = _(() => import("./DataTable-BbKgJ5UI.js")), qe = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Je = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ye = _(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Xe = _(() => import("./RecursiveLinks-BygcpDiT.js")), Ze = _(() => import("./RecursiveLabels-D9rfID6q.js")), Qe = _(() => import("./RecursiveCircles-D6aDPmoe.js")), $e = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_molecule: et } = ce(), { isThemeValid: tt, warnInvalidTheme: nt } = me(), k = e, rt = Ne, it = d(() => !!k.dataset && k.dataset.length);
58
- De(() => {
59
- ot();
60
- });
61
- let at = d(() => R.value.debug);
62
- function ot() {
63
- ne(k.dataset) && u({
64
- componentName: "VueUiMolecule",
65
- type: "dataset",
66
- debug: at.value
67
- });
68
- }
69
- let A = C(re()), j = C(!1), M = C(""), N = C(null), st = C(0), ct = C(0), lt = C(0), P = C(null), F = C(null), I = C(!1), L = C(!1), R = C(mt());
70
- oe({
71
- config: () => R.value,
72
- dataset: () => k.dataset,
73
- component: "VueUiMolecule",
74
- rules: [
75
- se.emptyArray,
76
- {
77
- test: (e) => e[0] && e[0].nodes && e[0].nodes.length === 0,
78
- message: [
79
- "👀 There are no children nodes attached to the root node. Consider:",
80
- "",
81
- "▶️ Adding children nodes to the root node."
82
- ]
83
- },
84
- {
85
- test: (e) => e[0] && e[0].nodes && e[0].nodes.length > 8,
86
- message: [
87
- "👀 The number of children nodes > 8, some nodes might overlap. Consider:",
88
- "",
89
- "▶️ Grouping data into broader categories."
90
- ]
91
- }
92
- ]
93
- });
94
- let z = d(() => R.value.userOptions.useCursorPointer), ut = d(() => 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: R.value.skeletonConfig ?? {}
105
- })), { loading: B, FINAL_DATASET: V } = ue({
106
- ...je(k),
107
- FINAL_CONFIG: R,
108
- prepareConfig: mt,
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: r({
224
- defaultConfig: R.value,
225
- userConfig: ut.value
226
- })
227
- }), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ve({ config: R.value }), { svgRef: H } = ye({ config: R.value.style.chart.title });
228
- function mt() {
229
- let e = pe({
230
- userConfig: k.config,
231
- defaultConfig: et
232
- }), t = e.theme;
233
- if (!t) return e;
234
- if (!tt.value(e)) return nt(e), e;
235
- let n = pe({
236
- userConfig: be[t] || k.config,
237
- defaultConfig: e
238
- }), r = pe({
239
- userConfig: k.config,
240
- defaultConfig: n
241
- });
242
- return {
243
- ...r,
244
- customPalette: r.customPalette.length ? r.customPalette : i[t] || ee
245
- };
246
- }
247
- E(() => k.config, (e) => {
248
- R.value = mt(), dt.value = !R.value.userOptions.showOnChartHover, ot(), ct.value += 1, lt.value += 1, U.value.showTable = R.value.table.show, U.value.showTooltip = R.value.style.chart.tooltip.show, U.value.showZoom = R.value.style.chart.zoom.show;
249
- }, { deep: !0 });
250
- let ht = C(0), gt = () => {
251
- ht.value += 1;
252
- };
253
- E([() => B.value, () => V.value], async ([e]) => {
254
- e || (await y(), W.value = wt(), await y(), gt(), await y(), 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 } = le({
265
- elementId: `cluster_${A.value}`,
266
- fileName: R.value.style.chart.title.text || "vue-ui-molecule",
267
- options: R.value.userOptions.print
268
- }), xt = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), St = d(() => ie(R.value.customPalette)), U = C({
269
- showTable: R.value.table.show,
270
- showDataLabels: !0,
271
- showTooltip: R.value.style.chart.tooltip.show,
272
- showZoom: R.value.style.chart.zoom.show
273
- });
274
- E(R, () => {
275
- U.value = {
276
- showTable: R.value.table.show,
277
- showDataLabels: !0,
278
- showTooltip: R.value.style.chart.tooltip.show,
279
- showZoom: R.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(V.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 = C(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], l = e.color ? (() => {
307
- let t = te(e.color);
308
- return t.startsWith("#") ? t : `#${t}`;
309
- })() : null, u;
310
- l ? u = l : c === 0 ? u = s : c === 1 ? (u = St.value[o] || ee[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(R.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, u, 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 = d(() => Et(G.value)), G = d(() => Tt(s(V.value))), K = C(null);
330
- function Ot(e) {
331
- K.value = {
332
- datapoint: e,
333
- seriesIndex: -1,
334
- series: G.value,
335
- config: R.value
336
- };
337
- let t = R.value.style.chart.tooltip.customFormat;
338
- if (ae(t) && c(() => t({
339
- seriesIndex: -1,
340
- datapoint: e,
341
- series: G.value,
342
- config: R.value
343
- }))) M.value = t({
344
- seriesIndex: -1,
345
- datapoint: e,
346
- series: G.value,
347
- config: R.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 ${R.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), M.value = `<div style="font-family:inherit">${t}</div>`;
352
- }
353
- }
354
- let q = C(null), J = C(null), kt = C(null);
355
- function At(e) {
356
- kt.value = q.value, q.value = e, e ? R.value.events.datapointEnter && R.value.events.datapointEnter({
357
- datapoint: e,
358
- seriesIndex: -1
359
- }) : R.value.events.datapointLeave && R.value.events.datapointLeave({
360
- datapoint: kt.value || q.value,
361
- seriesIndex: -1
362
- }), e ? (j.value = !0, Ot(e), J.value = e.uid) : (j.value = !1, M.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 = d(() => jt(G.value)), Y = d(() => ({
380
- head: [
381
- R.value.table.translations.nodeName,
382
- R.value.table.translations.details,
383
- R.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: R.value.table.th.backgroundColor,
396
- color: R.value.table.th.color,
397
- outline: R.value.table.th.outline
398
- },
399
- td: {
400
- backgroundColor: R.value.table.td.backgroundColor,
401
- color: R.value.table.td.color,
402
- outline: R.value.table.td.outline
403
- },
404
- breakpoint: R.value.table.responsiveBreakpoint
405
- },
406
- colNames: [
407
- R.value.table.translations.nodeName,
408
- R.value.table.translations.details,
409
- R.value.table.translations.ancestor
410
- ]
411
- }));
412
- function Nt(e = null) {
413
- y(() => {
414
- let r = Y.value.body.map((e, t) => [
415
- [e[0].name],
416
- [e[1]],
417
- [e[2]]
418
- ]), i = [
419
- [R.value.style.chart.title.text],
420
- [R.value.style.chart.title.subtitle.text],
421
- [[...Y.value.head]]
422
- ].concat(r), a = n(i);
423
- e ? e(a) : t({
424
- csvContent: a,
425
- title: R.value.style.chart.title.text || "vue-ui-molecule"
426
- });
427
- });
428
- }
429
- function Pt() {
430
- return G.value;
431
- }
432
- let X = C(!1);
433
- function Ft(e) {
434
- X.value = e, st.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 = C(!1);
449
- function Bt() {
450
- Z.value = !Z.value;
451
- }
452
- let Vt = d(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Ht, isZoom: Ut, setInitialViewBox: Wt } = xe(H, {
453
- x: 0,
454
- y: 0,
455
- width: Math.max(10, W.value.width),
456
- height: Math.max(10, W.value.height)
457
- }, R.value.style.chart.zoom.speed, Vt);
458
- function Gt(e) {
459
- R.value.events.datapointClick && R.value.events.datapointClick({
460
- datapoint: e,
461
- seriesIndex: -1
462
- }), rt("selectNode", e);
463
- }
464
- async function Kt({ scale: e = 2 } = {}) {
465
- if (!N.value) return;
466
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
467
- domElement: N.value,
468
- base64: !0,
469
- img: !0,
470
- scale: e
471
- });
472
- return {
473
- imageUri: i,
474
- base64: a,
475
- title: R.value.style.chart.title.text,
476
- width: t,
477
- height: n,
478
- aspectRatio: r
479
- };
480
- }
481
- let $ = d(() => {
482
- let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
483
- return {
484
- component: e ? $e : Ge,
485
- title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
486
- props: e ? {
487
- backgroundColor: R.value.table.th.backgroundColor,
488
- color: R.value.table.th.color,
489
- headerColor: R.value.table.th.color,
490
- headerBg: R.value.table.th.backgroundColor,
491
- isFullscreen: X.value,
492
- fullscreenParent: N.value,
493
- forcedWidth: Math.min(800, window.innerWidth * .8),
494
- isCursorPointer: z.value
495
- } : {
496
- hideDetails: !0,
497
- config: {
498
- open: t,
499
- maxHeight: 1e4,
500
- body: {
501
- backgroundColor: R.value.style.chart.backgroundColor,
502
- color: R.value.style.chart.color
503
- },
504
- head: {
505
- backgroundColor: R.value.style.chart.backgroundColor,
506
- color: R.value.style.chart.color
507
- }
508
- }
509
- }
510
- };
511
- });
512
- E(() => U.value.showTable, (e) => {
513
- R.value.table.show || (e && R.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
514
- });
515
- function qt() {
516
- U.value.showTable = !1, F.value && F.value.setTableIconState(!1);
517
- }
518
- let Jt = d(() => R.value.style.chart.backgroundColor), Yt = d(() => R.value.style.chart.title), { exportSvg: Xt, getSvg: Zt } = fe({
519
- svg: H,
520
- title: Yt,
521
- backgroundColor: Jt
522
- });
523
- async function Qt({ isCb: e }) {
524
- L.value = !0, await y();
525
- try {
526
- if (e) {
527
- let { blob: e, url: t, text: n, dataUrl: r } = await Zt();
528
- await Promise.resolve(R.value.userOptions.callbacks.svg({
529
- blob: e,
530
- url: t,
531
- text: n,
532
- dataUrl: r
533
- }));
534
- } else await Promise.resolve(Xt());
535
- } finally {
536
- L.value = !1;
537
- }
538
- }
539
- function $t(e) {
540
- if (e?.stage === "start") {
541
- I.value = !0;
542
- return;
543
- }
544
- if (e?.stage === "end") {
545
- I.value = !1;
546
- return;
547
- }
548
- bt();
549
- }
550
- async function en() {
551
- if (rt("copyAlt", {
552
- config: R.value,
553
- dataset: G.value
554
- }), !R.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(R.value.userOptions.callbacks.altCopy({
559
- config: R.value,
560
- dataset: G.value
561
- }));
562
- }
563
- let tn = d(() => R.value.style.chart.color);
564
- return ge({
565
- getData: Pt,
566
- getImage: Kt,
567
- generatePdf: yt,
568
- generateCsv: Nt,
569
- generateImage: bt,
570
- generateSvg: Qt,
571
- toggleTable: It,
572
- toggleLabels: Lt,
573
- toggleTooltip: Rt,
574
- toggleAnnotator: Bt,
575
- toggleFullscreen: Ft,
576
- toggleZoom: zt,
577
- copyAlt: en
578
- }), (e, t) => (S(), m("div", {
579
- ref_key: "moleculeChart",
580
- ref: N,
581
- class: Ee(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
582
- style: x(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
583
- id: `cluster_${A.value}`,
584
- onMouseleave: t[2] ||= (e) => {
585
- q.value = null, J.value = null, T(ft)(!1);
586
- },
587
- onMouseenter: t[3] ||= () => T(ft)(!0)
588
- }, [
589
- R.value.userOptions.buttons.annotator && T(H) ? (S(), f(T(qe), {
590
- key: 0,
591
- svgRef: T(H),
592
- backgroundColor: R.value.style.chart.backgroundColor,
593
- color: R.value.style.chart.color,
594
- active: Z.value,
595
- isCursorPointer: z.value,
596
- onClose: Bt
597
- }, {
598
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
599
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
600
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
601
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
602
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
603
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
604
- _: 3
605
- }, 8, [
606
- "svgRef",
607
- "backgroundColor",
608
- "color",
609
- "active",
610
- "isCursorPointer"
611
- ])) : p("", !0),
612
- xt.value ? (S(), m("div", Fe, null, 512)) : p("", !0),
613
- R.value.style.chart.title.text ? (S(), m("div", Ie, [(S(), f(T(O), {
614
- key: `title_${ct.value}`,
615
- config: {
616
- title: {
617
- cy: "molecule-div-title",
618
- ...R.value.style.chart.title
619
- },
620
- subtitle: {
621
- cy: "molecule-div-subtitle",
622
- ...R.value.style.chart.title.subtitle
623
- }
624
- }
625
- }, null, 8, ["config"]))])) : p("", !0),
626
- R.value.userOptions.show && it.value && (T(pt) || T(dt)) ? (S(), f(T(Je), {
627
- ref_key: "userOptionsRef",
628
- ref: F,
629
- key: `user_options_${st.value}`,
630
- backgroundColor: R.value.style.chart.backgroundColor,
631
- color: R.value.style.chart.color,
632
- isPrinting: T(_t),
633
- isImaging: T(vt),
634
- uid: A.value,
635
- hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.chart.tooltip.show,
636
- hasPdf: R.value.userOptions.buttons.pdf,
637
- hasXls: R.value.userOptions.buttons.csv,
638
- hasImg: R.value.userOptions.buttons.img,
639
- hasSvg: R.value.userOptions.buttons.svg,
640
- hasTable: R.value.userOptions.buttons.table,
641
- hasLabel: R.value.userOptions.buttons.labels,
642
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
643
- hasAltCopy: R.value.userOptions.buttons.altCopy,
644
- isTooltip: U.value.showTooltip,
645
- titles: { ...R.value.userOptions.buttonTitles },
646
- chartElement: N.value,
647
- position: R.value.userOptions.position,
648
- hasAnnotator: R.value.userOptions.buttons.annotator,
649
- isAnnotation: Z.value,
650
- callbacks: R.value.userOptions.callbacks,
651
- printScale: R.value.userOptions.print.scale,
652
- tableDialog: R.value.table.useDialog,
653
- hasZoom: R.value.userOptions.buttons.zoom,
654
- isZoom: U.value.showZoom,
655
- isCursorPointer: z.value,
656
- onToggleFullscreen: Ft,
657
- onGeneratePdf: T(yt),
658
- onGenerateCsv: Nt,
659
- onGenerateImage: $t,
660
- onGenerateSvg: Qt,
661
- onToggleTable: It,
662
- onToggleLabels: Lt,
663
- onToggleTooltip: Rt,
664
- onToggleAnnotator: Bt,
665
- onToggleZoom: zt,
666
- onCopyAlt: en,
667
- style: x({ visibility: T(pt) ? T(dt) ? "visible" : "hidden" : "visible" })
668
- }, Ce({ _: 2 }, [
669
- e.$slots.menuIcon ? {
670
- name: "menuIcon",
671
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
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: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
680
- key: "1"
681
- } : void 0,
682
- e.$slots.optionPdf ? {
683
- name: "optionPdf",
684
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
685
- key: "2"
686
- } : void 0,
687
- e.$slots.optionCsv ? {
688
- name: "optionCsv",
689
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
690
- key: "3"
691
- } : void 0,
692
- e.$slots.optionImg ? {
693
- name: "optionImg",
694
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
695
- key: "4"
696
- } : void 0,
697
- e.$slots.optionSvg ? {
698
- name: "optionSvg",
699
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
700
- key: "5"
701
- } : void 0,
702
- e.$slots.optionTable ? {
703
- name: "optionTable",
704
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
705
- key: "6"
706
- } : void 0,
707
- e.$slots.optionLabels ? {
708
- name: "optionLabels",
709
- fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
710
- key: "7"
711
- } : void 0,
712
- e.$slots.optionFullscreen ? {
713
- name: "optionFullscreen",
714
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
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: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
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: D(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(v({
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: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
739
- key: "11"
740
- } : void 0,
741
- e.$slots["custom-menu-before"] ? {
742
- name: "custom-menu-before",
743
- fn: D(() => [w(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: D(() => [w(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("."))) : p("", !0),
752
- (S(), m("svg", {
753
- ref_key: "svgRef",
754
- ref: H,
755
- key: `svg_${ht.value}`,
756
- xmlns: T(l),
757
- viewBox: `${T(Q).x} ${T(Q).y} ${T(Q).width} ${T(Q).height}`,
758
- class: Ee({
759
- "vue-data-ui-fullscreen--on": X.value,
760
- "vue-data-ui-fulscreen--off": !X.value
761
- }),
762
- style: x(`overflow: hidden; background:transparent;color:${R.value.style.chart.color}`)
763
- }, [
764
- g(T(Ye)),
765
- e.$slots["chart-background"] ? (S(), m("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
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : p("", !0),
773
- h("defs", null, [(S(!0), m(Se, null, Oe(Object.keys(Dt.value), (e, t) => (S(), f(_e, {
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
- T(o)(e, .5),
785
- 1
786
- ], [
787
- "100%",
788
- e,
789
- 1
790
- ]]
791
- }, null, 8, ["id", "stops"]))), 128))]),
792
- g(T(Xe), {
793
- dataset: G.value,
794
- color: R.value.style.chart.links.stroke,
795
- backgroundColor: R.value.style.chart.backgroundColor,
796
- useChildColor: R.value.style.chart.links.useChildColor
797
- }, null, 8, [
798
- "dataset",
799
- "color",
800
- "backgroundColor",
801
- "useChildColor"
802
- ]),
803
- g(T(Qe), {
804
- dataset: G.value,
805
- hoveredUid: J.value,
806
- stroke: R.value.style.chart.nodes.stroke,
807
- strokeHovered: R.value.style.chart.nodes.strokeHovered,
808
- onClick: Gt,
809
- onHover: At
810
- }, {
811
- node: D(({ node: t }) => [w(e.$slots, "node", b(v({ node: t })), void 0, !0)]),
812
- "node-svg": D(({ nodeSvg: t }) => [w(e.$slots, "node-svg", b(v({ nodeSvg: t })), void 0, !0)]),
813
- _: 3
814
- }, 8, [
815
- "dataset",
816
- "hoveredUid",
817
- "stroke",
818
- "strokeHovered"
819
- ]),
820
- U.value.showDataLabels && !T(B) ? (S(), f(T(Ze), {
821
- key: 1,
822
- dataset: G.value,
823
- color: R.value.style.chart.color,
824
- hoveredUid: J.value
825
- }, null, 8, [
826
- "dataset",
827
- "color",
828
- "hoveredUid"
829
- ])) : p("", !0),
830
- w(e.$slots, "svg", { svg: {
831
- ...W.value,
832
- drawingArea: { ...T(Q) },
833
- isPrintingImg: T(_t) || T(vt) || I.value,
834
- isPrintingSvg: L.value
835
- } }, void 0, !0)
836
- ], 14, Le)),
837
- e.$slots.watermark ? (S(), m("div", ze, [w(e.$slots, "watermark", b(v({ isPrinting: T(_t) || T(vt) || I.value || L.value })), void 0, !0)])) : p("", !0),
838
- T(Ut) ? (S(), m("div", Be, [w(e.$slots, "reset-action", { reset: T(Ht) }, () => [h("button", {
839
- "data-cy-reset": "",
840
- tabindex: "0",
841
- role: "button",
842
- class: "vue-data-ui-refresh-button",
843
- style: x({
844
- background: R.value.style.chart.backgroundColor,
845
- cursor: z.value ? "pointer" : "default"
846
- }),
847
- onClick: t[0] ||= (e) => T(Ht)(!0)
848
- }, [g(T(We), {
849
- name: "refresh",
850
- stroke: R.value.style.chart.color
851
- }, null, 8, ["stroke"])], 4)], !0)])) : p("", !0),
852
- e.$slots.source ? (S(), m("div", Ve, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
853
- g(T(Ue), {
854
- teleportTo: R.value.style.chart.tooltip.teleportTo,
855
- show: U.value.showTooltip && j.value,
856
- backgroundColor: R.value.style.chart.tooltip.backgroundColor,
857
- color: R.value.style.chart.tooltip.color,
858
- borderRadius: R.value.style.chart.tooltip.borderRadius,
859
- borderColor: R.value.style.chart.tooltip.borderColor,
860
- borderWidth: R.value.style.chart.tooltip.borderWidth,
861
- fontSize: R.value.style.chart.tooltip.fontSize,
862
- backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
863
- position: R.value.style.chart.tooltip.position,
864
- offsetX: R.value.style.chart.tooltip.offsetX,
865
- offsetY: R.value.style.chart.tooltip.offsetY,
866
- parent: N.value,
867
- content: M.value,
868
- isFullscreen: X.value,
869
- isCustom: R.value.style.chart.tooltip.customFormat && typeof R.value.style.chart.tooltip.customFormat == "function",
870
- smooth: R.value.style.chart.tooltip.smooth,
871
- backdropFilter: R.value.style.chart.tooltip.backdropFilter,
872
- smoothForce: R.value.style.chart.tooltip.smoothForce,
873
- smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold
874
- }, {
875
- "tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...K.value })), void 0, !0)]),
876
- tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...K.value })), void 0, !0)]),
877
- "tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...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
- it.value && R.value.userOptions.buttons.table ? (S(), f(ke($.value.component), Te({ key: 7 }, $.value.props, {
902
- ref_key: "tableUnit",
903
- ref: P,
904
- onClose: qt
905
- }), Ce({
906
- content: D(() => [(S(), f(T(Ke), {
907
- key: `table_${lt.value}`,
908
- colNames: Y.value.colNames,
909
- head: Y.value.head,
910
- body: Y.value.body,
911
- config: Y.value.config,
912
- title: R.value.table.useDialog ? "" : $.value.title,
913
- withCloseButton: !R.value.table.useDialog,
914
- isCursorPointer: z.value,
915
- onClose: qt
916
- }, {
917
- th: D(({ th: e }) => [h("div", {
918
- innerHTML: e,
919
- style: {
920
- display: "flex",
921
- "align-items": "center"
922
- }
923
- }, null, 8, He)]),
924
- td: D(({ td: e }) => [we(Ae(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
- }, [R.value.table.useDialog ? {
937
- name: "title",
938
- fn: D(() => [we(Ae($.value.title), 1)]),
939
- key: "0"
940
- } : void 0, R.value.table.useDialog ? {
941
- name: "actions",
942
- fn: D(() => [h("button", {
943
- tabindex: "0",
944
- class: "vue-ui-user-options-button",
945
- onClick: t[1] ||= (e) => Nt(R.value.userOptions.callbacks.csv),
946
- style: x({ cursor: z.value ? "pointer" : "default" })
947
- }, [g(T(We), {
948
- name: "fileCsv",
949
- stroke: $.value.props.color
950
- }, null, 8, ["stroke"])], 4)]),
951
- key: "1"
952
- } : void 0]), 1040)) : p("", !0),
953
- w(e.$slots, "skeleton", {}, () => [T(B) ? (S(), f(de, { key: 0 })) : p("", !0)], !0)
954
- ], 46, Pe));
955
- }
956
- }, [["__scopeId", "data-v-b2f52ff6"]]);
957
- //#endregion
958
- export { Ne as n, O as t };