vue-data-ui 2.12.6 → 2.12.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,29 +1,26 @@
1
- import { useCssVars as ke, computed as d, onMounted as be, ref as m, watch as _e, createElementBlock as u, openBlock as l, unref as h, normalizeStyle as te, normalizeClass as I, createBlock as O, createCommentVNode as i, createSlots as xe, withCtx as _, renderSlot as f, normalizeProps as P, guardReactiveProps as A, createVNode as we, createElementVNode as v, Fragment as M, renderList as se, toDisplayString as Ce } from "vue";
2
- import { u as $e, o as Fe, e as oe, g as Ie, c as Oe, t as Pe, p as x, a as Ae, b as Me, v as g, d as U, X as Ue, s as Ye, i as Ne, f as Se } from "./index-BFzQMJda.js";
3
- import { _ as Te } from "./Title-CzaCeCOm.js";
4
- import { u as qe, U as Le } from "./usePrinter-C5bLp34h.js";
5
- import Ve from "./vue-ui-skeleton-B_YI7Yuc.js";
6
- import { u as le } from "./useNestedProp-v7KPpwuP.js";
7
- import { _ as Ee } from "./PackageVersion-BjrblLPQ.js";
8
- import { _ as Ge } from "./PenAndPaper-BkP3J-Ft.js";
1
+ import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as I, createBlock as O, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as M, createVNode as Ie, createElementVNode as v, Fragment as Y, renderList as oe, toDisplayString as Oe } from "vue";
2
+ import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-BHEd2dgu.js";
3
+ import { u as ae } from "./useNestedProp-CZztHZIm.js";
4
+ import { u as Ge } from "./usePrinter-C8URL2IU.js";
9
5
  import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as je } from "./useChartAccessibility-BWojgys7.js";
11
- import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Be = ["id"], Re = {
6
+ import { u as je } from "./useChartAccessibility-9icAAmYg.js";
7
+ import ze from "./Title-Bc66VstS.js";
8
+ import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Re = ["id"], De = {
13
10
  key: 1,
14
11
  ref: "noTitle",
15
12
  class: "vue-data-ui-no-title-space",
16
13
  style: "height:36px; width: 100%;background:transparent"
17
- }, De = {
14
+ }, He = {
18
15
  key: 2,
19
16
  style: "width:100%"
20
- }, He = ["xmlns", "viewBox"], Xe = ["width", "height"], Je = {
17
+ }, Xe = ["xmlns", "viewBox"], Je = ["width", "height"], Ke = {
21
18
  id: "vueUiPill",
22
19
  clipPathUnits: "objectBoundingBox"
23
- }, Ke = ["fill"], Qe = ["id"], Ze = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], st = { "clip-path": "url(#vueUiPill)" }, ot = ["x", "y", "height", "width"], lt = ["x", "y", "height", "width", "fill"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], dt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], vt = ["x", "y", "height", "width"], yt = ["y", "x", "fill", "font-size", "font-weight"], ft = {
20
+ }, Qe = ["fill"], Ze = ["id"], et = ["stop-color"], tt = ["stop-color"], st = ["stop-color"], ot = { "clip-path": "url(#vueUiPill)" }, lt = ["x", "y", "height", "width"], at = ["x", "y", "height", "width", "fill"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], 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 = ["x", "y", "height", "width"], ft = ["y", "x", "fill", "font-size", "font-weight"], gt = {
24
21
  key: 5,
25
22
  class: "vue-data-ui-watermark"
26
- }, gt = {
23
+ }, pt = {
27
24
  key: 6,
28
25
  ref: "source",
29
26
  dir: "auto"
@@ -43,70 +40,70 @@ const Be = ["id"], Re = {
43
40
  }
44
41
  }
45
42
  },
46
- setup(w, { expose: ae }) {
47
- ke((s) => ({
48
- "3272b184": de.value,
49
- "0885078a": ce.value,
50
- "09e2f6f7": he.value
43
+ setup(_, { expose: re }) {
44
+ Ce((s) => ({
45
+ "67ef7d5f": pe.value,
46
+ fabc91e2: ge.value,
47
+ d0007888: fe.value
51
48
  }));
52
- const { vue_ui_thermometer: re } = $e(), a = w, Y = d(() => !!a.dataset && Object.keys(a.dataset).length);
53
- be(() => {
54
- G();
49
+ const ne = F(() => import("./PackageVersion-DaWGaZxE.js")), ue = F(() => import("./PenAndPaper-C-CpE0NC.js")), ie = F(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), ce = F(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_thermometer: he } = Ae(), a = _, S = d(() => !!a.dataset && Object.keys(a.dataset).length);
50
+ $e(() => {
51
+ W();
55
52
  });
56
- function G() {
57
- Fe(a.dataset) ? oe({
53
+ function W() {
54
+ Me(a.dataset) ? le({
58
55
  componentName: "VueUiThermometer",
59
56
  type: "dataset"
60
- }) : Ie({
57
+ }) : Ye({
61
58
  datasetObject: a.dataset,
62
59
  requiredAttributes: ["value", "from", "to"]
63
60
  }).forEach((s) => {
64
- oe({
61
+ le({
65
62
  componentName: "VueUiThermometer",
66
63
  type: "datasetAttribute",
67
64
  property: s
68
65
  });
69
66
  });
70
67
  }
71
- const p = m(Oe()), W = m(null), j = m(0), z = m(0), e = d({
72
- get: () => H(),
68
+ const m = p(Ne()), j = p(null), z = p(0), B = p(0), e = d({
69
+ get: () => X(),
73
70
  set: (s) => s
74
- }), { userOptionsVisible: N, setUserOptionsVisibility: B, keepUserOptionState: R } = We({ config: e.value }), { svgRef: D } = je({ config: e.value.style.title });
75
- function H() {
76
- const s = le({
71
+ }), { userOptionsVisible: U, setUserOptionsVisibility: R, keepUserOptionState: D } = We({ config: e.value }), { svgRef: H } = je({ config: e.value.style.title });
72
+ function X() {
73
+ const s = ae({
77
74
  userConfig: a.config,
78
- defaultConfig: re
75
+ defaultConfig: he
79
76
  });
80
77
  return s.theme ? {
81
- ...le({
82
- userConfig: Ae.vue_ui_thermometer[s.theme] || a.config,
78
+ ...ae({
79
+ userConfig: Ue.vue_ui_thermometer[s.theme] || a.config,
83
80
  defaultConfig: s
84
81
  }),
85
- customPalette: Pe[s.theme] || x
82
+ customPalette: Se[s.theme] || w
86
83
  } : s;
87
84
  }
88
- _e(() => a.config, (s) => {
89
- e.value = H(), N.value = !e.value.userOptions.showOnChartHover, G(), z.value += 1;
85
+ Pe(() => a.config, (s) => {
86
+ e.value = X(), U.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
90
87
  }, { deep: !0 });
91
- const { isPrinting: X, isImaging: J, generatePdf: K, generateImage: Q } = qe({
92
- elementId: `thermometer__${p.value}`,
88
+ const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = Ge({
89
+ elementId: `thermometer__${m.value}`,
93
90
  fileName: e.value.style.title.text || "vue-ui-thermometer",
94
91
  options: e.value.userOptions.print
95
- }), ne = d(() => e.value.userOptions.show && !e.value.style.title.text), C = d(() => Me(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), c = m({
92
+ }), de = d(() => e.value.userOptions.show && !e.value.style.title.text), C = d(() => Te(e.value.customPalette)), ve = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), h = p({
96
93
  top: e.value.style.chart.padding.top,
97
94
  left: e.value.style.chart.padding.left,
98
95
  right: e.value.style.chart.padding.right,
99
96
  bottom: e.value.style.chart.padding.bottom
100
97
  });
101
98
  function $(s, r, t) {
102
- const n = [], V = Z(s), E = Z(r);
99
+ const n = [], E = ee(s), G = ee(r);
103
100
  for (let b = 0; b < t; b++) {
104
- const fe = S(V.red, E.red, b, t), ge = S(V.green, E.green, b, t), me = S(V.blue, E.blue, b, t), pe = `#${T(fe)}${T(ge)}${T(me)}`;
105
- n.push(pe);
101
+ const be = T(E.red, G.red, b, t), xe = T(E.green, G.green, b, t), we = T(E.blue, G.blue, b, t), _e = `#${V(be)}${V(xe)}${V(we)}`;
102
+ n.push(_e);
106
103
  }
107
104
  return n;
108
105
  }
109
- function Z(s) {
106
+ function ee(s) {
110
107
  const r = s.slice(1);
111
108
  return {
112
109
  red: parseInt(r.slice(0, 2), 16),
@@ -114,39 +111,39 @@ const Be = ["id"], Re = {
114
111
  blue: parseInt(r.slice(4, 6), 16)
115
112
  };
116
113
  }
117
- function S(s, r, t, n) {
114
+ function T(s, r, t, n) {
118
115
  return Math.round(s + (r - s) * t / n);
119
116
  }
120
- function T(s) {
117
+ function V(s) {
121
118
  return s.toString(16).padStart(2, "0");
122
119
  }
123
120
  const o = d(() => {
124
- const s = ue.value + c.value.left + c.value.right, r = e.value.style.chart.height;
121
+ const s = ve.value + h.value.left + h.value.right, r = e.value.style.chart.height;
125
122
  return {
126
123
  width: s,
127
- left: c.value.left,
128
- right: s - c.value.right,
129
- top: c.value.top,
130
- bottom: r - c.value.bottom,
124
+ left: h.value.left,
125
+ right: s - h.value.right,
126
+ top: h.value.top,
127
+ bottom: r - h.value.bottom,
131
128
  height: r
132
129
  };
133
- }), ie = d(() => o.value), q = d(() => {
130
+ }), ye = d(() => o.value), q = d(() => {
134
131
  const s = g(a.dataset.from) < 0 ? Math.abs(g(a.dataset.from)) : g(a.dataset.from), r = g(a.dataset.to) < 0 ? Math.abs(g(a.dataset.to)) : g(a.dataset.to);
135
132
  let t = 0;
136
- return g(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(g(a.dataset.from)) + g(a.dataset.value)) / t) * (o.value.height - c.value.top - c.value.bottom);
137
- }), he = d(() => `${q.value}px`), ce = d(() => `${o.value.height - e.value.style.chart.padding.bottom - c.value.top}px`), de = d(() => `${e.value.style.chart.animation.speedMs}ms`), ve = d(() => {
133
+ return g(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(g(a.dataset.from)) + g(a.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
134
+ }), fe = d(() => `${q.value}px`), ge = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), pe = d(() => `${e.value.style.chart.animation.speedMs}ms`), me = d(() => {
138
135
  if (a.dataset.colors) {
139
136
  if (!a.dataset.colors.from)
140
- return $(C.value[0] || x[0], U(a.dataset.colors.to), y.value || 10);
137
+ return $(C.value[0] || w[0], N(a.dataset.colors.to), y.value || 10);
141
138
  if (!a.dataset.colors.to)
142
- return $(U(a.dataset.colors.from), C.value[1] || x[1], y.value || 10);
139
+ return $(N(a.dataset.colors.from), C.value[1] || w[1], y.value || 10);
143
140
  } else
144
- return $(C.value[1] || x[1], C.value[0] || x[0], y.value || 10);
145
- return $(U(a.dataset.colors.from), U(a.dataset.colors.to), y.value || 10);
146
- }), ee = d(() => {
141
+ return $(C.value[1] || w[1], C.value[0] || w[0], y.value || 10);
142
+ return $(N(a.dataset.colors.from), N(a.dataset.colors.to), y.value || 10);
143
+ }), te = d(() => {
147
144
  const s = [];
148
145
  let r = 0;
149
- const t = o.value.height - c.value.top - c.value.bottom;
146
+ const t = o.value.height - h.value.top - h.value.bottom;
150
147
  for (let n = 0; n < t - 1; n += t / y.value)
151
148
  s.push({
152
149
  x: o.value.left,
@@ -154,43 +151,43 @@ const Be = ["id"], Re = {
154
151
  qYLess: o.value.top + n + t / y.value / 4,
155
152
  halfY: o.value.top + n + t / y.value / 2,
156
153
  qYMore: o.value.top + n + t / y.value / 4 * 3,
157
- color: ve.value[r],
154
+ color: me.value[r],
158
155
  height: t / y.value
159
156
  }), r += 1;
160
157
  return s;
161
- }), k = m(!1);
162
- function ye(s) {
163
- k.value = s, j.value += 1;
158
+ }), k = p(!1);
159
+ function ke(s) {
160
+ k.value = s, z.value += 1;
164
161
  }
165
- const F = m(!1);
162
+ const P = p(!1);
166
163
  function L() {
167
- F.value = !F.value;
164
+ P.value = !P.value;
168
165
  }
169
- return ae({
170
- generatePdf: K,
171
- generateImage: Q,
166
+ return re({
167
+ generatePdf: Q,
168
+ generateImage: Z,
172
169
  toggleAnnotator: L
173
170
  }), (s, r) => (l(), u("div", {
174
171
  ref_key: "thermoChart",
175
- ref: W,
172
+ ref: j,
176
173
  class: I(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
177
- style: te(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
178
- id: `thermometer__${p.value}`,
179
- onMouseenter: r[0] || (r[0] = () => h(B)(!0)),
180
- onMouseleave: r[1] || (r[1] = () => h(B)(!1))
174
+ style: se(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
175
+ id: `thermometer__${m.value}`,
176
+ onMouseenter: r[0] || (r[0] = () => i(R)(!0)),
177
+ onMouseleave: r[1] || (r[1] = () => i(R)(!1))
181
178
  }, [
182
- e.value.userOptions.buttons.annotator ? (l(), O(Ge, {
179
+ e.value.userOptions.buttons.annotator ? (l(), O(i(ue), {
183
180
  key: 0,
184
- svgRef: h(D),
181
+ svgRef: i(H),
185
182
  backgroundColor: e.value.style.chart.backgroundColor,
186
183
  color: e.value.style.chart.color,
187
- active: F.value,
184
+ active: P.value,
188
185
  onClose: L
189
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
190
- ne.value ? (l(), u("div", Re, null, 512)) : i("", !0),
191
- e.value.style.title.text ? (l(), u("div", De, [
192
- (l(), O(Te, {
193
- key: `title_${z.value}`,
186
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
187
+ de.value ? (l(), u("div", De, null, 512)) : c("", !0),
188
+ e.value.style.title.text ? (l(), u("div", He, [
189
+ (l(), O(ze, {
190
+ key: `title_${B.value}`,
194
191
  config: {
195
192
  title: {
196
193
  cy: "thermometer-div-title",
@@ -202,80 +199,80 @@ const Be = ["id"], Re = {
202
199
  }
203
200
  }
204
201
  }, null, 8, ["config"]))
205
- ])) : i("", !0),
206
- e.value.userOptions.show && Y.value && (h(R) || h(N)) ? (l(), O(Le, {
202
+ ])) : c("", !0),
203
+ e.value.userOptions.show && S.value && (i(D) || i(U)) ? (l(), O(i(ce), {
207
204
  ref: "details",
208
- key: `user_options_${j.value}`,
205
+ key: `user_options_${z.value}`,
209
206
  backgroundColor: e.value.style.chart.backgroundColor,
210
207
  color: e.value.style.chart.color,
211
- isImaging: h(J),
212
- isPrinting: h(X),
213
- uid: p.value,
208
+ isImaging: i(K),
209
+ isPrinting: i(J),
210
+ uid: m.value,
214
211
  hasPdf: e.value.userOptions.buttons.pdf,
215
212
  hasImg: e.value.userOptions.buttons.img,
216
213
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
217
214
  hasXls: !1,
218
215
  isFullscreen: k.value,
219
216
  titles: { ...e.value.userOptions.buttonTitles },
220
- chartElement: W.value,
217
+ chartElement: j.value,
221
218
  position: e.value.userOptions.position,
222
219
  hasAnnotator: e.value.userOptions.buttons.annotator,
223
- isAnnotation: F.value,
224
- onToggleFullscreen: ye,
225
- onGeneratePdf: h(K),
226
- onGenerateImage: h(Q),
220
+ isAnnotation: P.value,
221
+ onToggleFullscreen: ke,
222
+ onGeneratePdf: i(Q),
223
+ onGenerateImage: i(Z),
227
224
  onToggleAnnotator: L,
228
- style: te({
229
- visibility: h(R) ? h(N) ? "visible" : "hidden" : "visible"
225
+ style: se({
226
+ visibility: i(D) ? i(U) ? "visible" : "hidden" : "visible"
230
227
  })
231
- }, xe({ _: 2 }, [
228
+ }, Fe({ _: 2 }, [
232
229
  s.$slots.menuIcon ? {
233
230
  name: "menuIcon",
234
- fn: _(({ isOpen: t, color: n }) => [
235
- f(s.$slots, "menuIcon", P(A({ isOpen: t, color: n })), void 0, !0)
231
+ fn: x(({ isOpen: t, color: n }) => [
232
+ f(s.$slots, "menuIcon", A(M({ isOpen: t, color: n })), void 0, !0)
236
233
  ]),
237
234
  key: "0"
238
235
  } : void 0,
239
236
  s.$slots.optionPdf ? {
240
237
  name: "optionPdf",
241
- fn: _(() => [
238
+ fn: x(() => [
242
239
  f(s.$slots, "optionPdf", {}, void 0, !0)
243
240
  ]),
244
241
  key: "1"
245
242
  } : void 0,
246
243
  s.$slots.optionImg ? {
247
244
  name: "optionImg",
248
- fn: _(() => [
245
+ fn: x(() => [
249
246
  f(s.$slots, "optionImg", {}, void 0, !0)
250
247
  ]),
251
248
  key: "2"
252
249
  } : void 0,
253
250
  s.$slots.optionFullscreen ? {
254
251
  name: "optionFullscreen",
255
- fn: _(({ toggleFullscreen: t, isFullscreen: n }) => [
256
- f(s.$slots, "optionFullscreen", P(A({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
252
+ fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [
253
+ f(s.$slots, "optionFullscreen", A(M({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
257
254
  ]),
258
255
  key: "3"
259
256
  } : void 0,
260
257
  s.$slots.optionAnnotator ? {
261
258
  name: "optionAnnotator",
262
- fn: _(({ toggleAnnotator: t, isAnnotator: n }) => [
263
- f(s.$slots, "optionAnnotator", P(A({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
259
+ fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [
260
+ f(s.$slots, "optionAnnotator", A(M({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
264
261
  ]),
265
262
  key: "4"
266
263
  } : void 0
267
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
268
- Y.value ? (l(), u("svg", {
264
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
265
+ S.value ? (l(), u("svg", {
269
266
  key: 4,
270
267
  ref_key: "svgRef",
271
- ref: D,
272
- xmlns: h(Ue),
268
+ ref: H,
269
+ xmlns: i(Ve),
273
270
  class: I({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
274
271
  width: "100%",
275
272
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
276
273
  style: "background:transparent"
277
274
  }, [
278
- we(Ee),
275
+ Ie(i(ne)),
279
276
  s.$slots["chart-background"] ? (l(), u("foreignObject", {
280
277
  key: 0,
281
278
  x: 0,
@@ -287,9 +284,9 @@ const Be = ["id"], Re = {
287
284
  }
288
285
  }, [
289
286
  f(s.$slots, "chart-background", {}, void 0, !0)
290
- ], 8, Xe)) : i("", !0),
287
+ ], 8, Je)) : c("", !0),
291
288
  v("defs", null, [
292
- v("clipPath", Je, [
289
+ v("clipPath", Ke, [
293
290
  v("rect", {
294
291
  x: "0",
295
292
  y: "0",
@@ -298,10 +295,10 @@ const Be = ["id"], Re = {
298
295
  rx: "0.5",
299
296
  ry: "0.07",
300
297
  fill: e.value.style.chart.backgroundColor
301
- }, null, 8, Ke)
298
+ }, null, 8, Qe)
302
299
  ]),
303
- (l(!0), u(M, null, se(ee.value, (t, n) => (l(), u("linearGradient", {
304
- id: `vueUiThermometerGradient_${n}_${p.value}`,
300
+ (l(!0), u(Y, null, oe(te.value, (t, n) => (l(), u("linearGradient", {
301
+ id: `vueUiThermometerGradient_${n}_${m.value}`,
305
302
  x1: "0%",
306
303
  y1: "0%",
307
304
  x2: "100%",
@@ -310,26 +307,26 @@ const Be = ["id"], Re = {
310
307
  v("stop", {
311
308
  offset: "0%",
312
309
  "stop-color": t.color
313
- }, null, 8, Ze),
310
+ }, null, 8, et),
314
311
  v("stop", {
315
312
  offset: "50%",
316
- "stop-color": h(Ye)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
317
- }, null, 8, et),
313
+ "stop-color": i(qe)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
314
+ }, null, 8, tt),
318
315
  v("stop", {
319
316
  offset: "100%",
320
317
  "stop-color": t.color
321
- }, null, 8, tt)
322
- ], 8, Qe))), 256))
318
+ }, null, 8, st)
319
+ ], 8, Ze))), 256))
323
320
  ]),
324
- v("g", st, [
321
+ v("g", ot, [
325
322
  v("rect", {
326
323
  x: o.value.left,
327
324
  y: o.value.top,
328
- height: o.value.height - c.value.top - c.value.bottom,
329
- width: o.value.width - c.value.left - c.value.right,
325
+ height: o.value.height - h.value.top - h.value.bottom,
326
+ width: o.value.width - h.value.left - h.value.right,
330
327
  fill: "#FFFFFF"
331
- }, null, 8, ot),
332
- (l(!0), u(M, null, se(ee.value, (t, n) => (l(), u("g", {
328
+ }, null, 8, lt),
329
+ (l(!0), u(Y, null, oe(te.value, (t, n) => (l(), u("g", {
333
330
  key: `graduation_${n}`
334
331
  }, [
335
332
  v("rect", {
@@ -337,9 +334,9 @@ const Be = ["id"], Re = {
337
334
  y: t.y,
338
335
  height: t.height,
339
336
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
340
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${p.value})` : t.color,
337
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
341
338
  "shape-rendering": "crispEdges"
342
- }, null, 8, lt),
339
+ }, null, 8, at),
343
340
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
344
341
  key: 0,
345
342
  x1: t.x,
@@ -349,8 +346,8 @@ const Be = ["id"], Re = {
349
346
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
350
347
  stroke: e.value.style.chart.graduations.stroke,
351
348
  "stroke-linecap": "round"
352
- }, null, 8, at)) : i("", !0),
353
- e.value.style.chart.graduations.showIntermediate ? (l(), u(M, { key: 1 }, [
349
+ }, null, 8, rt)) : c("", !0),
350
+ e.value.style.chart.graduations.showIntermediate ? (l(), u(Y, { key: 1 }, [
354
351
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
355
352
  key: 0,
356
353
  x1: t.x,
@@ -360,7 +357,7 @@ const Be = ["id"], Re = {
360
357
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
361
358
  stroke: e.value.style.chart.graduations.stroke,
362
359
  "stroke-linecap": "round"
363
- }, null, 8, rt)) : i("", !0),
360
+ }, null, 8, nt)) : c("", !0),
364
361
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
365
362
  key: 1,
366
363
  x1: t.x,
@@ -370,7 +367,7 @@ const Be = ["id"], Re = {
370
367
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
371
368
  stroke: e.value.style.chart.graduations.stroke,
372
369
  "stroke-linecap": "round"
373
- }, null, 8, nt)) : i("", !0),
370
+ }, null, 8, ut)) : c("", !0),
374
371
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
375
372
  key: 2,
376
373
  x1: t.x,
@@ -380,8 +377,8 @@ const Be = ["id"], Re = {
380
377
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
381
378
  stroke: e.value.style.chart.graduations.stroke,
382
379
  "stroke-linecap": "round"
383
- }, null, 8, ut)) : i("", !0)
384
- ], 64)) : i("", !0),
380
+ }, null, 8, it)) : c("", !0)
381
+ ], 64)) : c("", !0),
385
382
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
386
383
  key: 2,
387
384
  x1: o.value.right,
@@ -391,8 +388,8 @@ const Be = ["id"], Re = {
391
388
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
392
389
  stroke: e.value.style.chart.graduations.stroke,
393
390
  "stroke-linecap": "round"
394
- }, null, 8, it)) : i("", !0),
395
- e.value.style.chart.graduations.showIntermediate ? (l(), u(M, { key: 3 }, [
391
+ }, null, 8, ct)) : c("", !0),
392
+ e.value.style.chart.graduations.showIntermediate ? (l(), u(Y, { key: 3 }, [
396
393
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
397
394
  key: 0,
398
395
  x1: o.value.right,
@@ -402,7 +399,7 @@ const Be = ["id"], Re = {
402
399
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
403
400
  stroke: e.value.style.chart.graduations.stroke,
404
401
  "stroke-linecap": "round"
405
- }, null, 8, ht)) : i("", !0),
402
+ }, null, 8, ht)) : c("", !0),
406
403
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
407
404
  key: 1,
408
405
  x1: o.value.right,
@@ -412,7 +409,7 @@ const Be = ["id"], Re = {
412
409
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
413
410
  stroke: e.value.style.chart.graduations.stroke,
414
411
  "stroke-linecap": "round"
415
- }, null, 8, ct)) : i("", !0),
412
+ }, null, 8, dt)) : c("", !0),
416
413
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
417
414
  key: 2,
418
415
  x1: o.value.right,
@@ -422,8 +419,8 @@ const Be = ["id"], Re = {
422
419
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
423
420
  stroke: e.value.style.chart.graduations.stroke,
424
421
  "stroke-linecap": "round"
425
- }, null, 8, dt)) : i("", !0)
426
- ], 64)) : i("", !0)
422
+ }, null, 8, vt)) : c("", !0)
423
+ ], 64)) : c("", !0)
427
424
  ]))), 128)),
428
425
  v("rect", {
429
426
  class: I({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
@@ -432,7 +429,7 @@ const Be = ["id"], Re = {
432
429
  height: q.value,
433
430
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
434
431
  fill: "#FFFFFF66"
435
- }, null, 10, vt)
432
+ }, null, 10, yt)
436
433
  ]),
437
434
  v("text", {
438
435
  class: I({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
@@ -442,26 +439,26 @@ const Be = ["id"], Re = {
442
439
  fill: e.value.style.chart.label.color,
443
440
  "font-size": e.value.style.chart.label.fontSize,
444
441
  "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
445
- }, Ce(h(Ne)(
442
+ }, Oe(i(Le)(
446
443
  e.value.style.chart.label.formatter,
447
- w.dataset.value,
448
- h(Se)({
444
+ _.dataset.value,
445
+ i(Ee)({
449
446
  p: e.value.style.chart.label.prefix,
450
- v: w.dataset.value,
447
+ v: _.dataset.value,
451
448
  s: e.value.style.chart.label.suffix,
452
449
  r: e.value.style.chart.label.rounding
453
450
  }),
454
- { datapoint: w.dataset }
455
- )), 11, yt),
456
- f(s.$slots, "svg", { svg: ie.value }, void 0, !0)
457
- ], 10, He)) : i("", !0),
458
- s.$slots.watermark ? (l(), u("div", ft, [
459
- f(s.$slots, "watermark", P(A({ isPrinting: h(X) || h(J) })), void 0, !0)
460
- ])) : i("", !0),
461
- s.$slots.source ? (l(), u("div", gt, [
451
+ { datapoint: _.dataset }
452
+ )), 11, ft),
453
+ f(s.$slots, "svg", { svg: ye.value }, void 0, !0)
454
+ ], 10, Xe)) : c("", !0),
455
+ s.$slots.watermark ? (l(), u("div", gt, [
456
+ f(s.$slots, "watermark", A(M({ isPrinting: i(J) || i(K) })), void 0, !0)
457
+ ])) : c("", !0),
458
+ s.$slots.source ? (l(), u("div", pt, [
462
459
  f(s.$slots, "source", {}, void 0, !0)
463
- ], 512)) : i("", !0),
464
- Y.value ? i("", !0) : (l(), O(Ve, {
460
+ ], 512)) : c("", !0),
461
+ S.value ? c("", !0) : (l(), O(i(ie), {
465
462
  key: 7,
466
463
  config: {
467
464
  type: "thermometer",
@@ -473,9 +470,9 @@ const Be = ["id"], Re = {
473
470
  }
474
471
  }
475
472
  }, null, 8, ["config"]))
476
- ], 46, Be));
473
+ ], 46, Re));
477
474
  }
478
- }, Pt = /* @__PURE__ */ ze(mt, [["__scopeId", "data-v-b0579fd1"]]);
475
+ }, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-1a738265"]]);
479
476
  export {
480
- Pt as default
477
+ Ft as default
481
478
  };