vue-data-ui 2.12.5 → 2.12.7-beta.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 (112) hide show
  1. package/README.md +56 -1
  2. package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
  3. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  4. package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
  5. package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
  6. package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
  7. package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
  8. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  9. package/dist/PackageVersion-CLY-udAA.js +10 -0
  10. package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
  11. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  12. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  13. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  14. package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
  15. package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
  16. package/dist/SparkTooltip-CwThutH2.js +68 -0
  17. package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
  18. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  19. package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
  20. package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
  21. package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
  22. package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
  23. package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +96 -2
  26. package/dist/types/vue-data-ui.d.ts +96 -2
  27. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  28. package/dist/useMouse-AicQS8Vf.js +13 -0
  29. package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
  30. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  31. package/dist/usePrinter-CRCbl1WG.js +53 -0
  32. package/dist/vClickOutside-C6WiFswA.js +13 -0
  33. package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
  34. package/dist/vue-data-ui.js +42 -40
  35. package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  36. package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  37. package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  38. package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  39. package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  40. package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  41. package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  42. package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  43. package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
  44. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  45. package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  46. package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  47. package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  48. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  49. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  50. package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  51. package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  52. package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  53. package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  54. package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  55. package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  56. package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  57. package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  58. package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  59. package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  60. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  61. package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  62. package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  63. package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
  64. package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  65. package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  66. package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  67. package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  68. package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
  69. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  70. package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  71. package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
  72. package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  73. package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  74. package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  75. package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  76. package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  77. package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  78. package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  79. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  80. package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  81. package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  82. package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  83. package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
  84. package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  85. package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  86. package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  87. package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  88. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  89. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  90. package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  91. package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  92. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  93. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  94. package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
  95. package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
  96. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  97. package/package.json +6 -6
  98. package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
  99. package/dist/PackageVersion-Cw2caN1c.js +0 -10
  100. package/dist/Tooltip-LKe8L-Mg.js +0 -158
  101. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  102. package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
  103. package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
  104. package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
  105. package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
  106. package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
  107. package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
  108. package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
  109. package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
  110. package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
  111. package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
  112. package/dist/vue-ui-xy-canvas-DV0BVdZb.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-vjCxtaM0.js";
3
- import { _ as Te } from "./Title-xO1jFsSw.js";
4
- import { u as qe, U as Le } from "./usePrinter-CcgJXHIK.js";
5
- import Ve from "./vue-ui-skeleton-DfOIDTJM.js";
6
- import { u as le } from "./useNestedProp-Du1hnYFA.js";
7
- import { _ as Ee } from "./PackageVersion-Cw2caN1c.js";
8
- import { _ as Ge } from "./PenAndPaper-DLsvRwoD.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-BiHmNd1-.js";
3
+ import { u as ae } from "./useNestedProp-tRqS0ZAM.js";
4
+ import { u as Ge } from "./usePrinter-CRCbl1WG.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-B5qqUI3M.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-CLY-udAA.js")), ue = F(() => import("./PenAndPaper-B9na2mbr.js")), ie = F(() => import("./vue-ui-skeleton-CbYQYRvD.js")), ce = F(() => import("./UserOptions-Ddy6CuLC.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
  };