vue-data-ui 3.25.7 → 3.25.9

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 (163) hide show
  1. package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
  2. package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-accordion.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-annotator.js +1 -1
  7. package/dist/components/vue-ui-bullet.js +1 -1
  8. package/dist/components/vue-ui-bump.js +1 -1
  9. package/dist/components/vue-ui-candlestick.js +1 -1
  10. package/dist/components/vue-ui-carousel-table.js +1 -1
  11. package/dist/components/vue-ui-chestnut.js +1 -1
  12. package/dist/components/vue-ui-chord.js +1 -1
  13. package/dist/components/vue-ui-circle-pack.js +1 -1
  14. package/dist/components/vue-ui-cursor.js +1 -1
  15. package/dist/components/vue-ui-dag.js +1 -1
  16. package/dist/components/vue-ui-dashboard.js +1 -1
  17. package/dist/components/vue-ui-digits.js +1 -1
  18. package/dist/components/vue-ui-donut-evolution.js +1 -1
  19. package/dist/components/vue-ui-donut.js +1 -1
  20. package/dist/components/vue-ui-dumbbell.js +1 -1
  21. package/dist/components/vue-ui-flow.js +1 -1
  22. package/dist/components/vue-ui-funnel.js +1 -1
  23. package/dist/components/vue-ui-galaxy.js +1 -1
  24. package/dist/components/vue-ui-gauge.js +1 -1
  25. package/dist/components/vue-ui-geo.js +1 -1
  26. package/dist/components/vue-ui-gizmo.js +1 -1
  27. package/dist/components/vue-ui-heatmap.js +1 -1
  28. package/dist/components/vue-ui-hill.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-label.js +1 -1
  33. package/dist/components/vue-ui-mini-loader.js +1 -1
  34. package/dist/components/vue-ui-molecule.js +1 -1
  35. package/dist/components/vue-ui-mood-radar.js +1 -1
  36. package/dist/components/vue-ui-nested-donuts.js +1 -1
  37. package/dist/components/vue-ui-onion.js +1 -1
  38. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-rating.js +1 -1
  43. package/dist/components/vue-ui-relation-circle.js +1 -1
  44. package/dist/components/vue-ui-ridgeline.js +1 -1
  45. package/dist/components/vue-ui-rings.js +1 -1
  46. package/dist/components/vue-ui-scatter.js +1 -1
  47. package/dist/components/vue-ui-skeleton.js +1 -1
  48. package/dist/components/vue-ui-smiley.js +1 -1
  49. package/dist/components/vue-ui-spark-trend.js +1 -1
  50. package/dist/components/vue-ui-sparkbar.js +1 -1
  51. package/dist/components/vue-ui-sparkgauge.js +1 -1
  52. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  53. package/dist/components/vue-ui-sparkline.js +1 -1
  54. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  55. package/dist/components/vue-ui-stackbar.js +1 -1
  56. package/dist/components/vue-ui-stackline.js +1 -1
  57. package/dist/components/vue-ui-strip-plot.js +1 -1
  58. package/dist/components/vue-ui-table-heatmap.js +1 -1
  59. package/dist/components/vue-ui-table-sparkline.js +1 -1
  60. package/dist/components/vue-ui-table.js +1 -1
  61. package/dist/components/vue-ui-thermometer.js +1 -1
  62. package/dist/components/vue-ui-timer.js +1 -1
  63. package/dist/components/vue-ui-tiremarks.js +1 -1
  64. package/dist/components/vue-ui-treemap.js +1 -1
  65. package/dist/components/vue-ui-vertical-bar.js +1 -1
  66. package/dist/components/vue-ui-waffle.js +1 -1
  67. package/dist/components/vue-ui-wheel.js +1 -1
  68. package/dist/components/vue-ui-word-cloud.js +1 -1
  69. package/dist/components/vue-ui-world.js +1 -1
  70. package/dist/components/vue-ui-xy-canvas.js +1 -1
  71. package/dist/components/vue-ui-xy.js +1 -1
  72. package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
  73. package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
  74. package/dist/ssr/vue-ui-donut.js +1 -1
  75. package/dist/ssr/vue-ui-xy.js +1 -1
  76. package/dist/ssr.js +2 -2
  77. package/dist/style.css +1 -1
  78. package/dist/types/vue-data-ui.d.ts +2 -0
  79. package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
  80. package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
  81. package/dist/utils.js +1 -1
  82. package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
  83. package/dist/vue-data-ui.js +70 -70
  84. package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
  85. package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
  86. package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
  87. package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
  88. package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
  89. package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
  90. package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
  91. package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
  92. package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
  93. package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
  94. package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
  95. package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
  96. package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
  97. package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
  98. package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
  99. package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
  100. package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
  101. package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
  102. package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
  103. package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
  104. package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
  105. package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
  106. package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
  107. package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
  108. package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
  109. package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
  110. package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
  111. package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
  112. package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
  113. package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
  114. package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
  115. package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
  116. package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
  117. package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
  118. package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
  119. package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
  120. package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
  121. package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
  122. package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
  123. package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
  124. package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
  125. package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
  126. package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
  127. package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
  128. package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
  129. package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
  130. package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
  131. package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
  132. package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
  133. package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
  134. package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
  135. package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
  136. package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
  137. package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
  138. package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
  139. package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
  140. package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
  141. package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
  142. package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
  143. package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
  144. package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
  145. package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
  146. package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
  147. package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
  148. package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
  149. package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
  150. package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
  151. package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
  152. package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
  153. package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
  154. package/package.json +1 -1
  155. package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
  156. package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
  157. package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
  158. package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
  159. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
  160. package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
  161. package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
  162. package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
  163. package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
@@ -1,1235 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Lt as i, Pt as a, S as o, X as s, Yt as ee, Zt as te, i as ne, lt as re, nt as ie, q as ae, t as oe, w as se } from "./lib-Dql7cqyA.js";
3
- import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
- import { t as ue } from "./useConfig-CIQZ6_r7.js";
5
- import { t as de } from "./usePrinter-DISD7q5m.js";
6
- import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as me } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as he } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ge } from "./useChartExport-iwOqiIWX.js";
10
- import { t as _e } from "./useTransitions-g_zBREk2.js";
11
- import { t as ve } from "./img-DhGApYG0.js";
12
- import { n as ye } from "./Title-CPHi-evi.js";
13
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
15
- import { t as Ce } from "./BaseLegendToggle-CXQrLjd-.js";
16
- import { t as we } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as De } from "./labelUtils-BXX2NzRe.js";
20
- import { t as Oe } from "./Legend-X4kF4PvW.js";
21
- import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
22
- import { t as Ae } from "./vue_ui_onion-1FTFFS46.js";
23
- import { Fragment as c, Teleport as je, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Fe, nextTick as Ie, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Le, onMounted as Re, openBlock as y, ref as b, renderList as ze, renderSlot as x, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as He, toRefs as Ue, unref as S, watch as C, withCtx as w } from "vue";
24
- //#region src/components/vue-ui-onion.vue
25
- var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], Xe = ["width", "height"], Ze = [
30
- "cx",
31
- "cy",
32
- "r",
33
- "stroke",
34
- "stroke-width",
35
- "stroke-dasharray",
36
- "stroke-dashoffset"
37
- ], Qe = [
38
- "cx",
39
- "cy",
40
- "r",
41
- "stroke",
42
- "stroke-width",
43
- "stroke-dasharray",
44
- "stroke-dashoffset"
45
- ], $e = ["id"], et = ["stdDeviation"], tt = ["filter"], nt = [
46
- "cx",
47
- "cy",
48
- "r",
49
- "stroke-width",
50
- "stroke-dasharray",
51
- "stroke-dashoffset"
52
- ], rt = [
53
- "cx",
54
- "cy",
55
- "r",
56
- "stroke-width",
57
- "stroke-dasharray",
58
- "stroke-dashoffset",
59
- "onMouseenter",
60
- "onMouseleave",
61
- "onClick"
62
- ], it = { key: 2 }, at = [
63
- "onMouseenter",
64
- "onMouseleave",
65
- "onClick"
66
- ], ot = [
67
- "transform",
68
- "font-size",
69
- "fill",
70
- "font-weight"
71
- ], st = {
72
- key: 0,
73
- style: {
74
- position: "absolute",
75
- top: "100%",
76
- left: "0",
77
- width: "100%"
78
- },
79
- "data-dom-to-png-ignore": "",
80
- "aria-hidden": "true"
81
- }, ct = {
82
- key: 5,
83
- class: "vue-data-ui-watermark"
84
- }, lt = ["id"], ut = ["onClick"], dt = ["innerHTML"], ft = /*#__PURE__*/ be({
85
- __name: "vue-ui-onion",
86
- props: {
87
- config: {
88
- type: Object,
89
- default() {
90
- return {};
91
- }
92
- },
93
- dataset: {
94
- type: Array,
95
- default() {
96
- return [];
97
- }
98
- }
99
- },
100
- emits: ["selectLegend", "copyAlt"],
101
- setup(e, { expose: be, emit: We }) {
102
- let ft = m(() => import("./Tooltip-hhrkQ3Lk.js")), pt = m(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), mt = m(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), ht = m(() => import("./DataTable-oiM9uWrQ.js")), gt = m(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), _t = m(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), vt = m(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), yt = m(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_onion: bt } = ue(), { isThemeValid: xt, warnInvalidTheme: St } = he(), T = e, Ct = l(() => !!T.dataset && T.dataset.length), E = b(ae()), wt = b(null), Tt = b(0), D = b(!1), Et = b(""), O = b([]), k = b(null), Dt = b(null), Ot = b(null), kt = b(null), At = b(null), jt = b(0), Mt = b(0), Nt = b(0), Pt = b(!1), Ft = b(!1), It = b(null), A = b(null), Lt = b({
103
- x: 0,
104
- y: 0
105
- }), j = b("pointer"), Rt = b(!1), M = b(Gt()), N = l(() => M.value.userOptions), P = l(() => M.value.style.chart.layout.labels), F = l(() => M.value.style.chart.layout), I = l(() => M.value.style.chart.tooltip), L = l(() => M.value.style.chart);
106
- ce({
107
- config: () => M.value,
108
- dataset: () => T.dataset,
109
- component: "VueUiOnion",
110
- rules: [le.emptyArray, {
111
- test: (e) => e.length > 8,
112
- message: [
113
- "👀 The number of series is > 8. Consider:",
114
- "",
115
- "▶️ Grouping small values dynamically into a single \"Other\" series.",
116
- "",
117
- "▶️ Using filters to let users choose a maximum number of series to display.",
118
- "",
119
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
120
- ]
121
- }]
122
- });
123
- let { transitionEnabled: R } = _e({
124
- config: () => M.value.transitions,
125
- dataset: () => T.dataset
126
- }), z = l(() => M.value.userOptions.useCursorPointer), zt = l(() => te({
127
- defaultConfig: {
128
- userOptions: { show: !1 },
129
- table: { show: !1 },
130
- style: { chart: {
131
- backgroundColor: "#99999930",
132
- layout: {
133
- gutter: { color: "#99999950" },
134
- labels: { show: !1 }
135
- },
136
- legend: { backgroundColor: "transparent" }
137
- } }
138
- },
139
- userConfig: M.value.skeletonConfig ?? {}
140
- })), { loading: B, FINAL_DATASET: Bt, manualLoading: Vt } = fe({
141
- ...Ue(T),
142
- FINAL_CONFIG: M,
143
- prepareConfig: Gt,
144
- callback: () => {
145
- Promise.resolve().then(async () => {
146
- await Ie(), gn();
147
- });
148
- },
149
- skeletonDataset: T.config?.skeletonDataset ?? [
150
- {
151
- name: "_",
152
- percentage: 50,
153
- value: 1,
154
- color: "#DBDBDB"
155
- },
156
- {
157
- name: "_",
158
- percentage: 50,
159
- value: 1,
160
- color: "#C4C4C4"
161
- },
162
- {
163
- name: "_",
164
- percentage: 50,
165
- value: 1,
166
- color: "#ADADAD"
167
- },
168
- {
169
- name: "_",
170
- percentage: 50,
171
- value: 1,
172
- color: "#969696"
173
- }
174
- ],
175
- skeletonConfig: te({
176
- defaultConfig: M.value,
177
- userConfig: zt.value
178
- })
179
- }), { userOptionsVisible: Ht, setUserOptionsVisibility: Ut, keepUserOptionState: Wt } = Te({ config: M.value }), { svgRef: V } = Ee({ config: L.value.title });
180
- function Gt() {
181
- let e = me({
182
- userConfig: T.config,
183
- defaultConfig: bt
184
- }), t = e.theme;
185
- if (!t) return e;
186
- if (!xt.value(e)) return St(e), e;
187
- let n = me({
188
- userConfig: Ae[t] || T.config,
189
- defaultConfig: e
190
- }), r = me({
191
- userConfig: T.config,
192
- defaultConfig: n
193
- });
194
- return {
195
- ...r,
196
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
197
- };
198
- }
199
- C(() => T.config, (e) => {
200
- B.value || (M.value = Gt()), Ht.value = !M.value.userOptions.showOnChartHover, ln(), jt.value += 1, Mt.value += 1, Nt.value += 1, H.value.showTable = M.value.table.show, H.value.showTooltip = I.value.show;
201
- }, { deep: !0 });
202
- let { isPrinting: Kt, isImaging: qt, generatePdf: Jt, generateImage: Yt } = de({
203
- elementId: `vue-ui-onion_${E.value}`,
204
- fileName: L.value.title.text || "vue-ui-onion",
205
- options: M.value.userOptions.print
206
- }), Xt = l(() => M.value.userOptions.show && !L.value.title.text), Zt = l(() => se(M.value.customPalette)), H = b({
207
- showTable: M.value.table.show,
208
- showTooltip: I.value.show
209
- });
210
- C(M, () => {
211
- H.value = {
212
- showTable: M.value.table.show,
213
- showTooltip: I.value.show
214
- };
215
- }, { immediate: !0 });
216
- let U = b({
217
- height: 512,
218
- width: 512,
219
- padding: {
220
- top: 64,
221
- left: 64,
222
- right: 64,
223
- bottom: 64
224
- },
225
- minRadius: 64
226
- }), W = Ve(null), G = Ve(null);
227
- Re(() => {
228
- Ft.value = !0, ln();
229
- });
230
- let { autoSizeLabels: Qt } = ke({
231
- svgRef: V,
232
- fontSize: () => P.value.fontSize,
233
- minFontSize: () => P.value.minFontSize,
234
- labelClass: ".vue-ui-onion-label"
235
- }), K = null, $t = null, en = 0;
236
- function tn() {
237
- K !== null && (cancelAnimationFrame(K), K = null), $t !== null && (clearTimeout($t), $t = null);
238
- }
239
- function nn(e) {
240
- return String(e).split(",").map((e) => {
241
- let t = e.trim(), n = Number.parseFloat(t);
242
- return Number.isFinite(n) ? t.endsWith("ms") ? n : n * 1e3 : 0;
243
- });
244
- }
245
- function rn() {
246
- return typeof window > "u" || !R.value || Pt.value || B.value || !V.value ? 0 : Array.from(V.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
247
- let n = window.getComputedStyle(t);
248
- if (n.transitionProperty === "none") return e;
249
- let r = nn(n.transitionDuration), i = nn(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
250
- return Math.max(e, o);
251
- }, 0);
252
- }
253
- function an() {
254
- typeof window > "u" || (K = requestAnimationFrame(() => {
255
- K = null, Qt();
256
- }));
257
- }
258
- function on() {
259
- if (typeof window > "u") return;
260
- let e = ++en;
261
- tn(), Ie(() => {
262
- e === en && (K = requestAnimationFrame(() => {
263
- if (K = null, e !== en) return;
264
- let t = rn();
265
- if (t <= 0) {
266
- an();
267
- return;
268
- }
269
- $t = setTimeout(() => {
270
- $t = null, e === en && an();
271
- }, t + 34);
272
- }));
273
- });
274
- }
275
- let sn = l(() => M.value.debug), cn = null;
276
- function ln() {
277
- if (a(T.dataset) && (ie({
278
- componentName: "VueUiOnion",
279
- type: "dataset",
280
- debug: sn.value
281
- }), Vt.value = !0), a(T.dataset) || (Vt.value = M.value.loading), M.value.responsive) {
282
- let e = 64 / 512, t = xe(() => {
283
- cn && clearTimeout(cn), Pt.value = !0;
284
- let { width: t, height: n } = Se({
285
- chart: k.value,
286
- title: L.value.title.text ? Dt.value : null,
287
- legend: L.value.legend.show ? Ot.value : null,
288
- source: kt.value,
289
- noTitle: At.value
290
- });
291
- n -= 12, requestAnimationFrame(async () => {
292
- U.value.width = t, U.value.height = n, U.value.padding.top = Math.max(t, n) * e, U.value.padding.right = Math.max(t, n) * e, U.value.padding.bottom = Math.max(t, n) * e, U.value.padding.left = Math.max(t, n) * e, U.value.minRadius = Math.min(t, n) * e, cn = setTimeout(() => {
293
- Pt.value = !1, on();
294
- }, 0);
295
- });
296
- });
297
- W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(t), G.value = k.value.parentNode, W.value.observe(G.value);
298
- }
299
- on();
300
- }
301
- Le(() => {
302
- en += 1, tn(), W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
303
- });
304
- let q = l(() => ({
305
- top: U.value.padding.top,
306
- left: U.value.padding.left,
307
- right: U.value.width - U.value.padding.right,
308
- bottom: U.value.height - U.value.padding.bottom,
309
- centerX: U.value.width / 2,
310
- centerY: U.value.height / 2,
311
- width: U.value.width - U.value.padding.right - U.value.padding.left,
312
- height: U.value.height - U.value.padding.bottom - U.value.padding.top,
313
- minRadius: U.value.minRadius,
314
- maxRadius: Math.min(U.value.width, U.value.height) - U.value.padding.top * 2
315
- })), J = l(() => (sn.value && Bt.value.forEach((e, t) => {
316
- [null, void 0].includes(e.name) && ie({
317
- componentName: "VueUiOnion",
318
- type: "datasetSerieAttribute",
319
- property: "name",
320
- index: t
321
- }), [void 0].includes(e.percentage) && ie({
322
- componentName: "VueUiOnion",
323
- type: "datasetSerieAttribute",
324
- property: "percentage",
325
- index: t
326
- });
327
- }), Bt.value.map((e, t) => {
328
- let n = `onion_serie_${t}_${E.value}`;
329
- return {
330
- ...e,
331
- percentage: e.percentage || 0,
332
- targetPercentage: e.percentage || 0,
333
- color: o(e.color) || Zt.value[t] || i[t],
334
- id: n,
335
- shape: "circle",
336
- opacity: O.value.includes(n) ? .5 : 1,
337
- absoluteIndex: t,
338
- segregate: () => Sn(n),
339
- isSegregated: O.value.includes(n)
340
- };
341
- }))), un = l(() => J.value.map((e, t) => {
342
- let n = L.value.legend.showValue, r = L.value.legend.showPercentage, i = Mn({
343
- showVal: n,
344
- showPercentage: r,
345
- val: ne(P.value.value.formatter, e.value, s({
346
- p: e.prefix || "",
347
- v: e.value,
348
- s: e.suffix || "",
349
- r: L.value.legend.roundingValue
350
- })),
351
- percentage: s({
352
- v: e.percentage ?? 0,
353
- s: "%",
354
- r: L.value.legend.roundingPercentage
355
- }),
356
- config: L.value.legend
357
- });
358
- return {
359
- ...e,
360
- display: `${e.name}${n || r ? ": " : ""}${i}`
361
- };
362
- })), dn = b(J.value), fn = l(() => M.value.useStartAnimation), pn = b(null), mn = l(() => Math.max(...J.value.map((e) => e.percentage))), hn = b(!1);
363
- C(() => J.value, gn, {
364
- immediate: !0,
365
- deep: !0
366
- }), C(() => T.dataset, (e) => {
367
- Array.isArray(e) && e.length > 0 && (Vt.value = !1), on();
368
- }, {
369
- deep: !0,
370
- flush: "post"
371
- });
372
- function gn() {
373
- if (fn.value && !hn.value && !B.value) {
374
- dn.value = J.value.map((e) => ({
375
- ...e,
376
- percentage: 0
377
- }));
378
- let e = 0;
379
- function t() {
380
- e >= mn.value ? (cancelAnimationFrame(pn.value), dn.value = J.value, hn.value = !0) : (dn.value = J.value.map((t) => ({
381
- ...t,
382
- percentage: e < t.targetPercentage ? e : t.targetPercentage
383
- })), e += 1, requestAnimationFrame(t), hn.value = !0);
384
- }
385
- t();
386
- } else dn.value = J.value;
387
- }
388
- let _n = l(() => ({
389
- cy: "onion-div-legend",
390
- backgroundColor: L.value.legend.backgroundColor,
391
- color: L.value.legend.color,
392
- fontSize: L.value.legend.fontSize,
393
- paddingBottom: 12,
394
- fontWeight: L.value.legend.bold ? "bold" : ""
395
- })), vn = l(() => J.value.filter((e) => !O.value.includes(e.id)).length), Y = l(() => {
396
- let e = Math.min(q.value.width, q.value.height) / 2 / J.value.length;
397
- return {
398
- gutter: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.gutter.width,
399
- track: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.track.width
400
- };
401
- }), X = l(() => dn.value.filter((e) => !O.value.includes(e.id)).map((e, t) => {
402
- let n = (q.value.maxRadius - Y.value.track) / vn.value / 2 * (1 + t), r = q.value.centerY - n;
403
- return {
404
- percentage: e.percentage || 0,
405
- ...e,
406
- labelY: r,
407
- radius: n,
408
- path: yn(n, e.percentage || 0)
409
- };
410
- }));
411
- function yn(e, t) {
412
- let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
413
- return {
414
- bgDashArray: `${r} ${n}`,
415
- bgDashOffset: 0,
416
- dashArray: i,
417
- dashOffset: a,
418
- fullOffset: 0,
419
- active: `
420
- M ${q.value.centerX},${q.value.centerY - e}
421
- A ${e},${e} 0 1 1
422
- ${q.value.centerX + e * Math.cos(Math.PI * 3 / 4)},${q.value.centerY + e * Math.sin(Math.PI * 3 / 4)}
423
- `.trim()
424
- };
425
- }
426
- let bn = We;
427
- function xn() {
428
- O.value.length ? O.value = [] : un.value.forEach((e) => {
429
- O.value.push(e.id);
430
- }), on(), bn("selectLegend", X.value);
431
- }
432
- function Sn(e) {
433
- if (O.value.includes(e)) O.value = O.value.filter((t) => t !== e);
434
- else {
435
- if (O.value.length === J.value.length - 1) return;
436
- O.value.push(e);
437
- }
438
- on(), bn("selectLegend", X.value);
439
- }
440
- function Cn(e) {
441
- return J.value.length ? J.value.find((t) => t.name === e) || (sn.value && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (sn.value && console.warn("VueUiOnion - There are no series to show."), null);
442
- }
443
- function wn(e) {
444
- let t = Cn(e);
445
- t !== null && O.value.includes(t.id) && Sn(t.id);
446
- }
447
- function Tn(e) {
448
- let t = Cn(e);
449
- t !== null && (O.value.includes(t.id) || Sn(t.id));
450
- }
451
- function En() {
452
- return X.value;
453
- }
454
- let Dn = l(() => ({
455
- head: [
456
- M.value.table.translations.serie,
457
- M.value.table.translations.percentage,
458
- M.value.table.translations.value
459
- ],
460
- body: X.value.map((e) => [
461
- e.name,
462
- e.percentage,
463
- e.value
464
- ])
465
- })), Z = l(() => {
466
- let e = Dn.value.head;
467
- return {
468
- head: e,
469
- body: X.value.map((e) => [
470
- `<span style="color:${e.color}" aria-hidden="true">⬤</span> ${e.name}`,
471
- `${Number(e.percentage ?? 0).toFixed(M.value.table.td.roundingPercentage).toLocaleString()}%`,
472
- `${e.prefix || ""}${[
473
- null,
474
- void 0,
475
- NaN,
476
- "NaN"
477
- ].includes(e.value) ? "-" : e.value.toFixed(M.value.table.td.roundingValue).toLocaleString()}${e.suffix || ""}`
478
- ]),
479
- config: {
480
- th: {
481
- backgroundColor: M.value.table.th.backgroundColor,
482
- color: M.value.table.th.color,
483
- outline: M.value.table.th.outline
484
- },
485
- td: {
486
- backgroundColor: M.value.table.td.backgroundColor,
487
- color: M.value.table.td.color,
488
- outline: M.value.table.td.outline
489
- },
490
- breakpoint: M.value.table.responsiveBreakpoint
491
- },
492
- colNames: e
493
- };
494
- });
495
- function On(e = null) {
496
- Ie(() => {
497
- let n = [
498
- [L.value.title.text],
499
- [L.value.title.subtitle.text],
500
- [""]
501
- ], i = Dn.value.head, a = Dn.value.body, o = n.concat([i]).concat(a), s = r(o);
502
- e ? e(s) : t({
503
- csvContent: s,
504
- title: L.value.title.text || "vue-ui-onion"
505
- });
506
- });
507
- }
508
- let Q = b(void 0), $ = b(!1);
509
- function kn(e) {
510
- $.value = e, Tt.value += 1;
511
- }
512
- function An({ datapoint: e }) {
513
- M.value.events.datapointClick && M.value.events.datapointClick({
514
- datapoint: e,
515
- seriesIndex: e.absoluteIndex
516
- });
517
- }
518
- function jn({ datapoint: e }) {
519
- Q.value = void 0, D.value = !1, A.value = null, j.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
520
- datapoint: e,
521
- seriesIndex: e.absoluteIndex
522
- });
523
- }
524
- function Mn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
525
- return De({
526
- config: i,
527
- val: e,
528
- percentage: t,
529
- showVal: n,
530
- showPercentage: r
531
- });
532
- }
533
- function Nn(e, t) {
534
- let n = P.value.value.show, r = P.value.percentage.show, i = Mn({
535
- config: P.value,
536
- showVal: n,
537
- showPercentage: r,
538
- val: ne(P.value.value.formatter, e.value, s({
539
- p: e.prefix || "",
540
- v: e.value || 0,
541
- s: e.suffix || "",
542
- r: P.value.roundingValue
543
- }), {
544
- datapoint: e,
545
- seriesIndex: t
546
- }),
547
- percentage: s({
548
- v: e.percentage,
549
- s: "%",
550
- r: P.value.roundingPercentage
551
- })
552
- });
553
- return `${e.name}${n || r ? ": " : ""}${i}`;
554
- }
555
- let Pn = b(null);
556
- function Fn({ datapoint: e, seriesIndex: t, show: r = !0, triggerMode: i = "pointer" }) {
557
- M.value.events.datapointEnter && M.value.events.datapointEnter({
558
- datapoint: e,
559
- seriesIndex: e.absoluteIndex
560
- }), j.value = i, A.value = t;
561
- let a = e.absoluteIndex;
562
- Q.value = t, Pn.value = {
563
- datapoint: e,
564
- seriesIndex: a,
565
- series: J.value,
566
- config: M.value
567
- }, D.value = r;
568
- let o = "", ee = I.value.customFormat;
569
- if (n(ee) && re(() => ee({
570
- seriesIndex: a,
571
- datapoint: e,
572
- series: J.value,
573
- config: M.value
574
- }))) Et.value = ee({
575
- seriesIndex: a,
576
- datapoint: e,
577
- series: J.value,
578
- config: M.value
579
- });
580
- else {
581
- let n = I.value.showPercentage, r = I.value.showValue;
582
- o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/></svg>`, o += `<b>${Mn({
583
- config: I.value,
584
- showVal: r,
585
- showPercentage: n,
586
- val: `<span>${ne(P.value.value.formatter, e.value, s({
587
- p: e.prefix || "",
588
- v: e.value,
589
- s: e.suffix || "",
590
- r: I.value.roundingValue
591
- }), {
592
- datapoint: e,
593
- seriesIndex: t
594
- })}</span>`,
595
- percentage: s({
596
- v: e.percentage,
597
- s: "%",
598
- r: I.value.roundingPercentage
599
- })
600
- })}</b></div>`, Et.value = `<div>${o}</div>`;
601
- }
602
- }
603
- function In() {
604
- H.value.showTable = !H.value.showTable;
605
- }
606
- function Ln() {
607
- H.value.showTooltip = !H.value.showTooltip;
608
- }
609
- let Rn = b(!1);
610
- function zn() {
611
- Rn.value = !Rn.value;
612
- }
613
- async function Bn({ scale: e = 2 } = {}) {
614
- if (!k.value) return;
615
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
616
- domElement: k.value,
617
- base64: !0,
618
- img: !0,
619
- scale: e
620
- });
621
- return {
622
- imageUri: i,
623
- base64: a,
624
- title: L.value.title.text,
625
- width: t,
626
- height: n,
627
- aspectRatio: r
628
- };
629
- }
630
- let Vn = l(() => {
631
- let e = M.value.table.useDialog && !M.value.table.show, t = H.value.showTable;
632
- return {
633
- component: e ? yt : mt,
634
- title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
635
- props: e ? {
636
- backgroundColor: M.value.table.th.backgroundColor,
637
- color: M.value.table.th.color,
638
- headerColor: M.value.table.th.color,
639
- headerBg: M.value.table.th.backgroundColor,
640
- isFullscreen: $.value,
641
- fullscreenParent: k.value,
642
- forcedWidth: Math.min(600, window.innerWidth * .8),
643
- isCursorPointer: z.value
644
- } : {
645
- hideDetails: !0,
646
- config: {
647
- open: t,
648
- maxHeight: 1e4,
649
- body: {
650
- backgroundColor: L.value.backgroundColor,
651
- color: L.value.color
652
- },
653
- head: {
654
- backgroundColor: L.value.backgroundColor,
655
- color: L.value.color
656
- }
657
- }
658
- }
659
- };
660
- });
661
- C(() => H.value.showTable, (e) => {
662
- M.value.table.show || (e && M.value.table.useDialog && It.value ? It.value.open() : "close" in It.value && It.value.close());
663
- });
664
- let Hn = l(() => un.value.map((e) => ({
665
- ...e,
666
- name: e.display
667
- }))), Un = l(() => L.value.backgroundColor), Wn = l(() => L.value.legend), Gn = l(() => L.value.title), { isCallbackImaging: Kn, isCallbackSvg: qn, generateSvg: Jn, onGenerateImage: Yn } = ge({
668
- svg: V,
669
- title: Gn,
670
- legend: Wn,
671
- legendItems: Hn,
672
- backgroundColor: Un,
673
- getSvgCallback: () => M.value.userOptions.callbacks.svg,
674
- generateImage: Yt
675
- });
676
- async function Xn() {
677
- if (bn("copyAlt", {
678
- config: M.value,
679
- dataset: X.value
680
- }), !M.value.userOptions.callbacks.altCopy) {
681
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
682
- return;
683
- }
684
- await Promise.resolve(M.value.userOptions.callbacks.altCopy({
685
- config: M.value,
686
- dataset: X.value
687
- }));
688
- }
689
- function Zn() {
690
- A.value = null, Rt.value = !0;
691
- }
692
- function Qn() {
693
- A.value = null, j.value = "pointer", D.value = !1, Q.value = void 0, Rt.value = !1;
694
- }
695
- function $n(e) {
696
- if (!V.value || Rn.value || document.activeElement !== V.value || !X.value.length) return;
697
- let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
698
- if (!t && !n && !r && !i) return;
699
- if (e.preventDefault(), e.stopPropagation(), i) {
700
- A.value = null, j.value = "pointer", D.value = !1, Q.value = void 0;
701
- return;
702
- }
703
- if (r) {
704
- if (A.value === null) return;
705
- let e = X.value[A.value];
706
- if (!e) return;
707
- An({ datapoint: e });
708
- return;
709
- }
710
- let a = A.value;
711
- a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
712
- let o = X.value[a];
713
- o && (er(a), Fn({
714
- datapoint: o,
715
- seriesIndex: a,
716
- show: !0,
717
- triggerMode: "keyboard"
718
- }));
719
- }
720
- function er(e) {
721
- if (!Number.isFinite(e) || !V.value) return;
722
- let t = X.value[e];
723
- if (!t) return;
724
- let n = t.radius, r = Math.PI * 7 / 4, i = q.value.centerX + n * Math.cos(r), a = q.value.centerY + n * Math.sin(r), o = V.value.getBoundingClientRect();
725
- Lt.value = {
726
- x: o.left + i / U.value.width * o.width,
727
- y: o.top + a / U.value.height * o.height
728
- };
729
- }
730
- let tr = l(() => ({
731
- headers: Z.value?.colNames ?? [],
732
- rows: Z.value?.body ?? []
733
- }));
734
- return be({
735
- getData: En,
736
- getImage: Bn,
737
- generatePdf: Jt,
738
- generateCsv: On,
739
- generateImage: Yt,
740
- generateSvg: Jn,
741
- hideSeries: Tn,
742
- showSeries: wn,
743
- toggleTable: In,
744
- toggleTooltip: Ln,
745
- toggleAnnotator: zn,
746
- toggleFullscreen: kn,
747
- copyAlt: Xn
748
- }), (e, t) => (y(), f("div", {
749
- class: g(`vue-data-ui-component vue-ui-onion ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
750
- ref_key: "onionChart",
751
- ref: k,
752
- id: `vue-ui-onion_${E.value}`,
753
- style: v(`font-family:${M.value.style.fontFamily};width:100%; ${M.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.backgroundColor}`),
754
- onMouseenter: t[4] ||= () => S(Ut)(!0),
755
- onMouseleave: t[5] ||= () => S(Ut)(!1)
756
- }, [
757
- p("div", {
758
- id: `chart-instructions-${E.value}`,
759
- class: "sr-only"
760
- }, [p("p", null, He(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
761
- tr.value?.rows?.length ? (y(), u(we, {
762
- key: 0,
763
- uid: E.value,
764
- head: tr.value.headers,
765
- body: tr.value.rows,
766
- notice: M.value.a11y.translations.tableAvailable,
767
- caption: M.value.a11y.translations.tableCaption
768
- }, null, 8, [
769
- "uid",
770
- "head",
771
- "body",
772
- "notice",
773
- "caption"
774
- ])) : d("", !0),
775
- N.value.buttons.annotator ? (y(), u(S(_t), {
776
- key: 1,
777
- svgRef: S(V),
778
- backgroundColor: L.value.backgroundColor,
779
- color: L.value.color,
780
- active: Rn.value,
781
- isCursorPointer: z.value,
782
- palette: N.value.annotatorPalette,
783
- onClose: zn
784
- }, {
785
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
786
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
787
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
788
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
789
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
790
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
791
- _: 3
792
- }, 8, [
793
- "svgRef",
794
- "backgroundColor",
795
- "color",
796
- "active",
797
- "isCursorPointer",
798
- "palette"
799
- ])) : d("", !0),
800
- Xt.value ? (y(), f("div", {
801
- key: 2,
802
- ref_key: "noTitle",
803
- ref: At,
804
- class: "vue-data-ui-no-title-space",
805
- style: "height:36px; width: 100%;background:transparent"
806
- }, null, 512)) : d("", !0),
807
- L.value.title.text ? (y(), f("div", {
808
- key: 3,
809
- ref_key: "chartTitle",
810
- ref: Dt,
811
- style: "width:100%;background:transparent"
812
- }, [(y(), u(ye, {
813
- key: `title_${jt.value}`,
814
- config: {
815
- title: {
816
- cy: "onion-div-title",
817
- ...L.value.title
818
- },
819
- subtitle: {
820
- cy: "onion-div-subtitle",
821
- ...L.value.title.subtitle
822
- }
823
- }
824
- }, null, 8, ["config"]))], 512)) : d("", !0),
825
- p("div", { id: `legend-top-${E.value}` }, null, 8, qe),
826
- N.value.show && Ct.value && (S(Wt) || S(Ht)) ? (y(), u(S(gt), {
827
- ref_key: "details",
828
- ref: wt,
829
- key: `user_options${Tt.value}`,
830
- backgroundColor: L.value.backgroundColor,
831
- color: L.value.color,
832
- isImaging: S(qt),
833
- isPrinting: S(Kt),
834
- uid: E.value,
835
- hasTooltip: N.value.buttons.tooltip && I.value.show,
836
- hasPdf: N.value.buttons.pdf,
837
- hasImg: N.value.buttons.img,
838
- hasSvg: N.value.buttons.svg,
839
- hasXls: N.value.buttons.csv,
840
- hasTable: N.value.buttons.table,
841
- hasFullscreen: N.value.buttons.fullscreen,
842
- hasAltCopy: N.value.buttons.altCopy,
843
- isFullscreen: $.value,
844
- isTooltip: H.value.showTooltip,
845
- titles: { ...N.value.buttonTitles },
846
- chartElement: k.value,
847
- position: N.value.position,
848
- hasAnnotator: N.value.buttons.annotator,
849
- isAnnotation: Rn.value,
850
- callbacks: N.value.callbacks,
851
- printScale: N.value.print.scale,
852
- tableDialog: M.value.table.useDialog,
853
- isCursorPointer: z.value,
854
- onToggleFullscreen: kn,
855
- onGeneratePdf: S(Jt),
856
- onGenerateCsv: On,
857
- onGenerateImage: S(Yn),
858
- onGenerateSvg: S(Jn),
859
- onToggleTable: In,
860
- onToggleTooltip: Ln,
861
- onToggleAnnotator: zn,
862
- onCopyAlt: Xn,
863
- style: v({ visibility: S(Wt) ? S(Ht) ? "visible" : "hidden" : "visible" })
864
- }, Me({ _: 2 }, [
865
- e.$slots.menuIcon ? {
866
- name: "menuIcon",
867
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
868
- isOpen: t,
869
- color: n
870
- })), void 0, !0)]),
871
- key: "0"
872
- } : void 0,
873
- e.$slots.optionTooltip ? {
874
- name: "optionTooltip",
875
- fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
876
- key: "1"
877
- } : void 0,
878
- e.$slots.optionPdf ? {
879
- name: "optionPdf",
880
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
881
- key: "2"
882
- } : void 0,
883
- e.$slots.optionCsv ? {
884
- name: "optionCsv",
885
- fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
886
- key: "3"
887
- } : void 0,
888
- e.$slots.optionImg ? {
889
- name: "optionImg",
890
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
891
- key: "4"
892
- } : void 0,
893
- e.$slots.optionSvg ? {
894
- name: "optionSvg",
895
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
896
- key: "5"
897
- } : void 0,
898
- e.$slots.optionTable ? {
899
- name: "optionTable",
900
- fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
901
- key: "6"
902
- } : void 0,
903
- e.$slots.optionFullscreen ? {
904
- name: "optionFullscreen",
905
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
906
- toggleFullscreen: t,
907
- isFullscreen: n
908
- })), void 0, !0)]),
909
- key: "7"
910
- } : void 0,
911
- e.$slots.optionAnnotator ? {
912
- name: "optionAnnotator",
913
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
914
- toggleAnnotator: t,
915
- isAnnotator: n
916
- })), void 0, !0)]),
917
- key: "8"
918
- } : void 0,
919
- e.$slots.optionAltCopy ? {
920
- name: "optionAltCopy",
921
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
922
- key: "9"
923
- } : void 0,
924
- e.$slots["custom-menu-before"] ? {
925
- name: "custom-menu-before",
926
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
927
- key: "10"
928
- } : void 0,
929
- e.$slots["custom-menu-after"] ? {
930
- name: "custom-menu-after",
931
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
932
- key: "11"
933
- } : void 0
934
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : d("", !0),
935
- p("div", Je, [(y(), f("svg", {
936
- ref_key: "svgRef",
937
- ref: V,
938
- xmlns: S(oe),
939
- "aria-describedby": `chart-instructions-${E.value}`,
940
- class: g({
941
- "vue-data-ui-fullscreen--on": $.value,
942
- "vue-data-ui-fulscreen--off": !$.value,
943
- resizing: Pt.value,
944
- "vue-data-ui-no-transition": !S(R) || Pt.value || S(B)
945
- }),
946
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
947
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
948
- tabindex: "0",
949
- onFocus: Zn,
950
- onBlur: Qn,
951
- onKeydown: $n
952
- }, [
953
- Pe(S(vt)),
954
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
955
- key: 0,
956
- x: 0,
957
- y: 0,
958
- width: U.value.width <= 0 ? 10 : U.value.width,
959
- height: U.value.height <= 0 ? 10 : U.value.height,
960
- style: { pointerEvents: "none" }
961
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : d("", !0),
962
- (y(!0), f(c, null, ze(X.value, (e, t) => (y(), f("circle", {
963
- cx: q.value.centerX,
964
- cy: q.value.centerY,
965
- r: e.radius <= 0 ? 1e-4 : e.radius,
966
- stroke: F.value.gutter.color,
967
- "stroke-width": Y.value.gutter,
968
- fill: "none",
969
- "stroke-dasharray": e.path.bgDashArray,
970
- "stroke-dashoffset": e.path.fullOffset,
971
- "stroke-linecap": "round",
972
- class: g({
973
- "vue-ui-onion-path": !0,
974
- "vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
975
- "vue-data-ui-transition": S(R)
976
- }),
977
- style: {
978
- transform: "rotate(-90deg)",
979
- transformOrigin: "50% 50%"
980
- }
981
- }, null, 10, Ze))), 256)),
982
- (y(!0), f(c, null, ze(X.value, (e, t) => (y(), f("circle", {
983
- cx: q.value.centerX,
984
- cy: q.value.centerY,
985
- r: e.radius < 0 ? 1e-4 : e.radius,
986
- stroke: `${e.color}`,
987
- "stroke-width": Y.value.track,
988
- fill: "none",
989
- "stroke-dasharray": e.path.dashArray,
990
- "stroke-dashoffset": e.path.dashOffset,
991
- class: g({
992
- "vue-ui-onion-path": !0,
993
- "vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
994
- "vue-data-ui-transition": S(R)
995
- }),
996
- "stroke-linecap": "round",
997
- style: {
998
- transform: "rotate(-90deg)",
999
- transformOrigin: "50% 50%"
1000
- }
1001
- }, null, 10, Qe))), 256)),
1002
- p("defs", null, [p("filter", {
1003
- id: `blur_${E.value}`,
1004
- x: "-50%",
1005
- y: "-50%",
1006
- width: "200%",
1007
- height: "200%"
1008
- }, [p("feGaussianBlur", {
1009
- in: "SourceGraphic",
1010
- stdDeviation: 100 / L.value.gradientIntensity
1011
- }, null, 8, et)], 8, $e)]),
1012
- L.value.useGradient ? (y(), f("g", {
1013
- key: 1,
1014
- filter: `url(#blur_${E.value})`
1015
- }, [(y(!0), f(c, null, ze(X.value, (e, t) => (y(), f("circle", {
1016
- cx: q.value.centerX,
1017
- cy: q.value.centerY,
1018
- r: e.radius <= 0 ? 1e-4 : e.radius,
1019
- stroke: "white",
1020
- "stroke-width": Y.value.track / 3,
1021
- fill: "none",
1022
- "stroke-linecap": "round",
1023
- "stroke-dasharray": e.path.dashArray,
1024
- "stroke-dashoffset": e.path.dashOffset,
1025
- style: {
1026
- transform: "rotate(-90deg)",
1027
- transformOrigin: "50% 50%"
1028
- },
1029
- class: g({ "vue-data-ui-transition": S(R) })
1030
- }, null, 10, nt))), 256))], 8, tt)) : d("", !0),
1031
- (y(!0), f(c, null, ze(X.value, (e, t) => (y(), f("circle", {
1032
- cx: q.value.centerX,
1033
- cy: q.value.centerY,
1034
- r: e.radius <= 0 ? 1e-4 : e.radius,
1035
- stroke: "transparent",
1036
- "stroke-width": Math.max(Y.value.track, Y.value.gutter),
1037
- fill: "none",
1038
- "stroke-dasharray": e.path.bgDashArray,
1039
- "stroke-dashoffset": e.path.fullOffset,
1040
- "stroke-linecap": "round",
1041
- class: "vue-ui-onion-path",
1042
- style: {
1043
- transform: "rotate(-90deg)",
1044
- transformOrigin: "50% 50%"
1045
- },
1046
- onMouseenter: (n) => Fn({
1047
- datapoint: e,
1048
- show: !0,
1049
- seriesIndex: t,
1050
- triggerMode: "pointer"
1051
- }),
1052
- onMouseleave: (t) => jn({ datapoint: e }),
1053
- onClick: (t) => An({ datapoint: e })
1054
- }, null, 40, rt))), 256)),
1055
- P.value.show ? (y(), f("g", it, [(y(!0), f(c, null, ze(X.value, (e, t) => (y(), f("g", {
1056
- key: `dl_${e.id}`,
1057
- onMouseenter: (n) => Fn({
1058
- datapoint: e,
1059
- show: !0,
1060
- seriesIndex: t,
1061
- triggerMode: "pointer"
1062
- }),
1063
- onMouseleave: (t) => jn({ datapoint: e }),
1064
- onClick: (t) => An({ datapoint: e })
1065
- }, [O.value.includes(e.id) ? d("", !0) : (y(), f("text", {
1066
- key: 0,
1067
- class: g(["vue-ui-onion-label", { "vue-data-ui-transition": S(R) }]),
1068
- transform: `translate(${U.value.width / 2 - Y.value.gutter * .8 + P.value.offsetX},${e.labelY + P.value.offsetY})`,
1069
- "text-anchor": "end",
1070
- "font-size": P.value.fontSize,
1071
- fill: M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value === t ? e.color : P.value.color,
1072
- "font-weight": P.value.bold ? "bold" : "normal"
1073
- }, He(Nn(e, t)), 11, ot))], 40, at))), 128))])) : d("", !0),
1074
- x(e.$slots, "svg", { svg: {
1075
- ...U.value,
1076
- drawingArea: q.value,
1077
- isPrintingImg: S(Kt) || S(qt) || S(Kn),
1078
- isPrintingSvg: S(qn)
1079
- } }, void 0, !0)
1080
- ], 46, Ye)), e.$slots.hint ? (y(), f("div", st, [x(e.$slots, "hint", _(h({
1081
- hint: M.value.a11y.translations.keyboardNavigation,
1082
- isVisible: Rt.value
1083
- })), void 0, !0)])) : d("", !0)]),
1084
- e.$slots.watermark ? (y(), f("div", ct, [x(e.$slots, "watermark", _(h({ isPrinting: S(Kt) || S(qt) || S(Kn) || S(qn) })), void 0, !0)])) : d("", !0),
1085
- p("div", { id: `legend-bottom-${E.value}` }, null, 8, lt),
1086
- Ft.value && (L.value.legend.show || e.$slots.legend) ? (y(), u(je, {
1087
- key: 6,
1088
- to: L.value.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1089
- }, [p("div", {
1090
- ref_key: "chartLegend",
1091
- ref: Ot
1092
- }, [x(e.$slots, "legend", { legend: un.value }, () => [L.value.legend.show ? (y(), u(Oe, {
1093
- key: `legend_${Nt.value}`,
1094
- legendSet: un.value,
1095
- config: _n.value,
1096
- isCursorPointer: z.value,
1097
- onClickMarker: t[0] ||= ({ legend: e }) => Sn(e.id)
1098
- }, {
1099
- item: w(({ legend: e }) => [S(B) ? d("", !0) : (y(), f("div", {
1100
- key: 0,
1101
- "data-cy-legend-item": "",
1102
- onClick: (t) => e.segregate(),
1103
- style: v(`opacity:${O.value.includes(e.id) ? .5 : 1}`)
1104
- }, He(e.display), 13, ut))]),
1105
- legendToggle: w(() => [un.value.length > 2 && L.value.legend.selectAllToggle.show && !S(B) ? (y(), u(Ce, {
1106
- key: 0,
1107
- backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
1108
- color: L.value.legend.selectAllToggle.color,
1109
- fontSize: L.value.legend.fontSize,
1110
- checked: O.value.length > 0,
1111
- isCursorPointer: z.value,
1112
- onToggle: xn
1113
- }, null, 8, [
1114
- "backgroundColor",
1115
- "color",
1116
- "fontSize",
1117
- "checked",
1118
- "isCursorPointer"
1119
- ])) : d("", !0)]),
1120
- _: 1
1121
- }, 8, [
1122
- "legendSet",
1123
- "config",
1124
- "isCursorPointer"
1125
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1126
- e.$slots.source ? (y(), f("div", {
1127
- key: 7,
1128
- ref_key: "source",
1129
- ref: kt,
1130
- dir: "auto"
1131
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1132
- Pe(S(ft), {
1133
- teleportTo: I.value.teleportTo,
1134
- show: H.value.showTooltip && D.value,
1135
- backgroundColor: I.value.backgroundColor,
1136
- color: I.value.color,
1137
- borderRadius: I.value.borderRadius,
1138
- borderColor: I.value.borderColor,
1139
- borderWidth: I.value.borderWidth,
1140
- fontSize: I.value.fontSize,
1141
- backgroundOpacity: I.value.backgroundOpacity,
1142
- position: I.value.position,
1143
- offsetX: I.value.offsetX,
1144
- offsetY: I.value.offsetY,
1145
- parent: k.value,
1146
- content: Et.value,
1147
- isFullscreen: $.value,
1148
- isCustom: S(n)(I.value.customFormat),
1149
- smooth: I.value.smooth,
1150
- backdropFilter: I.value.backdropFilter,
1151
- smoothForce: I.value.smoothForce,
1152
- smoothSnapThreshold: I.value.smoothSnapThreshold,
1153
- isA11yMode: j.value === "keyboard",
1154
- a11yPosition: Lt.value
1155
- }, {
1156
- "tooltip-before": w(() => [x(e.$slots, "tooltip-before", _(h({ ...Pn.value })), void 0, !0)]),
1157
- tooltip: w(() => [x(e.$slots, "tooltip", _(h({ ...Pn.value })), void 0, !0)]),
1158
- "tooltip-after": w(() => [x(e.$slots, "tooltip-after", _(h({ ...Pn.value })), void 0, !0)]),
1159
- _: 3
1160
- }, 8, [
1161
- "teleportTo",
1162
- "show",
1163
- "backgroundColor",
1164
- "color",
1165
- "borderRadius",
1166
- "borderColor",
1167
- "borderWidth",
1168
- "fontSize",
1169
- "backgroundOpacity",
1170
- "position",
1171
- "offsetX",
1172
- "offsetY",
1173
- "parent",
1174
- "content",
1175
- "isFullscreen",
1176
- "isCustom",
1177
- "smooth",
1178
- "backdropFilter",
1179
- "smoothForce",
1180
- "smoothSnapThreshold",
1181
- "isA11yMode",
1182
- "a11yPosition"
1183
- ]),
1184
- Ct.value && N.value.buttons.table ? (y(), u(Be(Vn.value.component), Fe({ key: 8 }, Vn.value.props, {
1185
- ref_key: "tableUnit",
1186
- ref: It,
1187
- onClose: t[3] ||= (e) => H.value.showTable = !1
1188
- }), Me({
1189
- content: w(() => [(y(), u(S(ht), {
1190
- key: `table_${Mt.value}`,
1191
- colNames: Z.value.colNames,
1192
- head: Z.value.head,
1193
- body: Z.value.body,
1194
- config: Z.value.config,
1195
- title: M.value.table.useDialog ? "" : Vn.value.title,
1196
- withCloseButton: !M.value.table.useDialog,
1197
- isCursorPointer: z.value,
1198
- onClose: t[2] ||= (e) => H.value.showTable = !1
1199
- }, {
1200
- th: w(({ th: e }) => [Ne(He(e), 1)]),
1201
- td: w(({ td: e }) => [p("div", { innerHTML: e }, null, 8, dt)]),
1202
- _: 1
1203
- }, 8, [
1204
- "colNames",
1205
- "head",
1206
- "body",
1207
- "config",
1208
- "title",
1209
- "withCloseButton",
1210
- "isCursorPointer"
1211
- ]))]),
1212
- _: 2
1213
- }, [M.value.table.useDialog ? {
1214
- name: "title",
1215
- fn: w(() => [Ne(He(Vn.value.title), 1)]),
1216
- key: "0"
1217
- } : void 0, M.value.table.useDialog ? {
1218
- name: "actions",
1219
- fn: w(() => [p("button", {
1220
- tabindex: "0",
1221
- class: "vue-ui-user-options-button",
1222
- onClick: t[1] ||= (e) => On(N.value.callbacks.csv),
1223
- style: v({ cursor: z.value ? "pointer" : "default" })
1224
- }, [Pe(S(pt), {
1225
- name: "fileCsv",
1226
- stroke: Vn.value.props.color
1227
- }, null, 8, ["stroke"])], 4)]),
1228
- key: "1"
1229
- } : void 0]), 1040)) : d("", !0),
1230
- x(e.$slots, "skeleton", {}, () => [S(B) ? (y(), u(pe, { key: 0 })) : d("", !0)], !0)
1231
- ], 46, Ge));
1232
- }
1233
- }, [["__scopeId", "data-v-7b55438d"]]);
1234
- //#endregion
1235
- export { We as n, ft as t };