vue-data-ui 3.22.0 → 3.22.1

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 (198) hide show
  1. package/dist/{Arrow-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
  3. package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
  4. package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
  5. package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
  6. package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
  7. package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
  8. package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
  10. package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
  11. package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
  12. package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
  13. package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
  14. package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
  15. package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
  16. package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
  17. package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
  18. package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
  89. package/dist/exposedLib-CffbQxjN.js +19 -0
  90. package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
  91. package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
  92. package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
  93. package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
  94. package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
  95. package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.js} +2 -2
  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 +3 -8
  101. package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
  102. package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
  103. package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
  104. package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
  105. package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
  106. package/dist/utils.js +3 -3
  107. package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
  108. package/dist/vue-data-ui.js +72 -72
  109. package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
  110. package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
  111. package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
  112. package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
  113. package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
  114. package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
  115. package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
  116. package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
  117. package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
  118. package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
  120. package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
  121. package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
  122. package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
  123. package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
  124. package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
  125. package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
  126. package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
  127. package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
  128. package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
  129. package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
  130. package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
  131. package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
  132. package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
  133. package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
  134. package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
  135. package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
  136. package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
  137. package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
  139. package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
  140. package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
  141. package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
  142. package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
  143. package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
  144. package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
  145. package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
  146. package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
  147. package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
  148. package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
  149. package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
  150. package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
  151. package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
  152. package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
  153. package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
  154. package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
  155. package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
  156. package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
  157. package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
  158. package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
  159. package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
  160. package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
  161. package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
  162. package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
  163. package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
  164. package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
  165. package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
  166. package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
  167. package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
  168. package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
  169. package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
  170. package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
  171. package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
  172. package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
  173. package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
  174. package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
  175. package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
  176. package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
  177. package/package.json +2 -2
  178. package/dist/exposedLib-BJbE_A8E.js +0 -19
  179. package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
  181. package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
  182. package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
  183. package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
  184. package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
  185. package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
  186. package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
  187. package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
  188. package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
  189. package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
  190. package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
  191. package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
  192. package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
  193. package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
  194. package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
  195. package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
  196. package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
  197. package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
  198. package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
@@ -1,920 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, Bt as n, C as r, Ct as i, Et as a, G as o, H as ee, Ht as s, Ot as te, Pt as c, Tt as ne, Vt as l, X as u, ct as re, i as ie, t as ae, u as oe, v as se, x as ce, y as le } from "./lib-AJRHFE5U.js";
3
- import { t as ue } from "./useConfig-Br1uzq_L.js";
4
- import { t as de } from "./usePrinter-6n2MzVyV.js";
5
- import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as me } from "./useSvgExport-SVIsDot8.js";
7
- import { t as he } from "./useNestedProp-DtcXIg7n.js";
8
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as _e } from "./img-C_RNNswI.js";
10
- import { n as ve } from "./Title-DH6G8_cZ.js";
11
- import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { c as be } from "./canvas-lib-BOP_HS11.js";
13
- import { t as xe } from "./useResponsive-BfnK0KxU.js";
14
- import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as we } from "./useAutoSizeLabelsInsideViewbox-kjVKQz36.js";
17
- import { t as Te } from "./vue_ui_gauge-Cf1RZc9q.js";
18
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ee, createVNode as De, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as y, nextTick as Oe, normalizeClass as ke, normalizeProps as b, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as x, ref as S, renderList as C, renderSlot as w, shallowRef as Ne, toDisplayString as T, toRefs as Pe, unref as E, watch as Fe, withCtx as D } from "vue";
19
- //#region src/components/vue-ui-gauge.vue
20
- var Ie = /* @__PURE__ */ e({ default: () => vt }), Le = ["id"], Re = { key: 0 }, ze = ["xmlns", "viewBox"], Be = ["width", "height"], Ve = ["id"], He = ["stop-color"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["id"], Ke = ["stdDeviation"], qe = { key: 1 }, Je = [
21
- "d",
22
- "fill",
23
- "stroke"
24
- ], Ye = [
25
- "d",
26
- "fill",
27
- "stroke"
28
- ], Xe = ["d", "fill"], Ze = ["id", "d"], Qe = [
29
- "fill",
30
- "font-size",
31
- "font-weight"
32
- ], $e = ["href", "startOffset"], et = [
33
- "text-anchor",
34
- "fill",
35
- "font-size",
36
- "font-weight",
37
- "innerHTML"
38
- ], tt = ["d", "filter"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = { key: 8 }, st = [
39
- "x",
40
- "y",
41
- "text-anchor",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], ct = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "font-weight",
50
- "fill"
51
- ], lt = { key: 0 }, ut = [
52
- "x1",
53
- "y1",
54
- "x2",
55
- "y2",
56
- "stroke",
57
- "stroke-width"
58
- ], dt = [
59
- "x1",
60
- "y1",
61
- "x2",
62
- "y2",
63
- "stroke",
64
- "stroke-width"
65
- ], ft = [
66
- "x1",
67
- "y1",
68
- "x2",
69
- "y2",
70
- "stroke-width",
71
- "filter"
72
- ], pt = { key: 1 }, mt = [
73
- "d",
74
- "fill",
75
- "stroke",
76
- "stroke-width"
77
- ], ht = [
78
- "cx",
79
- "cy",
80
- "fill",
81
- "r",
82
- "stroke-width",
83
- "stroke"
84
- ], gt = [
85
- "x",
86
- "y",
87
- "font-size",
88
- "fill"
89
- ], _t = {
90
- key: 4,
91
- class: "vue-data-ui-watermark"
92
- }, vt = /*#__PURE__*/ ye({
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: ye, emit: Ie }) {
110
- let vt = _(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), yt = _(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), bt = _(() => import("./PackageVersion-DxBQctV8.js").then((e) => e.t)), { vue_ui_gauge: xt } = ue(), { isThemeValid: St, warnInvalidTheme: Ct } = ge(), O = e, wt = Ie, Tt = f(() => !!O.dataset && Object.keys(O.dataset).length > 0 && O.dataset.series && O.dataset.series.length), k = S(ee()), Et = S(null), Dt = S(0), A = S(null), Ot = S(null), kt = S(null), At = S(null), jt = S(null), Mt = S(0), j = S(!1), M = S(!1), N = S(Rt()), Nt = f(() => N.value.userOptions.useCursorPointer), Pt = f(() => s({
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: N.value.skeletonConfig ?? {}
134
- })), { loading: Ft, FINAL_DATASET: P, manualLoading: F } = fe({
135
- ...Pe(O),
136
- FINAL_CONFIG: N,
137
- prepareConfig: Rt,
138
- callback: () => {
139
- Promise.resolve().then(async () => {
140
- await Oe();
141
- });
142
- },
143
- skeletonDataset: O.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: s({
158
- defaultConfig: N.value,
159
- userConfig: Pt.value
160
- })
161
- }), { userOptionsVisible: I, setUserOptionsVisibility: It, keepUserOptionState: Lt } = Se({ config: N.value }), { svgRef: L } = Ce({ config: N.value.style.chart.title });
162
- Fe(() => O.config, (e) => {
163
- Ft.value || (N.value = Rt()), I.value = !N.value.userOptions.showOnChartHover, Jt(), Mt.value += 1;
164
- }, { deep: !0 }), Fe(() => O.dataset, (e) => {
165
- Jt(), e && Object.keys(e).length > 0 && (F.value = N.value?.loading ?? !1);
166
- }, {
167
- deep: !0,
168
- immediate: !1
169
- });
170
- function Rt() {
171
- let e = he({
172
- userConfig: O.config,
173
- defaultConfig: xt
174
- }), t = e.theme;
175
- if (!t) return e;
176
- if (!St.value(e)) return Ct(e), e;
177
- let r = he({
178
- userConfig: Te[t] || O.config,
179
- defaultConfig: e
180
- }), i = he({
181
- userConfig: O.config,
182
- defaultConfig: r
183
- });
184
- return {
185
- ...i,
186
- customPalette: i.customPalette.length ? i.customPalette : n[t] || te
187
- };
188
- }
189
- let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = de({
190
- elementId: `vue-ui-gauge_${k.value}`,
191
- fileName: N.value.style.chart.title.text || "vue-ui-gauge",
192
- options: N.value.userOptions.print
193
- }), Ut = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), Wt = f(() => ce(N.value.customPalette)), R = f(() => {
194
- if (ne(P.value.series || {})) return {
195
- value: 0,
196
- series: [{
197
- from: 0,
198
- to: 0
199
- }]
200
- };
201
- let e = [];
202
- (P.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
- ...P.value,
208
- series: (P.value.series || []).map((e, n) => ({
209
- ...e,
210
- color: le(e.color) || Wt.value[n] || te[n],
211
- value: ((e.to || 0) - (e.from || 0)) / t * 100
212
- }))
213
- };
214
- }), z = S(512), B = S({
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: N.value.style.chart.legend.fontSize,
223
- pointerRadius: N.value.style.chart.layout.pointer.circle.radius,
224
- trackSize: N.value.style.chart.layout.track.size,
225
- pointerSize: N.value.style.chart.layout.pointer.size,
226
- pointerStrokeWidth: N.value.style.chart.layout.pointer.strokeWidth,
227
- markerOffset: N.value.style.chart.layout.markers.offsetY + 3,
228
- segmentFontSize: N.value.style.chart.layout.segmentNames.fontSize
229
- }), V = S(0), H = S(0), U = S(N.value.style.chart.animation.use ? Math.min(...P.value.series.map((e) => e.from)) : P.value.value);
230
- Fe(() => P.value.value, () => {
231
- Yt(P.value.value);
232
- });
233
- let W = f(() => {
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 = f(() => {
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 = f(() => {
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 = Ne(null), K = Ne(null), q = f({
251
- get: () => B.value.segmentFontSize,
252
- set: (e) => e
253
- }), { autoSizeLabels: qt } = we({
254
- svgRef: L,
255
- fontSize: B.value.segmentFontSize,
256
- minFontSize: N.value.style.chart.layout.segmentNames.minFontSize,
257
- sizeRef: q,
258
- labelClass: ".vue-ui-gauge-label-flat"
259
- }), J = f(() => !!N.value.debug);
260
- function Jt() {
261
- let e = !1;
262
- if (ne(O.dataset) ? (u({
263
- componentName: "VueUiGauge",
264
- type: "dataset",
265
- debug: J.value
266
- }), F.value = !0, e = !0) : (re({
267
- datasetObject: O.dataset,
268
- requiredAttributes: ["value", "series"]
269
- }).forEach((t) => {
270
- u({
271
- componentName: "VueUiGauge",
272
- type: "datasetAttribute",
273
- property: t,
274
- debug: J.value
275
- }), F.value = !0, e = !0;
276
- }), Object.hasOwn(O.dataset, "series") && (O.dataset.series.length ? O.dataset.series.forEach((t, n) => {
277
- re({
278
- datasetObject: t,
279
- requiredAttributes: ["from", "to"]
280
- }).forEach((t) => {
281
- u({
282
- componentName: "VueUiGauge",
283
- type: "datasetSerieAttribute",
284
- property: t,
285
- index: n,
286
- debug: J.value
287
- }), F.value = !0, e = !0;
288
- });
289
- }) : (u({
290
- componentName: "VueUiGauge",
291
- type: "datasetAttributeEmpty",
292
- property: "series",
293
- debug: J.value
294
- }), F.value = !0, e = !0))), F.value = e, Yt(P.value.value || 0), N.value.responsive) {
295
- let e = be(() => {
296
- let { width: e, height: t } = xe({
297
- chart: A.value,
298
- title: N.value.style.chart.title.text ? Ot.value : null,
299
- legend: kt.value,
300
- source: At.value,
301
- noTitle: jt.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 = N.value.style.chart.legend.fontSize / z.value * Math.min(t, e) < 14 ? 14 : N.value.style.chart.legend.fontSize / z.value * Math.min(t, e), B.value.pointerRadius = N.value.style.chart.layout.pointer.circle.radius / z.value * Math.min(t, e), B.value.trackSize = N.value.style.chart.layout.track.size / z.value * Math.min(t, e), B.value.pointerStrokeWidth = l({
305
- relator: Math.min(e, t),
306
- adjuster: z.value,
307
- source: N.value.style.chart.layout.pointer.strokeWidth,
308
- threshold: 2,
309
- fallback: 2
310
- }), B.value.markerOffset = l({
311
- relator: Math.max(e, t),
312
- adjuster: z.value,
313
- source: N.value.style.chart.layout.markers.offsetY + 3,
314
- threshold: 2,
315
- fallback: 2
316
- }), B.value.segmentFontSize = l({
317
- relator: Math.min(e, t),
318
- adjuster: z.value,
319
- source: N.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 = A.value.parentNode, G.value.observe(K.value);
326
- }
327
- qt();
328
- }
329
- Me(() => {
330
- Jt();
331
- }), je(() => {
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 = N.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 = f(() => {
346
- let e = N.value.responsive ? Math.min(B.value.width, B.value.height) : B.value.width, t = 2.5 / N.value.style.chart.layout.radiusRatio;
347
- return {
348
- arcs: e / t,
349
- gradients: e / (t * 1.1),
350
- base: N.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
351
- ratingBase: N.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
352
- pointerSize: N.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
353
- };
354
- }), X = f(() => i({ 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 = f(() => i({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Z = f(() => X.value.map((e) => Y.value.arcs * N.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Zt = f(() => {
355
- let { x: e, y: t } = a({
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: -N.value.style.chart.layout.segmentSeparators.offsetIn
361
- }), { x: n, y: r } = a({
362
- initX: X.value[0].startX,
363
- initY: X.value[0].startY,
364
- centerX: W.value.x1,
365
- centerY: W.value.y1,
366
- offset: N.value.style.chart.layout.segmentSeparators.offsetOut
367
- });
368
- return {
369
- x1: e,
370
- y1: t,
371
- x2: n,
372
- y2: r
373
- };
374
- }), Qt = f(() => X.value.map((e) => {
375
- let { x: t, y: n } = a({
376
- initX: e.separator.x,
377
- initY: e.separator.y,
378
- centerX: W.value.x1,
379
- centerY: W.value.y1,
380
- offset: -N.value.style.chart.layout.segmentSeparators.offsetIn
381
- }), { x: r, y: i } = a({
382
- initX: e.endX,
383
- initY: e.endY,
384
- centerX: W.value.x1,
385
- centerY: W.value.y1,
386
- offset: N.value.style.chart.layout.segmentSeparators.offsetOut
387
- });
388
- return {
389
- x1: t,
390
- y1: n,
391
- x2: r,
392
- y2: i
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 = f(() => $t(X.value.map((e) => e.proportion * 100))), tn = f(() => i({ 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 = f(() => {
401
- let e = H.value >= 0 ? -H.value : Math.abs(H.value);
402
- return r({
403
- radius: N.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 = S(!1);
409
- function rn(e) {
410
- Q.value = e, Dt.value += 1;
411
- }
412
- let $ = S(!1);
413
- function an() {
414
- $.value = !$.value;
415
- }
416
- async function on({ scale: e = 2 } = {}) {
417
- if (!A.value) return;
418
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
419
- domElement: A.value,
420
- base64: !0,
421
- img: !0,
422
- scale: e
423
- });
424
- return {
425
- imageUri: i,
426
- base64: a,
427
- title: N.value.style.chart.title.text,
428
- width: t,
429
- height: n,
430
- aspectRatio: r
431
- };
432
- }
433
- let sn = f(() => N.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = me({
434
- svg: L,
435
- title: f(() => N.value.style.chart.title),
436
- backgroundColor: sn
437
- });
438
- async function un({ isCb: e }) {
439
- M.value = !0, await Oe();
440
- try {
441
- if (e) {
442
- let { blob: e, url: t, text: n, dataUrl: r } = await ln();
443
- await Promise.resolve(N.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
- M.value = !1;
452
- }
453
- }
454
- function dn(e) {
455
- if (e?.stage === "start") {
456
- j.value = !0;
457
- return;
458
- }
459
- if (e?.stage === "end") {
460
- j.value = !1;
461
- return;
462
- }
463
- Ht();
464
- }
465
- async function fn() {
466
- if (wt("copyAlt", {
467
- config: N.value,
468
- dataset: R.value
469
- }), !N.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(N.value.userOptions.callbacks.altCopy({
474
- config: N.value,
475
- dataset: R.value
476
- }));
477
- }
478
- return ye({
479
- getImage: on,
480
- generatePdf: Vt,
481
- generateImage: Ht,
482
- generateSvg: un,
483
- toggleAnnotator: an,
484
- toggleFullscreen: rn,
485
- copyAlt: fn
486
- }), (e, n) => (x(), h("div", {
487
- class: ke(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
- ref_key: "gaugeChart",
489
- ref: A,
490
- id: `vue-ui-gauge_${k.value}`,
491
- style: Ae(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
492
- onMouseenter: n[0] ||= () => E(It)(!0),
493
- onMouseleave: n[1] ||= () => E(It)(!1)
494
- }, [
495
- N.value.userOptions.buttons.annotator ? (x(), p(E(vt), {
496
- key: 0,
497
- svgRef: E(L),
498
- backgroundColor: N.value.style.chart.backgroundColor,
499
- color: N.value.style.chart.color,
500
- active: $.value,
501
- isCursorPointer: Nt.value,
502
- onClose: an
503
- }, {
504
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
506
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
507
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
508
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
509
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
510
- _: 3
511
- }, 8, [
512
- "svgRef",
513
- "backgroundColor",
514
- "color",
515
- "active",
516
- "isCursorPointer"
517
- ])) : m("", !0),
518
- Ut.value ? (x(), h("div", {
519
- key: 1,
520
- ref_key: "noTitle",
521
- ref: jt,
522
- class: "vue-data-ui-no-title-space",
523
- style: "height:36px; width: 100%;background:transparent"
524
- }, null, 512)) : m("", !0),
525
- N.value.style.chart.title.text ? (x(), h("div", {
526
- key: 2,
527
- ref_key: "chartTitle",
528
- ref: Ot,
529
- style: "width:100%;background:transparent;padding-bottom:12px"
530
- }, [(x(), p(ve, {
531
- key: `title_${Mt.value}`,
532
- config: {
533
- title: {
534
- cy: "gauge-div-title",
535
- ...N.value.style.chart.title
536
- },
537
- subtitle: {
538
- cy: "gauge-div-subtitle",
539
- ...N.value.style.chart.title.subtitle
540
- }
541
- }
542
- }, {
543
- default: D(() => [N.value.translations.base && E(P).base ? (x(), h("span", Re, T(N.value.translations.base) + ": " + T(E(P).base), 1)) : m("", !0)]),
544
- _: 1
545
- }, 8, ["config"]))], 512)) : m("", !0),
546
- N.value.userOptions.show && Tt.value && (E(Lt) || E(I)) ? (x(), p(E(yt), {
547
- ref_key: "details",
548
- ref: Et,
549
- key: `user_options_${Dt.value}`,
550
- backgroundColor: N.value.style.chart.backgroundColor,
551
- color: N.value.style.chart.color,
552
- isImaging: E(Bt),
553
- isPrinting: E(zt),
554
- uid: k.value,
555
- hasXls: !1,
556
- hasPdf: N.value.userOptions.buttons.pdf,
557
- hasImg: N.value.userOptions.buttons.img,
558
- hasSvg: N.value.userOptions.buttons.svg,
559
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
560
- hasAltCopy: N.value.userOptions.buttons.altCopy,
561
- isFullscreen: Q.value,
562
- titles: { ...N.value.userOptions.buttonTitles },
563
- chartElement: A.value,
564
- callbacks: N.value.userOptions.callbacks,
565
- printScale: N.value.userOptions.print.scale,
566
- position: N.value.userOptions.position,
567
- hasAnnotator: N.value.userOptions.buttons.annotator,
568
- isAnnotation: $.value,
569
- isCursorPointer: Nt.value,
570
- onToggleFullscreen: rn,
571
- onGeneratePdf: E(Vt),
572
- onGenerateImage: dn,
573
- onGenerateSvg: un,
574
- onToggleAnnotator: an,
575
- onCopyAlt: fn,
576
- style: Ae({ visibility: E(Lt) ? E(I) ? "visible" : "hidden" : "visible" })
577
- }, Ee({ _: 2 }, [
578
- e.$slots.menuIcon ? {
579
- name: "menuIcon",
580
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
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: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
589
- key: "1"
590
- } : void 0,
591
- e.$slots.optionImg ? {
592
- name: "optionImg",
593
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
594
- key: "2"
595
- } : void 0,
596
- e.$slots.optionSvg ? {
597
- name: "optionSvg",
598
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
599
- key: "3"
600
- } : void 0,
601
- e.$slots.optionFullscreen ? {
602
- name: "optionFullscreen",
603
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
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: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
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: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
620
- key: "6"
621
- } : void 0,
622
- e.$slots["custom-menu-before"] ? {
623
- name: "custom-menu-before",
624
- fn: D(() => [w(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: D(() => [w(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
- ])) : m("", !0),
655
- (x(), h("svg", {
656
- ref_key: "svgRef",
657
- ref: L,
658
- xmlns: E(ae),
659
- class: ke({
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: Ae(`max-width:100%;overflow:hidden !important;background:transparent;color:${N.value.style.chart.color}`)
665
- }, [
666
- De(E(bt)),
667
- e.$slots["chart-background"] ? (x(), h("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
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : m("", !0),
675
- g("defs", null, [g("radialGradient", {
676
- id: `gradient_${k.value}`,
677
- cx: "50%",
678
- cy: "50%",
679
- r: "50%",
680
- fx: "50%",
681
- fy: "50%"
682
- }, [
683
- g("stop", {
684
- offset: "0%",
685
- "stop-color": E(c)("#FFFFFF", 1)
686
- }, null, 8, He),
687
- g("stop", {
688
- offset: "80%",
689
- "stop-color": E(c)("#FFFFFF", N.value.style.chart.layout.track.gradientIntensity)
690
- }, null, 8, Ue),
691
- g("stop", {
692
- offset: "100%",
693
- "stop-color": E(c)("#FFFFFF", 1)
694
- }, null, 8, We)
695
- ], 8, Ve)]),
696
- g("defs", null, [g("filter", {
697
- id: `blur_${k.value}`,
698
- x: "-50%",
699
- y: "-50%",
700
- width: "200%",
701
- height: "200%"
702
- }, [g("feGaussianBlur", {
703
- in: "SourceGraphic",
704
- stdDeviation: 100 / N.value.style.chart.layout.track.gradientIntensity
705
- }, null, 8, Ke)], 8, Ge)]),
706
- e.$slots.pattern ? (x(), h("g", qe, [(x(!0), h(d, null, C(X.value, (t, n) => (x(), h("defs", null, [w(e.$slots, "pattern", y({ ref_for: !0 }, {
707
- seriesIndex: n,
708
- patternId: `pattern_${k.value}_${n}`
709
- }), void 0, !0)]))), 256))])) : m("", !0),
710
- (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
711
- key: `arc_${t}`,
712
- d: e.arcSlice,
713
- fill: e.color,
714
- stroke: N.value.style.chart.backgroundColor,
715
- "stroke-linecap": "round"
716
- }, null, 8, Je))), 128)),
717
- e.$slots.pattern ? (x(!0), h(d, { key: 2 }, C(X.value, (e, t) => (x(), h("path", {
718
- key: `arc_${t}`,
719
- d: e.arcSlice,
720
- fill: `url(#pattern_${k.value}_${t})`,
721
- stroke: N.value.style.chart.backgroundColor,
722
- "stroke-linecap": "round"
723
- }, null, 8, Ye))), 128)) : m("", !0),
724
- N.value.style.chart.layout.indicatorArc.show ? (x(), h("path", {
725
- key: 3,
726
- d: nn.value,
727
- fill: N.value.style.chart.layout.indicatorArc.fill
728
- }, null, 8, Xe)) : m("", !0),
729
- N.value.style.chart.layout.segmentNames.show && N.value.style.chart.layout.segmentNames.curved ? (x(), h(d, { key: 4 }, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
730
- id: `curve_${k.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, Ze))), 256)), (x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
734
- fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
735
- "font-size": q.value,
736
- "font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
737
- "text-anchor": "middle"
738
- }, [g("textPath", {
739
- href: `#curve_${k.value}_${t}`,
740
- startOffset: en.value[t]
741
- }, T(e.name || ""), 9, $e)], 8, Qe))), 256))], 64)) : m("", !0),
742
- N.value.style.chart.layout.segmentNames.show && !N.value.style.chart.layout.segmentNames.curved ? (x(!0), h(d, { key: 5 }, C(Xt.value, (e, n) => (x(), h("text", {
743
- class: "vue-ui-gauge-label-flat",
744
- "text-anchor": E(oe)(e, !1, 12).anchor,
745
- fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
746
- "font-size": q.value,
747
- "font-weight": N.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
748
- innerHTML: E(t)({
749
- content: String(e.name ?? ""),
750
- fontSize: q.value,
751
- fill: N.value.style.chart.layout.segmentNames.useSerieColor ? e.color : N.value.style.chart.layout.segmentNames.color,
752
- x: e.center.endX,
753
- y: e.center.endY
754
- })
755
- }, null, 8, et))), 256)) : m("", !0),
756
- N.value.style.chart.layout.track.useGradient ? (x(!0), h(d, { key: 6 }, C(tn.value, (e, t) => (x(), h("path", {
757
- key: `arc_${t}`,
758
- d: e.arcSlice,
759
- fill: "#FFFFFF",
760
- stroke: "none",
761
- "stroke-linecap": "round",
762
- filter: `url(#blur_${k.value})`
763
- }, null, 8, tt))), 128)) : m("", !0),
764
- N.value.style.chart.layout.segmentSeparators.show ? (x(), h(d, { key: 7 }, [
765
- g("line", y(Zt.value, {
766
- stroke: N.value.style.chart.backgroundColor,
767
- "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
768
- "stroke-linecap": "round"
769
- }), null, 16, nt),
770
- g("line", y(Zt.value, {
771
- stroke: N.value.style.chart.layout.segmentSeparators.stroke,
772
- "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
773
- "stroke-linecap": "round"
774
- }), null, 16, rt),
775
- (x(!0), h(d, null, C(Qt.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
776
- stroke: N.value.style.chart.backgroundColor,
777
- "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
778
- "stroke-linecap": "round"
779
- }), null, 16, it))), 256)),
780
- (x(!0), h(d, null, C(Qt.value, (e) => (x(), h("line", y({ ref_for: !0 }, e, {
781
- stroke: N.value.style.chart.layout.segmentSeparators.stroke,
782
- "stroke-width": N.value.style.chart.layout.segmentSeparators.strokeWidth,
783
- "stroke-linecap": "round"
784
- }), null, 16, at))), 256))
785
- ], 64)) : m("", !0),
786
- N.value.style.chart.layout.markers.show ? (x(), h("g", ot, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
787
- x: E(a)({
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: E(a)({
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 * N.value.style.chart.layout.markers.fontSizeRatio,
803
- "font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
804
- fill: N.value.style.chart.layout.markers.color
805
- }, T(E(ie)(N.value.style.chart.layout.markers.formatter, e.from, E(o)({
806
- p: N.value.style.chart.layout.markers.prefix,
807
- v: e.from,
808
- s: N.value.style.chart.layout.markers.suffix,
809
- r: N.value.style.chart.layout.markers.roundingValue
810
- }))), 9, st))), 256))])) : m("", !0),
811
- N.value.style.chart.layout.markers.show ? (x(), h("text", {
812
- key: 9,
813
- x: E(a)({
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: E(a)({
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 * N.value.style.chart.layout.markers.fontSizeRatio,
829
- "font-weight": `${N.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
830
- fill: N.value.style.chart.layout.markers.color
831
- }, T(E(ie)(N.value.style.chart.layout.markers.formatter, V.value, E(o)({
832
- p: N.value.style.chart.layout.markers.prefix,
833
- v: V.value,
834
- s: N.value.style.chart.layout.markers.suffix,
835
- r: N.value.style.chart.layout.markers.roundingValue
836
- }))), 9, ct)) : m("", !0),
837
- N.value.style.chart.layout.pointer.show ? (x(), h(d, { key: 10 }, [N.value.style.chart.layout.pointer.type === "rounded" ? (x(), h("g", lt, [
838
- isNaN(W.value.x2) ? m("", !0) : (x(), h("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: N.value.style.chart.layout.pointer.stroke,
845
- "stroke-width": B.value.pointerStrokeWidth,
846
- "stroke-linecap": "round"
847
- }, null, 8, ut)),
848
- isNaN(W.value.x2) ? m("", !0) : (x(), h("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: N.value.style.chart.layout.pointer.useRatingColor ? Kt.value : N.value.style.chart.layout.pointer.color,
855
- "stroke-linecap": "round",
856
- "stroke-width": B.value.pointerStrokeWidth * .7
857
- }, null, 8, dt)),
858
- !isNaN(W.value.x2) && N.value.style.chart.layout.track.useGradient ? (x(), h("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_${k.value})`
868
- }, null, 8, ft)) : m("", !0)
869
- ])) : (x(), h("g", pt, [Gt.value ? (x(), h("path", {
870
- key: 0,
871
- d: Gt.value,
872
- fill: N.value.style.chart.layout.pointer.useRatingColor ? Kt.value : N.value.style.chart.layout.pointer.color,
873
- stroke: N.value.style.chart.layout.pointer.stroke,
874
- "stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
875
- "stroke-linejoin": "round"
876
- }, null, 8, mt)) : m("", !0)])), g("circle", {
877
- cx: B.value.width / 2,
878
- cy: Y.value.base,
879
- fill: N.value.style.chart.layout.pointer.circle.color,
880
- r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
881
- "stroke-width": N.value.style.chart.layout.pointer.circle.strokeWidth,
882
- stroke: N.value.style.chart.layout.pointer.circle.stroke
883
- }, null, 8, ht)], 64)) : m("", !0),
884
- N.value.style.chart.legend.show ? (x(), h("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: N.value.style.chart.legend.useRatingColor ? Kt.value : N.value.style.chart.legend.color
892
- }, T(E(ie)(N.value.style.chart.legend.formatter, U.value, E(o)({
893
- p: N.value.style.chart.legend.prefix + (N.value.style.chart.legend.showPlusSymbol && U.value > 0 ? "+" : ""),
894
- v: U.value,
895
- s: N.value.style.chart.legend.suffix,
896
- r: N.value.style.chart.legend.roundingValue
897
- }))), 9, gt)) : m("", !0),
898
- w(e.$slots, "svg", { svg: {
899
- ...B.value,
900
- isPrintingImg: E(zt) || E(Bt) || j.value,
901
- isPrintingSvg: M.value
902
- } }, void 0, !0)
903
- ], 14, ze)),
904
- e.$slots.watermark ? (x(), h("div", _t, [w(e.$slots, "watermark", b(v({ isPrinting: E(zt) || E(Bt) || j.value || M.value })), void 0, !0)])) : m("", !0),
905
- g("div", {
906
- ref_key: "chartLegend",
907
- ref: kt
908
- }, [w(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
909
- e.$slots.source ? (x(), h("div", {
910
- key: 5,
911
- ref_key: "source",
912
- ref: At,
913
- dir: "auto"
914
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
915
- w(e.$slots, "skeleton", {}, () => [E(Ft) ? (x(), p(pe, { key: 0 })) : m("", !0)], !0)
916
- ], 46, Le));
917
- }
918
- }, [["__scopeId", "data-v-a2cc058b"]]);
919
- //#endregion
920
- export { Ie as n, vt as t };