@hybridcore/ui 1.6.10 → 1.6.11

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 (52) hide show
  1. package/dist/{AnimatedTheme-ktdO3Bel.js → AnimatedTheme-D3VZKKNV.js} +6 -6
  2. package/dist/{AxisRenderer-BCQoUJw6.js → AxisRenderer-Doyw-FTI.js} +6 -6
  3. package/dist/{AxisRendererY-AXWvGU6r.js → AxisRendererY-BylCU67e.js} +3 -3
  4. package/dist/{Bullet-Djj7Vs9T.js → Bullet-C6357hTv.js} +1 -1
  5. package/dist/{Button-BLY4PVJC.js → Button-DGOT8RcT.js} +3 -3
  6. package/dist/{CategoryAxis-B6NqW8qd.js → CategoryAxis-B5uTZjhL.js} +3 -3
  7. package/dist/{Circle-BnfBNKBD.js → Circle-DhzVdFBd.js} +1 -1
  8. package/dist/{ColorSet-cyPmWGwh.js → ColorSet-DGLMpbL3.js} +1 -1
  9. package/dist/{ColumnSeries-CtRTsn-E.js → ColumnSeries-CqJ-563p.js} +28 -28
  10. package/dist/DataProcessor-WXzhvIg6.js +83 -0
  11. package/dist/{DateAxis-DEXKps1S.js → DateAxis-lJZjbAS-.js} +4 -4
  12. package/dist/{Entity-BJCuhdq_.js → Entity-4Lr2piVN.js} +14 -14
  13. package/dist/GaplessDateAxis-DowssQ6y.js +296 -0
  14. package/dist/{Hierarchy-CEOK8Gzh.js → Hierarchy-DPEcTr0v.js} +4 -4
  15. package/dist/{Legend-CFvQiIfn.js → Legend-CTb6rZz_.js} +4 -4
  16. package/dist/{LineSeries-D_IL2qGF.js → LineSeries-Dg1aytHA.js} +4 -4
  17. package/dist/{LinearGradient-CxQyCSEB.js → LinearGradient-D1hzMjaW.js} +2 -2
  18. package/dist/{PieSeries-CMH0Z7pz.js → PieSeries-C9YUWMnA.js} +8 -8
  19. package/dist/{RoundedRectangle-BKLX1LKM.js → RoundedRectangle-B23Oh_r6.js} +2 -2
  20. package/dist/{Scrollbar-CTI7_8Qw.js → Scrollbar-CSoXoZSe.js} +4 -4
  21. package/dist/{Slice-BUncQh1B.js → Slice-CIP7Vmzu.js} +11 -11
  22. package/dist/{Tick--VhF0xlz.js → Tick-CRu6rQQy.js} +2 -2
  23. package/dist/{Tooltip-vyZRZWih.js → Tooltip-RhAldW7s.js} +1 -1
  24. package/dist/{XYCursor-CVUSpqb9.js → XYCursor-Z-Ral42q.js} +3 -3
  25. package/dist/{ZoomableContainer-Ca_pDVYQ.js → ZoomableContainer-D1laxHnA.js} +2 -2
  26. package/dist/components/charts/_common/tooltip.js +2 -2
  27. package/dist/components/charts/_common/utils.js +2 -2
  28. package/dist/components/charts/candlestick/logic.js +35 -34
  29. package/dist/components/charts/chart-wrapper/index.js +36 -34
  30. package/dist/components/charts/column-line-mix/logic.js +41 -40
  31. package/dist/components/charts/donut-chart/logic.js +4 -4
  32. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  34. package/dist/components/charts/forecast-cone/index.js +52 -0
  35. package/dist/components/charts/forecast-cone/logic.js +331 -0
  36. package/dist/components/charts/forecast-cone/styled.js +12 -0
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +20 -19
  40. package/dist/components/charts/logaritmic-scale/logic.js +31 -30
  41. package/dist/components/charts/multiple-value-axes/logic.js +19 -18
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +29 -28
  48. package/dist/components/metric-card/MetricChart.js +9 -9
  49. package/dist/main.d.ts +69 -1
  50. package/dist/main.js +167 -165
  51. package/package.json +1 -1
  52. package/dist/GaplessDateAxis-B2g2jgSG.js +0 -376
@@ -1,5 +1,5 @@
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";
1
+ import { L as dt, e as w, N as De, E as de, O as ve, l as ft, Q as Ne, w as Tt, R as he, S as oe, j 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, t as q, a2 as Qe, a3 as At, a4 as Ye, o as Me, n 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, r 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-4Lr2piVN.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-RhAldW7s.js";
3
3
  class ai {
4
4
  constructor() {
5
5
  Object.defineProperty(this, "_observer", {
@@ -7696,13 +7696,13 @@ export {
7696
7696
  wt as R,
7697
7697
  Ve as S,
7698
7698
  yt as T,
7699
- Ji as a,
7700
- X as b,
7699
+ $i as a,
7700
+ Qi as b,
7701
7701
  er as c,
7702
- Qi as d,
7702
+ Ji as d,
7703
7703
  rr as e,
7704
7704
  ue as f,
7705
- $i as g,
7705
+ X as g,
7706
7706
  sr as r,
7707
7707
  x as s
7708
7708
  };
@@ -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-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";
1
+ import { T as ye, s as T, f as we, S as ge, D as Z, C as pe } from "./AnimatedTheme-D3VZKKNV.js";
2
+ import { C as Pe, b as k, a as G, f as v, B as ae, w as z, p as V, D as U, y as Ae, k as re, j, e as M, r as ne, u as oe, P as le, F as he, G as ue, z as ce, _ as B, m as F, v as Q, M as De, H as Me } from "./Entity-4Lr2piVN.js";
3
+ import { C as de } from "./ColorSet-DGLMpbL3.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-RhAldW7s.js";
5
+ import { S as xe, T as ve } from "./Tick-CRu6rQQy.js";
6
+ import { B as Se } from "./Button-DGOT8RcT.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-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";
1
+ import { a as u } from "./AxisRenderer-Doyw-FTI.js";
2
+ import { b as d, m, z as T, f as o, A as _ } from "./Entity-4Lr2piVN.js";
3
+ import { R as w } from "./Tooltip-RhAldW7s.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-BJCuhdq_.js";
1
+ import { E as r } from "./Entity-4Lr2piVN.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-BKLX1LKM.js";
2
- import { C as r } from "./Tooltip-vyZRZWih.js";
3
- import { m as i } from "./Entity-BJCuhdq_.js";
1
+ import { R as a } from "./RoundedRectangle-B23Oh_r6.js";
2
+ import { C as r } from "./Tooltip-RhAldW7s.js";
3
+ import { m as i } from "./Entity-4Lr2piVN.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-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";
1
+ import { A as S, V as L } from "./AxisRenderer-Doyw-FTI.js";
2
+ import { f as N, p as w } from "./Tooltip-RhAldW7s.js";
3
+ import { m as R, e as P, f as T } from "./Entity-4Lr2piVN.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-vyZRZWih.js";
1
+ import { G as r } from "./Tooltip-RhAldW7s.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-BJCuhdq_.js";
1
+ import { E as c, C as h } from "./Entity-4Lr2piVN.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-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";
1
+ import { e as D, P as M, v as V, f as X, _ as E, m as U } from "./Entity-4Lr2piVN.js";
2
+ import { b as J } from "./AxisRenderer-Doyw-FTI.js";
3
+ import { v as H, G as K, a as B, b as z } from "./Tooltip-RhAldW7s.js";
4
+ import { R as q } from "./RoundedRectangle-B23Oh_r6.js";
5
5
  class Y extends J {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "_ph", {
@@ -51,8 +51,8 @@ class Y extends J {
51
51
  }
52
52
  b === this && (n = a - 1), _++;
53
53
  }), this.get("clustered") || (n = 0, a = 1), a === 0 && (a = 1, n = 0);
54
- const f = e.get("renderer"), x = s.get("renderer"), c = "cellStartLocation", h = "cellEndLocation", g = f.get(c, 0), v = f.get(h, 1), d = x.get(c, 0), l = x.get(h, 1);
55
- if (this._aLocationX0 = g + n / a * (v - g), this._aLocationX1 = g + (n + 1) / a * (v - g), this._aLocationY0 = d + n / a * (l - d), this._aLocationY1 = d + (n + 1) / a * (l - d), e.inited && s.inited) {
54
+ const f = e.get("renderer"), x = s.get("renderer"), c = "cellStartLocation", h = "cellEndLocation", g = f.get(c, 0), w = f.get(h, 1), d = x.get(c, 0), l = x.get(h, 1);
55
+ if (this._aLocationX0 = g + n / a * (w - g), this._aLocationX1 = g + (n + 1) / a * (w - g), this._aLocationY0 = d + n / a * (l - d), this._aLocationY1 = d + (n + 1) / a * (l - d), e.inited && s.inited) {
56
56
  if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) {
57
57
  const b = this.dataItems.length;
58
58
  let L = Math.max(0, this.startIndex() - 2), P = Math.min(this.endIndex() + 2, b - 1);
@@ -131,15 +131,15 @@ class Y extends J {
131
131
  let o = t.get("graphics");
132
132
  const i = this._xField, n = this._yField, a = t.get(i), _ = t.get(n), f = this.get("exactLocationX", !1);
133
133
  if (a != null && _ != null) {
134
- const x = this._xOpenField, c = this._yOpenField, h = this.get("locationX", t.get("locationX", 0.5)), g = this.get("locationY", t.get("locationY", 0.5)), v = this.get("openLocationX", t.get("openLocationX", h)), d = this.get("openLocationY", t.get("openLocationY", g)), l = o.get("width"), b = o.get("height"), L = this.get("stacked"), P = this.get("xAxis"), y = this.get("yAxis"), A = P.get("start"), r = P.get("end"), C = y.get("start"), G = y.get("end");
134
+ const x = this._xOpenField, c = this._yOpenField, h = this.get("locationX", t.get("locationX", 0.5)), g = this.get("locationY", t.get("locationY", 0.5)), w = this.get("openLocationX", t.get("openLocationX", h)), d = this.get("openLocationY", t.get("openLocationY", g)), l = o.get("width"), b = o.get("height"), L = this.get("stacked"), P = this.get("xAxis"), y = this.get("yAxis"), A = P.get("start"), r = P.get("end"), C = y.get("start"), G = y.get("end");
135
135
  let u, O, k, F, T = this.get("vcy", 1), R = this.get("vcx", 1), S = !1, j = !1;
136
136
  if (s == 0) {
137
- let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
137
+ let m = this._aLocationX0 + w - 0.5, v = this._aLocationX1 + h - 0.5;
138
138
  if (l instanceof M) {
139
- let p = (w - m) * (1 - l.value) / 2;
140
- m += p, w -= p;
139
+ let p = (v - m) * (1 - l.value) / 2;
140
+ m += p, v -= p;
141
141
  }
142
- if (u = P.getDataItemPositionX(t, x, m, R, f), O = P.getDataItemPositionX(t, i, w, R, f), k = y.getDataItemPositionY(t, n, g, T), this._yOpenField !== this._yField)
142
+ if (u = P.getDataItemPositionX(t, x, m, R, f), O = P.getDataItemPositionX(t, i, v, R, f), k = y.getDataItemPositionY(t, n, g, T), this._yOpenField !== this._yField)
143
143
  F = y.getDataItemPositionY(t, c, d, T);
144
144
  else if (L) {
145
145
  let p = t.get("stackToItemY");
@@ -148,30 +148,30 @@ class Y extends J {
148
148
  F = y.basePosition();
149
149
  t.setRaw("point", { x: u + (O - u) / 2, y: k }), j = !0;
150
150
  } else if (s == 1) {
151
- let m = this._aLocationY0 + d - 0.5, w = this._aLocationY1 + g - 0.5;
151
+ let m = this._aLocationY0 + d - 0.5, v = this._aLocationY1 + g - 0.5;
152
152
  if (b instanceof M) {
153
- let p = (w - m) * (1 - b.value) / 2;
154
- m += p, w -= p;
153
+ let p = (v - m) * (1 - b.value) / 2;
154
+ m += p, v -= p;
155
155
  }
156
- if (k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, w, T), O = P.getDataItemPositionX(t, i, h, R, f), this._xOpenField !== this._xField)
157
- u = P.getDataItemPositionX(t, x, v, R, f);
156
+ if (k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, v, T), O = P.getDataItemPositionX(t, i, h, R, f), this._xOpenField !== this._xField)
157
+ u = P.getDataItemPositionX(t, x, w, R, f);
158
158
  else if (L) {
159
159
  let p = t.get("stackToItemX");
160
- p ? u = P.getDataItemPositionX(p, i, v, p.component.get("vcx"), f) : u = P.basePosition();
160
+ p ? u = P.getDataItemPositionX(p, i, w, p.component.get("vcx"), f) : u = P.basePosition();
161
161
  } else
162
162
  u = P.basePosition();
163
163
  S = !0, t.setRaw("point", { x: O, y: k + (F - k) / 2 });
164
164
  } else if (s == 2) {
165
- let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
165
+ let m = this._aLocationX0 + w - 0.5, v = this._aLocationX1 + h - 0.5;
166
166
  if (l instanceof M) {
167
- let p = (w - m) * (1 - l.value) / 2;
168
- m += p, w -= p;
167
+ let p = (v - m) * (1 - l.value) / 2;
168
+ m += p, v -= p;
169
169
  }
170
- if (u = P.getDataItemPositionX(t, x, m, R), O = P.getDataItemPositionX(t, i, w, R), m = this._aLocationY0 + d - 0.5, w = this._aLocationY1 + g - 0.5, b instanceof M) {
171
- let p = (w - m) * (1 - b.value) / 2;
172
- m += p, w -= p;
170
+ if (u = P.getDataItemPositionX(t, x, m, R), O = P.getDataItemPositionX(t, i, v, R), m = this._aLocationY0 + d - 0.5, v = this._aLocationY1 + g - 0.5, b instanceof M) {
171
+ let p = (v - m) * (1 - b.value) / 2;
172
+ m += p, v -= p;
173
173
  }
174
- k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, w, T), t.setRaw("point", { x: u + (O - u) / 2, y: k + (F - k) / 2 });
174
+ k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, v, T), t.setRaw("point", { x: u + (O - u) / 2, y: k + (F - k) / 2 });
175
175
  }
176
176
  this._applyGraphicsStates(t, e), this._updateSeriesGraphics(t, o, u, O, k, F, S, j), u < A && O < A || u > r && O > r || k < C && F <= C || k >= G && F > G || V(u) || V(k) ? this._toggleColumn(t, !1) : this._toggleColumn(t, !0);
177
177
  let W = t.get("rangeGraphics");
@@ -182,12 +182,12 @@ class Y extends J {
182
182
  this._toggleColumn(t, !1);
183
183
  }
184
184
  _updateSeriesGraphics(t, e, s, o, i, n, a, _) {
185
- const f = e.get("width"), x = e.get("height"), c = e.get("maxWidth"), h = e.get("maxHeight"), g = this.getPoint(s, i), v = this.getPoint(o, n), d = t.get("point");
185
+ const f = e.get("width"), x = e.get("height"), c = e.get("maxWidth"), h = e.get("maxHeight"), g = this.getPoint(s, i), w = this.getPoint(o, n), d = t.get("point");
186
186
  if (d) {
187
187
  const l = this.getPoint(d.x, d.y);
188
188
  d.x = l.x + this._x, d.y = l.y + this._y;
189
189
  }
190
- if (s = g.x, o = v.x, i = g.y, n = v.y, X(f)) {
190
+ if (s = g.x, o = w.x, i = g.y, n = w.y, X(f)) {
191
191
  const l = (o - s - f) / 2;
192
192
  s += l, o -= l;
193
193
  }
@@ -375,12 +375,12 @@ class N extends Y {
375
375
  }
376
376
  _updateSeriesGraphics(t, e, s, o, i, n, a, _) {
377
377
  if (this.get("turboMode")) {
378
- const f = e.get("stroke"), x = e.get("fillOpacity", 1), c = e.get("strokeOpacity", 1), h = e.get("strokeWidth", 1), g = e.get("fill"), v = this.getPoint(s, i), d = this.getPoint(o, n), l = t.get("point");
378
+ const f = e.get("stroke"), x = e.get("fillOpacity", 1), c = e.get("strokeOpacity", 1), h = e.get("strokeWidth", 1), g = e.get("fill"), w = this.getPoint(s, i), d = this.getPoint(o, n), l = t.get("point");
379
379
  if (l) {
380
380
  const b = this.getPoint(l.x, l.y);
381
381
  l.x = b.x + this._x, l.y = b.y + this._y;
382
382
  }
383
- s = v.x, o = d.x, i = v.y, n = d.y, t.setRaw("left", s), t.setRaw("right", o), t.setRaw("top", i), t.setRaw("bottom", n), this.allColumnsData.push({ width: o - s, height: n - i, x: s, y: i, stroke: f, fill: g, strokeWidth: h, strokeOpacity: c, fillOpacity: x });
383
+ s = w.x, o = d.x, i = w.y, n = d.y, t.setRaw("left", s), t.setRaw("right", o), t.setRaw("top", i), t.setRaw("bottom", n), this.allColumnsData.push({ width: o - s, height: n - i, x: s, y: i, stroke: f, fill: g, strokeWidth: h, strokeOpacity: c, fillOpacity: x });
384
384
  } else
385
385
  super._updateSeriesGraphics(t, e, s, o, i, n, a, _);
386
386
  }
@@ -0,0 +1,83 @@
1
+ import { E as c, e as h, h as a, j as l, t as o, C as u, l as n } from "./Entity-4Lr2piVN.js";
2
+ class p extends c {
3
+ constructor() {
4
+ super(...arguments), Object.defineProperty(this, "_checkDates", {
5
+ enumerable: !0,
6
+ configurable: !0,
7
+ writable: !0,
8
+ value: !1
9
+ }), Object.defineProperty(this, "_checkNumbers", {
10
+ enumerable: !0,
11
+ configurable: !0,
12
+ writable: !0,
13
+ value: !1
14
+ }), Object.defineProperty(this, "_checkColors", {
15
+ enumerable: !0,
16
+ configurable: !0,
17
+ writable: !0,
18
+ value: !1
19
+ }), Object.defineProperty(this, "_checkEmpty", {
20
+ enumerable: !0,
21
+ configurable: !0,
22
+ writable: !0,
23
+ value: !1
24
+ }), Object.defineProperty(this, "_checkDeep", {
25
+ enumerable: !0,
26
+ configurable: !0,
27
+ writable: !0,
28
+ value: !1
29
+ });
30
+ }
31
+ _afterNew() {
32
+ 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());
33
+ }
34
+ _checkFeatures() {
35
+ (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();
36
+ }
37
+ _checkDeepFeatures() {
38
+ const e = [];
39
+ h(["dateFields", "numericFields", "colorFields"], (t) => {
40
+ h(this.get(t, []), (s) => {
41
+ const i = s.split(".");
42
+ for (i.pop(); i.length > 0; )
43
+ e.push(i.join(".")), i.pop();
44
+ });
45
+ }), this._checkDeep = e.length > 0, this.setPrivate("deepFields", e);
46
+ }
47
+ /**
48
+ * Processess entire array of data.
49
+ *
50
+ * NOTE: calling this will modify original array!
51
+ */
52
+ processMany(e) {
53
+ a(e) && (this._checkDates || this._checkNumbers || this._checkColors || this._checkEmpty) && h(e, (t) => {
54
+ this.processRow(t);
55
+ });
56
+ }
57
+ /**
58
+ * Processes a row (object) of data.
59
+ *
60
+ * NOTE: calling this will modify values of the original object!
61
+ */
62
+ processRow(e, t = "") {
63
+ l(e, (s, i) => {
64
+ const r = t + s;
65
+ this._checkEmpty && (e[s] = this._maybeToEmpty(e[s])), this._checkNumbers && (e[s] = this._maybeToNumber(r, e[s])), this._checkDates && (e[s] = this._maybeToDate(r, e[s])), this._checkColors && (e[s] = this._maybeToColor(r, e[s])), this._checkDeep && this.getPrivate("deepFields", []).indexOf(r) !== -1 && n(e[s]) && this.processRow(e[s], r + ".");
66
+ });
67
+ }
68
+ _maybeToNumber(e, t) {
69
+ return this.get("numericFields").indexOf(e) !== -1 ? o(t) : t;
70
+ }
71
+ _maybeToDate(e, t) {
72
+ return this.get("dateFields").indexOf(e) !== -1 ? this._root.dateFormatter.parse(t, this.get("dateFormat", "")).getTime() : t;
73
+ }
74
+ _maybeToEmpty(e) {
75
+ return (e == null || e == "") && this.get("emptyAs") != null ? this.get("emptyAs") : e;
76
+ }
77
+ _maybeToColor(e, t) {
78
+ return this.get("colorFields").indexOf(e) !== -1 ? u.fromAny(t) : t;
79
+ }
80
+ }
81
+ export {
82
+ p as D
83
+ };
@@ -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-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";
1
+ import { a as U, c as X, d as Q, r as c, D as E, g as F, b as $, e as B } from "./AnimatedTheme-D3VZKKNV.js";
2
+ import { V as H } from "./AxisRenderer-Doyw-FTI.js";
3
+ import { m as tt, f as P, e as M, v as et, n as K, w as q, x as it, o as Z } from "./Entity-4Lr2piVN.js";
4
+ import { f as at } from "./Tooltip-RhAldW7s.js";
5
5
  class W extends H {
6
6
  constructor() {
7
7
  super(...arguments), Object.defineProperty(this, "_dataGrouped", {
@@ -2788,7 +2788,7 @@ Object.defineProperty(q, "classNames", {
2788
2788
  });
2789
2789
  export {
2790
2790
  N as $,
2791
- It as A,
2791
+ xt as A,
2792
2792
  $e as B,
2793
2793
  c as C,
2794
2794
  te as D,
@@ -2861,23 +2861,23 @@ export {
2861
2861
  h as e,
2862
2862
  v as f,
2863
2863
  ct as g,
2864
- H as h,
2864
+ Ke as h,
2865
2865
  nt as i,
2866
- Ze as j,
2866
+ p as j,
2867
2867
  y as k,
2868
- qe as l,
2868
+ Me as l,
2869
2869
  jt as m,
2870
- ae as n,
2870
+ Ze as n,
2871
2871
  R as o,
2872
2872
  I as p,
2873
- lt as q,
2874
- p as r,
2873
+ We as q,
2874
+ ze as r,
2875
2875
  j as s,
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
2876
+ X as t,
2877
+ It as u,
2878
+ H as v,
2879
+ qe as w,
2880
+ ae as x,
2881
+ lt as y,
2882
+ dt as z
2883
2883
  };
@@ -0,0 +1,296 @@
1
+ import { D as Q } from "./DateAxis-lJZjbAS-.js";
2
+ import { g as V, r as x, c as it, a as S, D as J, b as st, d as at } from "./AnimatedTheme-D3VZKKNV.js";
3
+ import { n as y, o as A, q as nt, e as v, f as U, r as K, u as rt } from "./Entity-4Lr2piVN.js";
4
+ import { f as W } from "./Tooltip-RhAldW7s.js";
5
+ class Z extends Q {
6
+ constructor() {
7
+ super(...arguments), Object.defineProperty(this, "_frequency", {
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0,
11
+ value: 1
12
+ }), Object.defineProperty(this, "_m", {
13
+ enumerable: !0,
14
+ configurable: !0,
15
+ writable: !0,
16
+ value: 0
17
+ }), Object.defineProperty(this, "_dates", {
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0,
21
+ value: []
22
+ }), Object.defineProperty(this, "_customDates", {
23
+ enumerable: !0,
24
+ configurable: !0,
25
+ writable: !0,
26
+ value: void 0
27
+ });
28
+ }
29
+ _afterNew() {
30
+ this.valueFields.push("date"), this.addTag("gapless"), super._afterNew();
31
+ }
32
+ _getDates() {
33
+ return this._customDates ? this._customDates : this._dates;
34
+ }
35
+ _updateDates(t, a) {
36
+ if (!a.get("ignoreMinMax")) {
37
+ const n = this._getDates(), s = y(n, (r) => A(r, t));
38
+ s.found || nt(n, s.index, t);
39
+ }
40
+ }
41
+ _updateAllDates() {
42
+ if (!this._customDates) {
43
+ const t = this._dates;
44
+ t.length = 0, v(this.series, (h) => {
45
+ let o = "valueX";
46
+ h.get("yAxis") == this && (o = "valueY"), v(h.dataItems, (l) => {
47
+ let d = l.get(o);
48
+ U(d) && l.open && this._updateDates(l.open[o], h);
49
+ });
50
+ });
51
+ const a = this.get("extraMax", 0), n = this.get("extraMin", 0);
52
+ let s = t.length;
53
+ const r = this.getPrivate("baseInterval"), i = r.count, e = r.timeUnit;
54
+ if (a > 0) {
55
+ const h = s * a;
56
+ let o = t[s - 1];
57
+ if (U(o))
58
+ for (let l = s - 1; l < s + h; l++)
59
+ o += V(e, i * this._getM(e)), o = x(o, e, i, this._root), t.push(o);
60
+ }
61
+ if (n > 0) {
62
+ const h = s * n;
63
+ let o = t[0];
64
+ if (U(o))
65
+ for (let l = 0; l < h; l++)
66
+ o -= V(e, i), o = x(o, e, i, this._root), t.unshift(o);
67
+ }
68
+ }
69
+ }
70
+ /**
71
+ * Convers value to a relative position on axis.
72
+ *
73
+ * @param value Value
74
+ * @return Relative position
75
+ */
76
+ valueToPosition(t) {
77
+ const a = this._getDates(), n = this.get("startLocation", 0), s = this.get("endLocation", 1), r = a.length - n - (1 - s), i = y(a, (h) => A(h, t));
78
+ let e = i.index;
79
+ if (i.found)
80
+ return (e - n) / r;
81
+ {
82
+ e > 0 && (e -= 1);
83
+ let h = a[e];
84
+ const o = a[e + 1];
85
+ if (o) {
86
+ let d = o;
87
+ Math.abs(d - t) < Math.abs(h - t) && (h = d, e++);
88
+ }
89
+ let l = t - h;
90
+ return (e - n) / r + l / this.baseDuration() / r;
91
+ }
92
+ }
93
+ /**
94
+ * Converts numeric value from axis scale to index.
95
+ *
96
+ * @param value Value
97
+ * @return Index
98
+ */
99
+ valueToIndex(t) {
100
+ const a = this._getDates(), n = y(a, (r) => A(r, t));
101
+ let s = n.index;
102
+ return n.found || s > 0 && (s -= 1), s;
103
+ }
104
+ /**
105
+ * Converts a relative position to a corresponding numeric value from axis
106
+ * scale.
107
+ *
108
+ * @param position Relative position
109
+ * @return Value
110
+ */
111
+ positionToValue(t) {
112
+ const a = this.get("startLocation", 0), n = this.get("endLocation", 1), s = this._getDates();
113
+ let r = Math.round(s.length - a - (1 - n)), i = t * r, e = Math.floor(i);
114
+ return e < 0 && (e = 0), e > r - 1 && (e = r - 1), s[e] + (i - e + a) * this.baseDuration();
115
+ }
116
+ _fixZoomFactor() {
117
+ this.setPrivateRaw("maxZoomFactor", this._getDates().length - this.get("startLocation", 0) - (1 - this.get("endLocation", 1)));
118
+ }
119
+ /**
120
+ * Zooms the axis to specific `start` and `end` dates.
121
+ *
122
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
123
+ *
124
+ * @param start Start Date
125
+ * @param end End Date
126
+ * @param duration Duration in milliseconds
127
+ */
128
+ zoomToDates(t, a, n) {
129
+ const s = this._getDates(), r = s.length;
130
+ let i = y(s, (o) => A(o, t.getTime())), e = s[Math.min(i.index, r - 1)];
131
+ i = y(s, (o) => A(o, a.getTime()));
132
+ let h = s[i.index];
133
+ i.index >= r && (h = s[r - 1] + this.baseDuration()), this.zoomToValues(e, h, n);
134
+ }
135
+ /**
136
+ * Zooms the axis to specific `start` and `end` values.
137
+ *
138
+ * Optional `duration` specifies duration of zoom animation in milliseconds.
139
+ *
140
+ * @param start Start value
141
+ * @param end End value
142
+ * @param duration Duration in milliseconds
143
+ */
144
+ zoomToValues(t, a, n) {
145
+ const s = this.getPrivate("min", 0), r = this.getPrivate("max", 0);
146
+ t = W(t, s, r), a = W(a, s, r), this.zoom(this.valueToPosition(t), this.valueToPosition(a), n);
147
+ }
148
+ _prepareAxisItems() {
149
+ let t = this.getPrivate("selectionMin", 0), a = this.getPrivate("selectionMax", 0);
150
+ if (U(t) && U(a)) {
151
+ this._seriesValuesDirty && (this._seriesValuesDirty = !1, this._updateAllDates());
152
+ const n = this._root, s = n.utc, r = n.timezone, i = this._getDates(), e = this.get("renderer"), h = i.length, o = this.baseDuration();
153
+ let l = this.valueToIndex(t);
154
+ l > 0 && l--;
155
+ let d = this.valueToIndex(a);
156
+ d < h - 1 && d++;
157
+ let u = e.axisLength() / Math.max(e.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), f = Math.min(h, Math.ceil((d - l) / u));
158
+ f = Math.max(1, f), l = Math.floor(l / f) * f, this._frequency = f, v(this.dataItems, (_) => {
159
+ this._toggleDataItem(_, !1);
160
+ }), v(this.minorDataItems, (_) => {
161
+ this._toggleDataItem(_, !1);
162
+ });
163
+ let w = a - t - ((a - t) / o - (d - l)) * o, m = it(0, w, u, this.get("gridIntervals"));
164
+ const z = this.getPrivate("baseInterval");
165
+ let g = S(m);
166
+ g < o && (m = Object.assign({}, z), g = S(m)), this._intervalDuration = g;
167
+ const b = m.timeUnit, M = this.get("dateFormats");
168
+ let E = Date.now();
169
+ i[0] && (E = i[0]);
170
+ let R = x(this.getPrivate("selectionMin", 0), b, m.count, n, E);
171
+ const $ = e.get("minorLabelsEnabled"), Y = e.get("minorGridEnabled", $);
172
+ let P, F = 0, N;
173
+ Y && (P = this._getMinorInterval(m), F = S(P));
174
+ let L = this._getIndexes(R, this.getPrivate("selectionMax", R) + g, m, this.getPrivate("min", R));
175
+ if (L.length > 0) {
176
+ let _ = 0;
177
+ this._m = 0;
178
+ let C = R - g * 10;
179
+ const B = at(b);
180
+ if (P) {
181
+ let k = i[L[0]];
182
+ this._addMinorGrid(k - g, k, F, P);
183
+ }
184
+ let tt = e.axisLength() / e.gridCount() * 0.5;
185
+ v(L, (k) => {
186
+ var q;
187
+ let c;
188
+ this.dataItems.length < _ + 1 ? (c = new J(this, void 0, {}), this._dataItems.push(c), this.processDataItem(c)) : c = this.dataItems[_];
189
+ let D = i[k], et = new Date(D), j = D;
190
+ _ < L.length - 1 ? j = i[L[_ + 1]] : j += g, c.setRaw("value", D), c.setRaw("endValue", j), c.setRaw("index", _), c.setRaw("labelEndValue", void 0);
191
+ let H = M[b];
192
+ B && this.get("markUnitChange") && U(C) && b != "year" && st(D, C, B, s, r) && (H = this.get("periodChangeDateFormats")[b]), this._createAssets(c, []);
193
+ const T = c.get("label");
194
+ T && T.set("text", n.dateFormatter.format(et, H)), this._toggleDataItem(c, !0);
195
+ let X = m.count;
196
+ if (b == "week" && c.setRaw("labelEndValue", D), Y) {
197
+ let I = m.timeUnit;
198
+ if (I == "week" && (I = "day"), X > 1 || m.timeUnit == "week") {
199
+ let p = x(D, I, 1, n) + V(I, this._getM(I)), O = this.valueToIndex(p);
200
+ if (p = i[O], p == D) {
201
+ let G = i[O + 1];
202
+ G ? p = G : p += F;
203
+ }
204
+ c.setRaw("labelEndValue", p);
205
+ }
206
+ X = 1;
207
+ }
208
+ if (this._prepareDataItem(c, X), T && N && e.getPrivate("letter") == "X") {
209
+ let I = N.get("label");
210
+ if (I) {
211
+ let p = T.x(), O = I.x();
212
+ if (p - O < tt) {
213
+ let G = this._pickWorse(N, c, m);
214
+ G && ((q = G.get("label")) === null || q === void 0 || q.setPrivate("visible", !1));
215
+ }
216
+ }
217
+ }
218
+ P && this._addMinorGrid(D, j, F, P), _++, T && T.getPrivate("visible") && (N = c), C = D;
219
+ });
220
+ }
221
+ v(this.series, (_) => {
222
+ _.inited && _._markDirtyAxes();
223
+ });
224
+ }
225
+ this._updateGhost();
226
+ }
227
+ _pickWorse(t, a, n) {
228
+ const s = n.timeUnit, r = t.get("value", 0), i = a.get("value", 0);
229
+ return s == "hour" && new Date(r).getDate() != new Date(i).getDate() ? t : a;
230
+ }
231
+ _addMinorGrid(t, a, n, s) {
232
+ const r = this.get("minorDateFormats", this.get("dateFormats")), i = s.timeUnit;
233
+ let e = t + V(i, this._getM(i));
234
+ e = x(e, i, 1, this._root);
235
+ let h = a - n * 0.5, o = this._getIndexes(e, h, s, e);
236
+ const l = this._getDates();
237
+ v(o, (d) => {
238
+ let u;
239
+ this.minorDataItems.length < this._m + 1 ? (u = new J(this, void 0, {}), this.minorDataItems.push(u), this.processDataItem(u)) : u = this.minorDataItems[this._m], e = l[d], u.setRaw("value", e), u.setRaw("endValue", e + n), u.setRaw("index", d), this._createAssets(u, ["minor"], !0);
240
+ const f = u.get("label");
241
+ if (f)
242
+ if (this.get("renderer").get("minorLabelsEnabled")) {
243
+ let w = new Date(e), m = r[i];
244
+ f.set("text", this._root.dateFormatter.format(w, m));
245
+ } else
246
+ f.setPrivate("visible", !1);
247
+ this._toggleDataItem(u, !0), this._prepareDataItem(u, 1), this._m++;
248
+ });
249
+ }
250
+ _getIndexes(t, a, n, s) {
251
+ const r = [], i = n.timeUnit, e = n.count, h = this._getM(i), o = this.getPrivate("baseInterval"), l = this._root, d = this._getDates();
252
+ let u = e - 1, f = -1 / 0, w = V(i, h), m = V(i, e * h), z = t;
253
+ for (i == "day" && (t = s); t <= a; ) {
254
+ t = x(t, i, e, l);
255
+ let g = this.valueToIndex(t), b = d[g];
256
+ if (i == "day" && o.timeUnit == "day")
257
+ this._hasDate(t) && u++, u == e && (t >= z - m * 2 && K(r, g), u = 0), t += w, t = x(t, i, 1, l);
258
+ else {
259
+ if (b < t) {
260
+ for (let M = g, E = d.length; M < E; M++)
261
+ if (b = d[M], b >= t) {
262
+ g = M;
263
+ break;
264
+ }
265
+ }
266
+ K(r, g), t += m, t = x(t, i, e, l);
267
+ }
268
+ if (t == f && (t += m + w, t = x(t, i, e, l)), t == f)
269
+ break;
270
+ f = t;
271
+ }
272
+ return r;
273
+ }
274
+ _hasDate(t) {
275
+ return y(this._getDates(), (n) => rt(n, t)).found;
276
+ }
277
+ _nextTime(t, a, n) {
278
+ let s = W(this.valueToIndex(t) + a, 0, this._dates.length - 1);
279
+ return this._dates[s];
280
+ }
281
+ }
282
+ Object.defineProperty(Z, "className", {
283
+ enumerable: !0,
284
+ configurable: !0,
285
+ writable: !0,
286
+ value: "GaplessDateAxis"
287
+ });
288
+ Object.defineProperty(Z, "classNames", {
289
+ enumerable: !0,
290
+ configurable: !0,
291
+ writable: !0,
292
+ value: Q.classNames.concat([Z.className])
293
+ });
294
+ export {
295
+ Z as G
296
+ };