vue-data-ui 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/Arrow-B6gJebT9.js +101 -0
  2. package/dist/Arrow-C5yj6zwY.cjs +1 -0
  3. package/dist/BaseIcon-7_g11dRj.js +174 -0
  4. package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
  5. package/dist/DataTable-CwaOlAsy.js +127 -0
  6. package/dist/DataTable-Rm9II-m2.cjs +1 -0
  7. package/dist/Legend-CxvJTjEm.js +62 -0
  8. package/dist/Legend-D59FIuMs.cjs +1 -0
  9. package/dist/Shape-CVItL3vh.cjs +1 -0
  10. package/dist/Shape-CjLV0scA.js +107 -0
  11. package/dist/Slicer-Bxg5niHl.js +156 -0
  12. package/dist/Slicer-Cdss5Rus.cjs +1 -0
  13. package/dist/Title-2iks1ziC.js +46 -0
  14. package/dist/Title-Bb-A5OSV.cjs +1 -0
  15. package/dist/Tooltip-C3phqKuU.js +94 -0
  16. package/dist/Tooltip-C_UE6y-E.cjs +1 -0
  17. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  18. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  19. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  20. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  21. package/dist/index-p5gfZSvB.cjs +4 -0
  22. package/dist/index-uOtklCCx.js +10268 -0
  23. package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
  24. package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
  25. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  26. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  27. package/dist/pdf-97UbtKC2.js +44 -0
  28. package/dist/pdf-Cz3729tZ.cjs +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/useNestedProp-2kIU-7On.cjs +1 -0
  31. package/dist/useNestedProp-BgWkUab_.js +13 -0
  32. package/dist/usePrinter-B6xQCyL-.js +464 -0
  33. package/dist/usePrinter-fZlsJid8.cjs +1 -0
  34. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  35. package/dist/useResponsive-NZB-WLRF.js +187 -0
  36. package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
  37. package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +62 -61
  40. package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
  41. package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
  42. package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
  43. package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
  44. package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
  45. package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
  46. package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
  47. package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
  48. package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
  49. package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
  50. package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
  51. package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
  52. package/dist/vue-ui-cursor-C96IChA3.js +229 -0
  53. package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
  54. package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
  55. package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
  56. package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
  57. package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
  58. package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
  59. package/dist/vue-ui-donut-B9iXisHK.js +743 -0
  60. package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
  61. package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
  62. package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
  63. package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
  64. package/dist/vue-ui-flow-BTivYoGd.js +454 -0
  65. package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
  66. package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
  67. package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
  68. package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
  69. package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
  70. package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
  71. package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
  72. package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
  73. package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
  74. package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
  75. package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
  76. package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
  77. package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
  78. package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
  80. package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
  81. package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
  82. package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
  83. package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
  84. package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
  85. package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
  86. package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
  87. package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
  88. package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
  89. package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
  90. package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
  91. package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
  92. package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
  93. package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
  94. package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
  95. package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
  96. package/dist/vue-ui-rings-CsUngX_F.js +510 -0
  97. package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
  98. package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
  99. package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
  100. package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
  101. package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
  102. package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
  103. package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
  104. package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
  105. package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
  106. package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
  107. package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
  108. package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
  109. package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
  110. package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
  111. package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
  112. package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
  113. package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
  114. package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
  115. package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
  116. package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
  117. package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
  118. package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
  119. package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
  120. package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
  121. package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
  122. package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
  124. package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
  125. package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
  126. package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
  127. package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
  128. package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
  129. package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
  130. package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
  131. package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
  132. package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
  133. package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
  134. package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
  135. package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
  136. package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
  137. package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
  138. package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
  139. package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
  140. package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
  141. package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
  142. package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
  143. package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
  144. package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
  145. package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
  146. package/package.json +1 -1
  147. package/dist/index-C6KVJkgd.cjs +0 -843
  148. package/dist/index-bDBuMYfe.js +0 -57303
@@ -0,0 +1,153 @@
1
+ import { ref as k, computed as d, openBlock as $, createElementBlock as i, Fragment as o, createElementVNode as l, createCommentVNode as m, unref as v, normalizeStyle as C, renderList as b, createBlock as N } from "vue";
2
+ import { u as q } from "./useNestedProp-BgWkUab_.js";
3
+ import { u as M, X as S } from "./index-uOtklCCx.js";
4
+ const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
5
+ __name: "Digit",
6
+ props: {
7
+ quanta: {
8
+ type: String,
9
+ default: null
10
+ },
11
+ backgroundColor: {
12
+ type: String,
13
+ default: "#e1e5e8"
14
+ },
15
+ color: {
16
+ type: String,
17
+ default: "#000000"
18
+ },
19
+ // coordinates from top left of a
20
+ x: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ y: {
25
+ type: Number,
26
+ default: 0
27
+ }
28
+ },
29
+ setup(e) {
30
+ const u = e, c = k({
31
+ /**
32
+ * clockwise from top (last: g)
33
+ * a
34
+ * ----
35
+ * f | | b
36
+ * ----
37
+ * e | g | c
38
+ * ----
39
+ * d
40
+ */
41
+ 0: "1111110",
42
+ 1: "0110000",
43
+ 2: "1101101",
44
+ 3: "1111001",
45
+ 4: "0110011",
46
+ 5: "1011011",
47
+ 6: "1011111",
48
+ 7: "1110000",
49
+ 8: "1111111",
50
+ 9: "1111011",
51
+ "-": "0000001",
52
+ X: "0000000"
53
+ }), t = d(() => [void 0, null].includes(u.quanta) ? c.value.X : c.value[u.quanta]);
54
+ return (y, g) => ($(), i(o, null, [
55
+ [void 0, null, "."].includes(e.quanta) ? m("", !0) : ($(), i("g", w, [
56
+ l("path", {
57
+ d: `M ${e.x} ${e.y} L ${e.x + 2} ${e.y - 2} L ${e.x + 24} ${e.y - 2} L ${e.x + 26} ${e.y} L ${e.x + 24} ${e.y + 2} L ${e.x + 2} ${e.y + 2}Z`,
58
+ fill: t.value[0] == 1 ? e.color : e.backgroundColor,
59
+ stroke: "none"
60
+ }, null, 8, B),
61
+ l("path", {
62
+ d: `M ${e.x + 26} ${e.y + 26} L ${e.x + 26} ${e.y + 4} L ${e.x + 28} ${e.y + 2} L ${e.x + 30} ${e.y + 4} L ${e.x + 30} ${e.y + 26} L ${e.x + 28} ${e.y + 28} L ${e.x + 26} ${e.y + 26}`,
63
+ fill: t.value[1] == 1 ? e.color : e.backgroundColor,
64
+ stroke: "none"
65
+ }, null, 8, F),
66
+ l("path", {
67
+ d: `M ${e.x + 26} ${e.y + 56} L ${e.x + 26} ${e.y + 34} L ${e.x + 28} ${e.y + 32} L ${e.x + 30} ${e.y + 34} L ${e.x + 30} ${e.y + 56} L ${e.x + 28} ${e.y + 58} L ${e.x + 26} ${e.y + 56}`,
68
+ fill: t.value[2] == 1 ? e.color : e.backgroundColor,
69
+ stroke: "none"
70
+ }, null, 8, X),
71
+ l("path", {
72
+ d: `M ${e.x + 2} ${e.y + 58} L ${e.x} ${e.y + 60} L ${e.x + 2} ${e.y + 62} L ${e.x + 24} ${e.y + 62} L ${e.x + 26} ${e.y + 60} L ${e.x + 24} ${e.y + 58} L ${e.x + 2} ${e.y + 58}`,
73
+ fill: t.value[3] == 1 ? e.color : e.backgroundColor,
74
+ stroke: "none"
75
+ }, null, 8, E),
76
+ l("path", {
77
+ d: `M ${e.x} ${e.y + 34} L ${e.x - 2} ${e.y + 32} L ${e.x - 4} ${e.y + 34} L ${e.x - 4} ${e.y + 56} L ${e.x - 2} ${e.y + 58} L ${e.x} ${e.y + 56} L ${e.x} ${e.y + 34}`,
78
+ fill: t.value[4] == 1 ? e.color : e.backgroundColor,
79
+ stroke: "none"
80
+ }, null, 8, I),
81
+ l("path", {
82
+ d: `M ${e.x - 2} ${e.y + 2} L ${e.x} ${e.y + 4} L ${e.x} ${e.y + 26} L ${e.x - 2} ${e.y + 28} L ${e.x - 4} ${e.y + 26} L ${e.x - 4} ${e.y + 4} L ${e.x - 2} ${e.y + 2}`,
83
+ fill: t.value[5] == 1 ? e.color : e.backgroundColor,
84
+ stroke: "none"
85
+ }, null, 8, O),
86
+ l("path", {
87
+ d: `M ${e.x + 2} ${e.y + 28} L ${e.x} ${e.y + 30} L ${e.x + 2} ${e.y + 32} L ${e.x + 24} ${e.y + 32} L ${e.x + 26} ${e.y + 30} L ${e.x + 24} ${e.y + 28} L ${e.x + 2} ${e.y + 28}`,
88
+ fill: t.value[6] == 1 ? e.color : e.backgroundColor,
89
+ stroke: "none"
90
+ }, null, 8, A)
91
+ ])),
92
+ e.quanta == "." ? ($(), i("g", D, [
93
+ l("circle", {
94
+ cx: e.x - 8,
95
+ cy: e.y + 60,
96
+ r: 3,
97
+ fill: e.color
98
+ }, null, 8, G)
99
+ ])) : m("", !0)
100
+ ], 64));
101
+ }
102
+ }, j = ["xmlns", "viewBox"], U = {
103
+ __name: "vue-ui-digits",
104
+ props: {
105
+ dataset: {
106
+ type: Number,
107
+ default: 0
108
+ },
109
+ config: {
110
+ type: Object,
111
+ default() {
112
+ return {};
113
+ }
114
+ }
115
+ },
116
+ setup(e) {
117
+ const u = e, { vue_ui_digits: c } = M(), t = d(() => q({
118
+ userConfig: u.config,
119
+ defaultConfig: c
120
+ })), y = d(() => {
121
+ const a = (u.dataset || 0).toString().split(""), x = [], n = {
122
+ x: 10,
123
+ y: 10
124
+ };
125
+ let L = 0;
126
+ for (let f = 0; f < a.length; f += 1) {
127
+ const h = a[f];
128
+ x.push({
129
+ x: n.x + L,
130
+ y: n.y,
131
+ quanta: h
132
+ }), h == "." ? L += 2 : L += 44;
133
+ }
134
+ return x;
135
+ }), g = d(() => Math.max(...y.value.map((a) => a.x)) + 36);
136
+ return (a, x) => ($(), i("svg", {
137
+ xmlns: v(S),
138
+ viewBox: `0 0 ${g.value} 80`,
139
+ style: C(`background:${t.value.backgroundColor};${t.value.height ? `height:${t.value.height};` : ""}${t.value.width ? `width:${t.value.width}` : ""}`)
140
+ }, [
141
+ ($(!0), i(o, null, b(y.value, (n) => ($(), N(V, {
142
+ x: n.x,
143
+ y: n.y,
144
+ quanta: n.quanta,
145
+ color: t.value.digits.color,
146
+ backgroundColor: t.value.digits.skeletonColor
147
+ }, null, 8, ["x", "y", "quanta", "color", "backgroundColor"]))), 256))
148
+ ], 12, j));
149
+ }
150
+ };
151
+ export {
152
+ U as default
153
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-2kIU-7On.cjs"),L=require("./index-p5gfZSvB.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-p5gfZSvB.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),pe=require("./Title-Bb-A5OSV.cjs"),oe=require("./usePrinter-fZlsJid8.cjs"),me=require("./DataTable-Rm9II-m2.cjs"),ge=require("./Tooltip-C_UE6y-E.cjs"),be=require("./Legend-D59FIuMs.cjs"),ke=require("./vue-ui-skeleton-sjfOtCZr.cjs"),we=require("./vue-ui-accordion-C_pwrAJl.cjs"),ae=require("./useNestedProp-2kIU-7On.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),xe=B=>(e.pushScopeId("data-v-a76ecc28"),B=B(),e.popScopeId(),B),_e=["id"],Be=["xmlns","viewBox"],Se=["id"],$e=["stop-color"],Ne=["stop-color"],Le=["stop-color"],Ee=["id"],Ve=["id"],Te=xe(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),ze=["id"],Oe=["flood-color"],Fe=["d","stroke","filter"],Me=["cx","cy","r","fill","filter"],Pe=["stroke","d"],De=["d","fill","stroke","stroke-width","filter"],Ie=["cx","cy","r","fill"],Xe=["d","fill","onMouseenter","onClick"],Ae=["cx","cy","r","fill"],qe=["x","y","fill","font-size"],Re=["x","y","fill","font-size"],Ge=["x","y","fill","font-size"],He=["x","y","fill","font-size"],Ue=["filter"],Ye={key:0},je=["x","y"],We={key:1},Je=["cx","cy","fill","filter","onClick"],Ke=["text-anchor","x","y","fill","font-size","onClick"],Qe=["text-anchor","x","y","fill","font-size","onClick"],Ze={key:2},et=["x","y","width"],tt=["onClick"],lt={key:0,style:{"font-variant-numeric":"tabular-nums"}},ot={key:1},at=["innerHTML"],rt={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:re,emit:D}){const y=B,{vue_ui_donut:ne}=a.useConfig(),S=e.computed({get(){return!!y.dataset&&y.dataset.length},set(l){return l}}),$=e.ref(null),I=e.ref(null),X=e.ref(null),E=e.ref(null);e.onMounted(()=>{if(a.objectIsEmpty(y.dataset)?a.error({componentName:"VueUiDonut",type:"dataset"}):y.dataset.forEach((l,r)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{S.value=!1,a.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:o,index:r})})}),t.value.responsive){const l=le.throttle(()=>{const{width:r,height:o}=le.useResponsive({chart:$.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?X.value:null});s.value.width=r,s.value.height=o});E.value=new ResizeObserver(l),E.value.observe($.value.parentNode)}}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});const h=e.ref(a.createUid()),ue=e.ref(null),z=e.ref(!1),O=e.ref(""),p=e.ref(null),A=e.ref(0),t=e.computed(()=>{const l=ae.useNestedProp({userConfig:y.config,defaultConfig:ne});return l.theme?{...ae.useNestedProp({userConfig:a.themes.vue_ui_donut[l.theme]||y.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}),{isPrinting:se,isImaging:ie,generatePdf:q,generateImage:R}=oe.usePrinter({elementId:`donut__${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),G=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:512}),N=e.computed(()=>{const l=t.value.style.chart.layout.donut.strokeWidth/512,r=s.value.width*l;return r>t.value.style.chart.layout.donut.strokeWidth?t.value.style.chart.layout.donut.strokeWidth:r}),g=e.computed(()=>y.dataset.map((l,r)=>({name:l.name,color:a.convertColorToHex(l.color)||G.value[r]||a.palette[r]||a.palette[r%a.palette.length],value:l.values.reduce((o,n)=>o+n,0),absoluteValues:l.values,comment:l.comment||""}))),v=e.ref(g.value);e.watch(()=>g.value,l=>v.value=l);function ce(){return g.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const f=e.ref([]),H=e.ref(null),U=e.ref(null),C=e.ref(!1);function Y(l){const r=g.value.find((u,i)=>i===l);let n=v.value.find((u,i)=>i===l).value;if(f.value.includes(l)){let i=function(){n>u?(cancelAnimationFrame(H.value),v.value=v.value.map((d,P)=>l===P?{...d,value:u}:d),C.value=!1):(C.value=!0,n+=u*.025,v.value=v.value.map((d,P)=>l===P?{...d,value:n}:d),H.value=requestAnimationFrame(i))};f.value=f.value.filter(d=>d!==l);const u=r.value;i()}else if(f.value.length<g.value.length-1){let u=function(){n<.1?(cancelAnimationFrame(U.value),f.value.push(l),v.value=v.value.map((i,d)=>l===d?{...i,value:0}:i),C.value=!1):(C.value=!0,n/=1.1,v.value=v.value.map((i,d)=>l===d?{...i,value:n}:i),U.value=requestAnimationFrame(u))};u()}D("selectLegend",x.value.map(u=>({name:u.name,color:u.color,value:u.value})))}const x=e.computed(()=>(v.value.forEach((l,r)=>{if([null,void 0].includes(l.values))return{...l,values:[]}}),v.value.map((l,r)=>({...l,seriesIndex:r})).filter((l,r)=>!f.value.includes(r)))),j=e.computed(()=>y.dataset.map((l,r)=>({name:l.name,color:a.convertColorToHex(l.color)||G.value[r]||a.palette[r]||a.palette[r%a.palette.length],value:(l.values||[]).reduce((o,n)=>o+n,0),shape:"circle"})).map((l,r)=>({...l,proportion:l.value/y.dataset.map(o=>(o.values||[]).reduce((n,u)=>n+u,0)).reduce((o,n)=>o+n,0),opacity:f.value.includes(r)?.5:1,segregate:()=>Y(r),isSegregated:f.value.includes(r)}))),de=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),b=e.computed(()=>{const l=Math.min(s.value.width/3,s.value.height/3);return l<55?55:l}),w=e.computed(()=>a.makeDonut({series:x.value},s.value.width/2,s.value.height/2,b.value,b.value,1.99999,2,1,360,105.25,N.value));function _(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function W(l,r){return isNaN(l.value/J(r))?0:(l.value/J(r)*100).toFixed(0)+"%"}function J(l){return[...l].map(r=>r.value).reduce((r,o)=>r+o,0)}const m=e.computed(()=>x.value.map(l=>l.value).reduce((l,r)=>l+r,0)),ve=e.computed(()=>m.value/x.value.length),F=e.ref(null);function he({datapoint:l,relativeIndex:r,seriesIndex:o,show:n=!1}){F.value={datapoint:l,seriesIndex:o,config:t.value,series:g.value},z.value=n,p.value=r;let u="";const i=t.value.style.chart.tooltip.customFormat;a.isFunction(i)&&a.functionReturnsString(()=>i({seriesIndex:o,datapoint:l,series:g.value,config:t.value}))?O.value=i({seriesIndex:o,datapoint:l,series:g.value,config:t.value}):(u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${a.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${(l.proportion*100).toFixed(t.value.style.chart.tooltip.roundingPercentage)}%)</span></div>`:u+=`<b>${(l.proportion*100).toFixed(t.value.style.chart.tooltip.roundingPercentage)}%</b></div>`),t.value.style.chart.comments.showInTooltip&&l.comment&&(u+=`<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`),O.value=`<div>${u}</div>`)}function M(l){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==l?`url(#blur_${h.value})`:""}const k=e.computed(()=>{const l=x.value.map(o=>({name:o.name,color:o.color})),r=x.value.map(o=>o.value);return{head:l,body:r}});function K(){e.nextTick(()=>{const l=k.value.head.map((n,u)=>[[n.name],[k.value.body[u]],[isNaN(k.value.body[u]/m.value)?"-":k.value.body[u]/m.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=a.createCsvContent(r);a.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const V=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',a.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=k.value.head.map((u,i)=>{const d=a.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:k.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},d,isNaN(k.value.body[i]/m.value)?"-":(k.value.body[i]/m.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:r,config:o}}),L=e.ref(!1);function fe(l){L.value=l,A.value+=1}const Q=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function ye(l){return l.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function T(l,r){D("selectDatapoint",{datapoint:l,index:r})}function Z(){c.value.showTable=!c.value.showTable}function ee(){c.value.dataLabels.show=!c.value.dataLabels.show}function te(){c.value.showTooltip=!c.value.showTooltip}return re({getData:ce,generatePdf:q,generateCsv:K,generateImage:R,toggleTable:Z,toggleLabels:ee,toggleTooltip:te}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:$,class:e.normalizeClass(`vue-ui-donut ${L.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${h.value}`},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:I,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(pe._sfc_main,{config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(oe.UserOptions,{ref_key:"details",ref:ue,key:`user_option_${A.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ie),uid:h.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:L.value,chartElement:$.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:fe,onGeneratePdf:e.unref(q),onGenerateCsv:K,onGenerateImage:e.unref(R),onToggleTable:Z,onToggleLabels:ee,onToggleTooltip:te},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(a.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.convertColorToHex)(t.value.style.chart.backgroundColor)}00`},null,8,$e),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(a.opacity)[t.value.style.chart.gradientIntensity]},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(a.convertColorToHex)(t.value.style.chart.backgroundColor)}00`},null,8,Le)],8,Se)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${h.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${h.value}`},null,8,Ve),Te],8,Ee),e.createElementVNode("filter",{id:`shadow_${h.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Oe)],8,ze)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[_(o)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(a.calcNutArrowPath)(o,{x:s.value.width/2,y:s.value.height/2},16,16,!1,!1,N.value),stroke:o.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:M(n)},null,8,Fe)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:b.value<=0?10:b.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${h.value})`:""},null,8,Me),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(o,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:o.arcSlice,fill:"#FFFFFF"},null,8,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(o,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}CC`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:M(n)},null,8,De))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:s.value.width/2,cy:s.value.height/2,r:b.value<=0?10:b.value,fill:`url(#gradient_${h.value})`},null,8,Ie)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(o,n)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:o.arcSlice,fill:p.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:u=>he({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=u=>{z.value=!1,p.value=null}),onClick:u=>T(o,n)},null,40,Xe))),256)),t.value.style.chart.layout.labels.hollow.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:b.value-N.value<=0?10:b.value-N.value,fill:t.value.style.chart.backgroundColor},null,8,Ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,qe)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(a.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix})),13,Re)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:4,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Ge)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:5,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(C.value?"--":e.unref(a.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:ve.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding})),13,He)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",{filter:M(n),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(a.calcMarkerOffsetX)(o,!0).anchor==="end"?e.unref(a.calcMarkerOffsetX)(o).x-120:e.unref(a.calcMarkerOffsetX)(o,!0).anchor==="middle"?e.unref(a.calcMarkerOffsetX)(o).x-60:e.unref(a.calcMarkerOffsetX)(o).x,y:e.unref(a.calcMarkerOffsetY)(o)-(Q.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:o,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===n,isSafari:Q.value,isVisible:_(o)&&c.value.dataLabels.show,textAlign:e.unref(a.calcMarkerOffsetX)(o,!0,16,!0).anchor,flexAlign:e.unref(a.calcMarkerOffsetX)(o,!0,16).anchor,percentage:W(o,w.value)})),void 0,!0)])],8,je))])):(e.openBlock(),e.createElementBlock("g",We,[_(o)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(a.calcMarkerOffsetX)(o).x,cy:e.unref(a.calcMarkerOffsetY)(o)-3.5,fill:o.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===n?"":`url(#blur_${h.value})`,onClick:u=>T(o,n)},null,8,Je)):e.createCommentVNode("",!0),_(o)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(a.calcMarkerOffsetX)(o,!0,12).anchor,x:e.unref(a.calcMarkerOffsetX)(o,!0,12).x,y:e.unref(a.calcMarkerOffsetY)(o),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:u=>T(o,n)},e.toDisplayString(W(o,w.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(a.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,rounding:t.value.style.chart.layout.labels.value.rounding})})`:""),13,Ke)):e.createCommentVNode("",!0),_(o)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(a.calcMarkerOffsetX)(o).anchor,x:e.unref(a.calcMarkerOffsetX)(o,!0,12).x,y:e.unref(a.calcMarkerOffsetY)(o)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:u=>T(o,n)},e.toDisplayString(o.name),13,Qe)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&o.comment?(e.openBlock(),e.createElementBlock("g",Ze,[_(o)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(a.calcMarkerOffsetX)(o,!0).anchor==="end"?e.unref(a.calcMarkerOffsetX)(o).x-t.value.style.chart.comments.width:e.unref(a.calcMarkerOffsetX)(o,!0).anchor==="middle"?e.unref(a.calcMarkerOffsetX)(o).x-t.value.style.chart.comments.width/2:e.unref(a.calcMarkerOffsetX)(o).x),y:e.unref(a.calcMarkerOffsetY)(o)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"plot-comment",{plot:{...o,textAlign:e.unref(a.calcMarkerOffsetX)(o,!0,16,!0).anchor,flexAlign:e.unref(a.calcMarkerOffsetX)(o,!0,16).anchor}},void 0,!0)])],8,et)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ue))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Be)):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:3,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:N.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:X},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(be.Legend,{key:0,legendSet:j.value,config:de.value,onClickMarker:r[1]||(r[1]=({i:o})=>Y(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:u=>o.segregate(),style:e.normalizeStyle(`opacity:${f.value.includes(n)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(a.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}))+" ",1),f.value.includes(n)?(e.openBlock(),e.createElementBlock("span",ot," ( "+e.toDisplayString(ye(o.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",lt," ("+e.toDisplayString(isNaN(o.value/m.value)?"-":e.unref(a.dataLabel)({v:C.value?o.proportion*100:o.value/m.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,tt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:j.value},void 0,!0)],512),e.createVNode(ge._sfc_main,{show:c.value.showTooltip&&z.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,parent:$.value,content:O.value,isCustom:e.unref(a.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock(we.default,{key:4,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(me.DataTable,{colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[2]||(r[2]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,at)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,_e))}},nt=Ce._export_sfc(rt,[["__scopeId","data-v-a76ecc28"]]);exports.default=nt;