vue-data-ui 3.22.0 → 3.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/{Arrow-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
  3. package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
  4. package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
  5. package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
  6. package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
  7. package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
  8. package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
  10. package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
  11. package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
  12. package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
  13. package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
  14. package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
  15. package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
  16. package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
  17. package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
  18. package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
  89. package/dist/exposedLib-CffbQxjN.js +19 -0
  90. package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
  91. package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
  92. package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
  93. package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
  94. package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
  95. package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.js} +2 -2
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +3 -8
  101. package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
  102. package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
  103. package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
  104. package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
  105. package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
  106. package/dist/utils.js +3 -3
  107. package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
  108. package/dist/vue-data-ui.js +72 -72
  109. package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
  110. package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
  111. package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
  112. package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
  113. package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
  114. package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
  115. package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
  116. package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
  117. package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
  118. package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
  120. package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
  121. package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
  122. package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
  123. package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
  124. package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
  125. package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
  126. package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
  127. package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
  128. package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
  129. package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
  130. package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
  131. package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
  132. package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
  133. package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
  134. package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
  135. package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
  136. package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
  137. package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
  139. package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
  140. package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
  141. package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
  142. package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
  143. package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
  144. package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
  145. package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
  146. package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
  147. package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
  148. package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
  149. package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
  150. package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
  151. package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
  152. package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
  153. package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
  154. package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
  155. package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
  156. package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
  157. package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
  158. package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
  159. package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
  160. package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
  161. package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
  162. package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
  163. package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
  164. package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
  165. package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
  166. package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
  167. package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
  168. package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
  169. package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
  170. package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
  171. package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
  172. package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
  173. package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
  174. package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
  175. package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
  176. package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
  177. package/package.json +2 -2
  178. package/dist/exposedLib-BJbE_A8E.js +0 -19
  179. package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
  181. package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
  182. package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
  183. package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
  184. package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
  185. package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
  186. package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
  187. package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
  188. package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
  189. package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
  190. package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
  191. package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
  192. package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
  193. package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
  194. package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
  195. package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
  196. package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
  197. package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
  198. package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
@@ -1,560 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Ft as t, G as n, H as r, Ht as i, Pt as a, Tt as o, X as s, ct as c, i as l, t as u } from "./lib-AJRHFE5U.js";
3
- import { t as d } from "./useConfig-Br1uzq_L.js";
4
- import { n as ee, t as f } from "./BaseScanner-DZvpgOjM.js";
5
- import { t as p } from "./useNestedProp-DtcXIg7n.js";
6
- import { t as te } from "./useThemeCheck-C43Tcqmk.js";
7
- import { t as ne } from "./Shape-BubavoqO.js";
8
- import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { c as ie } from "./canvas-lib-BOP_HS11.js";
10
- import { t as ae } from "./useResponsive-BfnK0KxU.js";
11
- import { t as oe } from "./A11yDataTable-DdRsVULz.js";
12
- import { t as se } from "./useChartAccessibility-DYqac8yF.js";
13
- import { t as ce } from "./useFitSvgText-CT3nmlaS.js";
14
- import { t as le } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
15
- import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as ue, createVNode as de, defineAsyncComponent as fe, guardReactiveProps as pe, nextTick as me, normalizeClass as b, normalizeProps as he, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRefs as ge, unref as O, useCssVars as _e, watch as ve } from "vue";
16
- //#region src/components/vue-ui-sparkhistogram.vue
17
- var ye = /* @__PURE__ */ e({ default: () => k }), be = ["id"], xe = { key: 0 }, Se = { key: 1 }, Ce = { style: { position: "relative" } }, we = [
18
- "xmlns",
19
- "viewBox",
20
- "aria-describedby"
21
- ], Te = ["width", "height"], Ee = ["id"], De = ["stop-color"], Oe = ["stop-color"], ke = ["id"], Ae = ["stop-color"], je = ["stop-color"], Me = ["id"], Ne = ["stop-color"], Pe = ["stop-color"], Fe = [
22
- "height",
23
- "width",
24
- "fill",
25
- "x",
26
- "stroke",
27
- "stroke-width",
28
- "rx",
29
- "stroke-dasharray"
30
- ], Ie = { key: 1 }, Le = [
31
- "x",
32
- "y",
33
- "height",
34
- "width",
35
- "fill",
36
- "stroke",
37
- "stroke-width",
38
- "rx"
39
- ], Re = { key: 2 }, ze = [
40
- "x",
41
- "y",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], Be = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "fill"
50
- ], Ve = [
51
- "x",
52
- "y",
53
- "font-size",
54
- "fill"
55
- ], He = [
56
- "height",
57
- "width",
58
- "x",
59
- "onMouseover",
60
- "onMouseleave",
61
- "onClick"
62
- ], Ue = {
63
- key: 0,
64
- style: {
65
- position: "absolute",
66
- top: "100%",
67
- left: "0",
68
- width: "100%"
69
- },
70
- "data-dom-to-png-ignore": "",
71
- "aria-hidden": "true"
72
- }, k = /*#__PURE__*/ re({
73
- __name: "vue-ui-sparkhistogram",
74
- props: {
75
- config: {
76
- type: Object,
77
- default() {
78
- return {};
79
- }
80
- },
81
- dataset: {
82
- type: Array,
83
- default() {
84
- return [];
85
- }
86
- }
87
- },
88
- emits: ["selectDatapoint"],
89
- setup(e, { emit: re }) {
90
- _e((e) => ({ v66b29b27: nt.value }));
91
- let ye = fe(() => import("./PackageVersion-DxBQctV8.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = d(), { isThemeValid: We, warnInvalidTheme: Ge } = te(), A = e, j = w(r()), M = w(null), N = w(null), P = w(null), F = w(null), I = w(null), L = w(!1), R = w(null), z = w("pointer"), B = w(K()), Ke = h(() => i({
92
- defaultConfig: { style: {
93
- animation: { show: !1 },
94
- backgroundColor: "#99999930"
95
- } },
96
- userConfig: B.value.skeletonConfig ?? {}
97
- })), { loading: V, FINAL_DATASET: H, manualLoading: qe } = ee({
98
- ...ge(A),
99
- FINAL_CONFIG: B,
100
- prepareConfig: K,
101
- skeletonDataset: A.config?.skeletonDataset ?? [
102
- {
103
- value: 1,
104
- intensity: .2,
105
- color: "#CACACA"
106
- },
107
- {
108
- value: 2,
109
- intensity: .3,
110
- color: "#CACACA"
111
- },
112
- {
113
- value: 3,
114
- intensity: .5,
115
- color: "#CACACA"
116
- },
117
- {
118
- value: 5,
119
- intensity: .7,
120
- color: "#CACACA"
121
- },
122
- {
123
- value: 8,
124
- intensity: .9,
125
- color: "#CACACA"
126
- },
127
- {
128
- value: 13,
129
- intensity: .95,
130
- color: "#CACACA"
131
- },
132
- {
133
- value: 21,
134
- intensity: 1,
135
- color: "#CACACA"
136
- },
137
- {
138
- value: 13,
139
- intensity: .95,
140
- color: "#CACACA"
141
- },
142
- {
143
- value: 8,
144
- intensity: .9,
145
- color: "#CACACA"
146
- },
147
- {
148
- value: 5,
149
- intensity: .7,
150
- color: "#CACACA"
151
- },
152
- {
153
- value: 3,
154
- intensity: .5,
155
- color: "#CACACA"
156
- },
157
- {
158
- value: 2,
159
- intensity: .3,
160
- color: "#CACACA"
161
- },
162
- {
163
- value: 1,
164
- intensity: .2,
165
- color: "#CACACA"
166
- }
167
- ],
168
- skeletonConfig: i({
169
- defaultConfig: B.value,
170
- userConfig: Ke.value
171
- })
172
- }), U = w(B.value.style.layout.width), W = w(B.value.style.layout.height), { svgRef: G } = se({ config: B.value.style.title });
173
- function K() {
174
- let e = p({
175
- userConfig: A.config,
176
- defaultConfig: k
177
- }), t = e.theme;
178
- if (!t) return e;
179
- if (!We.value(e)) return Ge(e), e;
180
- let n = p({
181
- userConfig: le[t] || A.config,
182
- defaultConfig: e
183
- });
184
- return p({
185
- userConfig: A.config,
186
- defaultConfig: n
187
- });
188
- }
189
- S(() => {
190
- J();
191
- });
192
- let q = h(() => !!B.value.debug);
193
- function J() {
194
- if (o(A.dataset) ? s({
195
- componentName: "VueUiSparkHistogram",
196
- type: "dataset",
197
- debug: q.value
198
- }) : A.dataset.forEach((e, t) => {
199
- c({
200
- datasetObject: e,
201
- requiredAttributes: ["value"]
202
- }).forEach((e) => {
203
- s({
204
- componentName: "VueUiSparkHistogram",
205
- type: "datasetSerieAttribute",
206
- property: e,
207
- index: t,
208
- debug: q.value
209
- });
210
- });
211
- }), B.value.responsive) {
212
- let e = ie(() => {
213
- let { width: e, height: t } = ae({
214
- chart: P.value,
215
- title: B.value.style.title.text ? N.value : null,
216
- source: M.value
217
- }), n = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, r = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0;
218
- requestAnimationFrame(() => {
219
- U.value = Math.max(10, e), W.value = Math.max(10, t - 12 - n - r);
220
- });
221
- });
222
- F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
223
- }
224
- }
225
- ve(() => A.config, (e) => {
226
- B.value = K(), J();
227
- }, { deep: !0 });
228
- let Y = h(() => {
229
- let e = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, t = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0, n = W.value + e + t, r = U.value, i = B.value.style.layout.padding.top, a = n - B.value.style.layout.padding.bottom, o = B.value.style.layout.padding.left, s = r - B.value.style.layout.padding.right;
230
- return {
231
- bottom: a,
232
- centerY: i + (n - i - B.value.style.layout.padding.bottom) / 2,
233
- drawingHeight: n - B.value.style.layout.padding.top - B.value.style.layout.padding.bottom - e - t,
234
- drawingWidth: r - B.value.style.layout.padding.left - B.value.style.layout.padding.right,
235
- height: n,
236
- left: o,
237
- right: s,
238
- top: i,
239
- width: r
240
- };
241
- }), Je = h(() => Math.max(...H.value.map((e) => Math.abs(e.value || 0))));
242
- function Ye(e) {
243
- return Math.abs(e) / Je.value;
244
- }
245
- let X = h(() => H.value.map((e, t) => {
246
- let n = Ye(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / H.value.length, o = i * (B.value.style.bars.gap / 100), s = i - o, c = Y.value.centerY - r / 2, l = Y.value.left + (o / 2 + t * i), u = Y.value.left + t * i, d = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), ee = e.color ? e.color : e.value >= 0 ? a(B.value.style.bars.colors.positive, d) : a(B.value.style.bars.colors.negative, d), f = e.color ? e.color : e.value >= 0 ? B.value.style.bars.colors.positive : B.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, te = l + s / 2;
247
- return {
248
- ...e,
249
- color: ee,
250
- gradient: p,
251
- height: r,
252
- intensity: d,
253
- proportion: n,
254
- stroke: f,
255
- textAnchor: te,
256
- trapX: u,
257
- unitWidth: i,
258
- width: s,
259
- x: l,
260
- y: c
261
- };
262
- }));
263
- function Xe(e, t) {
264
- return l(B.value.style.labels.value.formatter, e.value, n({
265
- p: B.value.style.labels.value.prefix,
266
- v: e.value,
267
- s: B.value.style.labels.value.suffix,
268
- r: B.value.style.labels.value.rounding
269
- }), {
270
- datapoint: e,
271
- seriesIndex: t
272
- });
273
- }
274
- let Z = w(null), Ze = re;
275
- function Qe(e, t) {
276
- Ze("selectDatapoint", {
277
- datapoint: e,
278
- index: t
279
- }), B.value.events.datapointClick && B.value.events.datapointClick({
280
- datapoint: e,
281
- seriesIndex: t
282
- });
283
- }
284
- function $e(e, t) {
285
- z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
286
- datapoint: e,
287
- seriesIndex: t
288
- });
289
- }
290
- function et(e, t) {
291
- z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
292
- datapoint: e,
293
- seriesIndex: t
294
- }));
295
- }
296
- function tt() {
297
- z.value !== "keyboard" && (Z.value = null, R.value = null);
298
- }
299
- let nt = h(() => `${B.value.style.animation.speedMs}ms`), { fitText: Q } = ce({
300
- svgRef: G,
301
- unitWidth: h(() => Y.value.drawingWidth / H.value.length * .9)
302
- });
303
- S(async () => {
304
- await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
305
- }), ve([
306
- U,
307
- W,
308
- () => H.value
309
- ], async () => {
310
- await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
311
- });
312
- function rt() {
313
- L.value = !0;
314
- }
315
- function it() {
316
- L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
317
- }
318
- function at(e) {
319
- if (!G.value || document.activeElement !== G.value || !X.value.length) return;
320
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
321
- if (!t && !n && !r && !i) return;
322
- if (e.preventDefault(), e.stopPropagation(), i) {
323
- R.value = null, Z.value = null, z.value = "pointer";
324
- return;
325
- }
326
- if (r) {
327
- if (Z.value === null) return;
328
- let e = X.value[Z.value];
329
- if (!e) return;
330
- Qe(e, Z.value);
331
- return;
332
- }
333
- z.value = "keyboard";
334
- let a = R.value;
335
- a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)), R.value = a, Z.value = a;
336
- let o = X.value[a];
337
- B.value.events.datapointEnter && B.value.events.datapointEnter({
338
- datapoint: o,
339
- seriesIndex: a
340
- });
341
- }
342
- let $ = h(() => ({
343
- headers: [
344
- B.value.a11y?.translations?.series ?? "Series",
345
- B.value.a11y?.translations?.time ?? "Time",
346
- B.value.a11y?.translations?.value ?? "Value",
347
- B.value.a11y?.translations?.valueLabel ?? "Label"
348
- ],
349
- rows: X.value.map((e, t) => [
350
- t + 1,
351
- e.timeLabel ?? "",
352
- e.value ?? "",
353
- e.valueLabel ?? ""
354
- ])
355
- }));
356
- return (e, r) => (C(), v("div", {
357
- class: "vue-data-ui-component vue-ui-spark-histogram",
358
- ref_key: "histogramChart",
359
- ref: P,
360
- style: x(`width:100%;background:${B.value.style.backgroundColor};font-family:${B.value.style.fontFamily}`),
361
- onMouseleave: tt
362
- }, [
363
- y("div", {
364
- id: `chart-instructions-${j.value}`,
365
- class: "sr-only"
366
- }, [y("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, be),
367
- $.value?.rows?.length ? (C(), g(oe, {
368
- key: 0,
369
- uid: j.value,
370
- head: $.value.headers,
371
- body: $.value.rows,
372
- notice: B.value.a11y.translations.tableAvailable,
373
- caption: B.value.a11y.translations.tableCaption
374
- }, null, 8, [
375
- "uid",
376
- "head",
377
- "body",
378
- "notice",
379
- "caption"
380
- ])) : _("", !0),
381
- B.value.style.title.text ? (C(), v("div", {
382
- key: 1,
383
- ref_key: "chartTitle",
384
- ref: N,
385
- style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${B.value.style.title.margin};padding: 0 6px;text-align:${B.value.style.title.textAlign}`)
386
- }, [y("div", { style: x(`font-size:${B.value.style.title.fontSize}px;color:${B.value.style.title.color};font-weight:${B.value.style.title.bold ? "bold" : "normal"}`) }, [
387
- ue(D(B.value.style.title.text) + " ", 1),
388
- Z.value === null ? _("", !0) : (C(), v("span", xe, "- " + D(X.value[Z.value].timeLabel || "") + " " + D(O(l)(B.value.style.labels.value.formatter, X.value[Z.value].value, O(n)({
389
- p: B.value.style.labels.value.prefix,
390
- v: X.value[Z.value].value,
391
- s: B.value.style.labels.value.suffix,
392
- r: B.value.style.labels.value.rounding
393
- }), {
394
- datapoint: X.value[Z.value],
395
- seriesIndex: Z.value
396
- })), 1)),
397
- ![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (C(), v("span", Se, D(` (${X.value[Z.value].valueLabel || 0})`), 1)) : _("", !0)
398
- ], 4), B.value.style.title.subtitle.text ? (C(), v("div", {
399
- key: 0,
400
- style: x(`font-size:${B.value.style.title.subtitle.fontSize}px;color:${B.value.style.title.subtitle.color};font-weight:${B.value.style.title.subtitle.bold ? "bold" : "normal"}`)
401
- }, D(B.value.style.title.subtitle.text), 5)) : _("", !0)], 4)) : _("", !0),
402
- y("div", Ce, [(C(), v("svg", {
403
- ref_key: "svgRef",
404
- ref: G,
405
- xmlns: O(u),
406
- viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
407
- style: { overflow: "visible" },
408
- "aria-describedby": `chart-instructions-${j.value}`,
409
- tabindex: "0",
410
- onFocus: rt,
411
- onBlur: it,
412
- onKeydown: at
413
- }, [
414
- de(O(ye)),
415
- e.$slots["chart-background"] ? (C(), v("foreignObject", {
416
- key: 0,
417
- x: 0,
418
- y: 0,
419
- width: Y.value.width,
420
- height: Y.value.height,
421
- style: { pointerEvents: "none" }
422
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : _("", !0),
423
- y("defs", null, [
424
- (C(!0), v(m, null, T(X.value, (e, n) => (C(), v("radialGradient", {
425
- id: `gradient_positive_${n}_${j.value}`,
426
- cy: "50%",
427
- cx: "50%",
428
- r: "50%",
429
- fx: "50%",
430
- fy: "50%"
431
- }, [y("stop", {
432
- offset: "0%",
433
- "stop-color": O(a)(O(t)(B.value.style.bars.colors.positive, .05), e.intensity)
434
- }, null, 8, De), y("stop", {
435
- offset: "100%",
436
- "stop-color": O(a)(B.value.style.bars.colors.positive, e.intensity)
437
- }, null, 8, Oe)], 8, Ee))), 256)),
438
- (C(!0), v(m, null, T(X.value, (e, n) => (C(), v("radialGradient", {
439
- id: `gradient_negative_${n}_${j.value}`,
440
- cy: "50%",
441
- cx: "50%",
442
- r: "50%",
443
- fx: "50%",
444
- fy: "50%"
445
- }, [y("stop", {
446
- offset: "0%",
447
- "stop-color": O(a)(O(t)(B.value.style.bars.colors.negative, .05), e.intensity)
448
- }, null, 8, Ae), y("stop", {
449
- offset: "100%",
450
- "stop-color": O(a)(B.value.style.bars.colors.negative, e.intensity)
451
- }, null, 8, je)], 8, ke))), 256)),
452
- (C(!0), v(m, null, T(X.value, (e, n) => (C(), v("radialGradient", {
453
- id: `gradient_datapoint_${n}_${j.value}`,
454
- cy: "50%",
455
- cx: "50%",
456
- r: "50%",
457
- fx: "50%",
458
- fy: "50%"
459
- }, [y("stop", {
460
- offset: "0%",
461
- "stop-color": O(a)(O(t)(e.color, .05), e.intensity)
462
- }, null, 8, Ne), y("stop", {
463
- offset: "100%",
464
- "stop-color": O(a)(e.color, e.intensity)
465
- }, null, 8, Pe)], 8, Me))), 256))
466
- ]),
467
- (C(!0), v(m, null, T(X.value, (e, t) => (C(), v("g", null, [Z.value !== null && Z.value === t ? (C(), v("rect", {
468
- key: 0,
469
- height: Y.value.height,
470
- width: e.unitWidth,
471
- fill: B.value.style.selector.fill,
472
- x: e.trapX,
473
- y: 0,
474
- stroke: B.value.style.selector.stroke,
475
- "stroke-width": B.value.style.selector.strokeWidth,
476
- rx: B.value.style.selector.borderRadius,
477
- "stroke-dasharray": B.value.style.selector.strokeDasharray
478
- }, null, 8, Fe)) : _("", !0)]))), 256)),
479
- !B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (C(), v("g", Ie, [(C(!0), v(m, null, T(X.value, (e, t) => (C(), v("rect", {
480
- x: e.x,
481
- y: e.y,
482
- height: e.height,
483
- width: e.width,
484
- fill: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
485
- stroke: e.stroke,
486
- "stroke-width": B.value.style.bars.strokeWidth,
487
- rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
488
- class: b({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
489
- }, null, 10, Le))), 256))])) : (C(), v("g", Re, [(C(!0), v(m, null, T(X.value, (e, t) => (C(), g(ne, {
490
- plot: {
491
- x: e.x + e.width / 2,
492
- y: e.y + e.height / 2
493
- },
494
- color: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
495
- shape: B.value.style.bars.shape,
496
- radius: Math.min(e.height * .4, e.width * .4),
497
- class: b({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
498
- }, null, 8, [
499
- "plot",
500
- "color",
501
- "shape",
502
- "radius",
503
- "class"
504
- ]))), 256))])),
505
- O(V) ? _("", !0) : (C(), v(m, { key: 3 }, [
506
- (C(!0), v(m, null, T(X.value, (e, t) => (C(), v("g", null, [B.value.style.labels.value.show ? (C(), v("text", {
507
- key: 0,
508
- class: "vue-ui-sparkhistogram-top-label",
509
- "text-anchor": "middle",
510
- x: e.textAnchor,
511
- y: e.y - B.value.style.labels.value.fontSize / 3 + B.value.style.labels.value.offsetY,
512
- "font-size": B.value.style.labels.value.fontSize,
513
- "font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
514
- fill: B.value.style.labels.value.color
515
- }, D(Xe(e, t)), 9, ze)) : _("", !0)]))), 256)),
516
- (C(!0), v(m, null, T(X.value, (e, t) => (C(), v("g", null, [e.valueLabel && B.value.style.labels.valueLabel.show ? (C(), v("text", {
517
- key: 0,
518
- class: "vue-ui-sparkhistogram-bottom-label",
519
- x: e.textAnchor,
520
- y: e.y + e.height + B.value.style.labels.valueLabel.fontSize,
521
- "font-size": B.value.style.labels.valueLabel.fontSize,
522
- "text-anchor": "middle",
523
- fill: B.value.style.labels.valueLabel.color
524
- }, D(e.valueLabel), 9, Be)) : _("", !0)]))), 256)),
525
- (C(!0), v(m, null, T(X.value, (e, t) => (C(), v("g", null, [e.timeLabel && B.value.style.labels.timeLabel.show ? (C(), v("text", {
526
- key: 0,
527
- class: "vue-ui-sparkhistogram-time-label",
528
- x: e.textAnchor,
529
- y: Y.value.height,
530
- "font-size": B.value.style.labels.timeLabel.fontSize,
531
- fill: B.value.style.labels.timeLabel.color,
532
- "text-anchor": "middle"
533
- }, D(e.timeLabel), 9, Ve)) : _("", !0)]))), 256))
534
- ], 64)),
535
- (C(!0), v(m, null, T(X.value, (e, t) => (C(), v("g", null, [y("rect", {
536
- height: Y.value.height,
537
- width: e.unitWidth,
538
- fill: "transparent",
539
- x: e.trapX,
540
- y: 0,
541
- onMouseover: (n) => $e(e, t),
542
- onMouseleave: (n) => et(e, t),
543
- onClick: () => Qe(e, t)
544
- }, null, 40, He)]))), 256))
545
- ], 40, we)), e.$slots.hint ? (C(), v("div", Ue, [E(e.$slots, "hint", he(pe({
546
- hint: B.value.a11y.translations.keyboardNavigation,
547
- isVisible: L.value
548
- })), void 0, !0)])) : _("", !0)]),
549
- e.$slots.source ? (C(), v("div", {
550
- key: 2,
551
- ref_key: "source",
552
- ref: M,
553
- dir: "auto"
554
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
555
- E(e.$slots, "skeleton", {}, () => [O(V) ? (C(), g(f, { key: 0 })) : _("", !0)], !0)
556
- ], 36));
557
- }
558
- }, [["__scopeId", "data-v-8a87ff32"]]);
559
- //#endregion
560
- export { ye as n, k as t };