@hybridcore/ui 1.6.11 → 1.6.13
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.
- package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
- package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
- package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
- package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
- package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
- package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
- package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
- package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
- package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
- package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
- package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
- package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
- package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
- package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
- package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
- package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
- package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
- package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
- package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
- package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
- package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
- package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
- package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
- package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +149 -41
- package/dist/components/charts/_common/tooltip.js +2 -2
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/charts/candlestick/logic.js +34 -35
- package/dist/components/charts/column-line-mix/logic.js +40 -41
- package/dist/components/charts/donut-chart/logic.js +4 -4
- package/dist/components/charts/drill-down-treemap/logic.js +5 -5
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
- package/dist/components/charts/forecast-cone/logic.js +134 -120
- package/dist/components/charts/heatmap/logic.js +9 -9
- package/dist/components/charts/highlighting-line-data/logic.js +10 -10
- package/dist/components/charts/line/logic.js +19 -20
- package/dist/components/charts/logaritmic-scale/logic.js +30 -31
- package/dist/components/charts/multiple-value-axes/logic.js +18 -19
- package/dist/components/charts/nested-pie/logic.js +3 -3
- package/dist/components/charts/packed-circles/logic.js +7 -7
- package/dist/components/charts/pie-chart/logic.js +4 -4
- package/dist/components/charts/stacked-area-radar/logic.js +9 -9
- package/dist/components/charts/stacked-column-chart/logic.js +10 -10
- package/dist/components/charts/xy-chart/logic.js +28 -29
- package/dist/components/collapsible-card/index.js +21 -30
- package/dist/components/collapsible-card/styled.js +16 -14
- package/dist/components/color-picker/index.js +2227 -3357
- package/dist/components/color-picker/styled.js +87 -7
- package/dist/components/confirm/dialog.js +89 -8
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +464 -452
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +145 -3656
- package/dist/components/geometry-picker/map/style.js +18 -17
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +77 -1924
- package/dist/components/instance-hierarchy-table/styled.js +18 -16
- package/dist/components/map/helpers/mapbox.js +17 -15
- package/dist/components/map/helpers/ol.js +386 -27
- package/dist/components/map/index.js +11 -10
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +31 -27
- package/dist/components/metric-card/MetricChart.js +9 -9
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/phone-input/index.js +10 -9
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +27 -26
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +60 -57
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +1091 -1264
- package/dist/components/template-form/components/property-list/index.js +36 -33
- package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
- package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
- package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
- package/dist/components/tree-select/index.js +16 -16
- package/dist/index.esm-UfGMjYOL.js +197 -0
- package/dist/main.d.ts +67 -8
- package/dist/main.js +176 -175
- package/package.json +1 -1
- package/dist/AccordionSummary-CJppWeqF.js +0 -781
- package/dist/Add-CqcD1PWb.js +0 -403
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Button-C5yquWAB.js +0 -357
- package/dist/ButtonBase-BEF7oTOe.js +0 -887
- package/dist/DataProcessor-WXzhvIg6.js +0 -83
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/DialogContent-BvVjD9z3.js +0 -523
- package/dist/FormGroup-CpBsIyYR.js +0 -89
- package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
- package/dist/IconButton-BoGwbvrP.js +0 -184
- package/dist/InputLabel-Dd8RrneV.js +0 -341
- package/dist/MenuItem-DwqJqzuM.js +0 -233
- package/dist/Modal-MUZygjmQ.js +0 -1158
- package/dist/Paper-BkQLdsCI.js +0 -582
- package/dist/Select-DHUl_uG3.js +0 -3916
- package/dist/Source-BSZST_GH.js +0 -4410
- package/dist/SwitchBase-DTndTqI8.js +0 -235
- package/dist/Text-ChJRuaD8.js +0 -2197
- package/dist/TextField-e2oKaUN1.js +0 -669
- package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
- package/dist/Typography-DgsSLCFC.js +0 -178
- package/dist/Vector-BmuhQO4p.js +0 -3606
- package/dist/Vector-DfTqQEln.js +0 -1735
- package/dist/WKT-2wsDT-nq.js +0 -2310
- package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSvgIcon-Ch_cT8az.js +0 -185
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
- package/dist/index-DH6qsPBn.js +0 -153
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/index.esm-BLLrbTzY.js +0 -318
- package/dist/math-Bvt2Ubuz.js +0 -704
- package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
- package/dist/ol-yOE-NV0X.js +0 -7465
- package/dist/ownerWindow-wg6foiOE.js +0 -10
- package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
- package/dist/styled-SoqbyrkW.js +0 -350
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/useSlot-B_Q4vnX5.js +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as dt, e as w, N as De, E as de, O as ve,
|
|
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-
|
|
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", {
|
|
@@ -7696,13 +7696,13 @@ export {
|
|
|
7696
7696
|
wt as R,
|
|
7697
7697
|
Ve as S,
|
|
7698
7698
|
yt as T,
|
|
7699
|
-
|
|
7700
|
-
|
|
7699
|
+
Ji as a,
|
|
7700
|
+
X as b,
|
|
7701
7701
|
er as c,
|
|
7702
|
-
|
|
7702
|
+
Qi as d,
|
|
7703
7703
|
rr as e,
|
|
7704
7704
|
ue as f,
|
|
7705
|
-
|
|
7705
|
+
$i 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-
|
|
2
|
-
import { C as Pe, b as k, a as G, f as v, B as ae,
|
|
3
|
-
import { C as de } from "./ColorSet-
|
|
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-
|
|
5
|
-
import { S as xe, T as ve } from "./Tick
|
|
6
|
-
import { B as Se } from "./Button-
|
|
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-
|
|
2
|
-
import { b as d, m,
|
|
3
|
-
import { R as w } from "./Tooltip-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { R as a } from "./RoundedRectangle-
|
|
2
|
-
import { C as r } from "./Tooltip-
|
|
3
|
-
import { m as i } from "./Entity-
|
|
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-
|
|
2
|
-
import { f as N, p as w } from "./Tooltip-
|
|
3
|
-
import { m as R, e as P, f as T } from "./Entity-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { e as D, P as M,
|
|
2
|
-
import { b as J } from "./AxisRenderer-
|
|
3
|
-
import { v as H, G as K, a as B, b as z } from "./Tooltip-
|
|
4
|
-
import { R as q } from "./RoundedRectangle-
|
|
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", {
|
|
@@ -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),
|
|
55
|
-
if (this._aLocationX0 = g + n / a * (
|
|
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) {
|
|
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)),
|
|
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");
|
|
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 +
|
|
137
|
+
let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
|
|
138
138
|
if (l instanceof M) {
|
|
139
|
-
let p = (
|
|
140
|
-
m += p,
|
|
139
|
+
let p = (w - m) * (1 - l.value) / 2;
|
|
140
|
+
m += p, w -= p;
|
|
141
141
|
}
|
|
142
|
-
if (u = P.getDataItemPositionX(t, x, m, R, f), O = P.getDataItemPositionX(t, i,
|
|
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)
|
|
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,
|
|
151
|
+
let m = this._aLocationY0 + d - 0.5, w = this._aLocationY1 + g - 0.5;
|
|
152
152
|
if (b instanceof M) {
|
|
153
|
-
let p = (
|
|
154
|
-
m += p,
|
|
153
|
+
let p = (w - m) * (1 - b.value) / 2;
|
|
154
|
+
m += p, w -= p;
|
|
155
155
|
}
|
|
156
|
-
if (k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n,
|
|
157
|
-
u = P.getDataItemPositionX(t, x,
|
|
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);
|
|
158
158
|
else if (L) {
|
|
159
159
|
let p = t.get("stackToItemX");
|
|
160
|
-
p ? u = P.getDataItemPositionX(p, i,
|
|
160
|
+
p ? u = P.getDataItemPositionX(p, i, v, 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 +
|
|
165
|
+
let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
|
|
166
166
|
if (l instanceof M) {
|
|
167
|
-
let p = (
|
|
168
|
-
m += p,
|
|
167
|
+
let p = (w - m) * (1 - l.value) / 2;
|
|
168
|
+
m += p, w -= p;
|
|
169
169
|
}
|
|
170
|
-
if (u = P.getDataItemPositionX(t, x, m, R), O = P.getDataItemPositionX(t, i,
|
|
171
|
-
let p = (
|
|
172
|
-
m += p,
|
|
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;
|
|
173
173
|
}
|
|
174
|
-
k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n,
|
|
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 });
|
|
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),
|
|
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");
|
|
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 =
|
|
190
|
+
if (s = g.x, o = v.x, i = g.y, n = v.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"),
|
|
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");
|
|
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 =
|
|
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 });
|
|
384
384
|
} else
|
|
385
385
|
super._updateSeriesGraphics(t, e, s, o, i, n, a, _);
|
|
386
386
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as H } from "./AxisRenderer-
|
|
3
|
-
import { m as tt, f as P, e as M,
|
|
4
|
-
import { f as at } from "./Tooltip-
|
|
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", {
|
|
@@ -2788,7 +2788,7 @@ Object.defineProperty(q, "classNames", {
|
|
|
2788
2788
|
});
|
|
2789
2789
|
export {
|
|
2790
2790
|
N as $,
|
|
2791
|
-
|
|
2791
|
+
It 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
|
-
|
|
2864
|
+
H as h,
|
|
2865
2865
|
nt as i,
|
|
2866
|
-
|
|
2866
|
+
Ze as j,
|
|
2867
2867
|
y as k,
|
|
2868
|
-
|
|
2868
|
+
qe as l,
|
|
2869
2869
|
jt as m,
|
|
2870
|
-
|
|
2870
|
+
ae as n,
|
|
2871
2871
|
R as o,
|
|
2872
2872
|
I as p,
|
|
2873
|
-
|
|
2874
|
-
|
|
2873
|
+
lt as q,
|
|
2874
|
+
p as r,
|
|
2875
2875
|
j as s,
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
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
|
+
};
|