vue-data-ui 2.13.2 → 2.13.4

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 (88) hide show
  1. package/dist/{Arrow-CqhOEqnz.js → Arrow-Cv5RKI2K.js} +1 -1
  2. package/dist/{BaseDraggableDialog-C34_fLFI.js → BaseDraggableDialog-CbNaTai1.js} +2 -2
  3. package/dist/{BaseIcon-CTZeyzAf.js → BaseIcon-B90jg7Eo.js} +1 -1
  4. package/dist/{ColorPicker-6uiOHFNG.js → ColorPicker-DrHXo6NB.js} +2 -2
  5. package/dist/{DataTable-DbzdhEzX.js → DataTable-DOdmEVBM.js} +2 -2
  6. package/dist/{Legend-_n08whaF.js → Legend-D7As_VVi.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CDcIzMfy.js → NonSvgPenAndPaper-Qe1IsvyR.js} +3 -3
  8. package/dist/{PackageVersion-DevZv-uJ.js → PackageVersion-CJ0MHPau.js} +1 -1
  9. package/dist/{PenAndPaper-C2sT3SZe.js → PenAndPaper-CsV9xVqP.js} +3 -3
  10. package/dist/{Shape-DwoWXD-e.js → Shape-CMT3DgWJ.js} +1 -1
  11. package/dist/Slicer-kZ-UNW0I.js +577 -0
  12. package/dist/{SparkTooltip-2E5_HbSK.js → SparkTooltip-DgaaFrSC.js} +1 -1
  13. package/dist/{Title-Bkcittcw.js → Title-Cuxd1Hw4.js} +1 -1
  14. package/dist/{Tooltip-yS8Ztd0D.js → Tooltip-nm6v9SvD.js} +1 -1
  15. package/dist/{UserOptions-CiNpxbcc.js → UserOptions-B4olqrwb.js} +2 -2
  16. package/dist/{dom-to-png-D2exTd1G.js → dom-to-png-JxvpNdgk.js} +1 -1
  17. package/dist/{img-BKt5vQFJ.js → img-BrSPXg54.js} +1 -1
  18. package/dist/{index-C35igoc0.js → index-DXfqC_CG.js} +1 -1
  19. package/dist/{pdf-DmMK97Iz.js → pdf-CRNRsa97.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useNestedProp-DShrXp8W.js → useNestedProp-CUF1PWxQ.js} +1 -1
  22. package/dist/{usePrinter-QICuxVCk.js → usePrinter-DGQh_spY.js} +2 -2
  23. package/dist/{vue-data-ui-CjeQCk3E.js → vue-data-ui-tkhMq-bw.js} +63 -63
  24. package/dist/vue-data-ui.js +1 -1
  25. package/dist/{vue-ui-3d-bar-C-KtOFZG.js → vue-ui-3d-bar-Dwdfdqch.js} +5 -5
  26. package/dist/{vue-ui-accordion-Cukacz7d.js → vue-ui-accordion-D-tjbzQS.js} +3 -3
  27. package/dist/{vue-ui-age-pyramid-CP_H3jhV.js → vue-ui-age-pyramid-BZmYWVrS.js} +5 -5
  28. package/dist/{vue-ui-annotator-CAXGYGyl.js → vue-ui-annotator-DBrXod-O.js} +2 -2
  29. package/dist/{vue-ui-bullet-CKqp83rn.js → vue-ui-bullet-ur-PTrPw.js} +6 -6
  30. package/dist/{vue-ui-candlestick-DKrtC1dN.js → vue-ui-candlestick-72UivaQY.js} +6 -6
  31. package/dist/{vue-ui-carousel-table-D8Ov2-ly.js → vue-ui-carousel-table-CApme8lg.js} +4 -4
  32. package/dist/{vue-ui-chestnut-Dr1dZRYS.js → vue-ui-chestnut-jcZZ8cOw.js} +4 -4
  33. package/dist/{vue-ui-chord-dEzvs-Qz.js → vue-ui-chord-A9jGFNM2.js} +7 -7
  34. package/dist/{vue-ui-circle-pack-DGfTgCwZ.js → vue-ui-circle-pack-DPnOBq40.js} +5 -5
  35. package/dist/{vue-ui-cursor-Btrq3OtD.js → vue-ui-cursor-Cby6-Vrh.js} +2 -2
  36. package/dist/{vue-ui-dashboard-CHGkE8o8.js → vue-ui-dashboard-BGzORkrX.js} +62 -62
  37. package/dist/{vue-ui-digits-Dv9Xnke_.js → vue-ui-digits-Dhxd38mc.js} +2 -2
  38. package/dist/{vue-ui-donut-COKzmqMi.js → vue-ui-donut-DsFBb3Cl.js} +7 -7
  39. package/dist/{vue-ui-donut-evolution-NyRE7yGH.js → vue-ui-donut-evolution-B-Bo4b4Y.js} +7 -7
  40. package/dist/{vue-ui-dumbbell-CTrj1H8q.js → vue-ui-dumbbell-EVSJdr9V.js} +6 -6
  41. package/dist/{vue-ui-flow-B3izHcUd.js → vue-ui-flow-Cr1-ETyc.js} +6 -6
  42. package/dist/{vue-ui-funnel-B6euMVSM.js → vue-ui-funnel-BQ0LckzE.js} +5 -5
  43. package/dist/{vue-ui-galaxy-CK0hqxn2.js → vue-ui-galaxy-_fwGK1PY.js} +4 -4
  44. package/dist/{vue-ui-gauge-C7L51CXf.js → vue-ui-gauge-BrnOoF9C.js} +5 -5
  45. package/dist/{vue-ui-gizmo-xTTxrKCy.js → vue-ui-gizmo-tgjSYkeV.js} +3 -3
  46. package/dist/{vue-ui-heatmap-BtgTkO0E.js → vue-ui-heatmap-CamaTaei.js} +6 -6
  47. package/dist/{vue-ui-history-plot-BQIhsdfs.js → vue-ui-history-plot-DSBQu-9Y.js} +6 -6
  48. package/dist/{vue-ui-kpi-B54Gg1Ed.js → vue-ui-kpi-OCtgONK3.js} +3 -3
  49. package/dist/{vue-ui-mini-loader-BpzQX_VJ.js → vue-ui-mini-loader--xzmMUNI.js} +2 -2
  50. package/dist/{vue-ui-molecule-DxRUNFJ2.js → vue-ui-molecule-DnkENzdw.js} +4 -4
  51. package/dist/{vue-ui-mood-radar-1CXbT7H6.js → vue-ui-mood-radar-DKP1rjSd.js} +6 -6
  52. package/dist/{vue-ui-nested-donuts-DAOU1XGB.js → vue-ui-nested-donuts-CHwTDQ9J.js} +6 -6
  53. package/dist/{vue-ui-onion-DxUfdthn.js → vue-ui-onion-BxaynRPn.js} +6 -6
  54. package/dist/{vue-ui-parallel-coordinate-plot-CNS7mv3F.js → vue-ui-parallel-coordinate-plot-ohCDDK1Q.js} +7 -7
  55. package/dist/{vue-ui-quadrant-CGyif3nZ.js → vue-ui-quadrant-DXZsVWe3.js} +7 -7
  56. package/dist/{vue-ui-quick-chart-DC87BRCi.js → vue-ui-quick-chart-C_ofgdSY.js} +5 -5
  57. package/dist/{vue-ui-radar-DQDLhNCA.js → vue-ui-radar-CLa2PHHK.js} +6 -6
  58. package/dist/{vue-ui-rating-BusNiebo.js → vue-ui-rating-GiRUw1Wv.js} +2 -2
  59. package/dist/{vue-ui-relation-circle-C_0LwmiP.js → vue-ui-relation-circle-BJ1M2Pnc.js} +5 -5
  60. package/dist/{vue-ui-ridgeline--7z-nwxr.js → vue-ui-ridgeline-E_7xjHTY.js} +7 -7
  61. package/dist/{vue-ui-rings-xaoreTsV.js → vue-ui-rings-BiOAND3T.js} +7 -7
  62. package/dist/{vue-ui-scatter-udX9eLwo.js → vue-ui-scatter-Bai9QSqI.js} +7 -7
  63. package/dist/{vue-ui-skeleton-C-zsFGbj.js → vue-ui-skeleton-B2N_3mr0.js} +3 -3
  64. package/dist/{vue-ui-smiley-DsVDC_1E.js → vue-ui-smiley-DAvm3IGu.js} +2 -2
  65. package/dist/{vue-ui-spark-trend-SoS2Cg_e.js → vue-ui-spark-trend-D4EwvdX0.js} +3 -3
  66. package/dist/{vue-ui-sparkbar-C_wOidcV.js → vue-ui-sparkbar-DM_2iDVI.js} +3 -3
  67. package/dist/{vue-ui-sparkgauge-D6elW9Ca.js → vue-ui-sparkgauge-UW6sVQdV.js} +3 -3
  68. package/dist/{vue-ui-sparkhistogram-SNe86la6.js → vue-ui-sparkhistogram-CF0JPKYB.js} +4 -4
  69. package/dist/{vue-ui-sparkline-Rlm1RHLc.js → vue-ui-sparkline-Dg8j2KTF.js} +3 -3
  70. package/dist/{vue-ui-sparkstackbar-mXvQpO2C.js → vue-ui-sparkstackbar-CqT_oEk7.js} +3 -3
  71. package/dist/{vue-ui-stackbar-OzFpDrff.js → vue-ui-stackbar-By7DVfJV.js} +8 -8
  72. package/dist/{vue-ui-strip-plot-CTnD72ji.js → vue-ui-strip-plot-BR66rY0G.js} +6 -6
  73. package/dist/{vue-ui-table-DcZ9qgLd.js → vue-ui-table-Dk0eXTU9.js} +3 -3
  74. package/dist/{vue-ui-table-heatmap-BnBnasfN.js → vue-ui-table-heatmap-Brldpa0g.js} +5 -5
  75. package/dist/{vue-ui-table-sparkline-DFiJAD-I.js → vue-ui-table-sparkline-DxQrZBCR.js} +4 -4
  76. package/dist/{vue-ui-thermometer-Ciu3J7ev.js → vue-ui-thermometer-B_OrqIjE.js} +5 -5
  77. package/dist/{vue-ui-timer-B3rhdrQj.js → vue-ui-timer-Cz0J-s5D.js} +5 -5
  78. package/dist/{vue-ui-tiremarks-CSAUDShh.js → vue-ui-tiremarks-B1B3h-Vi.js} +5 -5
  79. package/dist/{vue-ui-treemap-BHqBsvs3.js → vue-ui-treemap-CMm6fSIO.js} +7 -7
  80. package/dist/{vue-ui-vertical-bar-WVBnF7u_.js → vue-ui-vertical-bar-DA2Xpx46.js} +8 -8
  81. package/dist/{vue-ui-waffle-B1Y7kajg.js → vue-ui-waffle-U3NxGQ3l.js} +7 -7
  82. package/dist/{vue-ui-wheel-DhSaAm8M.js → vue-ui-wheel-WNOVLYp8.js} +5 -5
  83. package/dist/{vue-ui-word-cloud-BS9KB2pX.js → vue-ui-word-cloud-_TBCcmAV.js} +5 -5
  84. package/dist/{vue-ui-world-EaD-PssM.js → vue-ui-world-DREkLtrD.js} +5 -5
  85. package/dist/{vue-ui-xy-DZdsEJcN.js → vue-ui-xy-CIiqKrxF.js} +21 -21
  86. package/dist/{vue-ui-xy-canvas-7RzNplNY.js → vue-ui-xy-canvas-ClHv-Wlu.js} +7 -7
  87. package/package.json +1 -1
  88. package/dist/Slicer-BR4waLWk.js +0 -537
@@ -1,10 +1,10 @@
1
- import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as Q, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as Me, G as ze, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-C35igoc0.js";
1
+ import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as Q, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as Me, G as ze, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-DXfqC_CG.js";
2
2
  import { u as We } from "./useMouse-AicQS8Vf.js";
3
- import { u as J } from "./useNestedProp-DShrXp8W.js";
3
+ import { u as J } from "./useNestedProp-CUF1PWxQ.js";
4
4
  import { defineAsyncComponent as B, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as A, normalizeClass as E, createBlock as W, createCommentVNode as u, createVNode as U, createSlots as Be, withCtx as V, renderSlot as p, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as d, renderList as I, toDisplayString as T, mergeProps as K, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
5
- import { S as Xe } from "./Slicer-BR4waLWk.js";
6
- import Ue from "./Title-Bkcittcw.js";
7
- import { _ as Ze } from "./Shape-DwoWXD-e.js";
5
+ import { S as Xe } from "./Slicer-kZ-UNW0I.js";
6
+ import Ue from "./Title-Cuxd1Hw4.js";
7
+ import { _ as Ze } from "./Shape-CMT3DgWJ.js";
8
8
  import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Ke = Q(), Qe = {
10
10
  name: "vue-ui-xy",
@@ -28,15 +28,15 @@ const Ke = Q(), Qe = {
28
28
  Title: Ue,
29
29
  // Must be ready in responsive mode
30
30
  Shape: Ze,
31
- DataTable: B(() => import("./DataTable-DbzdhEzX.js")),
32
- Tooltip: B(() => import("./Tooltip-yS8Ztd0D.js")),
33
- UserOptions: B(() => import("./UserOptions-CiNpxbcc.js")),
34
- BaseIcon: B(() => import("./BaseIcon-CTZeyzAf.js")),
35
- TableSparkline: B(() => import("./vue-ui-table-sparkline-DFiJAD-I.js")),
36
- Skeleton: B(() => import("./vue-ui-skeleton-C-zsFGbj.js")),
37
- Accordion: B(() => import("./vue-ui-accordion-Cukacz7d.js")),
38
- PackageVersion: B(() => import("./PackageVersion-DevZv-uJ.js")),
39
- PenAndPaper: B(() => import("./PenAndPaper-C2sT3SZe.js"))
31
+ DataTable: B(() => import("./DataTable-DOdmEVBM.js")),
32
+ Tooltip: B(() => import("./Tooltip-nm6v9SvD.js")),
33
+ UserOptions: B(() => import("./UserOptions-B4olqrwb.js")),
34
+ BaseIcon: B(() => import("./BaseIcon-B90jg7Eo.js")),
35
+ TableSparkline: B(() => import("./vue-ui-table-sparkline-DxQrZBCR.js")),
36
+ Skeleton: B(() => import("./vue-ui-skeleton-B2N_3mr0.js")),
37
+ Accordion: B(() => import("./vue-ui-accordion-D-tjbzQS.js")),
38
+ PackageVersion: B(() => import("./PackageVersion-CJ0MHPau.js")),
39
+ PenAndPaper: B(() => import("./PenAndPaper-CsV9xVqP.js"))
40
40
  },
41
41
  data() {
42
42
  this.dataset.forEach((g, r) => {
@@ -1170,7 +1170,7 @@ const Ke = Q(), Qe = {
1170
1170
  async generatePdf() {
1171
1171
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1172
1172
  try {
1173
- const { default: t } = await import("./pdf-DmMK97Iz.js");
1173
+ const { default: t } = await import("./pdf-CRNRsa97.js");
1174
1174
  await t({
1175
1175
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1176
1176
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1193,7 +1193,7 @@ const Ke = Q(), Qe = {
1193
1193
  async generateImage() {
1194
1194
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1195
1195
  try {
1196
- const { default: t } = await import("./img-BKt5vQFJ.js");
1196
+ const { default: t } = await import("./img-BrSPXg54.js");
1197
1197
  await t({
1198
1198
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1199
1199
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1956,14 +1956,14 @@ function Mr(t, n, o, g, r, e) {
1956
1956
  class: E(`serie_line_${c}`),
1957
1957
  style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1958
1958
  }, [
1959
- l.smooth && l.plots.length > 1 ? (a(), i("path", {
1959
+ l.smooth && l.plots.length > 1 && l.curve ? (a(), i("path", {
1960
1960
  key: 0,
1961
1961
  d: `M${l.curve}`,
1962
1962
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1963
1963
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1964
1964
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1965
1965
  fill: "none"
1966
- }, null, 8, sl)) : l.plots.length > 1 ? (a(), i("path", {
1966
+ }, null, 8, sl)) : l.plots.length > 1 && l.straight ? (a(), i("path", {
1967
1967
  key: 1,
1968
1968
  d: `M${l.straight}`,
1969
1969
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
@@ -2007,7 +2007,7 @@ function Mr(t, n, o, g, r, e) {
2007
2007
  }, null, 8, gl)) : u("", !0)
2008
2008
  ], 64))), 128))
2009
2009
  ])) : u("", !0),
2010
- l.smooth && l.plots.length > 1 ? (a(), i("path", {
2010
+ l.smooth && l.plots.length > 1 && l.curve ? (a(), i("path", {
2011
2011
  key: 1,
2012
2012
  d: `M${l.curve}`,
2013
2013
  stroke: l.color,
@@ -2015,7 +2015,7 @@ function Mr(t, n, o, g, r, e) {
2015
2015
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
2016
2016
  fill: "none",
2017
2017
  "stroke-linecap": "round"
2018
- }, null, 8, fl)) : l.plots.length > 1 ? (a(), i("path", {
2018
+ }, null, 8, fl)) : l.plots.length > 1 && l.straight ? (a(), i("path", {
2019
2019
  key: 2,
2020
2020
  d: `M${l.straight}`,
2021
2021
  stroke: l.color,
@@ -3036,7 +3036,7 @@ function Mr(t, n, o, g, r, e) {
3036
3036
  }, 8, ["config"])) : u("", !0)
3037
3037
  ], 46, je);
3038
3038
  }
3039
- const Br = /* @__PURE__ */ Je(Qe, [["render", Mr], ["__scopeId", "data-v-df7f718b"]]);
3039
+ const Br = /* @__PURE__ */ Je(Qe, [["render", Mr], ["__scopeId", "data-v-ca56f262"]]);
3040
3040
  export {
3041
3041
  Br as default
3042
3042
  };
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as J, ref as d, computed as C, useSlots as _a, onMounted as ra, watch as A, nextTick as ge, shallowRef as $e, onBeforeUnmount as Ba, createElementBlock as se, openBlock as z, unref as p, normalizeClass as Va, normalizeStyle as K, createCommentVNode as U, createBlock as D, createElementVNode as ne, createSlots as Za, withCtx as b, renderSlot as x, normalizeProps as W, guardReactiveProps as X, createVNode as Ga, toDisplayString as ua, createTextVNode as ja } from "vue";
2
- import { u as qa, c as Ja, t as Ka, p as _, a as Qa, C as pe, b as el, D as Ie, i as Q, f as ee, d as sa, a1 as al, H as ll, ai as tl, o as ol, e as rl, x as na, q as ul, r as sl, y as nl, s as ie, l as il } from "./index-C35igoc0.js";
2
+ import { u as qa, c as Ja, t as Ka, p as _, a as Qa, C as pe, b as el, D as Ie, i as Q, f as ee, d as sa, a1 as al, H as ll, ai as tl, o as ol, e as rl, x as na, q as ul, r as sl, y as nl, s as ie, l as il } from "./index-DXfqC_CG.js";
3
3
  import { d as vl, t as cl, u as dl, c as hl, a as ia, l as L, r as Me, b as R, p as va } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as ca } from "./useNestedProp-DShrXp8W.js";
5
- import { u as yl } from "./usePrinter-QICuxVCk.js";
4
+ import { u as ca } from "./useNestedProp-CUF1PWxQ.js";
5
+ import { u as yl } from "./usePrinter-DGQh_spY.js";
6
6
  import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
8
- import pl from "./Legend-_n08whaF.js";
9
- import ml from "./Title-Bkcittcw.js";
10
- import { S as bl } from "./Slicer-BR4waLWk.js";
8
+ import pl from "./Legend-D7As_VVi.js";
9
+ import ml from "./Title-Cuxd1Hw4.js";
10
+ import { S as bl } from "./Slicer-kZ-UNW0I.js";
11
11
  import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Ll = ["id"], kl = ["onClick"], Cl = {
13
13
  key: 2,
@@ -30,7 +30,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
30
30
  },
31
31
  emits: ["selectLegend"],
32
32
  setup(Te, { expose: da, emit: ha }) {
33
- const ya = J(() => import("./vue-ui-accordion-Cukacz7d.js")), fa = J(() => import("./DataTable-DbzdhEzX.js")), ga = J(() => import("./NonSvgPenAndPaper-CDcIzMfy.js")), pa = J(() => import("./vue-ui-skeleton-C-zsFGbj.js")), ma = J(() => import("./Tooltip-yS8Ztd0D.js")), ba = J(() => import("./UserOptions-CiNpxbcc.js")), { vue_ui_xy_canvas: xa } = qa(), g = Te, me = d(Ja()), ae = d(null), le = d(null), s = d(null), y = d(1), P = d(1), ve = d(!1), v = d(null), ce = d(""), Oe = d(null), $ = d([]), B = d(1), H = d(!0), V = d(!0), be = d(null), Re = d(0), Pe = d(0), de = d(!1), Ee = d(null), Fe = d(null), Ae = d(null), De = d(null), xe = d(0), Le = d(0), ke = d(0), M = d(null), Ce = C(() => !!g.dataset && g.dataset.length), La = ha, ka = _a();
33
+ const ya = J(() => import("./vue-ui-accordion-D-tjbzQS.js")), fa = J(() => import("./DataTable-DOdmEVBM.js")), ga = J(() => import("./NonSvgPenAndPaper-Qe1IsvyR.js")), pa = J(() => import("./vue-ui-skeleton-B2N_3mr0.js")), ma = J(() => import("./Tooltip-nm6v9SvD.js")), ba = J(() => import("./UserOptions-B4olqrwb.js")), { vue_ui_xy_canvas: xa } = qa(), g = Te, me = d(Ja()), ae = d(null), le = d(null), s = d(null), y = d(1), P = d(1), ve = d(!1), v = d(null), ce = d(""), Oe = d(null), $ = d([]), B = d(1), H = d(!0), V = d(!0), be = d(null), Re = d(0), Pe = d(0), de = d(!1), Ee = d(null), Fe = d(null), Ae = d(null), De = d(null), xe = d(0), Le = d(0), ke = d(0), M = d(null), Ce = C(() => !!g.dataset && g.dataset.length), La = ha, ka = _a();
34
34
  ra(() => {
35
35
  ka["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
36
36
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.13.2",
4
+ "version": "2.13.4",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,537 +0,0 @@
1
- import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
- import Ve from "./BaseIcon-CTZeyzAf.js";
3
- import { t as We, u as Xe } from "./useResponsive-JZ9xq-JV.js";
4
- import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-C35igoc0.js";
5
- import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const Ge = {
7
- class: "vue-data-ui-slicer-labels",
8
- style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, je = {
10
- key: 0,
11
- style: { width: "100%", position: "relative" }
12
- }, qe = {
13
- key: 0,
14
- class: "minimap",
15
- style: { width: "100%" }
16
- }, Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ye = ["d", "stroke"], _e = ["x", "width", "height", "fill", "rx"], et = ["d", "fill"], tt = ["x", "width", "height", "rx", "fill"], lt = ["x", "width", "height", "fill", "rx"], at = ["d", "fill"], nt = ["d", "stroke"], it = ["cx", "cy", "stroke", "fill"], ut = ["cx", "cy", "stroke", "fill"], ot = ["x1", "x2", "y2", "stroke"], rt = ["x", "height", "width", "onMouseenter"], st = ["min", "max"], dt = ["min", "max"], vt = {
17
- __name: "Slicer",
18
- props: {
19
- background: {
20
- type: String,
21
- default: "#FFFFFF"
22
- },
23
- borderColor: {
24
- type: String,
25
- default: "#FFFFFF"
26
- },
27
- fontSize: {
28
- type: Number,
29
- default: 14
30
- },
31
- labelLeft: {
32
- type: String,
33
- default: ""
34
- },
35
- labelRight: {
36
- type: String,
37
- default: ""
38
- },
39
- textColor: {
40
- type: String,
41
- default: "#1A1A1A"
42
- },
43
- inputColor: {
44
- type: String,
45
- default: "#1A1A1A"
46
- },
47
- max: {
48
- type: Number,
49
- default: 0
50
- },
51
- min: {
52
- type: Number,
53
- default: 0
54
- },
55
- selectColor: {
56
- type: String,
57
- default: "#4A4A4A"
58
- },
59
- useResetSlot: {
60
- type: Boolean,
61
- default: !1
62
- },
63
- valueStart: {
64
- type: [Number, String],
65
- default: 0
66
- },
67
- valueEnd: {
68
- type: [Number, String],
69
- default: 0
70
- },
71
- minimap: {
72
- type: Array,
73
- default: []
74
- },
75
- smoothMinimap: {
76
- type: Boolean,
77
- default: !1
78
- },
79
- minimapSelectedColor: {
80
- type: String,
81
- default: "#1f77b4"
82
- },
83
- minimapSelectionRadius: {
84
- type: Number,
85
- default: 12
86
- },
87
- minimapLineColor: {
88
- type: String,
89
- default: "#2D353C"
90
- },
91
- minimapSelectedColorOpacity: {
92
- type: Number,
93
- default: 0.2
94
- },
95
- minimapSelectedIndex: {
96
- type: Number,
97
- default: null
98
- },
99
- minimapIndicatorColor: {
100
- type: String,
101
- default: "#2D353C"
102
- },
103
- refreshStartPoint: {
104
- type: Number,
105
- default: 0
106
- },
107
- refreshEndPoint: {
108
- type: Number,
109
- default: null
110
- },
111
- enableRangeHandles: {
112
- type: Boolean,
113
- default: !1
114
- },
115
- enableSelectionDrag: {
116
- type: Boolean,
117
- default: !0
118
- },
119
- verticalHandles: {
120
- type: Boolean,
121
- default: !1
122
- }
123
- },
124
- emits: ["update:start", "update:end", "reset", "trapMouse"],
125
- setup(a, { expose: fe, emit: ge }) {
126
- Ie((e) => ({
127
- "16e75640": xe.value,
128
- e6fc4558: w.value,
129
- d373c876: ye.value,
130
- "6cb71e84": a.selectColor,
131
- "431eb1dc": be.value
132
- }));
133
- const t = a, f = u(null), o = u(t.min), r = u(t.max), M = s(() => !!t.minimap.length), D = u(Ue()), pe = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), b = ge, y = s(() => {
134
- const e = t.max - t.min, l = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
135
- return {
136
- left: `${l}%`,
137
- width: `${n - l}%`,
138
- background: t.selectColor,
139
- tooltipLeft: `calc(${l}% - ${G.value ? 0 : U.value / 2}px)`,
140
- tooltipRight: `calc(${n}% - ${j.value ? B.value : B.value / 2}px)`,
141
- arrowLeft: !G.value,
142
- arrowRight: !j.value
143
- };
144
- }), G = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - t.min) / (t.max - t.min)) - U.value / 2 < 0 : !1), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), xe = s(() => t.inputColor), be = s(() => t.background), ye = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), q = s(() => {
145
- let e = [];
146
- for (let l = 0; l < t.minimap.length; l += 1)
147
- e.push(l);
148
- return e;
149
- });
150
- function J() {
151
- b("reset");
152
- }
153
- function we() {
154
- Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), b("update:start", Number(o.value));
155
- }
156
- function Se() {
157
- Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), b("update:end", Number(r.value));
158
- }
159
- R(
160
- () => t.min,
161
- (e) => {
162
- Number(o.value) < Number(e) && (o.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
163
- }
164
- ), R(
165
- () => t.max,
166
- (e) => {
167
- Number(o.value) > Number(e) && (o.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
168
- }
169
- );
170
- const T = u(null), i = u({
171
- width: 1,
172
- height: 1
173
- }), E = u(null);
174
- Pe(() => {
175
- if (M.value) {
176
- const e = We(() => {
177
- const { width: l, height: n } = Xe({
178
- chart: T.value
179
- });
180
- i.value.width = l, i.value.height = n - 47;
181
- });
182
- E.value = new ResizeObserver(e), E.value.observe(T.value);
183
- }
184
- }), ze(() => {
185
- E.value && E.value.disconnect();
186
- });
187
- const c = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), g = s(() => {
188
- if (!t.minimap.length) return [];
189
- const e = Math.max(...t.minimap), l = Math.min(...t.minimap) - 10, n = e - (l > 0 ? 0 : l), h = t.minimap.map((Be, De) => {
190
- const Te = Be - l;
191
- return {
192
- x: i.value.width / t.minimap.length * De + c.value / 2,
193
- y: i.value.height - Te / n * (i.value.height * 0.9)
194
- };
195
- }), S = t.smoothMinimap ? me(h) : ce(h), O = [...h].slice(t.valueStart, t.valueEnd), Ee = t.smoothMinimap ? me(O) : ce(O);
196
- return {
197
- fullSet: S,
198
- selectionSet: Ee,
199
- sliced: O,
200
- firstPlot: h[t.valueStart],
201
- lastPlot: h[t.valueEnd - 1]
202
- };
203
- }), p = s(() => ({
204
- x: c.value * o.value + c.value / 2,
205
- width: i.value.width * ((r.value - o.value) / t.max) - c.value
206
- })), N = u(t.minimapSelectedIndex);
207
- R(() => t.minimapSelectedIndex, (e) => {
208
- N.value = e + t.valueStart;
209
- }, { immediate: !0 });
210
- function ke(e) {
211
- N.value = e, e >= t.valueStart && e < t.valueEnd && b("trapMouse", e - t.valueStart);
212
- }
213
- const Ce = u(0), I = u(null), P = u(null);
214
- function z(e) {
215
- o.value = e, I.value && (I.value.value = e), b("update:start", Number(o.value));
216
- }
217
- function A(e) {
218
- r.value = e, P.value && (P.value.value = e), b("update:end", Number(r.value));
219
- }
220
- const F = s(() => t.valueEnd - t.valueStart), H = u(!1);
221
- let V = u(null);
222
- const $e = s(() => f.value ? (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), Me = s(() => (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) * F.value), Ne = u(2.5), K = s(() => {
223
- const e = f.value.getBoundingClientRect().width - 48;
224
- return Math.ceil((t.max - t.min) / ((e - Me.value) / Ne.value));
225
- }), Q = (e) => {
226
- if (C.value = !0, !t.enableSelectionDrag)
227
- return;
228
- const l = e.type === "touchstart";
229
- if ((l ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
230
- return;
231
- H.value = !0, V.value = l ? e.targetTouches[0].clientX : e.clientX;
232
- const h = l ? Re : Y, S = l ? Le : ee;
233
- window.addEventListener(l ? "touchmove" : "mousemove", h, { passive: !1 }), window.addEventListener(l ? "touchend" : "mouseup", S);
234
- };
235
- function Y(e) {
236
- _(e.clientX);
237
- }
238
- function Re(e) {
239
- f.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), _(e.targetTouches[0].clientX)));
240
- }
241
- function _(e) {
242
- if (!H.value) return;
243
- const l = e - V.value;
244
- if (Math.abs(l) > $e.value) {
245
- if (l > 0) {
246
- if (Number(r.value) + 1 <= t.max) {
247
- const n = Math.min(t.max, Number(r.value) + K.value);
248
- A(n), z(n - F.value);
249
- }
250
- } else if (Number(o.value) - 1 >= t.min) {
251
- const n = Math.max(0, Number(o.value) - K.value);
252
- z(n), A(n + F.value);
253
- }
254
- V.value = e;
255
- }
256
- }
257
- function ee() {
258
- te("mousemove", "mouseup");
259
- }
260
- function Le() {
261
- te("touchmove", "touchend");
262
- }
263
- function te(e, l) {
264
- H.value = !1, window.removeEventListener(e, Y), window.removeEventListener(l, ee);
265
- }
266
- const k = u(!1), W = u(null), X = u(null), U = u(1), B = u(1), C = u(!1);
267
- function le() {
268
- W.value && (U.value = W.value.getBoundingClientRect().width);
269
- }
270
- function ae() {
271
- X.value && (B.value = X.value.getBoundingClientRect().width);
272
- }
273
- const ne = u(0);
274
- function ie(e) {
275
- ne.value = e === "start" ? 1 : 0;
276
- }
277
- return Ae(() => {
278
- le(), ae();
279
- }), R(() => t.labelLeft, () => {
280
- ue(le);
281
- }, { deep: !0 }), R(() => t.labelRight, () => {
282
- ue(ae);
283
- }, { deep: !0 }), fe({
284
- setStartValue: z,
285
- setEndValue: A
286
- }), (e, l) => (m(), v("div", {
287
- "data-dom-to-png-ignore": "",
288
- style: { padding: "0 24px" },
289
- class: "vue-data-ui-zoom",
290
- ref_key: "zoomWrapper",
291
- ref: f,
292
- onMousedown: Q,
293
- onTouchstart: Q,
294
- onTouchend: l[11] || (l[11] = (n) => C.value = !1)
295
- }, [
296
- d("div", Ge, [
297
- a.valueStart !== a.refreshStartPoint || a.valueEnd !== pe.value ? (m(), v("div", je, [
298
- a.useResetSlot ? Fe(e.$slots, "reset-action", {
299
- key: 1,
300
- reset: J
301
- }, void 0, !0) : (m(), v("button", {
302
- key: 0,
303
- tabindex: "0",
304
- role: "button",
305
- class: "vue-data-ui-refresh-button",
306
- style: $({
307
- top: M.value ? "36px" : "-16px",
308
- pointerEvents: "all !important"
309
- }),
310
- onClick: J
311
- }, [
312
- He(Ve, {
313
- name: "refresh",
314
- stroke: a.textColor
315
- }, null, 8, ["stroke"])
316
- ], 4))
317
- ])) : x("", !0)
318
- ]),
319
- d("div", {
320
- class: "double-range-slider",
321
- ref_key: "minimapWrapper",
322
- ref: T,
323
- style: { "z-index": "0" },
324
- onMouseenter: l[9] || (l[9] = (n) => C.value = !0),
325
- onMouseleave: l[10] || (l[10] = (n) => C.value = !1)
326
- }, [
327
- M.value ? (m(), v("div", qe, [
328
- (m(), v("svg", {
329
- xmlns: Z(Oe),
330
- viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
331
- }, [
332
- d("defs", null, [
333
- d("linearGradient", {
334
- id: D.value,
335
- x1: "0%",
336
- y1: "0%",
337
- x2: "0%",
338
- y2: "100%"
339
- }, [
340
- d("stop", {
341
- offset: "0%",
342
- "stop-color": `${a.minimapLineColor}50`
343
- }, null, 8, Qe),
344
- l[12] || (l[12] = d("stop", {
345
- offset: "100%",
346
- "stop-color": "transparent"
347
- }, null, -1))
348
- ], 8, Ke)
349
- ]),
350
- d("path", {
351
- d: `M${g.value.fullSet}`,
352
- stroke: `${a.minimapLineColor}`,
353
- fill: "none",
354
- "stroke-width": "1",
355
- "stroke-linecap": "round",
356
- "stroke-linejoin": "round",
357
- style: { opacity: "1" }
358
- }, null, 8, Ye),
359
- d("rect", {
360
- x: p.value.x,
361
- width: p.value.width < 0 ? 0 : p.value.width,
362
- height: Math.max(i.value.height, 0),
363
- y: 0,
364
- fill: w.value,
365
- rx: a.minimapSelectionRadius,
366
- stroke: "none"
367
- }, null, 8, _e),
368
- d("path", {
369
- d: `M${c.value / 2},${Math.max(i.value.height, 0)} ${g.value.fullSet} L${i.value.width - c.value / 2},${Math.max(i.value.height, 0)}Z`,
370
- fill: `url(#${D.value})`,
371
- stroke: "none",
372
- style: { opacity: "1" }
373
- }, null, 8, et),
374
- d("rect", {
375
- x: p.value.x,
376
- width: p.value.width < 0 ? 0 : p.value.width,
377
- height: Math.max(i.value.height, 0),
378
- y: 0,
379
- rx: a.minimapSelectionRadius,
380
- fill: w.value
381
- }, null, 8, tt),
382
- d("rect", {
383
- x: p.value.x,
384
- width: p.value.width < 0 ? 0 : p.value.width,
385
- height: Math.max(i.value.height, 0),
386
- y: 0,
387
- fill: a.minimapSelectedColor,
388
- rx: a.minimapSelectionRadius,
389
- style: $({
390
- opacity: a.minimapSelectedColorOpacity
391
- })
392
- }, null, 12, lt),
393
- d("path", {
394
- d: `M${g.value.sliced[0].x},${Math.max(i.value.height, 0)} ${g.value.selectionSet} L${g.value.sliced.at(-1).x},${Math.max(i.value.height, 0)}Z`,
395
- fill: `url(#${D.value})`,
396
- stroke: "none",
397
- style: { opacity: "1" }
398
- }, null, 8, at),
399
- d("path", {
400
- d: `M ${g.value.selectionSet}`,
401
- stroke: `${a.minimapLineColor}`,
402
- fill: "transparent",
403
- "stroke-width": "2",
404
- "stroke-linecap": "round",
405
- "stroke-linejoin": "round"
406
- }, null, 8, nt),
407
- d("circle", {
408
- cx: g.value.firstPlot.x,
409
- cy: g.value.firstPlot.y,
410
- "stroke-width": "0.5",
411
- stroke: w.value,
412
- r: "3",
413
- fill: a.minimapLineColor
414
- }, null, 8, it),
415
- d("circle", {
416
- cx: g.value.lastPlot.x,
417
- cy: g.value.lastPlot.y,
418
- "stroke-width": "0.5",
419
- stroke: w.value,
420
- r: "3",
421
- fill: a.minimapLineColor
422
- }, null, 8, ut),
423
- N.value !== null ? (m(!0), v(re, { key: 0 }, se(q.value, (n, h) => (m(), v("g", null, [
424
- N.value === n && n >= a.valueStart && n < a.valueEnd ? (m(), v("line", {
425
- key: 0,
426
- x1: c.value * h + c.value / 2,
427
- x2: c.value * h + c.value / 2,
428
- y1: 0,
429
- y2: Math.max(i.value.height, 0),
430
- stroke: a.minimapIndicatorColor,
431
- "stroke-linecap": "round",
432
- "stroke-dasharray": "2",
433
- "stroke-width": "1"
434
- }, null, 8, ot)) : x("", !0)
435
- ]))), 256)) : x("", !0),
436
- (m(!0), v(re, null, se(q.value, (n, h) => (m(), v("rect", {
437
- x: c.value * h,
438
- y: 0,
439
- height: Math.max(i.value.height, 0),
440
- width: c.value < 0 ? 0 : c.value,
441
- fill: "transparent",
442
- style: $([{ "pointer-events": "all !important" }, {
443
- cursor: n >= a.valueStart && n < a.valueEnd && a.enableSelectionDrag ? k.value ? "grabbing" : "grab" : "default"
444
- }]),
445
- onMousedown: l[0] || (l[0] = (S) => k.value = !0),
446
- onMouseup: l[1] || (l[1] = (S) => k.value = !1),
447
- onMouseenter: (S) => ke(n),
448
- onMouseleave: l[2] || (l[2] = (S) => {
449
- N.value = null, b("trapMouse", null);
450
- })
451
- }, null, 44, rt))), 256))
452
- ], 8, Je))
453
- ])) : x("", !0),
454
- l[13] || (l[13] = d("div", { class: "slider-track" }, null, -1)),
455
- d("div", {
456
- class: L({
457
- "range-highlight": !0,
458
- move: a.enableSelectionDrag
459
- }),
460
- onMousedown: l[3] || (l[3] = (n) => k.value = !0),
461
- onMouseup: l[4] || (l[4] = (n) => k.value = !1),
462
- style: $({
463
- ...y.value,
464
- cursor: k.value ? "grabbing" : "grab"
465
- })
466
- }, null, 38),
467
- a.enableRangeHandles ? oe((m(), v("input", {
468
- ref_key: "rangeStart",
469
- ref: I,
470
- key: `range-min${Ce.value}`,
471
- type: "range",
472
- class: L({ "range-left": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
473
- min: a.min,
474
- max: a.max,
475
- "onUpdate:modelValue": l[5] || (l[5] = (n) => o.value = n),
476
- onInput: we,
477
- onMouseenter: l[6] || (l[6] = (n) => ie("start"))
478
- }, null, 42, st)), [
479
- [de, o.value]
480
- ]) : x("", !0),
481
- a.enableRangeHandles ? oe((m(), v("input", {
482
- key: 2,
483
- ref_key: "rangeEnd",
484
- ref: P,
485
- type: "range",
486
- class: L({ "range-right": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
487
- min: a.min,
488
- max: a.max,
489
- "onUpdate:modelValue": l[7] || (l[7] = (n) => r.value = n),
490
- onInput: Se,
491
- onMouseenter: l[8] || (l[8] = (n) => ie("end"))
492
- }, null, 42, dt)), [
493
- [de, r.value]
494
- ]) : x("", !0),
495
- a.labelLeft ? (m(), v("div", {
496
- key: 3,
497
- ref_key: "tooltipLeft",
498
- ref: W,
499
- class: L({
500
- "range-tooltip": !0,
501
- "range-tooltip-visible": C.value,
502
- "range-tooltip-arrow": y.value.arrowLeft && !a.verticalHandles,
503
- "range-tooltip-arrow-left": !y.value.arrowLeft && !a.verticalHandles
504
- }),
505
- style: $({
506
- left: y.value.tooltipLeft,
507
- color: Z(he)(a.selectColor),
508
- backgroundColor: a.selectColor,
509
- border: `1px solid ${w.value}`,
510
- zIndex: `${ne.value + 4}`
511
- })
512
- }, ve(a.labelLeft), 7)) : x("", !0),
513
- a.labelRight ? (m(), v("div", {
514
- key: 4,
515
- ref_key: "tooltipRight",
516
- ref: X,
517
- class: L({
518
- "range-tooltip": !0,
519
- "range-tooltip-visible": C.value,
520
- "range-tooltip-arrow": y.value.arrowRight && !a.verticalHandles,
521
- "range-tooltip-arrow-right": !y.value.arrowRight && !a.verticalHandles
522
- }),
523
- style: $({
524
- left: y.value.tooltipRight,
525
- color: Z(he)(a.selectColor),
526
- backgroundColor: a.selectColor,
527
- border: `1px solid ${w.value}`,
528
- zIndex: "4"
529
- })
530
- }, ve(a.labelRight), 7)) : x("", !0)
531
- ], 544)
532
- ], 544));
533
- }
534
- }, pt = /* @__PURE__ */ Ze(vt, [["__scopeId", "data-v-7cdc1124"]]);
535
- export {
536
- pt as S
537
- };