vue-data-ui 2.3.89 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
  145. package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
  146. package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
  147. package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
  150. package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
  151. package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
  152. package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
  153. package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
  154. package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
  155. package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
  158. package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
  162. package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
  164. package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
  165. package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
  170. package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
  172. package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
  174. package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
  175. package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
  177. package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
  179. package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
  180. package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
  182. package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
@@ -1,8 +1,9 @@
1
- import { computed as g, ref as x, watch as P, onMounted as q, nextTick as H, openBlock as r, createElementBlock as v, normalizeStyle as p, unref as s, renderSlot as z, normalizeProps as L, mergeProps as X, createCommentVNode as d, createElementVNode as c, toDisplayString as y, Fragment as O, renderList as R, guardReactiveProps as J, createBlock as K } from "vue";
2
- import { u as Q, c as Y, t as Z, a as ee, p as k, b as te, o as le, e as T, g as ae, d as oe, s as _, i as w, f as C, X as se, w as ue } from "./index-Ca4RHJ4t.js";
3
- import { u as E } from "./useNestedProp-vP7uimPz.js";
4
- import ne from "./vue-ui-skeleton-D7aLznpP.js";
5
- const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"], de = ["stop-color"], pe = ["stop-color"], ye = ["height", "width", "fill", "rx"], fe = ["height", "width", "fill", "rx"], me = ["height", "width", "fill", "rx"], we = {
1
+ import { computed as g, ref as x, watch as P, onMounted as q, nextTick as H, openBlock as r, createElementBlock as v, normalizeStyle as p, unref as s, renderSlot as z, normalizeProps as L, mergeProps as X, createCommentVNode as d, createElementVNode as c, toDisplayString as f, Fragment as O, renderList as R, guardReactiveProps as J, createVNode as K, createBlock as Q } from "vue";
2
+ import { u as Y, c as Z, t as ee, a as te, p as k, b as le, o as ae, e as T, g as oe, d as se, s as b, i as w, f as _, X as ue, w as ne } from "./index-mBy4elhB.js";
3
+ import { u as V } from "./useNestedProp-BrIRtQj1.js";
4
+ import ie from "./vue-ui-skeleton-DDhwPZd_.js";
5
+ import { _ as re } from "./PackageVersion-D9PU8glB.js";
6
+ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"], fe = ["stop-color"], ye = ["stop-color"], me = ["height", "width", "fill", "rx"], ge = ["height", "width", "fill", "rx"], he = ["height", "width", "fill", "rx"], be = {
6
7
  __name: "vue-ui-sparkbar",
7
8
  props: {
8
9
  config: {
@@ -26,45 +27,45 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
26
27
  }
27
28
  },
28
29
  emits: ["selectDatapoint"],
29
- setup(b, { emit: V }) {
30
- const a = b, { vue_ui_sparkbar: B } = Q(), $ = g(() => !!a.dataset && a.dataset.length), S = x(Y()), e = g({
30
+ setup(C, { emit: E }) {
31
+ const a = C, { vue_ui_sparkbar: B } = Y(), $ = g(() => !!a.dataset && a.dataset.length), S = x(Z()), e = g({
31
32
  get: () => A(),
32
33
  set: (t) => t
33
34
  });
34
35
  function A() {
35
- const t = E({
36
+ const t = V({
36
37
  userConfig: a.config,
37
38
  defaultConfig: B
38
39
  });
39
40
  return t.theme ? {
40
- ...E({
41
- userConfig: Z.vue_ui_sparkbar[t.theme] || a.config,
41
+ ...V({
42
+ userConfig: ee.vue_ui_sparkbar[t.theme] || a.config,
42
43
  defaultConfig: t
43
44
  }),
44
- customPalette: ee[t.theme] || k
45
+ customPalette: te[t.theme] || k
45
46
  } : t;
46
47
  }
47
48
  P(() => a.config, (t) => {
48
49
  e.value = A();
49
50
  }, { deep: !0 });
50
- const M = g(() => te(e.value.customPalette)), f = x(a.dataset.map((t) => ({
51
+ const M = g(() => le(e.value.customPalette)), y = x(a.dataset.map((t) => ({
51
52
  ...t,
52
53
  value: e.value.style.animation.show ? 0 : t.value || 0,
53
54
  formatter: t.formatter || null
54
- }))), D = x(null);
55
+ }))), N = x(null);
55
56
  q(async () => {
56
- le(a.dataset) && T({
57
+ ae(a.dataset) && T({
57
58
  componentName: "VueUiSparkbar",
58
59
  type: "dataset"
59
- }), F();
60
+ }), D();
60
61
  });
61
- function F() {
62
+ function D() {
62
63
  if (e.value.style.animation.show) {
63
64
  let I = function() {
64
- i += l / t, i < l ? (f.value = f.value.map((u, h) => ({
65
+ i += l / t, i < l ? (y.value = y.value.map((u, h) => ({
65
66
  ...u,
66
67
  value: u.value += o[h]
67
- })), D.value = requestAnimationFrame(I)) : f.value = a.dataset.map((u) => ({
68
+ })), N.value = requestAnimationFrame(I)) : y.value = a.dataset.map((u) => ({
68
69
  ...u,
69
70
  value: u.value || 0,
70
71
  formatter: u.formatter || null
@@ -76,17 +77,17 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
76
77
  }
77
78
  }
78
79
  P(() => a.dataset, async (t) => {
79
- cancelAnimationFrame(D.value), f.value = a.dataset.map((o) => ({
80
+ cancelAnimationFrame(N.value), y.value = a.dataset.map((o) => ({
80
81
  ...o,
81
82
  value: e.value.style.animation.show ? 0 : o.value || 0,
82
83
  formatter: o.formatter || null
83
- })), H(F);
84
+ })), H(D);
84
85
  }, { deep: !0 });
85
86
  const n = x({
86
87
  width: 500,
87
88
  height: 16
88
89
  }), U = g(() => Math.max(...a.dataset.map((t) => t.value))), j = g(() => (a.dataset.forEach((t, o) => {
89
- ae({
90
+ oe({
90
91
  datasetObject: t,
91
92
  requiredAttributes: ["name", "value"]
92
93
  }).forEach((l) => {
@@ -97,28 +98,28 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
97
98
  index: o
98
99
  });
99
100
  });
100
- }), f.value.map((t, o) => ({
101
+ }), y.value.map((t, o) => ({
101
102
  ...t,
102
103
  value: t.value || 0,
103
- color: oe(t.color) || M.value[o] || k[o] || k[o % k.length]
104
+ color: se(t.color) || M.value[o] || k[o] || k[o % k.length]
104
105
  }))));
105
106
  function G(t) {
106
107
  return t / U.value;
107
108
  }
108
- function N(t) {
109
+ function F(t) {
109
110
  return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : G(t.value);
110
111
  }
111
112
  function m(t) {
112
113
  return e.value.style.layout.independant && t.target || e.value.style.layout.target;
113
114
  }
114
115
  function W(t, o) {
115
- V("selectDatapoint", { datapoint: t, index: o });
116
+ E("selectDatapoint", { datapoint: t, index: o });
116
117
  }
117
118
  return (t, o) => (r(), v("div", {
118
119
  style: p({
119
120
  width: "100%",
120
121
  fontFamily: e.value.style.fontFamily,
121
- background: a.backgroundOpacity !== null ? s(_)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
122
+ background: a.backgroundOpacity !== null ? s(b)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
122
123
  })
123
124
  }, [
124
125
  t.$slots.title ? z(t.$slots, "title", L(X({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : d("", !0),
@@ -138,7 +139,7 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
138
139
  color: e.value.style.title.color,
139
140
  fontWeight: e.value.style.title.bold ? "bold" : "normal"
140
141
  })
141
- }, y(e.value.style.title.text), 5),
142
+ }, f(e.value.style.title.text), 5),
142
143
  e.value.style.title.subtitle.text ? (r(), v("div", {
143
144
  key: 0,
144
145
  class: "vue-ui-sparkbar-subtitle",
@@ -147,12 +148,12 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
147
148
  color: e.value.style.title.subtitle.color,
148
149
  fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
149
150
  })
150
- }, y(e.value.style.title.subtitle.text), 5)) : d("", !0)
151
+ }, f(e.value.style.title.subtitle.text), 5)) : d("", !0)
151
152
  ], 4)) : d("", !0),
152
153
  (r(!0), v(O, null, R(j.value, (l, i) => (r(), v(O, null, [
153
154
  $.value ? (r(), v("div", {
154
155
  key: 0,
155
- style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${b.dataset.length > 0 && i !== b.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
156
+ style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && i !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
156
157
  onClick: () => W(l, i)
157
158
  }, [
158
159
  z(t.$slots, "data-label", L(J({ bar: {
@@ -161,7 +162,7 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
161
162
  valueLabel: s(w)(
162
163
  l.formatter,
163
164
  l.value,
164
- s(C)({
165
+ s(_)({
165
166
  p: l.prefix || "",
166
167
  v: l.value,
167
168
  s: l.suffix || "",
@@ -172,7 +173,7 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
172
173
  targetLabel: s(w)(
173
174
  l.formatter,
174
175
  m(l),
175
- s(C)({
176
+ s(_)({
176
177
  p: l.prefix || "",
177
178
  v: m(l),
178
179
  s: l.suffix || "",
@@ -191,14 +192,14 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
191
192
  textAlign: ["left", "right"].includes(e.value.style.labels.name.position) || ["top", "top-left"].includes(e.value.style.labels.name.position) ? "left" : e.value.style.labels.name.position === "top-center" ? "center" : "right"
192
193
  })
193
194
  }, [
194
- c("span", null, y(l.name), 1),
195
+ c("span", null, f(l.name), 1),
195
196
  e.value.style.labels.value.show ? (r(), v("span", {
196
197
  key: 0,
197
198
  style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
198
- }, ": " + y(s(w)(
199
+ }, ": " + f(s(w)(
199
200
  l.formatter,
200
201
  l.value,
201
- s(C)({
202
+ s(_)({
202
203
  p: l.prefix || "",
203
204
  v: l.value,
204
205
  s: l.suffix || "",
@@ -206,10 +207,10 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
206
207
  }),
207
208
  { datapoint: l, seriesIndex: i }
208
209
  )), 5)) : d("", !0),
209
- e.value.style.layout.showTargetValue ? (r(), v("span", re, y(" " + e.value.style.layout.targetValueText) + " " + y(s(w)(
210
+ e.value.style.layout.showTargetValue ? (r(), v("span", ce, f(" " + e.value.style.layout.targetValueText) + " " + f(s(w)(
210
211
  l.formatter,
211
212
  m(l),
212
- s(C)({
213
+ s(_)({
213
214
  p: l.prefix || "",
214
215
  v: m(l),
215
216
  s: l.suffix || "",
@@ -219,10 +220,11 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
219
220
  )), 1)) : d("", !0)
220
221
  ], 4)),
221
222
  (r(), v("svg", {
222
- xmlns: s(se),
223
+ xmlns: s(ue),
223
224
  viewBox: `0 0 ${n.value.width} ${n.value.height}`,
224
225
  width: "100%"
225
226
  }, [
227
+ K(re),
226
228
  c("defs", null, [
227
229
  c("linearGradient", {
228
230
  x1: "0%",
@@ -233,42 +235,42 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
233
235
  }, [
234
236
  c("stop", {
235
237
  offset: "0%",
236
- "stop-color": s(_)(s(ue)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
237
- }, null, 8, de),
238
+ "stop-color": s(b)(s(ne)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
239
+ }, null, 8, fe),
238
240
  c("stop", {
239
241
  offset: "100%",
240
242
  "stop-color": l.color
241
- }, null, 8, pe)
242
- ], 8, ce)
243
+ }, null, 8, ye)
244
+ ], 8, pe)
243
245
  ]),
244
246
  c("rect", {
245
247
  height: n.value.height,
246
248
  width: n.value.width,
247
249
  x: 0,
248
250
  y: 0,
249
- fill: s(_)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
251
+ fill: s(b)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
250
252
  rx: n.value.height / 2
251
- }, null, 8, ye),
253
+ }, null, 8, me),
252
254
  c("rect", {
253
255
  height: n.value.height,
254
- width: n.value.width * N(l),
256
+ width: n.value.width * F(l),
255
257
  x: 0,
256
258
  y: 0,
257
259
  fill: e.value.style.bar.gradient.underlayerColor,
258
260
  rx: n.value.height / 2
259
- }, null, 8, fe),
261
+ }, null, 8, ge),
260
262
  c("rect", {
261
263
  height: n.value.height,
262
- width: n.value.width * N(l),
264
+ width: n.value.width * F(l),
263
265
  x: 0,
264
266
  y: 0,
265
267
  fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${S.value})` : l.color,
266
268
  rx: n.value.height / 2
267
- }, null, 8, me)
268
- ], 8, ve))
269
- ], 12, ie)) : d("", !0)
269
+ }, null, 8, he)
270
+ ], 8, de))
271
+ ], 12, ve)) : d("", !0)
270
272
  ], 64))), 256)),
271
- $.value ? d("", !0) : (r(), K(ne, {
273
+ $.value ? d("", !0) : (r(), Q(ie, {
272
274
  key: 2,
273
275
  config: {
274
276
  type: "sparkbar",
@@ -284,5 +286,5 @@ const ie = ["onClick"], re = { key: 1 }, ve = ["xmlns", "viewBox"], ce = ["id"],
284
286
  }
285
287
  };
286
288
  export {
287
- we as default
289
+ be as default
288
290
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BhH89oF0.cjs"),C=require("./useNestedProp-m8IH8hWW.cjs"),V=require("./vue-ui-skeleton-Cf89QIhl.cjs"),D=require("./PackageVersion-LdLhc8hQ.cjs"),$=["onClick"],z={key:1},L=["xmlns","viewBox"],P=["id"],A=["stop-color"],F=["stop-color"],O=["height","width","fill","rx"],I=["height","width","fill","rx"],T=["height","width","fill","rx"],q={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:null}},emits:["selectDatapoint"],setup(p,{emit:b}){const n=p,{vue_ui_sparkbar:w}=o.useConfig(),v=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>f(),set:l=>l});function f(){const l=C.useNestedProp({userConfig:n.config,defaultConfig:w});return l.theme?{...C.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>n.config,l=>{t.value=f()},{deep:!0});const S=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0,formatter:l.formatter||null}))),g=e.ref(null);e.onMounted(async()=>{o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),h()});function h(){if(t.value.style.animation.show){let x=function(){s+=a/l,s<a?(c.value=c.value.map((u,m)=>({...u,value:u.value+=r[m]})),g.value=requestAnimationFrame(x)):c.value=n.dataset.map(u=>({...u,value:u.value||0,formatter:u.formatter||null}))};const l=t.value.style.animation.animationFrames,r=n.dataset.map((u,m)=>u.value/l),a=n.dataset.map(u=>u.value||0).reduce((u,m)=>u+m,0);let s=0;x()}}e.watch(()=>n.dataset,async l=>{cancelAnimationFrame(g.value),c.value=n.dataset.map(r=>({...r,value:t.value.style.animation.show?0:r.value||0,formatter:r.formatter||null})),e.nextTick(h)},{deep:!0});const i=e.ref({width:500,height:16}),_=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),N=e.computed(()=>(n.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:r})})}),c.value.map((l,r)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||S.value[r]||o.palette[r]||o.palette[r%o.palette.length]}))));function B(l){return l/_.value}function k(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value>100?1:l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:B(l.value)}function d(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function E(l,r){b("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:n.backgroundOpacity!==null?e.unref(o.setOpacity)(t.value.style.backgroundColor,n.backgroundOpacity):t.value.style.backgroundColor})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight:t.value.style.title.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(a,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?`flex-direction: ${t.value.style.labels.name.position==="right"?"row-reverse":"row"} !important`:"flex-direction:column !important"};gap:${t.value.style.gap}px !important;align-items:center;${p.dataset.length>0&&s!==p.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>E(a,s)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:d(a),valueLabel:e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s}),targetLabel:e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:t.value.style.labels.name.width,color:t.value.style.labels.name.color,fontSize:t.value.style.labels.fontSize+"px",fontWeight:t.value.style.labels.name.bold?"bold":"normal",textAlign:["left","right"].includes(t.value.style.labels.name.position)||["top","top-left"].includes(t.value.style.labels.name.position)?"left":t.value.style.labels.name.position==="top-center"?"center":"right"})},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${i.value.width} ${i.value.height}`,width:"100%"},[e.createVNode(D._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${s}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.03),100-t.value.style.bar.gradient.intensity)},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P)]),e.createElementVNode("rect",{height:i.value.height,width:i.value.width,x:0,y:0,fill:e.unref(o.setOpacity)(t.value.style.gutter.backgroundColor,t.value.style.gutter.opacity),rx:i.value.height/2},null,8,O),e.createElementVNode("rect",{height:i.value.height,width:i.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:i.value.height/2},null,8,I),e.createElementVNode("rect",{height:i.value.height,width:i.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${s}_${y.value})`:a.color,rx:i.value.height/2},null,8,T)],8,L))],12,$)):e.createCommentVNode("",!0)],64))),256)),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:2,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=q;
@@ -1,8 +1,9 @@
1
- import { computed as s, onMounted as M, ref as A, watch as N, openBlock as i, createElementBlock as c, normalizeStyle as m, toDisplayString as y, createCommentVNode as d, unref as r, createElementVNode as v, normalizeClass as D, createBlock as E } from "vue";
2
- import { u as G, o as I, e as S, g as U, c as q, t as P, M as R, X as T, i as X, v as p, f as H } from "./index-Ca4RHJ4t.js";
3
- import { u as z } from "./useNestedProp-vP7uimPz.js";
4
- import Y from "./vue-ui-skeleton-D7aLznpP.js";
5
- const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color"], W = ["d", "stroke", "stroke-linecap"], Z = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ee = ["x", "y", "font-size", "fill", "font-weight"], se = {
1
+ import { computed as s, onMounted as M, ref as N, watch as A, openBlock as i, createElementBlock as c, normalizeStyle as m, toDisplayString as y, createCommentVNode as d, unref as r, createVNode as D, createElementVNode as v, normalizeClass as E, createBlock as G } from "vue";
2
+ import { u as I, o as U, e as S, g as q, c as P, t as R, M as T, X, i as H, v as p, f as V } from "./index-mBy4elhB.js";
3
+ import { u as z } from "./useNestedProp-BrIRtQj1.js";
4
+ import Y from "./vue-ui-skeleton-DDhwPZd_.js";
5
+ import { _ as J } from "./PackageVersion-D9PU8glB.js";
6
+ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color"], ee = ["d", "stroke", "stroke-linecap"], te = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ae = ["x", "y", "font-size", "fill", "font-weight"], ie = {
6
7
  __name: "vue-ui-sparkgauge",
7
8
  props: {
8
9
  config: {
@@ -19,15 +20,15 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
19
20
  }
20
21
  },
21
22
  setup(F) {
22
- const l = F, { vue_ui_sparkgauge: O } = G(), g = s(() => !!l.dataset && Object.keys(l.dataset).length);
23
+ const l = F, { vue_ui_sparkgauge: O } = I(), g = s(() => !!l.dataset && Object.keys(l.dataset).length);
23
24
  M(() => {
24
25
  h();
25
26
  });
26
27
  function h() {
27
- I(l.dataset) ? S({
28
+ U(l.dataset) ? S({
28
29
  componentName: "VueUiSparkgauge",
29
30
  type: "dataset"
30
- }) : U({
31
+ }) : q({
31
32
  datasetObject: l.dataset,
32
33
  requiredAttributes: ["value", "min", "max"]
33
34
  }).forEach((t) => {
@@ -38,7 +39,7 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
38
39
  });
39
40
  });
40
41
  }
41
- const b = A(q()), e = s({
42
+ const b = N(P()), e = s({
42
43
  get: () => k(),
43
44
  set: (t) => t
44
45
  });
@@ -49,12 +50,12 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
49
50
  });
50
51
  return t.theme ? {
51
52
  ...z({
52
- userConfig: P.vue_ui_sparkgauge[t.theme] || l.config,
53
+ userConfig: R.vue_ui_sparkgauge[t.theme] || l.config,
53
54
  defaultConfig: t
54
55
  })
55
56
  } : t;
56
57
  }
57
- N(() => l.config, (t) => {
58
+ A(() => l.config, (t) => {
58
59
  e.value = k(), h();
59
60
  }, { deep: !0 });
60
61
  const u = s(() => ({
@@ -68,21 +69,21 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
68
69
  max: n,
69
70
  diff: B
70
71
  };
71
- }), a = A(e.value.style.animation.show ? o.value.min : l.dataset.value);
72
- N(() => l.dataset.value, () => {
72
+ }), a = N(e.value.style.animation.show ? o.value.min : l.dataset.value);
73
+ A(() => l.dataset.value, () => {
73
74
  C(l.dataset.value || 0);
74
75
  });
75
- const x = s(() => a.value > o.value.max ? o.value.max : a.value < o.value.min ? o.value.min : a.value), _ = s(() => o.value.diff / e.value.style.animation.speedMs);
76
+ const _ = s(() => a.value > o.value.max ? o.value.max : a.value < o.value.min ? o.value.min : a.value), x = s(() => o.value.diff / e.value.style.animation.speedMs);
76
77
  M(() => {
77
78
  C(l.dataset.value || 0);
78
79
  });
79
80
  function C(t) {
80
81
  function n() {
81
- a.value < t ? a.value = Math.min(a.value + _.value, t) : a.value > t && (a.value = Math.max(a.value - _.value, t)), a.value !== t && requestAnimationFrame(n);
82
+ a.value < t ? a.value = Math.min(a.value + x.value, t) : a.value > t && (a.value = Math.max(a.value - x.value, t)), a.value !== t && requestAnimationFrame(n);
82
83
  }
83
84
  n();
84
85
  }
85
- const f = s(() => l.dataset.title ?? ""), $ = s(() => a.value >= 0 ? (x.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(x.value)) / o.value.diff), w = s(() => R(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), j = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
86
+ const f = s(() => l.dataset.title ?? ""), $ = s(() => a.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => T(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), j = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
86
87
  return (t, n) => (i(), c("div", {
87
88
  style: m(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
88
89
  }, [
@@ -93,10 +94,11 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
93
94
  }, y(f.value), 5)) : d("", !0),
94
95
  g.value ? (i(), c("svg", {
95
96
  key: 1,
96
- xmlns: r(T),
97
+ xmlns: r(X),
97
98
  viewBox: `0 0 ${u.value.width} ${u.value.height}`,
98
99
  style: "overflow: visible; background:transparent; width:100%;"
99
100
  }, [
101
+ D(J),
100
102
  v("defs", null, [
101
103
  v("linearGradient", {
102
104
  id: `gradient_${b.value}`,
@@ -108,12 +110,12 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
108
110
  v("stop", {
109
111
  offset: "0%",
110
112
  "stop-color": e.value.style.colors.min
111
- }, null, 8, Q),
113
+ }, null, 8, W),
112
114
  v("stop", {
113
115
  offset: "100%",
114
116
  "stop-color": e.value.style.colors.max
115
- }, null, 8, V)
116
- ], 8, K)
117
+ }, null, 8, Z)
118
+ ], 8, Q)
117
119
  ]),
118
120
  v("path", {
119
121
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
@@ -121,7 +123,7 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
121
123
  "stroke-width": 8,
122
124
  "stroke-linecap": e.value.style.gutter.strokeLinecap,
123
125
  fill: "none"
124
- }, null, 8, W),
126
+ }, null, 8, ee),
125
127
  $.value !== 0 ? (i(), c("path", {
126
128
  key: 0,
127
129
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
@@ -131,9 +133,9 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
131
133
  fill: "none",
132
134
  "stroke-dasharray": 169.5,
133
135
  "stroke-dashoffset": 169.5 - 169.5 * $.value,
134
- class: D({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
136
+ class: E({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
135
137
  style: m(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
136
- }, null, 14, Z)) : d("", !0),
138
+ }, null, 14, te)) : d("", !0),
137
139
  v("text", {
138
140
  "text-anchor": "middle",
139
141
  x: u.value.width / 2,
@@ -141,19 +143,19 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
141
143
  "font-size": e.value.style.dataLabel.fontSize,
142
144
  fill: L.value,
143
145
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
144
- }, y(r(X)(
146
+ }, y(r(H)(
145
147
  e.value.style.dataLabel.formatter,
146
148
  r(p)(a.value),
147
- r(H)({
149
+ r(V)({
148
150
  p: e.value.style.dataLabel.prefix,
149
151
  v: r(p)(a.value),
150
152
  s: e.value.style.dataLabel.suffix,
151
153
  r: e.value.style.dataLabel.rounding
152
154
  }),
153
155
  { datapoint: r(p)(a.value), color: L.value }
154
- )), 9, ee)
155
- ], 8, J)) : d("", !0),
156
- g.value ? d("", !0) : (i(), E(Y, {
156
+ )), 9, ae)
157
+ ], 8, K)) : d("", !0),
158
+ g.value ? d("", !0) : (i(), G(Y, {
157
159
  key: 2,
158
160
  config: {
159
161
  type: "gauge",
@@ -174,5 +176,5 @@ const J = ["xmlns", "viewBox"], K = ["id"], Q = ["stop-color"], V = ["stop-color
174
176
  }
175
177
  };
176
178
  export {
177
- se as default
179
+ ie as default
178
180
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BhH89oF0.cjs"),b=require("./useNestedProp-m8IH8hWW.cjs"),w=require("./vue-ui-skeleton-Cf89QIhl.cjs"),$=require("./PackageVersion-LdLhc8hQ.cjs"),L=["xmlns","viewBox"],S=["id"],B=["stop-color"],E=["stop-color"],M=["d","stroke","stroke-linecap"],z=["d","stroke","stroke-linecap","stroke-dashoffset"],A=["x","y","font-size","fill","font-weight"],V={__name:"vue-ui-sparkgauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(_){const o=_,{vue_ui_sparkgauge:x}=n.useConfig(),c=e.computed(()=>!!o.dataset&&Object.keys(o.dataset).length);e.onMounted(()=>{d()});function d(){n.objectIsEmpty(o.dataset)?n.error({componentName:"VueUiSparkgauge",type:"dataset"}):n.getMissingDatasetAttributes({datasetObject:o.dataset,requiredAttributes:["value","min","max"]}).forEach(a=>{n.error({componentName:"VueUiSparkgauge",type:"datasetAttribute",property:a})})}const v=e.ref(n.createUid()),t=e.computed({get:()=>m(),set:a=>a});function m(){const a=b.useNestedProp({userConfig:o.config,defaultConfig:x});return a.theme?{...b.useNestedProp({userConfig:n.themes.vue_ui_sparkgauge[a.theme]||o.config,defaultConfig:a})}:a}e.watch(()=>o.config,a=>{t.value=m(),d()},{deep:!0});const u=e.computed(()=>({height:t.value.style.height,width:128,base:t.value.style.basePosition})),s=e.computed(()=>{const a=o.dataset.min??0,r=o.dataset.max??0,N=r-a;return{min:a,max:r,diff:N}}),l=e.ref(t.value.style.animation.show?s.value.min:o.dataset.value);e.watch(()=>o.dataset.value,()=>{y(o.dataset.value||0)});const f=e.computed(()=>l.value>s.value.max?s.value.max:l.value<s.value.min?s.value.min:l.value),p=e.computed(()=>s.value.diff/t.value.style.animation.speedMs);e.onMounted(()=>{y(o.dataset.value||0)});function y(a){function r(){l.value<a?l.value=Math.min(l.value+p.value,a):l.value>a&&(l.value=Math.max(l.value-p.value,a)),l.value!==a&&requestAnimationFrame(r)}r()}const i=e.computed(()=>o.dataset.title??""),g=e.computed(()=>l.value>=0?(f.value-s.value.min)/s.value.diff:(Math.abs(s.value.min)-Math.abs(f.value))/s.value.diff),k=e.computed(()=>n.interpolateColorHex(t.value.style.colors.min,t.value.style.colors.max,s.value.min,s.value.max,l.value)),h=e.computed(()=>t.value.style.dataLabel.autoColor?k.value:t.value.style.dataLabel.color),C=e.computed(()=>t.value.style.track.autoColor?k.value:t.value.style.track.color);return(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width: 100%; background:${t.value.style.background}`)},[t.value.style.title.show&&i.value&&t.value.style.title.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:"overflow: visible; background:transparent; width:100%;"},[e.createVNode($._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`gradient_${v.value}`,x1:"-10%",y1:"100%",x2:"110%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.colors.min},null,8,B),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.max},null,8,E)],8,S)]),e.createElementVNode("path",{d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.gutter.color,"stroke-width":8,"stroke-linecap":t.value.style.gutter.strokeLinecap,fill:"none"},null,8,M),g.value!==0?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.colors.showGradient?`url(#gradient_${v.value})`:C.value,"stroke-width":8,"stroke-linecap":t.value.style.track.strokeLinecap,fill:"none","stroke-dasharray":169.5,"stroke-dashoffset":169.5-169.5*g.value,class:e.normalizeClass({"vue-ui-sparkgauge-track":t.value.style.animation.show}),style:e.normalizeStyle(t.value.style.animation.show?`animation: vue-ui-sparkgauge-animation ${t.value.style.animation.speedMs}ms ease-in;`:"")},null,14,z)):e.createCommentVNode("",!0),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.width/2,y:u.value.base+6+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,fill:h.value,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.dataLabel.formatter,e.unref(n.checkNaN)(l.value),e.unref(n.dataLabel)({p:t.value.style.dataLabel.prefix,v:e.unref(n.checkNaN)(l.value),s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:e.unref(n.checkNaN)(l.value),color:h.value})),9,A)],8,L)):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w.default,{key:2,config:{type:"gauge",style:{backgroundColor:t.value.style.background,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.title.show&&i.value&&t.value.style.title.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0)],4))}};exports.default=V;