@hybridcore/ui 1.5.90 → 1.6.0
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/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- 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/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { g as U, c as X, d as Q, e as c, D as E, f as F, h as $, i as B, j as tt } from "./AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { V as H } from "./AxisRenderer-DTyLLA6c.js";
|
|
3
|
+
import { m as et, f as P, e as M, h as it, j as K, l as q, n as at, o as Z } from "./ColorSet-C7vpNXhM.js";
|
|
4
|
+
class W extends H {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments), Object.defineProperty(this, "_dataGrouped", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: !1
|
|
11
|
+
}), Object.defineProperty(this, "_seriesDataGrouped", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
configurable: !0,
|
|
14
|
+
writable: !0,
|
|
15
|
+
value: !1
|
|
16
|
+
}), Object.defineProperty(this, "_groupingCalculated", {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
configurable: !0,
|
|
19
|
+
writable: !0,
|
|
20
|
+
value: !1
|
|
21
|
+
}), Object.defineProperty(this, "_intervalDuration", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0,
|
|
25
|
+
value: 1
|
|
26
|
+
}), Object.defineProperty(this, "_baseDuration", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: 1
|
|
31
|
+
}), Object.defineProperty(this, "_intervalMax", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: {}
|
|
36
|
+
}), Object.defineProperty(this, "_intervalMin", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: {}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
_afterNew() {
|
|
44
|
+
this._settings.themeTags = et(this._settings.themeTags, ["axis"]), super._afterNew(), this.addTag("date"), this._setBaseInterval(this.get("baseInterval")), this.on("baseInterval", () => {
|
|
45
|
+
this._setBaseInterval(this.get("baseInterval"));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
_setBaseInterval(t) {
|
|
49
|
+
this.setPrivateRaw("baseInterval", t), this._baseDuration = U(t);
|
|
50
|
+
}
|
|
51
|
+
_fixZoomFactor() {
|
|
52
|
+
const t = this.get("maxZoomFactor");
|
|
53
|
+
t != null && t != 1 / 0 ? this.setPrivateRaw("maxZoomFactor", t) : this.setPrivateRaw("maxZoomFactor", Math.round((this.getPrivate("max", 0) - this.getPrivate("min", 0)) / this.baseMainDuration()));
|
|
54
|
+
}
|
|
55
|
+
_groupData() {
|
|
56
|
+
const t = this.getPrivate("min"), a = this.getPrivate("max");
|
|
57
|
+
if (P(t) && P(a)) {
|
|
58
|
+
this._fixZoomFactor();
|
|
59
|
+
const e = this.getPrivate("groupInterval");
|
|
60
|
+
if (e ? this._setBaseInterval(e) : this._setBaseInterval(this.get("baseInterval")), this.isDirty("groupInterval")) {
|
|
61
|
+
let i = this.get("groupInterval");
|
|
62
|
+
i && (this.setRaw("groupIntervals", [i]), this._handleRangeChange());
|
|
63
|
+
}
|
|
64
|
+
if (this.isDirty("groupData") && !this._dataGrouped) {
|
|
65
|
+
if (this.get("groupData"))
|
|
66
|
+
M(this.series, (i) => {
|
|
67
|
+
this._groupSeriesData(i);
|
|
68
|
+
}), this._handleRangeChange();
|
|
69
|
+
else {
|
|
70
|
+
let i = this.get("baseInterval"), r = i.timeUnit + i.count;
|
|
71
|
+
M(this.series, (s) => {
|
|
72
|
+
s.setDataSet(r), s.resetGrouping();
|
|
73
|
+
}), this._setBaseInterval(i), this.setPrivateRaw("groupInterval", void 0), this.markDirtyExtremes();
|
|
74
|
+
}
|
|
75
|
+
this._dataGrouped = !0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
_groupSeriesData(t) {
|
|
80
|
+
if (this.get("groupData") && !t.get("groupDataDisabled")) {
|
|
81
|
+
this._dataGrouped = !0, this._seriesDataGrouped = !0;
|
|
82
|
+
let a = [], e = this.baseMainDuration(), i = this.get("groupIntervals");
|
|
83
|
+
M(i, (d) => {
|
|
84
|
+
U(d) > e && a.push(d);
|
|
85
|
+
}), t._dataSets = {};
|
|
86
|
+
const r = this.getPrivate("name") + this.get("renderer").getPrivate("letter");
|
|
87
|
+
let s;
|
|
88
|
+
const o = t.get("baseAxis");
|
|
89
|
+
t.get("xAxis") === o ? s = t._valueYFields : t.get("yAxis") === o && (s = t._valueXFields);
|
|
90
|
+
let n = t._mainDataItems, l = this.get("baseInterval"), v = l.timeUnit + l.count;
|
|
91
|
+
t._dataSets[v] = n;
|
|
92
|
+
const h = t.get("groupDataCallback");
|
|
93
|
+
let p = t.get("groupDataWithOriginals", !1);
|
|
94
|
+
h && (p = !0), M(a, (d) => {
|
|
95
|
+
let T = -1 / 0, y = d.timeUnit + d.count;
|
|
96
|
+
t._dataSets[y] = [];
|
|
97
|
+
let g, w = {}, R = {}, j = {}, S = {};
|
|
98
|
+
M(s, (f) => {
|
|
99
|
+
w[f] = 0, R[f] = 0, j[f] = t.get(f + "Grouped"), S[f] = f + "Working";
|
|
100
|
+
});
|
|
101
|
+
let k = F(d.timeUnit), C = n[0], V;
|
|
102
|
+
C && (V = n[0].get(r));
|
|
103
|
+
let m;
|
|
104
|
+
M(n, (f) => {
|
|
105
|
+
let N = f.get(r), _ = c(N, d.timeUnit, d.count, this._root, V), G;
|
|
106
|
+
T < _ - k / 24 ? (G = q(f.dataContext), g = new E(t, G, t._makeDataItem(G)), g.setRaw(r, _), t._dataSets[y].push(g), M(s, (u) => {
|
|
107
|
+
let D = f.get(u);
|
|
108
|
+
P(D) ? (g.setRaw(u, D), g.setRaw(S[u], D), R[u] = 1, w[u] = D) : (w[u] = 0, R[u] = 0);
|
|
109
|
+
}), p && g.set("originals", [f]), h && m && h(m, d), m = g) : (M(s, (u) => {
|
|
110
|
+
let D = j[u], b = f.get(u);
|
|
111
|
+
if (b != null) {
|
|
112
|
+
let I = g.get(u);
|
|
113
|
+
switch (D) {
|
|
114
|
+
case "close":
|
|
115
|
+
g.setRaw(u, b);
|
|
116
|
+
break;
|
|
117
|
+
case "sum":
|
|
118
|
+
g.setRaw(u, I + b);
|
|
119
|
+
break;
|
|
120
|
+
case "open":
|
|
121
|
+
break;
|
|
122
|
+
case "low":
|
|
123
|
+
b < I && g.setRaw(u, b);
|
|
124
|
+
break;
|
|
125
|
+
case "high":
|
|
126
|
+
b > I && g.setRaw(u, b);
|
|
127
|
+
break;
|
|
128
|
+
case "average":
|
|
129
|
+
R[u]++, w[u] += b;
|
|
130
|
+
let z = w[u] / R[u];
|
|
131
|
+
g.setRaw(u, z);
|
|
132
|
+
break;
|
|
133
|
+
case "extreme":
|
|
134
|
+
Math.abs(b) > Math.abs(I) && g.setRaw(u, b);
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
g.setRaw(S[u], g.get(u));
|
|
138
|
+
let O = q(f.dataContext);
|
|
139
|
+
O[r] = _, g.dataContext = O;
|
|
140
|
+
}
|
|
141
|
+
}), p && g.get("originals").push(f)), T = _;
|
|
142
|
+
}), h && m && h(m, d);
|
|
143
|
+
}), t._dataSetId && t.setDataSet(t._dataSetId), this.markDirtySize(), this._seriesAdded && this._root.events.once("frameended", () => {
|
|
144
|
+
this.markDirtySize();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
_clearDirty() {
|
|
149
|
+
super._clearDirty(), this._groupingCalculated = !1, this._dataGrouped = !1;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Returns a time interval axis would group data to for a specified duration.
|
|
153
|
+
*
|
|
154
|
+
* @since 5.2.1
|
|
155
|
+
*/
|
|
156
|
+
getGroupInterval(t) {
|
|
157
|
+
let a = this.get("baseInterval"), e = X(0, t, this.get("groupCount", 1 / 0), this.get("groupIntervals"));
|
|
158
|
+
return U(e) < U(a) && (e = Object.assign({}, a)), e;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Return `max` of a specified time interval.
|
|
162
|
+
*
|
|
163
|
+
* Will work only if the axis was grouped to this interval at least once.
|
|
164
|
+
*
|
|
165
|
+
* @since 5.2.1
|
|
166
|
+
* @param interval Interval
|
|
167
|
+
* @return Max
|
|
168
|
+
*/
|
|
169
|
+
getIntervalMax(t) {
|
|
170
|
+
return this._intervalMax[t.timeUnit + t.count];
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Return `min` of a specified time interval.
|
|
174
|
+
*
|
|
175
|
+
* Will work only if the axis was grouped to this interval at least once.
|
|
176
|
+
*
|
|
177
|
+
* @since 5.2.1
|
|
178
|
+
* @param interval Interval
|
|
179
|
+
* @return Min
|
|
180
|
+
*/
|
|
181
|
+
getIntervalMin(t) {
|
|
182
|
+
return this._intervalMin[t.timeUnit + t.count];
|
|
183
|
+
}
|
|
184
|
+
_handleRangeChange() {
|
|
185
|
+
super._handleRangeChange();
|
|
186
|
+
let t = Math.round(this.getPrivate("selectionMin")), a = Math.round(this.getPrivate("selectionMax"));
|
|
187
|
+
if (P(t) && P(a)) {
|
|
188
|
+
if (this.get("endLocation") == 0 && (a += 1), this.get("groupData") && !this._groupingCalculated) {
|
|
189
|
+
this._groupingCalculated = !0;
|
|
190
|
+
let e = this.get("groupInterval"), i = this.getPrivate("groupInterval"), r = a - t + (this.get("startLocation", 0) + (1 - this.get("endLocation", 1)) * this.baseDuration());
|
|
191
|
+
if (i) {
|
|
192
|
+
let s = U(i);
|
|
193
|
+
r = Math.ceil(r / s) * s;
|
|
194
|
+
}
|
|
195
|
+
if (e || (e = this.getGroupInterval(r)), e && (!i || i.timeUnit !== e.timeUnit || i.count !== e.count || this._seriesDataGrouped)) {
|
|
196
|
+
this._seriesDataGrouped = !1, this.setPrivateRaw("groupInterval", e), this._setBaseInterval(e);
|
|
197
|
+
let s = e.timeUnit + e.count;
|
|
198
|
+
M(this.series, (o) => {
|
|
199
|
+
o.get("baseAxis") === this && o.setDataSet(s);
|
|
200
|
+
}), this.markDirtyExtremes(), this._root.events.once("frameended", () => {
|
|
201
|
+
this._root.events.once("frameended", () => {
|
|
202
|
+
const o = "groupintervalchanged";
|
|
203
|
+
this.events.isEnabled(o) && this.events.dispatch(o, { type: o, target: this });
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
M(this.series, (e) => {
|
|
209
|
+
if (e.get("baseAxis") === this) {
|
|
210
|
+
let i = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), s = at(e.dataItems, (g) => Z(g.get(i), t)).index;
|
|
211
|
+
s > 0 && (s -= 1), a += this.baseDuration() * (1 - this.get("endLocation", 1));
|
|
212
|
+
let n = K(e.dataItems, (g) => Z(g.get(i), a)).index, l = n;
|
|
213
|
+
l > 1 && l--;
|
|
214
|
+
const v = e.dataItems[s], h = e.dataItems[l];
|
|
215
|
+
let p, d;
|
|
216
|
+
v && (d = v.get(i)), h && (p = h.get(i));
|
|
217
|
+
let T = !1;
|
|
218
|
+
p != null && d != null && (p < t || d > a) && (T = !0), e.setPrivate("outOfSelection", T), e.setPrivate("startIndex", s);
|
|
219
|
+
let y = e._adjustStartIndex(s);
|
|
220
|
+
e.getPrivate("adjustedStartIndex") !== y && (e.setPrivate("adjustedStartIndex", y), this.root.events.once("frameended", () => {
|
|
221
|
+
e._markDirtyPrivateKey("adjustedStartIndex");
|
|
222
|
+
})), e.setPrivate("endIndex", n);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
_adjustMinMax(t, a, e, i) {
|
|
228
|
+
return { min: t, max: a, step: (a - t) / e };
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @ignore
|
|
232
|
+
*/
|
|
233
|
+
intervalDuration() {
|
|
234
|
+
return this._intervalDuration;
|
|
235
|
+
}
|
|
236
|
+
_saveMinMax(t, a) {
|
|
237
|
+
let e = this.getPrivate("groupInterval");
|
|
238
|
+
e || (e = this.get("baseInterval"));
|
|
239
|
+
let i = e.timeUnit + e.count;
|
|
240
|
+
this._intervalMin[i] = t, this._intervalMax[i] = a;
|
|
241
|
+
}
|
|
242
|
+
_getM(t) {
|
|
243
|
+
return t == "day" || t == "month" || t == "year" ? 1.05 : 1.01;
|
|
244
|
+
}
|
|
245
|
+
_getMinorInterval(t) {
|
|
246
|
+
var a;
|
|
247
|
+
let e, i = t.count, r = t.timeUnit;
|
|
248
|
+
return i > 1 && (i == 10 || i == 15 ? i = 5 : i == 12 ? i = 2 : i == 6 ? i = 1 : i == 30 ? i = 10 : i < 10 && (i = 1), e = { timeUnit: r, count: i }), r == "week" && (((a = this.getPrivate("baseInterval")) === null || a === void 0 ? void 0 : a.timeUnit) != "week" ? e = { timeUnit: "day", count: 1 } : e = { timeUnit: "week", count: 1 }), r == "year" && i == 1 && this.getPrivate("selectionMax", 0) - this.getPrivate("selectionMin", 0) < 4 * 366 * 24 * 60 * 60 * 1e3 && (e = { timeUnit: "month", count: 1 }), e;
|
|
249
|
+
}
|
|
250
|
+
_prepareAxisItems() {
|
|
251
|
+
const t = this.getPrivate("min"), a = this.getPrivate("max");
|
|
252
|
+
if (P(t) && P(a)) {
|
|
253
|
+
const e = this._root, i = Math.round(this.getPrivate("selectionMin")), r = Math.round(this.getPrivate("selectionMax")), s = this.get("renderer"), o = this.getPrivate("baseInterval");
|
|
254
|
+
let n = i, l = 0;
|
|
255
|
+
const v = this.get("gridIntervals");
|
|
256
|
+
let h = X(0, r - i, s.gridCount(), v);
|
|
257
|
+
U(h) < this.baseDuration() && (h = Object.assign({}, o));
|
|
258
|
+
const p = U(h);
|
|
259
|
+
this._intervalDuration = p;
|
|
260
|
+
const d = Q(h.timeUnit), T = e.utc, y = e.timezone;
|
|
261
|
+
n = c(i - p, h.timeUnit, h.count, e, t);
|
|
262
|
+
let g = n - p, w;
|
|
263
|
+
const R = this.get("dateFormats");
|
|
264
|
+
this.setPrivateRaw("gridInterval", h);
|
|
265
|
+
const j = s.get("minorLabelsEnabled"), S = s.get("minorGridEnabled", j);
|
|
266
|
+
let k, C = 0;
|
|
267
|
+
S && (k = this._getMinorInterval(h), C = U(k));
|
|
268
|
+
let V = 0;
|
|
269
|
+
for (; n < r + p; ) {
|
|
270
|
+
let m;
|
|
271
|
+
this.dataItems.length < l + 1 ? (m = new E(this, void 0, {}), this._dataItems.push(m), this.processDataItem(m)) : m = this.dataItems[l], this._createAssets(m, []), this._toggleDataItem(m, !0), m.setRaw("value", n), m.setRaw("labelEndValue", void 0);
|
|
272
|
+
let f = n + F(h.timeUnit, h.count * this._getM(h.timeUnit));
|
|
273
|
+
f = c(f, h.timeUnit, 1, e), m.setRaw("endValue", f);
|
|
274
|
+
let N = new Date(n);
|
|
275
|
+
w = R[h.timeUnit], d && this.get("markUnitChange") && P(g) && h.timeUnit != "year" && $(n, g, d, T, y) && (w = this.get("periodChangeDateFormats")[h.timeUnit]);
|
|
276
|
+
const _ = m.get("label");
|
|
277
|
+
_ && _.set("text", e.dateFormatter.format(N, w));
|
|
278
|
+
let G = h.count;
|
|
279
|
+
if (h.timeUnit == "week" ? _ == null || _.set("location", this.get("weekLabelLocation", 0)) : _ == null || _.set("location", s.labels.template.get("location")), S) {
|
|
280
|
+
G = 1;
|
|
281
|
+
let u = h.timeUnit;
|
|
282
|
+
u == "week" && this.get("skipFirstMinor") && (u = "day");
|
|
283
|
+
let D = n + F(u, this._getM(u));
|
|
284
|
+
D = c(D, u, 1, e), m.setRaw("labelEndValue", D);
|
|
285
|
+
}
|
|
286
|
+
if (this._prepareDataItem(m, G), g = n, n = f, k) {
|
|
287
|
+
const u = k.timeUnit, D = k.count, b = this._getM(u);
|
|
288
|
+
this.get("skipFirstMinor") || (g -= C * b);
|
|
289
|
+
let I = c(g + C * b, u, D, e, g), O, z = this.get("minorDateFormats", this.get("dateFormats"));
|
|
290
|
+
for (; I < n - 0.01 * C; ) {
|
|
291
|
+
let x;
|
|
292
|
+
this.minorDataItems.length < V + 1 ? (x = new E(this, void 0, {}), this.minorDataItems.push(x), this.processDataItem(x)) : x = this.minorDataItems[V], this._createAssets(x, ["minor"], !0), this._toggleDataItem(x, !0), x.setRaw("value", I);
|
|
293
|
+
let A = I + F(u, D * b);
|
|
294
|
+
A = c(A, u, 1, e), x.setRaw("endValue", A);
|
|
295
|
+
let J = new Date(I);
|
|
296
|
+
w = z[u];
|
|
297
|
+
const L = x.get("label");
|
|
298
|
+
if (L && (j ? L.set("text", e.dateFormatter.format(J, w)) : L.setPrivate("visible", !1)), this._prepareDataItem(x, 1), I == O)
|
|
299
|
+
break;
|
|
300
|
+
if (!x.get("isRange")) {
|
|
301
|
+
const Y = this.get("fillRule");
|
|
302
|
+
Y && Y(x);
|
|
303
|
+
}
|
|
304
|
+
O = I, I = A, V++;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (n == g)
|
|
308
|
+
break;
|
|
309
|
+
l++;
|
|
310
|
+
}
|
|
311
|
+
for (let m = l; m < this.dataItems.length; m++)
|
|
312
|
+
this._toggleDataItem(this.dataItems[m], !1);
|
|
313
|
+
for (let m = V; m < this.minorDataItems.length; m++)
|
|
314
|
+
this._toggleDataItem(this.minorDataItems[m], !1);
|
|
315
|
+
M(this.series, (m) => {
|
|
316
|
+
m.inited && m._markDirtyAxes();
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
this._updateGhost();
|
|
320
|
+
}
|
|
321
|
+
_updateFinals(t, a) {
|
|
322
|
+
this.setPrivateRaw("selectionMinFinal", this.positionToValue(t)), this.setPrivateRaw("selectionMaxFinal", this.positionToValue(a));
|
|
323
|
+
}
|
|
324
|
+
_getDelta() {
|
|
325
|
+
this._deltaMinMax = this.baseDuration() / 2;
|
|
326
|
+
}
|
|
327
|
+
_fixMin(t) {
|
|
328
|
+
const a = this.getPrivate("baseInterval"), e = a.timeUnit;
|
|
329
|
+
let i = c(t, e, a.count, this._root), r = i + F(e, a.count * this._getM(e));
|
|
330
|
+
return r = c(r, e, 1, this._root), i + (r - i) * this.get("startLocation", 0);
|
|
331
|
+
}
|
|
332
|
+
_fixMax(t) {
|
|
333
|
+
const a = this.getPrivate("baseInterval"), e = a.timeUnit;
|
|
334
|
+
let i = c(t, e, a.count, this._root), r = i + F(e, a.count * this._getM(e));
|
|
335
|
+
return r = c(r, e, 1, this._root), i + (r - i) * this.get("endLocation", 1);
|
|
336
|
+
}
|
|
337
|
+
_updateDates(t, a) {
|
|
338
|
+
}
|
|
339
|
+
_handleSeriesRemoved() {
|
|
340
|
+
this.setPrivate("baseInterval", this.get("baseInterval")), this.setPrivate("min", void 0), this.setPrivate("minFinal", void 0);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Returns a duration of currently active `baseInterval` in milliseconds.
|
|
344
|
+
*
|
|
345
|
+
* @return Duration
|
|
346
|
+
*/
|
|
347
|
+
baseDuration() {
|
|
348
|
+
return this._baseDuration;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns a duration of user-defined `baseInterval` in milliseconds.
|
|
352
|
+
*
|
|
353
|
+
* @return Duration
|
|
354
|
+
*/
|
|
355
|
+
baseMainDuration() {
|
|
356
|
+
return U(this.get("baseInterval"));
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @ignore
|
|
360
|
+
*/
|
|
361
|
+
processSeriesDataItem(t, a) {
|
|
362
|
+
const e = this.getPrivate("baseInterval");
|
|
363
|
+
t.open || (t.open = {}), t.close || (t.close = {}), M(a, (i) => {
|
|
364
|
+
let r = t.get(i);
|
|
365
|
+
if (P(r)) {
|
|
366
|
+
let s = t.open[i], o = t.close[i];
|
|
367
|
+
if (!(r >= s && r <= o)) {
|
|
368
|
+
const n = e.timeUnit, l = e.count;
|
|
369
|
+
s = c(r, n, l, this._root), o = s + F(n, l * this._getM(n)), o = c(o, n, 1, this._root), t.open[i] = s, t.close[i] = o;
|
|
370
|
+
}
|
|
371
|
+
this._updateDates(s, t.component);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
_handleSizeDirty() {
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @ignore
|
|
379
|
+
*/
|
|
380
|
+
getDataItemPositionX(t, a, e, i, r) {
|
|
381
|
+
let s, o, n;
|
|
382
|
+
return r ? n = t.get(a) : (t.open && t.close ? (s = t.open[a], o = t.close[a]) : (s = t.get(a), o = s), n = s + (o - s) * e, n = this._baseValue + (n - this._baseValue) * i), this.valueToPosition(n);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* @ignore
|
|
386
|
+
*/
|
|
387
|
+
getDataItemCoordinateX(t, a, e, i) {
|
|
388
|
+
return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t, a, e, i));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @ignore
|
|
392
|
+
*/
|
|
393
|
+
getDataItemPositionY(t, a, e, i, r) {
|
|
394
|
+
let s, o, n;
|
|
395
|
+
return r ? n = t.get(a) : (t.open && t.close ? (s = t.open[a], o = t.close[a]) : (s = t.get(a), o = s), n = s + (o - s) * e, n = this._baseValue + (n - this._baseValue) * i), this.valueToPosition(n);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @ignore
|
|
399
|
+
*/
|
|
400
|
+
getDataItemCoordinateY(t, a, e, i) {
|
|
401
|
+
return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t, a, e, i));
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @ignore
|
|
405
|
+
*/
|
|
406
|
+
roundAxisPosition(t, a) {
|
|
407
|
+
let e = this.positionToValue(t);
|
|
408
|
+
e = e - (a - 0.5) * this.baseDuration();
|
|
409
|
+
let i = this.getPrivate("baseInterval");
|
|
410
|
+
if (!it(e)) {
|
|
411
|
+
const r = this._root.locale.firstDayOfWeek, s = i.timeUnit, o = this._root.utc, n = this._root.timezone, l = i.count;
|
|
412
|
+
e = c(e, s, l, this._root, this.getPrivate("min", 0));
|
|
413
|
+
let v = B(i, new Date(e), r, o, n);
|
|
414
|
+
return n && (e = c(e + this.baseDuration() * 0.05, s, l, this._root, this.getPrivate("min", 0)), v = B(i, new Date(e + v * a), r, o, n)), this.valueToPosition(e + v * a);
|
|
415
|
+
}
|
|
416
|
+
return NaN;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Returns text to be used in an axis tooltip for specific relative position.
|
|
420
|
+
*
|
|
421
|
+
* NOTE: Unless `adjustPosition` (2nd parameter) is set to `false`, the method
|
|
422
|
+
* will adjust position by `tooltipIntervalOffset`.
|
|
423
|
+
*
|
|
424
|
+
* @param position Position
|
|
425
|
+
* @param adjustPosition Adjust position
|
|
426
|
+
* @return Tooltip text
|
|
427
|
+
*/
|
|
428
|
+
getTooltipText(t, a) {
|
|
429
|
+
if (this.getPrivate("min") != null) {
|
|
430
|
+
let e = this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit], i = this.positionToValue(t);
|
|
431
|
+
if (P(i)) {
|
|
432
|
+
let r = new Date(i), s = this.getPrivate("baseInterval"), o = B(s, r, this._root.locale.firstDayOfWeek, this._root.utc, this._root.timezone);
|
|
433
|
+
return a !== !1 && (r = new Date(i + this.get("tooltipIntervalOffset", -this.get("tooltipLocation", 0.5)) * o)), this._root.dateFormatter.format(r, this.get("tooltipDateFormat", e));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return "";
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Returns a data item from series that is closest to the `position`.
|
|
440
|
+
*
|
|
441
|
+
* @param series Series
|
|
442
|
+
* @param position Relative position
|
|
443
|
+
* @return Data item
|
|
444
|
+
*/
|
|
445
|
+
getSeriesItem(t, a, e, i) {
|
|
446
|
+
let r = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), s = this.positionToValue(a);
|
|
447
|
+
e == null && (e = 0.5), s = s - (e - 0.5) * this.baseDuration();
|
|
448
|
+
const o = K(t.dataItems, (n) => {
|
|
449
|
+
let l = 0;
|
|
450
|
+
return n.open && (l = n.open[r]), Z(l, s);
|
|
451
|
+
});
|
|
452
|
+
if (i || t.get("snapTooltip")) {
|
|
453
|
+
let n = t.dataItems[o.index - 1], l = t.dataItems[o.index];
|
|
454
|
+
if (n && l && n.open && l.close) {
|
|
455
|
+
let v = n.open[r], h = l.close[r];
|
|
456
|
+
if (Math.abs(s - v) > Math.abs(s - h))
|
|
457
|
+
return l;
|
|
458
|
+
}
|
|
459
|
+
if (n)
|
|
460
|
+
return n;
|
|
461
|
+
if (l)
|
|
462
|
+
return l;
|
|
463
|
+
} else {
|
|
464
|
+
const n = t.dataItems[o.index - 1];
|
|
465
|
+
if (n && n.open && n.close) {
|
|
466
|
+
let l = n.open[r], v = n.close[r];
|
|
467
|
+
if (s >= l && s <= v)
|
|
468
|
+
return n;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* @ignore
|
|
474
|
+
*/
|
|
475
|
+
shouldGap(t, a, e, i) {
|
|
476
|
+
const r = t.get(i);
|
|
477
|
+
return a.get(i) - r > this.baseDuration() * e;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Zooms the axis to specific `start` and `end` dates.
|
|
481
|
+
*
|
|
482
|
+
* Optional `duration` specifies duration of zoom animation in milliseconds.
|
|
483
|
+
*
|
|
484
|
+
* @param start Start Date
|
|
485
|
+
* @param end End Date
|
|
486
|
+
* @param duration Duration in milliseconds
|
|
487
|
+
*/
|
|
488
|
+
zoomToDates(t, a, e) {
|
|
489
|
+
this.zoomToValues(t.getTime(), a.getTime(), e);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Zooms the axis to specific `start` and `end` values.
|
|
493
|
+
*
|
|
494
|
+
* Optional `duration` specifies duration of zoom animation in milliseconds.
|
|
495
|
+
*
|
|
496
|
+
* @param start Start value
|
|
497
|
+
* @param end End value
|
|
498
|
+
* @param duration Duration in milliseconds
|
|
499
|
+
*/
|
|
500
|
+
zoomToValues(t, a, e) {
|
|
501
|
+
const i = this.getPrivate("minFinal", this.getPrivate("min", 0)), r = this.getPrivate("maxFinal", this.getPrivate("max", 0));
|
|
502
|
+
if (this.getPrivate("min") != null && this.getPrivate("max") != null)
|
|
503
|
+
if (this.get("groupData")) {
|
|
504
|
+
const s = this.getGroupInterval(a - t), o = this.get("baseInterval");
|
|
505
|
+
let n = this.getIntervalMin(o), l = this.getIntervalMax(o) - 1;
|
|
506
|
+
l = c(l, s.timeUnit, s.count, this.root), l += this._getM(s.timeUnit) * U(s), l = c(l, s.timeUnit, s.count, this.root);
|
|
507
|
+
let v = c(n, s.timeUnit, s.count, this.root), h = c(l, s.timeUnit, s.count, this.root), p = (t - v) / (h - v), d = (a - v) / (h - v);
|
|
508
|
+
this.zoom(p, d, e);
|
|
509
|
+
} else
|
|
510
|
+
this.zoom((t - i) / (r - i), (a - i) / (r - i), e);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Returns a `Date` object corresponding to specific position within plot
|
|
514
|
+
* area.
|
|
515
|
+
*
|
|
516
|
+
* @param position Pposition
|
|
517
|
+
* @return Date
|
|
518
|
+
*/
|
|
519
|
+
positionToDate(t) {
|
|
520
|
+
return new Date(this.positionToValue(t));
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Returns a relative position within plot area that corresponds to specific
|
|
524
|
+
* date.
|
|
525
|
+
*
|
|
526
|
+
* @param date Date
|
|
527
|
+
* @return Position
|
|
528
|
+
*/
|
|
529
|
+
dateToPosition(t) {
|
|
530
|
+
return this.valueToPosition(t.getTime());
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Returns relative position between two grid lines of the axis.
|
|
534
|
+
*
|
|
535
|
+
* @since 5.2.30
|
|
536
|
+
* @return Position
|
|
537
|
+
*/
|
|
538
|
+
getCellWidthPosition() {
|
|
539
|
+
let t = this.getPrivate("selectionMax", this.getPrivate("max")), a = this.getPrivate("selectionMin", this.getPrivate("min"));
|
|
540
|
+
return P(t) && P(a) ? this._intervalDuration / (t - a) : 0.05;
|
|
541
|
+
}
|
|
542
|
+
nextPosition(t) {
|
|
543
|
+
t == null && (t = 1);
|
|
544
|
+
let a = this.get("tooltipLocation", 0.5) * this.baseDuration();
|
|
545
|
+
this.get("renderer").getPrivate("letter") == "Y" && (t *= -1);
|
|
546
|
+
let e = this.positionToValue(this.getPrivate("tooltipPosition", 0));
|
|
547
|
+
const i = this.getPrivate("baseInterval");
|
|
548
|
+
let r = this._nextTime(e, t, i), s = this.getPrivate("selectionMin", 0), o = this.getPrivate("selectionMax", 0), n = c(s, i.timeUnit, i.count, this._root), l = c(o, i.timeUnit, i.count, this._root);
|
|
549
|
+
return r += a, r = tt(r, n + a, l - a), this.toGlobalPosition(this.valueToPosition(r));
|
|
550
|
+
}
|
|
551
|
+
_nextTime(t, a, e) {
|
|
552
|
+
return c(t + a * this.baseDuration(), e.timeUnit, e.count, this._root);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
Object.defineProperty(W, "className", {
|
|
556
|
+
enumerable: !0,
|
|
557
|
+
configurable: !0,
|
|
558
|
+
writable: !0,
|
|
559
|
+
value: "DateAxis"
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(W, "classNames", {
|
|
562
|
+
enumerable: !0,
|
|
563
|
+
configurable: !0,
|
|
564
|
+
writable: !0,
|
|
565
|
+
value: H.classNames.concat([W.className])
|
|
566
|
+
});
|
|
567
|
+
export {
|
|
568
|
+
W as D
|
|
569
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { a as i, _ as T } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { P as o } from "./index-
|
|
4
|
-
import { g as h, u as S, c as b, a as P } from "./useThemeProps-
|
|
5
|
-
import { s as m } from "./styled-
|
|
6
|
-
import { g as y } from "./createTheme-
|
|
7
|
-
import { u as q } from "./
|
|
3
|
+
import { P as o } from "./index-C__OZmYy.js";
|
|
4
|
+
import { g as h, u as S, c as b, a as P } from "./useThemeProps-BzzHcQyd.js";
|
|
5
|
+
import { s as m } from "./styled-eZwjUruw.js";
|
|
6
|
+
import { g as y } from "./createTheme-DYxDnE9u.js";
|
|
7
|
+
import { P as O, u as q } from "./Paper-2B03OBmZ.js";
|
|
8
8
|
import { jsx as p } from "react/jsx-runtime";
|
|
9
|
-
import { B as G, M as J, F as Q } from "./Modal-
|
|
10
|
-
import { c as u } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { u as Z } from "./useId-BHG98T5I.js";
|
|
9
|
+
import { B as G, M as J, F as Q } from "./Modal-DhPpOoGB.js";
|
|
10
|
+
import { c as u } from "./capitalize-ciszXJ7R.js";
|
|
11
|
+
import { u as Z } from "./useId-B4-oF9Mq.js";
|
|
13
12
|
function oo(e) {
|
|
14
13
|
return y("MuiDialog", e);
|
|
15
14
|
}
|
|
@@ -431,7 +430,7 @@ function fo(e) {
|
|
|
431
430
|
return y("MuiDialogContent", e);
|
|
432
431
|
}
|
|
433
432
|
h("MuiDialogContent", ["root", "dividers"]);
|
|
434
|
-
function
|
|
433
|
+
function wo(e) {
|
|
435
434
|
return y("MuiDialogTitle", e);
|
|
436
435
|
}
|
|
437
436
|
const go = h("MuiDialogTitle", ["root"]), bo = ["className", "dividers"], xo = (e) => {
|
|
@@ -517,5 +516,5 @@ export {
|
|
|
517
516
|
mo as b,
|
|
518
517
|
R as c,
|
|
519
518
|
W as d,
|
|
520
|
-
|
|
519
|
+
wo as g
|
|
521
520
|
};
|