@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.
Files changed (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,18 +1,18 @@
1
- import { R as ye, A as ge } from "../../../AnimatedTheme-D3VZKKNV.js";
2
- import { useTheme as we, useThemeProps as xe } from "@mui/material";
3
- import Fe from "lodash";
4
- import { useRef as j, useLayoutEffect as Ae } from "react";
5
- import { getTooltipDateFormat as Ne, attachCursorTooltip as ke } from "../_common/tooltip.js";
6
- import { applyValueFormat as De } from "../_common/utils.js";
7
- import { c as d, a as se } from "../../../Entity-4Lr2piVN.js";
8
- import { X as Te, V as Oe } from "../../../AxisRenderer-Doyw-FTI.js";
9
- import { X as Xe } from "../../../XYCursor-Z-Ral42q.js";
10
- import { D as Ie } from "../../../DateAxis-lJZjbAS-.js";
11
- import { A as Pe, a as Ce } from "../../../AxisRendererY-BylCU67e.js";
12
- import { L as Ye } from "../../../Legend-CTb6rZz_.js";
13
- import { L } from "../../../LineSeries-Dg1aytHA.js";
14
- import { D as je } from "../../../DataProcessor-WXzhvIg6.js";
15
- class Se {
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
- S(this, this._t0, ne(this, this._t0));
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, S(this, ne(this, o = ae(this, e, s)), o);
95
+ this._point = 3, L(this, ue(this, o = le(this, e, s)), o);
96
96
  break;
97
97
  default:
98
- S(this, this._t0, o = ae(this, e, s));
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 oe(r) {
105
+ function ae(r) {
106
106
  function e(s) {
107
- return new Se(s, r);
107
+ return new Me(s, r);
108
108
  }
109
109
  return e;
110
110
  }
111
- function ie(r) {
111
+ function ne(r) {
112
112
  return r < 0 ? -1 : 1;
113
113
  }
114
- function ae(r, e, s) {
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 (ie(a) + ie(n)) * Math.min(Math.abs(a), Math.abs(n), 0.5 * Math.abs(p)) || 0;
116
+ return (ne(a) + ne(n)) * Math.min(Math.abs(a), Math.abs(n), 0.5 * Math.abs(p)) || 0;
117
117
  }
118
- function ne(r, e) {
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 S(r, e, s) {
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 w extends L {
126
+ class x extends R {
127
127
  _afterNew() {
128
- this._setDefault("curveFactory", oe(this.get("tension", 0.5))), super._afterNew();
128
+ this._setDefault("curveFactory", ae(this.get("tension", 0.5))), super._afterNew();
129
129
  }
130
130
  _updateChildren() {
131
- this.isDirty("tension") && (this.set("curveFactory", oe(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
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(w, "className", {
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(w, "classNames", {
140
+ Object.defineProperty(x, "classNames", {
141
141
  enumerable: !0,
142
142
  configurable: !0,
143
143
  writable: !0,
144
- value: L.classNames.concat([w.className])
144
+ value: R.classNames.concat([x.className])
145
145
  });
146
- const Le = [
146
+ const Ve = [
147
147
  { lowerField: "low95", upperField: "high95", label: "95% expected move" },
148
148
  { lowerField: "low68", upperField: "high68", label: "68% expected move" }
149
- ], Re = [0.15, 0.3, 0.45], $e = {
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
- }, tt = (r) => {
159
- const e = we(), s = xe({ props: r, name: "HCForecastCone" }), {
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 = Le,
165
- nowValue: k,
166
- color: R = e.palette.warning.main,
167
- baseInterval: $,
168
- chartId: V = "forecast-cone-chart",
169
- height: le = "100%",
170
- width: ue = "100%",
171
- loading: M = !1,
172
- emptyMessage: E = "No data available",
173
- sx: ce,
174
- ...pe
175
- } = s, u = Fe.orderBy(o, [l]).map((t) => ({ ...t })), y = u.findIndex(
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 he = {
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: le,
182
- width: ue,
183
- chartId: V,
184
- loading: M,
185
- emptyMessage: E,
186
- baseInterval: $
187
- }, B = j(null), H = j(null), D = j(null);
188
- return Ae(() => {
189
- var q, G, J;
190
- if (!D.current) return;
191
- const t = ye.new(D.current);
192
- H.current = t, t.setThemes([ge.new(t)]), t.interfaceColors.setAll({
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
- }), De(t);
198
+ }), Ce(t);
197
199
  const c = t.container.children.push(
198
- Te.new(t, {
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
- B.current = c, c.set(
210
+ H.current = c, c.set(
209
211
  "cursor",
210
- Xe.new(t, { behavior: "none" })
212
+ Ie.new(t, { behavior: "none" })
211
213
  ).lineY.set("visible", !1);
212
- const x = $ ?? { timeUnit: "hour", count: 1 }, _ = c.xAxes.push(
213
- Ie.new(t, {
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: x,
217
- renderer: Pe.new(t, {})
218
+ baseInterval: w,
219
+ renderer: Ye.new(t, {})
218
220
  })
219
221
  );
220
- (q = _.get("renderer")) == null || q.grid.template.setAll({
222
+ (J = _.get("renderer")) == null || J.grid.template.setAll({
221
223
  stroke: d(e.palette.divider),
222
224
  strokeOpacity: 1
223
225
  });
224
- const F = c.yAxes.push(
225
- Oe.new(t, {
226
- renderer: Ce.new(t, {})
226
+ const A = c.yAxes.push(
227
+ Pe.new(t, {
228
+ renderer: je.new(t, {})
227
229
  })
228
230
  );
229
- (G = F.get("renderer")) == null || G.grid.template.setAll({
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 A = d(R), de = c.children.push(
234
- Ye.new(t, { centerX: se, x: se })
235
- ), T = () => je.new(t, { dateFormat: "i", dateFields: [l] }), O = [];
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
- w.new(t, {
240
+ x.new(t, {
239
241
  name: i.label ?? `Band ${f + 1}`,
240
242
  xAxis: _,
241
- yAxis: F,
243
+ yAxis: A,
242
244
  valueYField: i.upperField,
243
245
  openValueYField: i.lowerField,
244
246
  valueXField: l,
245
- fill: A,
246
- stroke: A
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: A,
252
- fillOpacity: i.fillOpacity ?? Re[f] ?? 0.2
253
- }), h.data.processor = T(), h.data.setAll(u), O.push(h);
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
- w.new(t, {
259
+ x.new(t, {
258
260
  name: "Forecast centre",
259
261
  xAxis: _,
260
- yAxis: F,
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 = T(), m.data.setAll(u));
269
- const N = c.series.push(
270
- L.new(t, {
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: F,
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
- N.strokes.template.setAll({ strokeWidth: 2 }), N.data.processor = T(), N.data.setAll(u), de.data.setAll(c.series.values);
280
- const U = u.findIndex(
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
- ), me = [...u].reverse().find(
288
+ ), be = [...u].reverse().find(
283
289
  (i) => i[a] !== null && i[a] !== void 0
284
- ), W = U >= 0 ? u[U] : me, z = k !== void 0 ? new Date(k).getTime() : W ? new Date(W[l]).getTime() : NaN, fe = ($e[x.timeUnit] ?? 0) * x.count / 2, Z = Number.isNaN(z) ? NaN : z + fe;
285
- Number.isNaN(Z) || (J = _.createAxisRange(
286
- _.makeDataItem({ value: Z })
287
- ).get("grid")) == null || J.setAll({
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 _e = Ne(x);
294
- return ke({
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 ee;
300
- const i = (g) => g == null ? "—" : t.numberFormatter.format(g), f = N.get("tooltipDataItem"), h = m == null ? void 0 : m.get("tooltipDataItem"), X = h ?? f ?? ((ee = O[0]) == null ? void 0 : ee.get("tooltipDataItem")), K = X == null ? void 0 : X.get("valueX"), Q = typeof K == "number" ? t.dateFormatter.format(new Date(K), _e) : "", b = [], I = f == null ? void 0 : f.get("valueY");
301
- I != null && b.push(`History: ${i(I)}`);
302
- const P = h == null ? void 0 : h.get("valueY");
303
- return P != null && b.push(`Centre: ${i(P)}`), p.forEach((g, te) => {
304
- var re;
305
- const v = (re = O[te]) == null ? void 0 : re.get("tooltipDataItem"), C = v == null ? void 0 : v.get("valueY"), Y = v == null ? void 0 : v.get("openValueY");
306
- if (C != null && Y !== void 0 && Y !== null) {
307
- const be = (C - Y) / 2, ve = g.label ?? `Band ${te + 1}`;
308
- b.push(`[${A.toCSSHex()}]●[/] ${ve}: ±${i(be)}`);
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 ? "" : Q ? `[bold]${Q}[/]
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(), H.current = null, B.current = null;
322
+ t.dispose(), G.current = null, H.current = null;
317
323
  };
318
- }, [e.palette.mode, o, p, R, k]), {
319
- chartDivRef: D,
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: V,
322
- loading: M,
323
- emptyMessage: E,
324
- sx: ce,
325
- other: pe,
326
- ownerState: he
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
- tt as useForecastConeChartLogic
344
+ at as useForecastConeChartLogic
331
345
  };
@@ -1,17 +1,17 @@
1
- import { R as J, A as K } from "../../../AnimatedTheme-D3VZKKNV.js";
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-4Lr2piVN.js";
8
- import { X as ne } from "../../../AxisRenderer-Doyw-FTI.js";
9
- import { A as le, a as he } from "../../../AxisRendererY-BylCU67e.js";
10
- import { C as R } from "../../../CategoryAxis-B5uTZjhL.js";
11
- import { C as L, L as U, a as ce, b as ue, T as W } from "../../../Tooltip-RhAldW7s.js";
12
- import { R as de } from "../../../RoundedRectangle-B23Oh_r6.js";
13
- import { L as me } from "../../../LinearGradient-D1hzMjaW.js";
14
- import { C as pe } from "../../../ColumnSeries-CqJ-563p.js";
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-D3VZKKNV.js";
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-Doyw-FTI.js";
5
- import { X as G } from "../../../XYCursor-Z-Ral42q.js";
6
- import { D as M } from "../../../DateAxis-lJZjbAS-.js";
7
- import { A as N, a as P } from "../../../AxisRendererY-BylCU67e.js";
8
- import { C as U } from "../../../ColorSet-DGLMpbL3.js";
9
- import { c as Z, p as w } from "../../../Entity-4Lr2piVN.js";
10
- import { L as j } from "../../../LineSeries-Dg1aytHA.js";
11
- import { T as q } from "../../../Tooltip-RhAldW7s.js";
12
- import { L as B } from "../../../Legend-CTb6rZz_.js";
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-D3VZKKNV.js";
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-4Lr2piVN.js";
9
- import { X as oe, V as ae } from "../../../AxisRenderer-Doyw-FTI.js";
10
- import { A as _, a as ie } from "../../../AxisRendererY-BylCU67e.js";
11
- import { C as ne } from "../../../CategoryAxis-B5uTZjhL.js";
12
- import { L as le } from "../../../LineSeries-Dg1aytHA.js";
13
- import { D as me } from "../../../DataProcessor-WXzhvIg6.js";
14
- import { B as de } from "../../../Bullet-C6357hTv.js";
15
- import { C as pe } from "../../../Circle-DhzVdFBd.js";
16
- import { X as ce } from "../../../XYCursor-Z-Ral42q.js";
17
- import { L as ue } from "../../../Legend-CTb6rZz_.js";
18
- import { G as fe } from "../../../GaplessDateAxis-DowssQ6y.js";
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
- }, _e = (E) => {
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 ? fe : he;
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 de.new(r, {
134
- sprite: pe.new(r, {
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
- ce.new(e, { xAxis: n, behavior: "none" })
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
- ue.new(e, {
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
- _e as useLineChartLogic
202
+ Ve as useLineChartLogic
204
203
  };