vue-data-ui 3.0.0-next.8 → 3.0.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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  35. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-O07lQwRC.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-Hh7nGEjp.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
  107. package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
  108. package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
  109. package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
  110. package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
  111. package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
  112. package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
  113. package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
  114. package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
  115. package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
  116. package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
  117. package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
  118. package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
  119. package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
  120. package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
  121. package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
  122. package/dist/vue-ui-onion-B9thdF_c.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
  124. package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
  125. package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
  126. package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
  127. package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
  128. package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
  129. package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
  130. package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
  131. package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
  132. package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
  134. package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
  136. package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
  137. package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
  138. package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
  139. package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
  140. package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
  141. package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
  142. package/dist/vue-ui-wheel-C6uAotal.js +0 -352
  143. package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
  144. package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
@@ -0,0 +1,541 @@
1
+ import { useCssVars as ze, computed as c, defineAsyncComponent as j, ref as v, onMounted as We, toRefs as Ue, watch as Le, createElementBlock as u, openBlock as a, unref as n, normalizeStyle as ve, normalizeClass as z, createBlock as W, createCommentVNode as i, createSlots as Ne, withCtx as A, renderSlot as m, normalizeProps as U, guardReactiveProps as L, createVNode as Ye, createElementVNode as d, Fragment as N, renderList as de, toDisplayString as He } from "vue";
2
+ import { u as Ee, c as Re, t as Ve, o as qe, f as ye, g as Ge, a as Be, p as F, b as De, d as je, h as f, e as Y, X as Xe, s as Je, k as Ke, i as Qe } from "./index-BtNwOUja.js";
3
+ import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
4
+ import { u as tt, B as st } from "./useLoading-D7YHNtLX.js";
5
+ import { u as ot } from "./usePrinter-DUNjpQNe.js";
6
+ import { u as me } from "./useNestedProp-f2H3m6Yj.js";
7
+ import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as at } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as rt } from "./useAutoSizeLabelsInsideViewbox-FmDQyX4z.js";
10
+ import ut from "./Title-BGu6gEd2.js";
11
+ import nt from "./img-DrR839Ot.js";
12
+ import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const ht = ["id"], ct = {
14
+ key: 1,
15
+ ref: "noTitle",
16
+ class: "vue-data-ui-no-title-space",
17
+ style: "height:36px; width: 100%;background:transparent"
18
+ }, vt = ["xmlns", "viewBox"], dt = ["width", "height"], yt = ["id"], mt = ["x", "y", "width", "height", "rx", "ry"], ft = ["id"], gt = ["stop-color"], pt = ["stop-color"], kt = ["stop-color"], bt = ["clip-path"], xt = ["x", "y", "height", "width"], wt = ["x", "y", "height", "width", "fill"], _t = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], $t = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], At = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], It = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Pt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], St = ["x", "y", "height", "width"], Mt = { key: 1 }, Tt = ["x", "y", "height"], zt = ["y", "x", "fill", "font-size", "font-weight"], Wt = {
19
+ key: 4,
20
+ class: "vue-data-ui-watermark"
21
+ }, Ut = {
22
+ __name: "vue-ui-thermometer",
23
+ props: {
24
+ dataset: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ },
30
+ config: {
31
+ type: Object,
32
+ default() {
33
+ return {};
34
+ }
35
+ }
36
+ },
37
+ setup(O, { expose: fe }) {
38
+ ze((s) => ({
39
+ 25439570: Fe.value,
40
+ "6fd0a11e": Ae.value,
41
+ "1ea034ea": $e.value
42
+ }));
43
+ const ge = j(() => import("./PackageVersion-CJ6Vd7V5.js")), pe = j(() => import("./PenAndPaper-D3zudcNI.js")), ke = j(() => import("./UserOptions-Ck8fz9f4.js")), { vue_ui_thermometer: be } = Ee(), g = O, p = v(Re()), k = v(null), X = v(0), J = v(0), K = v(null), Q = v(null), b = v(null), I = v(null), xe = c(() => !!g.dataset && Object.keys(g.dataset).length);
44
+ We(() => {
45
+ te();
46
+ });
47
+ const e = v(q()), we = v(e.value.style.chart.thermometer.width), H = v(e.value.style.chart.height), E = v(e.value.style.chart.width), { loading: Z, FINAL_DATASET: h } = tt({
48
+ ...Ue(g),
49
+ FINAL_CONFIG: e,
50
+ prepareConfig: q,
51
+ skeletonDataset: { value: 0, from: -100, to: 100, steps: 20, colors: { from: "#A1A1A1", to: "#CACACA" } },
52
+ skeletonConfig: Ve({
53
+ defaultConfig: e.value,
54
+ userConfig: {
55
+ userOptions: { show: !1 },
56
+ style: {
57
+ chart: {
58
+ animation: { use: !1 },
59
+ backgroundColor: "#99999930",
60
+ graduations: {
61
+ stroke: "#6A6A6A"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ })
67
+ }), ee = c(() => !!e.value.debug);
68
+ function te() {
69
+ if (qe(g.dataset) ? ye({
70
+ componentName: "VueUiThermometer",
71
+ type: "dataset",
72
+ debug: ee.value
73
+ }) : Ge({
74
+ datasetObject: g.dataset,
75
+ requiredAttributes: ["value", "from", "to"]
76
+ }).forEach((s) => {
77
+ ye({
78
+ componentName: "VueUiThermometer",
79
+ type: "datasetAttribute",
80
+ property: s,
81
+ debug: ee.value
82
+ });
83
+ }), e.value.responsive) {
84
+ const s = Ze(() => {
85
+ const { width: l, height: t } = et({
86
+ chart: k.value,
87
+ title: e.value.style.title.text ? K.value : null,
88
+ source: Q.value
89
+ });
90
+ requestAnimationFrame(() => {
91
+ H.value = Math.max(0.1, t - 12), E.value = l, ce();
92
+ });
93
+ });
94
+ b.value && (I.value && b.value.unobserve(I.value), b.value.disconnect()), b.value = new ResizeObserver(s), I.value = k.value, b.value.observe(I.value);
95
+ }
96
+ ce();
97
+ }
98
+ const { userOptionsVisible: R, setUserOptionsVisibility: se, keepUserOptionState: oe } = lt({ config: e.value }), { svgRef: V } = at({ config: e.value.style.title });
99
+ function q() {
100
+ const s = me({
101
+ userConfig: g.config,
102
+ defaultConfig: be
103
+ });
104
+ return s.theme ? {
105
+ ...me({
106
+ userConfig: De.vue_ui_thermometer[s.theme] || g.config,
107
+ defaultConfig: s
108
+ }),
109
+ customPalette: Be[s.theme] || F
110
+ } : s;
111
+ }
112
+ Le(() => g.config, (s) => {
113
+ e.value = q(), R.value = !e.value.userOptions.showOnChartHover, we.value = e.value.style.chart.thermometer.width, H.value = e.value.style.chart.height, E.value = e.value.style.chart.width, te(), J.value += 1;
114
+ }, { deep: !0 });
115
+ const { isPrinting: le, isImaging: ae, generatePdf: re, generateImage: ue } = ot({
116
+ elementId: `thermometer__${p.value}`,
117
+ fileName: e.value.style.title.text || "vue-ui-thermometer",
118
+ options: e.value.userOptions.print
119
+ }), _e = c(() => e.value.userOptions.show && !e.value.style.title.text), P = c(() => je(e.value.customPalette)), y = c(() => h.value.steps || 10);
120
+ function S(s, l, t) {
121
+ const r = [], _ = ne(s), C = ne(l);
122
+ for (let $ = 0; $ < t; $++) {
123
+ const Pe = G(_.red, C.red, $, t), Se = G(_.green, C.green, $, t), Me = G(_.blue, C.blue, $, t), Te = `#${B(Pe)}${B(Se)}${B(Me)}`;
124
+ r.push(Te);
125
+ }
126
+ return r;
127
+ }
128
+ function ne(s) {
129
+ const l = s.slice(1);
130
+ return {
131
+ red: parseInt(l.slice(0, 2), 16),
132
+ green: parseInt(l.slice(2, 4), 16),
133
+ blue: parseInt(l.slice(4, 6), 16)
134
+ };
135
+ }
136
+ function G(s, l, t, r) {
137
+ return Math.round(s + (l - s) * t / r);
138
+ }
139
+ function B(s) {
140
+ return s.toString(16).padStart(2, "0");
141
+ }
142
+ const o = c(() => {
143
+ const s = Math.max(0.1, E.value), l = Math.max(0.1, H.value), t = e.value.style.chart.padding;
144
+ return {
145
+ width: s,
146
+ left: s / 2 - e.value.style.chart.thermometer.width / 2,
147
+ right: s / 2 + e.value.style.chart.thermometer.width / 2,
148
+ top: t.top,
149
+ bottom: l - t.bottom - t.top,
150
+ height: l,
151
+ thermoHeight: l - t.top - t.bottom,
152
+ thermoWidth: e.value.style.chart.thermometer.width
153
+ };
154
+ }), Ce = c(() => o.value), M = c(() => {
155
+ const s = f(h.value.from) < 0 ? Math.abs(f(h.value.from)) : f(h.value.from), l = f(h.value.to) < 0 ? Math.abs(f(h.value.to)) : f(h.value.to);
156
+ let t = 0;
157
+ return f(h.value.to) > 0 ? t = s + l : s > l ? t = s - l : t = l - s, (1 - (Math.abs(f(h.value.from)) + f(h.value.value)) / t) * o.value.thermoHeight;
158
+ }), $e = c(() => `${M.value}px`), Ae = c(() => `${o.value.thermoHeight}px`), Fe = c(() => `${e.value.style.chart.animation.speedMs}ms`), Oe = c(() => {
159
+ if (h.value.colors) {
160
+ if (!h.value.colors.from)
161
+ return S(P.value[0] || F[0], Y(h.value.colors.to), y.value || 10);
162
+ if (!h.value.colors.to)
163
+ return S(Y(h.value.colors.from), P.value[1] || F[1], y.value || 10);
164
+ } else
165
+ return S(P.value[1] || F[1], P.value[0] || F[0], y.value || 10);
166
+ return S(Y(h.value.colors.from), Y(h.value.colors.to), y.value || 10);
167
+ }), ie = c(() => {
168
+ const s = [];
169
+ let l = 0;
170
+ const t = o.value.thermoHeight;
171
+ for (let r = 0; r < t - 1; r += t / y.value)
172
+ s.push({
173
+ x: o.value.left,
174
+ y: o.value.top + r,
175
+ qYLess: o.value.top + r + t / y.value / 4,
176
+ halfY: o.value.top + r + t / y.value / 2,
177
+ qYMore: o.value.top + r + t / y.value / 4 * 3,
178
+ color: Oe.value[l],
179
+ height: Math.max(0.1, t / y.value)
180
+ }), l += 1;
181
+ return s;
182
+ }), x = v(!1);
183
+ function he(s) {
184
+ x.value = s, X.value += 1;
185
+ }
186
+ const T = v(!1);
187
+ function D() {
188
+ T.value = !T.value;
189
+ }
190
+ async function Ie({ scale: s = 2 } = {}) {
191
+ if (!k.value) return;
192
+ const { width: l, height: t } = k.value.getBoundingClientRect(), r = l / t, { imageUri: _, base64: C } = await nt({ domElement: k.value, base64: !0, img: !0, scale: s });
193
+ return {
194
+ imageUri: _,
195
+ base64: C,
196
+ title: e.value.style.title.text,
197
+ width: l,
198
+ height: t,
199
+ aspectRatio: r
200
+ };
201
+ }
202
+ const w = c({
203
+ get: () => e.value.style.chart.label.fontSize,
204
+ set: (s) => s
205
+ }), { autoSizeLabels: ce } = rt({
206
+ svgRef: V,
207
+ fontSize: e.value.style.chart.label.fontSize,
208
+ minFontSize: e.value.style.chart.label.minFontSize,
209
+ sizeRef: w,
210
+ labelClass: ".vue-ui-thermometer-label"
211
+ });
212
+ return fe({
213
+ getImage: Ie,
214
+ generatePdf: re,
215
+ generateImage: ue,
216
+ toggleAnnotator: D,
217
+ toggleFullscreen: he
218
+ }), (s, l) => (a(), u("div", {
219
+ ref_key: "thermoChart",
220
+ ref: k,
221
+ class: z(`vue-ui-thermometer ${x.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
222
+ style: ve(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
223
+ id: `thermometer__${p.value}`,
224
+ onMouseenter: l[0] || (l[0] = () => n(se)(!0)),
225
+ onMouseleave: l[1] || (l[1] = () => n(se)(!1))
226
+ }, [
227
+ e.value.userOptions.buttons.annotator ? (a(), W(n(pe), {
228
+ key: 0,
229
+ svgRef: n(V),
230
+ backgroundColor: e.value.style.chart.backgroundColor,
231
+ color: e.value.style.chart.color,
232
+ active: T.value,
233
+ onClose: D
234
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
235
+ _e.value ? (a(), u("div", ct, null, 512)) : i("", !0),
236
+ e.value.style.title.text ? (a(), u("div", {
237
+ key: 2,
238
+ ref_key: "chartTitle",
239
+ ref: K,
240
+ style: "width:100%"
241
+ }, [
242
+ (a(), W(ut, {
243
+ key: `title_${J.value}`,
244
+ config: {
245
+ title: {
246
+ cy: "thermometer-div-title",
247
+ ...e.value.style.title
248
+ },
249
+ subtitle: {
250
+ cy: "thermometer-div-subtitle",
251
+ ...e.value.style.title.subtitle
252
+ }
253
+ }
254
+ }, null, 8, ["config"]))
255
+ ], 512)) : i("", !0),
256
+ e.value.userOptions.show && xe.value && (n(oe) || n(R)) ? (a(), W(n(ke), {
257
+ ref: "details",
258
+ key: `user_options_${X.value}`,
259
+ backgroundColor: e.value.style.chart.backgroundColor,
260
+ color: e.value.style.chart.color,
261
+ isImaging: n(ae),
262
+ isPrinting: n(le),
263
+ uid: p.value,
264
+ hasPdf: e.value.userOptions.buttons.pdf,
265
+ hasImg: e.value.userOptions.buttons.img,
266
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
267
+ hasXls: !1,
268
+ isFullscreen: x.value,
269
+ titles: { ...e.value.userOptions.buttonTitles },
270
+ chartElement: k.value,
271
+ position: e.value.userOptions.position,
272
+ hasAnnotator: e.value.userOptions.buttons.annotator,
273
+ isAnnotation: T.value,
274
+ callbacks: e.value.userOptions.callbacks,
275
+ printScale: e.value.userOptions.print.scale,
276
+ onToggleFullscreen: he,
277
+ onGeneratePdf: n(re),
278
+ onGenerateImage: n(ue),
279
+ onToggleAnnotator: D,
280
+ style: ve({
281
+ visibility: n(oe) ? n(R) ? "visible" : "hidden" : "visible"
282
+ })
283
+ }, Ne({ _: 2 }, [
284
+ s.$slots.menuIcon ? {
285
+ name: "menuIcon",
286
+ fn: A(({ isOpen: t, color: r }) => [
287
+ m(s.$slots, "menuIcon", U(L({ isOpen: t, color: r })), void 0, !0)
288
+ ]),
289
+ key: "0"
290
+ } : void 0,
291
+ s.$slots.optionPdf ? {
292
+ name: "optionPdf",
293
+ fn: A(() => [
294
+ m(s.$slots, "optionPdf", {}, void 0, !0)
295
+ ]),
296
+ key: "1"
297
+ } : void 0,
298
+ s.$slots.optionImg ? {
299
+ name: "optionImg",
300
+ fn: A(() => [
301
+ m(s.$slots, "optionImg", {}, void 0, !0)
302
+ ]),
303
+ key: "2"
304
+ } : void 0,
305
+ s.$slots.optionFullscreen ? {
306
+ name: "optionFullscreen",
307
+ fn: A(({ toggleFullscreen: t, isFullscreen: r }) => [
308
+ m(s.$slots, "optionFullscreen", U(L({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
309
+ ]),
310
+ key: "3"
311
+ } : void 0,
312
+ s.$slots.optionAnnotator ? {
313
+ name: "optionAnnotator",
314
+ fn: A(({ toggleAnnotator: t, isAnnotator: r }) => [
315
+ m(s.$slots, "optionAnnotator", U(L({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
316
+ ]),
317
+ key: "4"
318
+ } : void 0
319
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
320
+ (a(), u("svg", {
321
+ ref_key: "svgRef",
322
+ ref: V,
323
+ xmlns: n(Xe),
324
+ class: z({ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value }),
325
+ width: "100%",
326
+ viewBox: `0 0 ${o.value.width} ${o.value.height}`,
327
+ style: "background:transparent"
328
+ }, [
329
+ Ye(n(ge)),
330
+ s.$slots["chart-background"] ? (a(), u("foreignObject", {
331
+ key: 0,
332
+ x: 0,
333
+ y: 0,
334
+ width: o.value.width,
335
+ height: o.value.height,
336
+ style: {
337
+ pointerEvents: "none"
338
+ }
339
+ }, [
340
+ m(s.$slots, "chart-background", {}, void 0, !0)
341
+ ], 8, dt)) : i("", !0),
342
+ d("defs", null, [
343
+ d("clipPath", {
344
+ id: `vueUiPill-${p.value}`,
345
+ clipPathUnits: "userSpaceOnUse"
346
+ }, [
347
+ d("rect", {
348
+ x: o.value.left,
349
+ y: o.value.top,
350
+ width: o.value.thermoWidth,
351
+ height: o.value.thermoHeight,
352
+ rx: o.value.thermoWidth / 2,
353
+ ry: o.value.thermoWidth / 2
354
+ }, null, 8, mt)
355
+ ], 8, yt),
356
+ (a(!0), u(N, null, de(ie.value, (t, r) => (a(), u("linearGradient", {
357
+ id: `vueUiThermometerGradient_${r}_${p.value}`,
358
+ x1: "0%",
359
+ y1: "0%",
360
+ x2: "100%",
361
+ y2: "0%"
362
+ }, [
363
+ d("stop", {
364
+ offset: "0%",
365
+ "stop-color": t.color
366
+ }, null, 8, gt),
367
+ d("stop", {
368
+ offset: "50%",
369
+ "stop-color": n(Je)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
370
+ }, null, 8, pt),
371
+ d("stop", {
372
+ offset: "100%",
373
+ "stop-color": t.color
374
+ }, null, 8, kt)
375
+ ], 8, ft))), 256))
376
+ ]),
377
+ d("g", {
378
+ "clip-path": `url(#vueUiPill-${p.value})`
379
+ }, [
380
+ d("rect", {
381
+ x: o.value.left,
382
+ y: o.value.top,
383
+ height: o.value.thermoHeight,
384
+ width: o.value.thermoWidth,
385
+ fill: "#FFFFFF"
386
+ }, null, 8, xt),
387
+ (a(!0), u(N, null, de(ie.value, (t, r) => (a(), u("g", {
388
+ key: `graduation_${r}`
389
+ }, [
390
+ d("rect", {
391
+ x: t.x,
392
+ y: t.y,
393
+ height: t.height,
394
+ width: o.value.thermoWidth,
395
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${r}_${p.value})` : t.color,
396
+ "shape-rendering": "crispEdges"
397
+ }, null, 8, wt),
398
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
399
+ key: 0,
400
+ x1: t.x,
401
+ x2: t.x + 10,
402
+ y1: t.y,
403
+ y2: t.y,
404
+ "stroke-width": e.value.style.chart.graduations.strokeWidth,
405
+ stroke: e.value.style.chart.graduations.stroke,
406
+ "stroke-linecap": "round"
407
+ }, null, 8, _t)) : i("", !0),
408
+ e.value.style.chart.graduations.showIntermediate ? (a(), u(N, { key: 1 }, [
409
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
410
+ key: 0,
411
+ x1: t.x,
412
+ x2: t.x + 5,
413
+ y1: t.halfY,
414
+ y2: t.halfY,
415
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
416
+ stroke: e.value.style.chart.graduations.stroke,
417
+ "stroke-linecap": "round"
418
+ }, null, 8, Ct)) : i("", !0),
419
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
420
+ key: 1,
421
+ x1: t.x,
422
+ x2: t.x + 2.5,
423
+ y1: t.qYLess,
424
+ y2: t.qYLess,
425
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
426
+ stroke: e.value.style.chart.graduations.stroke,
427
+ "stroke-linecap": "round"
428
+ }, null, 8, $t)) : i("", !0),
429
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
430
+ key: 2,
431
+ x1: t.x,
432
+ x2: t.x + 2.5,
433
+ y1: t.qYMore,
434
+ y2: t.qYMore,
435
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
436
+ stroke: e.value.style.chart.graduations.stroke,
437
+ "stroke-linecap": "round"
438
+ }, null, 8, At)) : i("", !0)
439
+ ], 64)) : i("", !0),
440
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
441
+ key: 2,
442
+ x1: o.value.right,
443
+ x2: o.value.right - 10,
444
+ y1: t.y,
445
+ y2: t.y,
446
+ "stroke-width": e.value.style.chart.graduations.strokeWidth,
447
+ stroke: e.value.style.chart.graduations.stroke,
448
+ "stroke-linecap": "round"
449
+ }, null, 8, Ft)) : i("", !0),
450
+ e.value.style.chart.graduations.showIntermediate ? (a(), u(N, { key: 3 }, [
451
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
452
+ key: 0,
453
+ x1: o.value.right,
454
+ x2: o.value.right - 5,
455
+ y1: t.halfY,
456
+ y2: t.halfY,
457
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
458
+ stroke: e.value.style.chart.graduations.stroke,
459
+ "stroke-linecap": "round"
460
+ }, null, 8, Ot)) : i("", !0),
461
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
462
+ key: 1,
463
+ x1: o.value.right,
464
+ x2: o.value.right - 2.5,
465
+ y1: t.qYLess,
466
+ y2: t.qYLess,
467
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
468
+ stroke: e.value.style.chart.graduations.stroke,
469
+ "stroke-linecap": "round"
470
+ }, null, 8, It)) : i("", !0),
471
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
472
+ key: 2,
473
+ x1: o.value.right,
474
+ x2: o.value.right - 2.5,
475
+ y1: t.qYMore,
476
+ y2: t.qYMore,
477
+ "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
478
+ stroke: e.value.style.chart.graduations.stroke,
479
+ "stroke-linecap": "round"
480
+ }, null, 8, Pt)) : i("", !0)
481
+ ], 64)) : i("", !0)
482
+ ]))), 128)),
483
+ d("rect", {
484
+ class: z({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
485
+ x: o.value.left,
486
+ y: o.value.top,
487
+ height: M.value,
488
+ width: o.value.thermoWidth,
489
+ fill: "#FFFFFF66"
490
+ }, null, 10, St)
491
+ ], 8, bt),
492
+ e.value.style.chart.label.show ? (a(), u("g", Mt, [
493
+ n(Z) ? (a(), u("rect", {
494
+ key: 0,
495
+ x: o.value.left - 60,
496
+ y: M.value + o.value.top - w.value / 2,
497
+ width: 50,
498
+ height: w.value,
499
+ fill: "#6A6A6A40",
500
+ rx: "3"
501
+ }, null, 8, Tt)) : (a(), u("text", {
502
+ key: 1,
503
+ class: z({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use, "vue-ui-thermometer-label": !0 }),
504
+ y: M.value + o.value.top + w.value / 3,
505
+ x: o.value.left - 10,
506
+ "text-anchor": "end",
507
+ fill: e.value.style.chart.label.color,
508
+ "font-size": w.value,
509
+ "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
510
+ }, He(n(Ke)(
511
+ e.value.style.chart.label.formatter,
512
+ O.dataset.value,
513
+ n(Qe)({
514
+ p: e.value.style.chart.label.prefix,
515
+ v: O.dataset.value,
516
+ s: e.value.style.chart.label.suffix,
517
+ r: e.value.style.chart.label.rounding
518
+ }),
519
+ { datapoint: O.dataset }
520
+ )), 11, zt))
521
+ ])) : i("", !0),
522
+ m(s.$slots, "svg", { svg: Ce.value }, void 0, !0)
523
+ ], 10, vt)),
524
+ s.$slots.watermark ? (a(), u("div", Wt, [
525
+ m(s.$slots, "watermark", U(L({ isPrinting: n(le) || n(ae) })), void 0, !0)
526
+ ])) : i("", !0),
527
+ s.$slots.source ? (a(), u("div", {
528
+ key: 5,
529
+ ref_key: "source",
530
+ ref: Q,
531
+ dir: "auto"
532
+ }, [
533
+ m(s.$slots, "source", {}, void 0, !0)
534
+ ], 512)) : i("", !0),
535
+ n(Z) ? (a(), W(st, { key: 6 })) : i("", !0)
536
+ ], 46, ht));
537
+ }
538
+ }, Xt = /* @__PURE__ */ it(Ut, [["__scopeId", "data-v-0a386d4f"]]);
539
+ export {
540
+ Xt as default
541
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as F, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
2
- import { u as ne } from "./useNestedProp-Hh7nGEjp.js";
3
- import { u as ce, c as ve, X as de, E as X } from "./index-Cfm5-hMQ.js";
2
+ import { u as ne } from "./useNestedProp-f2H3m6Yj.js";
3
+ import { u as ce, c as ve, X as de, E as X } from "./index-BtNwOUja.js";
4
4
  import { t as he, u as pe } from "./useResponsive-DfdjqQps.js";
5
5
  import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
6
- import we from "./Title-BSlAPr_H.js";
7
- import R from "./BaseIcon-BuOIF6t5.js";
6
+ import we from "./Title-BGu6gEd2.js";
7
+ import R from "./BaseIcon-CXtL10fo.js";
8
8
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  class ge {
10
10
  constructor(L, E, S, N = !0, A = !0) {
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
130
130
  },
131
131
  emits: ["start", "pause", "reset", "restart", "lap"],
132
132
  setup(q, { expose: L, emit: E }) {
133
- const S = se(() => import("./PackageVersion-CGQlqnmq.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
133
+ const S = se(() => import("./PackageVersion-CJ6Vd7V5.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
134
134
  le(() => {
135
135
  m();
136
136
  });