vue-data-ui 3.20.11 → 3.21.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 (195) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/PackageVersion-C19kRMwz.js +12 -0
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/package-2loQetAS.js +4 -0
  94. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  95. package/dist/render-common-ZYTBPta1.js +152 -0
  96. package/dist/ssr/vue-ui-donut.js +2 -0
  97. package/dist/ssr/vue-ui-xy.js +2 -0
  98. package/dist/ssr.js +3 -0
  99. package/dist/types/ssr.d.ts +182 -0
  100. package/dist/types/vue-data-ui.d.ts +135 -1
  101. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  102. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  103. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  104. package/dist/utils.js +8 -8
  105. package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-Pk8ey2Zp.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-VTeR1mZx.js +1757 -0
  108. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  109. package/dist/vue-ui-age-pyramid-xEOXbRHP.js +1238 -0
  110. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  111. package/dist/vue-ui-bullet-CrZLxzj_.js +710 -0
  112. package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-CTgHWBol.js} +253 -253
  113. package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-BnlUMIhy.js} +276 -276
  114. package/dist/vue-ui-carousel-table-CUCUCXKo.js +455 -0
  115. package/dist/vue-ui-chestnut-duBljSlu.js +2010 -0
  116. package/dist/vue-ui-chord-Bj4slh-a.js +1391 -0
  117. package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-i8NWuWRC.js} +36 -36
  118. package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-gsK2MfeA.js} +3 -3
  119. package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-D1iHafKn.js} +20 -20
  120. package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CHGG2h_R.js} +69 -69
  121. package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-L0CQHwNC.js} +3 -3
  122. package/dist/vue-ui-donut-BvdCujBD.js +973 -0
  123. package/dist/vue-ui-donut-DZI7-m5W.js +2410 -0
  124. package/dist/vue-ui-donut-evolution-6Swt5Bfu.js +1510 -0
  125. package/dist/vue-ui-dumbbell-Du7kYvcj.js +1530 -0
  126. package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-CCuIvxey.js} +57 -57
  127. package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-CjGDyxgn.js} +32 -32
  128. package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-CgfJo8YL.js} +330 -330
  129. package/dist/vue-ui-gauge-CQOlEqFH.js +920 -0
  130. package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-BDmUqZzA.js} +18 -18
  131. package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-C5TF8RsA.js} +62 -62
  132. package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-DNfexjVQ.js} +264 -264
  133. package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-BsRlZ3Ch.js} +74 -74
  134. package/dist/vue-ui-horizontal-bar-B3FVEoEc.js +1681 -0
  135. package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-DvNkTrdr.js} +3 -3
  136. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  137. package/dist/vue-ui-molecule-B-SSu23l.js +925 -0
  138. package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-C0uBZS5M.js} +21 -21
  139. package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CvOcH0kV.js} +256 -256
  140. package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-DtQBdJrD.js} +45 -45
  141. package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-Bg2tSMri.js} +39 -39
  142. package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-aMfV7BCQ.js} +355 -355
  143. package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-B9E9JbtT.js} +359 -359
  144. package/dist/vue-ui-radar-C3sVf4Kk.js +1229 -0
  145. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  146. package/dist/vue-ui-relation-circle-Bh8gBtow.js +924 -0
  147. package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CvON901U.js} +54 -54
  148. package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-2oM3ddqR.js} +81 -81
  149. package/dist/vue-ui-scatter-DJJ6I8jn.js +2413 -0
  150. package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-CUf4LhWq.js} +41 -41
  151. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  152. package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-5EbTK8CN.js} +27 -27
  153. package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-V1Q7yOzO.js} +83 -83
  154. package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-DVFBXPs-.js} +44 -44
  155. package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram--mzKP-M1.js} +110 -110
  156. package/dist/vue-ui-sparkline-IbMn1jAF.js +1507 -0
  157. package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-BehvXszi.js} +155 -155
  158. package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-D--yXf7n.js} +81 -81
  159. package/dist/vue-ui-stackline-DI2_W85f.js +2398 -0
  160. package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-D243ak4S.js} +90 -90
  161. package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-ChiyCBKh.js} +78 -78
  162. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  163. package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-BN4D7tBN.js} +22 -22
  164. package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CV4l5Sjx.js} +21 -21
  165. package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-DtvtZpm0.js} +23 -23
  166. package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-Bk3Cy8YN.js} +19 -19
  167. package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-CU7kBoiL.js} +65 -65
  168. package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-CIevmSko.js} +232 -232
  169. package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-CFkx_bUf.js} +36 -36
  170. package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-DJ7e4RZy.js} +35 -35
  171. package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-Cng3zjSW.js} +445 -445
  172. package/dist/vue-ui-xy-B8jNN9dy.js +4744 -0
  173. package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  174. package/dist/vue-ui-xy-yPqdWpyW.js +1263 -0
  175. package/package.json +5 -1
  176. package/dist/PackageVersion-eS823iMF.js +0 -11
  177. package/dist/exposedLib-CI8ji8G-.js +0 -19
  178. package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
  179. package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
  180. package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
  181. package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
  182. package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
  183. package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
  184. package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
  185. package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
  186. package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
  187. package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
  188. package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
  189. package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
  190. package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
  191. package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
  192. package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
  193. package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
  194. package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
  195. package/dist/vue-ui-xy-omDIF90L.js +0 -4744
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-wheel-BjdVO5f4.js";
1
+ import { t as e } from "../vue-ui-wheel-CFkx_bUf.js";
2
2
  export { e as VueUiWheel, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-word-cloud-hhjEM6ee.js";
1
+ import { t as e } from "../vue-ui-word-cloud-DJ7e4RZy.js";
2
2
  export { e as VueUiWordCloud, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-world-H9HX6smc.js";
1
+ import { t as e } from "../vue-ui-world-Cng3zjSW.js";
2
2
  export { e as VueUiWorld, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-xy-canvas-kbP-mjEo.js";
1
+ import { t as e } from "../vue-ui-xy-canvas-DjxM7y3T.js";
2
2
  export { e as VueUiXyCanvas, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-xy-omDIF90L.js";
1
+ import { t as e } from "../vue-ui-xy-B8jNN9dy.js";
2
2
  export { e as VueUiXy, e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./lib-DUeYQsS0.js";
1
+ import { t as e } from "./lib-AJRHFE5U.js";
2
2
  //#region src/dom-to-png.js
3
3
  async function t(e) {
4
4
  let t = e.querySelectorAll("img"), n = Array.from(t).map((e) => new Promise((t) => {
@@ -0,0 +1,19 @@
1
+ import { Ft as e, Ht as t, St as n, W as r, y as i } from "./lib-AJRHFE5U.js";
2
+ //#region src/exposedLib.js
3
+ function a(e, t) {
4
+ return n(i(e), t);
5
+ }
6
+ function o(e, t) {
7
+ return r(i(e), t);
8
+ }
9
+ function s(t, n) {
10
+ return e(i(t), n);
11
+ }
12
+ function c({ defaultConfig: e, userConfig: n }) {
13
+ return t({
14
+ defaultConfig: e,
15
+ userConfig: n
16
+ });
17
+ }
18
+ //#endregion
19
+ export { s as i, a as n, c as r, o as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./dom-to-png-BYtB4BF3.js";
2
+ import { t } from "./dom-to-png-CtV3uxDJ.js";
3
3
  //#region src/img.js
4
4
  var n = /* @__PURE__ */ e({ default: () => r });
5
5
  async function r({ domElement: e, fileName: n, format: r = "png", scale: i = 2, base64: a = !1, img: o = !1 }) {
@@ -1,4 +1,4 @@
1
- import { Dt as e } from "./lib-DUeYQsS0.js";
1
+ import { kt as e } from "./lib-AJRHFE5U.js";
2
2
  //#region src/labelUtils.js
3
3
  function t({ config: t = {
4
4
  useValueParens: !1,
@@ -1835,9 +1835,15 @@ var jt = At((e, t, n, r, i, a, o, s) => {
1835
1835
  }));
1836
1836
  });
1837
1837
  function Mt(e) {
1838
- return String(e).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
1838
+ return String(e).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1839
1839
  }
1840
1840
  function $(e) {
1841
+ return String(e).replaceAll("&", "&amp;").replaceAll("\"", "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1842
+ }
1843
+ function Nt(e) {
1844
+ return String(e).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
1845
+ }
1846
+ function Pt(e) {
1841
1847
  if (!e || typeof e != "string") return null;
1842
1848
  let t = document.createElementNS(K, "svg");
1843
1849
  t.setAttribute("xmlns", K);
@@ -1849,13 +1855,13 @@ function $(e) {
1849
1855
  y: i.y
1850
1856
  };
1851
1857
  }
1852
- function Nt(e, t = "(", n = ")") {
1858
+ function Ft(e, t = "(", n = ")") {
1853
1859
  return `${t}${e}${n}`;
1854
1860
  }
1855
- function Pt(e, t) {
1861
+ function It(e, t) {
1856
1862
  return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
1857
1863
  }
1858
- function Ft(e, t, n) {
1864
+ function Lt(e, t, n) {
1859
1865
  if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
1860
1866
  if (n.createSVGPoint && n.getScreenCTM) {
1861
1867
  let r = n.createSVGPoint();
@@ -1875,8 +1881,8 @@ function Ft(e, t, n) {
1875
1881
  y: r.top + t
1876
1882
  };
1877
1883
  }
1878
- function It(e) {
1884
+ function Rt(e) {
1879
1885
  return e != null && Number.isFinite(Number(e));
1880
1886
  }
1881
1887
  //#endregion
1882
- export { U as $, z as A, Xe as At, q as B, l as Bt, nt as C, ke as Ct, A as D, Nt as Dt, Qe as E, g as Et, L as F, ge as Ft, Te as G, B as H, kt as Ht, I, Ke as It, ve as J, J as K, lt as L, Ft as Lt, gt as M, Ze as Mt, Pe as N, re as Nt, _t as O, rt as Ot, oe as P, vt as Pt, Tt as Q, ut as R, v as Rt, ye as S, _e as St, st as T, y as Tt, He as U, Et as Ut, ze as V, Ot as Vt, xe as W, Ae as X, bt as Y, Mt as Z, he as _, $e as _t, Ue as a, Re as at, F as b, be as bt, Dt as c, We as ct, H as d, Ye as dt, m as et, fe as f, we as ft, Ce as g, f as gt, Se as h, It as ht, Je as i, St as it, dt as j, Pt as jt, R as k, it as kt, de as l, $ as lt, Le as m, p as mt, Ee as n, Oe as nt, Ct as o, Fe as ot, me as p, De as pt, Q as q, ue as r, xt as rt, jt as s, _ as st, K as t, wt as tt, V as u, se as ut, h as v, et as vt, ot as w, pe as wt, Ve as x, i as xt, b as y, tt as yt, Be as z, Ge as zt };
1888
+ export { $, z as A, rt as At, q as B, v as Bt, nt as C, i as Ct, A as D, y as Dt, Qe as E, pe as Et, L as F, re as Ft, Te as G, Et as Gt, B as H, l as Ht, I, vt as It, ve as J, J as K, lt as L, ge as Lt, gt as M, Xe as Mt, Pe as N, It as Nt, _t as O, g as Ot, oe as P, Ze as Pt, Mt as Q, ut as R, Ke as Rt, ye as S, be as St, st as T, ke as Tt, He as U, Ot as Ut, ze as V, Ge as Vt, xe as W, kt as Wt, Ae as X, bt as Y, Nt as Z, he as _, Rt as _t, Ue as a, xt as at, F as b, et as bt, Dt as c, Fe as ct, H as d, Pt as dt, Tt as et, fe as f, se as ft, Ce as g, p as gt, Se as h, De as ht, Je as i, Oe as it, dt as j, it as jt, R as k, Ft as kt, de as l, _ as lt, Le as m, we as mt, Ee as n, m as nt, Ct as o, St as ot, me as p, Ye as pt, Q as q, ue as r, wt as rt, jt as s, Re as st, K as t, U as tt, V as u, We as ut, h as v, f as vt, ot as w, _e as wt, Ve as x, tt as xt, b as y, $e as yt, Be as z, Lt as zt };
@@ -0,0 +1,4 @@
1
+ //#region package.json
2
+ var e = "3.21.1";
3
+ //#endregion
4
+ export { e as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./dom-to-png-BYtB4BF3.js";
1
+ import { t as e } from "./dom-to-png-CtV3uxDJ.js";
2
2
  //#region src/pdf.js
3
3
  async function t({ domElement: t, fileName: n, scale: r = 2, orientation: i = "auto", overflowTolerance: a = .2, aspectRatio: o = null }) {
4
4
  if (!t) return Promise.reject("No domElement provided");
@@ -0,0 +1,152 @@
1
+ import { $ as e, D as t, P as n, Q as r, y as i } from "./lib-AJRHFE5U.js";
2
+ import { t as a } from "./package-2loQetAS.js";
3
+ //#region src/svg/utils/index.js
4
+ function o(e, t = 0) {
5
+ let n = Number(e);
6
+ return Number.isFinite(n) ? n : t;
7
+ }
8
+ function s(e) {
9
+ return Array.isArray(e) ? e : [];
10
+ }
11
+ function c(e) {
12
+ return Number.isFinite(Number(e));
13
+ }
14
+ function l(t, n = {}, r = "") {
15
+ let i = Object.entries(n).filter(([, e]) => e != null && e !== !1).map(([t, n]) => `${t}="${e(n)}"`).join(" ");
16
+ return `<${t}${i ? ` ${i}` : ""}>${r}</${t}>`;
17
+ }
18
+ function u(t, n = {}) {
19
+ let r = Object.entries(n).filter(([, e]) => e != null && e !== !1).map(([t, n]) => `${t}="${e(n)}"`).join(" ");
20
+ return `<${t}${r ? ` ${r}` : ""}/>`;
21
+ }
22
+ function d(e, t = {}) {
23
+ return l("text", t, r(e ?? ""));
24
+ }
25
+ function f(e) {
26
+ return [
27
+ "triangle",
28
+ "square",
29
+ "diamond",
30
+ "pentagon",
31
+ "hexagon",
32
+ "star"
33
+ ].includes(e) ? e : "circle";
34
+ }
35
+ function p({ dataCy: e, shape: r, plot: i, radius: a, fill: s, stroke: c, strokeWidth: l }) {
36
+ let d = f(r), p = o(i.x, 0), m = o(i.y, 0), h = o(a, 4);
37
+ if (d === "circle") return u("circle", {
38
+ "data-cy": e,
39
+ cx: p,
40
+ cy: m,
41
+ r: h,
42
+ fill: s,
43
+ stroke: c,
44
+ "stroke-width": l
45
+ });
46
+ if (d === "star") return u("polygon", {
47
+ "data-cy": e,
48
+ points: n({
49
+ plot: {
50
+ x: p,
51
+ y: m
52
+ },
53
+ radius: h
54
+ }),
55
+ fill: s,
56
+ stroke: c,
57
+ "stroke-width": l
58
+ });
59
+ let g = {
60
+ triangle: {
61
+ sides: 3,
62
+ rotation: .52
63
+ },
64
+ square: {
65
+ sides: 4,
66
+ rotation: .8
67
+ },
68
+ diamond: {
69
+ sides: 4,
70
+ rotation: 0
71
+ },
72
+ pentagon: {
73
+ sides: 5,
74
+ rotation: .95
75
+ },
76
+ hexagon: {
77
+ sides: 6,
78
+ rotation: 0
79
+ }
80
+ }[d];
81
+ return u("path", {
82
+ "data-cy": e,
83
+ d: t({
84
+ plot: {
85
+ x: p,
86
+ y: m
87
+ },
88
+ radius: h,
89
+ sides: g.sides,
90
+ rotation: g.rotation
91
+ }).path,
92
+ fill: s,
93
+ stroke: c,
94
+ "stroke-width": l
95
+ });
96
+ }
97
+ function m(e, t, n) {
98
+ let r = e;
99
+ for (let e of t.split(".")) {
100
+ if (!r || typeof r != "object" || !(e in r)) return n;
101
+ r = r[e];
102
+ }
103
+ return r ?? n;
104
+ }
105
+ function h(e, t) {
106
+ return String(e ?? "").length * t * .58;
107
+ }
108
+ //#endregion
109
+ //#region src/svg/utils/render-common.js
110
+ function g(e, t, n) {
111
+ let r = m(e, `style.chart.${t}`, void 0);
112
+ return r === void 0 ? m(e, `chart.${t}`, n) : r;
113
+ }
114
+ function _(e, t, n) {
115
+ let r = m(e, t, void 0);
116
+ return r === void 0 ? g(e, t, n) : r;
117
+ }
118
+ function v(e, t = "#000000") {
119
+ return i(e) || e || t;
120
+ }
121
+ function y(e, t = "#FFFFFF") {
122
+ return v(g(e, "backgroundColor", t), t);
123
+ }
124
+ function b(e, t = "#2D353C") {
125
+ return v(g(e, "color", t), t);
126
+ }
127
+ function x(e, t) {
128
+ return u("rect", {
129
+ width: e.width,
130
+ height: e.height,
131
+ fill: t ?? y(e.config)
132
+ });
133
+ }
134
+ function S({ content: e, x: t, fontSize: n, fill: i, textAnchor: a }) {
135
+ return String(e).split(/\n/g).map((e, o) => l("tspan", {
136
+ x: t,
137
+ dy: o === 0 ? 0 : n * 1.2,
138
+ fill: i,
139
+ "text-anchor": a
140
+ }, r(e))).join("");
141
+ }
142
+ function C(e, t) {
143
+ return String(e).split("").reduce((e, n) => n === " " ? e + t * .28 : "ilI.,:;|!".includes(n) ? e + t * .24 : "()[]{}".includes(n) ? e + t * .34 : "0123456789%/".includes(n) ? e + t * .5 : n === n.toUpperCase() && /[A-Z]/.test(n) ? e + t * .62 : e + t * .52, 0);
144
+ }
145
+ function w(e) {
146
+ return e.svgTitle ? l("desc", { "aria-hidden": "true" }, r(e.svgTitle)) : "";
147
+ }
148
+ function T() {
149
+ return `<desc aria-hidden="true">Composed with Vue Data UI ${a}</desc>`;
150
+ }
151
+ //#endregion
152
+ export { o as _, g as a, w as c, u as d, h as f, s as g, p as h, _ as i, T as l, c as m, C as n, v as o, m as p, b as r, x as s, S as t, l as u, d as v };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../vue-ui-donut-BvdCujBD.js";
2
+ export { e as createStaticVueUiDonut };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../vue-ui-xy-yPqdWpyW.js";
2
+ export { e as createStaticVueUiXy };
package/dist/ssr.js ADDED
@@ -0,0 +1,3 @@
1
+ import { t as e } from "./vue-ui-xy-yPqdWpyW.js";
2
+ import { t } from "./vue-ui-donut-BvdCujBD.js";
3
+ export { t as createStaticVueUiDonut, e as createStaticVueUiXy };
@@ -0,0 +1,182 @@
1
+ import type {
2
+ VueUiXyDatasetItem,
3
+ VueUiXyConfig,
4
+ VueUiDonutDatasetItem,
5
+ VueUiDonutConfig,
6
+ VueUiDonutDatapoint,
7
+ } from 'vue-data-ui';
8
+
9
+ export type {
10
+ VueUiXyDatasetItem,
11
+ VueUiXyConfig,
12
+ VueUiDonutDatasetItem,
13
+ VueUiDonutConfig,
14
+ VueUiDonutDatapoint,
15
+ };
16
+
17
+ export type VueUiXyAdditionalSvgContentContext = {
18
+ width: number;
19
+ height: number;
20
+ drawingArea: {
21
+ top: number;
22
+ right: number;
23
+ bottom: number;
24
+ left: number;
25
+ width: number;
26
+ height: number;
27
+ scaleLabelX?: number;
28
+ rightScaleLabelX?: number;
29
+ scaleLabelsOffset?: number;
30
+ yAxisLabelWidth?: number;
31
+ individualOffsetX?: number;
32
+ };
33
+ scale: {
34
+ min: number;
35
+ max: number;
36
+ tickSize: number;
37
+ ticks: number[];
38
+ };
39
+ config: VueUiXyConfig;
40
+ series: Array<
41
+ VueUiXyDatasetItem & {
42
+ color: string;
43
+ type: 'line' | 'bar' | 'plot';
44
+ plots: Array<{
45
+ x: number;
46
+ y: number | null;
47
+ value: number | null;
48
+ index: number;
49
+ label: string;
50
+ __barLabelX?: number;
51
+ }>;
52
+ }
53
+ >;
54
+ };
55
+
56
+ export type VueUiXyAdditionalSvgContent =
57
+ | string
58
+ | ((
59
+ context: VueUiXyAdditionalSvgContentContext,
60
+ ) => string | null | undefined);
61
+
62
+ export type RenderStaticVueUiXyState = {
63
+ dataset: VueUiXyDatasetItem[];
64
+ config?: VueUiXyConfig;
65
+ width?: number;
66
+ height?: number;
67
+ svgTitle?: string;
68
+ additionalSvgContent?: VueUiXyAdditionalSvgContent;
69
+ };
70
+
71
+ /**
72
+ * Generates a static SVG representation of a VueUiXy chart.
73
+ *
74
+ * This function is designed for server-side rendering and returns a complete
75
+ * SVG string that can be embedded directly into HTML, saved to a file, or
76
+ * converted to other formats such as PNG or PDF.
77
+ *
78
+ * The input state accepts the same dataset and configuration options as the
79
+ * VueUiXy component, along with optional rendering dimensions and custom SVG
80
+ * injections via `additionalSvgContent`.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * import { createStaticVueUiXy } from 'vue-data-ui';
85
+ *
86
+ * const svg = await createStaticVueUiXy({
87
+ * dataset: [
88
+ * {
89
+ * name: 'Sales',
90
+ * type: 'line',
91
+ * series: [12, 18, 25, 21, 30]
92
+ * }
93
+ * ],
94
+ * config: {
95
+ * chart: {
96
+ * title: {
97
+ * text: 'Monthly Sales'
98
+ * }
99
+ * }
100
+ * },
101
+ * });
102
+ *
103
+ * console.log(svg);
104
+ * ```
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const svg = await createStaticVueUiXy({
109
+ * dataset,
110
+ * config,
111
+ * additionalSvgContent: ({ series }) => {
112
+ * return series.map((serie) => {
113
+ * const lastPlot = serie.plots.at(-1);
114
+ *
115
+ * if (!lastPlot || lastPlot.value === null) {
116
+ * return '';
117
+ * }
118
+ *
119
+ * return `
120
+ * <text
121
+ * x="${lastPlot.x + 8}"
122
+ * y="${lastPlot.y}"
123
+ * fill="${serie.color}"
124
+ * font-size="14"
125
+ * >
126
+ * ${lastPlot.value}
127
+ * </text>
128
+ * `;
129
+ * }).join('');
130
+ * }
131
+ * });
132
+ * ```
133
+ *
134
+ * @param state - Chart rendering state containing the dataset, configuration,
135
+ * dimensions, and optional rendering metadata.
136
+ * @returns A promise resolving to the generated SVG markup.
137
+ */
138
+ export function createStaticVueUiXy(
139
+ state: RenderStaticVueUiXyState,
140
+ ): Promise<string>;
141
+
142
+ /**
143
+ * vue-ui-donut
144
+ */
145
+
146
+ export type VueUiDonutAdditionalSvgContentContext = {
147
+ center: { x: number; y: number };
148
+ config: VueUiDonutConfig;
149
+ drawingArea: {
150
+ bottom: number;
151
+ height: number;
152
+ left: number;
153
+ right: number;
154
+ top: number;
155
+ width: number;
156
+ };
157
+ height: number;
158
+ innerRadius: number;
159
+ radius: number;
160
+ series: VueUiDonutDatapoint[];
161
+ thickness: number;
162
+ width: number;
163
+ };
164
+
165
+ export type VueUiDonutAdditionalSvgContent =
166
+ | string
167
+ | ((
168
+ context: VueUiDonutAdditionalSvgContentContext,
169
+ ) => string | null | undefined);
170
+
171
+ export type RenderStaticVueUiDonutState = {
172
+ dataset: VueUiDonutDatasetItem[];
173
+ config?: VueUiDonutConfig;
174
+ width?: number;
175
+ height?: number;
176
+ svgTitle?: string;
177
+ additionalSvgContent?: VueUiDonutAdditionalSvgContent;
178
+ };
179
+
180
+ export function createStaticVueUiDonut(
181
+ state: RenderStaticVueUiDonutState,
182
+ ): Promise<string>;
@@ -16719,6 +16719,16 @@ declare module 'vue-data-ui' {
16719
16719
  disambiguator?: string | number;
16720
16720
  }>;
16721
16721
 
16722
+ //--------------------------------------------------------------------------------------------//
16723
+
16724
+ /**
16725
+ * SSR types
16726
+ //--------------------------------------------------------------------------------------------//
16727
+
16728
+
16729
+
16730
+
16731
+
16722
16732
  //--------------------------------------------------------------------------------------------//
16723
16733
 
16724
16734
  /**
@@ -16730,7 +16740,131 @@ declare module 'vue-data-ui' {
16730
16740
  * a breaking change.
16731
16741
  */
16732
16742
 
16733
- //--------------------------------------------------------------------------------------------//
16743
+ //--------------------------------------------------------------------------------------------
16744
+ export type VueUiXyAdditionalSvgContentContext = {
16745
+ width: number;
16746
+ height: number;
16747
+ drawingArea: {
16748
+ top: number;
16749
+ right: number;
16750
+ bottom: number;
16751
+ left: number;
16752
+ width: number;
16753
+ height: number;
16754
+ scaleLabelX?: number;
16755
+ rightScaleLabelX?: number;
16756
+ scaleLabelsOffset?: number;
16757
+ yAxisLabelWidth?: number;
16758
+ individualOffsetX?: number;
16759
+ };
16760
+ scale: {
16761
+ min: number;
16762
+ max: number;
16763
+ tickSize: number;
16764
+ ticks: number[];
16765
+ };
16766
+ config: VueUiXyConfig;
16767
+ series: Array<
16768
+ VueUiXyDatasetItem & {
16769
+ color: string;
16770
+ type: 'line' | 'bar' | 'plot';
16771
+ plots: Array<{
16772
+ x: number;
16773
+ y: number | null;
16774
+ value: number | null;
16775
+ index: number;
16776
+ label: string;
16777
+ __barLabelX?: number;
16778
+ }>;
16779
+ }
16780
+ >;
16781
+ };
16782
+
16783
+ export type VueUiXyAdditionalSvgContent =
16784
+ | string
16785
+ | ((
16786
+ context: VueUiXyAdditionalSvgContentContext,
16787
+ ) => string | null | undefined);
16788
+
16789
+ export type RenderStaticVueUiXyState = {
16790
+ dataset: VueUiXyDatasetItem[];
16791
+ config?: VueUiXyConfig;
16792
+ width?: number;
16793
+ height?: number;
16794
+ svgTitle?: string;
16795
+ additionalSvgContent?: VueUiXyAdditionalSvgContent;
16796
+ };
16797
+
16798
+ /**
16799
+ * Generates a static SVG representation of a VueUiXy chart.
16800
+ *
16801
+ * This function is designed for server-side rendering and returns a complete
16802
+ * SVG string that can be embedded directly into HTML, saved to a file, or
16803
+ * converted to other formats such as PNG or PDF.
16804
+ *
16805
+ * The input state accepts the same dataset and configuration options as the
16806
+ * VueUiXy component, along with optional rendering dimensions and custom SVG
16807
+ * injections via `additionalSvgContent`.
16808
+ *
16809
+ * @example
16810
+ * ```ts
16811
+ * import { createStaticVueUiXy } from 'vue-data-ui';
16812
+ *
16813
+ * const svg = await createStaticVueUiXy({
16814
+ * dataset: [
16815
+ * {
16816
+ * name: 'Sales',
16817
+ * type: 'line',
16818
+ * series: [12, 18, 25, 21, 30]
16819
+ * }
16820
+ * ],
16821
+ * config: {
16822
+ * chart: {
16823
+ * title: {
16824
+ * text: 'Monthly Sales'
16825
+ * }
16826
+ * }
16827
+ * },
16828
+ * });
16829
+ *
16830
+ * console.log(svg);
16831
+ * ```
16832
+ *
16833
+ * @example
16834
+ * ```ts
16835
+ * const svg = await createStaticVueUiXy({
16836
+ * dataset,
16837
+ * config,
16838
+ * additionalSvgContent: ({ series }) => {
16839
+ * return series.map((serie) => {
16840
+ * const lastPlot = serie.plots.at(-1);
16841
+ *
16842
+ * if (!lastPlot || lastPlot.value === null) {
16843
+ * return '';
16844
+ * }
16845
+ *
16846
+ * return `
16847
+ * <text
16848
+ * x="${lastPlot.x + 8}"
16849
+ * y="${lastPlot.y}"
16850
+ * fill="${serie.color}"
16851
+ * font-size="14"
16852
+ * >
16853
+ * ${lastPlot.value}
16854
+ * </text>
16855
+ * `;
16856
+ * }).join('');
16857
+ * }
16858
+ * });
16859
+ * ```
16860
+ *
16861
+ * @param state - Chart rendering state containing the dataset, configuration,
16862
+ * dimensions, and optional rendering metadata.
16863
+ * @returns A promise resolving to the generated SVG markup.
16864
+ */
16865
+ export function createStaticVueUiXy(
16866
+ state: RenderStaticVueUiXyState,
16867
+ ): Promise<string>;
16734
16868
 
16735
16869
  /**
16736
16870
  * Configuration options for cumulative functions
@@ -1,4 +1,4 @@
1
- import { o as e } from "./lib-DUeYQsS0.js";
1
+ import { o as e } from "./lib-AJRHFE5U.js";
2
2
  //#region src/useAutoSizeLabelsInsideViewbox.js
3
3
  function t({ svgRef: t, fontSize: n, minFontSize: r, sizeRef: i, labelClass: a, labelTypes: o = [] }) {
4
4
  let s = null;
@@ -1,4 +1,4 @@
1
- import { Bt as e, b as t } from "./lib-DUeYQsS0.js";
1
+ import { Ht as e, b as t } from "./lib-AJRHFE5U.js";
2
2
  //#region src/useNestedProp.js
3
3
  function n({ defaultConfig: n, userConfig: r }) {
4
4
  return Object.keys(r || {}).length ? t(e({
@@ -5,7 +5,7 @@ function t({ elementId: t, fileName: n, canPrint: r = !0, options: i }) {
5
5
  async function c() {
6
6
  !r || a.value || (a.value = !0, clearTimeout(s.value), s.value = setTimeout(async () => {
7
7
  if (r) try {
8
- let { default: e } = await import("./pdf-D0eZ99cP.js");
8
+ let { default: e } = await import("./pdf-CdX23zf1.js");
9
9
  await e({
10
10
  domElement: document.getElementById(t),
11
11
  fileName: n,
@@ -24,7 +24,7 @@ function t({ elementId: t, fileName: n, canPrint: r = !0, options: i }) {
24
24
  async function l() {
25
25
  !r || o.value || (o.value = !0, clearTimeout(s.value), s.value = setTimeout(async () => {
26
26
  if (r) try {
27
- let { default: e } = await import("./img-1cKsci8e.js").then((e) => e.n);
27
+ let { default: e } = await import("./img-C_RNNswI.js").then((e) => e.n);
28
28
  await e({
29
29
  domElement: document.getElementById(t),
30
30
  fileName: n,