vue-data-ui 2.15.4 → 2.15.5

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 (90) hide show
  1. package/dist/{Arrow-BQEd_wRd.js → Arrow-CI_Chty0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BjF36RRw.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
  3. package/dist/{BaseIcon-2scCpKdr.js → BaseIcon-DTTmgKBX.js} +1 -1
  4. package/dist/{ColorPicker-CDeA3YBV.js → ColorPicker-BySm_2Gi.js} +6 -6
  5. package/dist/{DataTable-IKRxrKEU.js → DataTable-CLeYfh93.js} +2 -2
  6. package/dist/{Legend-DC-fDruC.js → Legend-B949nNP9.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-bX1Ui_EC.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
  8. package/dist/{PackageVersion-CQFOMkQe.js → PackageVersion-Djh3oJFs.js} +1 -1
  9. package/dist/{PenAndPaper-DFjucqRK.js → PenAndPaper-BlF1d4XE.js} +3 -3
  10. package/dist/{Shape-FD7ONBrG.js → Shape-DmDw1mpi.js} +1 -1
  11. package/dist/{Slicer-Bzl5YpDL.js → Slicer-mINKiN6T.js} +13 -13
  12. package/dist/{SparkTooltip-BCvNYPb4.js → SparkTooltip-B888Ijov.js} +1 -1
  13. package/dist/{Title-CIt92-DI.js → Title-CPvPrwF4.js} +1 -1
  14. package/dist/{Tooltip-1FFfLKkv.js → Tooltip-BiWfcBQk.js} +1 -1
  15. package/dist/{UserOptions-ChEMQwwM.js → UserOptions-CFllUVQ4.js} +2 -2
  16. package/dist/{dom-to-png-DT4oXcWc.js → dom-to-png-DeajhH5Z.js} +1 -1
  17. package/dist/{img-DFfoLjtb.js → img-4TaH43jS.js} +1 -1
  18. package/dist/{index-k9FPl_-D.js → index-CBhz79Be.js} +11 -6
  19. package/dist/{pdf-CN1aIkJS.js → pdf-BlK5aBh-.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +7 -0
  22. package/dist/types/vue-data-ui.d.ts +7 -0
  23. package/dist/{useNestedProp-upzRxZOw.js → useNestedProp-Cg9K3ISG.js} +1 -1
  24. package/dist/{usePrinter-CARdq6Fz.js → usePrinter-DNC_9y1d.js} +2 -2
  25. package/dist/{vue-data-ui-mV-4-e8e.js → vue-data-ui-DcP8arpr.js} +63 -63
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-BMhc9SiP.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
  28. package/dist/{vue-ui-accordion-ATCD6-Tg.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-2i_hXqip.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
  30. package/dist/{vue-ui-annotator-Breve0su.js → vue-ui-annotator-_31h_MMe.js} +2 -2
  31. package/dist/{vue-ui-bullet-Biziff3B.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
  32. package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
  33. package/dist/{vue-ui-carousel-table-ZHZOptd2.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
  34. package/dist/{vue-ui-chestnut-Cg0P2bco.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
  35. package/dist/{vue-ui-chord-CODyOR1w.js → vue-ui-chord-C8hE1GXD.js} +47 -47
  36. package/dist/{vue-ui-circle-pack-BZ0Fl6Em.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
  37. package/dist/{vue-ui-cursor-PLc3WrpA.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
  38. package/dist/{vue-ui-dashboard-BiGxJMVg.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
  39. package/dist/{vue-ui-digits-D_s5X6Gv.js → vue-ui-digits-D4Du84P3.js} +2 -2
  40. package/dist/{vue-ui-donut-BADbAnZ7.js → vue-ui-donut-C0dqyYUE.js} +7 -7
  41. package/dist/{vue-ui-donut-evolution-DSDySesn.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
  42. package/dist/{vue-ui-dumbbell-C-81iCzF.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
  43. package/dist/{vue-ui-flow-MlOiiVqg.js → vue-ui-flow-DalrAEmv.js} +24 -24
  44. package/dist/{vue-ui-funnel-DXCWqpfj.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
  45. package/dist/{vue-ui-galaxy-Aremt6Os.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
  46. package/dist/{vue-ui-gauge-CRt_-O7S.js → vue-ui-gauge-D71TDx5z.js} +17 -17
  47. package/dist/{vue-ui-gizmo-2b7hFkMI.js → vue-ui-gizmo-CJChusop.js} +3 -3
  48. package/dist/{vue-ui-heatmap-DbLkBq8U.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
  49. package/dist/{vue-ui-history-plot-CJ7xDgWe.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
  50. package/dist/{vue-ui-kpi-BEUT--Y2.js → vue-ui-kpi-CJut0fnk.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-CFKVgefJ.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
  52. package/dist/{vue-ui-molecule-BzPDfeL2.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
  53. package/dist/{vue-ui-mood-radar-CxCOF6D7.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
  54. package/dist/{vue-ui-nested-donuts-7Y06IxwD.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
  55. package/dist/{vue-ui-onion-C5ycZG0D.js → vue-ui-onion-DVtreg0e.js} +6 -6
  56. package/dist/{vue-ui-parallel-coordinate-plot-DTi16joz.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
  57. package/dist/{vue-ui-quadrant-CKhiKHS0.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
  58. package/dist/{vue-ui-quick-chart-CvwSCsif.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
  59. package/dist/{vue-ui-radar-CVsEeYXD.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
  60. package/dist/{vue-ui-rating-fxUUbMdu.js → vue-ui-rating-Drx2P4xK.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-BxpZWN-i.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
  62. package/dist/{vue-ui-ridgeline-CIB1O3j4.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
  63. package/dist/{vue-ui-rings-BrNNe84c.js → vue-ui-rings-DWMToWPQ.js} +21 -21
  64. package/dist/{vue-ui-scatter-16nBWie7.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
  65. package/dist/{vue-ui-skeleton-Bd_C0wSv.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
  66. package/dist/{vue-ui-smiley-DMeM0qiO.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BHFQFK9s.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-ll_sPgnw.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-CxJGBD5X.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-D2G4enc2.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BpPTlOzu.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-Ceg1ZY7U.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
  73. package/dist/{vue-ui-stackbar-CapcKmV8.js → vue-ui-stackbar-DaaB_FjD.js} +8 -8
  74. package/dist/{vue-ui-strip-plot-BNNnSAKO.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
  75. package/dist/{vue-ui-table-Cw9CBNiW.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-CvnYKuy6.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
  77. package/dist/{vue-ui-table-sparkline-DDGyDfI0.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
  78. package/dist/{vue-ui-thermometer-Bwj_Ew5C.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
  79. package/dist/{vue-ui-timer-Do7bjdtG.js → vue-ui-timer-C01Ipde6.js} +30 -30
  80. package/dist/{vue-ui-tiremarks-wJyN3gsD.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
  81. package/dist/{vue-ui-treemap-CVSCG10W.js → vue-ui-treemap-DJEl32W1.js} +75 -75
  82. package/dist/{vue-ui-vertical-bar-CfRyQ9Cn.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
  83. package/dist/{vue-ui-waffle-CWDvXh87.js → vue-ui-waffle-rFSfHosn.js} +30 -30
  84. package/dist/{vue-ui-wheel-Dk5ONtqz.js → vue-ui-wheel-B6md6ra7.js} +5 -5
  85. package/dist/{vue-ui-word-cloud-BXoqw8VQ.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
  86. package/dist/{vue-ui-world-rO4sQpvw.js → vue-ui-world-d09xOrf0.js} +5 -5
  87. package/dist/{vue-ui-xy-DTkzAeNr.js → vue-ui-xy-CuzhWfRK.js} +20 -20
  88. package/dist/{vue-ui-xy-canvas-Dmp9S9oY.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
  89. package/package.json +1 -1
  90. package/dist/vue-ui-candlestick-5C8j-Fb6.js +0 -768
@@ -1,11 +1,11 @@
1
- import { R as X, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, F as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, G as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-k9FPl_-D.js";
1
+ import { R as X, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-CBhz79Be.js";
2
2
  import { u as je } from "./useMouse-AicQS8Vf.js";
3
- import { u as ie } from "./useNestedProp-upzRxZOw.js";
3
+ import { u as ie } from "./useNestedProp-Cg9K3ISG.js";
4
4
  import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
5
5
  import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as i, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as h, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as u, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
6
- import { S as at } from "./Slicer-Bzl5YpDL.js";
7
- import it from "./Title-CIt92-DI.js";
8
- import { _ as st } from "./Shape-FD7ONBrG.js";
6
+ import { S as at } from "./Slicer-mINKiN6T.js";
7
+ import it from "./Title-CPvPrwF4.js";
8
+ import { _ as st } from "./Shape-DmDw1mpi.js";
9
9
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const ct = ne(), ot = {
11
11
  name: "vue-ui-xy",
@@ -29,15 +29,15 @@ const ct = ne(), ot = {
29
29
  Title: it,
30
30
  // Must be ready in responsive mode
31
31
  Shape: st,
32
- DataTable: Z(() => import("./DataTable-IKRxrKEU.js")),
33
- Tooltip: Z(() => import("./Tooltip-1FFfLKkv.js")),
34
- UserOptions: Z(() => import("./UserOptions-ChEMQwwM.js")),
35
- BaseIcon: Z(() => import("./BaseIcon-2scCpKdr.js")),
36
- TableSparkline: Z(() => import("./vue-ui-table-sparkline-DDGyDfI0.js")),
37
- Skeleton: Z(() => import("./vue-ui-skeleton-Bd_C0wSv.js")),
38
- Accordion: Z(() => import("./vue-ui-accordion-ATCD6-Tg.js")),
39
- PackageVersion: Z(() => import("./PackageVersion-CQFOMkQe.js")),
40
- PenAndPaper: Z(() => import("./PenAndPaper-DFjucqRK.js"))
32
+ DataTable: Z(() => import("./DataTable-CLeYfh93.js")),
33
+ Tooltip: Z(() => import("./Tooltip-BiWfcBQk.js")),
34
+ UserOptions: Z(() => import("./UserOptions-CFllUVQ4.js")),
35
+ BaseIcon: Z(() => import("./BaseIcon-DTTmgKBX.js")),
36
+ TableSparkline: Z(() => import("./vue-ui-table-sparkline-Cxj3ZoBu.js")),
37
+ Skeleton: Z(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")),
38
+ Accordion: Z(() => import("./vue-ui-accordion-BWiiOpGO.js")),
39
+ PackageVersion: Z(() => import("./PackageVersion-Djh3oJFs.js")),
40
+ PenAndPaper: Z(() => import("./PenAndPaper-BlF1d4XE.js"))
41
41
  },
42
42
  data() {
43
43
  this.dataset.forEach((f, l) => {
@@ -805,7 +805,7 @@ const ct = ne(), ot = {
805
805
  },
806
806
  annotationsY() {
807
807
  const r = this.FINAL_CONFIG.chart.annotations;
808
- if (!Array.isArray(r) || r.every((N) => !N.show)) return [];
808
+ if (!r || !Array.isArray(r) || r.every((N) => !N.show)) return [];
809
809
  const o = r.filter(
810
810
  (N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
811
811
  );
@@ -955,10 +955,10 @@ const ct = ne(), ot = {
955
955
  userConfig: this.config,
956
956
  defaultConfig: r
957
957
  });
958
- return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (o.chart.annotations = this.config.chart.annotations.map((d) => ie({
958
+ return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? o.chart.annotations = this.config.chart.annotations.map((d) => ie({
959
959
  defaultConfig: r.chart.annotations[0],
960
960
  userConfig: d
961
- }))), o.theme ? {
961
+ })) : o.chart.annotations = [], o.theme ? {
962
962
  ...ie({
963
963
  userConfig: this.themes.vue_ui_xy[o.theme] || this.config,
964
964
  defaultConfig: o
@@ -1186,7 +1186,7 @@ const ct = ne(), ot = {
1186
1186
  async generatePdf() {
1187
1187
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1188
1188
  try {
1189
- const { default: r } = await import("./pdf-CN1aIkJS.js");
1189
+ const { default: r } = await import("./pdf-BlK5aBh-.js");
1190
1190
  await r({
1191
1191
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1192
1192
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1209,7 +1209,7 @@ const ct = ne(), ot = {
1209
1209
  async generateImage() {
1210
1210
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1211
1211
  try {
1212
- const { default: r } = await import("./img-DFfoLjtb.js");
1212
+ const { default: r } = await import("./img-4TaH43jS.js");
1213
1213
  await r({
1214
1214
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1215
1215
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -3076,7 +3076,7 @@ function Xr(r, o, d, f, l, e) {
3076
3076
  }, 8, ["config"])) : h("", !0)
3077
3077
  ], 46, ht);
3078
3078
  }
3079
- const la = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-13d6c4c3"]]);
3079
+ const la = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-b425447d"]]);
3080
3080
  export {
3081
3081
  la as default
3082
3082
  };
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Ga, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
2
- import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a2 as ll, H as tl, aj as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-k9FPl_-D.js";
1
+ import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Ga, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Za, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
2
+ import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a2 as ll, G as tl, aj as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-CBhz79Be.js";
3
3
  import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-DfdjqQps.js";
4
- import { u as da } from "./useNestedProp-upzRxZOw.js";
5
- import { u as fl } from "./usePrinter-CARdq6Fz.js";
4
+ import { u as da } from "./useNestedProp-Cg9K3ISG.js";
5
+ import { u as fl } from "./usePrinter-DNC_9y1d.js";
6
6
  import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
8
- import ml from "./Legend-DC-fDruC.js";
9
- import bl from "./Title-CIt92-DI.js";
10
- import { S as xl } from "./Slicer-Bzl5YpDL.js";
8
+ import ml from "./Legend-B949nNP9.js";
9
+ import bl from "./Title-CPvPrwF4.js";
10
+ import { S as xl } from "./Slicer-mINKiN6T.js";
11
11
  import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
12
12
  import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const Cl = ["id"], wl = ["onClick"], zl = {
@@ -31,14 +31,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
31
31
  },
32
32
  emits: ["selectLegend"],
33
33
  setup(Oe, { expose: ha, emit: ya }) {
34
- const fa = K(() => import("./vue-ui-accordion-ATCD6-Tg.js")), ga = K(() => import("./DataTable-IKRxrKEU.js")), pa = K(() => import("./NonSvgPenAndPaper-bX1Ui_EC.js")), ma = K(() => import("./vue-ui-skeleton-Bd_C0wSv.js")), ba = K(() => import("./Tooltip-1FFfLKkv.js")), xa = K(() => import("./UserOptions-ChEMQwwM.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Fe = d(0), he = d(!1), Ee = d(null), Ae = d(null), De = d(null), He = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
34
+ const fa = K(() => import("./vue-ui-accordion-BWiiOpGO.js")), ga = K(() => import("./DataTable-CLeYfh93.js")), pa = K(() => import("./NonSvgPenAndPaper-zuNWbm52.js")), ma = K(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), ba = K(() => import("./Tooltip-BiWfcBQk.js")), xa = K(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), N = d(!0), G = d(!0), xe = d(null), Pe = d(0), Fe = d(0), he = d(!1), Ee = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
35
35
  ra(() => {
36
36
  Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
37
37
  });
38
38
  const a = x({
39
39
  get: () => Ue(),
40
40
  set: (e) => e
41
- }), { userOptionsVisible: ze, setUserOptionsVisibility: Ne, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
41
+ }), { userOptionsVisible: ze, setUserOptionsVisibility: He, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
42
42
  function Ue() {
43
43
  const e = da({
44
44
  userConfig: g.config,
@@ -71,7 +71,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
71
71
  function wa(e) {
72
72
  he.value = e, Fe.value += 1;
73
73
  }
74
- const Ze = x(() => al(a.value.customPalette)), I = x(() => G.value ? Math.max(...G.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
74
+ const Ge = x(() => al(a.value.customPalette)), I = x(() => Z.value ? Math.max(...Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
75
75
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
76
76
  return {
77
77
  canvasWidth: y.value,
@@ -85,14 +85,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
85
85
  slot: e / (u.value.end - u.value.start)
86
86
  };
87
87
  });
88
- function Ge(e, t) {
88
+ function Ze(e, t) {
89
89
  return e / t;
90
90
  }
91
91
  function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
92
92
  return t.map((Y, S) => {
93
- const E = v.min < 0 ? Math.abs(v.min) : 0, U = Ge(Y + E, E + v.max);
93
+ const E = v.min < 0 ? Math.abs(v.min) : 0, U = Ze(Y + E, E + v.max);
94
94
  let re, se;
95
- e && (re = v.min, se = Ge(Y - re, v.max - re));
95
+ e && (re = v.min, se = Ze(Y - re, v.max - re));
96
96
  let O = 0;
97
97
  return f === null ? O = l.value.bottom - l.value.height * (e ? se : U) : O = l.value.bottom - C - i * (e ? se : U), {
98
98
  x: l.value.left + l.value.slot * S + l.value.slot / 2,
@@ -102,7 +102,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
102
102
  });
103
103
  }
104
104
  const m = x(() => {
105
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), o = Me(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
105
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), o = Me(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
106
106
  y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
107
107
  x: l.value.left - 8,
108
108
  value: i
@@ -133,19 +133,19 @@ const Cl = ["id"], wl = ["onClick"], zl = {
133
133
  { datapoint: e, seriesIndex: c.value }
134
134
  )}</span>
135
135
  </div>
136
- `)), G = x(() => g.dataset.map((e, t) => ({
136
+ `)), Z = x(() => g.dataset.map((e, t) => ({
137
137
  ...e,
138
138
  series: ll({
139
139
  data: tl(e.series),
140
140
  threshold: a.value.downsample.threshold
141
141
  }),
142
142
  absoluteIndex: t,
143
- color: na(e.color || Ze.value[t] || B[t] || B[t % B.length])
143
+ color: na(e.color || Ge.value[t] || B[t] || B[t % B.length])
144
144
  })));
145
145
  A(I, (e) => {
146
146
  e && je();
147
147
  });
148
- const h = x(() => ol(G.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
148
+ const h = x(() => ol(Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
149
149
  ...e,
150
150
  series: e.series.slice(u.value.start, u.value.end)
151
151
  })).map((e, t) => {
@@ -543,7 +543,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
543
543
  }
544
544
  );
545
545
  }
546
- const N = x(() => Ll({
546
+ const H = x(() => Ll({
547
547
  values: a.value.style.chart.grid.y.timeLabels.values,
548
548
  maxDatapoints: I.value,
549
549
  formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
@@ -554,7 +554,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
554
554
  for (let e = u.value.start; e < u.value.end; e += 1)
555
555
  (u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
556
556
  s.value,
557
- N.value[e] ? N.value[e].text : e + 1,
557
+ H.value[e] ? H.value[e].text : e + 1,
558
558
  l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
559
559
  l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
560
560
  {
@@ -659,7 +659,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
659
659
  );
660
660
  });
661
661
  }
662
- function Ha(e) {
662
+ function Na(e) {
663
663
  e.useArea ? r.value.stacked ? ca(
664
664
  s.value,
665
665
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
@@ -679,7 +679,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
679
679
  lineWidth: 3
680
680
  });
681
681
  }
682
- function Na() {
682
+ function Ha() {
683
683
  h.value.forEach((e, t) => {
684
684
  k(
685
685
  s.value,
@@ -695,8 +695,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
695
695
  });
696
696
  }
697
697
  function oe() {
698
- Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Na(), Ia.value.forEach((e) => {
699
- (e.type === "line" || !e.type) && Ha(e), Z.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
698
+ Ta(), N.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
699
+ (e.type === "line" || !e.type) && Na(e), G.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
700
700
  }), xe.value = yl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
701
701
  if (e.type === "line" || !e.type || e.type === "plot") {
702
702
  if (!e.coordinatesLine[c.value]) return;
@@ -713,11 +713,11 @@ const Cl = ["id"], wl = ["onClick"], zl = {
713
713
  }
714
714
  );
715
715
  }
716
- })), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
716
+ })), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), N.value = !1;
717
717
  }
718
718
  const ye = cl(() => {
719
- Z.value = !0, Ma();
720
- }, I.value > 200 ? 10 : 1, !Z.value);
719
+ G.value = !0, Ma();
720
+ }, I.value > 200 ? 10 : 1, !G.value);
721
721
  function ue(e) {
722
722
  if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
723
723
  const { y: t, value: o } = e.coordinatesLine[c.value];
@@ -730,7 +730,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
730
730
  return;
731
731
  }
732
732
  const v = n * 2 - l.value.left;
733
- if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !Z.value) return;
733
+ if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !G.value) return;
734
734
  let C = "";
735
735
  const i = a.value.style.chart.tooltip.customFormat;
736
736
  ia(i) && il(() => i({
@@ -755,20 +755,20 @@ const Cl = ["id"], wl = ["onClick"], zl = {
755
755
  })),
756
756
  series: h.value,
757
757
  config: a.value
758
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), Z.value = !1;
758
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${H.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), G.value = !1;
759
759
  }
760
760
  A(() => c.value, (e) => {
761
761
  ye();
762
762
  }), A(() => u.value, (e) => {
763
- H.value = !0, oe();
763
+ N.value = !0, oe();
764
764
  }, {
765
765
  deep: !0
766
766
  }), A(() => r.value.showDataLabels, (e) => {
767
- H.value = !0, oe();
767
+ N.value = !0, oe();
768
768
  }), A(() => M.value, (e) => {
769
769
  e && oe();
770
770
  }), A(() => r.value.stacked, (e) => {
771
- H.value = !0, Z.value = !0, ye();
771
+ N.value = !0, G.value = !0, ye();
772
772
  });
773
773
  function Ua() {
774
774
  ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
@@ -788,7 +788,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
788
788
  title: a.value.style.chart.title.text ? Ee.value : null,
789
789
  legend: a.value.style.chart.legend.show ? Ae.value : null,
790
790
  slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
791
- source: He.value
791
+ source: Ne.value
792
792
  });
793
793
  requestAnimationFrame(() => {
794
794
  We.value = `${t} / ${o}`;
@@ -798,19 +798,19 @@ const Cl = ["id"], wl = ["onClick"], zl = {
798
798
  }
799
799
  J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
800
800
  for (const t of e)
801
- t.contentBoxSize && te.value && (H.value = !0, ye());
801
+ t.contentBoxSize && te.value && (N.value = !0, ye());
802
802
  }), J.value.observe(te.value), qe();
803
803
  }
804
804
  Va(() => {
805
805
  J.value && J.value.disconnect(), F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect());
806
806
  });
807
807
  function Ke(e) {
808
- ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), H.value = !0, ye();
808
+ ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, ye();
809
809
  }
810
- const Qe = x(() => G.value.map((e, t) => ({
810
+ const Qe = x(() => Z.value.map((e, t) => ({
811
811
  ...e,
812
812
  name: e.name,
813
- color: na(e.color) || Ze.value[t] || B[t] || B[t % B.length],
813
+ color: na(e.color) || Ge.value[t] || B[t] || B[t % B.length],
814
814
  shape: e.shape || "circle",
815
815
  prefix: e.prefix || "",
816
816
  suffix: e.suffix || "",
@@ -832,7 +832,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
832
832
  let t = [];
833
833
  for (let v = 0; v < I.value; v += 1) {
834
834
  const C = h.value.map((i) => i.series[v] ?? 0).reduce((i, f) => i + f, 0);
835
- t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? N.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
835
+ t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? H.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
836
836
  }
837
837
  const o = {
838
838
  th: {
@@ -856,7 +856,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
856
856
  type: o.type
857
857
  })), t = [];
858
858
  for (let o = u.value.start; o < u.value.end; o += 1) {
859
- const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? N.value[o].text : o + 1];
859
+ const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? H.value[o].text : o + 1];
860
860
  h.value.forEach((v) => {
861
861
  n.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
862
862
  }), t.push(n);
@@ -901,9 +901,9 @@ const Cl = ["id"], wl = ["onClick"], zl = {
901
901
  ref_key: "xy",
902
902
  ref: le,
903
903
  id: `xy_canvas_${be.value}`,
904
- class: Za(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
905
- onMouseenter: t[5] || (t[5] = () => p(Ne)(!0)),
906
- onMouseleave: t[6] || (t[6] = () => p(Ne)(!1))
904
+ class: Ga(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
905
+ onMouseenter: t[5] || (t[5] = () => p(He)(!0)),
906
+ onMouseleave: t[6] || (t[6] = () => p(He)(!1))
907
907
  }, [
908
908
  a.value.style.chart.title.text ? (z(), ne("div", {
909
909
  key: 0,
@@ -962,7 +962,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
962
962
  style: Q({
963
963
  visibility: p(Ye) ? p(ze) ? "visible" : "hidden" : "visible"
964
964
  })
965
- }, Ga({ _: 2 }, [
965
+ }, Za({ _: 2 }, [
966
966
  e.$slots.menuIcon ? {
967
967
  name: "menuIcon",
968
968
  fn: b(({ isOpen: o, color: n }) => [
@@ -1104,8 +1104,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1104
1104
  borderColor: a.value.style.chart.backgroundColor,
1105
1105
  fontSize: a.value.style.chart.zoom.fontSize,
1106
1106
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
1107
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? N.value[u.value.start].text : "",
1108
- labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? N.value[u.value.end - 1].text : "",
1107
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? H.value[u.value.start].text : "",
1108
+ labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? H.value[u.value.end - 1].text : "",
1109
1109
  textColor: a.value.style.chart.color,
1110
1110
  inputColor: a.value.style.chart.zoom.color,
1111
1111
  selectColor: a.value.style.chart.zoom.highlightColor,
@@ -1157,7 +1157,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1157
1157
  e.$slots.source ? (z(), ne("div", {
1158
1158
  key: 3,
1159
1159
  ref_key: "source",
1160
- ref: He,
1160
+ ref: Ne,
1161
1161
  dir: "auto"
1162
1162
  }, [
1163
1163
  L(e.$slots, "source", {}, void 0, !0)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.15.4",
4
+ "version": "2.15.5",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [