vue-data-ui 3.2.0 → 3.2.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 (155) hide show
  1. package/dist/{Arrow-cyyFTTnm.js → Arrow-BWqgcDpl.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Bf6A6G_f.js → BaseDraggableDialog-Cg4ZF9cb.js} +2 -2
  3. package/dist/{BaseIcon-D2f9w5Z5.js → BaseIcon-e63bhLIi.js} +1 -1
  4. package/dist/{ColorPicker-gaAecgEC.js → ColorPicker-BO4ntExI.js} +2 -2
  5. package/dist/{DataTable-xISHA7Pu.js → DataTable-dv6G7Krn.js} +10 -10
  6. package/dist/{Legend-_Rv594VS.js → Legend-CVcdvTLM.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DiM4-9ju.js → NonSvgPenAndPaper-DSmotL8i.js} +3 -3
  8. package/dist/{PackageVersion-D242JXMq.js → PackageVersion-C3Vg-vTM.js} +1 -1
  9. package/dist/{PenAndPaper-CtDMyIvW.js → PenAndPaper-CplrzuG7.js} +3 -3
  10. package/dist/{Shape-BDy56-wS.js → Shape-D_vfF7sk.js} +1 -1
  11. package/dist/{Slicer-BgpOhmb6.js → Slicer-BO2wNLcR.js} +121 -121
  12. package/dist/{SparkTooltip-DOFGBHJ-.js → SparkTooltip-B82G5-BO.js} +1 -1
  13. package/dist/{Title-pI68ZJsq.js → Title-DlqxaiIs.js} +1 -1
  14. package/dist/{Tooltip-Clf2K3CF.js → Tooltip-BKqK7z38.js} +1 -1
  15. package/dist/{UserOptions-Bn3u4JQu.js → UserOptions-C9IFsUt0.js} +2 -2
  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-bullet.js +1 -1
  21. package/dist/components/vue-ui-candlestick.js +1 -1
  22. package/dist/components/vue-ui-carousel-table.js +1 -1
  23. package/dist/components/vue-ui-chestnut.js +1 -1
  24. package/dist/components/vue-ui-chord.js +1 -1
  25. package/dist/components/vue-ui-circle-pack.js +1 -1
  26. package/dist/components/vue-ui-cursor.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-strip-plot.js +1 -1
  66. package/dist/components/vue-ui-table-heatmap.js +1 -1
  67. package/dist/components/vue-ui-table-sparkline.js +1 -1
  68. package/dist/components/vue-ui-table.js +1 -1
  69. package/dist/components/vue-ui-thermometer.js +1 -1
  70. package/dist/components/vue-ui-timer.js +1 -1
  71. package/dist/components/vue-ui-tiremarks.js +1 -1
  72. package/dist/components/vue-ui-treemap.js +1 -1
  73. package/dist/components/vue-ui-vertical-bar.js +1 -1
  74. package/dist/components/vue-ui-waffle.js +1 -1
  75. package/dist/components/vue-ui-wheel.js +1 -1
  76. package/dist/components/vue-ui-word-cloud.js +1 -1
  77. package/dist/components/vue-ui-world.js +1 -1
  78. package/dist/components/vue-ui-xy-canvas.js +1 -1
  79. package/dist/components/vue-ui-xy.js +1 -1
  80. package/dist/{dom-to-png-CSg_eTqL.js → dom-to-png-1edcjS0-.js} +1 -1
  81. package/dist/{img-CH7J0fYg.js → img-A48JwXxj.js} +1 -1
  82. package/dist/{lib-p5pfHmOX.js → lib-CDp2KgIU.js} +345 -362
  83. package/dist/{pdf-Wd2BQz4D.js → pdf-BZV8MuXM.js} +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/types/vue-data-ui.d.ts +21 -0
  86. package/dist/{useAutoSizeLabelsInsideViewbox-VqESrzQg.js → useAutoSizeLabelsInsideViewbox-C2IsrQqi.js} +1 -1
  87. package/dist/{useNestedProp-DF7e2h1z.js → useNestedProp-Cwtenuui.js} +56 -31
  88. package/dist/{usePrinter-Yeu5jOfm.js → usePrinter-DU_Pi3Rq.js} +2 -2
  89. package/dist/{vue-data-ui-BQ0WHd6H.js → vue-data-ui-BHJOTOQY.js} +64 -64
  90. package/dist/vue-data-ui.js +68 -68
  91. package/dist/{vue-ui-3d-bar-BNRehnyF.js → vue-ui-3d-bar-rxghnZJO.js} +6 -6
  92. package/dist/{vue-ui-accordion-D-L73-T2.js → vue-ui-accordion-BWnxgda4.js} +4 -4
  93. package/dist/{vue-ui-age-pyramid-TVT4PaCQ.js → vue-ui-age-pyramid-gT_SnI-F.js} +6 -6
  94. package/dist/{vue-ui-annotator-SoAGIAm-.js → vue-ui-annotator-BkHDHfHG.js} +3 -3
  95. package/dist/{vue-ui-bullet-BQ47U1fM.js → vue-ui-bullet-DREbhLhy.js} +7 -7
  96. package/dist/{vue-ui-candlestick-DxqNj65Y.js → vue-ui-candlestick-D4P15Ci1.js} +7 -7
  97. package/dist/{vue-ui-carousel-table-DCenp2Yb.js → vue-ui-carousel-table-C24KX4gd.js} +4 -4
  98. package/dist/{vue-ui-chestnut-CvaTK5g0.js → vue-ui-chestnut-BbQknrj0.js} +6 -6
  99. package/dist/{vue-ui-chord-BtFHfEyn.js → vue-ui-chord-BM4_D9kI.js} +9 -9
  100. package/dist/{vue-ui-circle-pack-CbwDKath.js → vue-ui-circle-pack-S4Asc9CS.js} +8 -8
  101. package/dist/{vue-ui-cursor-0muOlHSh.js → vue-ui-cursor-F9MXsQ1K.js} +2 -2
  102. package/dist/{vue-ui-dashboard-BWXIq06l.js → vue-ui-dashboard-D6LHLdFS.js} +69 -69
  103. package/dist/{vue-ui-digits-DOUNtmB0.js → vue-ui-digits-B_8VzLOS.js} +2 -2
  104. package/dist/{vue-ui-donut-75agsMef.js → vue-ui-donut-B7T8_tP1.js} +8 -8
  105. package/dist/{vue-ui-donut-evolution-DCCu-tXT.js → vue-ui-donut-evolution-DOn-7PnK.js} +8 -8
  106. package/dist/{vue-ui-dumbbell-7FKgJlQt.js → vue-ui-dumbbell-Ch66pFUG.js} +7 -7
  107. package/dist/{vue-ui-flow-CshaNTgP.js → vue-ui-flow-DPcsRLJJ.js} +7 -7
  108. package/dist/{vue-ui-funnel-Xnd-FRVA.js → vue-ui-funnel-BdcKoacQ.js} +7 -7
  109. package/dist/{vue-ui-galaxy-D-MU1xl4.js → vue-ui-galaxy-D3c-O1Op.js} +7 -7
  110. package/dist/{vue-ui-gauge-NVrFlPvW.js → vue-ui-gauge-D1zbKzZQ.js} +7 -7
  111. package/dist/{vue-ui-gizmo-zIjavyoS.js → vue-ui-gizmo-CcrANrSX.js} +3 -3
  112. package/dist/{vue-ui-heatmap-GDVWtrn6.js → vue-ui-heatmap-CcvV9Y14.js} +8 -8
  113. package/dist/{vue-ui-history-plot-CxvcqVQY.js → vue-ui-history-plot-a0mLhd0L.js} +7 -7
  114. package/dist/{vue-ui-kpi-D7zdt7-g.js → vue-ui-kpi-BwUpplcm.js} +3 -3
  115. package/dist/{vue-ui-mini-loader-CteWqKM_.js → vue-ui-mini-loader-DBPZOqZA.js} +5 -5
  116. package/dist/{vue-ui-molecule-CMn9ItPU.js → vue-ui-molecule-xsgartoC.js} +6 -6
  117. package/dist/{vue-ui-mood-radar-ClnWru9n.js → vue-ui-mood-radar-kl2d5QsL.js} +7 -7
  118. package/dist/{vue-ui-nested-donuts-DFljgD4E.js → vue-ui-nested-donuts-D9I8_VnP.js} +7 -7
  119. package/dist/{vue-ui-onion-ynotjz5X.js → vue-ui-onion-BlxsHavW.js} +8 -8
  120. package/dist/{vue-ui-parallel-coordinate-plot-BS18TbxC.js → vue-ui-parallel-coordinate-plot-DHH6lrbW.js} +8 -8
  121. package/dist/{vue-ui-quadrant-DB5bt4Dh.js → vue-ui-quadrant-DyIQZUPC.js} +8 -8
  122. package/dist/vue-ui-quick-chart-Jfr_Ezh9.js +1892 -0
  123. package/dist/{vue-ui-radar-BfDvRRdJ.js → vue-ui-radar-BL_dJV12.js} +8 -8
  124. package/dist/{vue-ui-rating-CjoKP6-5.js → vue-ui-rating-LiragGSU.js} +2 -2
  125. package/dist/{vue-ui-relation-circle-B_j9qaV-.js → vue-ui-relation-circle-BrR2W_6V.js} +10 -10
  126. package/dist/{vue-ui-ridgeline-COAKNQNn.js → vue-ui-ridgeline-CpaOYplC.js} +8 -8
  127. package/dist/{vue-ui-rings-ViCuX090.js → vue-ui-rings-B9TGOwFE.js} +8 -8
  128. package/dist/{vue-ui-scatter-DjtrlQMV.js → vue-ui-scatter-Bq4pSRu_.js} +9 -9
  129. package/dist/{vue-ui-skeleton-C7lk4qZ8.js → vue-ui-skeleton-BlVnOk2o.js} +3 -3
  130. package/dist/{vue-ui-smiley-YRRY-yQp.js → vue-ui-smiley-DyP9gKYe.js} +2 -2
  131. package/dist/{vue-ui-spark-trend-D2rL-IrB.js → vue-ui-spark-trend-Pvdqnqia.js} +3 -3
  132. package/dist/{vue-ui-sparkbar-BImswCmL.js → vue-ui-sparkbar-DF6eDrxt.js} +3 -3
  133. package/dist/{vue-ui-sparkgauge-CLS4sHGH.js → vue-ui-sparkgauge-BR7oFSSF.js} +3 -3
  134. package/dist/{vue-ui-sparkhistogram-DLcoy-5J.js → vue-ui-sparkhistogram-CkOGqy2h.js} +4 -4
  135. package/dist/{vue-ui-sparkline-BlwZF98N.js → vue-ui-sparkline-DF8bLc-F.js} +3 -3
  136. package/dist/{vue-ui-sparkstackbar-CvlfgjY3.js → vue-ui-sparkstackbar-DMkn-0FV.js} +3 -3
  137. package/dist/{vue-ui-stackbar-JbGg5vfh.js → vue-ui-stackbar-CUXktGA-.js} +9 -9
  138. package/dist/{vue-ui-strip-plot-67B5-og6.js → vue-ui-strip-plot-ibdxtil6.js} +7 -7
  139. package/dist/{vue-ui-table-DP7udYk-.js → vue-ui-table-BocHahKB.js} +194 -154
  140. package/dist/{vue-ui-table-heatmap-iu6l-6rW.js → vue-ui-table-heatmap-B03YDYck.js} +6 -6
  141. package/dist/{vue-ui-table-sparkline-kJAE3iUQ.js → vue-ui-table-sparkline-8mOvfeTL.js} +5 -5
  142. package/dist/{vue-ui-thermometer-C_7z6ba0.js → vue-ui-thermometer-Dq_nJLiU.js} +10 -10
  143. package/dist/{vue-ui-timer-BKHZtzRY.js → vue-ui-timer-BLveMseW.js} +5 -5
  144. package/dist/{vue-ui-tiremarks-CCLFPY-g.js → vue-ui-tiremarks-DMG1_YzV.js} +6 -6
  145. package/dist/{vue-ui-treemap-Dw1ygcf6.js → vue-ui-treemap-io-J9w5R.js} +8 -8
  146. package/dist/{vue-ui-vertical-bar-pLRJQ6-o.js → vue-ui-vertical-bar-DqnTF6h2.js} +10 -10
  147. package/dist/{vue-ui-waffle-XFGV0gsS.js → vue-ui-waffle-X9DHHqlw.js} +8 -8
  148. package/dist/vue-ui-wheel-BLBwVpV8.js +620 -0
  149. package/dist/{vue-ui-word-cloud-Czs95I-E.js → vue-ui-word-cloud-0GXQqY8G.js} +7 -7
  150. package/dist/{vue-ui-world-DTgxMNzP.js → vue-ui-world-5OHPVwxv.js} +6 -6
  151. package/dist/{vue-ui-xy-Cm3dbAmQ.js → vue-ui-xy-HW0T1CD8.js} +1164 -1086
  152. package/dist/{vue-ui-xy-canvas-Cwiu1ND7.js → vue-ui-xy-canvas-C4FbbXNQ.js} +10 -10
  153. package/package.json +3 -3
  154. package/dist/vue-ui-quick-chart-Coh62JYO.js +0 -1802
  155. package/dist/vue-ui-wheel-BI7-CsXF.js +0 -380
@@ -1,380 +0,0 @@
1
- import { defineAsyncComponent as N, computed as y, ref as v, toRefs as Ce, watch as ae, shallowRef as le, onMounted as Ae, onBeforeUnmount as _e, createElementBlock as c, openBlock as s, unref as l, normalizeStyle as R, createBlock as O, createCommentVNode as h, createSlots as Oe, withCtx as b, renderSlot as d, normalizeProps as I, guardReactiveProps as $, normalizeClass as U, createVNode as Ie, Fragment as ne, renderList as oe, toDisplayString as $e } from "vue";
2
- import { c as xe, t as Pe, o as Se, f as Fe, i as se, n as ze, X as Te, a as Me, q as ue, d as Ne } from "./lib-p5pfHmOX.js";
3
- import { t as Re, u as Ue } from "./useResponsive-DfdjqQps.js";
4
- import { u as Be, a as re } from "./useNestedProp-DF7e2h1z.js";
5
- import { u as Ee } from "./usePrinter-Yeu5jOfm.js";
6
- import { u as Le } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
8
- import { t as De } from "./themes-D3cUNuKw.js";
9
- import Ge from "./Title-pI68ZJsq.js";
10
- import Ye from "./img-CH7J0fYg.js";
11
- import { u as je, B as qe } from "./BaseScanner-BgWxam9d.js";
12
- import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const We = ["id"], Ve = ["xmlns", "viewBox"], Je = ["width", "height"], Ke = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Qe = ["d", "fill"], Ze = ["cx", "cy", "r", "stroke", "stroke-width"], et = { key: 4 }, tt = ["x", "y", "height"], at = ["x", "y", "font-size", "fill", "font-weight"], lt = {
14
- key: 4,
15
- class: "vue-data-ui-watermark"
16
- }, nt = {
17
- __name: "vue-ui-wheel",
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(ie, { expose: ce }) {
33
- const ve = N(() => import("./PenAndPaper-CtDMyIvW.js")), he = N(() => import("./UserOptions-Bn3u4JQu.js")), de = N(() => import("./PackageVersion-D242JXMq.js")), { vue_ui_wheel: fe } = Be(), g = ie, ye = y(() => !!g.dataset && Object.keys(g.dataset).length), x = v(xe()), ge = v(null), B = v(0), p = v(null), E = v(null), L = v(null), X = v(null), D = v(0), e = v(F()), { loading: G, FINAL_DATASET: P } = je({
34
- ...Ce(g),
35
- FINAL_CONFIG: e,
36
- prepareConfig: F,
37
- skeletonDataset: { percentage: 50 },
38
- skeletonConfig: Pe({
39
- defaultConfig: e.value,
40
- userConfig: {
41
- userOptions: { show: !1 },
42
- style: {
43
- chart: {
44
- backgroundColor: "#99999930",
45
- animation: { use: !1 },
46
- layout: {
47
- wheel: {
48
- ticks: {
49
- activeColor: "#6A6A6A80",
50
- inactiveColor: "#CACACA80"
51
- }
52
- },
53
- innerCircle: {
54
- stroke: "#CACACA80"
55
- }
56
- }
57
- }
58
- }
59
- }
60
- })
61
- }), { userOptionsVisible: S, setUserOptionsVisibility: Y, keepUserOptionState: j } = Le({ config: e.value }), { svgRef: q } = Xe({ config: e.value.style.chart.title });
62
- function F() {
63
- const t = re({
64
- userConfig: g.config,
65
- defaultConfig: fe
66
- });
67
- return t.theme ? {
68
- ...re({
69
- userConfig: De.vue_ui_wheel[t.theme] || g.config,
70
- defaultConfig: t
71
- })
72
- } : t;
73
- }
74
- ae(() => g.config, (t) => {
75
- e.value = F(), S.value = !e.value.userOptions.showOnChartHover, Q(), D.value += 1;
76
- }, { deep: !0 });
77
- const { isPrinting: H, isImaging: W, generatePdf: V, generateImage: J } = Ee({
78
- elementId: x.value,
79
- fileName: e.value.style.chart.title.text || "vue-ui-wheel",
80
- options: e.value.userOptions.print
81
- }), pe = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = v({
82
- size: 360,
83
- height: 360,
84
- width: 360
85
- }), k = v(e.value.style.chart.layout.percentage.fontSize), u = y(() => ({
86
- radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
87
- centerX: o.value.width / 2,
88
- centerY: o.value.height / 2
89
- }));
90
- function K(t, n = 1) {
91
- return {
92
- x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
93
- y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
94
- };
95
- }
96
- const i = v(e.value.style.chart.animation.use ? 0 : P.value.percentage || 0);
97
- ae(() => P.value, (t) => {
98
- e.value.style.chart.animation.use ? Z(t.percentage) : i.value = t.percentage || 0;
99
- }, { deep: !0 });
100
- const f = le(null), m = le(null);
101
- Ae(() => {
102
- Q();
103
- });
104
- const me = y(() => !!e.value.debug);
105
- function Q() {
106
- if (Se(g.dataset) && Fe({
107
- componentName: "VueUiWheel",
108
- type: "dataset",
109
- debug: me.value
110
- }), e.value.responsive) {
111
- const t = Re(() => {
112
- const { width: n, height: a } = Ue({
113
- chart: p.value,
114
- title: e.value.style.chart.title.text ? E.value : null,
115
- source: L.value,
116
- noTitle: X.value
117
- });
118
- requestAnimationFrame(() => {
119
- o.value.width = n, o.value.height = a, k.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
120
- });
121
- });
122
- f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect()), f.value = new ResizeObserver(t), m.value = p.value.parentNode, f.value.observe(m.value);
123
- }
124
- Z(P.value.percentage || 0);
125
- }
126
- _e(() => {
127
- f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect());
128
- });
129
- function Z(t) {
130
- let n = e.value.style.chart.animation.speed;
131
- const a = Math.abs(t - i.value) / (n * 120);
132
- function r() {
133
- 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(r);
134
- }
135
- r();
136
- }
137
- const w = y(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), C = y(() => 100 / w.value), ee = y(() => {
138
- const t = [];
139
- for (let n = 0; n < w.value; n += 1) {
140
- const a = i.value > n * C.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: r, y: T } = K(o.value.size / w.value * n), { x: M, y: be } = K(o.value.size / w.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
141
- t.push({
142
- x1: r,
143
- y1: T,
144
- x2: M,
145
- y2: be,
146
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? se(a, n * C.value / w.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
147
- });
148
- }
149
- return t;
150
- }), ke = y(() => ze({ series: ee.value.map((t) => ({
151
- name: "",
152
- value: 1,
153
- color: t.color
154
- })) }, u.value.centerX, u.value.centerY, u.value.radius, u.value.radius, 1.99999, 2, 1, 360, 105.25, u.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), A = v(!1);
155
- function te(t) {
156
- A.value = t, B.value += 1;
157
- }
158
- const _ = v(!1);
159
- function z() {
160
- _.value = !_.value;
161
- }
162
- async function we({ scale: t = 2 } = {}) {
163
- if (!p.value) return;
164
- const { width: n, height: a } = p.value.getBoundingClientRect(), r = n / a, { imageUri: T, base64: M } = await Ye({ domElement: p.value, base64: !0, img: !0, scale: t });
165
- return {
166
- imageUri: T,
167
- base64: M,
168
- title: e.value.style.chart.title.text,
169
- width: n,
170
- height: a,
171
- aspectRatio: r
172
- };
173
- }
174
- return ce({
175
- getImage: we,
176
- generatePdf: V,
177
- generateImage: J,
178
- toggleAnnotator: z,
179
- toggleFullscreen: te
180
- }), (t, n) => (s(), c("div", {
181
- class: "vue-ui-wheel",
182
- ref_key: "wheelChart",
183
- ref: p,
184
- id: x.value,
185
- style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
186
- onMouseenter: n[0] || (n[0] = () => l(Y)(!0)),
187
- onMouseleave: n[1] || (n[1] = () => l(Y)(!1))
188
- }, [
189
- e.value.userOptions.buttons.annotator ? (s(), O(l(ve), {
190
- key: 0,
191
- svgRef: l(q),
192
- backgroundColor: e.value.style.chart.backgroundColor,
193
- color: e.value.style.chart.color,
194
- active: _.value,
195
- onClose: z
196
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
197
- pe.value ? (s(), c("div", {
198
- key: 1,
199
- ref_key: "noTitle",
200
- ref: X,
201
- class: "vue-data-ui-no-title-space",
202
- style: "height:36px; width: 100%;background:transparent"
203
- }, null, 512)) : h("", !0),
204
- e.value.style.chart.title.text ? (s(), c("div", {
205
- key: 2,
206
- ref_key: "chartTitle",
207
- ref: E,
208
- style: "width:100%;background:transparent;padding-bottom:12px"
209
- }, [
210
- (s(), O(Ge, {
211
- key: `title_${D.value}`,
212
- config: {
213
- title: {
214
- cy: "wheel-title",
215
- ...e.value.style.chart.title
216
- },
217
- subtitle: {
218
- cy: "wheel-subtitle",
219
- ...e.value.style.chart.title.subtitle
220
- }
221
- }
222
- }, null, 8, ["config"]))
223
- ], 512)) : h("", !0),
224
- e.value.userOptions.show && ye.value && (l(j) || l(S)) ? (s(), O(l(he), {
225
- ref_key: "details",
226
- ref: ge,
227
- key: `user_options_${B.value}`,
228
- backgroundColor: e.value.style.chart.backgroundColor,
229
- color: e.value.style.chart.color,
230
- isPrinting: l(H),
231
- isImaging: l(W),
232
- uid: x.value,
233
- hasPdf: e.value.userOptions.buttons.pdf,
234
- hasImg: e.value.userOptions.buttons.img,
235
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
236
- hasXls: !1,
237
- isFullscreen: A.value,
238
- position: e.value.userOptions.position,
239
- titles: { ...e.value.userOptions.buttonTitles },
240
- hasAnnotator: e.value.userOptions.buttons.annotator,
241
- isAnnotation: _.value,
242
- chartElement: p.value,
243
- callbacks: e.value.userOptions.callbacks,
244
- printScale: e.value.userOptions.print.scale,
245
- onToggleFullscreen: te,
246
- onGeneratePdf: l(V),
247
- onGenerateImage: l(J),
248
- onToggleAnnotator: z,
249
- style: R({
250
- visibility: l(j) ? l(S) ? "visible" : "hidden" : "visible"
251
- })
252
- }, Oe({ _: 2 }, [
253
- t.$slots.menuIcon ? {
254
- name: "menuIcon",
255
- fn: b(({ isOpen: a, color: r }) => [
256
- d(t.$slots, "menuIcon", I($({ isOpen: a, color: r })), void 0, !0)
257
- ]),
258
- key: "0"
259
- } : void 0,
260
- t.$slots.optionPdf ? {
261
- name: "optionPdf",
262
- fn: b(() => [
263
- d(t.$slots, "optionPdf", {}, void 0, !0)
264
- ]),
265
- key: "1"
266
- } : void 0,
267
- t.$slots.optionImg ? {
268
- name: "optionImg",
269
- fn: b(() => [
270
- d(t.$slots, "optionImg", {}, void 0, !0)
271
- ]),
272
- key: "2"
273
- } : void 0,
274
- t.$slots.optionFullscreen ? {
275
- name: "optionFullscreen",
276
- fn: b(({ toggleFullscreen: a, isFullscreen: r }) => [
277
- d(t.$slots, "optionFullscreen", I($({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
278
- ]),
279
- key: "3"
280
- } : void 0,
281
- t.$slots.optionAnnotator ? {
282
- name: "optionAnnotator",
283
- fn: b(({ toggleAnnotator: a, isAnnotator: r }) => [
284
- d(t.$slots, "optionAnnotator", I($({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
285
- ]),
286
- key: "4"
287
- } : void 0
288
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
289
- (s(), c("svg", {
290
- ref_key: "svgRef",
291
- ref: q,
292
- xmlns: l(Te),
293
- class: U({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
294
- viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
295
- style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
296
- }, [
297
- Ie(l(de)),
298
- t.$slots["chart-background"] ? (s(), c("foreignObject", {
299
- key: 0,
300
- x: 0,
301
- y: 0,
302
- width: o.value.width <= 0 ? 10 : o.value.width,
303
- height: o.value.height <= 0 ? 10 : o.value.height,
304
- style: {
305
- pointerEvents: "none"
306
- }
307
- }, [
308
- d(t.$slots, "chart-background", {}, void 0, !0)
309
- ], 8, Je)) : h("", !0),
310
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), c(ne, { key: 1 }, oe(ee.value, (a, r) => (s(), c("line", {
311
- x1: a.x1,
312
- x2: a.x2,
313
- y1: a.y1,
314
- y2: a.y2,
315
- stroke: a.color,
316
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
317
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
318
- class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use && r * C.value <= i.value })
319
- }, null, 10, Ke))), 256)) : (s(!0), c(ne, { key: 2 }, oe(ke.value, (a, r) => (s(), c("path", {
320
- d: a.arcSlice,
321
- fill: a.color,
322
- class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use && r * C.value <= i.value })
323
- }, null, 10, Qe))), 256)),
324
- e.value.style.chart.layout.innerCircle.show ? (s(), c("circle", {
325
- key: 3,
326
- cx: u.value.centerX,
327
- cy: u.value.centerY,
328
- r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
329
- stroke: e.value.style.chart.layout.innerCircle.stroke,
330
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
331
- fill: "none"
332
- }, null, 8, Ze)) : h("", !0),
333
- e.value.style.chart.layout.percentage.show ? (s(), c("g", et, [
334
- l(G) ? (s(), c("rect", {
335
- key: 0,
336
- x: u.value.centerX - 40,
337
- y: u.value.centerY - k.value / 2,
338
- width: 80,
339
- height: k.value,
340
- fill: "#6A6A6A80",
341
- rx: "3"
342
- }, null, 8, tt)) : (s(), c("text", {
343
- key: 1,
344
- x: u.value.centerX,
345
- y: u.value.centerY + k.value / 3,
346
- "font-size": k.value,
347
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(se)(e.value.style.chart.layout.wheel.ticks.activeColor, i.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
348
- "text-anchor": "middle",
349
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
350
- style: { "font-variant-numeric": "tabluar-nums" }
351
- }, $e(l(Me)(
352
- e.value.style.chart.layout.percentage.formatter,
353
- l(ue)(i.value),
354
- l(Ne)({
355
- v: l(ue)(i.value),
356
- s: "%",
357
- r: e.value.style.chart.layout.percentage.rounding
358
- })
359
- )), 9, at))
360
- ])) : h("", !0),
361
- d(t.$slots, "svg", { svg: o.value }, void 0, !0)
362
- ], 14, Ve)),
363
- t.$slots.watermark ? (s(), c("div", lt, [
364
- d(t.$slots, "watermark", I($({ isPrinting: l(H) || l(W) })), void 0, !0)
365
- ])) : h("", !0),
366
- t.$slots.source ? (s(), c("div", {
367
- key: 5,
368
- ref_key: "source",
369
- ref: L,
370
- dir: "auto"
371
- }, [
372
- d(t.$slots, "source", {}, void 0, !0)
373
- ], 512)) : h("", !0),
374
- l(G) ? (s(), O(qe, { key: 6 })) : h("", !0)
375
- ], 44, We));
376
- }
377
- }, pt = /* @__PURE__ */ He(nt, [["__scopeId", "data-v-11683b00"]]);
378
- export {
379
- pt as default
380
- };