vue-data-ui 3.22.2 → 3.22.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 (203) hide show
  1. package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
  93. package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +69 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
  162. package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend-BVDhEEsC.js +0 -115
  181. package/dist/Slicer-ClR833cP.js +0 -1144
  182. package/dist/exposedLib-CffbQxjN.js +0 -19
  183. package/dist/img-BCAOkqfM.js +0 -74
  184. package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
  185. package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
  186. package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
  187. package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
  188. package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
  189. package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
  190. package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
  191. package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
  192. package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
  194. package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
  195. package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
  196. package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
  197. package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
  199. package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
  200. package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
  201. package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
  202. package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
  203. package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
@@ -1,920 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, C as n, Dt as r, Et as i, Ft as a, G as o, H as ee, Ht as s, Ut as te, Vt as ne, X as c, ct as re, i as l, kt as ie, t as ae, u as oe, v as se, wt as ce, x as le, y as ue } from "./lib-CXicicWN.js";
3
- import { t as de } from "./useConfig-Bf_EBbe3.js";
4
- import { t as fe } from "./usePrinter-Dng0UK-G.js";
5
- import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as he } from "./useSvgExport-SVIsDot8.js";
7
- import { t as ge } from "./useNestedProp-APyFoLCQ.js";
8
- import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ve } from "./img-BCAOkqfM.js";
10
- import { n as ye } from "./Title-CVYf1f8m.js";
11
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { c as xe } from "./canvas-lib-BOP_HS11.js";
13
- import { t as Se } from "./useResponsive-BfnK0KxU.js";
14
- import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as we } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as Te } from "./useAutoSizeLabelsInsideViewbox-B4-0yo3K.js";
17
- import { t as Ee } from "./vue_ui_gauge-Cf1RZc9q.js";
18
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as g, mergeProps as _, nextTick as Ae, normalizeClass as je, normalizeProps as v, normalizeStyle as Me, onBeforeUnmount as Ne, onMounted as Pe, openBlock as y, ref as b, renderList as x, renderSlot as S, shallowRef as Fe, toDisplayString as C, toRefs as Ie, unref as w, watch as Le, withCtx as T } from "vue";
19
- //#region src/components/vue-ui-gauge.vue
20
- var Re = /* @__PURE__ */ e({ default: () => bt }), ze = ["id"], Be = { key: 0 }, Ve = ["xmlns", "viewBox"], He = ["width", "height"], Ue = ["id"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["stop-color"], qe = ["id"], Je = ["stdDeviation"], Ye = { key: 1 }, Xe = [
21
- "d",
22
- "fill",
23
- "stroke"
24
- ], Ze = [
25
- "d",
26
- "fill",
27
- "stroke"
28
- ], Qe = ["d", "fill"], $e = ["id", "d"], et = [
29
- "fill",
30
- "font-size",
31
- "font-weight"
32
- ], tt = ["href", "startOffset"], nt = [
33
- "text-anchor",
34
- "fill",
35
- "font-size",
36
- "font-weight",
37
- "innerHTML"
38
- ], rt = ["d", "filter"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = ["stroke", "stroke-width"], ct = { key: 8 }, lt = [
39
- "x",
40
- "y",
41
- "text-anchor",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], ut = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "font-weight",
50
- "fill"
51
- ], dt = { key: 0 }, ft = [
52
- "x1",
53
- "y1",
54
- "x2",
55
- "y2",
56
- "stroke",
57
- "stroke-width"
58
- ], pt = [
59
- "x1",
60
- "y1",
61
- "x2",
62
- "y2",
63
- "stroke",
64
- "stroke-width"
65
- ], mt = [
66
- "x1",
67
- "y1",
68
- "x2",
69
- "y2",
70
- "stroke-width",
71
- "filter"
72
- ], ht = { key: 1 }, gt = [
73
- "d",
74
- "fill",
75
- "stroke",
76
- "stroke-width"
77
- ], _t = [
78
- "cx",
79
- "cy",
80
- "fill",
81
- "r",
82
- "stroke-width",
83
- "stroke"
84
- ], vt = [
85
- "x",
86
- "y",
87
- "font-size",
88
- "fill"
89
- ], yt = {
90
- key: 4,
91
- class: "vue-data-ui-watermark"
92
- }, bt = /*#__PURE__*/ be({
93
- __name: "vue-ui-gauge",
94
- props: {
95
- config: {
96
- type: Object,
97
- default() {
98
- return {};
99
- }
100
- },
101
- dataset: {
102
- type: Object,
103
- default() {
104
- return {};
105
- }
106
- }
107
- },
108
- emits: ["copyAlt"],
109
- setup(e, { expose: be, emit: Re }) {
110
- let bt = ke(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), xt = ke(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), St = ke(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_gauge: Ct } = de(), { isThemeValid: wt, warnInvalidTheme: Tt } = _e(), E = e, Et = Re, Dt = d(() => !!E.dataset && Object.keys(E.dataset).length > 0 && E.dataset.series && E.dataset.series.length), D = b(ee()), Ot = b(null), kt = b(0), O = b(null), At = b(null), jt = b(null), Mt = b(null), Nt = b(null), Pt = b(0), k = b(!1), A = b(!1), j = b(F()), Ft = d(() => j.value.userOptions.useCursorPointer), It = d(() => te({
111
- defaultConfig: {
112
- userOptions: { show: !1 },
113
- style: { chart: {
114
- backgroundColor: "#99999930",
115
- animation: { use: !1 },
116
- layout: {
117
- markers: { show: !1 },
118
- segmentSeparators: { stroke: "#6A6A6A" },
119
- segmentNames: { show: !1 },
120
- indicatorArc: { fill: "#6A6A6A50" },
121
- pointer: {
122
- stroke: "#6A6A6A",
123
- useRatingColor: !0,
124
- circle: {
125
- stroke: "#6A6A6A",
126
- color: "#6A6A6A"
127
- }
128
- }
129
- },
130
- legend: { show: !1 }
131
- } }
132
- },
133
- userConfig: j.value.skeletonConfig ?? {}
134
- })), { loading: Lt, FINAL_DATASET: M, manualLoading: N } = pe({
135
- ...Ie(E),
136
- FINAL_CONFIG: j,
137
- prepareConfig: F,
138
- callback: () => {
139
- Promise.resolve().then(async () => {
140
- await Ae();
141
- });
142
- },
143
- skeletonDataset: E.config?.skeletonDataset ?? {
144
- value: 0,
145
- series: [{
146
- from: -1,
147
- to: 0,
148
- name: "_",
149
- color: "#A1A1A1"
150
- }, {
151
- from: 0,
152
- to: 1,
153
- name: "__",
154
- color: "#CACACA"
155
- }]
156
- },
157
- skeletonConfig: te({
158
- defaultConfig: j.value,
159
- userConfig: It.value
160
- })
161
- }), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ce({ config: j.value }), { svgRef: P } = we({ config: j.value.style.chart.title });
162
- Le(() => E.config, (e) => {
163
- Lt.value || (j.value = F()), Rt.value = !j.value.userOptions.showOnChartHover, Jt(), Pt.value += 1;
164
- }, { deep: !0 }), Le(() => E.dataset, (e) => {
165
- Jt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
166
- }, {
167
- deep: !0,
168
- immediate: !1
169
- });
170
- function F() {
171
- let e = ge({
172
- userConfig: E.config,
173
- defaultConfig: Ct
174
- }), t = e.theme;
175
- if (!t) return e;
176
- if (!wt.value(e)) return Tt(e), e;
177
- let n = ge({
178
- userConfig: Ee[t] || E.config,
179
- defaultConfig: e
180
- }), r = ge({
181
- userConfig: E.config,
182
- defaultConfig: n
183
- });
184
- return {
185
- ...r,
186
- customPalette: r.customPalette.length ? r.customPalette : ne[t] || ie
187
- };
188
- }
189
- let { isPrinting: I, isImaging: L, generatePdf: Vt, generateImage: Ht } = fe({
190
- elementId: `vue-ui-gauge_${D.value}`,
191
- fileName: j.value.style.chart.title.text || "vue-ui-gauge",
192
- options: j.value.userOptions.print
193
- }), Ut = d(() => j.value.userOptions.show && !j.value.style.chart.title.text), Wt = d(() => le(j.value.customPalette)), R = d(() => {
194
- if (i(M.value.series || {})) return {
195
- value: 0,
196
- series: [{
197
- from: 0,
198
- to: 0
199
- }]
200
- };
201
- let e = [];
202
- (M.value.series || []).forEach((t) => {
203
- e.push(t.from || 1e-7), e.push(t.to || 1e-7);
204
- });
205
- let t = Math.max(...e);
206
- return {
207
- ...M.value,
208
- series: (M.value.series || []).map((e, n) => ({
209
- ...e,
210
- color: ue(e.color) || Wt.value[n] || ie[n],
211
- value: ((e.to || 0) - (e.from || 0)) / t * 100
212
- }))
213
- };
214
- }), z = b(512), B = b({
215
- height: 358.4,
216
- width: z.value,
217
- top: 0,
218
- bottom: 358.4,
219
- centerX: 179.2,
220
- centerY: z.value / 2,
221
- labelFontSize: 18,
222
- legendFontSize: j.value.style.chart.legend.fontSize,
223
- pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
224
- trackSize: j.value.style.chart.layout.track.size,
225
- pointerSize: j.value.style.chart.layout.pointer.size,
226
- pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
227
- markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
228
- segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
229
- }), V = b(0), H = b(0), U = b(j.value.style.chart.animation.use ? Math.min(...M.value.series.map((e) => e.from)) : M.value.value);
230
- Le(() => M.value.value, () => {
231
- Yt(M.value.value);
232
- });
233
- let W = d(() => {
234
- let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI;
235
- return {
236
- x1: e,
237
- y1: t,
238
- x2: e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n),
239
- y2: t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n)
240
- };
241
- }), Gt = d(() => {
242
- let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI, r = e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n), a = B.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
243
- return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${te} Z`;
244
- }), Kt = d(() => {
245
- for (let e = 0; e < R.value.series.length; e += 1) {
246
- let { color: t, from: n, to: r } = R.value.series[e];
247
- if (U.value >= n && U.value <= r) return t;
248
- }
249
- return "#2D353C";
250
- }), G = Fe(null), K = Fe(null), q = d({
251
- get: () => B.value.segmentFontSize,
252
- set: (e) => e
253
- }), { autoSizeLabels: qt } = Te({
254
- svgRef: P,
255
- fontSize: B.value.segmentFontSize,
256
- minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
257
- sizeRef: q,
258
- labelClass: ".vue-ui-gauge-label-flat"
259
- }), J = d(() => !!j.value.debug);
260
- function Jt() {
261
- let e = !1;
262
- if (i(E.dataset) ? (c({
263
- componentName: "VueUiGauge",
264
- type: "dataset",
265
- debug: J.value
266
- }), N.value = !0, e = !0) : (re({
267
- datasetObject: E.dataset,
268
- requiredAttributes: ["value", "series"]
269
- }).forEach((t) => {
270
- c({
271
- componentName: "VueUiGauge",
272
- type: "datasetAttribute",
273
- property: t,
274
- debug: J.value
275
- }), N.value = !0, e = !0;
276
- }), Object.hasOwn(E.dataset, "series") && (E.dataset.series.length ? E.dataset.series.forEach((t, n) => {
277
- re({
278
- datasetObject: t,
279
- requiredAttributes: ["from", "to"]
280
- }).forEach((t) => {
281
- c({
282
- componentName: "VueUiGauge",
283
- type: "datasetSerieAttribute",
284
- property: t,
285
- index: n,
286
- debug: J.value
287
- }), N.value = !0, e = !0;
288
- });
289
- }) : (c({
290
- componentName: "VueUiGauge",
291
- type: "datasetAttributeEmpty",
292
- property: "series",
293
- debug: J.value
294
- }), N.value = !0, e = !0))), N.value = e, Yt(M.value.value || 0), j.value.responsive) {
295
- let e = xe(() => {
296
- let { width: e, height: t } = Se({
297
- chart: O.value,
298
- title: j.value.style.chart.title.text ? At.value : null,
299
- legend: jt.value,
300
- source: Mt.value,
301
- noTitle: Nt.value
302
- });
303
- t -= 12, requestAnimationFrame(() => {
304
- B.value.width = e, B.value.height = t, B.value.centerX = e / 2, B.value.centerY = z.value / 2 / 358.4 * t, B.value.bottom = t, B.value.labelFontSize = 18 / z.value * Math.min(t, e) < 10 ? 10 : 18 / z.value * Math.min(t, e), B.value.legendFontSize = j.value.style.chart.legend.fontSize / z.value * Math.min(t, e) < 14 ? 14 : j.value.style.chart.legend.fontSize / z.value * Math.min(t, e), B.value.pointerRadius = j.value.style.chart.layout.pointer.circle.radius / z.value * Math.min(t, e), B.value.trackSize = j.value.style.chart.layout.track.size / z.value * Math.min(t, e), B.value.pointerStrokeWidth = s({
305
- relator: Math.min(e, t),
306
- adjuster: z.value,
307
- source: j.value.style.chart.layout.pointer.strokeWidth,
308
- threshold: 2,
309
- fallback: 2
310
- }), B.value.markerOffset = s({
311
- relator: Math.max(e, t),
312
- adjuster: z.value,
313
- source: j.value.style.chart.layout.markers.offsetY + 3,
314
- threshold: 2,
315
- fallback: 2
316
- }), B.value.segmentFontSize = s({
317
- relator: Math.min(e, t),
318
- adjuster: z.value,
319
- source: j.value.style.chart.layout.segmentNames.fontSize,
320
- threshold: 8,
321
- fallback: 8
322
- });
323
- }), qt();
324
- });
325
- G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect()), G.value = new ResizeObserver(e), K.value = O.value.parentNode, G.value.observe(K.value);
326
- }
327
- qt();
328
- }
329
- Pe(() => {
330
- Jt();
331
- }), Ne(() => {
332
- G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
333
- });
334
- function Yt(e) {
335
- let t = [];
336
- (R.value.series || []).forEach((e) => {
337
- t.push(e.from || 0), t.push(e.to || 0);
338
- }), V.value = Math.max(...t), H.value = Math.min(...t);
339
- let n = j.value.style.chart.animation.speed, r = Math.abs(e - U.value) / (n * 60);
340
- function i() {
341
- U.value < e ? U.value = Math.min(U.value + r, e) : U.value > e && (U.value = Math.max(U.value - r, e)), U.value !== e && requestAnimationFrame(i);
342
- }
343
- i();
344
- }
345
- let Y = d(() => {
346
- let e = j.value.responsive ? Math.min(B.value.width, B.value.height) : B.value.width, t = 2.5 / j.value.style.chart.layout.radiusRatio;
347
- return {
348
- arcs: e / t,
349
- gradients: e / (t * 1.1),
350
- base: j.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
351
- ratingBase: j.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
352
- pointerSize: j.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
353
- };
354
- }), X = d(() => ce({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs, Y.value.arcs, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Xt = d(() => ce({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Z = d(() => X.value.map((e) => Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Zt = d(() => {
355
- let { x: e, y: t } = r({
356
- initX: X.value[0].firstSeparator.x,
357
- initY: X.value[0].firstSeparator.y,
358
- centerX: W.value.x1,
359
- centerY: W.value.y1,
360
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
361
- }), { x: n, y: i } = r({
362
- initX: X.value[0].startX,
363
- initY: X.value[0].startY,
364
- centerX: W.value.x1,
365
- centerY: W.value.y1,
366
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
367
- });
368
- return {
369
- x1: e,
370
- y1: t,
371
- x2: n,
372
- y2: i
373
- };
374
- }), Qt = d(() => X.value.map((e) => {
375
- let { x: t, y: n } = r({
376
- initX: e.separator.x,
377
- initY: e.separator.y,
378
- centerX: W.value.x1,
379
- centerY: W.value.y1,
380
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
381
- }), { x: i, y: a } = r({
382
- initX: e.endX,
383
- initY: e.endY,
384
- centerX: W.value.x1,
385
- centerY: W.value.y1,
386
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
387
- });
388
- return {
389
- x1: t,
390
- y1: n,
391
- x2: i,
392
- y2: a
393
- };
394
- }));
395
- function $t(e) {
396
- if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
397
- let t = 0;
398
- return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
399
- }
400
- let en = d(() => $t(X.value.map((e) => e.proportion * 100))), tn = d(() => ce({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.gradients, Y.value.gradients, .95, 1, 1, 180, 110.02, 2 * B.value.trackSize)), nn = d(() => {
401
- let e = H.value >= 0 ? -H.value : Math.abs(H.value);
402
- return n({
403
- radius: j.value.style.chart.layout.indicatorArc.radius * B.value.trackSize,
404
- centerX: B.value.width / 2,
405
- centerY: Y.value.base,
406
- percentage: se((U.value + e) / (V.value + e))
407
- });
408
- }), Q = b(!1);
409
- function rn(e) {
410
- Q.value = e, kt.value += 1;
411
- }
412
- let $ = b(!1);
413
- function an() {
414
- $.value = !$.value;
415
- }
416
- async function on({ scale: e = 2 } = {}) {
417
- if (!O.value) return;
418
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
419
- domElement: O.value,
420
- base64: !0,
421
- img: !0,
422
- scale: e
423
- });
424
- return {
425
- imageUri: i,
426
- base64: a,
427
- title: j.value.style.chart.title.text,
428
- width: t,
429
- height: n,
430
- aspectRatio: r
431
- };
432
- }
433
- let sn = d(() => j.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = he({
434
- svg: P,
435
- title: d(() => j.value.style.chart.title),
436
- backgroundColor: sn
437
- });
438
- async function un({ isCb: e }) {
439
- A.value = !0, await Ae();
440
- try {
441
- if (e) {
442
- let { blob: e, url: t, text: n, dataUrl: r } = await ln();
443
- await Promise.resolve(j.value.userOptions.callbacks.svg({
444
- blob: e,
445
- url: t,
446
- text: n,
447
- dataUrl: r
448
- }));
449
- } else await Promise.resolve(cn());
450
- } finally {
451
- A.value = !1;
452
- }
453
- }
454
- function dn(e) {
455
- if (e?.stage === "start") {
456
- k.value = !0;
457
- return;
458
- }
459
- if (e?.stage === "end") {
460
- k.value = !1;
461
- return;
462
- }
463
- Ht();
464
- }
465
- async function fn() {
466
- if (Et("copyAlt", {
467
- config: j.value,
468
- dataset: R.value
469
- }), !j.value.userOptions.callbacks.altCopy) {
470
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
471
- return;
472
- }
473
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
474
- config: j.value,
475
- dataset: R.value
476
- }));
477
- }
478
- return be({
479
- getImage: on,
480
- generatePdf: Vt,
481
- generateImage: Ht,
482
- generateSvg: un,
483
- toggleAnnotator: an,
484
- toggleFullscreen: rn,
485
- copyAlt: fn
486
- }), (e, n) => (y(), m("div", {
487
- class: je(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
- ref_key: "gaugeChart",
489
- ref: O,
490
- id: `vue-ui-gauge_${D.value}`,
491
- style: Me(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
492
- onMouseenter: n[0] ||= () => w(zt)(!0),
493
- onMouseleave: n[1] ||= () => w(zt)(!1)
494
- }, [
495
- j.value.userOptions.buttons.annotator ? (y(), f(w(bt), {
496
- key: 0,
497
- svgRef: w(P),
498
- backgroundColor: j.value.style.chart.backgroundColor,
499
- color: j.value.style.chart.color,
500
- active: $.value,
501
- isCursorPointer: Ft.value,
502
- onClose: an
503
- }, {
504
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
506
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
507
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
508
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
509
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
510
- _: 3
511
- }, 8, [
512
- "svgRef",
513
- "backgroundColor",
514
- "color",
515
- "active",
516
- "isCursorPointer"
517
- ])) : p("", !0),
518
- Ut.value ? (y(), m("div", {
519
- key: 1,
520
- ref_key: "noTitle",
521
- ref: Nt,
522
- class: "vue-data-ui-no-title-space",
523
- style: "height:36px; width: 100%;background:transparent"
524
- }, null, 512)) : p("", !0),
525
- j.value.style.chart.title.text ? (y(), m("div", {
526
- key: 2,
527
- ref_key: "chartTitle",
528
- ref: At,
529
- style: "width:100%;background:transparent;padding-bottom:12px"
530
- }, [(y(), f(ye, {
531
- key: `title_${Pt.value}`,
532
- config: {
533
- title: {
534
- cy: "gauge-div-title",
535
- ...j.value.style.chart.title
536
- },
537
- subtitle: {
538
- cy: "gauge-div-subtitle",
539
- ...j.value.style.chart.title.subtitle
540
- }
541
- }
542
- }, {
543
- default: T(() => [j.value.translations.base && w(M).base ? (y(), m("span", Be, C(j.value.translations.base) + ": " + C(w(M).base), 1)) : p("", !0)]),
544
- _: 1
545
- }, 8, ["config"]))], 512)) : p("", !0),
546
- j.value.userOptions.show && Dt.value && (w(Bt) || w(Rt)) ? (y(), f(w(xt), {
547
- ref_key: "details",
548
- ref: Ot,
549
- key: `user_options_${kt.value}`,
550
- backgroundColor: j.value.style.chart.backgroundColor,
551
- color: j.value.style.chart.color,
552
- isImaging: w(L),
553
- isPrinting: w(I),
554
- uid: D.value,
555
- hasXls: !1,
556
- hasPdf: j.value.userOptions.buttons.pdf,
557
- hasImg: j.value.userOptions.buttons.img,
558
- hasSvg: j.value.userOptions.buttons.svg,
559
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
560
- hasAltCopy: j.value.userOptions.buttons.altCopy,
561
- isFullscreen: Q.value,
562
- titles: { ...j.value.userOptions.buttonTitles },
563
- chartElement: O.value,
564
- callbacks: j.value.userOptions.callbacks,
565
- printScale: j.value.userOptions.print.scale,
566
- position: j.value.userOptions.position,
567
- hasAnnotator: j.value.userOptions.buttons.annotator,
568
- isAnnotation: $.value,
569
- isCursorPointer: Ft.value,
570
- onToggleFullscreen: rn,
571
- onGeneratePdf: w(Vt),
572
- onGenerateImage: dn,
573
- onGenerateSvg: un,
574
- onToggleAnnotator: an,
575
- onCopyAlt: fn,
576
- style: Me({ visibility: w(Bt) ? w(Rt) ? "visible" : "hidden" : "visible" })
577
- }, De({ _: 2 }, [
578
- e.$slots.menuIcon ? {
579
- name: "menuIcon",
580
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
581
- isOpen: t,
582
- color: n
583
- })), void 0, !0)]),
584
- key: "0"
585
- } : void 0,
586
- e.$slots.optionPdf ? {
587
- name: "optionPdf",
588
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
589
- key: "1"
590
- } : void 0,
591
- e.$slots.optionImg ? {
592
- name: "optionImg",
593
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
594
- key: "2"
595
- } : void 0,
596
- e.$slots.optionSvg ? {
597
- name: "optionSvg",
598
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
599
- key: "3"
600
- } : void 0,
601
- e.$slots.optionFullscreen ? {
602
- name: "optionFullscreen",
603
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
604
- toggleFullscreen: t,
605
- isFullscreen: n
606
- })), void 0, !0)]),
607
- key: "4"
608
- } : void 0,
609
- e.$slots.optionAnnotator ? {
610
- name: "optionAnnotator",
611
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
612
- toggleAnnotator: t,
613
- isAnnotator: n
614
- })), void 0, !0)]),
615
- key: "5"
616
- } : void 0,
617
- e.$slots.optionAltCopy ? {
618
- name: "optionAltCopy",
619
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
620
- key: "6"
621
- } : void 0,
622
- e.$slots["custom-menu-before"] ? {
623
- name: "custom-menu-before",
624
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
625
- key: "7"
626
- } : void 0,
627
- e.$slots["custom-menu-after"] ? {
628
- name: "custom-menu-after",
629
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
630
- key: "8"
631
- } : void 0
632
- ]), 1032, [
633
- "backgroundColor",
634
- "color",
635
- "isImaging",
636
- "isPrinting",
637
- "uid",
638
- "hasPdf",
639
- "hasImg",
640
- "hasSvg",
641
- "hasFullscreen",
642
- "hasAltCopy",
643
- "isFullscreen",
644
- "titles",
645
- "chartElement",
646
- "callbacks",
647
- "printScale",
648
- "position",
649
- "hasAnnotator",
650
- "isAnnotation",
651
- "isCursorPointer",
652
- "onGeneratePdf",
653
- "style"
654
- ])) : p("", !0),
655
- (y(), m("svg", {
656
- ref_key: "svgRef",
657
- ref: P,
658
- xmlns: w(ae),
659
- class: je({
660
- "vue-data-ui-fullscreen--on": Q.value,
661
- "vue-data-ui-fulscreen--off": !Q.value
662
- }),
663
- viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
664
- style: Me(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
665
- }, [
666
- Oe(w(St)),
667
- e.$slots["chart-background"] ? (y(), m("foreignObject", {
668
- key: 0,
669
- x: 0,
670
- y: 0,
671
- width: B.value.width <= 0 ? 10 : B.value.width,
672
- height: B.value.height <= 0 ? 10 : B.value.height,
673
- style: { pointerEvents: "none" }
674
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : p("", !0),
675
- h("defs", null, [h("radialGradient", {
676
- id: `gradient_${D.value}`,
677
- cx: "50%",
678
- cy: "50%",
679
- r: "50%",
680
- fx: "50%",
681
- fy: "50%"
682
- }, [
683
- h("stop", {
684
- offset: "0%",
685
- "stop-color": w(a)("#FFFFFF", 1)
686
- }, null, 8, We),
687
- h("stop", {
688
- offset: "80%",
689
- "stop-color": w(a)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity)
690
- }, null, 8, Ge),
691
- h("stop", {
692
- offset: "100%",
693
- "stop-color": w(a)("#FFFFFF", 1)
694
- }, null, 8, Ke)
695
- ], 8, Ue)]),
696
- h("defs", null, [h("filter", {
697
- id: `blur_${D.value}`,
698
- x: "-50%",
699
- y: "-50%",
700
- width: "200%",
701
- height: "200%"
702
- }, [h("feGaussianBlur", {
703
- in: "SourceGraphic",
704
- stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
705
- }, null, 8, Je)], 8, qe)]),
706
- e.$slots.pattern ? (y(), m("g", Ye, [(y(!0), m(u, null, x(X.value, (t, n) => (y(), m("defs", null, [S(e.$slots, "pattern", _({ ref_for: !0 }, {
707
- seriesIndex: n,
708
- patternId: `pattern_${D.value}_${n}`
709
- }), void 0, !0)]))), 256))])) : p("", !0),
710
- (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
711
- key: `arc_${t}`,
712
- d: e.arcSlice,
713
- fill: e.color,
714
- stroke: j.value.style.chart.backgroundColor,
715
- "stroke-linecap": "round"
716
- }, null, 8, Xe))), 128)),
717
- e.$slots.pattern ? (y(!0), m(u, { key: 2 }, x(X.value, (e, t) => (y(), m("path", {
718
- key: `arc_${t}`,
719
- d: e.arcSlice,
720
- fill: `url(#pattern_${D.value}_${t})`,
721
- stroke: j.value.style.chart.backgroundColor,
722
- "stroke-linecap": "round"
723
- }, null, 8, Ze))), 128)) : p("", !0),
724
- j.value.style.chart.layout.indicatorArc.show ? (y(), m("path", {
725
- key: 3,
726
- d: nn.value,
727
- fill: j.value.style.chart.layout.indicatorArc.fill
728
- }, null, 8, Qe)) : p("", !0),
729
- j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (y(), m(u, { key: 4 }, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
730
- id: `curve_${D.value}_${t}`,
731
- d: `M ${W.value.x1},${W.value.y1} m -${Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 ${2 * Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 -${2 * Z.value[t]},0`,
732
- fill: "transparent"
733
- }, null, 8, $e))), 256)), (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
734
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
735
- "font-size": q.value,
736
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
737
- "text-anchor": "middle"
738
- }, [h("textPath", {
739
- href: `#curve_${D.value}_${t}`,
740
- startOffset: en.value[t]
741
- }, C(e.name || ""), 9, tt)], 8, et))), 256))], 64)) : p("", !0),
742
- j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (y(!0), m(u, { key: 5 }, x(Xt.value, (e, n) => (y(), m("text", {
743
- class: "vue-ui-gauge-label-flat",
744
- "text-anchor": w(oe)(e, !1, 12).anchor,
745
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
746
- "font-size": q.value,
747
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
748
- innerHTML: w(t)({
749
- content: String(e.name ?? ""),
750
- fontSize: q.value,
751
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
752
- x: e.center.endX,
753
- y: e.center.endY
754
- })
755
- }, null, 8, nt))), 256)) : p("", !0),
756
- j.value.style.chart.layout.track.useGradient ? (y(!0), m(u, { key: 6 }, x(tn.value, (e, t) => (y(), m("path", {
757
- key: `arc_${t}`,
758
- d: e.arcSlice,
759
- fill: "#FFFFFF",
760
- stroke: "none",
761
- "stroke-linecap": "round",
762
- filter: `url(#blur_${D.value})`
763
- }, null, 8, rt))), 128)) : p("", !0),
764
- j.value.style.chart.layout.segmentSeparators.show ? (y(), m(u, { key: 7 }, [
765
- h("line", _(Zt.value, {
766
- stroke: j.value.style.chart.backgroundColor,
767
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
768
- "stroke-linecap": "round"
769
- }), null, 16, it),
770
- h("line", _(Zt.value, {
771
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
772
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
773
- "stroke-linecap": "round"
774
- }), null, 16, at),
775
- (y(!0), m(u, null, x(Qt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
776
- stroke: j.value.style.chart.backgroundColor,
777
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
778
- "stroke-linecap": "round"
779
- }), null, 16, ot))), 256)),
780
- (y(!0), m(u, null, x(Qt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
781
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
782
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
783
- "stroke-linecap": "round"
784
- }), null, 16, st))), 256))
785
- ], 64)) : p("", !0),
786
- j.value.style.chart.layout.markers.show ? (y(), m("g", ct, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
787
- x: w(r)({
788
- centerX: W.value.x1,
789
- centerY: Y.value.base,
790
- initX: e.center.startX,
791
- initY: e.center.startY,
792
- offset: B.value.markerOffset
793
- }).x,
794
- y: w(r)({
795
- centerX: W.value.x1,
796
- centerY: Y.value.base,
797
- initX: e.center.startX,
798
- initY: e.center.startY,
799
- offset: B.value.markerOffset
800
- }).y,
801
- "text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
802
- "font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
803
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
804
- fill: j.value.style.chart.layout.markers.color
805
- }, C(w(l)(j.value.style.chart.layout.markers.formatter, e.from, w(o)({
806
- p: j.value.style.chart.layout.markers.prefix,
807
- v: e.from,
808
- s: j.value.style.chart.layout.markers.suffix,
809
- r: j.value.style.chart.layout.markers.roundingValue
810
- }))), 9, lt))), 256))])) : p("", !0),
811
- j.value.style.chart.layout.markers.show ? (y(), m("text", {
812
- key: 9,
813
- x: w(r)({
814
- centerX: B.value.width / 2,
815
- centerY: Y.value.base,
816
- initX: X.value.at(-1).endX,
817
- initY: X.value.at(-1).endY,
818
- offset: B.value.markerOffset
819
- }).x,
820
- y: w(r)({
821
- centerX: B.value.width / 2,
822
- centerY: Y.value.base,
823
- initX: X.value.at(-1).endX,
824
- initY: X.value.at(-1).endY,
825
- offset: B.value.markerOffset
826
- }).y,
827
- "text-anchor": "start",
828
- "font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
829
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
830
- fill: j.value.style.chart.layout.markers.color
831
- }, C(w(l)(j.value.style.chart.layout.markers.formatter, V.value, w(o)({
832
- p: j.value.style.chart.layout.markers.prefix,
833
- v: V.value,
834
- s: j.value.style.chart.layout.markers.suffix,
835
- r: j.value.style.chart.layout.markers.roundingValue
836
- }))), 9, ut)) : p("", !0),
837
- j.value.style.chart.layout.pointer.show ? (y(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (y(), m("g", dt, [
838
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
839
- key: 0,
840
- x1: W.value.x1,
841
- y1: W.value.y1,
842
- x2: W.value.x2,
843
- y2: W.value.y2,
844
- stroke: j.value.style.chart.layout.pointer.stroke,
845
- "stroke-width": B.value.pointerStrokeWidth,
846
- "stroke-linecap": "round"
847
- }, null, 8, ft)),
848
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
849
- key: 1,
850
- x1: W.value.x1,
851
- y1: W.value.y1,
852
- x2: W.value.x2,
853
- y2: W.value.y2,
854
- stroke: j.value.style.chart.layout.pointer.useRatingColor ? Kt.value : j.value.style.chart.layout.pointer.color,
855
- "stroke-linecap": "round",
856
- "stroke-width": B.value.pointerStrokeWidth * .7
857
- }, null, 8, pt)),
858
- !isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (y(), m("line", {
859
- key: 2,
860
- x1: W.value.x1,
861
- y1: W.value.y1,
862
- x2: W.value.x2,
863
- y2: W.value.y2,
864
- stroke: "white",
865
- "stroke-linecap": "round",
866
- "stroke-width": B.value.pointerStrokeWidth * .3,
867
- filter: `url(#blur_${D.value})`
868
- }, null, 8, mt)) : p("", !0)
869
- ])) : (y(), m("g", ht, [Gt.value ? (y(), m("path", {
870
- key: 0,
871
- d: Gt.value,
872
- fill: j.value.style.chart.layout.pointer.useRatingColor ? Kt.value : j.value.style.chart.layout.pointer.color,
873
- stroke: j.value.style.chart.layout.pointer.stroke,
874
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
875
- "stroke-linejoin": "round"
876
- }, null, 8, gt)) : p("", !0)])), h("circle", {
877
- cx: B.value.width / 2,
878
- cy: Y.value.base,
879
- fill: j.value.style.chart.layout.pointer.circle.color,
880
- r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
881
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
882
- stroke: j.value.style.chart.layout.pointer.circle.stroke
883
- }, null, 8, _t)], 64)) : p("", !0),
884
- j.value.style.chart.legend.show ? (y(), m("text", {
885
- key: 11,
886
- x: B.value.width / 2,
887
- y: Y.value.ratingBase,
888
- "text-anchor": "middle",
889
- "font-size": B.value.legendFontSize,
890
- "font-weight": "bold",
891
- fill: j.value.style.chart.legend.useRatingColor ? Kt.value : j.value.style.chart.legend.color
892
- }, C(w(l)(j.value.style.chart.legend.formatter, U.value, w(o)({
893
- p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && U.value > 0 ? "+" : ""),
894
- v: U.value,
895
- s: j.value.style.chart.legend.suffix,
896
- r: j.value.style.chart.legend.roundingValue
897
- }))), 9, vt)) : p("", !0),
898
- S(e.$slots, "svg", { svg: {
899
- ...B.value,
900
- isPrintingImg: w(I) || w(L) || k.value,
901
- isPrintingSvg: A.value
902
- } }, void 0, !0)
903
- ], 14, Ve)),
904
- e.$slots.watermark ? (y(), m("div", yt, [S(e.$slots, "watermark", v(g({ isPrinting: w(I) || w(L) || k.value || A.value })), void 0, !0)])) : p("", !0),
905
- h("div", {
906
- ref_key: "chartLegend",
907
- ref: jt
908
- }, [S(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
909
- e.$slots.source ? (y(), m("div", {
910
- key: 5,
911
- ref_key: "source",
912
- ref: Mt,
913
- dir: "auto"
914
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
915
- S(e.$slots, "skeleton", {}, () => [w(Lt) ? (y(), f(me, { key: 0 })) : p("", !0)], !0)
916
- ], 46, ze));
917
- }
918
- }, [["__scopeId", "data-v-a2cc058b"]]);
919
- //#endregion
920
- export { Re as n, bt as t };