vue-data-ui 3.18.3 → 3.18.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 (142) hide show
  1. package/dist/{PackageVersion-JKSxFXYH.js → PackageVersion-sdNn_SJC.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-history-plot.js +1 -1
  28. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  29. package/dist/components/vue-ui-kpi.js +1 -1
  30. package/dist/components/vue-ui-mini-loader.js +1 -1
  31. package/dist/components/vue-ui-molecule.js +1 -1
  32. package/dist/components/vue-ui-mood-radar.js +1 -1
  33. package/dist/components/vue-ui-nested-donuts.js +1 -1
  34. package/dist/components/vue-ui-onion.js +1 -1
  35. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  36. package/dist/components/vue-ui-quadrant.js +1 -1
  37. package/dist/components/vue-ui-quick-chart.js +1 -1
  38. package/dist/components/vue-ui-radar.js +1 -1
  39. package/dist/components/vue-ui-rating.js +1 -1
  40. package/dist/components/vue-ui-relation-circle.js +1 -1
  41. package/dist/components/vue-ui-ridgeline.js +1 -1
  42. package/dist/components/vue-ui-rings.js +1 -1
  43. package/dist/components/vue-ui-scatter.js +1 -1
  44. package/dist/components/vue-ui-skeleton.js +1 -1
  45. package/dist/components/vue-ui-smiley.js +1 -1
  46. package/dist/components/vue-ui-spark-trend.js +1 -1
  47. package/dist/components/vue-ui-sparkbar.js +1 -1
  48. package/dist/components/vue-ui-sparkgauge.js +1 -1
  49. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  50. package/dist/components/vue-ui-sparkline.js +1 -1
  51. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  52. package/dist/components/vue-ui-stackbar.js +1 -1
  53. package/dist/components/vue-ui-stackline.js +1 -1
  54. package/dist/components/vue-ui-strip-plot.js +1 -1
  55. package/dist/components/vue-ui-table-heatmap.js +1 -1
  56. package/dist/components/vue-ui-table-sparkline.js +1 -1
  57. package/dist/components/vue-ui-table.js +1 -1
  58. package/dist/components/vue-ui-thermometer.js +1 -1
  59. package/dist/components/vue-ui-timer.js +1 -1
  60. package/dist/components/vue-ui-tiremarks.js +1 -1
  61. package/dist/components/vue-ui-treemap.js +1 -1
  62. package/dist/components/vue-ui-vertical-bar.js +1 -1
  63. package/dist/components/vue-ui-waffle.js +1 -1
  64. package/dist/components/vue-ui-wheel.js +1 -1
  65. package/dist/components/vue-ui-word-cloud.js +1 -1
  66. package/dist/components/vue-ui-world.js +1 -1
  67. package/dist/components/vue-ui-xy-canvas.js +1 -1
  68. package/dist/components/vue-ui-xy.js +1 -1
  69. package/dist/style.css +1 -1
  70. package/dist/types/vue-data-ui.d.ts +6 -0
  71. package/dist/{useConfig-BV0kTCnO.js → useConfig-Bc9KHPF4.js} +2 -1
  72. package/dist/{useObjectBindings-Ce_ZZk-f.js → useObjectBindings-BvfJ3hRY.js} +1 -1
  73. package/dist/utils.js +1 -1
  74. package/dist/{vue-data-ui-DzKsRvlx.js → vue-data-ui-sGqoT3c9.js} +67 -67
  75. package/dist/vue-data-ui.js +68 -68
  76. package/dist/{vue-ui-3d-bar-D9LYXQYA.js → vue-ui-3d-bar-C3hPjSrg.js} +2 -2
  77. package/dist/{vue-ui-accordion-cVv18nTV.js → vue-ui-accordion-DX5HeXF5.js} +1 -1
  78. package/dist/{vue-ui-age-pyramid-tBkN13YF.js → vue-ui-age-pyramid-GGrD4IEh.js} +2 -2
  79. package/dist/{vue-ui-annotator-B9mA_PlF.js → vue-ui-annotator-CQ_CYhzf.js} +2 -2
  80. package/dist/{vue-ui-bullet-Cn8Llr1F.js → vue-ui-bullet-DtrCqmnf.js} +2 -2
  81. package/dist/{vue-ui-bump-BIWr0tap.js → vue-ui-bump-x1u4Tz4C.js} +2 -2
  82. package/dist/{vue-ui-candlestick-BIUIoePh.js → vue-ui-candlestick-CKUDQebI.js} +2 -2
  83. package/dist/{vue-ui-carousel-table-CXDoCex4.js → vue-ui-carousel-table-DgIS8XIx.js} +2 -2
  84. package/dist/{vue-ui-chestnut-BpTIBlpz.js → vue-ui-chestnut-DH0Ao100.js} +2 -2
  85. package/dist/{vue-ui-chord-CSVW0JW_.js → vue-ui-chord-DKIblwCg.js} +2 -2
  86. package/dist/{vue-ui-circle-pack-CoDPNDE2.js → vue-ui-circle-pack-CY6Q5PYZ.js} +2 -2
  87. package/dist/{vue-ui-cursor-ChkVrvf3.js → vue-ui-cursor-BPS6jUrO.js} +2 -2
  88. package/dist/{vue-ui-dag-BtwtX2Fi.js → vue-ui-dag-DxpIAmJq.js} +2 -2
  89. package/dist/{vue-ui-dashboard-D4zUixGJ.js → vue-ui-dashboard-CVLuS3tw.js} +65 -65
  90. package/dist/{vue-ui-digits-BGMccYmx.js → vue-ui-digits-CBjh1slE.js} +2 -2
  91. package/dist/{vue-ui-donut-CJUMy86f.js → vue-ui-donut-D07k4eg8.js} +2 -2
  92. package/dist/{vue-ui-donut-evolution-Cf9ohIyx.js → vue-ui-donut-evolution-Dpm9YUOj.js} +2 -2
  93. package/dist/{vue-ui-dumbbell-BlvPXFFb.js → vue-ui-dumbbell-D_4zIeyv.js} +2 -2
  94. package/dist/{vue-ui-flow-USVRlziU.js → vue-ui-flow-Zy3rBFZi.js} +2 -2
  95. package/dist/{vue-ui-funnel-CCWbAcHt.js → vue-ui-funnel-hr5juV4V.js} +2 -2
  96. package/dist/{vue-ui-galaxy-CoZyQmVY.js → vue-ui-galaxy-CdELCFAd.js} +2 -2
  97. package/dist/{vue-ui-gauge-BC7ly4Na.js → vue-ui-gauge-BLzmjcQD.js} +2 -2
  98. package/dist/{vue-ui-geo-C3Eow8Em.js → vue-ui-geo-BChbk2Hg.js} +2 -2
  99. package/dist/{vue-ui-gizmo-Bn-vJ-Fx.js → vue-ui-gizmo-rGmWdhBQ.js} +2 -2
  100. package/dist/{vue-ui-heatmap-CZ-9Sl1C.js → vue-ui-heatmap-BkemBgrx.js} +3 -3
  101. package/dist/{vue-ui-history-plot-BK_NzH11.js → vue-ui-history-plot-DtRwG20f.js} +2 -2
  102. package/dist/{vue-ui-horizontal-bar-DTf-34_T.js → vue-ui-horizontal-bar-v8JHlakm.js} +3 -3
  103. package/dist/{vue-ui-kpi-DsglnM8o.js → vue-ui-kpi-CbYGRjw6.js} +2 -2
  104. package/dist/{vue-ui-mini-loader-BcCG6Yqb.js → vue-ui-mini-loader-CINjHFmm.js} +1 -1
  105. package/dist/{vue-ui-molecule-BcyHDynA.js → vue-ui-molecule-D-J2pWsN.js} +2 -2
  106. package/dist/{vue-ui-mood-radar-BFaVUl-J.js → vue-ui-mood-radar-CdRxxk0n.js} +2 -2
  107. package/dist/{vue-ui-nested-donuts-C1BvqC__.js → vue-ui-nested-donuts-Cz7EHVyx.js} +2 -2
  108. package/dist/{vue-ui-onion-D283exqG.js → vue-ui-onion-CO8p1JTi.js} +2 -2
  109. package/dist/{vue-ui-parallel-coordinate-plot-DKt_zJUf.js → vue-ui-parallel-coordinate-plot-r2k875_U.js} +2 -2
  110. package/dist/{vue-ui-quadrant-B2qYddY2.js → vue-ui-quadrant-BAvO1Glx.js} +2 -2
  111. package/dist/{vue-ui-quick-chart-Cyb40e0z.js → vue-ui-quick-chart-Dnp1rtbG.js} +2 -2
  112. package/dist/{vue-ui-radar-B3Hndp3R.js → vue-ui-radar-BrxOXNdC.js} +2 -2
  113. package/dist/{vue-ui-rating-DA9Bmfyb.js → vue-ui-rating-BFfT2Pqg.js} +1 -1
  114. package/dist/{vue-ui-relation-circle-WHH-LUI7.js → vue-ui-relation-circle-CbC71cfl.js} +2 -2
  115. package/dist/{vue-ui-ridgeline-CBOJva6x.js → vue-ui-ridgeline-cOTWhQj-.js} +2 -2
  116. package/dist/{vue-ui-rings-BMhEVZjd.js → vue-ui-rings-CRrBrqta.js} +2 -2
  117. package/dist/{vue-ui-scatter-Dz1nCbwk.js → vue-ui-scatter-DuHuJOUV.js} +2 -2
  118. package/dist/{vue-ui-skeleton-7UkhXYFe.js → vue-ui-skeleton-Csp41587.js} +2 -2
  119. package/dist/{vue-ui-smiley-B6nc7b71.js → vue-ui-smiley-DEXO-F37.js} +1 -1
  120. package/dist/{vue-ui-spark-trend-Cu9sm4hx.js → vue-ui-spark-trend-pqdjH6Xm.js} +2 -2
  121. package/dist/{vue-ui-sparkbar-kbKOfDoC.js → vue-ui-sparkbar-C-X2phQ7.js} +2 -2
  122. package/dist/{vue-ui-sparkgauge-BmJwEpT7.js → vue-ui-sparkgauge-Dh1N1yEe.js} +2 -2
  123. package/dist/{vue-ui-sparkhistogram-C3QI82WU.js → vue-ui-sparkhistogram-D-fkk68G.js} +2 -2
  124. package/dist/{vue-ui-sparkline-D8WLb79z.js → vue-ui-sparkline-DE8Z8Ciy.js} +2 -2
  125. package/dist/{vue-ui-sparkstackbar-Brj7BhAd.js → vue-ui-sparkstackbar-CVx0Bd7_.js} +2 -2
  126. package/dist/{vue-ui-stackbar-kjSw0T8F.js → vue-ui-stackbar-DiIJJhri.js} +2 -2
  127. package/dist/{vue-ui-stackline-CrqwQ36B.js → vue-ui-stackline-C9EzEmfc.js} +2 -2
  128. package/dist/{vue-ui-strip-plot-_4c_67kv.js → vue-ui-strip-plot-jMZRbtW9.js} +2 -2
  129. package/dist/{vue-ui-table-BciCGbmw.js → vue-ui-table-BQu89RtZ.js} +3 -3
  130. package/dist/{vue-ui-table-heatmap-CfGJVzI3.js → vue-ui-table-heatmap-BUtctJvL.js} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BMLytim1.js → vue-ui-table-sparkline-glnC8X0z.js} +2 -2
  132. package/dist/{vue-ui-thermometer-F2UAOuyi.js → vue-ui-thermometer-DtRXXI_M.js} +2 -2
  133. package/dist/{vue-ui-timer-Cp5worjZ.js → vue-ui-timer-PNQOfSZO.js} +2 -2
  134. package/dist/{vue-ui-tiremarks-B82wo09u.js → vue-ui-tiremarks-BiUnlf_f.js} +2 -2
  135. package/dist/{vue-ui-treemap-C1jyeafE.js → vue-ui-treemap-Dz8-KYZ-.js} +2 -2
  136. package/dist/{vue-ui-waffle-Cc261FVZ.js → vue-ui-waffle-CGNSkRrU.js} +2 -2
  137. package/dist/{vue-ui-wheel-CSRn0Xrh.js → vue-ui-wheel-B58ts6kX.js} +2 -2
  138. package/dist/{vue-ui-word-cloud-Bdqfb9BC.js → vue-ui-word-cloud-DXx7rzvb.js} +2 -2
  139. package/dist/{vue-ui-world-CtW4GPlU.js → vue-ui-world-DMNizkIB.js} +2 -2
  140. package/dist/{vue-ui-xy-BnpMEtr8.js → vue-ui-xy-BnRvI9E8.js} +86 -62
  141. package/dist/{vue-ui-xy-canvas-DF3izGyG.js → vue-ui-xy-canvas-CO5nY0eA.js} +2 -2
  142. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
2
  import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
3
3
  import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as je } from "./useConfig-BV0kTCnO.js";
4
+ import { t as je } from "./useConfig-Bc9KHPF4.js";
5
5
  import { t as Me } from "./usePrinter-X0yWOynH.js";
6
6
  import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
7
  import { t as Fe } from "./useSvgExport-Dtu973wa.js";
@@ -15,7 +15,7 @@ import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
15
  import { t as Ue } from "./Shape-DEGOZ6GG.js";
16
16
  import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
17
  import { t as Ge } from "./SlicerPreview-7pKvVSTr.js";
18
- import { t as Ke } from "./vue-ui-accordion-cVv18nTV.js";
18
+ import { t as Ke } from "./vue-ui-accordion-DX5HeXF5.js";
19
19
  import { t as qe } from "./BaseLegendToggle-DUIqQmwM.js";
20
20
  import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
21
  import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as at, onMounted as ot, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as st, shallowRef as ct, toDisplayString as lt, toRefs as ut, unref as M, useSlots as dt, vModelCheckbox as ft, watch as pt, watchEffect as mt, withCtx as N, withDirectives as ht } from "vue";
@@ -455,7 +455,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
455
455
  "copyAlt"
456
456
  ],
457
457
  setup(e, { expose: We, emit: gt }) {
458
- let P = e, ei = et(() => import("./DataTable-BvDJEAma.js")), ti = et(() => import("./Tooltip-B7lmdbac.js")), ni = et(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), ri = et(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ii = et(() => import("./vue-ui-table-sparkline-BMLytim1.js").then((e) => e.n)), ai = et(() => import("./PackageVersion-JKSxFXYH.js").then((e) => e.t)), oi = et(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), si = et(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), ci = gt, li = dt(), ui = tt(), { vue_ui_xy: di } = je(), { isThemeValid: fi, warnInvalidTheme: pi } = Le(), mi = k(null), hi = k(null), gi = k(null), _i = k(null), vi = k(null), yi = k(null), bi = k(null), xi = k(null), Si = k(null), Ci = k(null), wi = k(null), Ti = k(null), Ei = k(null), Di = k(null), Oi = k(0), F = k(null), ki = k(!0), Ai = k(600), I = k(1e3), ji = k("0 0 1000 600"), Mi = k({
458
+ let P = e, ei = et(() => import("./DataTable-BvDJEAma.js")), ti = et(() => import("./Tooltip-B7lmdbac.js")), ni = et(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), ri = et(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ii = et(() => import("./vue-ui-table-sparkline-glnC8X0z.js").then((e) => e.n)), ai = et(() => import("./PackageVersion-sdNn_SJC.js").then((e) => e.t)), oi = et(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), si = et(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), ci = gt, li = dt(), ui = tt(), { vue_ui_xy: di } = je(), { isThemeValid: fi, warnInvalidTheme: pi } = Le(), mi = k(null), hi = k(null), gi = k(null), _i = k(null), vi = k(null), yi = k(null), bi = k(null), xi = k(null), Si = k(null), Ci = k(null), wi = k(null), Ti = k(null), Ei = k(null), Di = k(null), Oi = k(0), F = k(null), ki = k(!0), Ai = k(600), I = k(1e3), ji = k("0 0 1000 600"), Mi = k({
459
459
  x: 0,
460
460
  y: 0
461
461
  }), Ni = k({
@@ -672,13 +672,13 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
672
672
  ],
673
673
  type: "bar",
674
674
  color: "#CACACA"
675
- }]), { loading: G, FINAL_DATASET: xa, manualLoading: Sa } = Ne({
675
+ }]), { loading: xa, FINAL_DATASET: Sa, manualLoading: Ca } = Ne({
676
676
  ...ut(P),
677
677
  FINAL_CONFIG: U,
678
678
  prepareConfig: pa,
679
679
  callback: () => {
680
680
  Promise.resolve().then(async () => {
681
- await jo(), W.value.showTable = U.value.showTable;
681
+ (!U.value.chart.zoom.keepState || !Do.value || K.value.start === 0 && K.value.end === 0) && await jo(), W.value.showTable = U.value.showTable;
682
682
  });
683
683
  },
684
684
  skeletonDataset: ba.value,
@@ -687,7 +687,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
687
687
  userConfig: ya.value
688
688
  })
689
689
  });
690
- function Ca(e) {
690
+ function wa(e) {
691
691
  let t = /* @__PURE__ */ new WeakMap();
692
692
  return (n, ...r) => {
693
693
  let i = t.get(n), a = JSON.stringify(r);
@@ -696,24 +696,24 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
696
696
  return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
697
697
  };
698
698
  }
699
- let wa = Ca((e, t) => ce({
699
+ let Ta = wa((e, t) => ce({
700
700
  data: e,
701
701
  threshold: t
702
- })), Ta = (e) => wa(e, U.value.downsample.threshold), Ea = x({
703
- get: () => Math.max(...xa.value.map((e) => Ta(e.series).length)),
702
+ })), Ea = (e) => Ta(e, U.value.downsample.threshold), G = x({
703
+ get: () => Math.max(...Sa.value.map((e) => Ea(e.series).length)),
704
704
  set: (e) => e
705
705
  }), K = k({
706
706
  start: 0,
707
- end: Ea.value
707
+ end: G.value
708
708
  }), Da = k({
709
709
  start: 0,
710
- end: Ea.value
710
+ end: G.value
711
711
  }), Oa = x(() => U.value.chart.zoom.preview.enable && (Da.value.start !== K.value.start || Da.value.end !== K.value.end));
712
712
  function ka(e, t) {
713
713
  Da.value[e] = t;
714
714
  }
715
715
  function Aa() {
716
- let e = Math.max(1, ...xa.value.map((e) => Ta(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
716
+ let e = Math.max(1, ...Sa.value.map((e) => Ea(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
717
717
  (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
718
718
  start: t,
719
719
  end: n
@@ -794,8 +794,8 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
794
794
  }
795
795
  let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
796
796
  return Ua(e < n ? e : n, t > r ? t : r).max;
797
- }), Ka = x(() => U.value.chart.grid.labels.yAxis.useNiceScale ? de(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = x(() => [null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) ? Ka.value.min >= 0 ? 0 : Math.abs(Ka.value.min) : -Ka.value.min), Ja = x(() => ki.value ? xa.value.map((e, t) => {
798
- let n = Ta(e.series), r = `uniqueId_${t}`;
797
+ }), Ka = x(() => U.value.chart.grid.labels.yAxis.useNiceScale ? de(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = x(() => [null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) ? Ka.value.min >= 0 ? 0 : Math.abs(Ka.value.min) : -Ka.value.min), Ja = x(() => ki.value ? Sa.value.map((e, t) => {
798
+ let n = Ea(e.series), r = `uniqueId_${t}`;
799
799
  return {
800
800
  ...e,
801
801
  slotAbsoluteIndex: t,
@@ -804,7 +804,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
804
804
  id: r,
805
805
  scaleLabel: e.scaleLabel || r
806
806
  };
807
- }) : xa.value), Ya = x(() => Ja.value.map((e, t) => ({
807
+ }) : Sa.value), Ya = x(() => Ja.value.map((e, t) => ({
808
808
  absoluteIndex: t,
809
809
  ...e,
810
810
  series: e.series.map((e) => e + qa.value),
@@ -847,10 +847,10 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
847
847
  e = 0;
848
848
  }
849
849
  return e + $a.value + H.value.xAxis;
850
- }), ro = x(() => xa.value.some((e) => e.useProgression)), q = x(() => {
850
+ }), ro = x(() => Sa.value.some((e) => e.useProgression)), q = x(() => {
851
851
  na.value;
852
852
  let e = 0;
853
- U.value.chart.grid.labels.show && (e = W.value.useIndividualScale && !W.value.isStacked ? (xa.value.length - L.value.length) * (U.value.chart.grid.labels.yAxis.labelWidth + 36) : W.value.useIndividualScale && W.value.isStacked ? U.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
853
+ U.value.chart.grid.labels.show && (e = W.value.useIndividualScale && !W.value.isStacked ? (Sa.value.length - L.value.length) * (U.value.chart.grid.labels.yAxis.labelWidth + 36) : W.value.useIndividualScale && W.value.isStacked ? U.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
854
854
  let t = U.value.chart.labels.fontSize * 1.1, n = ro.value ? 24 : 6;
855
855
  Ci.value && eo.value < 0 && (e += Math.abs(eo.value));
856
856
  let r = I.value - e - U.value.chart.grid.labels.yAxis.crosshairSize - n - U.value.chart.padding?.left - U.value.chart.padding?.right, i = U.value.chart.grid.position === "middle" ? 0 : r / Y.value / 2;
@@ -903,7 +903,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
903
903
  mt(() => {
904
904
  let e = ++ho;
905
905
  (async () => {
906
- let t = Math.max(...xa.value.map((e) => ce({
906
+ let t = Math.max(...Sa.value.map((e) => ce({
907
907
  data: e.series,
908
908
  threshold: U.value.downsample.threshold
909
909
  }).length)), n = await Ae({
@@ -920,7 +920,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
920
920
  mt(() => {
921
921
  let e = ++go;
922
922
  (async () => {
923
- let t = Math.max(...xa.value.map((e) => ce({
923
+ let t = Math.max(...Sa.value.map((e) => ce({
924
924
  data: e.series,
925
925
  threshold: U.value.downsample.threshold
926
926
  }).length)), n = await Ae({
@@ -928,7 +928,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
928
928
  maxDatapoints: t,
929
929
  formatter: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
930
930
  start: 0,
931
- end: Ea.value
931
+ end: G.value
932
932
  });
933
933
  e === go && (mo.value = n);
934
934
  })();
@@ -992,7 +992,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
992
992
  return r;
993
993
  }
994
994
  function To(e) {
995
- let t = Math.max(...xa.value.map((e) => Ta(e.series).length));
995
+ let t = Math.max(...Sa.value.map((e) => Ea(e.series).length));
996
996
  return e > t ? t : e < 0 || U.value.chart.zoom.startIndex !== null && e < U.value.chart.zoom.startIndex ? U.value.chart.zoom.startIndex === null ? 1 : U.value.chart.zoom.startIndex + 1 : e;
997
997
  }
998
998
  let Eo = k(!1), Do = k(!1), Oo = k(0), ko = k(0);
@@ -1004,7 +1004,8 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
1004
1004
  if (!Eo.value) {
1005
1005
  Eo.value = !0;
1006
1006
  try {
1007
- let { startIndex: e, endIndex: t } = U.value.chart.zoom, n = Math.max(...xa.value.map((e) => Ta(e.series).length));
1007
+ let { startIndex: e, endIndex: t } = U.value.chart.zoom, n = U.value.chart.zoom.keepState ? Math.max(0, ...Sa.value.map((e) => Ea(e.series).length)) : Math.max(...Sa.value.map((e) => Ea(e.series).length));
1008
+ if (U.value.chart.zoom.keepState && n <= 0) return;
1008
1009
  Oo.value = 0, ko.value = n;
1009
1010
  let r = e ?? 0, i = t == null ? n : Math.min(To(t + 1), n);
1010
1011
  Mo.value = !0, K.value.start = r, K.value.end = i, Da.value.start = r, Da.value.end = i, Aa(), Do.value = !0;
@@ -1231,7 +1232,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
1231
1232
  }
1232
1233
  let ss = x(() => `${U.value.chart.title.text || "Chart visualization"}. ${U.value.chart.title.subtitle.text || ""}`), cs = x(() => ({ linePlot: Y.value > U.value.line.dot.hideAboveMaxSerieLength })), ls = x(() => U.value.chart.userOptions.show && (!U.value.chart.title.show || !U.value.chart.title.text)), us = x(() => {
1233
1234
  if (Array.isArray(U.value.chart.highlightArea)) return U.value.chart.highlightArea.map((e) => {
1234
- let t = Math.min(e.to, Ea.value - 1);
1235
+ let t = Math.min(e.to, G.value - 1);
1235
1236
  return {
1236
1237
  ...e,
1237
1238
  span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
@@ -1239,18 +1240,18 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
1239
1240
  });
1240
1241
  let e = {
1241
1242
  ...U.value.chart.highlightArea,
1242
- to: Math.min(U.value.chart.highlightArea.to, Ea.value - 1)
1243
+ to: Math.min(U.value.chart.highlightArea.to, G.value - 1)
1243
1244
  };
1244
1245
  return [{
1245
1246
  ...e,
1246
1247
  span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1247
1248
  }];
1248
- }), ds = x(() => ki.value ? xa.value.map((e, t) => ({
1249
+ }), ds = x(() => ki.value ? Sa.value.map((e, t) => ({
1249
1250
  ...e,
1250
- series: Ta(e.series),
1251
+ series: Ea(e.series),
1251
1252
  id: `uniqueId_${t}`,
1252
1253
  color: Te(e.color ? e.color : La.value[t] ? La.value[t] : h[t])
1253
- })) : xa.value), fs = x(() => Xa.value.map((e) => {
1254
+ })) : Sa.value), fs = x(() => Xa.value.map((e) => {
1254
1255
  let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1255
1256
  return {
1256
1257
  id: e.id,
@@ -1525,9 +1526,14 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
1525
1526
  };
1526
1527
  });
1527
1528
  Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1528
- let Se = W.value.useIndividualScale ? e.autoScaling ? ce : se : za.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, q.value?.top), Se), Ee = e.autoScaling ? _ : g, De = U.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null);
1529
+ let Se = W.value.useIndividualScale ? e.autoScaling ? ce : se : za.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, q.value?.top), Se), Ee = e.autoScaling ? _ : g, De = U.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = e.absoluteValues.filter((e) => ![
1530
+ null,
1531
+ void 0,
1532
+ NaN
1533
+ ].includes(e)), ke = !!e.temperatureColors && new Set(Oe).size <= 1;
1529
1534
  return {
1530
1535
  ...e,
1536
+ isFlatTemperatureLine: ke,
1531
1537
  temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1532
1538
  yOffset: ae,
1533
1539
  autoScaleYLabels: xe,
@@ -2067,25 +2073,25 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2067
2073
  componentName: "VueUiXy",
2068
2074
  type: "dataset",
2069
2075
  debug: va.value
2070
- }), Sa.value = !0) : P.dataset.forEach((e, t) => {
2076
+ }), Ca.value = !0) : P.dataset.forEach((e, t) => {
2071
2077
  [null, void 0].includes(e.name) && (se({
2072
2078
  componentName: "VueUiXy",
2073
2079
  type: "datasetSerieAttribute",
2074
2080
  property: "name (string)",
2075
2081
  index: t,
2076
2082
  debug: va.value
2077
- }), Sa.value = !0);
2083
+ }), Ca.value = !0);
2078
2084
  }), va.value && P.dataset.forEach((e) => {
2079
2085
  e.series.forEach((t, n) => {
2080
2086
  _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2081
2087
  });
2082
- }), ae(P.dataset) || (Sa.value = U.value.loading), Ui.value = U.value.chart.userOptions.showOnChartHover, Wi.value = U.value.chart.userOptions.keepStateOnChartLeave, Gi.value = !U.value.chart.userOptions.showOnChartHover, _a(), U.value.responsive) {
2088
+ }), ae(P.dataset) || (Ca.value = U.value.loading), Ui.value = U.value.chart.userOptions.showOnChartHover, Wi.value = U.value.chart.userOptions.keepStateOnChartLeave, Gi.value = !U.value.chart.userOptions.showOnChartHover, _a(), U.value.responsive) {
2083
2089
  let e = mi.value.parentNode;
2084
2090
  Ei.value && (Ei.value.unobserve(Di.value), Ei.value.disconnect());
2085
2091
  let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2086
2092
  U.value.chart.title.show && hi.value && (r = hi.value, i = r.getBoundingClientRect().height);
2087
2093
  let a = null, o = 0;
2088
- U.value.chart.zoom.show && Ea.value > 6 && ha.value && gi.value && gi.value.$el && (a = gi.value.$el, o = a.getBoundingClientRect().height);
2094
+ U.value.chart.zoom.show && G.value > 6 && ha.value && gi.value && gi.value.$el && (a = gi.value.$el, o = a.getBoundingClientRect().height);
2089
2095
  let s = null, c = 0;
2090
2096
  U.value.chart.legend.show && _i.value && (s = _i.value, c = s.getBoundingClientRect().height);
2091
2097
  let l = 0;
@@ -2223,12 +2229,28 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2223
2229
  return U.value[t].labels.rotation === 0 ? "middle" : U.value[t].labels.alwaysOnTop || n ? "start" : "end";
2224
2230
  }
2225
2231
  pt(() => P.dataset, (e) => {
2226
- Array.isArray(e) && e.length > 0 && (Sa.value = !1), Ea.value = Math.max(...xa.value.map((e) => Ta(e.series).length)), K.value = {
2232
+ if (Array.isArray(e) && e.length > 0 && (Ca.value = !1), U.value.chart.zoom.keepState) {
2233
+ if (G.value = Math.max(0, ...Sa.value.map((e) => Ea(e.series).length)), G.value > 0) {
2234
+ let e = K.value.start, t = K.value.end;
2235
+ if (!Do.value || e === 0 && t === 0) jo();
2236
+ else {
2237
+ let n = Math.max(0, Math.min(e, G.value - 1)), r = Math.max(n + 1, Math.min(t, G.value));
2238
+ K.value = {
2239
+ start: n,
2240
+ end: r
2241
+ }, Da.value = {
2242
+ start: n,
2243
+ end: r
2244
+ }, Oo.value = 0, ko.value = G.value;
2245
+ }
2246
+ }
2247
+ } else G.value = Math.max(...Sa.value.map((e) => Ea(e.series).length)), K.value = {
2227
2248
  start: 0,
2228
- end: Ea.value
2229
- }, Oi.value += 1, Hi.value += 1, aa(), sa(), Aa();
2249
+ end: G.value
2250
+ };
2251
+ Oi.value += 1, Hi.value += 1, aa(), sa(), Aa();
2230
2252
  }, { deep: !0 }), pt(() => P.config, (e) => {
2231
- G.value || (U.value = pa()), Ks(), Bi.value += 1, zi.value += 1, _a(), aa(), sa(), Aa();
2253
+ xa.value || (U.value = pa()), Ks(), Bi.value += 1, zi.value += 1, _a(), aa(), sa(), U.value.chart.zoom.keepState && (G.value = Math.max(0, ...Sa.value.map((e) => Ea(e.series).length)), G.value > 0 && (!Do.value || K.value.start === 0 && K.value.end === 0) && jo()), Aa();
2232
2254
  }, { deep: !0 });
2233
2255
  let ac = k(!1);
2234
2256
  function oc() {
@@ -2243,7 +2265,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2243
2265
  ot(() => {
2244
2266
  oc();
2245
2267
  let e = new ResizeObserver(() => {
2246
- oc(), ac.value && (Ks(), Aa(), jo());
2268
+ oc(), ac.value && (Ks(), Aa(), U.value.chart.zoom.keepState || jo());
2247
2269
  });
2248
2270
  mi.value?.parentNode && e.observe(mi.value.parentNode);
2249
2271
  }), pt(U, () => {
@@ -2398,7 +2420,8 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2398
2420
  toggleTooltip: Us,
2399
2421
  toggleAnnotator: po,
2400
2422
  toggleFullscreen: Ws,
2401
- copyAlt: gc
2423
+ copyAlt: gc,
2424
+ resetZoom: Fo
2402
2425
  }), (r, i) => (O(), C("div", {
2403
2426
  id: `vue-ui-xy_${R.value}`,
2404
2427
  class: it(`vue-data-ui-component vue-ui-xy ${Fi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${U.value.useCssAnimation ? "" : "vue-ui-dna"}`),
@@ -2786,7 +2809,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2786
2809
  }, null, 8, Xt), w("stop", {
2787
2810
  offset: "100%",
2788
2811
  "stop-color": `${M(me)(e.color, U.value.line.area.opacity)}`
2789
- }, null, 8, Zt)], 8, Yt))]), e.temperatureColors ? (O(), C("defs", Qt, [w("linearGradient", {
2812
+ }, null, 8, Zt)], 8, Yt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (O(), C("defs", Qt, [w("linearGradient", {
2790
2813
  id: `temperature_grad_line_${n}_${R.value}`,
2791
2814
  gradientTransform: "rotate(90)"
2792
2815
  }, [(O(!0), C(b, null, A(e.temperatureColors, (r, i) => (O(), C("stop", {
@@ -2845,7 +2868,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2845
2868
  fill: U.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${R.value})` : `url(#rectGradient_neg_${t}_${R.value})` : e.color,
2846
2869
  stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
2847
2870
  "stroke-width": U.value.bar.border.strokeWidth,
2848
- style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2871
+ style: D({ transition: M(xa) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2849
2872
  }, null, 12, on)) : S("", !0),
2850
2873
  Io(n.value) && r.$slots.pattern ? (O(), C("rect", {
2851
2874
  key: 1,
@@ -2857,7 +2880,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
2857
2880
  fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
2858
2881
  stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
2859
2882
  "stroke-width": U.value.bar.border.strokeWidth,
2860
- style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2883
+ style: D({ transition: M(xa) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
2861
2884
  }, null, 12, sn)) : S("", !0),
2862
2885
  n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
2863
2886
  key: 2,
@@ -3009,7 +3032,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3009
3032
  radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.plot || 6) * 1.5 : fa.value.plot || 6,
3010
3033
  stroke: U.value.plot.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
3011
3034
  strokeWidth: U.value.plot.dot.strokeWidth,
3012
- transition: M(G) || !U.value.plot.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.plot.transitionDurationMs}ms ease-in-out`
3035
+ transition: M(xa) || !U.value.plot.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.plot.transitionDurationMs}ms ease-in-out`
3013
3036
  }, null, 8, [
3014
3037
  "shape",
3015
3038
  "color",
@@ -3042,7 +3065,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3042
3065
  "stroke-width": U.value.line.strokeWidth + 1,
3043
3066
  "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3044
3067
  fill: "none",
3045
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3068
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3046
3069
  }, null, 12, xn)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3047
3070
  key: 1,
3048
3071
  d: `M${e.straight}`,
@@ -3052,7 +3075,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3052
3075
  fill: "none",
3053
3076
  "stroke-linecap": "round",
3054
3077
  "stroke-linejoin": "round",
3055
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3078
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3056
3079
  }, null, 12, Sn)) : S("", !0)], 6))), 128)),
3057
3080
  r.$slots.pattern ? (O(), C("defs", Cn, [(O(!0), C(b, null, A(Ja.value, (e, t) => j(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3058
3081
  ...e,
@@ -3066,7 +3089,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3066
3089
  "fill-opacity": U.value.line.interLine.fillOpacity,
3067
3090
  stroke: "none",
3068
3091
  "pointer-events": "none",
3069
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3092
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3070
3093
  }, null, 12, Tn))), 128))])) : S("", !0),
3071
3094
  (O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
3072
3095
  key: `serie_line_above_${e.id}`,
@@ -3077,39 +3100,39 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3077
3100
  key: 0,
3078
3101
  d: n,
3079
3102
  fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
3080
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3103
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3081
3104
  }, null, 12, Dn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3082
3105
  key: 1,
3083
3106
  d: n,
3084
3107
  fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
3085
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3108
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3086
3109
  }, null, 12, On)) : S("", !0)], 64))), 128)) : (O(!0), C(b, { key: 1 }, A(e.area.split(";"), (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
3087
3110
  key: 0,
3088
3111
  d: `M${n}Z`,
3089
3112
  fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
3090
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3113
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3091
3114
  }, null, 12, kn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3092
3115
  key: 1,
3093
3116
  d: `M${n}Z`,
3094
3117
  fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
3095
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3118
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3096
3119
  }, null, 12, An)) : S("", !0)], 64))), 128))])) : S("", !0),
3097
3120
  !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
3098
3121
  key: 1,
3099
3122
  d: `M${e.curve}`,
3100
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3123
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3101
3124
  "stroke-width": U.value.line.strokeWidth,
3102
3125
  "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3103
3126
  fill: "none",
3104
3127
  "stroke-linecap": "round",
3105
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3128
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3106
3129
  }, null, 12, jn)) : e.hasDashedSegments ? (O(), C(b, { key: 2 }, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.dashedSmooth, (n) => (O(), C("path", {
3107
3130
  key: n.path,
3108
3131
  fill: "none",
3109
3132
  "stroke-linecap": "round",
3110
3133
  "stroke-linejoin": "round",
3111
3134
  d: `M ${n.path}`,
3112
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3135
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3113
3136
  "stroke-width": U.value.line.strokeWidth,
3114
3137
  "stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
3115
3138
  }, null, 8, Mn))), 128)) : (O(!0), C(b, { key: 1 }, A(e.dashedStraight, (n) => (O(), C("path", {
@@ -3118,19 +3141,19 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3118
3141
  "stroke-linecap": "round",
3119
3142
  "stroke-linejoin": "round",
3120
3143
  d: `M ${n.path}`,
3121
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3144
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3122
3145
  "stroke-width": U.value.line.strokeWidth,
3123
3146
  "stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
3124
3147
  }, null, 8, Nn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3125
3148
  key: 3,
3126
3149
  d: `M${e.straight}`,
3127
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3150
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
3128
3151
  "stroke-width": U.value.line.strokeWidth,
3129
3152
  "stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
3130
3153
  fill: "none",
3131
3154
  "stroke-linecap": "round",
3132
3155
  "stroke-linejoin": "round",
3133
- style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3156
+ style: D({ transition: M(xa) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
3134
3157
  }, null, 12, Pn)) : S("", !0),
3135
3158
  (O(!0), C(b, null, A(e.plots, (n, i) => (O(), C(b, { key: `circle_line_${t}_${i}` }, [!cs.value.linePlot && n && Io(n.value) || cs.value.linePlot && n && Io(n.value) && (V.value !== null && V.value === i || z.value !== null && z.value === i) || Ts(e.plots, i) ? (O(), Xe(Ue, {
3136
3159
  key: 0,
@@ -3150,7 +3173,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3150
3173
  radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.line || 6) * 1.5 : (Ts(e.plots, i), fa.value.line || 6),
3151
3174
  stroke: U.value.line.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
3152
3175
  strokeWidth: U.value.line.dot.strokeWidth,
3153
- transition: M(G) || !U.value.line.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out`
3176
+ transition: M(xa) || !U.value.line.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out`
3154
3177
  }, null, 8, [
3155
3178
  "shape",
3156
3179
  "color",
@@ -3625,6 +3648,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3625
3648
  }), null, 16, kr)) : S("", !0),
3626
3649
  j(r.$slots, "svg", { svg: {
3627
3650
  ...ca.value,
3651
+ slicer: K.value,
3628
3652
  isPrintingImg: M(Ma) || M(Na) || Xi.value,
3629
3653
  isPrintingSvg: Zi.value,
3630
3654
  data: [
@@ -3821,7 +3845,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3821
3845
  serieName: e.name
3822
3846
  })
3823
3847
  }, null, 8, Ur)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3824
- U.value.chart.zoom.show && Ea.value > 6 && ha.value && Do.value ? (O(), Xe(Ge, {
3848
+ U.value.chart.zoom.show && G.value > 6 && ha.value && Do.value ? (O(), Xe(Ge, {
3825
3849
  key: 6,
3826
3850
  ref_key: "chartSlicer",
3827
3851
  ref: gi,
@@ -3843,7 +3867,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3843
3867
  isPreview: Oa.value,
3844
3868
  labelLeft: J.value[0] ? J.value[0].text : "",
3845
3869
  labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
3846
- max: Ea.value,
3870
+ max: G.value,
3847
3871
  min: 0,
3848
3872
  minimap: bs.value,
3849
3873
  minimapCompact: U.value.chart.zoom.minimap.compact,
@@ -3856,7 +3880,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3856
3880
  minimapSelectedIndex: V.value,
3857
3881
  minimapSelectionRadius: U.value.chart.zoom.minimap.selectionRadius,
3858
3882
  preciseLabels: Fs.value.length ? Fs.value : mo.value,
3859
- refreshEndPoint: U.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ta(e.series).length)) : U.value.chart.zoom.endIndex + 1,
3883
+ refreshEndPoint: U.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ea(e.series).length)) : U.value.chart.zoom.endIndex + 1,
3860
3884
  refreshStartPoint: U.value.chart.zoom.startIndex === null ? 0 : U.value.chart.zoom.startIndex,
3861
3885
  selectColor: U.value.chart.zoom.highlightColor,
3862
3886
  selectedSeries: Ss.value,
@@ -3900,7 +3924,7 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
3900
3924
  key: 0,
3901
3925
  class: "vue-ui-xy-legend",
3902
3926
  style: D({ fontSize: `var(--legend-font-size, ${U.value.chart.legend.fontSize ?? 14}px)` })
3903
- }, [U.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !M(G) ? (O(), Xe(qe, {
3927
+ }, [U.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !M(xa) ? (O(), Xe(qe, {
3904
3928
  key: 0,
3905
3929
  backgroundColor: U.value.chart.legend.selectAllToggle.backgroundColor,
3906
3930
  color: U.value.chart.legend.selectAllToggle.color,
@@ -4106,9 +4130,9 @@ var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt =
4106
4130
  }, null, 8, ["stroke"])])]),
4107
4131
  key: "1"
4108
4132
  } : void 0]), 1040)) : S("", !0),
4109
- j(r.$slots, "skeleton", {}, () => [M(G) ? (O(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4133
+ j(r.$slots, "skeleton", {}, () => [M(xa) ? (O(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4110
4134
  ], 46, _t));
4111
4135
  }
4112
- }, [["__scopeId", "data-v-e28cb293"]]);
4136
+ }, [["__scopeId", "data-v-f407febd"]]);
4113
4137
  //#endregion
4114
4138
  export { gt as n, P as t };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
2
  import { G as t, H as n, J as r, Lt as i, S as a, St as o, Tt as s, X as c, _t as l, a as u, dt as ee, h as te, i as ne, jt as re, kt as ie, nt as ae, pt as oe, x as se, y as ce, yt as le, zt as ue } from "./lib-BkiwukKO.js";
3
3
  import { n as de, r as fe, t as pe } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as me } from "./useConfig-BV0kTCnO.js";
4
+ import { t as me } from "./useConfig-Bc9KHPF4.js";
5
5
  import { t as he } from "./usePrinter-X0yWOynH.js";
6
6
  import { n as ge, t as _e } from "./BaseScanner-C7dmAref.js";
7
7
  import { t as ve } from "./useNestedProp-Ck4hsrpu.js";
@@ -13,7 +13,7 @@ import { a as Ce, c as we, i as d, n as Te, o as Ee, r as De, s as f, t as Oe }
13
13
  import { t as ke } from "./useResponsive-CrAInupd.js";
14
14
  import { t as Ae } from "./BaseIcon-CEmt3Ifx.js";
15
15
  import { t as je } from "./SlicerPreview-7pKvVSTr.js";
16
- import { t as Me } from "./vue-ui-accordion-cVv18nTV.js";
16
+ import { t as Me } from "./vue-ui-accordion-DX5HeXF5.js";
17
17
  import { t as Ne } from "./BaseLegendToggle-DUIqQmwM.js";
18
18
  import { t as Pe } from "./useUserOptionState-CjPJPTg2.js";
19
19
  import { t as Fe } from "./useChartAccessibility-Do37qcw2.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.18.3",
4
+ "version": "3.18.5",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [