vue-data-ui 3.0.0-next.7 → 3.0.0-next.70

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -1,495 +0,0 @@
1
- import { useCssVars as $e, computed as d, defineAsyncComponent as A, onMounted as Pe, ref as p, watch as Fe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as oe, normalizeClass as S, createBlock as M, createCommentVNode as c, createSlots as Oe, withCtx as C, renderSlot as f, normalizeProps as U, guardReactiveProps as Y, createVNode as Ie, createElementVNode as v, Fragment as N, renderList as ae, toDisplayString as Ae } from "vue";
2
- import { u as Se, o as Me, e as le, g as Ue, c as Ye, t as Ne, p as $, a as Te, b as Ve, v as g, d as T, X as qe, s as Le, i as Ee, f as Ge } from "./index-Cg-RjxqH.js";
3
- import { u as re } from "./useNestedProp-C_G5E08Y.js";
4
- import { u as We } from "./usePrinter-BUzmyQf9.js";
5
- import { u as Be } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Re } from "./useChartAccessibility-9icAAmYg.js";
7
- import je from "./Title-B7Xb3YuE.js";
8
- import ze from "./img-D72yZNUg.js";
9
- import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const He = ["id"], Xe = {
11
- key: 1,
12
- ref: "noTitle",
13
- class: "vue-data-ui-no-title-space",
14
- style: "height:36px; width: 100%;background:transparent"
15
- }, Je = {
16
- key: 2,
17
- style: "width:100%"
18
- }, Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = {
19
- id: "vueUiPill",
20
- clipPathUnits: "objectBoundingBox"
21
- }, et = ["fill"], tt = ["id"], st = ["stop-color"], ot = ["stop-color"], at = ["stop-color"], lt = { "clip-path": "url(#vueUiPill)" }, rt = ["x", "y", "height", "width"], nt = ["x", "y", "height", "width", "fill"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], dt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], vt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], gt = ["x", "y", "height", "width"], pt = ["y", "x", "fill", "font-size", "font-weight"], mt = {
22
- key: 5,
23
- class: "vue-data-ui-watermark"
24
- }, kt = {
25
- key: 6,
26
- ref: "source",
27
- dir: "auto"
28
- }, bt = {
29
- __name: "vue-ui-thermometer",
30
- props: {
31
- dataset: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- config: {
38
- type: Object,
39
- default() {
40
- return {};
41
- }
42
- }
43
- },
44
- setup(P, { expose: ne }) {
45
- $e((s) => ({
46
- "7efc96cd": me.value,
47
- "4d37cb61": pe.value,
48
- "295a76e4": ge.value
49
- }));
50
- const ue = A(() => import("./PackageVersion-CeEYZfaH.js")), ie = A(() => import("./PenAndPaper-DhSxfUrQ.js")), ce = A(() => import("./vue-ui-skeleton-CUOhCY4p.js")), he = A(() => import("./UserOptions-0tvMM8PF.js")), { vue_ui_thermometer: de } = Se(), r = P, V = d(() => !!r.dataset && Object.keys(r.dataset).length);
51
- Pe(() => {
52
- B();
53
- });
54
- function B() {
55
- Me(r.dataset) ? le({
56
- componentName: "VueUiThermometer",
57
- type: "dataset"
58
- }) : Ue({
59
- datasetObject: r.dataset,
60
- requiredAttributes: ["value", "from", "to"]
61
- }).forEach((s) => {
62
- le({
63
- componentName: "VueUiThermometer",
64
- type: "datasetAttribute",
65
- property: s
66
- });
67
- });
68
- }
69
- const m = p(Ye()), k = p(null), R = p(0), j = p(0), e = d({
70
- get: () => X(),
71
- set: (s) => s
72
- }), { userOptionsVisible: q, setUserOptionsVisibility: z, keepUserOptionState: D } = Be({ config: e.value }), { svgRef: H } = Re({ config: e.value.style.title });
73
- function X() {
74
- const s = re({
75
- userConfig: r.config,
76
- defaultConfig: de
77
- });
78
- return s.theme ? {
79
- ...re({
80
- userConfig: Te.vue_ui_thermometer[s.theme] || r.config,
81
- defaultConfig: s
82
- }),
83
- customPalette: Ne[s.theme] || $
84
- } : s;
85
- }
86
- Fe(() => r.config, (s) => {
87
- e.value = X(), q.value = !e.value.userOptions.showOnChartHover, B(), j.value += 1;
88
- }, { deep: !0 });
89
- const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = We({
90
- elementId: `thermometer__${m.value}`,
91
- fileName: e.value.style.title.text || "vue-ui-thermometer",
92
- options: e.value.userOptions.print
93
- }), ve = d(() => e.value.userOptions.show && !e.value.style.title.text), F = d(() => Ve(e.value.customPalette)), ye = d(() => e.value.style.chart.thermometer.width), y = d(() => r.dataset.steps || 10), h = p({
94
- top: e.value.style.chart.padding.top,
95
- left: e.value.style.chart.padding.left,
96
- right: e.value.style.chart.padding.right,
97
- bottom: e.value.style.chart.padding.bottom
98
- });
99
- function O(s, a, t) {
100
- const n = [], x = ee(s), w = ee(a);
101
- for (let _ = 0; _ < t; _++) {
102
- const xe = L(x.red, w.red, _, t), we = L(x.green, w.green, _, t), _e = L(x.blue, w.blue, _, t), Ce = `#${E(xe)}${E(we)}${E(_e)}`;
103
- n.push(Ce);
104
- }
105
- return n;
106
- }
107
- function ee(s) {
108
- const a = s.slice(1);
109
- return {
110
- red: parseInt(a.slice(0, 2), 16),
111
- green: parseInt(a.slice(2, 4), 16),
112
- blue: parseInt(a.slice(4, 6), 16)
113
- };
114
- }
115
- function L(s, a, t, n) {
116
- return Math.round(s + (a - s) * t / n);
117
- }
118
- function E(s) {
119
- return s.toString(16).padStart(2, "0");
120
- }
121
- const o = d(() => {
122
- const s = ye.value + h.value.left + h.value.right, a = e.value.style.chart.height;
123
- return {
124
- width: s,
125
- left: h.value.left,
126
- right: s - h.value.right,
127
- top: h.value.top,
128
- bottom: a - h.value.bottom,
129
- height: a
130
- };
131
- }), fe = d(() => o.value), G = d(() => {
132
- const s = g(r.dataset.from) < 0 ? Math.abs(g(r.dataset.from)) : g(r.dataset.from), a = g(r.dataset.to) < 0 ? Math.abs(g(r.dataset.to)) : g(r.dataset.to);
133
- let t = 0;
134
- return g(r.dataset.to) > 0 ? t = s + a : s > a ? t = s - a : t = a - s, (1 - (Math.abs(g(r.dataset.from)) + g(r.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
135
- }), ge = d(() => `${G.value}px`), pe = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), me = d(() => `${e.value.style.chart.animation.speedMs}ms`), ke = d(() => {
136
- if (r.dataset.colors) {
137
- if (!r.dataset.colors.from)
138
- return O(F.value[0] || $[0], T(r.dataset.colors.to), y.value || 10);
139
- if (!r.dataset.colors.to)
140
- return O(T(r.dataset.colors.from), F.value[1] || $[1], y.value || 10);
141
- } else
142
- return O(F.value[1] || $[1], F.value[0] || $[0], y.value || 10);
143
- return O(T(r.dataset.colors.from), T(r.dataset.colors.to), y.value || 10);
144
- }), te = d(() => {
145
- const s = [];
146
- let a = 0;
147
- const t = o.value.height - h.value.top - h.value.bottom;
148
- for (let n = 0; n < t - 1; n += t / y.value)
149
- s.push({
150
- x: o.value.left,
151
- y: o.value.top + n,
152
- qYLess: o.value.top + n + t / y.value / 4,
153
- halfY: o.value.top + n + t / y.value / 2,
154
- qYMore: o.value.top + n + t / y.value / 4 * 3,
155
- color: ke.value[a],
156
- height: t / y.value
157
- }), a += 1;
158
- return s;
159
- }), b = p(!1);
160
- function se(s) {
161
- b.value = s, R.value += 1;
162
- }
163
- const I = p(!1);
164
- function W() {
165
- I.value = !I.value;
166
- }
167
- async function be({ scale: s = 2 } = {}) {
168
- if (!k.value) return;
169
- const { width: a, height: t } = k.value.getBoundingClientRect(), n = a / t, { imageUri: x, base64: w } = await ze({ domElement: k.value, base64: !0, img: !0, scale: s });
170
- return {
171
- imageUri: x,
172
- base64: w,
173
- title: e.value.style.title.text,
174
- width: a,
175
- height: t,
176
- aspectRatio: n
177
- };
178
- }
179
- return ne({
180
- getImage: be,
181
- generatePdf: Q,
182
- generateImage: Z,
183
- toggleAnnotator: W,
184
- toggleFullscreen: se
185
- }), (s, a) => (l(), u("div", {
186
- ref_key: "thermoChart",
187
- ref: k,
188
- class: S(`vue-ui-thermometer ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
189
- style: oe(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
190
- id: `thermometer__${m.value}`,
191
- onMouseenter: a[0] || (a[0] = () => i(z)(!0)),
192
- onMouseleave: a[1] || (a[1] = () => i(z)(!1))
193
- }, [
194
- e.value.userOptions.buttons.annotator ? (l(), M(i(ie), {
195
- key: 0,
196
- svgRef: i(H),
197
- backgroundColor: e.value.style.chart.backgroundColor,
198
- color: e.value.style.chart.color,
199
- active: I.value,
200
- onClose: W
201
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
202
- ve.value ? (l(), u("div", Xe, null, 512)) : c("", !0),
203
- e.value.style.title.text ? (l(), u("div", Je, [
204
- (l(), M(je, {
205
- key: `title_${j.value}`,
206
- config: {
207
- title: {
208
- cy: "thermometer-div-title",
209
- ...e.value.style.title
210
- },
211
- subtitle: {
212
- cy: "thermometer-div-subtitle",
213
- ...e.value.style.title.subtitle
214
- }
215
- }
216
- }, null, 8, ["config"]))
217
- ])) : c("", !0),
218
- e.value.userOptions.show && V.value && (i(D) || i(q)) ? (l(), M(i(he), {
219
- ref: "details",
220
- key: `user_options_${R.value}`,
221
- backgroundColor: e.value.style.chart.backgroundColor,
222
- color: e.value.style.chart.color,
223
- isImaging: i(K),
224
- isPrinting: i(J),
225
- uid: m.value,
226
- hasPdf: e.value.userOptions.buttons.pdf,
227
- hasImg: e.value.userOptions.buttons.img,
228
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
229
- hasXls: !1,
230
- isFullscreen: b.value,
231
- titles: { ...e.value.userOptions.buttonTitles },
232
- chartElement: k.value,
233
- position: e.value.userOptions.position,
234
- hasAnnotator: e.value.userOptions.buttons.annotator,
235
- isAnnotation: I.value,
236
- callbacks: e.value.userOptions.callbacks,
237
- printScale: e.value.userOptions.print.scale,
238
- onToggleFullscreen: se,
239
- onGeneratePdf: i(Q),
240
- onGenerateImage: i(Z),
241
- onToggleAnnotator: W,
242
- style: oe({
243
- visibility: i(D) ? i(q) ? "visible" : "hidden" : "visible"
244
- })
245
- }, Oe({ _: 2 }, [
246
- s.$slots.menuIcon ? {
247
- name: "menuIcon",
248
- fn: C(({ isOpen: t, color: n }) => [
249
- f(s.$slots, "menuIcon", U(Y({ isOpen: t, color: n })), void 0, !0)
250
- ]),
251
- key: "0"
252
- } : void 0,
253
- s.$slots.optionPdf ? {
254
- name: "optionPdf",
255
- fn: C(() => [
256
- f(s.$slots, "optionPdf", {}, void 0, !0)
257
- ]),
258
- key: "1"
259
- } : void 0,
260
- s.$slots.optionImg ? {
261
- name: "optionImg",
262
- fn: C(() => [
263
- f(s.$slots, "optionImg", {}, void 0, !0)
264
- ]),
265
- key: "2"
266
- } : void 0,
267
- s.$slots.optionFullscreen ? {
268
- name: "optionFullscreen",
269
- fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [
270
- f(s.$slots, "optionFullscreen", U(Y({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
271
- ]),
272
- key: "3"
273
- } : void 0,
274
- s.$slots.optionAnnotator ? {
275
- name: "optionAnnotator",
276
- fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [
277
- f(s.$slots, "optionAnnotator", U(Y({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
278
- ]),
279
- key: "4"
280
- } : void 0
281
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
282
- V.value ? (l(), u("svg", {
283
- key: 4,
284
- ref_key: "svgRef",
285
- ref: H,
286
- xmlns: i(qe),
287
- class: S({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value }),
288
- width: "100%",
289
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
290
- style: "background:transparent"
291
- }, [
292
- Ie(i(ue)),
293
- s.$slots["chart-background"] ? (l(), u("foreignObject", {
294
- key: 0,
295
- x: 0,
296
- y: 0,
297
- width: o.value.width,
298
- height: o.value.height,
299
- style: {
300
- pointerEvents: "none"
301
- }
302
- }, [
303
- f(s.$slots, "chart-background", {}, void 0, !0)
304
- ], 8, Qe)) : c("", !0),
305
- v("defs", null, [
306
- v("clipPath", Ze, [
307
- v("rect", {
308
- x: "0",
309
- y: "0",
310
- width: "1",
311
- height: "1",
312
- rx: "0.5",
313
- ry: "0.07",
314
- fill: e.value.style.chart.backgroundColor
315
- }, null, 8, et)
316
- ]),
317
- (l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("linearGradient", {
318
- id: `vueUiThermometerGradient_${n}_${m.value}`,
319
- x1: "0%",
320
- y1: "0%",
321
- x2: "100%",
322
- y2: "0%"
323
- }, [
324
- v("stop", {
325
- offset: "0%",
326
- "stop-color": t.color
327
- }, null, 8, st),
328
- v("stop", {
329
- offset: "50%",
330
- "stop-color": i(Le)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
331
- }, null, 8, ot),
332
- v("stop", {
333
- offset: "100%",
334
- "stop-color": t.color
335
- }, null, 8, at)
336
- ], 8, tt))), 256))
337
- ]),
338
- v("g", lt, [
339
- v("rect", {
340
- x: o.value.left,
341
- y: o.value.top,
342
- height: o.value.height - h.value.top - h.value.bottom,
343
- width: o.value.width - h.value.left - h.value.right,
344
- fill: "#FFFFFF"
345
- }, null, 8, rt),
346
- (l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("g", {
347
- key: `graduation_${n}`
348
- }, [
349
- v("rect", {
350
- x: t.x,
351
- y: t.y,
352
- height: t.height,
353
- width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
354
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
355
- "shape-rendering": "crispEdges"
356
- }, null, 8, nt),
357
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
358
- key: 0,
359
- x1: t.x,
360
- x2: t.x + 10,
361
- y1: t.y,
362
- y2: t.y,
363
- "stroke-width": e.value.style.chart.graduations.strokeWidth,
364
- stroke: e.value.style.chart.graduations.stroke,
365
- "stroke-linecap": "round"
366
- }, null, 8, ut)) : c("", !0),
367
- e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 1 }, [
368
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
369
- key: 0,
370
- x1: t.x,
371
- x2: t.x + 5,
372
- y1: t.halfY,
373
- y2: t.halfY,
374
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
375
- stroke: e.value.style.chart.graduations.stroke,
376
- "stroke-linecap": "round"
377
- }, null, 8, it)) : c("", !0),
378
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
379
- key: 1,
380
- x1: t.x,
381
- x2: t.x + 2.5,
382
- y1: t.qYLess,
383
- y2: t.qYLess,
384
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
385
- stroke: e.value.style.chart.graduations.stroke,
386
- "stroke-linecap": "round"
387
- }, null, 8, ct)) : c("", !0),
388
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
389
- key: 2,
390
- x1: t.x,
391
- x2: t.x + 2.5,
392
- y1: t.qYMore,
393
- y2: t.qYMore,
394
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
395
- stroke: e.value.style.chart.graduations.stroke,
396
- "stroke-linecap": "round"
397
- }, null, 8, ht)) : c("", !0)
398
- ], 64)) : c("", !0),
399
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
400
- key: 2,
401
- x1: o.value.right,
402
- x2: o.value.right - 10,
403
- y1: t.y,
404
- y2: t.y,
405
- "stroke-width": e.value.style.chart.graduations.strokeWidth,
406
- stroke: e.value.style.chart.graduations.stroke,
407
- "stroke-linecap": "round"
408
- }, null, 8, dt)) : c("", !0),
409
- e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 3 }, [
410
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
411
- key: 0,
412
- x1: o.value.right,
413
- x2: o.value.right - 5,
414
- y1: t.halfY,
415
- y2: t.halfY,
416
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
417
- stroke: e.value.style.chart.graduations.stroke,
418
- "stroke-linecap": "round"
419
- }, null, 8, vt)) : c("", !0),
420
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
421
- key: 1,
422
- x1: o.value.right,
423
- x2: o.value.right - 2.5,
424
- y1: t.qYLess,
425
- y2: t.qYLess,
426
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
427
- stroke: e.value.style.chart.graduations.stroke,
428
- "stroke-linecap": "round"
429
- }, null, 8, yt)) : c("", !0),
430
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
431
- key: 2,
432
- x1: o.value.right,
433
- x2: o.value.right - 2.5,
434
- y1: t.qYMore,
435
- y2: t.qYMore,
436
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
437
- stroke: e.value.style.chart.graduations.stroke,
438
- "stroke-linecap": "round"
439
- }, null, 8, ft)) : c("", !0)
440
- ], 64)) : c("", !0)
441
- ]))), 128)),
442
- v("rect", {
443
- class: S({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
444
- x: o.value.left,
445
- y: o.value.top,
446
- height: G.value,
447
- width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
448
- fill: "#FFFFFF66"
449
- }, null, 10, gt)
450
- ]),
451
- v("text", {
452
- class: S({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
453
- y: G.value + o.value.top + e.value.style.chart.label.fontSize / 3,
454
- x: o.value.left - 10,
455
- "text-anchor": "end",
456
- fill: e.value.style.chart.label.color,
457
- "font-size": e.value.style.chart.label.fontSize,
458
- "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
459
- }, Ae(i(Ee)(
460
- e.value.style.chart.label.formatter,
461
- P.dataset.value,
462
- i(Ge)({
463
- p: e.value.style.chart.label.prefix,
464
- v: P.dataset.value,
465
- s: e.value.style.chart.label.suffix,
466
- r: e.value.style.chart.label.rounding
467
- }),
468
- { datapoint: P.dataset }
469
- )), 11, pt),
470
- f(s.$slots, "svg", { svg: fe.value }, void 0, !0)
471
- ], 10, Ke)) : c("", !0),
472
- s.$slots.watermark ? (l(), u("div", mt, [
473
- f(s.$slots, "watermark", U(Y({ isPrinting: i(J) || i(K) })), void 0, !0)
474
- ])) : c("", !0),
475
- s.$slots.source ? (l(), u("div", kt, [
476
- f(s.$slots, "source", {}, void 0, !0)
477
- ], 512)) : c("", !0),
478
- V.value ? c("", !0) : (l(), M(i(ce), {
479
- key: 7,
480
- config: {
481
- type: "thermometer",
482
- style: {
483
- backgroundColor: e.value.style.chart.backgroundColor,
484
- thermometer: {
485
- color: "#CCCCCC"
486
- }
487
- }
488
- }
489
- }, null, 8, ["config"]))
490
- ], 46, He));
491
- }
492
- }, At = /* @__PURE__ */ De(bt, [["__scopeId", "data-v-8985051a"]]);
493
- export {
494
- At as default
495
- };