@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,18 +1,18 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { getTooltipDateFormat as
|
|
6
|
-
import { applyValueFormat as
|
|
7
|
-
import { c as d, a as
|
|
8
|
-
import { X as
|
|
9
|
-
import { X as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { L as
|
|
13
|
-
import {
|
|
14
|
-
import { D as
|
|
15
|
-
class
|
|
1
|
+
import { R as we, A as Ae } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useTheme as Fe, useThemeProps as De } from "@mui/material";
|
|
3
|
+
import Ne from "lodash";
|
|
4
|
+
import { useRef as S, useLayoutEffect as ke } from "react";
|
|
5
|
+
import { getTooltipDateFormat as Te, attachCursorTooltip as Oe } from "../_common/tooltip.js";
|
|
6
|
+
import { applyValueFormat as Ce } from "../_common/utils.js";
|
|
7
|
+
import { c as d, a as ie } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { X as Xe, V as Pe } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
9
|
+
import { X as Ie } from "../../../XYCursor-CVUSpqb9.js";
|
|
10
|
+
import { A as Ye, a as je } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
11
|
+
import { L as Se } from "../../../Legend-CFvQiIfn.js";
|
|
12
|
+
import { L as R } from "../../../LineSeries-D_IL2qGF.js";
|
|
13
|
+
import { G as Le, D as Re } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
14
|
+
import { D as $e } from "../../../DateAxis-DEXKps1S.js";
|
|
15
|
+
class Me {
|
|
16
16
|
constructor(e, s) {
|
|
17
17
|
Object.defineProperty(this, "_line", {
|
|
18
18
|
enumerable: !0,
|
|
@@ -76,7 +76,7 @@ class Se {
|
|
|
76
76
|
this._context.lineTo(this._x1, this._y1);
|
|
77
77
|
break;
|
|
78
78
|
case 3:
|
|
79
|
-
|
|
79
|
+
L(this, this._t0, ue(this, this._t0));
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
@@ -92,61 +92,61 @@ class Se {
|
|
|
92
92
|
this._point = 2;
|
|
93
93
|
break;
|
|
94
94
|
case 2:
|
|
95
|
-
this._point = 3,
|
|
95
|
+
this._point = 3, L(this, ue(this, o = le(this, e, s)), o);
|
|
96
96
|
break;
|
|
97
97
|
default:
|
|
98
|
-
|
|
98
|
+
L(this, this._t0, o = le(this, e, s));
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = s, this._t0 = o;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ae(r) {
|
|
106
106
|
function e(s) {
|
|
107
|
-
return new
|
|
107
|
+
return new Me(s, r);
|
|
108
108
|
}
|
|
109
109
|
return e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ne(r) {
|
|
112
112
|
return r < 0 ? -1 : 1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function le(r, e, s) {
|
|
115
115
|
let o = r._x1 - r._x0, l = e - r._x1, a = (r._y1 - r._y0) / (o || l < 0 && -0), n = (s - r._y1) / (l || o < 0 && -0), p = (a * l + n * o) / (o + l);
|
|
116
|
-
return (
|
|
116
|
+
return (ne(a) + ne(n)) * Math.min(Math.abs(a), Math.abs(n), 0.5 * Math.abs(p)) || 0;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ue(r, e) {
|
|
119
119
|
let s = r._x1 - r._x0;
|
|
120
120
|
return s ? (3 * (r._y1 - r._y0) / s - e) / 2 : e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function L(r, e, s) {
|
|
123
123
|
let o = r._x0, l = r._y0, a = r._x1, n = r._y1, p = (a - o) / 1.5 * (1 - r._tension);
|
|
124
124
|
r._context.bezierCurveTo(o + p, l + p * e, a - p, n - p * s, a, n);
|
|
125
125
|
}
|
|
126
|
-
class
|
|
126
|
+
class x extends R {
|
|
127
127
|
_afterNew() {
|
|
128
|
-
this._setDefault("curveFactory",
|
|
128
|
+
this._setDefault("curveFactory", ae(this.get("tension", 0.5))), super._afterNew();
|
|
129
129
|
}
|
|
130
130
|
_updateChildren() {
|
|
131
|
-
this.isDirty("tension") && (this.set("curveFactory",
|
|
131
|
+
this.isDirty("tension") && (this.set("curveFactory", ae(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
Object.defineProperty(
|
|
134
|
+
Object.defineProperty(x, "className", {
|
|
135
135
|
enumerable: !0,
|
|
136
136
|
configurable: !0,
|
|
137
137
|
writable: !0,
|
|
138
138
|
value: "SmoothedXLineSeries"
|
|
139
139
|
});
|
|
140
|
-
Object.defineProperty(
|
|
140
|
+
Object.defineProperty(x, "classNames", {
|
|
141
141
|
enumerable: !0,
|
|
142
142
|
configurable: !0,
|
|
143
143
|
writable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: R.classNames.concat([x.className])
|
|
145
145
|
});
|
|
146
|
-
const
|
|
146
|
+
const Ve = [
|
|
147
147
|
{ lowerField: "low95", upperField: "high95", label: "95% expected move" },
|
|
148
148
|
{ lowerField: "low68", upperField: "high68", label: "68% expected move" }
|
|
149
|
-
],
|
|
149
|
+
], Ee = [0.15, 0.3, 0.45], Ue = 1.1, Be = {
|
|
150
150
|
millisecond: 1,
|
|
151
151
|
second: 1e3,
|
|
152
152
|
minute: 6e4,
|
|
@@ -155,47 +155,49 @@ const Le = [
|
|
|
155
155
|
week: 6048e5,
|
|
156
156
|
month: 2592e6,
|
|
157
157
|
year: 31536e6
|
|
158
|
-
},
|
|
159
|
-
const e =
|
|
158
|
+
}, at = (r) => {
|
|
159
|
+
const e = Fe(), s = De({ props: r, name: "HCForecastCone" }), {
|
|
160
160
|
data: o = [],
|
|
161
161
|
dateField: l = "date",
|
|
162
162
|
historyField: a = "close",
|
|
163
163
|
centreField: n = "center",
|
|
164
|
-
bands: p =
|
|
165
|
-
nowValue:
|
|
166
|
-
color:
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
bands: p = Ve,
|
|
165
|
+
nowValue: N,
|
|
166
|
+
color: $ = e.palette.warning.main,
|
|
167
|
+
connectMissingData: k = !0,
|
|
168
|
+
skipEmptyDates: M = !0,
|
|
169
|
+
baseInterval: V,
|
|
170
|
+
chartId: E = "forecast-cone-chart",
|
|
171
|
+
height: ce = "100%",
|
|
172
|
+
width: pe = "100%",
|
|
173
|
+
loading: U = !1,
|
|
174
|
+
emptyMessage: B = "No data available",
|
|
175
|
+
sx: he,
|
|
176
|
+
...de
|
|
177
|
+
} = s, u = Ne.orderBy(o, [l]).map((t) => ({ ...t })), y = u.findIndex(
|
|
176
178
|
(t) => t[n] !== null && t[n] !== void 0
|
|
177
179
|
);
|
|
178
|
-
y > 0 && (u[y][a] === null || u[y][a] === void 0) && (u[y][a] = u[y][n]);
|
|
179
|
-
const
|
|
180
|
+
k && y > 0 && (u[y][a] === null || u[y][a] === void 0) && (u[y][a] = u[y][n]);
|
|
181
|
+
const me = {
|
|
180
182
|
...s,
|
|
181
|
-
height:
|
|
182
|
-
width:
|
|
183
|
-
chartId:
|
|
184
|
-
loading:
|
|
185
|
-
emptyMessage:
|
|
186
|
-
baseInterval:
|
|
187
|
-
},
|
|
188
|
-
return
|
|
189
|
-
var
|
|
190
|
-
if (!
|
|
191
|
-
const t =
|
|
192
|
-
|
|
183
|
+
height: ce,
|
|
184
|
+
width: pe,
|
|
185
|
+
chartId: E,
|
|
186
|
+
loading: U,
|
|
187
|
+
emptyMessage: B,
|
|
188
|
+
baseInterval: V
|
|
189
|
+
}, H = S(null), G = S(null), T = S(null);
|
|
190
|
+
return ke(() => {
|
|
191
|
+
var J, K, Q;
|
|
192
|
+
if (!T.current) return;
|
|
193
|
+
const t = we.new(T.current);
|
|
194
|
+
G.current = t, t.setThemes([Ae.new(t)]), t.interfaceColors.setAll({
|
|
193
195
|
text: d(e.palette.text.primary),
|
|
194
196
|
grid: d(e.palette.divider),
|
|
195
197
|
stroke: d(e.palette.divider)
|
|
196
|
-
}),
|
|
198
|
+
}), Ce(t);
|
|
197
199
|
const c = t.container.children.push(
|
|
198
|
-
|
|
200
|
+
Xe.new(t, {
|
|
199
201
|
panX: !0,
|
|
200
202
|
panY: !1,
|
|
201
203
|
wheelX: "none",
|
|
@@ -205,59 +207,59 @@ const Le = [
|
|
|
205
207
|
layout: t.verticalLayout
|
|
206
208
|
})
|
|
207
209
|
);
|
|
208
|
-
|
|
210
|
+
H.current = c, c.set(
|
|
209
211
|
"cursor",
|
|
210
|
-
|
|
212
|
+
Ie.new(t, { behavior: "none" })
|
|
211
213
|
).lineY.set("visible", !1);
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
+
const w = V ?? { timeUnit: "hour", count: 1 }, fe = M ? Le : $e, _ = c.xAxes.push(
|
|
215
|
+
fe.new(t, {
|
|
214
216
|
maxDeviation: 0.1,
|
|
215
217
|
groupData: !1,
|
|
216
|
-
baseInterval:
|
|
217
|
-
renderer:
|
|
218
|
+
baseInterval: w,
|
|
219
|
+
renderer: Ye.new(t, {})
|
|
218
220
|
})
|
|
219
221
|
);
|
|
220
|
-
(
|
|
222
|
+
(J = _.get("renderer")) == null || J.grid.template.setAll({
|
|
221
223
|
stroke: d(e.palette.divider),
|
|
222
224
|
strokeOpacity: 1
|
|
223
225
|
});
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
renderer:
|
|
226
|
+
const A = c.yAxes.push(
|
|
227
|
+
Pe.new(t, {
|
|
228
|
+
renderer: je.new(t, {})
|
|
227
229
|
})
|
|
228
230
|
);
|
|
229
|
-
(
|
|
231
|
+
(K = A.get("renderer")) == null || K.grid.template.setAll({
|
|
230
232
|
stroke: d(e.palette.divider),
|
|
231
233
|
strokeOpacity: 1
|
|
232
234
|
});
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
),
|
|
235
|
+
const F = d($), _e = c.children.push(
|
|
236
|
+
Se.new(t, { centerX: ie, x: ie })
|
|
237
|
+
), O = () => Re.new(t, { dateFormat: "i", dateFields: [l] }), C = [];
|
|
236
238
|
p.forEach((i, f) => {
|
|
237
239
|
const h = c.series.push(
|
|
238
|
-
|
|
240
|
+
x.new(t, {
|
|
239
241
|
name: i.label ?? `Band ${f + 1}`,
|
|
240
242
|
xAxis: _,
|
|
241
|
-
yAxis:
|
|
243
|
+
yAxis: A,
|
|
242
244
|
valueYField: i.upperField,
|
|
243
245
|
openValueYField: i.lowerField,
|
|
244
246
|
valueXField: l,
|
|
245
|
-
fill:
|
|
246
|
-
stroke:
|
|
247
|
+
fill: F,
|
|
248
|
+
stroke: F
|
|
247
249
|
})
|
|
248
250
|
);
|
|
249
251
|
h.strokes.template.set("strokeOpacity", 0), h.fills.template.setAll({
|
|
250
252
|
visible: !0,
|
|
251
|
-
fill:
|
|
252
|
-
fillOpacity: i.fillOpacity ??
|
|
253
|
-
}), h.data.processor =
|
|
253
|
+
fill: F,
|
|
254
|
+
fillOpacity: i.fillOpacity ?? Ee[f] ?? 0.2
|
|
255
|
+
}), h.data.processor = O(), h.data.setAll(u), C.push(h);
|
|
254
256
|
});
|
|
255
257
|
let m;
|
|
256
258
|
n && (m = c.series.push(
|
|
257
|
-
|
|
259
|
+
x.new(t, {
|
|
258
260
|
name: "Forecast centre",
|
|
259
261
|
xAxis: _,
|
|
260
|
-
yAxis:
|
|
262
|
+
yAxis: A,
|
|
261
263
|
valueYField: n,
|
|
262
264
|
valueXField: l,
|
|
263
265
|
stroke: d(e.palette.error.main)
|
|
@@ -265,67 +267,79 @@ const Le = [
|
|
|
265
267
|
), m.strokes.template.setAll({
|
|
266
268
|
strokeWidth: 1.5,
|
|
267
269
|
strokeDasharray: [4, 4]
|
|
268
|
-
}), m.fills.template.set("visible", !1), m.data.processor =
|
|
269
|
-
const
|
|
270
|
-
|
|
270
|
+
}), m.fills.template.set("visible", !1), m.data.processor = O(), m.data.setAll(u));
|
|
271
|
+
const D = c.series.push(
|
|
272
|
+
R.new(t, {
|
|
271
273
|
name: "History",
|
|
272
274
|
xAxis: _,
|
|
273
|
-
yAxis:
|
|
275
|
+
yAxis: A,
|
|
274
276
|
valueYField: a,
|
|
275
277
|
valueXField: l,
|
|
278
|
+
// When false, the history line breaks at missing dates (gap > ~1 base
|
|
279
|
+
// interval) instead of bridging across them.
|
|
280
|
+
connect: k,
|
|
281
|
+
autoGapCount: Ue,
|
|
276
282
|
stroke: d(e.palette.primary.main)
|
|
277
283
|
})
|
|
278
284
|
);
|
|
279
|
-
|
|
280
|
-
const
|
|
285
|
+
D.strokes.template.setAll({ strokeWidth: 2 }), D.data.processor = O(), D.data.setAll(u), _e.data.setAll(c.series.values);
|
|
286
|
+
const W = u.findIndex(
|
|
281
287
|
(i) => i[n] !== null && i[n] !== void 0
|
|
282
|
-
),
|
|
288
|
+
), be = [...u].reverse().find(
|
|
283
289
|
(i) => i[a] !== null && i[a] !== void 0
|
|
284
|
-
),
|
|
285
|
-
Number.isNaN(
|
|
286
|
-
_.makeDataItem({ value:
|
|
287
|
-
).get("grid")) == null ||
|
|
290
|
+
), z = W >= 0 ? u[W] : be, Z = N !== void 0 ? new Date(N).getTime() : z ? new Date(z[l]).getTime() : NaN, ve = (Be[w.timeUnit] ?? 0) * w.count / 2, q = Number.isNaN(Z) ? NaN : Z + ve;
|
|
291
|
+
Number.isNaN(q) || (Q = _.createAxisRange(
|
|
292
|
+
_.makeDataItem({ value: q })
|
|
293
|
+
).get("grid")) == null || Q.setAll({
|
|
288
294
|
visible: !0,
|
|
289
295
|
stroke: d(e.palette.text.secondary),
|
|
290
296
|
strokeOpacity: 0.7,
|
|
291
297
|
strokeDasharray: [2, 3]
|
|
292
298
|
});
|
|
293
|
-
const
|
|
294
|
-
return
|
|
299
|
+
const ye = Te(w);
|
|
300
|
+
return Oe({
|
|
295
301
|
root: t,
|
|
296
302
|
chart: c,
|
|
297
303
|
theme: e,
|
|
298
304
|
getText: () => {
|
|
299
|
-
var
|
|
300
|
-
const i = (g) => g == null ? "—" : t.numberFormatter.format(g), f =
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
return
|
|
304
|
-
var
|
|
305
|
-
const v = (
|
|
306
|
-
if (
|
|
307
|
-
const
|
|
308
|
-
b.push(`[${
|
|
305
|
+
var re;
|
|
306
|
+
const i = (g) => g == null ? "—" : t.numberFormatter.format(g), f = D.get("tooltipDataItem"), h = m == null ? void 0 : m.get("tooltipDataItem"), X = h ?? f ?? ((re = C[0]) == null ? void 0 : re.get("tooltipDataItem")), ee = X == null ? void 0 : X.get("valueX"), te = typeof ee == "number" ? t.dateFormatter.format(new Date(ee), ye) : "", b = [], P = f == null ? void 0 : f.get("valueY");
|
|
307
|
+
P != null && b.push(`History: ${i(P)}`);
|
|
308
|
+
const I = h == null ? void 0 : h.get("valueY");
|
|
309
|
+
return I != null && b.push(`Centre: ${i(I)}`), p.forEach((g, se) => {
|
|
310
|
+
var oe;
|
|
311
|
+
const v = (oe = C[se]) == null ? void 0 : oe.get("tooltipDataItem"), Y = v == null ? void 0 : v.get("valueY"), j = v == null ? void 0 : v.get("openValueY");
|
|
312
|
+
if (Y != null && j !== void 0 && j !== null) {
|
|
313
|
+
const ge = (Y - j) / 2, xe = g.label ?? `Band ${se + 1}`;
|
|
314
|
+
b.push(`[${F.toCSSHex()}]●[/] ${xe}: ±${i(ge)}`);
|
|
309
315
|
}
|
|
310
|
-
}), b.length === 0 ? "" :
|
|
316
|
+
}), b.length === 0 ? "" : te ? `[bold]${te}[/]
|
|
311
317
|
${b.join(`
|
|
312
318
|
`)}` : b.join(`
|
|
313
319
|
`);
|
|
314
320
|
}
|
|
315
321
|
}), c.appear(1e3, 100), () => {
|
|
316
|
-
t.dispose(),
|
|
322
|
+
t.dispose(), G.current = null, H.current = null;
|
|
317
323
|
};
|
|
318
|
-
}, [
|
|
319
|
-
|
|
324
|
+
}, [
|
|
325
|
+
e.palette.mode,
|
|
326
|
+
o,
|
|
327
|
+
p,
|
|
328
|
+
$,
|
|
329
|
+
N,
|
|
330
|
+
k,
|
|
331
|
+
M
|
|
332
|
+
]), {
|
|
333
|
+
chartDivRef: T,
|
|
320
334
|
data: u,
|
|
321
|
-
chartId:
|
|
322
|
-
loading:
|
|
323
|
-
emptyMessage:
|
|
324
|
-
sx:
|
|
325
|
-
other:
|
|
326
|
-
ownerState:
|
|
335
|
+
chartId: E,
|
|
336
|
+
loading: U,
|
|
337
|
+
emptyMessage: B,
|
|
338
|
+
sx: he,
|
|
339
|
+
other: de,
|
|
340
|
+
ownerState: me
|
|
327
341
|
};
|
|
328
342
|
};
|
|
329
343
|
export {
|
|
330
|
-
|
|
344
|
+
at as useForecastConeChartLogic
|
|
331
345
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { R as J, A as K } from "../../../AnimatedTheme-
|
|
1
|
+
import { R as J, A as K } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as Q, useTheme as Z } from "@mui/material";
|
|
3
3
|
import ee from "dayjs";
|
|
4
4
|
import T from "lodash";
|
|
5
5
|
import { useId as te, useRef as re, useEffect as ae } from "react";
|
|
6
6
|
import { applyValueFormat as ie, colorSetFromPalette as se } from "../_common/utils.js";
|
|
7
|
-
import { m as E, f as oe, C as S, b as u, p as P, c as Y } from "../../../Entity-
|
|
8
|
-
import { X as ne } from "../../../AxisRenderer-
|
|
9
|
-
import { A as le, a as he } from "../../../AxisRendererY-
|
|
10
|
-
import { C as R } from "../../../CategoryAxis-
|
|
11
|
-
import { C as L, L as U, a as ce, b as ue, T as W } from "../../../Tooltip-
|
|
12
|
-
import { R as de } from "../../../RoundedRectangle-
|
|
13
|
-
import { L as me } from "../../../LinearGradient-
|
|
14
|
-
import { C as pe } from "../../../ColumnSeries-
|
|
7
|
+
import { m as E, f as oe, C as S, b as u, p as P, c as Y } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { X as ne } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
9
|
+
import { A as le, a as he } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
10
|
+
import { C as R } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
11
|
+
import { C as L, L as U, a as ce, b as ue, T as W } from "../../../Tooltip-vyZRZWih.js";
|
|
12
|
+
import { R as de } from "../../../RoundedRectangle-BKLX1LKM.js";
|
|
13
|
+
import { L as me } from "../../../LinearGradient-CxQyCSEB.js";
|
|
14
|
+
import { C as pe } from "../../../ColumnSeries-CtRTsn-E.js";
|
|
15
15
|
class _ extends L {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments), Object.defineProperty(this, "labelContainer", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { R as I, A as W } from "../../../AnimatedTheme-
|
|
1
|
+
import { R as I, A as W } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as z } from "@mui/material";
|
|
3
3
|
import { useRef as d, useLayoutEffect as S } from "react";
|
|
4
|
-
import { X as F, V } from "../../../AxisRenderer-
|
|
5
|
-
import { X as G } from "../../../XYCursor-
|
|
6
|
-
import { D as M } from "../../../DateAxis-
|
|
7
|
-
import { A as N, a as P } from "../../../AxisRendererY-
|
|
8
|
-
import { C as U } from "../../../ColorSet-
|
|
9
|
-
import { c as Z, p as w } from "../../../Entity-
|
|
10
|
-
import { L as j } from "../../../LineSeries-
|
|
11
|
-
import { T as q } from "../../../Tooltip-
|
|
12
|
-
import { L as B } from "../../../Legend-
|
|
4
|
+
import { X as F, V } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
5
|
+
import { X as G } from "../../../XYCursor-CVUSpqb9.js";
|
|
6
|
+
import { D as M } from "../../../DateAxis-DEXKps1S.js";
|
|
7
|
+
import { A as N, a as P } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
8
|
+
import { C as U } from "../../../ColorSet-cyPmWGwh.js";
|
|
9
|
+
import { c as Z, p as w } from "../../../Entity-BJCuhdq_.js";
|
|
10
|
+
import { L as j } from "../../../LineSeries-D_IL2qGF.js";
|
|
11
|
+
import { T as q } from "../../../Tooltip-vyZRZWih.js";
|
|
12
|
+
import { L as B } from "../../../Legend-CFvQiIfn.js";
|
|
13
13
|
const ie = (v) => {
|
|
14
14
|
const u = z({
|
|
15
15
|
props: v,
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { R as H, T as Z, A as $ } from "../../../AnimatedTheme-
|
|
1
|
+
import { R as H, T as Z, A as $ } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as j, useTheme as q } from "@mui/material";
|
|
3
3
|
import U from "lodash";
|
|
4
4
|
import { useId as J, useRef as K, useEffect as Q } from "react";
|
|
5
5
|
import { humanizeLabel as ee } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as te } from "../_common/tooltip.js";
|
|
7
7
|
import { colorSetFromPalette as re, applyValueFormat as se } from "../_common/utils.js";
|
|
8
|
-
import { c as p, p as X, b as V } from "../../../Entity-
|
|
9
|
-
import { X as oe, V as ae } from "../../../AxisRenderer-
|
|
10
|
-
import { A as _, a as ie } from "../../../AxisRendererY-
|
|
11
|
-
import { C as ne } from "../../../CategoryAxis-
|
|
12
|
-
import { L as le } from "../../../LineSeries-
|
|
13
|
-
import { D as me } from "../../../
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { X as
|
|
17
|
-
import { L as
|
|
18
|
-
import {
|
|
19
|
-
import { D as he } from "../../../DateAxis-lJZjbAS-.js";
|
|
8
|
+
import { c as p, p as X, b as V } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as oe, V as ae } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { A as _, a as ie } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
11
|
+
import { C as ne } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
12
|
+
import { L as le } from "../../../LineSeries-D_IL2qGF.js";
|
|
13
|
+
import { D as me, G as de } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
14
|
+
import { B as pe } from "../../../Bullet-Djj7Vs9T.js";
|
|
15
|
+
import { C as ce } from "../../../Circle-BnfBNKBD.js";
|
|
16
|
+
import { X as ue } from "../../../XYCursor-CVUSpqb9.js";
|
|
17
|
+
import { L as fe } from "../../../Legend-CFvQiIfn.js";
|
|
18
|
+
import { D as he } from "../../../DateAxis-DEXKps1S.js";
|
|
20
19
|
const B = 1.1, ge = {
|
|
21
20
|
millisecond: 1,
|
|
22
21
|
second: 1e3,
|
|
@@ -26,7 +25,7 @@ const B = 1.1, ge = {
|
|
|
26
25
|
week: 6048e5,
|
|
27
26
|
month: 2592e6,
|
|
28
27
|
year: 31536e6
|
|
29
|
-
},
|
|
28
|
+
}, Ve = (E) => {
|
|
30
29
|
const b = j({ props: E, name: "HCLineChart" }), {
|
|
31
30
|
dimensions: t,
|
|
32
31
|
values: m,
|
|
@@ -68,7 +67,7 @@ const B = 1.1, ge = {
|
|
|
68
67
|
s.set("colors", re(e, L));
|
|
69
68
|
let n, c = g;
|
|
70
69
|
if (t[0].type === "date") {
|
|
71
|
-
const o = v ?
|
|
70
|
+
const o = v ? de : he;
|
|
72
71
|
n = s.xAxes.push(
|
|
73
72
|
o.new(e, {
|
|
74
73
|
maxDeviation: 0.1,
|
|
@@ -130,8 +129,8 @@ const B = 1.1, ge = {
|
|
|
130
129
|
}), D.size > 0 && a.bullets.push((r, f, F) => {
|
|
131
130
|
const h = F.dataContext;
|
|
132
131
|
if (D.has(new Date(h == null ? void 0 : h[y]).getTime()))
|
|
133
|
-
return
|
|
134
|
-
sprite:
|
|
132
|
+
return pe.new(r, {
|
|
133
|
+
sprite: ce.new(r, {
|
|
135
134
|
radius: 3,
|
|
136
135
|
fill: a.get("fill"),
|
|
137
136
|
stroke: r.interfaceColors.get("background"),
|
|
@@ -143,7 +142,7 @@ const B = 1.1, ge = {
|
|
|
143
142
|
a.data.setAll(c), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
|
|
144
143
|
}), s.set(
|
|
145
144
|
"cursor",
|
|
146
|
-
|
|
145
|
+
ue.new(e, { xAxis: n, behavior: "none" })
|
|
147
146
|
).lineY.set("visible", !1), te({
|
|
148
147
|
root: e,
|
|
149
148
|
chart: s,
|
|
@@ -154,7 +153,7 @@ const B = 1.1, ge = {
|
|
|
154
153
|
follow: !0
|
|
155
154
|
});
|
|
156
155
|
const u = s.bottomAxesContainer.children.push(
|
|
157
|
-
|
|
156
|
+
fe.new(e, {
|
|
158
157
|
width: X(100),
|
|
159
158
|
paddingTop: 10,
|
|
160
159
|
centerX: X(50),
|
|
@@ -200,5 +199,5 @@ const B = 1.1, ge = {
|
|
|
200
199
|
return { chartId: N, ownerState: S, sx: R, error: A, other: W };
|
|
201
200
|
};
|
|
202
201
|
export {
|
|
203
|
-
|
|
202
|
+
Ve as useLineChartLogic
|
|
204
203
|
};
|