vue-data-ui 3.0.0-next.1 → 3.0.0-next.3

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 (95) hide show
  1. package/README.md +16 -1
  2. package/dist/{Arrow-BKKETqRi.js → Arrow-C8ztMhxn.js} +1 -1
  3. package/dist/{BaseDraggableDialog-Duz4Bd3A.js → BaseDraggableDialog-DoA1cXmQ.js} +2 -2
  4. package/dist/{BaseIcon-BAHAKjob.js → BaseIcon-TJm1JI2f.js} +1 -1
  5. package/dist/{ColorPicker-oPTO1J9Q.js → ColorPicker-DwhabPvD.js} +2 -2
  6. package/dist/{DataTable-vByThHdN.js → DataTable-DObwKftY.js} +2 -2
  7. package/dist/{Legend-CIElSUHU.js → Legend-C-EDWcHp.js} +19 -18
  8. package/dist/{NonSvgPenAndPaper-CsY6Bf4e.js → NonSvgPenAndPaper-Cmy4Opaq.js} +3 -3
  9. package/dist/{PackageVersion-B0wGS6pw.js → PackageVersion-B_SVQo0g.js} +1 -1
  10. package/dist/{PenAndPaper-7o0xS-d4.js → PenAndPaper-CFbTGuB_.js} +3 -3
  11. package/dist/{Shape-Blrp5ZfP.js → Shape-DGduPk8q.js} +1 -1
  12. package/dist/{Slicer-CcM8hzCn.js → Slicer-VumiAmDi.js} +2 -2
  13. package/dist/{SparkTooltip-iaouYun8.js → SparkTooltip-DrRmoIkR.js} +1 -1
  14. package/dist/{Title-CWxjC3bE.js → Title-Dahu_Ia-.js} +1 -1
  15. package/dist/Tooltip-j8grOyYT.js +157 -0
  16. package/dist/{UserOptions-BEBaPSlU.js → UserOptions-BOIQ8NtD.js} +2 -2
  17. package/dist/{dom-to-png-CrAOuxmd.js → dom-to-png-00aHI4Vj.js} +1 -1
  18. package/dist/{img-D3JvqNF8.js → img-DFeNRkbq.js} +1 -1
  19. package/dist/{index-BSa4GlHG.js → index-DKjAxJY6.js} +1180 -1130
  20. package/dist/{pdf-DROWzopj.js → pdf-COmwjbLG.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +41 -51
  23. package/dist/types/vue-data-ui.d.ts +41 -51
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-uR74_CFG.js → useNestedProp-Cmx8ApWu.js} +1 -1
  26. package/dist/{usePrinter-j3g1L2nh.js → usePrinter-BefhLUKK.js} +2 -2
  27. package/dist/{vue-data-ui-BzMRz9Un.js → vue-data-ui-kdcEQgS0.js} +63 -63
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-BAOGEe-m.js → vue-ui-3d-bar-Lv9eoXpT.js} +6 -6
  30. package/dist/{vue-ui-accordion-DzF-SPaZ.js → vue-ui-accordion-BhrF0D_h.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-BRdQ44O4.js → vue-ui-age-pyramid-DN94DM1L.js} +6 -6
  32. package/dist/{vue-ui-annotator-mjIKrhYa.js → vue-ui-annotator-D-YFzFco.js} +2 -2
  33. package/dist/{vue-ui-bullet-CLYmLvSB.js → vue-ui-bullet--c-hIC1J.js} +7 -7
  34. package/dist/{vue-ui-candlestick-BFLmoEEN.js → vue-ui-candlestick-Dz0D7t8f.js} +7 -7
  35. package/dist/{vue-ui-carousel-table-V89TMa5p.js → vue-ui-carousel-table-Bg4_nEqO.js} +4 -4
  36. package/dist/{vue-ui-chestnut-C7eNjkFo.js → vue-ui-chestnut-D9BP8n-D.js} +6 -6
  37. package/dist/{vue-ui-chord-BuYDLE7K.js → vue-ui-chord-DDa4TTtv.js} +8 -8
  38. package/dist/{vue-ui-circle-pack-CCMbsOpk.js → vue-ui-circle-pack-DWxEHCSN.js} +26 -26
  39. package/dist/{vue-ui-cursor-BrKIImfp.js → vue-ui-cursor-BtLD4k-n.js} +2 -2
  40. package/dist/{vue-ui-dashboard-WMKjx3iE.js → vue-ui-dashboard-DvyNEYA8.js} +62 -62
  41. package/dist/{vue-ui-digits-BoYPIuXn.js → vue-ui-digits-XkSs-Fvw.js} +2 -2
  42. package/dist/vue-ui-donut-BO2QuXBj.js +1532 -0
  43. package/dist/{vue-ui-donut-evolution-DSG8NUG0.js → vue-ui-donut-evolution-CQDtCf7k.js} +8 -8
  44. package/dist/{vue-ui-dumbbell-BMveoLd_.js → vue-ui-dumbbell-jtJmPKky.js} +7 -7
  45. package/dist/{vue-ui-flow-Dnsik-8f.js → vue-ui-flow-D1hSlRXa.js} +7 -7
  46. package/dist/{vue-ui-funnel-CQ0nHCvy.js → vue-ui-funnel-BlLlAOtx.js} +6 -6
  47. package/dist/{vue-ui-galaxy-D5L31IXm.js → vue-ui-galaxy-BZAhXSnB.js} +5 -5
  48. package/dist/{vue-ui-gauge-BnuDe4Wj.js → vue-ui-gauge-FdnYVol9.js} +6 -6
  49. package/dist/{vue-ui-gizmo-DYYw-JEs.js → vue-ui-gizmo-BXiMNDNp.js} +3 -3
  50. package/dist/{vue-ui-heatmap-9KJYiKzE.js → vue-ui-heatmap-BUmZvmK0.js} +7 -7
  51. package/dist/{vue-ui-history-plot-QOaVWh5L.js → vue-ui-history-plot-CTT0NO2g.js} +7 -7
  52. package/dist/{vue-ui-kpi-EtTBwHGS.js → vue-ui-kpi-BNNqPORJ.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-CRnUCpsm.js → vue-ui-mini-loader-wa4WjqZj.js} +2 -2
  54. package/dist/{vue-ui-molecule-Bfk3Vhbi.js → vue-ui-molecule-NGbWYvw-.js} +5 -5
  55. package/dist/{vue-ui-mood-radar-BfRkWvgp.js → vue-ui-mood-radar-Dz2YUYPG.js} +7 -7
  56. package/dist/{vue-ui-nested-donuts-Ck9Zm1UU.js → vue-ui-nested-donuts-ywwGdEJO.js} +269 -269
  57. package/dist/{vue-ui-onion-DF7Z21x-.js → vue-ui-onion-DUeU3zvH.js} +7 -7
  58. package/dist/{vue-ui-parallel-coordinate-plot-JVogg7k5.js → vue-ui-parallel-coordinate-plot-5158EX3T.js} +8 -8
  59. package/dist/{vue-ui-quadrant-DpFjMZoK.js → vue-ui-quadrant-BEaCxPxR.js} +8 -8
  60. package/dist/{vue-ui-quick-chart-NfXEFkoL.js → vue-ui-quick-chart-C3yTivjK.js} +6 -6
  61. package/dist/{vue-ui-radar-Dg8UovnR.js → vue-ui-radar-CwRo-de_.js} +7 -7
  62. package/dist/{vue-ui-rating-D3cpdLRt.js → vue-ui-rating-nHTBjTie.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-BZTTPLCi.js → vue-ui-relation-circle-w7TYrdHz.js} +6 -6
  64. package/dist/{vue-ui-ridgeline-CtY_J3hk.js → vue-ui-ridgeline-Dk9xpHSw.js} +8 -8
  65. package/dist/{vue-ui-rings-BiA-bRgU.js → vue-ui-rings-tCL5utj_.js} +8 -8
  66. package/dist/{vue-ui-scatter-C3sCChYD.js → vue-ui-scatter-BJUJRCto.js} +8 -8
  67. package/dist/{vue-ui-skeleton-DY48gQ96.js → vue-ui-skeleton-Cf09cngz.js} +3 -3
  68. package/dist/{vue-ui-smiley-DopwmgcY.js → vue-ui-smiley-BvoOjmJx.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-DO7P-2x8.js → vue-ui-spark-trend-Bdz2gHnU.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-mqLbTvAg.js → vue-ui-sparkbar-CS1FzyFk.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-CdfZYUAZ.js → vue-ui-sparkgauge-auWy_YMm.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-DAy--kFA.js → vue-ui-sparkhistogram-yA_F8Ls5.js} +4 -4
  73. package/dist/{vue-ui-sparkline-KkG0FnmI.js → vue-ui-sparkline-B-sCAUEL.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-LDRannBB.js → vue-ui-sparkstackbar-BhqOPIZT.js} +3 -3
  75. package/dist/{vue-ui-stackbar-Bys4yWs_.js → vue-ui-stackbar-CZzqF-ZH.js} +9 -9
  76. package/dist/{vue-ui-strip-plot-DUBqioS2.js → vue-ui-strip-plot-D7KgSU5y.js} +7 -7
  77. package/dist/{vue-ui-table-CPWgP-71.js → vue-ui-table-BDJg5T9l.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DfrMVDEE.js → vue-ui-table-heatmap-Pp2gbL5G.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CNC7Lp0t.js → vue-ui-table-sparkline-CmZBjiWv.js} +4 -4
  80. package/dist/{vue-ui-thermometer-Bby5nWIi.js → vue-ui-thermometer-ClY99Umm.js} +6 -6
  81. package/dist/{vue-ui-timer-ym9etXUy.js → vue-ui-timer-_Bck3rxo.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-C0V_XedF.js → vue-ui-tiremarks-C2CtoJT_.js} +6 -6
  83. package/dist/{vue-ui-treemap-B5k0NEO3.js → vue-ui-treemap-CM-zqI6U.js} +8 -8
  84. package/dist/{vue-ui-vertical-bar-DRmHFEMu.js → vue-ui-vertical-bar-CET-9MDi.js} +279 -273
  85. package/dist/{vue-ui-waffle-DrEQsTIO.js → vue-ui-waffle-B21kT4HO.js} +8 -8
  86. package/dist/{vue-ui-wheel-BOTBLBOr.js → vue-ui-wheel-Dqv-ta7L.js} +6 -6
  87. package/dist/{vue-ui-word-cloud-Btay9XOs.js → vue-ui-word-cloud-DHjvCwD8.js} +6 -6
  88. package/dist/{vue-ui-world-zBvIXrWH.js → vue-ui-world-h3Csu0YN.js} +6 -6
  89. package/dist/vue-ui-xy-CZ7mScyg.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CDjYeEkq.js → vue-ui-xy-canvas-sIRUM_Be.js} +8 -8
  91. package/package.json +2 -2
  92. package/dist/Tooltip-Cq9HywcX.js +0 -149
  93. package/dist/useMouse-AicQS8Vf.js +0 -13
  94. package/dist/vue-ui-donut-DJVqqXEb.js +0 -1338
  95. package/dist/vue-ui-xy-C7uPPKm9.js +0 -3149
package/README.md CHANGED
@@ -133,7 +133,7 @@ Or you can import just what you need in your files:
133
133
  <script setup>import {(VueUiRadar, VueUiXy)} from "vue-data-ui";</script>
134
134
  ```
135
135
 
136
- Since v.2.0.38, you can also use the "VueDataUi" universal component, just specifying which component you are using. You can of course use the slots provided, if the target component has them.
136
+ You can also use the "VueDataUi" universal component, just specifying which component you are using. You can of course use the slots provided, if the target component has them.
137
137
 
138
138
  ```js
139
139
  <script setup>
@@ -169,6 +169,21 @@ Note that the following utility components are not supported by the universal Vu
169
169
 
170
170
  Types are available in the 'vue-data-ui.d.ts' file under the types directory of the package.
171
171
 
172
+ ## Vue Data UI version2 -> version3 migration
173
+
174
+ Vue Data UI v3 is easy to migrate to:
175
+
176
+ - If a component has new v3 features, it contains the `config.autoSize` attribute, set to `true` by default
177
+ - To restore v2 behavior set config.autoSize to `false`
178
+
179
+ ### Version 3 features
180
+
181
+ - `config.autoSize` (default: true) set to true, sets up the chart layout automatically, hides or shows some data labels when they can be
182
+
183
+ - `config.loading` (default: false) toggle loading state manually, to display a beautiful skeleton loader which uses the same chart component and shares layout features derived from your config. This skeleton loader is also triggered automatically if the provided dataset is undefined.
184
+
185
+ - `config.debug` (default: false) set to true to show warning messages during development, turn off for production.
186
+
172
187
  ## Nuxt
173
188
 
174
189
  [This repo contains a boilerplate implementation of the vue-data-ui package in Nuxt](https://github.com/graphieros/vue-data-ui-nuxt)
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as k, openBlock as m, createElementVNode as t, unref as o } from "vue";
2
- import { c as n } from "./index-BSa4GlHG.js";
2
+ import { c as n } from "./index-DKjAxJY6.js";
3
3
  const s = { class: "vue-ui-element-arrow" }, f = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], c = ["d", "fill"], h = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], y = ["d", "fill"], v = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap", "stroke-dasharray", "marker-end", "marker-start"], z = {
4
4
  __name: "Arrow",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as O, ref as S, reactive as T, computed as P, onUnmounted as $, createBlock as R, openBlock as v, Teleport as N, createElementBlock as E, createCommentVNode as V, withModifiers as s, normalizeStyle as y, createElementVNode as o, unref as I, renderSlot as M, createVNode as F, normalizeClass as j, nextTick as U } from "vue";
2
- import q from "./BaseIcon-BAHAKjob.js";
3
- import { X as A } from "./index-BSa4GlHG.js";
2
+ import q from "./BaseIcon-TJm1JI2f.js";
3
+ import { X as A } from "./index-DKjAxJY6.js";
4
4
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const J = ["xmlns"], K = { class: "modal-title" }, Q = {
6
6
  __name: "BaseDraggableDialog",
@@ -1,5 +1,5 @@
1
1
  import { computed as e, createElementBlock as n, openBlock as i, normalizeClass as k, unref as L } from "vue";
2
- import { X as l } from "./index-BSa4GlHG.js";
2
+ import { X as l } from "./index-DKjAxJY6.js";
3
3
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const M = ["xmlns", "viewBox", "height", "width", "innerHTML"], h = {
5
5
  __name: "BaseIcon",
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as k, watch as I, withDirectives as P, createElementBlock as r, openBlock as n, withKeys as S, createElementVNode as u, createCommentVNode as z, normalizeStyle as a, createVNode as F, Fragment as E, renderList as N, unref as O } from "vue";
2
- import C from "./BaseIcon-BAHAKjob.js";
3
- import { F as V } from "./index-BSa4GlHG.js";
2
+ import C from "./BaseIcon-TJm1JI2f.js";
3
+ import { F as V } from "./index-DKjAxJY6.js";
4
4
  import { v as D } from "./vClickOutside-C6WiFswA.js";
5
5
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const $ = ["onClick"], L = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, T = ["value"], j = {
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as A, unref as e, computed as D, ref as w, onMounted as E, createElementBlock as n, openBlock as a, normalizeClass as k, createElementVNode as t, withKeys as R, normalizeStyle as i, createVNode as C, toDisplayString as I, Fragment as f, renderList as m, renderSlot as N, createCommentVNode as $ } from "vue";
2
- import { _ as K } from "./Shape-Blrp5ZfP.js";
3
- import O from "./BaseIcon-BAHAKjob.js";
2
+ import { _ as K } from "./Shape-DGduPk8q.js";
3
+ import O from "./BaseIcon-TJm1JI2f.js";
4
4
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align-items": "center", "justify-content": "flex-end", "padding-right": "3px", gap: "3px" } }, L = { style: { width: "12px", height: "12px" } }, M = {
6
6
  key: 0,
@@ -1,8 +1,8 @@
1
- import { createElementBlock as n, openBlock as o, normalizeStyle as c, renderSlot as l, Fragment as u, renderList as g, normalizeClass as m, createCommentVNode as h, createVNode as k, mergeProps as y, unref as $ } from "vue";
2
- import { a0 as p } from "./index-BSa4GlHG.js";
3
- import { _ as v } from "./Shape-Blrp5ZfP.js";
4
- import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const b = ["id"], x = ["onClick", "height", "width"], z = {
1
+ import { createElementBlock as o, openBlock as a, normalizeStyle as d, renderSlot as l, Fragment as u, renderList as g, normalizeClass as m, createCommentVNode as h, createVNode as k, mergeProps as y, unref as $ } from "vue";
2
+ import { a3 as p } from "./index-DKjAxJY6.js";
3
+ import { _ as v } from "./Shape-DGduPk8q.js";
4
+ import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const S = ["id"], x = ["onClick", "height", "width"], z = {
6
6
  __name: "Legend",
7
7
  props: {
8
8
  legendSet: {
@@ -27,27 +27,28 @@ const b = ["id"], x = ["onClick", "height", "width"], z = {
27
27
  }
28
28
  },
29
29
  emits: ["clickMarker"],
30
- setup(e, { emit: d }) {
31
- const f = d;
30
+ setup(e, { emit: c }) {
31
+ const f = c;
32
32
  function s(i, r) {
33
33
  f("clickMarker", { legend: i, i: r });
34
34
  }
35
- return (i, r) => (o(), n("div", {
35
+ return (i, r) => (a(), o("div", {
36
36
  id: e.id,
37
37
  class: "vue-data-ui-legend",
38
- style: c(`background:${e.config.backgroundColor};font-size:${e.config.fontSize}px;color:${e.config.color};padding-bottom:${e.config.paddingBottom}px;padding-top:${e.config.paddingTop || 12}px;font-weight:${e.config.fontWeight}`)
38
+ style: d(`background:${e.config.backgroundColor};font-size:${e.config.fontSize}px;color:${e.config.color};padding-bottom:${e.config.paddingBottom}px;padding-top:${e.config.paddingTop || 12}px;font-weight:${e.config.fontWeight}`)
39
39
  }, [
40
40
  l(i.$slots, "legendTitle", { titleSet: e.legendSet }, void 0, !0),
41
- (o(!0), n(u, null, g(e.legendSet, (t, a) => (o(), n("div", {
41
+ (a(!0), o(u, null, g(e.legendSet, (t, n) => (a(), o("div", {
42
+ key: `legend_${n}`,
42
43
  class: m({ "vue-data-ui-legend-item": !0, active: e.clickable })
43
44
  }, [
44
- t.shape ? (o(), n("svg", {
45
+ t.shape ? (a(), o("svg", {
45
46
  key: 0,
46
- onClick: (C) => s(t, a),
47
+ onClick: (C) => s(t, n),
47
48
  height: e.config.fontSize,
48
49
  width: e.config.fontSize,
49
50
  viewBox: "0 0 60 60",
50
- style: c(`overflow: visible;opacity:${t.opacity}`)
51
+ style: d(`overflow: visible;opacity:${t.opacity}`)
51
52
  }, [
52
53
  k(v, {
53
54
  shape: t.shape,
@@ -56,16 +57,16 @@ const b = ["id"], x = ["onClick", "height", "width"], z = {
56
57
  plot: { x: 30, y: 30 },
57
58
  fill: t.color
58
59
  }, null, 8, ["shape", "fill"]),
59
- l(i.$slots, "legend-pattern", y({ ref_for: !0 }, { legend: t, index: $(p)(t.absoluteIndex) ? t.absoluteIndex : a }), void 0, !0)
60
+ l(i.$slots, "legend-pattern", y({ ref_for: !0 }, { legend: t, index: $(p)(t.absoluteIndex) ? t.absoluteIndex : n }), void 0, !0)
60
61
  ], 12, x)) : h("", !0),
61
62
  l(i.$slots, "item", {
62
63
  legend: t,
63
- index: a
64
+ index: n
64
65
  }, void 0, !0)
65
- ], 2))), 256))
66
- ], 12, b));
66
+ ], 2))), 128))
67
+ ], 12, S));
67
68
  }
68
- }, L = /* @__PURE__ */ S(z, [["__scopeId", "data-v-cf893a9c"]]);
69
+ }, L = /* @__PURE__ */ b(z, [["__scopeId", "data-v-2b9117cf"]]);
69
70
  export {
70
71
  L as default
71
72
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as we, onMounted as ke, nextTick as be, onBeforeUnmount as Ce, watch as oe, createElementBlock as x, openBlock as y, Fragment as q, createCommentVNode as Y, normalizeStyle as b, normalizeClass as D, createElementVNode as C, withDirectives as ae, createVNode as M, toDisplayString as re, unref as se, vModelText as ue, withModifiers as ie, renderList as ce } from "vue";
2
- import { l as $e, f as Se, X as Ae } from "./index-BSa4GlHG.js";
3
- import R from "./BaseIcon-BAHAKjob.js";
4
- import { C as Ee } from "./ColorPicker-oPTO1J9Q.js";
2
+ import { l as $e, f as Se, X as Ae } from "./index-DKjAxJY6.js";
3
+ import R from "./BaseIcon-TJm1JI2f.js";
4
+ import { C as Ee } from "./ColorPicker-DwhabPvD.js";
5
5
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Te = {
7
7
  class: /* @__PURE__ */ D({
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as n } from "vue";
2
- const r = "3.0.0-next.1", a = { "aria-hidden": "true" }, p = {
2
+ const r = "3.0.0-next.3", a = { "aria-hidden": "true" }, p = {
3
3
  __name: "PackageVersion",
4
4
  setup(s) {
5
5
  return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(n(r)), 1));
@@ -1,7 +1,7 @@
1
1
  import { ref as c, computed as ge, watch as X, nextTick as le, onMounted as pe, onBeforeUnmount as me, createElementBlock as Y, createCommentVNode as q, openBlock as z, normalizeStyle as x, createElementVNode as k, withDirectives as ae, createVNode as R, normalizeClass as G, toDisplayString as Ae, unref as he, vModelText as oe } from "vue";
2
- import T from "./BaseIcon-BAHAKjob.js";
3
- import { C as we } from "./ColorPicker-oPTO1J9Q.js";
4
- import { l as be, f as xe } from "./index-BSa4GlHG.js";
2
+ import T from "./BaseIcon-TJm1JI2f.js";
3
+ import { C as we } from "./ColorPicker-DwhabPvD.js";
4
+ import { l as be, f as xe } from "./index-DKjAxJY6.js";
5
5
  const ye = {
6
6
  class: "vue-ui-pen-and-paper-action",
7
7
  style: { padding: "0 !important" }
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
2
- import { _ as c, R as f } from "./index-BSa4GlHG.js";
2
+ import { _ as c, R as f } from "./index-DKjAxJY6.js";
3
3
  const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
4
4
  __name: "Shape",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as ze, computed as d, ref as i, watch as D, onMounted as Ae, onBeforeUnmount as Fe, watchEffect as He, nextTick as Y, onUpdated as Ve, createElementBlock as c, openBlock as m, createElementVNode as v, createCommentVNode as p, renderSlot as We, normalizeStyle as $, createVNode as Xe, withDirectives as me, unref as F, Fragment as he, renderList as fe, normalizeClass as L, vModelText as ge, toDisplayString as _ } from "vue";
2
- import Ue from "./BaseIcon-BAHAKjob.js";
2
+ import Ue from "./BaseIcon-TJm1JI2f.js";
3
3
  import { t as Oe, u as Ze } from "./useResponsive-DfdjqQps.js";
4
- import { c as je, V as be, U as xe, X as Ge, F as ee } from "./index-BSa4GlHG.js";
4
+ import { c as je, V as be, U as xe, X as Ge, F as ee } from "./index-DKjAxJY6.js";
5
5
  import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Je = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -1,5 +1,5 @@
1
1
  import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
2
- import { s as _, ao as i } from "./index-BSa4GlHG.js";
2
+ import { s as _, ao as i } from "./index-DKjAxJY6.js";
3
3
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = {
5
5
  __name: "SparkTooltip",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-uR74_CFG.js";
2
+ import { u as c } from "./useNestedProp-Cmx8ApWu.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -0,0 +1,157 @@
1
+ import { ref as s, onMounted as S, onUnmounted as g, watch as p, nextTick as k, computed as x, createBlock as $, openBlock as h, Teleport as C, createElementBlock as F, createCommentVNode as B, normalizeStyle as w, normalizeClass as N, renderSlot as m, createElementVNode as Y } from "vue";
2
+ import { s as z } from "./index-DKjAxJY6.js";
3
+ function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: d = "center", defaultOffsetY: c = 24, blockShiftY: u = !1 }) {
4
+ const o = s(0), i = s(c);
5
+ if (e && a) {
6
+ const { width: n, height: v } = e.getBoundingClientRect(), { right: f, left: l, bottom: r } = a.getBoundingClientRect();
7
+ d === "center" && (t.x + n / 2 > f ? o.value = -n + (f - t.x) : t.x - n / 2 < l ? o.value = -n + (n - (t.x - l)) : o.value = -n / 2), d === "right" && (t.x + n > f ? o.value = -n + (f - t.x) : o.value = 0), d === "left" && (t.x < l + n ? o.value = -n + (n - (t.x - l)) : o.value = -n), t.y + v > r && !u && (i.value = -v - c);
8
+ }
9
+ return {
10
+ top: t.y + i.value,
11
+ left: t.x + o.value
12
+ };
13
+ }
14
+ function T(e, a, t) {
15
+ S(() => e.addEventListener(a, t)), g(() => e.removeEventListener(a, t));
16
+ }
17
+ function E() {
18
+ const e = s(0), a = s(0);
19
+ return T(window, "mousemove", (t) => {
20
+ e.value = t.clientX, a.value = t.clientY;
21
+ }), { x: e, y: a };
22
+ }
23
+ const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
24
+ __name: "Tooltip",
25
+ props: {
26
+ backgroundColor: {
27
+ type: String,
28
+ default: "#FFFFFF"
29
+ },
30
+ color: {
31
+ type: String,
32
+ default: "#000000"
33
+ },
34
+ content: String,
35
+ maxWidth: {
36
+ type: String,
37
+ default: "300px"
38
+ },
39
+ parent: {
40
+ type: Object
41
+ },
42
+ show: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ isCustom: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ fontSize: {
51
+ type: [Number, String],
52
+ default: 14
53
+ },
54
+ borderRadius: {
55
+ type: Number,
56
+ default: 4
57
+ },
58
+ borderColor: {
59
+ type: String,
60
+ default: "#e1e5e8"
61
+ },
62
+ borderWidth: {
63
+ type: Number,
64
+ default: 1
65
+ },
66
+ backgroundOpacity: {
67
+ type: Number,
68
+ default: 100
69
+ },
70
+ position: {
71
+ type: String,
72
+ default: "center"
73
+ },
74
+ offsetY: {
75
+ type: Number,
76
+ default: 24
77
+ },
78
+ blockShiftY: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ isFullscreen: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ disableSmoothing: {
87
+ type: Boolean,
88
+ default: !1
89
+ }
90
+ },
91
+ setup(e) {
92
+ const a = e, t = s(null), { x: d, y: c } = E(a.parent), u = s({ x: 0, y: 0 }), o = s({ x: 0, y: 0 });
93
+ let i = null;
94
+ function n() {
95
+ if (a.disableSmoothing) {
96
+ o.value.x = u.value.x, o.value.y = u.value.y;
97
+ return;
98
+ }
99
+ o.value.x += (u.value.x - o.value.x) * b, o.value.y += (u.value.y - o.value.y) * b, i = requestAnimationFrame(n);
100
+ }
101
+ p([d, c], ([l, r]) => {
102
+ u.value.x = l, u.value.y = r, a.disableSmoothing && (o.value.x = l, o.value.y = r);
103
+ }), p(() => a.show, async (l) => {
104
+ if (l) {
105
+ const r = d.value, y = c.value;
106
+ u.value.x = r, u.value.y = y, o.value.x = r, o.value.y = y, await k(), i || n();
107
+ } else
108
+ i && (cancelAnimationFrame(i), i = null);
109
+ }), g(() => {
110
+ i && cancelAnimationFrame(i);
111
+ });
112
+ const v = x(() => {
113
+ const l = M({
114
+ tooltip: t.value,
115
+ chart: a.parent,
116
+ clientPosition: o.value,
117
+ positionPreference: a.position,
118
+ defaultOffsetY: a.offsetY,
119
+ blockShiftY: a.blockShiftY
120
+ });
121
+ return {
122
+ top: Math.round(l.top),
123
+ left: Math.round(l.left)
124
+ };
125
+ }), f = x(() => z(a.backgroundColor, a.backgroundOpacity));
126
+ return (l, r) => (h(), $(C, {
127
+ to: e.isFullscreen ? e.parent : "body"
128
+ }, [
129
+ e.show ? (h(), F("div", {
130
+ key: 0,
131
+ ref_key: "tooltip",
132
+ ref: t,
133
+ role: "tooltip",
134
+ "aria-hidden": !e.show,
135
+ "aria-live": "polite",
136
+ class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
137
+ style: w(`
138
+ pointer-events:none;
139
+ top:${v.value.top}px;
140
+ left:${v.value.left}px;
141
+ ${e.isCustom ? "" : `background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};
142
+ border-radius:${e.borderRadius}px;
143
+ border:${e.borderWidth}px solid ${e.borderColor};
144
+ z-index:2147483647;
145
+ `)
146
+ }, [
147
+ m(l.$slots, "tooltip-before"),
148
+ m(l.$slots, "default"),
149
+ Y("div", { innerHTML: e.content }, null, 8, O),
150
+ m(l.$slots, "tooltip-after")
151
+ ], 14, L)) : B("", !0)
152
+ ], 8, ["to"]));
153
+ }
154
+ };
155
+ export {
156
+ A as default
157
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as m, computed as w, onMounted as Q, onBeforeUnmount as Y, withDirectives as Z, createElementBlock as s, openBlock as o, normalizeStyle as v, createElementVNode as X, withKeys as p, withModifiers as _, renderSlot as d, normalizeProps as S, guardReactiveProps as ee, createVNode as te, normalizeClass as k, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as oe } from "vue";
2
2
  import { v as ne } from "./vClickOutside-C6WiFswA.js";
3
- import r from "./BaseIcon-BAHAKjob.js";
4
- import z from "./img-D3JvqNF8.js";
3
+ import r from "./BaseIcon-TJm1JI2f.js";
4
+ import z from "./img-DFeNRkbq.js";
5
5
  import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const ie = ["title"], se = ["data-open"], ae = {
7
7
  __name: "UserOptions",
@@ -1,4 +1,4 @@
1
- import { X as x } from "./index-BSa4GlHG.js";
1
+ import { X as x } from "./index-DKjAxJY6.js";
2
2
  async function F(n) {
3
3
  const i = n.querySelectorAll("img"), s = Array.from(i).map((t) => new Promise((o) => {
4
4
  if (!t.src || t.src.startsWith("data:")) return o();
@@ -1,4 +1,4 @@
1
- import { d as n } from "./dom-to-png-CrAOuxmd.js";
1
+ import { d as n } from "./dom-to-png-00aHI4Vj.js";
2
2
  async function u({ domElement: t, fileName: c, format: f = "png", scale: i = 2, base64: a = !1, img: g = !1 }) {
3
3
  if (!t) return Promise.reject("No element provided");
4
4
  const h = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);