@hybridcore/ui 1.6.9 → 1.6.10

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 (46) hide show
  1. package/dist/{AnimatedTheme-BOKdw2Oy.js → AnimatedTheme-ktdO3Bel.js} +2 -2
  2. package/dist/{AxisRenderer-lUbezuh7.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-DbSiyb45.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-PgoNb3Jv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-XBf4Mwz-.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B8KQp1pE.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-BWRdiMpG.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DDmFoKtZ.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-rgnGm-Bg.js → ColumnSeries-CtRTsn-E.js} +4 -4
  10. package/dist/{DateAxis-zNtbSVjW.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-CCUIdRAr.js → Entity-BJCuhdq_.js} +62 -62
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-CCvGsF1A.js → Hierarchy-CEOK8Gzh.js} +8 -8
  14. package/dist/{Legend-kbCFjJAW.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-BLFvwrLT.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-C7rnipF7.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-3iLRbqFv.js → PieSeries-CMH0Z7pz.js} +6 -6
  18. package/dist/{RoundedRectangle-CqMMmPM0.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-BzSBcIUt.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CS23iLiS.js → Slice-BUncQh1B.js} +2 -2
  21. package/dist/{Tick-BADQ8QeT.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-A_HlttXp.js → Tooltip-vyZRZWih.js} +13 -13
  23. package/dist/{XYCursor-gHAo40xC.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-Brs1wHM1.js → ZoomableContainer-Ca_pDVYQ.js} +4 -4
  25. package/dist/components/charts/_common/tooltip.js +2 -2
  26. package/dist/components/charts/_common/utils.js +2 -2
  27. package/dist/components/charts/candlestick/logic.js +175 -173
  28. package/dist/components/charts/column-line-mix/logic.js +89 -83
  29. package/dist/components/charts/donut-chart/logic.js +4 -4
  30. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  31. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  32. package/dist/components/charts/heatmap/logic.js +9 -9
  33. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  34. package/dist/components/charts/line/logic.js +99 -86
  35. package/dist/components/charts/logaritmic-scale/logic.js +78 -72
  36. package/dist/components/charts/multiple-value-axes/logic.js +100 -95
  37. package/dist/components/charts/nested-pie/logic.js +3 -3
  38. package/dist/components/charts/packed-circles/logic.js +7 -7
  39. package/dist/components/charts/pie-chart/logic.js +4 -4
  40. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  41. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  42. package/dist/components/charts/xy-chart/logic.js +66 -64
  43. package/dist/components/metric-card/MetricChart.js +9 -9
  44. package/dist/main.d.ts +13 -0
  45. package/package.json +1 -1
  46. package/dist/DataProcessor-CvIe9BVn.js +0 -83
@@ -1,5 +1,5 @@
1
- import { K as dt, e as w, L as De, E as de, N as ve, u as ft, O as Ne, l as Tt, Q as he, R as oe, r as ce, G as kt, S as Ot, f as U, T as St, U as H, V as Pe, W as Te, X as Je, Y as Ct, Z as $e, $ as Mt, a0 as Bt, t as q, a1 as Qe, a2 as At, a3 as Ye, o as Me, j as Dt, a4 as Et, C, H as ie, a as D, b as E, c as ae, p as me, I as re, a5 as jt, a6 as ee, s as Be, d as Y, a7 as Rt, a8 as ke, a9 as Lt, M as et, aa as Ue, ab as bt, D as Xe, y as It, ac as Ge, J as qe, ad as Re, P as we, ae as zt, af as Ft, ag as Ht, ah as ne, A as Yt, ai as Ut, aj as se, k as Q, ak as Gt, z as be, al as tt, am as it, an as Wt, g as Oe, ao as Vt, ap as Nt, aq as rt, ar as Xt, _ as le, as as qt, at as Zt } from "./Entity-CCUIdRAr.js";
2
- import { l as J, b as Kt, o as gt, L as We, B as Jt, n as $t, g as Qt, D as _e, V as ei, H as ti, C as Z, R as ii, G as st, T as at, p as ri, e as si, j as pt } from "./Tooltip-A_HlttXp.js";
1
+ import { L as dt, e as w, N as De, E as de, O as ve, x as ft, Q as Ne, l as Tt, R as he, S as oe, r as ce, H as kt, T as Ot, f as U, U as St, V as H, W as Pe, X as Te, Y as Je, Z as Ct, $ as $e, a0 as Mt, a1 as Bt, w as q, a2 as Qe, a3 as At, a4 as Ye, o as Me, j as Dt, a5 as Et, C, I as ie, a as D, b as E, c as ae, p as me, J as re, a6 as jt, a7 as ee, s as Be, d as Y, a8 as Rt, a9 as ke, aa as Lt, M as et, ab as Ue, ac as bt, F as Xe, B as It, ad as Ge, K as qe, ae as Re, P as we, af as zt, ag as Ft, ah as Ht, ai as ne, z as Yt, aj as Ut, ak as se, k as Q, al as Gt, D as be, am as tt, an as it, ao as Wt, g as Oe, ap as Vt, aq as Nt, ar as rt, as as Xt, _ as le, at as qt, au as Zt } from "./Entity-BJCuhdq_.js";
2
+ import { l as J, b as Kt, o as gt, L as We, B as Jt, n as $t, g as Qt, D as _e, V as ei, H as ti, C as Z, R as ii, G as st, T as at, p as ri, e as si, j as pt } from "./Tooltip-vyZRZWih.js";
3
3
  class ai {
4
4
  constructor() {
5
5
  Object.defineProperty(this, "_observer", {
@@ -1,9 +1,9 @@
1
- import { T as ye, s as T, f as we, S as ge, D as Z, C as pe } from "./AnimatedTheme-BOKdw2Oy.js";
2
- import { C as Pe, b as k, a as G, f as v, y as ae, l as z, p as V, z as U, v as Ae, k as re, r as j, e as M, A as ne, B as oe, P as le, D as he, F as ue, w as ce, _ as B, m as F, h as Q, M as De, G as Me } from "./Entity-CCUIdRAr.js";
3
- import { C as de } from "./ColorSet-DDmFoKtZ.js";
4
- import { r as C, d as fe, C as Y, G as I, R as me, j as be, f as J, k as ke, L as _e, a as W, b as N } from "./Tooltip-A_HlttXp.js";
5
- import { S as xe, T as ve } from "./Tick-BADQ8QeT.js";
6
- import { B as Se } from "./Button-XBf4Mwz-.js";
1
+ import { T as ye, s as T, f as we, S as ge, D as Z, C as pe } from "./AnimatedTheme-ktdO3Bel.js";
2
+ import { C as Pe, b as k, a as G, f as v, B as ae, l as z, p as V, D as U, q as Ae, k as re, r as j, e as M, z as ne, A as oe, P as le, F as he, G as ue, t as ce, _ as B, m as F, h as Q, M as De, H as Me } from "./Entity-BJCuhdq_.js";
3
+ import { C as de } from "./ColorSet-cyPmWGwh.js";
4
+ import { r as C, d as fe, C as Y, G as I, R as me, j as be, f as J, k as ke, L as _e, a as W, b as N } from "./Tooltip-vyZRZWih.js";
5
+ import { S as xe, T as ve } from "./Tick--VhF0xlz.js";
6
+ import { B as Se } from "./Button-BLY4PVJC.js";
7
7
  class Te extends ye {
8
8
  setupDefaultRules() {
9
9
  super.setupDefaultRules();
@@ -1,6 +1,6 @@
1
- import { a as u } from "./AxisRenderer-lUbezuh7.js";
2
- import { b as d, m, w as T, f as o, x as _ } from "./Entity-CCUIdRAr.js";
3
- import { R as w } from "./Tooltip-A_HlttXp.js";
1
+ import { a as u } from "./AxisRenderer-BCQoUJw6.js";
2
+ import { b as d, m, t as T, f as o, u as _ } from "./Entity-BJCuhdq_.js";
3
+ import { R as w } from "./Tooltip-vyZRZWih.js";
4
4
  class c extends u {
5
5
  constructor() {
6
6
  super(...arguments), Object.defineProperty(this, "thumb", {
@@ -1,4 +1,4 @@
1
- import { E as r } from "./Entity-CCUIdRAr.js";
1
+ import { E as r } from "./Entity-BJCuhdq_.js";
2
2
  class t extends r {
3
3
  constructor() {
4
4
  super(...arguments), Object.defineProperty(this, "_index", {
@@ -1,6 +1,6 @@
1
- import { R as a } from "./RoundedRectangle-CqMMmPM0.js";
2
- import { C as r } from "./Tooltip-A_HlttXp.js";
3
- import { m as i } from "./Entity-CCUIdRAr.js";
1
+ import { R as a } from "./RoundedRectangle-BKLX1LKM.js";
2
+ import { C as r } from "./Tooltip-vyZRZWih.js";
3
+ import { m as i } from "./Entity-BJCuhdq_.js";
4
4
  class s extends r {
5
5
  _afterNew() {
6
6
  this._settings.themeTags = i(this._settings.themeTags, ["button"]), super._afterNew(), this._settings.background || this.set("background", a.new(this._root, {
@@ -1,6 +1,6 @@
1
- import { A as S, V as L } from "./AxisRenderer-lUbezuh7.js";
2
- import { f as N, p as w } from "./Tooltip-A_HlttXp.js";
3
- import { m as R, e as P, f as T } from "./Entity-CCUIdRAr.js";
1
+ import { A as S, V as L } from "./AxisRenderer-BCQoUJw6.js";
2
+ import { f as N, p as w } from "./Tooltip-vyZRZWih.js";
3
+ import { m as R, e as P, f as T } from "./Entity-BJCuhdq_.js";
4
4
  class b extends S {
5
5
  constructor() {
6
6
  super(...arguments), Object.defineProperty(this, "_frequency", {
@@ -1,4 +1,4 @@
1
- import { G as r } from "./Tooltip-A_HlttXp.js";
1
+ import { G as r } from "./Tooltip-vyZRZWih.js";
2
2
  class e extends r {
3
3
  _afterNew() {
4
4
  super._afterNew(), this._display.isMeasured = !0, this.setPrivateRaw("trustBounds", !0);
@@ -1,4 +1,4 @@
1
- import { E as c, C as h } from "./Entity-CCUIdRAr.js";
1
+ import { E as c, C as h } from "./Entity-BJCuhdq_.js";
2
2
  class u extends c {
3
3
  //protected _currentPass: number = 0;
4
4
  _afterNew() {
@@ -1,7 +1,7 @@
1
- import { e as D, P as M, h as V, f as X, _ as E, m as U } from "./Entity-CCUIdRAr.js";
2
- import { b as J } from "./AxisRenderer-lUbezuh7.js";
3
- import { v as H, G as K, a as B, b as z } from "./Tooltip-A_HlttXp.js";
4
- import { R as q } from "./RoundedRectangle-CqMMmPM0.js";
1
+ import { e as D, P as M, h as V, f as X, _ as E, m as U } from "./Entity-BJCuhdq_.js";
2
+ import { b as J } from "./AxisRenderer-BCQoUJw6.js";
3
+ import { v as H, G as K, a as B, b as z } from "./Tooltip-vyZRZWih.js";
4
+ import { R as q } from "./RoundedRectangle-BKLX1LKM.js";
5
5
  class Y extends J {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "_ph", {
@@ -1,7 +1,7 @@
1
- import { g as U, c as X, a as Q, r as c, D as E, b as F, d as $, e as B } from "./AnimatedTheme-BOKdw2Oy.js";
2
- import { V as H } from "./AxisRenderer-lUbezuh7.js";
3
- import { m as tt, f as P, e as M, h as et, j as K, l as q, n as it, o as Z } from "./Entity-CCUIdRAr.js";
4
- import { f as at } from "./Tooltip-A_HlttXp.js";
1
+ import { g as U, c as X, a as Q, r as c, D as E, b as F, d as $, e as B } from "./AnimatedTheme-ktdO3Bel.js";
2
+ import { V as H } from "./AxisRenderer-BCQoUJw6.js";
3
+ import { m as tt, f as P, e as M, h as et, j as K, l as q, n as it, o as Z } from "./Entity-BJCuhdq_.js";
4
+ import { f as at } from "./Tooltip-vyZRZWih.js";
5
5
  class W extends H {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "_dataGrouped", {
@@ -2787,69 +2787,69 @@ Object.defineProperty(q, "classNames", {
2787
2787
  value: ["Entity"]
2788
2788
  });
2789
2789
  export {
2790
- yt as $,
2791
- ze as A,
2792
- It as B,
2790
+ N as $,
2791
+ It as A,
2792
+ $e as B,
2793
2793
  c as C,
2794
- P as D,
2794
+ te as D,
2795
2795
  q as E,
2796
- Ot as F,
2797
- pt as G,
2798
- Rt as H,
2799
- Te as I,
2800
- He as J,
2801
- et as K,
2802
- Ge as L,
2796
+ P as F,
2797
+ Ot as G,
2798
+ pt as H,
2799
+ Rt as I,
2800
+ Te as J,
2801
+ He as K,
2802
+ et as L,
2803
2803
  oe as M,
2804
- z as N,
2805
- gt as O,
2804
+ Ge as N,
2805
+ z as O,
2806
2806
  g as P,
2807
- Ne as Q,
2808
- Be as R,
2809
- Ce as S,
2810
- Et as T,
2811
- x as U,
2812
- Dt as V,
2813
- St as W,
2814
- wt as X,
2815
- Pt as Y,
2816
- N as Z,
2807
+ gt as Q,
2808
+ Ne as R,
2809
+ Be as S,
2810
+ Ce as T,
2811
+ Et as U,
2812
+ x as V,
2813
+ Dt as W,
2814
+ St as X,
2815
+ wt as Y,
2816
+ Pt as Z,
2817
2817
  J as _,
2818
2818
  Re as a,
2819
- Tt as a0,
2820
- bt as a1,
2821
- Je as a2,
2822
- Ue as a3,
2823
- Oe as a4,
2824
- Qe as a5,
2825
- w as a6,
2826
- F as a7,
2827
- at as a8,
2828
- Xe as a9,
2819
+ yt as a0,
2820
+ Tt as a1,
2821
+ bt as a2,
2822
+ Je as a3,
2823
+ Ue as a4,
2824
+ Oe as a5,
2825
+ Qe as a6,
2826
+ w as a7,
2827
+ F as a8,
2828
+ at as a9,
2829
2829
  Le as aA,
2830
2830
  k as aB,
2831
2831
  _t as aC,
2832
- rt as aa,
2833
- ot as ab,
2834
- Ye as ac,
2835
- K as ad,
2836
- vt as ae,
2837
- ut as af,
2838
- $ as ag,
2839
- ht as ah,
2840
- V as ai,
2841
- A as aj,
2842
- ke as ak,
2843
- mt as al,
2844
- Ie as am,
2845
- ft as an,
2846
- it as ao,
2847
- st as ap,
2848
- T as aq,
2849
- Ae as ar,
2850
- re as as,
2851
- we as at,
2852
- We as au,
2832
+ Xe as aa,
2833
+ rt as ab,
2834
+ ot as ac,
2835
+ Ye as ad,
2836
+ K as ae,
2837
+ vt as af,
2838
+ ut as ag,
2839
+ $ as ah,
2840
+ ht as ai,
2841
+ V as aj,
2842
+ A as ak,
2843
+ ke as al,
2844
+ mt as am,
2845
+ Ie as an,
2846
+ ft as ao,
2847
+ it as ap,
2848
+ st as aq,
2849
+ T as ar,
2850
+ Ae as as,
2851
+ re as at,
2852
+ we as au,
2853
2853
  ie as av,
2854
2854
  O as aw,
2855
2855
  tt as ax,
@@ -2870,14 +2870,14 @@ export {
2870
2870
  ae as n,
2871
2871
  R as o,
2872
2872
  I as p,
2873
- Ke as q,
2873
+ lt as q,
2874
2874
  p as r,
2875
2875
  j as s,
2876
- X as t,
2877
- Me as u,
2878
- lt as v,
2879
- dt as w,
2880
- xt as x,
2881
- $e as y,
2882
- te as z
2876
+ dt as t,
2877
+ xt as u,
2878
+ Ke as v,
2879
+ X as w,
2880
+ Me as x,
2881
+ We as y,
2882
+ ze as z
2883
2883
  };
@@ -0,0 +1,376 @@
1
+ import { E as se, e as D, v as ae, r as re, w as ne, C as oe, x as le, j as T, o as E, y as he, f as M, z as B, A as ce } from "./Entity-BJCuhdq_.js";
2
+ import { D as J } from "./DateAxis-DEXKps1S.js";
3
+ import { b as k, r as x, c as ue, g as S, D as H, d as me, a as de } from "./AnimatedTheme-ktdO3Bel.js";
4
+ import { f as W } from "./Tooltip-vyZRZWih.js";
5
+ class De extends se {
6
+ constructor() {
7
+ super(...arguments), Object.defineProperty(this, "_checkDates", {
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0,
11
+ value: !1
12
+ }), Object.defineProperty(this, "_checkNumbers", {
13
+ enumerable: !0,
14
+ configurable: !0,
15
+ writable: !0,
16
+ value: !1
17
+ }), Object.defineProperty(this, "_checkColors", {
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0,
21
+ value: !1
22
+ }), Object.defineProperty(this, "_checkEmpty", {
23
+ enumerable: !0,
24
+ configurable: !0,
25
+ writable: !0,
26
+ value: !1
27
+ }), Object.defineProperty(this, "_checkDeep", {
28
+ enumerable: !0,
29
+ configurable: !0,
30
+ writable: !0,
31
+ value: !1
32
+ });
33
+ }
34
+ _afterNew() {
35
+ super._afterNew(), this._checkFeatures(), this.on("dateFields", () => this._checkFeatures()), this.on("dateFormat", () => this._checkFeatures()), this.on("numericFields", () => this._checkFeatures()), this.on("colorFields", () => this._checkFeatures()), this.on("emptyAs", () => this._checkFeatures());
36
+ }
37
+ _checkFeatures() {
38
+ (this.isDirty("dateFields") || this.isDirty("dateFormat")) && (this._checkDates = this.get("dateFields") && this.get("dateFields").length > 0), this.isDirty("numericFields") && (this._checkNumbers = this.get("numericFields") && this.get("numericFields").length > 0), this.isDirty("colorFields") && (this._checkColors = this.get("colorFields") && this.get("colorFields").length > 0), this.isDirty("emptyAs") && (this._checkEmpty = this.get("emptyAs") != null), this._checkDeepFeatures();
39
+ }
40
+ _checkDeepFeatures() {
41
+ const e = [];
42
+ D(["dateFields", "numericFields", "colorFields"], (t) => {
43
+ D(this.get(t, []), (i) => {
44
+ const a = i.split(".");
45
+ for (a.pop(); a.length > 0; )
46
+ e.push(a.join(".")), a.pop();
47
+ });
48
+ }), this._checkDeep = e.length > 0, this.setPrivate("deepFields", e);
49
+ }
50
+ /**
51
+ * Processess entire array of data.
52
+ *
53
+ * NOTE: calling this will modify original array!
54
+ */
55
+ processMany(e) {
56
+ ae(e) && (this._checkDates || this._checkNumbers || this._checkColors || this._checkEmpty) && D(e, (t) => {
57
+ this.processRow(t);
58
+ });
59
+ }
60
+ /**
61
+ * Processes a row (object) of data.
62
+ *
63
+ * NOTE: calling this will modify values of the original object!
64
+ */
65
+ processRow(e, t = "") {
66
+ re(e, (i, a) => {
67
+ const n = t + i;
68
+ this._checkEmpty && (e[i] = this._maybeToEmpty(e[i])), this._checkNumbers && (e[i] = this._maybeToNumber(n, e[i])), this._checkDates && (e[i] = this._maybeToDate(n, e[i])), this._checkColors && (e[i] = this._maybeToColor(n, e[i])), this._checkDeep && this.getPrivate("deepFields", []).indexOf(n) !== -1 && le(e[i]) && this.processRow(e[i], n + ".");
69
+ });
70
+ }
71
+ _maybeToNumber(e, t) {
72
+ return this.get("numericFields").indexOf(e) !== -1 ? ne(t) : t;
73
+ }
74
+ _maybeToDate(e, t) {
75
+ return this.get("dateFields").indexOf(e) !== -1 ? this._root.dateFormatter.parse(t, this.get("dateFormat", "")).getTime() : t;
76
+ }
77
+ _maybeToEmpty(e) {
78
+ return (e == null || e == "") && this.get("emptyAs") != null ? this.get("emptyAs") : e;
79
+ }
80
+ _maybeToColor(e, t) {
81
+ return this.get("colorFields").indexOf(e) !== -1 ? oe.fromAny(t) : t;
82
+ }
83
+ }
84
+ class Z extends J {
85
+ constructor() {
86
+ super(...arguments), Object.defineProperty(this, "_frequency", {
87
+ enumerable: !0,
88
+ configurable: !0,
89
+ writable: !0,
90
+ value: 1
91
+ }), Object.defineProperty(this, "_m", {
92
+ enumerable: !0,
93
+ configurable: !0,
94
+ writable: !0,
95
+ value: 0
96
+ }), Object.defineProperty(this, "_dates", {
97
+ enumerable: !0,
98
+ configurable: !0,
99
+ writable: !0,
100
+ value: []
101
+ }), Object.defineProperty(this, "_customDates", {
102
+ enumerable: !0,
103
+ configurable: !0,
104
+ writable: !0,
105
+ value: void 0
106
+ });
107
+ }
108
+ _afterNew() {
109
+ this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
110
+ }
111
+ _getDates() {
112
+ return this._customDates ? this._customDates : this._dates;
113
+ }
114
+ _updateDates(e, t) {
115
+ if (!t.get("ignoreMinMax")) {
116
+ const i = this._getDates(), a = T(i, (n) => E(n, e));
117
+ a.found || he(i, a.index, e);
118
+ }
119
+ }
120
+ _updateAllDates() {
121
+ if (!this._customDates) {
122
+ const e = this._dates;
123
+ e.length = 0, D(this.series, (h) => {
124
+ let o = "valueX";
125
+ h.get("yAxis") == this && (o = "valueY"), D(h.dataItems, (l) => {
126
+ let m = l.get(o);
127
+ M(m) && l.open && this._updateDates(l.open[o], h);
128
+ });
129
+ });
130
+ const t = this.get("extraMax", 0), i = this.get("extraMin", 0);
131
+ let a = e.length;
132
+ const n = this.getPrivate("baseInterval"), r = n.count, s = n.timeUnit;
133
+ if (t > 0) {
134
+ const h = a * t;
135
+ let o = e[a - 1];
136
+ if (M(o))
137
+ for (let l = a - 1; l < a + h; l++)
138
+ o += k(s, r * this._getM(s)), o = x(o, s, r, this._root), e.push(o);
139
+ }
140
+ if (i > 0) {
141
+ const h = a * i;
142
+ let o = e[0];
143
+ if (M(o))
144
+ for (let l = 0; l < h; l++)
145
+ o -= k(s, r), o = x(o, s, r, this._root), e.unshift(o);
146
+ }
147
+ }
148
+ }
149
+ /**
150
+ * Convers value to a relative position on axis.
151
+ *
152
+ * @param value Value
153
+ * @return Relative position
154
+ */
155
+ valueToPosition(e) {
156
+ const t = this._getDates(), i = this.get("startLocation", 0), a = this.get("endLocation", 1), n = t.length - i - (1 - a), r = T(t, (h) => E(h, e));
157
+ let s = r.index;
158
+ if (r.found)
159
+ return (s - i) / n;
160
+ {
161
+ s > 0 && (s -= 1);
162
+ let h = t[s];
163
+ const o = t[s + 1];
164
+ if (o) {
165
+ let m = o;
166
+ Math.abs(m - e) < Math.abs(h - e) && (h = m, s++);
167
+ }
168
+ let l = e - h;
169
+ return (s - i) / n + l / this.baseDuration() / n;
170
+ }
171
+ }
172
+ /**
173
+ * Converts numeric value from axis scale to index.
174
+ *
175
+ * @param value Value
176
+ * @return Index
177
+ */
178
+ valueToIndex(e) {
179
+ const t = this._getDates(), i = T(t, (n) => E(n, e));
180
+ let a = i.index;
181
+ return i.found || a > 0 && (a -= 1), a;
182
+ }
183
+ /**
184
+ * Converts a relative position to a corresponding numeric value from axis
185
+ * scale.
186
+ *
187
+ * @param position Relative position
188
+ * @return Value
189
+ */
190
+ positionToValue(e) {
191
+ const t = this.get("startLocation", 0), i = this.get("endLocation", 1), a = this._getDates();
192
+ let n = Math.round(a.length - t - (1 - i)), r = e * n, s = Math.floor(r);
193
+ return s < 0 && (s = 0), s > n - 1 && (s = n - 1), a[s] + (r - s + t) * this.baseDuration();
194
+ }
195
+ _fixZoomFactor() {
196
+ this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
197
+ }
198
+ /**
199
+ * Zooms the axis to specific `start` and `end` dates.
200
+ *
201
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
202
+ *
203
+ * @param start Start Date
204
+ * @param end End Date
205
+ * @param duration Duration in milliseconds
206
+ */
207
+ zoomToDates(e, t, i) {
208
+ const a = this._getDates(), n = a.length;
209
+ let r = T(a, (o) => E(o, e.getTime())), s = a[Math.min(r.index, n - 1)];
210
+ r = T(a, (o) => E(o, t.getTime()));
211
+ let h = a[r.index];
212
+ r.index >= n && (h = a[n - 1] + this.baseDuration()), this.zoomToValues(s, h, i);
213
+ }
214
+ /**
215
+ * Zooms the axis to specific `start` and `end` values.
216
+ *
217
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
218
+ *
219
+ * @param start Start value
220
+ * @param end End value
221
+ * @param duration Duration in milliseconds
222
+ */
223
+ zoomToValues(e, t, i) {
224
+ const a = this.getPrivate("min", 0), n = this.getPrivate("max", 0);
225
+ e = W(e, a, n), t = W(t, a, n), this.zoom(this.valueToPosition(e), this.valueToPosition(t), i);
226
+ }
227
+ _prepareAxisItems() {
228
+ let e = this.getPrivate("selectionMin", 0), t = this.getPrivate("selectionMax", 0);
229
+ if (M(e) && M(t)) {
230
+ this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
231
+ const i = this._root, a = i.utc, n = i.timezone, r = this._getDates(), s = this.get("renderer"), h = r.length, o = this.baseDuration();
232
+ let l = this.valueToIndex(e);
233
+ l > 0 && l--;
234
+ let m = this.valueToIndex(t);
235
+ m < h - 1 && m++;
236
+ let c = s.axisLength() / Math.max(s.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), f = Math.min(h, Math.ceil((m - l) / c));
237
+ f = Math.max(1, f), l = Math.floor(l / f) * f, this._frequency = f, D(this.dataItems, (_) => {
238
+ this._toggleDataItem(_, !1);
239
+ }), D(this.minorDataItems, (_) => {
240
+ this._toggleDataItem(_, !1);
241
+ });
242
+ let F = t - e - ((t - e) / o - (m - l)) * o, u = ue(0, F, c, this.get("gridIntervals"));
243
+ const G = this.getPrivate("baseInterval");
244
+ let g = S(u);
245
+ g < o && (u = Object.assign({}, G), g = S(u)), this._intervalDuration = g;
246
+ const b = u.timeUnit, y = this.get("dateFormats");
247
+ let N = Date.now();
248
+ r[0] && (N = r[0]);
249
+ let O = x(this.getPrivate("selectionMin", 0), b, u.count, i, N);
250
+ const ee = s.get("minorLabelsEnabled"), K = s.get("minorGridEnabled", ee);
251
+ let w, U = 0, L;
252
+ K && (w = this._getMinorInterval(u), U = S(w));
253
+ let V = this._getIndexes(O, this.getPrivate("selectionMax", O) + g, u, this.getPrivate("min", O));
254
+ if (V.length > 0) {
255
+ let _ = 0;
256
+ this._m = 0;
257
+ let z = O - g * 10;
258
+ const Y = de(b);
259
+ if (w) {
260
+ let j = r[V[0]];
261
+ this._addMinorGrid(j - g, j, U, w);
262
+ }
263
+ let te = s.axisLength() / s.gridCount() * 0.5;
264
+ D(V, (j) => {
265
+ var X;
266
+ let d;
267
+ this.dataItems.length < _ + 1 ? (d = new H(this, void 0, {}), this._dataItems.push(d), this.processDataItem(d)) : d = this.dataItems[_];
268
+ let p = r[j], ie = new Date(p), R = p;
269
+ _ < V.length - 1 ? R = r[V[_ + 1]] : R += g, d.setRaw("value", p), d.setRaw("endValue", R), d.setRaw("index", _), d.setRaw("labelEndValue", void 0);
270
+ let $ = y[b];
271
+ Y && this.get("markUnitChange") && M(z) && b != "year" && me(p, z, Y, a, n) && ($ = this.get("periodChangeDateFormats")[b]), this._createAssets(d, []);
272
+ const P = d.get("label");
273
+ P && P.set("text", i.dateFormatter.format(ie, $)), this._toggleDataItem(d, !0);
274
+ let q = u.count;
275
+ if (b == "week" && d.setRaw("labelEndValue", p), K) {
276
+ let v = u.timeUnit;
277
+ if (v == "week" && (v = "day"), q > 1 || u.timeUnit == "week") {
278
+ let I = x(p, v, 1, i) + k(v, this._getM(v)), C = this.valueToIndex(I);
279
+ if (I = r[C], I == p) {
280
+ let A = r[C + 1];
281
+ A ? I = A : I += U;
282
+ }
283
+ d.setRaw("labelEndValue", I);
284
+ }
285
+ q = 1;
286
+ }
287
+ if (this._prepareDataItem(d, q), P && L && s.getPrivate("letter") == "X") {
288
+ let v = L.get("label");
289
+ if (v) {
290
+ let I = P.x(), C = v.x();
291
+ if (I - C < te) {
292
+ let A = this._pickWorse(L, d, u);
293
+ A && ((X = A.get("label")) === null || X === void 0 || X.setPrivate("visible", !1));
294
+ }
295
+ }
296
+ }
297
+ w && this._addMinorGrid(p, R, U, w), _++, P && P.getPrivate("visible") && (L = d), z = p;
298
+ });
299
+ }
300
+ D(this.series, (_) => {
301
+ _.inited && _._markDirtyAxes();
302
+ });
303
+ }
304
+ this._updateGhost();
305
+ }
306
+ _pickWorse(e, t, i) {
307
+ const a = i.timeUnit, n = e.get("value", 0), r = t.get("value", 0);
308
+ return a == "hour" && new Date(n).getDate() != new Date(r).getDate() ? e : t;
309
+ }
310
+ _addMinorGrid(e, t, i, a) {
311
+ const n = this.get("minorDateFormats", this.get("dateFormats")), r = a.timeUnit;
312
+ let s = e + k(r, this._getM(r));
313
+ s = x(s, r, 1, this._root);
314
+ let h = t - i * 0.5, o = this._getIndexes(s, h, a, s);
315
+ const l = this._getDates();
316
+ D(o, (m) => {
317
+ let c;
318
+ this.minorDataItems.length < this._m + 1 ? (c = new H(this, void 0, {}), this.minorDataItems.push(c), this.processDataItem(c)) : c = this.minorDataItems[this._m], s = l[m], c.setRaw("value", s), c.setRaw("endValue", s + i), c.setRaw("index", m), this._createAssets(c, ["minor"], !0);
319
+ const f = c.get("label");
320
+ if (f)
321
+ if (this.get("renderer").get("minorLabelsEnabled")) {
322
+ let F = new Date(s), u = n[r];
323
+ f.set("text", this._root.dateFormatter.format(F, u));
324
+ } else
325
+ f.setPrivate("visible", !1);
326
+ this._toggleDataItem(c, !0), this._prepareDataItem(c, 1), this._m++;
327
+ });
328
+ }
329
+ _getIndexes(e, t, i, a) {
330
+ const n = [], r = i.timeUnit, s = i.count, h = this._getM(r), o = this.getPrivate("baseInterval"), l = this._root, m = this._getDates();
331
+ let c = s - 1, f = -1 / 0, F = k(r, h), u = k(r, s * h), G = e;
332
+ for (r == "day" && (e = a); e <= t; ) {
333
+ e = x(e, r, s, l);
334
+ let g = this.valueToIndex(e), b = m[g];
335
+ if (r == "day" && o.timeUnit == "day")
336
+ this._hasDate(e) && c++, c == s && (e >= G - u * 2 && B(n, g), c = 0), e += F, e = x(e, r, 1, l);
337
+ else {
338
+ if (b < e) {
339
+ for (let y = g, N = m.length; y < N; y++)
340
+ if (b = m[y], b >= e) {
341
+ g = y;
342
+ break;
343
+ }
344
+ }
345
+ B(n, g), e += u, e = x(e, r, s, l);
346
+ }
347
+ if (e == f && (e += u + F, e = x(e, r, s, l)), e == f)
348
+ break;
349
+ f = e;
350
+ }
351
+ return n;
352
+ }
353
+ _hasDate(e) {
354
+ return T(this._getDates(), (i) => ce(i, e)).found;
355
+ }
356
+ _nextTime(e, t, i) {
357
+ let a = W(this.valueToIndex(e) + t, 0, this._dates.length - 1);
358
+ return this._dates[a];
359
+ }
360
+ }
361
+ Object.defineProperty(Z, "className", {
362
+ enumerable: !0,
363
+ configurable: !0,
364
+ writable: !0,
365
+ value: "GaplessDateAxis"
366
+ });
367
+ Object.defineProperty(Z, "classNames", {
368
+ enumerable: !0,
369
+ configurable: !0,
370
+ writable: !0,
371
+ value: J.classNames.concat([Z.className])
372
+ });
373
+ export {
374
+ De as D,
375
+ Z as G
376
+ };
@@ -1,7 +1,7 @@
1
- import { b as x, H as L, a as u, p as v, I as N, m as R, e as p, J as C, f, _ as A } from "./Entity-CCUIdRAr.js";
2
- import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-BOKdw2Oy.js";
3
- import { C as H } from "./ColorSet-DDmFoKtZ.js";
4
- import { C as _, a as T, b as O, L as j } from "./Tooltip-A_HlttXp.js";
1
+ import { b as x, I as L, a as u, p as v, J as N, m as R, e as p, K as C, f, _ as A } from "./Entity-BJCuhdq_.js";
2
+ import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-ktdO3Bel.js";
3
+ import { C as H } from "./ColorSet-cyPmWGwh.js";
4
+ import { C as _, a as T, b as O, L as j } from "./Tooltip-vyZRZWih.js";
5
5
  class I extends S {
6
6
  setupDefaultRules() {
7
7
  super.setupDefaultRules();
@@ -399,13 +399,13 @@ function F(a, e) {
399
399
  a.call(e, i, ++o, this);
400
400
  return this;
401
401
  }
402
- function Y(a, e) {
402
+ function K(a, e) {
403
403
  let i = -1;
404
404
  for (const t of this)
405
405
  if (a.call(e, t, ++i, this))
406
406
  return t;
407
407
  }
408
- function K(a) {
408
+ function Y(a) {
409
409
  return this.eachAfter(function(e) {
410
410
  for (var i = +a(e.data) || 0, t = e.children, s = t && t.length; --s >= 0; ) i += t[s].value;
411
411
  e.value = i;
@@ -494,8 +494,8 @@ m.prototype = w.prototype = {
494
494
  each: V,
495
495
  eachAfter: F,
496
496
  eachBefore: M,
497
- find: Y,
498
- sum: K,
497
+ find: K,
498
+ sum: Y,
499
499
  sort: X,
500
500
  path: E,
501
501
  ancestors: G,