vue-data-ui 3.6.0 → 3.7.0

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,630 +0,0 @@
1
- import { defineAsyncComponent as G, ref as c, computed as h, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as he, createBlock as A, createCommentVNode as u, createElementVNode as _, withCtx as f, renderSlot as i, normalizeProps as p, guardReactiveProps as b, createSlots as Ue, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
2
- import { u as Ge, a as de } from "./useNestedProp-CIoDlpHu.js";
3
- import { c as Ve, t as je, S as qe, m as Xe, h as Ye, a as M, d as R, X as Je, o as ge, f as fe, g as Ke } from "./lib-C_mNZmhD.js";
4
- import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
5
- import { u as et } from "./usePrinter-DTzqpYKF.js";
6
- import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as at } from "./useChartAccessibility-9icAAmYg.js";
8
- import { t as lt } from "./themes-DH-N_ePR.js";
9
- import st from "./Legend-D9ZTJKjh.js";
10
- import ot from "./Title-Bb1VWCtR.js";
11
- import nt from "./img-BecE5qXd.js";
12
- import { u as rt, B as ut } from "./BaseScanner-BgWxam9d.js";
13
- import { u as it } from "./useSvgExport-DrjCWun4.js";
14
- import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const ct = ["id"], ht = {
16
- key: 1,
17
- ref: "noTitle",
18
- class: "vue-data-ui-no-title-space",
19
- style: "height:36px; width: 100%;background:transparent"
20
- }, dt = ["id"], gt = ["xmlns", "viewBox"], ft = ["width", "height"], mt = { key: 1 }, yt = ["x", "y", "height", "width", "fill", "stroke"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], kt = ["x", "y", "font-size", "font-weight", "fill"], wt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], xt = { key: 3 }, Ct = ["x", "y", "fill", "font-size", "font-weight"], $t = { key: 4 }, At = ["x1", "x2", "y1", "y2", "stroke"], _t = {
21
- key: 4,
22
- class: "vue-data-ui-watermark"
23
- }, Lt = ["id"], St = {
24
- key: 0,
25
- class: "vue-ui-bullet-legend-item",
26
- dir: "auto"
27
- }, Ot = { style: { "margin-right": "2px" } }, Bt = {
28
- __name: "vue-ui-bullet",
29
- props: {
30
- config: {
31
- type: Object,
32
- default() {
33
- return {};
34
- }
35
- },
36
- dataset: {
37
- type: Object,
38
- default() {
39
- return {};
40
- }
41
- }
42
- },
43
- setup(me, { expose: ye }) {
44
- const pe = G(() => import("./PackageVersion-D_4Hr4S4.js")), be = G(() => import("./PenAndPaper-BJSMejV9.js")), ke = G(() => import("./UserOptions-BqmUW9Kp.js")), { vue_ui_bullet: we } = Ge(), B = me, k = c(null), X = c(null), Y = c(0), J = c(null), K = c(null), xe = c(0), L = c(null), I = c(null), Q = c(!1), x = h({
45
- get: () => v.value.hasOwnProperty("value"),
46
- set: (t) => t
47
- }), S = h(() => v.value.segments ? Array.isArray(v.value.segments) ? v.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
48
-
49
- segments: [
50
- {
51
- name: string;
52
- from: number;
53
- to: number;
54
- color?: string;
55
- },
56
- {...}
57
- ]
58
- `), x.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
59
-
60
- segments: [
61
- {
62
- name: string;
63
- from: number;
64
- to: number;
65
- color?: string;
66
- },
67
- {...}
68
- ]
69
- `), x.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
70
-
71
- segments: [
72
- {
73
- name: string;
74
- from: number;
75
- to: number;
76
- color?: string;
77
- },
78
- {...}
79
- ]
80
- `), x.value = !1, !1)), Z = h(() => !!e.value.debug);
81
- function ee() {
82
- if (ge(v.value) ? (fe({
83
- componentName: "VueUiBullet",
84
- type: "dataset",
85
- debug: Z.value
86
- }), P.value = !0) : S.value ? v.value.segments.forEach((t, s) => {
87
- Ke({
88
- datasetObject: t,
89
- requiredAttributes: ["name", "from", "to"]
90
- }).forEach((a) => {
91
- x.value = !1, fe({
92
- componentName: "VueUiBullet segment",
93
- type: "datasetSerieAttribute",
94
- property: a,
95
- index: s,
96
- debug: Z.value
97
- });
98
- });
99
- }) : (x.value = !1, P.value = !0), ge(v.value) || (P.value = e.value.loading), e.value.responsive) {
100
- const t = Qe(() => {
101
- const { width: s, height: a } = Ze({
102
- chart: k.value,
103
- title: e.value.style.chart.title.text ? X.value : null,
104
- legend: e.value.style.chart.legend.show ? J.value : null,
105
- source: K.value
106
- });
107
- requestAnimationFrame(() => {
108
- F.value.width = s, F.value.height = a - 12;
109
- });
110
- });
111
- L.value && (I.value && L.value.unobserve(I.value), L.value.disconnect()), L.value = new ResizeObserver(t), I.value = k.value.parentNode, L.value.observe(I.value);
112
- }
113
- e.value.style.chart.animation.show && !C.value && se(v.value.value || 0);
114
- }
115
- ze(() => {
116
- Q.value = !0, ee();
117
- });
118
- const w = c(Ve());
119
- function z() {
120
- const t = de({
121
- userConfig: B.config,
122
- defaultConfig: we
123
- });
124
- return t.theme ? {
125
- ...de({
126
- userConfig: lt.vue_ui_bullet[t.theme] || B.config,
127
- defaultConfig: t
128
- })
129
- } : t;
130
- }
131
- const e = c(z()), { loading: C, FINAL_DATASET: v, manualLoading: P } = rt({
132
- ...Ne(B),
133
- FINAL_CONFIG: e,
134
- prepareConfig: z,
135
- skeletonDataset: {
136
- value: 100,
137
- target: 100,
138
- segments: [
139
- {
140
- name: "",
141
- from: 0,
142
- to: 33,
143
- color: "#AAAAAA"
144
- },
145
- {
146
- name: "",
147
- from: 33,
148
- to: 66,
149
- color: "#BABABA"
150
- },
151
- {
152
- name: "",
153
- from: 66,
154
- to: 100,
155
- color: "#CACACA"
156
- }
157
- ]
158
- },
159
- skeletonConfig: je({
160
- defaultConfig: e.value,
161
- userConfig: {
162
- userOptions: { show: !1 },
163
- style: {
164
- chart: {
165
- backgroundColor: "#99999930",
166
- segments: {
167
- dataLabels: { show: !1 },
168
- ticks: {
169
- stroke: "#8A8A8A"
170
- }
171
- },
172
- valueBar: {
173
- label: { show: !1 }
174
- }
175
- }
176
- }
177
- }
178
- })
179
- }), { userOptionsVisible: N, setUserOptionsVisibility: te, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: E } = at({ config: e.value.style.chart.title });
180
- ce(() => B.config, (t) => {
181
- C.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
182
- }, { deep: !0 });
183
- const F = c({
184
- width: e.value.style.chart.width,
185
- height: e.value.style.chart.height
186
- }), Ce = h(() => F.value.width), $e = h(() => F.value.height), l = h(() => {
187
- const t = $e.value, s = Ce.value, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, $ = e.value.style.chart.padding.top, g = t - e.value.style.chart.padding.bottom;
188
- return {
189
- height: Math.max(1e-3, t),
190
- width: Math.max(1e-3, s),
191
- left: a,
192
- right: d,
193
- top: $,
194
- bottom: g,
195
- chartWidth: Math.max(1e-3, d - a),
196
- chartHeight: Math.max(1e-3, g - $)
197
- };
198
- }), Ae = h(() => {
199
- if (!S.value) return [];
200
- const t = [];
201
- for (let s = 0; s < v.value.segments.length; s += 1)
202
- t.push(qe(e.value.style.chart.segments.baseColor, s / v.value.segments.length));
203
- return t;
204
- }), U = h(() => S.value ? {
205
- min: Math.min(...v.value.segments.map((t) => t.from)),
206
- max: Math.max(...v.value.segments.map((t) => t.to))
207
- } : { min: 0, max: 1 }), m = c(_e());
208
- ce(() => v.value, (t) => {
209
- t.hasOwnProperty("value") && (P.value = !1), e.value.style.chart.animation.show && !C.value ? se(t.value || 0) : m.value = t.value || 0;
210
- }, { deep: !0 });
211
- function _e() {
212
- return e.value.style.chart.animation.show && !C.value ? U.value.min : v.value.value || 0;
213
- }
214
- const le = c(null);
215
- function se(t) {
216
- const s = Math.abs(t - m.value) / e.value.style.chart.animation.animationFrames;
217
- function a() {
218
- m.value < t ? m.value = Math.min(m.value + s, t) : m.value > t && (m.value = Math.max(m.value - s, t)), m.value !== t && (le.value = requestAnimationFrame(a));
219
- }
220
- a();
221
- }
222
- Ee(() => {
223
- cancelAnimationFrame(le.value);
224
- });
225
- const y = h(() => {
226
- if (!S.value)
227
- return [];
228
- const t = Xe(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
229
- x: l.value.left + (v.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
230
- }, d = {
231
- width: (m.value + s) / (t.max + s) * l.value.chartWidth
232
- }, $ = t.ticks.map((g) => ({
233
- value: g,
234
- y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
235
- x: l.value.left + (g + s) / (t.max + s) * l.value.chartWidth
236
- }));
237
- return {
238
- scale: t,
239
- target: a,
240
- value: d,
241
- ticks: $,
242
- chunks: v.value.segments.map((g, Re) => ({
243
- ...g,
244
- color: g.color ? Ye(g.color) : Ae.value[Re],
245
- x: l.value.left + l.value.chartWidth * ((g.from + s) / (t.max + s)),
246
- y: l.value.top,
247
- height: l.value.chartHeight,
248
- width: l.value.chartWidth * (Math.abs(g.to - g.from) / (t.max + s))
249
- }))
250
- };
251
- }), W = h(() => !y.value || !y.value.chunks || !y.value.chunks.length ? [] : y.value.chunks.map((t) => {
252
- const s = M(
253
- e.value.style.chart.segments.dataLabels.formatter,
254
- t.from,
255
- R({
256
- p: e.value.style.chart.segments.dataLabels.prefix,
257
- v: t.from,
258
- s: e.value.style.chart.segments.dataLabels.suffix,
259
- r: e.value.style.chart.segments.dataLabels.rounding
260
- })
261
- ), a = M(
262
- e.value.style.chart.segments.dataLabels.formatter,
263
- t.to,
264
- R({
265
- p: e.value.style.chart.segments.dataLabels.prefix,
266
- v: t.to,
267
- s: e.value.style.chart.segments.dataLabels.suffix,
268
- r: e.value.style.chart.segments.dataLabels.rounding
269
- })
270
- ), d = `${s} — ${a}`;
271
- return {
272
- ...t,
273
- shape: "square",
274
- value: d,
275
- display: `${t.name}: ${d}`
276
- };
277
- })), Le = h(() => ({
278
- cy: "bullet-div-legend",
279
- backgroundColor: "transparent",
280
- color: e.value.style.chart.legend.color,
281
- fontSize: e.value.style.chart.legend.fontSize,
282
- paddingBottom: 6,
283
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
284
- })), { isPrinting: oe, isImaging: ne, generatePdf: re, generateImage: ue } = et({
285
- elementId: `bullet_${w.value}`,
286
- fileName: e.value.style.chart.title.text || "vue-ui-bullet",
287
- options: e.value.userOptions.print
288
- }), Se = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = c(!1);
289
- function ie(t) {
290
- O.value = t, xe.value += 1;
291
- }
292
- function Oe() {
293
- return y.value;
294
- }
295
- const T = c(!1);
296
- function D() {
297
- T.value = !T.value;
298
- }
299
- async function Be({ scale: t = 2 } = {}) {
300
- if (!k.value) return;
301
- const { width: s, height: a } = k.value.getBoundingClientRect(), d = s / a, { imageUri: $, base64: g } = await nt({ domElement: k.value, base64: !0, img: !0, scale: t });
302
- return {
303
- imageUri: $,
304
- base64: g,
305
- title: e.value.style.chart.title.text,
306
- width: s,
307
- height: a,
308
- aspectRatio: d
309
- };
310
- }
311
- const Ie = h(() => W.value.map((t) => ({
312
- ...t,
313
- name: t.display
314
- }))), Pe = h(() => e.value.style.chart.backgroundColor), Fe = h(() => e.value.style.chart.legend), Te = h(() => e.value.style.chart.title), { exportSvg: He, getSvg: Me } = it({
315
- svg: E,
316
- title: Te,
317
- legend: Fe,
318
- legendItems: Ie,
319
- backgroundColor: Pe
320
- });
321
- function ve({ isCb: t }) {
322
- t ? e.value.userOptions.callbacks.svg(Me()) : He();
323
- }
324
- return ye({
325
- getData: Oe,
326
- getImage: Be,
327
- generatePdf: re,
328
- generateImage: ue,
329
- generateSvg: ve,
330
- toggleAnnotator: D,
331
- toggleFullscreen: ie
332
- }), (t, s) => (o(), r("div", {
333
- ref_key: "bulletChart",
334
- ref: k,
335
- class: he(`vue-data-ui-component vue-ui-bullet ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
336
- style: V(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
337
- id: `bullet_${w.value}`,
338
- onMouseenter: s[0] || (s[0] = () => n(te)(!0)),
339
- onMouseleave: s[1] || (s[1] = () => n(te)(!1))
340
- }, [
341
- e.value.userOptions.buttons.annotator ? (o(), A(n(be), {
342
- key: 0,
343
- svgRef: n(E),
344
- backgroundColor: e.value.style.chart.backgroundColor,
345
- color: e.value.style.chart.color,
346
- active: T.value,
347
- onClose: D
348
- }, {
349
- "annotator-action-close": f(() => [
350
- i(t.$slots, "annotator-action-close", {}, void 0, !0)
351
- ]),
352
- "annotator-action-color": f(({ color: a }) => [
353
- i(t.$slots, "annotator-action-color", p(b({ color: a })), void 0, !0)
354
- ]),
355
- "annotator-action-draw": f(({ mode: a }) => [
356
- i(t.$slots, "annotator-action-draw", p(b({ mode: a })), void 0, !0)
357
- ]),
358
- "annotator-action-undo": f(({ disabled: a }) => [
359
- i(t.$slots, "annotator-action-undo", p(b({ disabled: a })), void 0, !0)
360
- ]),
361
- "annotator-action-redo": f(({ disabled: a }) => [
362
- i(t.$slots, "annotator-action-redo", p(b({ disabled: a })), void 0, !0)
363
- ]),
364
- "annotator-action-delete": f(({ disabled: a }) => [
365
- i(t.$slots, "annotator-action-delete", p(b({ disabled: a })), void 0, !0)
366
- ]),
367
- _: 3
368
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
369
- Se.value ? (o(), r("div", ht, null, 512)) : u("", !0),
370
- e.value.style.chart.title.text ? (o(), r("div", {
371
- key: 2,
372
- ref_key: "chartTitle",
373
- ref: X,
374
- style: "width:100%;background:transparent;"
375
- }, [
376
- (o(), A(ot, {
377
- lineHeight: "1.3rem",
378
- key: `title_${Y.value}`,
379
- config: {
380
- title: {
381
- cy: "bullet-div-title",
382
- ...e.value.style.chart.title
383
- },
384
- subtitle: {
385
- cy: "bullet-div-subtitle",
386
- ...e.value.style.chart.title.subtitle
387
- }
388
- }
389
- }, null, 8, ["config"]))
390
- ], 512)) : u("", !0),
391
- _("div", {
392
- id: `legend-top-${w.value}`
393
- }, null, 8, dt),
394
- e.value.userOptions.show && x.value && (n(ae) || n(N)) ? (o(), A(n(ke), {
395
- key: 3,
396
- ref: "details",
397
- backgroundColor: e.value.style.chart.backgroundColor,
398
- color: e.value.style.chart.color,
399
- isPrinting: n(oe),
400
- isImaging: n(ne),
401
- uid: w.value,
402
- hasTooltip: !1,
403
- hasPdf: e.value.userOptions.buttons.pdf,
404
- hasImg: e.value.userOptions.buttons.img,
405
- hasSvg: e.value.userOptions.buttons.svg,
406
- hasXls: !1,
407
- hasTable: !1,
408
- hasLabel: !1,
409
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
410
- isFullscreen: O.value,
411
- chartElement: k.value,
412
- position: e.value.userOptions.position,
413
- titles: { ...e.value.userOptions.buttonTitles },
414
- hasAnnotator: e.value.userOptions.buttons.annotator,
415
- isAnnotation: T.value,
416
- callbacks: e.value.userOptions.callbacks,
417
- printScale: e.value.userOptions.print.scale,
418
- onToggleFullscreen: ie,
419
- onGeneratePdf: n(re),
420
- onGenerateImage: n(ue),
421
- onGenerateSvg: ve,
422
- onToggleAnnotator: D,
423
- style: V({
424
- visibility: n(ae) ? n(N) ? "visible" : "hidden" : "visible"
425
- })
426
- }, Ue({ _: 2 }, [
427
- t.$slots.menuIcon ? {
428
- name: "menuIcon",
429
- fn: f(({ isOpen: a, color: d }) => [
430
- i(t.$slots, "menuIcon", p(b({ isOpen: a, color: d })), void 0, !0)
431
- ]),
432
- key: "0"
433
- } : void 0,
434
- t.$slots.optionPdf ? {
435
- name: "optionPdf",
436
- fn: f(() => [
437
- i(t.$slots, "optionPdf", {}, void 0, !0)
438
- ]),
439
- key: "1"
440
- } : void 0,
441
- t.$slots.optionImg ? {
442
- name: "optionImg",
443
- fn: f(() => [
444
- i(t.$slots, "optionImg", {}, void 0, !0)
445
- ]),
446
- key: "2"
447
- } : void 0,
448
- t.$slots.optionSvg ? {
449
- name: "optionSvg",
450
- fn: f(() => [
451
- i(t.$slots, "optionSvg", {}, void 0, !0)
452
- ]),
453
- key: "3"
454
- } : void 0,
455
- t.$slots.optionFullscreen ? {
456
- name: "optionFullscreen",
457
- fn: f(({ toggleFullscreen: a, isFullscreen: d }) => [
458
- i(t.$slots, "optionFullscreen", p(b({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
459
- ]),
460
- key: "4"
461
- } : void 0,
462
- t.$slots.optionAnnotator ? {
463
- name: "optionAnnotator",
464
- fn: f(({ toggleAnnotator: a, isAnnotator: d }) => [
465
- i(t.$slots, "optionAnnotator", p(b({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
466
- ]),
467
- key: "5"
468
- } : void 0
469
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
470
- (o(), r("svg", {
471
- ref_key: "svgRef",
472
- ref: E,
473
- xmlns: n(Je),
474
- class: he({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value, "vue-ui-bullet-svg": !0 }),
475
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
476
- style: V(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
477
- }, [
478
- We(n(pe)),
479
- t.$slots["chart-background"] ? (o(), r("foreignObject", {
480
- key: 0,
481
- x: 0,
482
- y: 0,
483
- width: l.value.width,
484
- height: l.value.height,
485
- style: {
486
- pointerEvents: "none"
487
- }
488
- }, [
489
- i(t.$slots, "chart-background", {}, void 0, !0)
490
- ], 8, ft)) : u("", !0),
491
- S.value ? (o(), r("g", mt, [
492
- (o(!0), r(j, null, q(y.value.chunks, (a) => (o(), r("rect", {
493
- x: a.x,
494
- y: a.y,
495
- height: a.height,
496
- width: a.width,
497
- fill: a.color,
498
- "stroke-width": 1,
499
- stroke: e.value.style.chart.backgroundColor,
500
- style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
501
- }, null, 8, yt))), 256)),
502
- !e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), r("rect", {
503
- key: 0,
504
- x: y.value.target.x,
505
- y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
506
- height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
507
- width: e.value.style.chart.target.width,
508
- rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
509
- fill: e.value.style.chart.target.color,
510
- stroke: e.value.style.chart.target.stroke,
511
- "stroke-width": e.value.style.chart.target.strokeWidth
512
- }, null, 8, pt)) : u("", !0),
513
- _("rect", {
514
- x: l.value.left,
515
- y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
516
- height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
517
- width: y.value.value.width,
518
- fill: e.value.style.chart.valueBar.color,
519
- stroke: e.value.style.chart.valueBar.stroke,
520
- "stroke-width": e.value.style.chart.valueBar.strokeWidth
521
- }, null, 8, bt),
522
- e.value.style.chart.valueBar.label.show ? (o(), r("text", {
523
- key: 1,
524
- x: l.value.left + y.value.value.width,
525
- y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
526
- "font-size": e.value.style.chart.valueBar.label.fontSize,
527
- "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
528
- fill: e.value.style.chart.valueBar.label.color,
529
- "text-anchor": "middle"
530
- }, H(n(M)(
531
- e.value.style.chart.segments.dataLabels.formatter,
532
- m.value,
533
- n(R)({
534
- p: e.value.style.chart.segments.dataLabels.prefix,
535
- v: m.value,
536
- s: e.value.style.chart.segments.dataLabels.suffix,
537
- r: e.value.style.chart.segments.dataLabels.rounding
538
- })
539
- )), 9, kt)) : u("", !0),
540
- e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), r("rect", {
541
- key: 2,
542
- x: y.value.target.x,
543
- y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
544
- height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
545
- width: e.value.style.chart.target.width,
546
- rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
547
- fill: e.value.style.chart.target.color,
548
- stroke: e.value.style.chart.target.stroke,
549
- "stroke-width": e.value.style.chart.target.strokeWidth,
550
- style: { transition: "x 0.3s ease-in-out" }
551
- }, null, 8, wt)) : u("", !0),
552
- e.value.style.chart.segments.dataLabels.show ? (o(), r("g", xt, [
553
- (o(!0), r(j, null, q(y.value.ticks, (a) => (o(), r("text", {
554
- x: a.x,
555
- y: a.y,
556
- "text-anchor": "middle",
557
- fill: e.value.style.chart.segments.dataLabels.color,
558
- "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
559
- "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
560
- }, H(n(M)(
561
- e.value.style.chart.segments.dataLabels.formatter,
562
- a.value,
563
- n(R)({
564
- p: e.value.style.chart.segments.dataLabels.prefix,
565
- v: a.value,
566
- s: e.value.style.chart.segments.dataLabels.suffix,
567
- r: e.value.style.chart.segments.dataLabels.rounding
568
- })
569
- )), 9, Ct))), 256))
570
- ])) : u("", !0),
571
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (o(), r("g", $t, [
572
- (o(!0), r(j, null, q(y.value.ticks, (a) => (o(), r("line", {
573
- x1: a.x,
574
- x2: a.x,
575
- y1: l.value.bottom,
576
- y2: l.value.bottom + 3,
577
- stroke: e.value.style.chart.segments.ticks.stroke,
578
- "stroke-width": 1,
579
- "stroke-linecap": "round"
580
- }, null, 8, At))), 256))
581
- ])) : u("", !0)
582
- ])) : u("", !0),
583
- i(t.$slots, "svg", { svg: l.value }, void 0, !0)
584
- ], 14, gt)),
585
- t.$slots.watermark ? (o(), r("div", _t, [
586
- i(t.$slots, "watermark", p(b({ isPrinting: n(oe) || n(ne) })), void 0, !0)
587
- ])) : u("", !0),
588
- _("div", {
589
- id: `legend-bottom-${w.value}`
590
- }, null, 8, Lt),
591
- Q.value ? (o(), A(De, {
592
- key: 5,
593
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
594
- }, [
595
- _("div", {
596
- ref_key: "chartLegend",
597
- ref: J
598
- }, [
599
- e.value.style.chart.legend.show ? (o(), A(st, {
600
- key: 0,
601
- clickable: !1,
602
- legendSet: W.value,
603
- config: Le.value
604
- }, {
605
- item: f(({ legend: a }) => [
606
- n(C) ? u("", !0) : (o(), r("div", St, [
607
- _("span", Ot, H(a.name) + ":", 1),
608
- _("span", null, H(a.value), 1)
609
- ]))
610
- ]),
611
- _: 1
612
- }, 8, ["legendSet", "config"])) : u("", !0),
613
- i(t.$slots, "legend", { legend: W.value }, void 0, !0)
614
- ], 512)
615
- ], 8, ["to"])) : u("", !0),
616
- t.$slots.source ? (o(), r("div", {
617
- key: 6,
618
- ref_key: "source",
619
- ref: K,
620
- dir: "auto"
621
- }, [
622
- i(t.$slots, "source", {}, void 0, !0)
623
- ], 512)) : u("", !0),
624
- n(C) ? (o(), A(ut, { key: 7 })) : u("", !0)
625
- ], 46, ct));
626
- }
627
- }, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-ab4dd268"]]);
628
- export {
629
- Vt as default
630
- };