vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  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/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, J as n, i as r, kt as i, t as a, zt as o } from "./lib-JqW18y5I.js";
2
+ import { At as t, Bt as n, Y as r, et as i, i as a, t as o } from "./lib-CnHx5WfV.js";
3
3
  import { t as s } from "./useConfig-DYM3f6EI.js";
4
- import { t as c } from "./useNestedProp-DIuuzG1r.js";
4
+ import { t as c } from "./useNestedProp-D8NuRneO.js";
5
5
  import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
6
6
  import { t as u } from "./DefGrad-DVBqDjhO.js";
7
7
  import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, useSlots as D, watch as O, withCtx as k, withKeys as A } from "vue";
@@ -29,20 +29,20 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
29
29
  "mouseleave"
30
30
  ],
31
31
  setup(e, { emit: t }) {
32
- let n = e, r = t;
33
- return (t, i) => (x(), m("div", {
32
+ let r = e, i = t;
33
+ return (t, a) => (x(), m("div", {
34
34
  tabindex: "0",
35
35
  class: v({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
36
36
  style: y({
37
- cursor: e.config.readonly ? "default" : n.isCursorPointer ? "pointer" : "default",
37
+ cursor: e.config.readonly ? "default" : r.isCursorPointer ? "pointer" : "default",
38
38
  height: e.config.style.itemSize + "px",
39
39
  aspectRatio: "1/1",
40
40
  position: "relative"
41
41
  }),
42
- onMouseenter: i[0] ||= (e) => r("mouseenter"),
43
- onMouseleave: i[1] ||= (e) => r("mouseleave"),
44
- onClick: i[2] ||= (t) => r("rate", e.unit),
45
- onKeyup: i[3] ||= A((t) => r("rate", e.unit), ["enter"])
42
+ onMouseenter: a[0] ||= (e) => i("mouseenter"),
43
+ onMouseleave: a[1] ||= (e) => i("mouseleave"),
44
+ onClick: a[2] ||= (t) => i("rate", e.unit),
45
+ onKeyup: a[3] ||= A((t) => i("rate", e.unit), ["enter"])
46
46
  }, [
47
47
  e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (x(), m("div", {
48
48
  key: 0,
@@ -76,7 +76,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
76
76
  ], 4)], 4)) : p("", !0),
77
77
  e.config.style.icons.filled ? (x(), m("svg", {
78
78
  key: 1,
79
- xmlns: E(a),
79
+ xmlns: E(o),
80
80
  style: {
81
81
  transition: "all 0.1s ease-in-out",
82
82
  position: "absolute",
@@ -95,7 +95,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
95
95
  id: `vueUiSmiley${e.unit - 1}`,
96
96
  stops: [[
97
97
  "0%",
98
- E(o)(e.config.style.colors.active[e.unit - 1], .05),
98
+ E(n)(e.config.style.colors.active[e.unit - 1], .05),
99
99
  1
100
100
  ], [
101
101
  "100%",
@@ -120,7 +120,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
120
120
  }, [w(t.$slots, "path-icon", {}, void 0, !0)], 8, M)),
121
121
  e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
122
122
  key: 3,
123
- xmlns: E(a),
123
+ xmlns: E(o),
124
124
  style: {
125
125
  transition: "all 0.1s ease-in-out",
126
126
  position: "absolute",
@@ -139,7 +139,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
139
139
  id: `vueUiSmiley${e.unit - 1}`,
140
140
  stops: [[
141
141
  "0%",
142
- E(o)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
142
+ E(n)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
143
143
  1
144
144
  ], [
145
145
  "100%",
@@ -186,13 +186,13 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
186
186
  }
187
187
  },
188
188
  emits: ["rate"],
189
- setup(e, { expose: a, emit: o }) {
189
+ setup(e, { expose: n, emit: o }) {
190
190
  let { vue_ui_smiley: l } = s(), u = e, v = D(), w = o, E = S(null);
191
191
  b(() => {
192
192
  v["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
193
193
  });
194
194
  function A() {
195
- (!Object.hasOwn(u.dataset, "rating") || i(u.dataset)) && t({
195
+ (!Object.hasOwn(u.dataset, "rating") || t(u.dataset)) && i({
196
196
  componentName: "VueUiSmiley",
197
197
  type: "datasetAttribute",
198
198
  property: "rating"
@@ -273,7 +273,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
273
273
  function q(e) {
274
274
  return j.value.readonly ? j.value.style.colors.inactive[e] : H.value === e + 1 || E.value !== null && E.value === e ? j.value.style.icons.useGradient && j.value.style.icons.filled ? `url(#vueUiSmiley${e})` : j.value.style.colors.active[e] : j.value.style.colors.inactive[e];
275
275
  }
276
- let J = f(() => ({ value: e, tooltip: t = !1 }) => r(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, n({
276
+ let J = f(() => ({ value: e, tooltip: t = !1 }) => a(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, r({
277
277
  v: e,
278
278
  r: t ? j.value.style.tooltip.roundingValue : j.value.style.rating.roundingValue
279
279
  }), j.value));
@@ -286,7 +286,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
286
286
  function Z(e = !0) {
287
287
  U.value = e;
288
288
  }
289
- return a({
289
+ return n({
290
290
  getData: X,
291
291
  toggleReadonly: Z
292
292
  }), (e, t) => (x(), m("div", {
@@ -0,0 +1,443 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, K as n, N as r, Tt as i, Y as a, et as ee, h as te, i as ne, qt as re, t as ie, y as o, zt as s } from "./lib-CnHx5WfV.js";
3
+ import { t as ae } from "./useConfig-DYM3f6EI.js";
4
+ import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
5
+ import { t as c } from "./useNestedProp-D8NuRneO.js";
6
+ import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
+ import { c as le } from "./canvas-lib-BOP_HS11.js";
9
+ import { t as ue } from "./useResponsive-BfnK0KxU.js";
10
+ import { t as de } from "./DefGrad-DVBqDjhO.js";
11
+ import { t as fe } from "./usePrefersMotion-BC-CsqR1.js";
12
+ import { t as pe } from "./useFitSvgText-CT3nmlaS.js";
13
+ import { t as me } from "./vue_ui_spark_trend-DxVmpkmC.js";
14
+ import { computed as u, createBlock as he, createCommentVNode as d, createElementBlock as f, createElementVNode as ge, createVNode as _e, defineAsyncComponent as ve, nextTick as p, normalizeStyle as ye, onMounted as be, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, toRefs as xe, unref as v, watch as y } from "vue";
15
+ //#region src/components/vue-ui-spark-trend.vue
16
+ var b = /* @__PURE__ */ e({ default: () => x }), Se = ["id", "aria-describedby"], Ce = ["id"], we = ["xmlns", "viewBox"], Te = ["width", "height"], Ee = { key: 1 }, De = ["d", "fill"], Oe = ["d", "fill"], ke = [
17
+ "d",
18
+ "stroke",
19
+ "stroke-width",
20
+ "stroke-linecap",
21
+ "stroke-linejoin"
22
+ ], Ae = [
23
+ "d",
24
+ "stroke",
25
+ "stroke-width",
26
+ "stroke-linecap",
27
+ "stroke-linejoin"
28
+ ], je = ["d"], Me = ["fill", "d"], Ne = [
29
+ "x",
30
+ "y",
31
+ "width",
32
+ "height"
33
+ ], Pe = [
34
+ "x",
35
+ "y",
36
+ "fill",
37
+ "font-size",
38
+ "font-weight"
39
+ ], Fe = [
40
+ "stroke",
41
+ "cx",
42
+ "cy",
43
+ "fill"
44
+ ], Ie = [
45
+ "x",
46
+ "y",
47
+ "font-size",
48
+ "fill",
49
+ "font-weight"
50
+ ], x = /*#__PURE__*/ l({
51
+ __name: "vue-ui-spark-trend",
52
+ props: {
53
+ config: {
54
+ type: Object,
55
+ default() {
56
+ return {};
57
+ }
58
+ },
59
+ dataset: {
60
+ type: Array,
61
+ default() {
62
+ return [];
63
+ }
64
+ }
65
+ },
66
+ setup(e) {
67
+ let l = ve(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), { vue_ui_spark_trend: b } = ae(), { isThemeValid: x, warnInvalidTheme: Le } = ce(), S = fe(), C = e, w = h(null), T = h(null), E = h(null), D = h(null), O = h(null), k = h(!1), A = h(null), j = h(n()), M = h(I()), Re = u(() => re({
68
+ defaultConfig: { style: {
69
+ animation: { show: !1 },
70
+ backgroundColor: "#99999930",
71
+ line: {
72
+ stroke: "#6A6A6A",
73
+ useColorTrend: !1
74
+ },
75
+ dataLabel: {
76
+ show: !1,
77
+ useColorTrend: !1,
78
+ color: "#6A6A6A"
79
+ }
80
+ } },
81
+ userConfig: M.value.skeletonConfig ?? {}
82
+ })), { loading: N, FINAL_DATASET: P, manualLoading: F } = oe({
83
+ ...xe(C),
84
+ FINAL_CONFIG: M,
85
+ prepareConfig: I,
86
+ skeletonDataset: C.config?.skeletonDataset ?? [
87
+ 1,
88
+ 2,
89
+ 3,
90
+ 5,
91
+ 8,
92
+ 13,
93
+ 21,
94
+ 34,
95
+ 55,
96
+ 89,
97
+ 144,
98
+ 233
99
+ ],
100
+ skeletonConfig: re({
101
+ defaultConfig: M.value,
102
+ userConfig: Re.value
103
+ })
104
+ });
105
+ function I() {
106
+ let e = c({
107
+ userConfig: C.config,
108
+ defaultConfig: b
109
+ }), t = e.theme;
110
+ if (!t) return e;
111
+ if (!x.value(e)) return Le(e), e;
112
+ let n = c({
113
+ userConfig: me[t] || C.config,
114
+ defaultConfig: e
115
+ });
116
+ return c({
117
+ userConfig: C.config,
118
+ defaultConfig: n
119
+ });
120
+ }
121
+ let L = u(() => i({
122
+ data: P.value,
123
+ threshold: M.value.downsample.threshold
124
+ }));
125
+ y(() => C.config, (e) => {
126
+ M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
127
+ }, { deep: !0 });
128
+ function R(e) {
129
+ return e.map((e) => o(e));
130
+ }
131
+ let z = h(i({
132
+ data: P.value,
133
+ threshold: M.value.downsample.threshold
134
+ }).map((e) => M.value.style.animation.show && !S.value || [
135
+ void 0,
136
+ Infinity,
137
+ -Infinity,
138
+ null,
139
+ NaN
140
+ ].includes(e) ? null : e));
141
+ y(L, (e) => {
142
+ A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !S.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
143
+ void 0,
144
+ Infinity,
145
+ -Infinity,
146
+ null
147
+ ].includes(e) && !Number.isNaN(e) ? e : null), B(), p(() => $(".vue-ui-sparktrend-progress-label", 6));
148
+ }, {
149
+ deep: !0,
150
+ immediate: !0
151
+ }), y(() => JSON.stringify(C.dataset), () => {
152
+ A.value &&= (cancelAnimationFrame(A.value), null), F.value = t(C.dataset);
153
+ let e = L.value;
154
+ z.value = M.value.style.animation.show && !S.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), p(() => $(".vue-ui-sparktrend-progress-label", 6));
155
+ }, {
156
+ deep: !1,
157
+ immediate: !0
158
+ });
159
+ function B() {
160
+ let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
161
+ if (!N.value && M.value.style.animation.show && !S.value && M.value.style.animation.animationFrames && P.value.length > 1) {
162
+ z.value = [];
163
+ let n = 0;
164
+ function r() {
165
+ k.value = !0;
166
+ let i = performance.now(), a = i - t;
167
+ a > e ? (t = i - a % e, n < L.value.length ? (z.value.push(L.value[n]), n += 1, A.value = requestAnimationFrame(r)) : (cancelAnimationFrame(A.value), z.value = R(L.value), k.value = !1, $(".vue-ui-sparktrend-progress-label", 6))) : A.value = requestAnimationFrame(r);
168
+ }
169
+ r();
170
+ }
171
+ }
172
+ be(() => {
173
+ V();
174
+ });
175
+ let ze = u(() => M.value.debug);
176
+ function V() {
177
+ if (t(C.dataset) && (ee({
178
+ componentName: "VueUiSparkTrend",
179
+ type: "dataset",
180
+ debug: ze.value
181
+ }), F.value = !0), t(C.dataset) || (F.value = !1), M.value.responsive) {
182
+ let e = le(() => {
183
+ let { width: e, height: t } = ue({
184
+ chart: w.value,
185
+ source: E.value
186
+ });
187
+ requestAnimationFrame(() => {
188
+ H.value = e, U.value = t;
189
+ });
190
+ });
191
+ D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = w.value.parentNode, D.value.observe(O.value);
192
+ }
193
+ B(), $(".vue-ui-sparktrend-progress-label", 6);
194
+ }
195
+ let H = h(M.value.style.width), U = h(M.value.style.height), W = u(() => ({
196
+ height: U.value,
197
+ width: H.value
198
+ })), G = u(() => ({
199
+ top: M.value.style.padding.top,
200
+ left: M.value.style.padding.left,
201
+ right: W.value.width - M.value.style.padding.right,
202
+ bottom: W.value.height - M.value.style.padding.bottom,
203
+ height: W.value.height - (M.value.style.padding.top + M.value.style.padding.bottom) - (M.value.style.dataLabel.show ? M.value.style.dataLabel.fontSize : 0),
204
+ width: W.value.width - (M.value.style.padding.left + M.value.style.padding.right)
205
+ })), K = u(() => {
206
+ let e = R(L.value).filter(Number.isFinite);
207
+ if (!e.length) return {
208
+ max: 0,
209
+ min: 0
210
+ };
211
+ let t = e[0], n = e[0];
212
+ for (let r = 1; r < e.length; r++) {
213
+ let i = e[r];
214
+ i > t && (t = i), i < n && (n = i);
215
+ }
216
+ return {
217
+ max: t,
218
+ min: n
219
+ };
220
+ }), Be = u(() => {
221
+ let e = L.value, t = e.length ? e[e.length - 1] : "x";
222
+ return [
223
+ j.value,
224
+ e.length,
225
+ Number.isFinite(t) ? t : "x",
226
+ M.value.downsample.threshold,
227
+ M.value.style.line.smooth ? "s" : "l"
228
+ ].join("-");
229
+ }), q = u(() => {
230
+ let e = K.value.min >= 0 ? 0 : K.value.min;
231
+ return Math.abs(e);
232
+ }), Ve = u(() => K.value.max + q.value);
233
+ function He(e) {
234
+ return e / Ve.value;
235
+ }
236
+ let Ue = u(() => L.value.length), J = u(() => z.value.map((e, t) => {
237
+ let n = isNaN(e) || [
238
+ void 0,
239
+ null,
240
+ "NaN",
241
+ NaN,
242
+ Infinity,
243
+ -Infinity
244
+ ].includes(e) ? 0 : e || 0;
245
+ return {
246
+ value: o(e),
247
+ absoluteValue: o(n),
248
+ plotValue: o(n + q.value),
249
+ toMax: He(n + q.value),
250
+ x: G.value.left + o(t * (G.value.width / (Ue.value - 1))) - M.value.style.padding.right,
251
+ y: G.value.bottom - o(G.value.height * He(n + q.value))
252
+ };
253
+ })), Y = u(() => {
254
+ let e = R(L.value);
255
+ return M.value.style.trendLabel.trendType === "global" ? te(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
256
+ }), X = u(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = u(() => M.value.style.arrow.colors[X.value]), We = u(() => {
257
+ let e = {
258
+ x: J.value[0].x,
259
+ y: W.value.height - 6
260
+ }, t = {
261
+ x: J.value[J.value.length - 1].x,
262
+ y: W.value.height - 6
263
+ }, n = [];
264
+ return J.value.forEach((e) => {
265
+ n.push(`${e.x},${e.y} `);
266
+ }), [
267
+ e.x,
268
+ e.y,
269
+ ...n,
270
+ t.x,
271
+ t.y
272
+ ].toString();
273
+ }), Ge = u(() => {
274
+ let e = [];
275
+ return J.value.forEach((t) => {
276
+ e.push(`${t.x},${t.y} `);
277
+ }), `M ${e.toString()}`;
278
+ }), Q = u(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = pe({
279
+ svgRef: T,
280
+ unitWidth: u(() => G.value.left * .8),
281
+ fontSize: M.value.style.trendLabel.fontSize
282
+ }), Ke = u(() => {
283
+ if (N.value || k.value) return "Trend chart loading";
284
+ let e = J.value?.at(-1), t = e?.value, n = a({
285
+ p: Y.value > 0 ? "+" : "",
286
+ v: Y.value,
287
+ s: "%",
288
+ r: M.value.style.trendLabel.rounding
289
+ }), r = t == null ? "not available" : ne(M.value.style.dataLabel.formatter, t, a({
290
+ p: M.value.style.dataLabel.prefix,
291
+ v: t,
292
+ s: M.value.style.dataLabel.suffix,
293
+ r: M.value.style.dataLabel.rounding
294
+ }), { datapoint: e });
295
+ return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${r}.`;
296
+ }), qe = u(() => `sparktrend-a11y-${j.value}`);
297
+ return (e, t) => (m(), f("div", {
298
+ ref_key: "sparkTrendChart",
299
+ ref: w,
300
+ class: "vue-data-ui-component vue-ui-spark-trend",
301
+ id: j.value,
302
+ style: ye(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
303
+ role: "img",
304
+ "aria-describedby": qe.value
305
+ }, [
306
+ ge("p", {
307
+ id: qe.value,
308
+ class: "sr-only",
309
+ "aria-live": "polite"
310
+ }, _(Ke.value), 9, Ce),
311
+ (m(), f("svg", {
312
+ key: Be.value,
313
+ ref_key: "svgRef",
314
+ ref: T,
315
+ xmlns: v(ie),
316
+ viewBox: `0 0 ${W.value.width} ${W.value.height}`,
317
+ style: "width:100%;background:transparent;overflow:visible",
318
+ "aria-hidden": "true"
319
+ }, [
320
+ _e(v(l)),
321
+ e.$slots["chart-background"] ? (m(), f("foreignObject", {
322
+ key: 0,
323
+ x: 0,
324
+ y: 0,
325
+ width: W.value.width <= 0 ? 10 : W.value.width,
326
+ height: W.value.height <= 0 ? 10 : W.value.height,
327
+ style: { pointerEvents: "none" }
328
+ }, [g(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : d("", !0),
329
+ ge("defs", null, [_e(de, {
330
+ t: "linear",
331
+ x1: "0%",
332
+ y1: "0%",
333
+ x2: "0%",
334
+ y2: "100%",
335
+ id: `pill_gradient_${j.value}`,
336
+ stops: [[
337
+ "0%",
338
+ v(s)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
339
+ 1
340
+ ], [
341
+ "100%",
342
+ M.value.style.backgroundColor,
343
+ 1
344
+ ]]
345
+ }, null, 8, ["id", "stops"])]),
346
+ M.value.style.area.show && J.value[0] ? (m(), f("g", Ee, [M.value.style.line.smooth ? (m(), f("path", {
347
+ key: 0,
348
+ d: `M ${J.value[0].x},${G.value.bottom} ${v(r)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
349
+ fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : v(s)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
350
+ stroke: "none"
351
+ }, null, 8, De)) : (m(), f("path", {
352
+ key: 1,
353
+ d: `M${We.value}Z`,
354
+ fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : v(s)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
355
+ stroke: "none"
356
+ }, null, 8, Oe))])) : d("", !0),
357
+ M.value.style.line.smooth && J.value.length ? (m(), f("path", {
358
+ key: 2,
359
+ d: `M ${v(r)(J.value)}`,
360
+ stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
361
+ fill: "none",
362
+ "stroke-width": M.value.style.line.strokeWidth,
363
+ "stroke-linecap": M.value.style.line.strokeLinecap,
364
+ "stroke-linejoin": M.value.style.line.strokeLinejoin
365
+ }, null, 8, ke)) : d("", !0),
366
+ !M.value.style.line.smooth && J.value.length ? (m(), f("path", {
367
+ key: 3,
368
+ d: Ge.value,
369
+ stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
370
+ fill: "none",
371
+ "stroke-width": M.value.style.line.strokeWidth,
372
+ "stroke-linecap": M.value.style.line.strokeLinecap,
373
+ "stroke-linejoin": M.value.style.line.strokeLinejoin
374
+ }, null, 8, Ae)) : d("", !0),
375
+ v(N) ? (m(), f("path", {
376
+ key: 4,
377
+ fill: "#6A6A6A",
378
+ d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
379
+ }, null, 8, je)) : (m(), f("path", {
380
+ key: 5,
381
+ fill: Z.value,
382
+ d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
383
+ }, null, 8, Me)),
384
+ v(N) ? (m(), f("rect", {
385
+ key: 6,
386
+ x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
387
+ y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
388
+ width: M.value.style.trendLabel.fontSize * 2,
389
+ height: M.value.style.trendLabel.fontSize,
390
+ fill: "#6A6A6A80",
391
+ rx: "3"
392
+ }, null, 8, Ne)) : d("", !0),
393
+ !k.value && !v(N) ? (m(), f("text", {
394
+ key: 7,
395
+ class: "vue-ui-sparktrend-progress-label",
396
+ x: G.value.left / 2,
397
+ y: U.value / 2 + M.value.style.trendLabel.fontSize * 2,
398
+ "text-anchor": "middle",
399
+ fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
400
+ "font-size": M.value.style.trendLabel.fontSize,
401
+ "font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
402
+ }, _(v(a)({
403
+ p: Y.value > 0 ? "+" : "",
404
+ v: Y.value,
405
+ s: "%",
406
+ r: M.value.style.trendLabel.rounding
407
+ })), 9, Pe)) : d("", !0),
408
+ J.value.length && J.value.at(-1).x !== void 0 ? (m(), f("circle", {
409
+ key: 8,
410
+ stroke: M.value.style.backgroundColor,
411
+ "stroke-width": 2,
412
+ cx: J.value.at(-1).x,
413
+ cy: J.value.at(-1).y,
414
+ r: 4,
415
+ fill: v(N) ? "#6A6A6A" : Z.value
416
+ }, null, 8, Fe)) : d("", !0),
417
+ J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (m(), f("text", {
418
+ key: 9,
419
+ "text-anchor": "middle",
420
+ x: J.value.at(-1).x,
421
+ y: J.value.at(-1).y - M.value.style.dataLabel.fontSize / 1.5,
422
+ "font-size": M.value.style.dataLabel.fontSize,
423
+ fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
424
+ "font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
425
+ }, _(v(ne)(M.value.style.dataLabel.formatter, J.value.at(-1).value, v(a)({
426
+ p: M.value.style.dataLabel.prefix,
427
+ v: J.value.at(-1).value,
428
+ s: M.value.style.dataLabel.suffix,
429
+ r: M.value.style.dataLabel.rounding
430
+ }), { datapoint: J.value.at(-1) })), 9, Ie)) : d("", !0)
431
+ ], 8, we)),
432
+ e.$slots.source ? (m(), f("div", {
433
+ key: 0,
434
+ ref_key: "source",
435
+ ref: E,
436
+ dir: "auto"
437
+ }, [g(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
438
+ g(e.$slots, "skeleton", {}, () => [v(N) ? (m(), he(se, { key: 0 })) : d("", !0)], !0)
439
+ ], 12, Se));
440
+ }
441
+ }, [["__scopeId", "data-v-5fbf0886"]]);
442
+ //#endregion
443
+ export { b as n, x as t };