vue-data-ui 3.2.8 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
  106. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,407 +0,0 @@
1
- import { defineAsyncComponent as H, computed as f, ref as v, toRefs as xe, watch as ie, onMounted as Ae, createElementBlock as u, openBlock as r, unref as s, normalizeStyle as j, normalizeClass as X, createBlock as R, createCommentVNode as g, createSlots as Oe, withCtx as O, renderSlot as p, normalizeProps as M, guardReactiveProps as E, createVNode as Pe, Fragment as ce, renderList as ve, toDisplayString as Ie } from "vue";
2
- import { c as ze, t as Se, q as Fe, o as Te, f as Ne, i as he, X as Re, a as Me, d as Ee } from "./lib-BEpWEyMm.js";
3
- import { t as Le, u as Ue } from "./useResponsive-DfdjqQps.js";
4
- import { u as Be, a as de } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as Ge, B as De } from "./BaseScanner-BgWxam9d.js";
6
- import { u as He } from "./usePrinter-w23K-ezx.js";
7
- import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
9
- import { t as qe } from "./themes-Dw-dDudK.js";
10
- import Ve from "./Title-DG2nloSB.js";
11
- import Ye from "./img-DjWwQXVS.js";
12
- import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = { key: 1 }, et = ["d", "stroke-width", "stroke"], tt = { key: 2 }, at = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], lt = { key: 3 }, ot = ["x", "y", "height"], st = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], nt = {
14
- key: 4,
15
- class: "vue-data-ui-watermark"
16
- }, rt = {
17
- __name: "vue-ui-tiremarks",
18
- props: {
19
- config: {
20
- type: Object,
21
- default() {
22
- return {};
23
- }
24
- },
25
- dataset: {
26
- type: Object,
27
- default() {
28
- return {};
29
- }
30
- }
31
- },
32
- setup(fe, { expose: ye }) {
33
- const ge = H(() => import("./PenAndPaper-CR8q353D.js")), pe = H(() => import("./UserOptions-DsTgvAok.js")), me = H(() => import("./PackageVersion-C40g0Rfc.js")), { vue_ui_tiremarks: ke } = Be(), w = fe, be = f(() => !!w.dataset && Object.keys(w.dataset).length), L = v(ze()), C = v(null), we = v(null), q = v(null), V = v(null), Y = v(0), W = v(0), $ = v(null), P = v(null), e = v(G()), { loading: J, FINAL_DATASET: U } = Ge({
34
- ...xe(w),
35
- FINAL_CONFIG: e,
36
- prepareConfig: G,
37
- skeletonDataset: { percentage: 50 },
38
- skeletonConfig: Se({
39
- defaultConfig: e.value,
40
- userConfig: {
41
- userOptions: { show: !1 },
42
- style: {
43
- chart: {
44
- backgroundColor: "#99999930",
45
- animation: { use: !1 },
46
- layout: {
47
- activeColor: "#6A6A6A80",
48
- inactiveColor: "#CACACA80",
49
- ticks: {
50
- gradient: { show: !1 }
51
- }
52
- }
53
- }
54
- }
55
- }
56
- })
57
- }), { userOptionsVisible: B, setUserOptionsVisibility: K, keepUserOptionState: Q } = je({ config: e.value }), { svgRef: Z } = Xe({ config: e.value.style.chart.title });
58
- function G() {
59
- const t = de({
60
- userConfig: w.config,
61
- defaultConfig: ke
62
- });
63
- return t.theme ? {
64
- ...de({
65
- userConfig: qe.vue_ui_tiremarks[t.theme] || w.config,
66
- defaultConfig: t
67
- })
68
- } : t;
69
- }
70
- ie(() => w.config, (t) => {
71
- e.value = G(), B.value = !e.value.userOptions.showOnChartHover, S.value = e.value.style.chart.width, F.value = e.value.style.chart.height, se(), W.value += 1;
72
- }, { deep: !0 });
73
- const { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = He({
74
- elementId: L.value,
75
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
76
- options: e.value.userOptions.print
77
- }), Ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Fe(U.value.percentage));
78
- ie(() => U.value, (t) => {
79
- e.value.style.chart.animation.use ? oe(t.percentage) : i.value = t.percentage || 0;
80
- }, { deep: !0 }), Ae(() => {
81
- se();
82
- });
83
- function oe(t) {
84
- let l = e.value.style.chart.animation.speed;
85
- const a = Math.abs(t - i.value) / (l * 120);
86
- function o() {
87
- i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(o);
88
- }
89
- o();
90
- }
91
- const _e = f(() => !!e.value.debug);
92
- function se() {
93
- if (Te(w.dataset) && Ne({
94
- componentName: "VueUiTiremarks",
95
- type: "dataset",
96
- debug: _e.value
97
- }), e.value.responsive) {
98
- const t = Le(() => {
99
- const { width: l, height: a } = Ue({
100
- chart: C.value,
101
- title: e.value.style.chart.title.text ? q.value : null,
102
- source: V.value
103
- });
104
- requestAnimationFrame(() => {
105
- S.value = Math.max(0.1, l), F.value = Math.max(0.1, a - 12);
106
- });
107
- });
108
- $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
109
- }
110
- oe(U.value.percentage || 0);
111
- }
112
- const I = f(() => e.value.style.chart.layout.display === "vertical"), c = f(() => {
113
- const t = e.value.style.chart.percentage.show, l = {
114
- top: t ? 48 : 12,
115
- left: t ? 64 : 16,
116
- right: t ? 64 : 16,
117
- bottom: t ? 48 : 12
118
- };
119
- return I.value ? {
120
- top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
121
- left: 3,
122
- right: 3,
123
- bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
124
- } : {
125
- top: 0,
126
- bottom: 0,
127
- left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
128
- right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
129
- };
130
- }), z = f(() => Object.values(c.value).reduce((t, l) => t + l, 0)), S = v(e.value.style.chart.width), F = v(e.value.style.chart.height), n = f(() => ({
131
- height: F.value,
132
- width: S.value
133
- })), ne = f(() => ({
134
- horizontal: {
135
- x: y.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
136
- y: n.value.height / 2 - y.value.fontSize / 2
137
- },
138
- vertical: {
139
- x: n.value.width / 2 - 20,
140
- y: y.value.y - y.value.fontSize / 2
141
- }
142
- })[e.value.style.chart.layout.display]), h = f(() => I.value ? {
143
- mark: (n.value.height - z.value) / 100 * 0.5,
144
- space: (n.value.height - z.value) / 100 * 0.5
145
- } : {
146
- mark: (n.value.width - z.value) / 100 * 0.5,
147
- space: (n.value.width - z.value) / 100 * 0.5
148
- }), re = f(() => {
149
- const t = [];
150
- for (let a = 0; a < 100; a += 1) {
151
- const o = e.value.style.chart.layout.ticks.gradient.show ? he(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
152
- if (I.value) {
153
- const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.width - c.value.left - c.value.right) / 100 / 3 : 0, d = c.value.left + 4 + _, m = n.value.width - c.value.right - 4 - _, k = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, b = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, x = (m - d) / e.value.style.chart.layout.curveAngleX, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
154
- t.push({
155
- x1: d,
156
- x2: m,
157
- y1: k,
158
- y2: b,
159
- curve: `M ${d} ${k} C ${d + x} ${k - A}, ${m - x} ${b - A}, ${m} ${b}`,
160
- color: o
161
- });
162
- } else {
163
- const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, d = c.value.left + a * h.value.mark + a * h.value.space - h.value.mark, m = d, k = c.value.top + 4 + _, b = n.value.height - c.value.bottom - 4 - _, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), A = (b - k) / e.value.style.chart.layout.curveAngleX;
164
- t.push({
165
- x1: d,
166
- x2: m,
167
- y1: k,
168
- y2: b,
169
- curve: `M ${d} ${k} C ${d + x} ${k + A}, ${m + x} ${b - A}, ${m} ${b}`,
170
- color: o
171
- });
172
- }
173
- }
174
- return t;
175
- }), y = f(() => {
176
- let t, l, a;
177
- const o = e.value.style.chart.percentage.fontSize / 3;
178
- return I.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = n.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = n.value.width / 2, l = n.value.height - c.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = n.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = n.value.width - c.value.right + 8, l = n.value.height / 2 + o, a = "start"), {
179
- x: t,
180
- y: l,
181
- textAnchor: a,
182
- bold: e.value.style.chart.percentage.bold,
183
- fontSize: e.value.style.chart.percentage.fontSize,
184
- fill: e.value.style.chart.percentage.color
185
- };
186
- }), T = v(!1);
187
- function ue(t) {
188
- T.value = t, Y.value += 1;
189
- }
190
- const N = v(!1);
191
- function D() {
192
- N.value = !N.value;
193
- }
194
- async function $e({ scale: t = 2 } = {}) {
195
- if (!C.value) return;
196
- const { width: l, height: a } = C.value.getBoundingClientRect(), o = l / a, { imageUri: _, base64: d } = await Ye({ domElement: C.value, base64: !0, img: !0, scale: t });
197
- return {
198
- imageUri: _,
199
- base64: d,
200
- title: e.value.style.chart.title.text,
201
- width: l,
202
- height: a,
203
- aspectRatio: o
204
- };
205
- }
206
- return ye({
207
- getImage: $e,
208
- generatePdf: ae,
209
- generateImage: le,
210
- toggleAnnotator: D,
211
- toggleFullscreen: ue
212
- }), (t, l) => (r(), u("div", {
213
- ref_key: "tiremarksChart",
214
- ref: C,
215
- class: X(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
216
- style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
217
- id: L.value,
218
- onMouseenter: l[0] || (l[0] = () => s(K)(!0)),
219
- onMouseleave: l[1] || (l[1] = () => s(K)(!1))
220
- }, [
221
- e.value.userOptions.buttons.annotator ? (r(), R(s(ge), {
222
- key: 0,
223
- svgRef: s(Z),
224
- backgroundColor: e.value.style.chart.backgroundColor,
225
- color: e.value.style.chart.color,
226
- active: N.value,
227
- onClose: D
228
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
229
- Ce.value ? (r(), u("div", {
230
- key: 1,
231
- ref_key: "noTitle",
232
- ref: we,
233
- class: "vue-data-ui-no-title-space",
234
- style: "height:36px; width: 100%;background:transparent"
235
- }, null, 512)) : g("", !0),
236
- e.value.style.chart.title.text ? (r(), u("div", {
237
- key: 2,
238
- ref_key: "chartTitle",
239
- ref: q,
240
- style: "width:100%;background:transparent;padding-bottom:12px"
241
- }, [
242
- (r(), R(Ve, {
243
- key: `title_${W.value}`,
244
- config: {
245
- title: {
246
- cy: "wheel-title",
247
- ...e.value.style.chart.title
248
- },
249
- subtitle: {
250
- cy: "wheel-subtitle",
251
- ...e.value.style.chart.title.subtitle
252
- }
253
- }
254
- }, null, 8, ["config"]))
255
- ], 512)) : g("", !0),
256
- e.value.userOptions.show && be.value && (s(Q) || s(B)) ? (r(), R(s(pe), {
257
- ref: "details",
258
- key: `user_options_${Y.value}`,
259
- backgroundColor: e.value.style.chart.backgroundColor,
260
- color: e.value.style.chart.color,
261
- isPrinting: s(ee),
262
- isImaging: s(te),
263
- uid: L.value,
264
- hasPdf: e.value.userOptions.buttons.pdf,
265
- hasImg: e.value.userOptions.buttons.img,
266
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
267
- hasXls: !1,
268
- isFullscreen: T.value,
269
- titles: { ...e.value.userOptions.buttonTitles },
270
- chartElement: C.value,
271
- position: e.value.userOptions.position,
272
- hasAnnotator: e.value.userOptions.buttons.annotator,
273
- isAnnotation: N.value,
274
- callbacks: e.value.userOptions.callbacks,
275
- printScale: e.value.userOptions.print.scale,
276
- onToggleFullscreen: ue,
277
- onGeneratePdf: s(ae),
278
- onGenerateImage: s(le),
279
- onToggleAnnotator: D,
280
- style: j({
281
- visibility: s(Q) ? s(B) ? "visible" : "hidden" : "visible"
282
- })
283
- }, Oe({ _: 2 }, [
284
- t.$slots.menuIcon ? {
285
- name: "menuIcon",
286
- fn: O(({ isOpen: a, color: o }) => [
287
- p(t.$slots, "menuIcon", M(E({ isOpen: a, color: o })), void 0, !0)
288
- ]),
289
- key: "0"
290
- } : void 0,
291
- t.$slots.optionPdf ? {
292
- name: "optionPdf",
293
- fn: O(() => [
294
- p(t.$slots, "optionPdf", {}, void 0, !0)
295
- ]),
296
- key: "1"
297
- } : void 0,
298
- t.$slots.optionImg ? {
299
- name: "optionImg",
300
- fn: O(() => [
301
- p(t.$slots, "optionImg", {}, void 0, !0)
302
- ]),
303
- key: "2"
304
- } : void 0,
305
- t.$slots.optionFullscreen ? {
306
- name: "optionFullscreen",
307
- fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
308
- p(t.$slots, "optionFullscreen", M(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
309
- ]),
310
- key: "3"
311
- } : void 0,
312
- t.$slots.optionAnnotator ? {
313
- name: "optionAnnotator",
314
- fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
315
- p(t.$slots, "optionAnnotator", M(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
316
- ]),
317
- key: "4"
318
- } : void 0
319
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
320
- (r(), u("svg", {
321
- ref_key: "svgRef",
322
- ref: Z,
323
- xmlns: s(Re),
324
- class: X({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
325
- viewBox: `0 0 ${S.value} ${F.value}`,
326
- style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
327
- }, [
328
- Pe(s(me)),
329
- t.$slots["chart-background"] ? (r(), u("foreignObject", {
330
- key: 0,
331
- x: 0,
332
- y: 0,
333
- width: n.value.width,
334
- height: n.value.height,
335
- style: {
336
- pointerEvents: "none"
337
- }
338
- }, [
339
- p(t.$slots, "chart-background", {}, void 0, !0)
340
- ], 8, Qe)) : g("", !0),
341
- e.value.style.chart.layout.curved ? (r(), u("g", Ze, [
342
- (r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("path", {
343
- d: a.curve,
344
- "stroke-width": h.value.mark,
345
- stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
346
- "stroke-linecap": "round",
347
- fill: "none",
348
- class: X({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= i.value })
349
- }, null, 10, et))), 256))
350
- ])) : (r(), u("g", tt, [
351
- (r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("line", {
352
- x1: a.x1,
353
- y1: a.y1,
354
- x2: a.x2,
355
- y2: a.y2,
356
- "stroke-width": h.value.mark,
357
- stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
358
- "stroke-linecap": "round"
359
- }, null, 8, at))), 256))
360
- ])),
361
- e.value.style.chart.percentage.show ? (r(), u("g", lt, [
362
- s(J) ? (r(), u("rect", {
363
- key: 0,
364
- x: ne.value.x,
365
- y: ne.value.y,
366
- width: 40,
367
- height: y.value.fontSize,
368
- fill: "#6A6A6A80",
369
- rx: 3
370
- }, null, 8, ot)) : (r(), u("text", {
371
- key: 1,
372
- x: y.value.x,
373
- y: y.value.y,
374
- "font-size": y.value.fontSize,
375
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(he)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
376
- "font-weight": y.value.bold ? "bold" : "normal",
377
- "text-anchor": y.value.textAnchor
378
- }, Ie(s(Me)(
379
- e.value.style.chart.percentage.formatter,
380
- i.value,
381
- s(Ee)({
382
- v: i.value,
383
- s: "%",
384
- r: e.value.style.chart.percentage.rounding
385
- })
386
- )), 9, st))
387
- ])) : g("", !0),
388
- p(t.$slots, "svg", { svg: n.value }, void 0, !0)
389
- ], 14, Ke)),
390
- t.$slots.watermark ? (r(), u("div", nt, [
391
- p(t.$slots, "watermark", M(E({ isPrinting: s(ee) || s(te) })), void 0, !0)
392
- ])) : g("", !0),
393
- t.$slots.source ? (r(), u("div", {
394
- key: 5,
395
- ref_key: "source",
396
- ref: V,
397
- dir: "auto"
398
- }, [
399
- p(t.$slots, "source", {}, void 0, !0)
400
- ], 512)) : g("", !0),
401
- s(J) ? (r(), R(De, { key: 6 })) : g("", !0)
402
- ], 46, Je));
403
- }
404
- }, bt = /* @__PURE__ */ We(rt, [["__scopeId", "data-v-137308f5"]]);
405
- export {
406
- bt as default
407
- };