vue-data-ui 2.4.59 → 2.4.61

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 (155) hide show
  1. package/dist/{Arrow-Dudbi6k5.cjs → Arrow-C4JCfYUu.cjs} +1 -1
  2. package/dist/{Arrow-DzS4HIXj.js → Arrow-NyYxjtAV.js} +1 -1
  3. package/dist/{BaseIcon-DD3GLrhS.cjs → BaseIcon-B1zKYJGk.cjs} +1 -1
  4. package/dist/{BaseIcon-BbU81zOd.js → BaseIcon-a81b_5b0.js} +1 -1
  5. package/dist/{DataTable-BHCbVv8x.cjs → DataTable-BVwnM0tQ.cjs} +1 -1
  6. package/dist/{DataTable-CFUKU8PU.js → DataTable-CcW8SHH2.js} +2 -2
  7. package/dist/{Legend-f52bnttJ.js → Legend-Cq1rcFzv.js} +1 -1
  8. package/dist/{Legend-BYngLoV6.cjs → Legend-fpW6iFgA.cjs} +1 -1
  9. package/dist/{PackageVersion-nr7f_VNw.cjs → PackageVersion-B7-YDa6h.cjs} +1 -1
  10. package/dist/{PackageVersion-C_FFs0BP.js → PackageVersion-LRbiiLp0.js} +1 -1
  11. package/dist/{PenAndPaper-Dx24BtRW.js → PenAndPaper-BCjJ-td_.js} +3 -3
  12. package/dist/{PenAndPaper-C9v0NXEg.cjs → PenAndPaper-JkRknDt7.cjs} +1 -1
  13. package/dist/{Shape-Dkt-vkTl.cjs → Shape-QZcWXoYb.cjs} +1 -1
  14. package/dist/{Shape-Ct2x6qZx.js → Shape-hFNcMth4.js} +1 -1
  15. package/dist/{Slicer-Duke9qno.js → Slicer-DGn72_0M.js} +2 -2
  16. package/dist/{Slicer-C0cvEMOy.cjs → Slicer-DMYxCNLb.cjs} +1 -1
  17. package/dist/{Title-CpfNWbUc.cjs → Title-CQVviDIQ.cjs} +1 -1
  18. package/dist/{Title-zZtEcB9F.js → Title-Zm0LCGPS.js} +1 -1
  19. package/dist/{Tooltip-DDJ2Wvjy.js → Tooltip-CoahRzyE.js} +1 -1
  20. package/dist/{Tooltip-DZuVxmLc.cjs → Tooltip-DZ1uTqBW.cjs} +1 -1
  21. package/dist/{index-B9RAElpI.js → index-CG_OTzik.js} +3 -1
  22. package/dist/index-V6tl1xgQ.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +2 -0
  25. package/dist/types/vue-data-ui.d.ts +2 -0
  26. package/dist/{useNestedProp-DkpuL8Iv.cjs → useNestedProp--db71Vbu.cjs} +1 -1
  27. package/dist/{useNestedProp-DuruL3Nt.js → useNestedProp-BZZvruew.js} +1 -1
  28. package/dist/{usePrinter-CwTAwqtF.js → usePrinter-CxBwzZkb.js} +1 -1
  29. package/dist/{usePrinter-BIHu0O5X.cjs → usePrinter-D0LQ1CyY.cjs} +1 -1
  30. package/dist/{vue-data-ui-yknmkfFy.js → vue-data-ui-C4A5zIHI.js} +60 -60
  31. package/dist/{vue-data-ui-BXCJgMfu.cjs → vue-data-ui-CUyuYhwT.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-BkbLoUhP.js → vue-ui-3d-bar-DAh8koX4.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CHnh8ZH_.cjs → vue-ui-3d-bar-DKiYqw0u.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-6Clt339w.cjs → vue-ui-accordion-B7VpkrPR.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-rNA598L6.js → vue-ui-accordion-C2IbGLRv.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CKDDaRj_.cjs → vue-ui-age-pyramid-BmqvzA-d.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-C3o5HfRK.js → vue-ui-age-pyramid-me4GgQNb.js} +10 -10
  40. package/dist/{vue-ui-annotator-BLilhXfT.cjs → vue-ui-annotator-Bg9Juc1l.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-huMOA-QF.js → vue-ui-annotator-XOzj9Bpg.js} +1 -1
  42. package/dist/{vue-ui-bullet-yTpejKsw.cjs → vue-ui-bullet-BsHk8Y0E.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-DxYdog9c.js → vue-ui-bullet-D1ElgM95.js} +8 -8
  44. package/dist/{vue-ui-candlestick-CmD40PpS.cjs → vue-ui-candlestick-Ba4yv9ZM.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-3lCgRxr0.js → vue-ui-candlestick-DLhwvS6l.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-BU8oAq6b.cjs → vue-ui-carousel-table-DSoV6GBf.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-D3JIrHMF.js → vue-ui-carousel-table-cEaGm232.js} +4 -4
  48. package/dist/{vue-ui-chestnut-BWRUxwWm.cjs → vue-ui-chestnut-D6D5Zr4r.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-cWFqbqSU.js → vue-ui-chestnut-DCURZY6w.js} +8 -8
  50. package/dist/{vue-ui-cursor-DjWkFQEI.js → vue-ui-cursor-B9eASI3M.js} +2 -2
  51. package/dist/{vue-ui-cursor-DzJmB5h9.cjs → vue-ui-cursor-CqDpaKei.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-1dycrMNM.js → vue-ui-dashboard-B2rw-G-R.js} +2 -2
  53. package/dist/{vue-ui-dashboard-BOjdgUEm.cjs → vue-ui-dashboard-Q-ILTgqP.cjs} +1 -1
  54. package/dist/{vue-ui-digits-C4NWhIjg.js → vue-ui-digits-BAG_spWA.js} +2 -2
  55. package/dist/{vue-ui-digits-B8TVsqsB.cjs → vue-ui-digits-CagcmtFs.cjs} +1 -1
  56. package/dist/{vue-ui-donut-BPz8gXi5.cjs → vue-ui-donut-5jgX6ZLE.cjs} +1 -1
  57. package/dist/{vue-ui-donut-CXBxDUoh.js → vue-ui-donut-BJl5Isgy.js} +15 -15
  58. package/dist/{vue-ui-donut-evolution-h3ZgYI48.cjs → vue-ui-donut-evolution-CnqdY8LW.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-BgD7rCFk.js → vue-ui-donut-evolution-DMhkt7mf.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-BCyFd1Lf.cjs → vue-ui-dumbbell-Be0B-LgS.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DMp-Waih.js → vue-ui-dumbbell-Dg3mYtw3.js} +10 -10
  62. package/dist/{vue-ui-flow-DB3_5wEr.cjs → vue-ui-flow-BKyhoEjt.cjs} +1 -1
  63. package/dist/{vue-ui-flow-D-XBMcpC.js → vue-ui-flow-Cq8-bQr_.js} +9 -9
  64. package/dist/{vue-ui-funnel-DJVmn_pN.cjs → vue-ui-funnel-DFk4PKvj.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-Dxb6o97C.js → vue-ui-funnel-DHFbd45-.js} +9 -9
  66. package/dist/{vue-ui-galaxy-CIBBO623.cjs → vue-ui-galaxy-Y1gaT5UE.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-C2eHqbLw.js → vue-ui-galaxy-rYHDLCt9.js} +11 -11
  68. package/dist/{vue-ui-gauge-B9M8ICMX.js → vue-ui-gauge-Ba14Ybvo.js} +7 -7
  69. package/dist/{vue-ui-gauge-C_JArbcd.cjs → vue-ui-gauge-Bmuasq4t.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-ETKRu3P5.cjs → vue-ui-gizmo-CF11m0cq.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-OGIvFCA4.js → vue-ui-gizmo-CuMablqV.js} +3 -3
  72. package/dist/{vue-ui-heatmap-C2BobYAF.js → vue-ui-heatmap-B0Ry1OTW.js} +10 -10
  73. package/dist/{vue-ui-heatmap-mPZepJ4V.cjs → vue-ui-heatmap-BekQJ_O8.cjs} +1 -1
  74. package/dist/{vue-ui-history-plot-DgEFbRv3.cjs → vue-ui-history-plot-BTVojhgQ.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-BtBDW5ha.js → vue-ui-history-plot-DkJdYX5N.js} +11 -11
  76. package/dist/{vue-ui-kpi-DZGoUp6y.cjs → vue-ui-kpi-BLreWPBQ.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-BCwmp6i5.js → vue-ui-kpi-BQwuGH5_.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-B_I1k10C.cjs → vue-ui-mini-loader-C-61eqcR.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DWQfo-Ey.js → vue-ui-mini-loader-DOGNwMhX.js} +2 -2
  80. package/dist/{vue-ui-molecule-CqHsa4N7.cjs → vue-ui-molecule-BRM8s9SD.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-CpWWvLlc.js → vue-ui-molecule-DHBRDC8t.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-Dx6ICJkv.cjs → vue-ui-mood-radar-MXQgj0yp.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B4-AQAyE.js → vue-ui-mood-radar-dfN44AZx.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-C8LG5ony.cjs → vue-ui-nested-donuts-BAtJgYOg.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-C-afzEvx.js → vue-ui-nested-donuts-C-nDnw6v.js} +11 -11
  86. package/dist/{vue-ui-onion-wBz5dln6.js → vue-ui-onion-D8OvxeHr.js} +11 -11
  87. package/dist/{vue-ui-onion-KC_zqQyz.cjs → vue-ui-onion-EO8dPufp.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-BoiKoaod.js → vue-ui-parallel-coordinate-plot-3BNXcNsy.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs → vue-ui-parallel-coordinate-plot-Cxl3bY0H.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DY6yUyOl.js → vue-ui-quadrant-BOReLkSm.js} +12 -12
  91. package/dist/{vue-ui-quadrant-BJ3gSVgF.cjs → vue-ui-quadrant-DiU08Q5X.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-OHwPApk1.cjs → vue-ui-quick-chart-BRERkFkI.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-DBH9CgBI.js → vue-ui-quick-chart-D4UZCrzj.js} +9 -9
  94. package/dist/{vue-ui-radar-DYnmlHtt.js → vue-ui-radar-C2ePOuIW.js} +12 -12
  95. package/dist/{vue-ui-radar-nhy4Pqtc.cjs → vue-ui-radar-DduWN5dL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-3LUgui--.js → vue-ui-rating-BYfD1N57.js} +2 -2
  97. package/dist/{vue-ui-rating-wl5jkxb5.cjs → vue-ui-rating-BtzMW1EB.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-Da09K_Ce.js → vue-ui-relation-circle-BKjs6DR1.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-CGkAsJl8.cjs → vue-ui-relation-circle-DhLvWetz.cjs} +1 -1
  100. package/dist/{vue-ui-rings-BuVPBXNc.js → vue-ui-rings-BNwvxf2K.js} +11 -11
  101. package/dist/{vue-ui-rings-DZfhibc4.cjs → vue-ui-rings-CzZyxYeS.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-ChYAlXb_.cjs → vue-ui-scatter-D3Cl-rFL.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-Bee79rib.js → vue-ui-scatter-thYwTZhC.js} +12 -12
  104. package/dist/{vue-ui-screenshot-CCnAaGB3.js → vue-ui-screenshot-9y8wYnc3.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Blz4fiO2.cjs → vue-ui-screenshot-DFHP0ThC.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-DVYD_VSe.js → vue-ui-skeleton-B6hyEcxy.js} +3 -3
  107. package/dist/{vue-ui-skeleton-B24XJJ2p.cjs → vue-ui-skeleton-D56sSIBO.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-CdrTI5Rh.js → vue-ui-smiley-B-4Fqh2J.js} +2 -2
  109. package/dist/{vue-ui-smiley-CXOuAdIj.cjs → vue-ui-smiley-BsWAahKv.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-Pd3JNy4G.js → vue-ui-spark-trend-DJcpI-ZY.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-B08HYMm5.cjs → vue-ui-spark-trend-MAq0VlUq.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-Dq1hwL7i.cjs → vue-ui-sparkbar-DMlzP8ZM.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-CTDWiUid.js → vue-ui-sparkbar-DZqE8qN3.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-g0C7wuIH.js → vue-ui-sparkgauge-B-kRhMYK.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-il4rmDdv.cjs → vue-ui-sparkgauge-CvOP9U7-.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-CoRPiLpB.cjs → vue-ui-sparkhistogram-DjUvwlYU.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-Dk8IYZGB.js → vue-ui-sparkhistogram-EOeboT7_.js} +5 -5
  118. package/dist/vue-ui-sparkline-BS_ZXXei.cjs +1 -0
  119. package/dist/vue-ui-sparkline-BgB5km-f.js +420 -0
  120. package/dist/{vue-ui-sparkstackbar-CRGrf5y2.js → vue-ui-sparkstackbar-DGihKtGC.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-tkiKbZHo.cjs → vue-ui-sparkstackbar-DSTz24kS.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-QaavE5-F.js → vue-ui-stackbar-DrJ3au6w.js} +12 -12
  123. package/dist/{vue-ui-stackbar-zk1K5gP3.cjs → vue-ui-stackbar-m-5t4Otk.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-gm_lr5A9.js → vue-ui-strip-plot-4uC5MD3e.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-8Ksp5AzD.cjs → vue-ui-strip-plot-Yy2DIoMg.cjs} +1 -1
  126. package/dist/{vue-ui-table-CPLd7hXM.cjs → vue-ui-table-DCe_BTaV.cjs} +1 -1
  127. package/dist/{vue-ui-table-ceYZ6Wzd.js → vue-ui-table-DN498EB2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-CWQIOR58.js → vue-ui-table-heatmap-CMVmFTPi.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-CSsYOFf7.cjs → vue-ui-table-heatmap-PvopeKyW.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-hyL_92AC.cjs → vue-ui-table-sparkline-BtUV0t4I.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BHkqm0Sf.js → vue-ui-table-sparkline-DpXxi6al.js} +5 -5
  132. package/dist/{vue-ui-thermometer-CKiohIHn.cjs → vue-ui-thermometer-B9YyPrvt.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-Dvk3S7jR.js → vue-ui-thermometer-CB38vNj3.js} +7 -7
  134. package/dist/{vue-ui-timer-D0tGj6hK.js → vue-ui-timer-BmFFjMb9.js} +5 -5
  135. package/dist/{vue-ui-timer-BUuk2p4C.cjs → vue-ui-timer-D6GsFvTy.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-Csng3xWI.cjs → vue-ui-tiremarks--CrAFWU2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-C2G0Sem6.js → vue-ui-tiremarks-CJ2y_2T1.js} +7 -7
  138. package/dist/{vue-ui-treemap-CJjATl47.cjs → vue-ui-treemap-HpoEGWKV.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-3iutCx61.js → vue-ui-treemap-Z3t2YGoE.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-DZz_tUTV.js → vue-ui-vertical-bar-B_x2w4L8.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-DtuEIajX.cjs → vue-ui-vertical-bar-LdxXCg3W.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-B-Uf38ml.cjs → vue-ui-waffle-BDkOv8M4.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-Cr4FGNwb.js → vue-ui-waffle-BKrNIOiM.js} +11 -11
  144. package/dist/{vue-ui-wheel-Da4DH062.js → vue-ui-wheel-BCs1b_hk.js} +7 -7
  145. package/dist/{vue-ui-wheel-Bijmdum9.cjs → vue-ui-wheel-DgzJQSl_.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Cjyh1I0J.cjs → vue-ui-word-cloud-BHm3q6eZ.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-C3o4JBD2.js → vue-ui-word-cloud-CO47t4OJ.js} +10 -10
  148. package/dist/{vue-ui-xy-BX_3ddck.js → vue-ui-xy-RDecyidx.js} +14 -14
  149. package/dist/{vue-ui-xy-gClSSwyU.cjs → vue-ui-xy-c7YLqedj.cjs} +1 -1
  150. package/dist/{vue-ui-xy-canvas-ObtOgMlV.cjs → vue-ui-xy-canvas-CY1JxJvm.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-DqzVCtbZ.js → vue-ui-xy-canvas-Q6mKl1B-.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-DaDv7p0W.cjs +0 -9
  154. package/dist/vue-ui-sparkline-B_1J2ft2.cjs +0 -1
  155. package/dist/vue-ui-sparkline-Ca1ai-Mq.js +0 -419
@@ -1,419 +0,0 @@
1
- import { computed as v, ref as m, watch as U, onMounted as re, openBlock as o, createElementBlock as r, normalizeStyle as C, renderSlot as I, normalizeProps as ne, guardReactiveProps as ie, createElementVNode as f, toDisplayString as X, createCommentVNode as h, unref as c, createVNode as de, Fragment as A, renderList as D, createBlock as ve } from "vue";
2
- import { u as he, c as ce, t as ye, _ as T, o as fe, e as Z, g as pe, w as M, $ as ge, a0 as me, X as ke, s as P, R as q, i as H, f as Y } from "./index-B9RAElpI.js";
3
- import { u as J } from "./useNestedProp-DuruL3Nt.js";
4
- import be from "./vue-ui-skeleton-DVYD_VSe.js";
5
- import { t as _e, u as xe } from "./useResponsive-CoxXLe23.js";
6
- import { _ as we } from "./PackageVersion-C_FFs0BP.js";
7
- import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Ie = ["id"], Me = ["stop-color"], Pe = ["stop-color"], Ve = ["id"], ze = ["stop-color"], Se = ["stop-color"], We = ["id"], Ae = ["stop-color"], De = ["stop-color"], Te = { key: 1 }, Oe = ["d", "fill"], Be = ["d", "fill"], Ee = ["d", "stroke", "stroke-width"], Fe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ge = ["x", "y", "width", "height", "fill", "rx"], Re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ue = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Xe = ["x", "y", "font-size", "font-weight", "fill"], Ze = ["x", "y", "height", "width", "onMouseenter", "onClick"], qe = {
9
- __name: "vue-ui-sparkline",
10
- props: {
11
- config: {
12
- type: Object,
13
- default() {
14
- return {};
15
- }
16
- },
17
- dataset: {
18
- type: Array,
19
- default() {
20
- return [];
21
- }
22
- },
23
- showInfo: {
24
- type: Boolean,
25
- default: !0
26
- },
27
- selectedIndex: {
28
- type: Number,
29
- default: void 0
30
- },
31
- heightRatio: {
32
- type: Number,
33
- default: 1
34
- },
35
- forcedPadding: {
36
- type: Number,
37
- default: 30
38
- }
39
- },
40
- emits: ["hoverIndex", "selectDatapoint"],
41
- setup(_, { emit: V }) {
42
- const i = _, { vue_ui_sparkline: K } = he(), $ = v(() => !!i.dataset && i.dataset.length), p = m(ce()), z = m(null), O = m(null), B = m(null), e = v({
43
- get: () => E(),
44
- set: (t) => t
45
- });
46
- function E() {
47
- const t = J({
48
- userConfig: i.config,
49
- defaultConfig: K
50
- });
51
- return t.theme ? {
52
- ...J({
53
- userConfig: ye.vue_ui_sparkline[t.theme] || i.config,
54
- defaultConfig: t
55
- })
56
- } : t;
57
- }
58
- const L = v(() => T({
59
- data: i.dataset,
60
- threshold: e.value.downsample.threshold
61
- }));
62
- U(() => i.config, (t) => {
63
- e.value = E(), G(), l.value.chartWidth = e.value.style.chartWidth;
64
- }, { deep: !0 }), U(() => i.dataset, (t) => {
65
- b.value = T({
66
- data: i.dataset.map((u) => ({
67
- ...u,
68
- value: [void 0].includes(u.value) ? null : u.value
69
- })),
70
- threshold: e.value.downsample.threshold
71
- });
72
- }, { deep: !0 });
73
- const b = m(Q());
74
- function Q() {
75
- return T({
76
- data: i.dataset.map((t) => e.value.style.animation.show ? {
77
- ...t,
78
- value: null
79
- } : {
80
- ...t,
81
- value: [void 0].includes(t.value) ? null : t.value
82
- }),
83
- threshold: e.value.downsample.threshold
84
- });
85
- }
86
- const F = m(null);
87
- re(() => {
88
- if (G(), e.value.style.animation.show && i.dataset.length > 1) {
89
- let a = function() {
90
- u < L.value.length ? (b.value.push(L.value[u]), setTimeout(() => {
91
- requestAnimationFrame(a);
92
- }, t)) : b.value = L.value, u += 1;
93
- };
94
- b.value = [];
95
- const t = e.value.style.animation.animationFrames / i.dataset.length;
96
- let u = 0;
97
- a();
98
- }
99
- });
100
- function G() {
101
- if (fe(i.dataset) ? Z({
102
- componentName: "VueUiSparkline",
103
- type: "dataset"
104
- }) : i.dataset.forEach((t, u) => {
105
- pe({
106
- datasetObject: t,
107
- requiredAttributes: ["period", "value"]
108
- }).forEach((a) => {
109
- Z({
110
- componentName: "VueUiSparkline",
111
- type: "datasetSerieAttribute",
112
- property: a,
113
- index: u
114
- });
115
- });
116
- }), e.value.responsive) {
117
- const t = _e(() => {
118
- const { width: u, height: a } = xe({
119
- chart: z.value,
120
- title: e.value.style.title.show && i.showInfo ? O.value : null,
121
- source: B.value
122
- });
123
- l.value.width = u, l.value.height = a, l.value.chartWidth = e.value.style.chartWidth / 500 * u, l.value.padding = i.forcedPadding / 500 * u;
124
- });
125
- F.value = new ResizeObserver(t), F.value.observe(z.value.parentNode);
126
- }
127
- }
128
- const l = m({
129
- height: 80 * i.heightRatio,
130
- width: 500,
131
- chartWidth: e.value.style.chartWidth,
132
- padding: i.forcedPadding
133
- }), ee = m(6), s = v(() => ({
134
- top: 12,
135
- left: 0,
136
- right: l.value.width,
137
- bottom: l.value.height - 3,
138
- start: i.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? l.value.width - l.value.chartWidth : l.value.padding,
139
- width: i.showInfo && e.value.style.dataLabel.show ? l.value.chartWidth : l.value.width - l.value.padding,
140
- height: l.value.height - 12
141
- })), S = v(() => Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), te = v(() => Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), x = v(() => {
142
- const t = S.value >= 0 ? 0 : S.value;
143
- return Math.abs(t);
144
- }), ae = v(() => te.value + x.value + ee.value), N = v(() => s.value.bottom - s.value.height * W(x.value));
145
- function W(t) {
146
- return t / ae.value;
147
- }
148
- const g = v(() => L.value.length - 1), n = v(() => b.value.map((t, u) => {
149
- const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
150
- return {
151
- absoluteValue: a,
152
- period: t.period,
153
- plotValue: a + x.value,
154
- toMax: W(a + x.value),
155
- x: s.value.start + u * (s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)),
156
- y: s.value.bottom - s.value.height * W(a + x.value),
157
- id: `plot_${p.value}_${u}`,
158
- color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? M(e.value.style.line.color, 0.05 * (1 - u / g.value)) : e.value.style.line.color,
159
- width: s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)
160
- };
161
- })), le = v(() => {
162
- const t = { x: n.value[0].x, y: l.value.height - 6 }, u = { x: n.value[n.value.length - 1].x, y: l.value.height - 6 }, a = [];
163
- return n.value.forEach((d) => {
164
- a.push(`${d.x},${d.y} `);
165
- }), [t.x, t.y, ...a, u.x, u.y].toString();
166
- }), y = m(void 0);
167
- function ue(t, u) {
168
- y.value = t, V("hoverIndex", { index: u });
169
- }
170
- function se() {
171
- y.value = void 0, V("hoverIndex", { index: void 0 });
172
- }
173
- const k = v(() => {
174
- if ($.value) {
175
- const t = n.value.map((a) => a.absoluteValue), u = t.reduce((a, d) => a + d, 0);
176
- return {
177
- latest: n.value[n.value.length - 1].absoluteValue,
178
- sum: u,
179
- average: u / n.value.length,
180
- median: ge(t),
181
- trend: me(n.value.map(({ x: a, y: d, absoluteValue: j }) => ({
182
- x: a,
183
- y: d,
184
- value: j
185
- }))).trend
186
- };
187
- } else
188
- return {
189
- latest: null,
190
- sum: null,
191
- average: null,
192
- median: null,
193
- trend: null
194
- };
195
- }), R = v(() => $.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
196
- function oe(t, u) {
197
- V("selectDatapoint", { datapoint: t, index: u });
198
- }
199
- return (t, u) => (o(), r("div", {
200
- ref_key: "sparklineChart",
201
- ref: z,
202
- class: "vue-ui-sparkline",
203
- id: p.value,
204
- style: C(`width:100%;font-family:${e.value.style.fontFamily};`)
205
- }, [
206
- I(t.$slots, "before", ne(ie({
207
- selected: y.value,
208
- latest: k.value.latest,
209
- sum: k.value.sum,
210
- average: k.value.average,
211
- median: k.value.median,
212
- trend: k.value.trend
213
- })), void 0, !0),
214
- e.value.style.title.show && _.showInfo ? (o(), r("div", {
215
- key: 0,
216
- ref_key: "chartTitle",
217
- ref: O,
218
- class: "vue-ui-sparkline-title",
219
- style: C(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
220
- }, [
221
- f("span", {
222
- style: C(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
223
- }, X(y.value ? y.value.period : e.value.style.title.text), 5)
224
- ], 4)) : h("", !0),
225
- $.value ? (o(), r("svg", {
226
- key: 1,
227
- xmlns: c(ke),
228
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
229
- style: C(`background:${e.value.style.backgroundColor};overflow:visible`)
230
- }, [
231
- de(we),
232
- t.$slots["chart-background"] ? (o(), r("foreignObject", {
233
- key: 0,
234
- x: 0,
235
- y: 0,
236
- width: l.value.width <= 0 ? 10 : l.value.width,
237
- height: l.value.height <= 0 ? 10 : l.value.height,
238
- style: {
239
- pointerEvents: "none"
240
- }
241
- }, [
242
- I(t.$slots, "chart-background", {}, void 0, !0)
243
- ], 8, Ce)) : h("", !0),
244
- f("defs", null, [
245
- f("linearGradient", {
246
- x1: "0%",
247
- y1: "0%",
248
- x2: "100%",
249
- y2: "0%",
250
- id: `sparkline_gradient_${p.value}`
251
- }, [
252
- f("stop", {
253
- offset: "0%",
254
- "stop-color": c(P)(c(M)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
255
- }, null, 8, Me),
256
- f("stop", {
257
- offset: "100%",
258
- "stop-color": c(P)(e.value.style.area.color, e.value.style.area.opacity)
259
- }, null, 8, Pe)
260
- ], 8, Ie),
261
- f("linearGradient", {
262
- x2: "0%",
263
- y2: "100%",
264
- id: `sparkline_bar_gradient_pos_${p.value}`
265
- }, [
266
- f("stop", {
267
- offset: "0%",
268
- "stop-color": e.value.style.bar.color
269
- }, null, 8, ze),
270
- f("stop", {
271
- offset: "100%",
272
- "stop-color": c(M)(e.value.style.bar.color, 0.05)
273
- }, null, 8, Se)
274
- ], 8, Ve),
275
- f("linearGradient", {
276
- x2: "0%",
277
- y2: "100%",
278
- id: `sparkline_bar_gradient_neg_${p.value}`
279
- }, [
280
- f("stop", {
281
- offset: "0%",
282
- "stop-color": c(M)(e.value.style.bar.color, 0.05)
283
- }, null, 8, Ae),
284
- f("stop", {
285
- offset: "100%",
286
- "stop-color": e.value.style.bar.color
287
- }, null, 8, De)
288
- ], 8, We)
289
- ]),
290
- e.value.style.area.show && !w.value && n.value[0] ? (o(), r("g", Te, [
291
- e.value.style.line.smooth ? (o(), r("path", {
292
- key: 0,
293
- d: `M ${n.value[0].x},${s.value.bottom} ${c(q)(n.value)} L ${n.value.at(-1).x},${s.value.bottom} Z`,
294
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(P)(e.value.style.area.color, e.value.style.area.opacity)
295
- }, null, 8, Oe)) : (o(), r("path", {
296
- key: 1,
297
- d: `M${le.value}Z`,
298
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(P)(e.value.style.area.color, e.value.style.area.opacity)
299
- }, null, 8, Be))
300
- ])) : h("", !0),
301
- e.value.style.line.smooth && !w.value ? (o(), r("path", {
302
- key: 2,
303
- d: `M ${c(q)(n.value)}`,
304
- stroke: e.value.style.line.color,
305
- fill: "none",
306
- "stroke-width": e.value.style.line.strokeWidth,
307
- "stroke-linecap": "round"
308
- }, null, 8, Ee)) : h("", !0),
309
- (o(!0), r(A, null, D(n.value, (a, d) => (o(), r("g", null, [
310
- d < n.value.length - 1 && !e.value.style.line.smooth && !w.value ? (o(), r("line", {
311
- key: 0,
312
- x1: a.x,
313
- x2: n.value[d + 1].x,
314
- y1: a.y,
315
- y2: n.value[d + 1].y,
316
- stroke: a.color,
317
- "stroke-width": e.value.style.line.strokeWidth,
318
- "stroke-linecap": "round",
319
- "stroke-linejoin": "round",
320
- "shape-rendering": "geometricPrecision"
321
- }, null, 8, Fe)) : h("", !0),
322
- w.value ? (o(), r("rect", {
323
- key: 1,
324
- x: a.x - a.width / 2,
325
- y: a.absoluteValue > 0 ? a.y : N.value,
326
- width: a.width,
327
- height: Math.abs(a.y - N.value),
328
- fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
329
- rx: e.value.style.bar.borderRadius
330
- }, null, 8, Ge)) : h("", !0),
331
- e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || _.selectedIndex === d) ? (o(), r("line", {
332
- key: 2,
333
- x1: a.x,
334
- x2: a.x,
335
- y1: s.value.top - 6,
336
- y2: s.value.bottom,
337
- stroke: e.value.style.verticalIndicator.color || a.color,
338
- "stroke-width": e.value.style.verticalIndicator.strokeWidth,
339
- "stroke-linecap": "round",
340
- "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
341
- }, null, 8, Re)) : h("", !0)
342
- ]))), 256)),
343
- S.value < 0 ? (o(), r("line", {
344
- key: 3,
345
- x1: s.value.start,
346
- x2: s.value.start + s.value.width - 16,
347
- y1: N.value,
348
- y2: N.value,
349
- stroke: e.value.style.zeroLine.color,
350
- "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
351
- "stroke-width": e.value.style.zeroLine.strokeWidth,
352
- "stroke-linecap": "round"
353
- }, null, 8, je)) : h("", !0),
354
- e.value.style.plot.show ? (o(!0), r(A, { key: 4 }, D(n.value, (a, d) => (o(), r("g", null, [
355
- y.value && a.id === y.value.id || _.selectedIndex === d ? (o(), r("circle", {
356
- key: 0,
357
- cx: a.x,
358
- cy: a.y,
359
- r: e.value.style.plot.radius,
360
- fill: a.color,
361
- stroke: e.value.style.plot.stroke,
362
- "stroke-width": e.value.style.plot.strokeWidth
363
- }, null, 8, Ue)) : h("", !0)
364
- ]))), 256)) : h("", !0),
365
- _.showInfo && e.value.style.dataLabel.show ? (o(), r("text", {
366
- key: 5,
367
- x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : s.value.width + 12 + e.value.style.dataLabel.offsetX,
368
- y: l.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
369
- "font-size": e.value.style.dataLabel.fontSize,
370
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
371
- fill: e.value.style.dataLabel.color
372
- }, X(y.value ? c(H)(
373
- e.value.style.dataLabel.formatter,
374
- y.value.absoluteValue,
375
- c(Y)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
376
- { datapoint: y.value }
377
- ) : c(H)(
378
- e.value.style.dataLabel.formatter,
379
- R.value,
380
- c(Y)({ p: e.value.style.dataLabel.prefix, v: R.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
381
- )), 9, Xe)) : h("", !0),
382
- (o(!0), r(A, null, D(n.value, (a, d) => (o(), r("rect", {
383
- x: a.x - (s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1)) / 2,
384
- y: s.value.top - 6,
385
- height: s.value.height + 6,
386
- width: s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1),
387
- fill: "transparent",
388
- onMouseenter: (j) => ue(a, d),
389
- onMouseleave: se,
390
- onClick: () => oe(a, d)
391
- }, null, 40, Ze))), 256)),
392
- I(t.$slots, "svg", { svg: l.value }, void 0, !0)
393
- ], 12, Ne)) : h("", !0),
394
- t.$slots.source ? (o(), r("div", {
395
- key: 2,
396
- ref_key: "source",
397
- ref: B,
398
- dir: "auto"
399
- }, [
400
- I(t.$slots, "source", {}, void 0, !0)
401
- ], 512)) : h("", !0),
402
- $.value ? h("", !0) : (o(), ve(be, {
403
- key: 3,
404
- config: {
405
- type: "sparkline",
406
- style: {
407
- backgroundColor: e.value.style.backgroundColor,
408
- sparkline: {
409
- color: "#CCCCCC"
410
- }
411
- }
412
- }
413
- }, null, 8, ["config"]))
414
- ], 12, Le));
415
- }
416
- }, at = /* @__PURE__ */ $e(qe, [["__scopeId", "data-v-eb31fee7"]]);
417
- export {
418
- at as default
419
- };