@hybridcore/ui 1.6.14 → 1.6.17

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/CATALOG.md CHANGED
@@ -117,6 +117,7 @@ import { ComponentName } from '@hybridcore/ui';
117
117
  | Loading | HCLoading | Centered circular spinner with optional overlay | loading, spinner |
118
118
  | StatsBox | HCStatsBox | Label + value + icon stat tile | stats, indicator |
119
119
  | MetricCard | HCMetricCard | KPI card with value, change, trend, and inline mini-chart | metric, kpi, card, chart |
120
+ | StatusIndicator | HCStatusIndicator | Maps a categorical/enum value to a configurable label, color, and icon | status, indicator, enum, badge |
120
121
  | TimelineWidget | HCTimeline | Vertical timeline list with dots + load-more | timeline, list, history |
121
122
  | TextOverflow | HCTextOverflow | Text with ellipsis + native tooltip on overflow | text, overflow, ellipsis |
122
123
  | StaticText | HCStaticText | Themed renderer for static HTML content (headings, lists, links) | text, html, static |
@@ -0,0 +1,11 @@
1
+ import { c } from "./createReactComponent-C7L-DMHj.js";
2
+ /**
3
+ * @license @tabler/icons-react v3.44.0 - MIT
4
+ *
5
+ * This source code is licensed under the MIT license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }]], t = c("outline", "circle", "Circle", e);
9
+ export {
10
+ t as I
11
+ };
@@ -0,0 +1,11 @@
1
+ import { c as o } from "./createReactComponent-C7L-DMHj.js";
2
+ /**
3
+ * @license @tabler/icons-react v3.44.0 - MIT
4
+ *
5
+ * This source code is licensed under the MIT license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const n = [["path", { d: "M5 12l14 0", key: "svg-0" }]], e = o("outline", "minus", "Minus", n);
9
+ export {
10
+ e as I
11
+ };
@@ -0,0 +1,11 @@
1
+ import { c as o } from "./createReactComponent-C7L-DMHj.js";
2
+ /**
3
+ * @license @tabler/icons-react v3.44.0 - MIT
4
+ *
5
+ * This source code is licensed under the MIT license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const t = [["path", { d: "M12 5l0 14", key: "svg-0" }], ["path", { d: "M5 12l14 0", key: "svg-1" }]], s = o("outline", "plus", "Plus", t);
9
+ export {
10
+ s as I
11
+ };
@@ -0,0 +1,27 @@
1
+ import { c as n } from "./createReactComponent-C7L-DMHj.js";
2
+ /**
3
+ * @license @tabler/icons-react v3.44.0 - MIT
4
+ *
5
+ * This source code is licensed under the MIT license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const o = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], r = n("outline", "arrow-right", "ArrowRight", o);
9
+ /**
10
+ * @license @tabler/icons-react v3.44.0 - MIT
11
+ *
12
+ * This source code is licensed under the MIT license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ const t = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], s = n("outline", "trending-down", "TrendingDown", t);
16
+ /**
17
+ * @license @tabler/icons-react v3.44.0 - MIT
18
+ *
19
+ * This source code is licensed under the MIT license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */
22
+ const e = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], g = n("outline", "trending-up", "TrendingUp", e);
23
+ export {
24
+ r as I,
25
+ g as a,
26
+ s as b
27
+ };
@@ -1,6 +1,6 @@
1
- import { T as x } from "../../../Tooltip-vyZRZWih.js";
2
- import { c as p, p as v } from "../../../Entity-BJCuhdq_.js";
3
- const F = {
1
+ import { T } from "../../../Tooltip-vyZRZWih.js";
2
+ import { c as p, p as S } from "../../../Entity-BJCuhdq_.js";
3
+ const w = {
4
4
  millisecond: "d MMM, yyyy HH:mm:ss.SSS",
5
5
  second: "d MMM, yyyy HH:mm:ss",
6
6
  minute: "d MMM, yyyy HH:mm",
@@ -9,7 +9,7 @@ const F = {
9
9
  week: "d MMM, yyyy",
10
10
  month: "MMM yyyy",
11
11
  year: "yyyy"
12
- }, $ = (o) => F[(o == null ? void 0 : o.timeUnit) ?? "day"], T = (o, t) => {
12
+ }, A = (o) => w[(o == null ? void 0 : o.timeUnit) ?? "day"], F = (o, t) => {
13
13
  var i;
14
14
  (i = o.get("background")) == null || i.setAll({
15
15
  fill: p(t.palette.background.paper),
@@ -18,56 +18,65 @@ const F = {
18
18
  }), o.label.setAll({
19
19
  fill: p(t.palette.text.primary),
20
20
  textAlign: "left",
21
- lineHeight: v(160)
21
+ lineHeight: S(160)
22
22
  });
23
- }, D = (o) => {
24
- const { root: t, chart: i, theme: s, getText: y } = o, e = x.new(t, { getFillFromSprite: !1 });
25
- T(e, s), e.label.adapters.add("text", y), t.tooltipContainer.children.push(e);
26
- const n = i.get("cursor");
27
- return n == null || n.events.on("cursormoved", () => {
28
- const c = n.getPrivate("point");
29
- c && (e.label.text.markDirtyText(), e.set("pointTo", n.toGlobal(c)), e.show());
30
- }), n == null || n.events.on("cursorhidden", () => e.hide()), e;
31
- }, A = (o) => {
32
- const { root: t, chart: i, xAxis: s, theme: y, isDateAxis: e, baseInterval: n, follow: c } = o, f = $(n), b = p(y.palette.text.secondary).toCSSHex(), g = () => {
33
- let l = "";
23
+ }, k = (o) => {
24
+ const { root: t, chart: i, theme: s, getText: c } = o, e = T.new(t, { getFillFromSprite: !1 });
25
+ F(e, s), e.label.adapters.add("text", c), t.tooltipContainer.children.push(e);
26
+ const a = i.get("cursor");
27
+ return a == null || a.events.on("cursormoved", () => {
28
+ const y = a.getPrivate("point");
29
+ y && (e.label.text.markDirtyText(), e.set("pointTo", a.toGlobal(y)), e.show());
30
+ }), a == null || a.events.on("cursorhidden", () => e.hide()), e;
31
+ }, O = (o) => {
32
+ const {
33
+ root: t,
34
+ chart: i,
35
+ xAxis: s,
36
+ theme: c,
37
+ isDateAxis: e,
38
+ baseInterval: a,
39
+ follow: y,
40
+ horizontal: u
41
+ } = o, g = A(a), v = p(c.palette.text.secondary).toCSSHex(), b = u ? "valueX" : "valueY", H = u ? "valueY" : "valueX", $ = u ? "categoryY" : "categoryX", M = () => {
42
+ let n = "";
34
43
  const m = [];
35
44
  if (i.series.each((r) => {
36
- const a = r.get("tooltipDataItem"), u = a == null ? void 0 : a.get("valueY");
37
- if (a === void 0 || u === void 0 || u === null)
45
+ const l = r.get("tooltipDataItem"), f = l == null ? void 0 : l.get(b);
46
+ if (l === void 0 || f === void 0 || f === null)
38
47
  return;
39
- if (!l)
48
+ if (!n)
40
49
  if (e) {
41
- const h = a.get("valueX");
42
- typeof h == "number" && (l = t.dateFormatter.format(new Date(h), f));
50
+ const x = l.get(H);
51
+ typeof x == "number" && (n = t.dateFormatter.format(new Date(x), g));
43
52
  } else
44
- l = `${a.get("categoryX") ?? ""}`;
45
- const M = r.get("fill") ?? r.get("stroke"), H = M ? `[${M.toCSSHex()}]●[/] ` : "";
53
+ n = `${l.get($) ?? ""}`;
54
+ const h = r.get("fill") ?? r.get("stroke"), D = h ? `[${h.toCSSHex()}]●[/] ` : "";
46
55
  m.push(
47
- `${H}${r.get("name")}: ${t.numberFormatter.format(u)}`
56
+ `${D}${r.get("name")}: ${t.numberFormatter.format(f)}`
48
57
  );
49
58
  }), m.length === 0) {
50
59
  if (e) {
51
- const a = s.positionToValue(
60
+ const l = s.positionToValue(
52
61
  s.getPrivate("tooltipPosition", 0)
53
62
  );
54
- typeof a == "number" && !Number.isNaN(a) && (l = t.dateFormatter.format(new Date(a), f));
63
+ typeof l == "number" && !Number.isNaN(l) && (n = t.dateFormatter.format(new Date(l), g));
55
64
  }
56
- const r = `[${b}]No data[/]`;
57
- return l ? `[bold]${l}[/]
65
+ const r = `[${v}]No data[/]`;
66
+ return n ? `[bold]${n}[/]
58
67
  ${r}` : r;
59
68
  }
60
- return l ? `[bold]${l}[/]
69
+ return n ? `[bold]${n}[/]
61
70
  ${m.join(`
62
71
  `)}` : m.join(`
63
72
  `);
64
73
  };
65
- if (c) return D({ root: t, chart: i, theme: y, getText: g });
66
- const d = x.new(t, { getFillFromSprite: !1 });
67
- return T(d, y), d.label.adapters.add("text", g), s.set("tooltip", d), d;
74
+ if (y) return k({ root: t, chart: i, theme: c, getText: M });
75
+ const d = T.new(t, { getFillFromSprite: !1 });
76
+ return F(d, c), d.label.adapters.add("text", M), s.set("tooltip", d), d;
68
77
  };
69
78
  export {
70
- A as attachCombinedAxisTooltip,
71
- D as attachCursorTooltip,
72
- $ as getTooltipDateFormat
79
+ O as attachCombinedAxisTooltip,
80
+ k as attachCursorTooltip,
81
+ A as getTooltipDateFormat
73
82
  };
@@ -1,6 +1,6 @@
1
- import { buildAmNumberFormat as o } from "./format.js";
2
- import { C as t } from "../../../ColorSet-cyPmWGwh.js";
3
- import { c as u } from "../../../Entity-BJCuhdq_.js";
1
+ import { buildAmNumberFormat as u, formatDateValue as s } from "./format.js";
2
+ import { C as F } from "../../../ColorSet-cyPmWGwh.js";
3
+ import { c as l } from "../../../Entity-BJCuhdq_.js";
4
4
  const n = [
5
5
  "#294D94",
6
6
  "#375F97",
@@ -12,20 +12,30 @@ const n = [
12
12
  "#9FCFBF",
13
13
  "#B9E1C9",
14
14
  "#D6F1D5"
15
- ], c = (r, e = n) => t.new(r, {
16
- colors: e.map((m) => u(m)),
15
+ ], i = (r, e = n) => F.new(r, {
16
+ colors: e.map((t) => l(t)),
17
17
  reuse: !0
18
- }), s = [
18
+ }), b = [
19
19
  { number: 1e3, suffix: "K" },
20
20
  { number: 1e6, suffix: "M" },
21
21
  { number: 1e9, suffix: "B" },
22
22
  { number: 1e12, suffix: "T" }
23
- ], a = (r, e) => {
24
- const m = o(e) ?? "#,###.##";
25
- r.numberFormatter.set("numericFields", void 0), r.numberFormatter.set("numberFormat", m), (e == null ? void 0 : e.notation) === "compact" && r.numberFormatter.set("bigNumberPrefixes", s);
23
+ ], d = (r, e) => {
24
+ const t = u(e) ?? "#,###.##";
25
+ r.numberFormatter.set("numericFields", void 0), r.numberFormatter.set("numberFormat", t), (e == null ? void 0 : e.notation) === "compact" && r.numberFormatter.set("bigNumberPrefixes", b);
26
+ }, x = (r, e) => {
27
+ e.type !== "date" || !e.dateFormat || r.get("renderer").labels.template.adapters.add(
28
+ "text",
29
+ (t, a) => {
30
+ var o;
31
+ const m = (o = a == null ? void 0 : a.dataItem) == null ? void 0 : o.get("value");
32
+ return typeof m == "number" ? s(m, e.dateFormat, e.value) : t;
33
+ }
34
+ );
26
35
  };
27
36
  export {
28
37
  n as DEFAULT_VIRIDIS_COOL,
29
- a as applyValueFormat,
30
- c as colorSetFromPalette
38
+ x as applyDateAxisLabelFormat,
39
+ d as applyValueFormat,
40
+ i as colorSetFromPalette
31
41
  };
@@ -1,46 +1,47 @@
1
- import { jsxs as a, jsx as r, Fragment as l } from "react/jsx-runtime";
2
- import { Typography as C, Divider as h } from "@mui/material";
3
- import { Loading as c } from "../../loading/index.js";
4
- import { CandlestickChart as d } from "../candlestick/index.js";
5
- import { ColumnLineMix as f } from "../column-line-mix/index.js";
6
- import { DonutChart as s } from "../donut-chart/index.js";
7
- import { DrillDownTreemap as u } from "../drill-down-treemap/index.js";
8
- import { DrillDownVoronoiTreemap as D } from "../drill-down-voronoi-treemap/index.js";
9
- import { ForecastConeChart as L } from "../forecast-cone/index.js";
10
- import { Heatmap as g } from "../heatmap/index.js";
11
- import { LineChart as x } from "../line/index.js";
12
- import { LogaritmicScale as k } from "../logaritmic-scale/index.js";
13
- import { MultipleValueAxes as S } from "../multiple-value-axes/index.js";
14
- import { NestedPie as P } from "../nested-pie/index.js";
15
- import { PackedCircles as w } from "../packed-circles/index.js";
16
- import { PieChart as A } from "../pie-chart/index.js";
17
- import { StackedAreaRadar as T } from "../stacked-area-radar/index.js";
18
- import { StackedColumnChart as W } from "../stacked-column-chart/index.js";
19
- import { XYChart as M } from "../xy-chart/index.js";
20
- import { useChartWrapperLogic as V } from "./logic.js";
21
- import { ChartWrapperRoot as v, ChartWrapperHeader as y, ChartWrapperContent as F } from "./styled.js";
22
- const rr = (i) => {
23
- const { title: m, type: o, chartProps: e, loading: p, ownerState: t, sx: n } = V(i);
24
- return /* @__PURE__ */ a(v, { ownerState: t, sx: n, children: [
25
- /* @__PURE__ */ r(y, { ownerState: t, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
26
- /* @__PURE__ */ r(h, {}),
27
- /* @__PURE__ */ r(F, { ownerState: t, children: p ? /* @__PURE__ */ r(c, { show: !0, position: "absolute" }) : /* @__PURE__ */ a(l, { children: [
28
- o === "MultipleValueAxes" && /* @__PURE__ */ r(S, { ...e }),
29
- o === "XYChart" && /* @__PURE__ */ r(M, { ...e }),
30
- o === "HeatLegend" && /* @__PURE__ */ r(g, { ...e }),
31
- o === "PieChart" && /* @__PURE__ */ r(A, { ...e }),
32
- o === "DonutChart" && /* @__PURE__ */ r(s, { ...e }),
33
- o === "StackedColumnChart" && /* @__PURE__ */ r(W, { ...e }),
34
- o === "StackedAreaRadar" && /* @__PURE__ */ r(T, { ...e }),
35
- o === "LineChart" && /* @__PURE__ */ r(x, { ...e }),
36
- o === "NestedPie" && /* @__PURE__ */ r(P, { ...e }),
37
- o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(w, { ...e }),
38
- o === "LogarithmicScale" && /* @__PURE__ */ r(k, { ...e }),
39
- o === "ColumnAndLineMix" && /* @__PURE__ */ r(f, { ...e }),
40
- o === "DrillDownTreemap" && /* @__PURE__ */ r(u, { ...e }),
41
- o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(D, { ...e }),
42
- o === "CandlestickChart" && /* @__PURE__ */ r(d, { ...e }),
43
- o === "ForecastCone" && /* @__PURE__ */ r(L, { ...e })
1
+ import { jsxs as a, jsx as r, Fragment as h } from "react/jsx-runtime";
2
+ import { Typography as C, Divider as c } from "@mui/material";
3
+ import { Loading as d } from "../../loading/index.js";
4
+ import { CandlestickChart as f } from "../candlestick/index.js";
5
+ import { ColumnLineMix as s } from "../column-line-mix/index.js";
6
+ import { DonutChart as u } from "../donut-chart/index.js";
7
+ import { DrillDownTreemap as D } from "../drill-down-treemap/index.js";
8
+ import { DrillDownVoronoiTreemap as L } from "../drill-down-voronoi-treemap/index.js";
9
+ import { ForecastConeChart as g } from "../forecast-cone/index.js";
10
+ import { Heatmap as x } from "../heatmap/index.js";
11
+ import { LineChart as k } from "../line/index.js";
12
+ import { LogaritmicScale as S } from "../logaritmic-scale/index.js";
13
+ import { MultipleValueAxes as P } from "../multiple-value-axes/index.js";
14
+ import { NestedPie as w } from "../nested-pie/index.js";
15
+ import { PackedCircles as A } from "../packed-circles/index.js";
16
+ import { PieChart as T } from "../pie-chart/index.js";
17
+ import { StackedAreaRadar as W } from "../stacked-area-radar/index.js";
18
+ import { StackedColumnChart as H } from "../stacked-column-chart/index.js";
19
+ import { XYChart as i } from "../xy-chart/index.js";
20
+ import { useChartWrapperLogic as M } from "./logic.js";
21
+ import { ChartWrapperRoot as V, ChartWrapperHeader as v, ChartWrapperContent as y } from "./styled.js";
22
+ const rr = (m) => {
23
+ const { title: p, type: o, chartProps: t, loading: n, ownerState: e, sx: l } = M(m);
24
+ return /* @__PURE__ */ a(V, { ownerState: e, sx: l, children: [
25
+ /* @__PURE__ */ r(v, { ownerState: e, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: p }) }),
26
+ /* @__PURE__ */ r(c, {}),
27
+ /* @__PURE__ */ r(y, { ownerState: e, children: n ? /* @__PURE__ */ r(d, { show: !0, position: "absolute" }) : /* @__PURE__ */ a(h, { children: [
28
+ o === "MultipleValueAxes" && /* @__PURE__ */ r(P, { ...t }),
29
+ o === "XYChart" && /* @__PURE__ */ r(i, { ...t }),
30
+ o === "XYChartHorizontal" && /* @__PURE__ */ r(i, { ...t, orientation: "horizontal" }),
31
+ o === "HeatLegend" && /* @__PURE__ */ r(x, { ...t }),
32
+ o === "PieChart" && /* @__PURE__ */ r(T, { ...t }),
33
+ o === "DonutChart" && /* @__PURE__ */ r(u, { ...t }),
34
+ o === "StackedColumnChart" && /* @__PURE__ */ r(H, { ...t }),
35
+ o === "StackedAreaRadar" && /* @__PURE__ */ r(W, { ...t }),
36
+ o === "LineChart" && /* @__PURE__ */ r(k, { ...t }),
37
+ o === "NestedPie" && /* @__PURE__ */ r(w, { ...t }),
38
+ o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(A, { ...t }),
39
+ o === "LogarithmicScale" && /* @__PURE__ */ r(S, { ...t }),
40
+ o === "ColumnAndLineMix" && /* @__PURE__ */ r(s, { ...t }),
41
+ o === "DrillDownTreemap" && /* @__PURE__ */ r(D, { ...t }),
42
+ o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(L, { ...t }),
43
+ o === "CandlestickChart" && /* @__PURE__ */ r(f, { ...t }),
44
+ o === "ForecastCone" && /* @__PURE__ */ r(g, { ...t })
44
45
  ] }) })
45
46
  ] });
46
47
  };
@@ -4,21 +4,21 @@ import C from "lodash";
4
4
  import { useId as V, useRef as z, useEffect as G } from "react";
5
5
  import { humanizeLabel as b } from "../_common/format.js";
6
6
  import { attachCombinedAxisTooltip as N } from "../_common/tooltip.js";
7
- import { colorSetFromPalette as W, applyValueFormat as q } from "../_common/utils.js";
8
- import { c as l, p as H, a as X } from "../../../Entity-BJCuhdq_.js";
9
- import { X as U, V as _ } from "../../../AxisRenderer-BCQoUJw6.js";
10
- import { S as $ } from "../../../Scrollbar-CTI7_8Qw.js";
11
- import { A as D, a as j } from "../../../AxisRendererY-AXWvGU6r.js";
12
- import { C as J } from "../../../CategoryAxis-B6NqW8qd.js";
13
- import { C as K } from "../../../ColumnSeries-CtRTsn-E.js";
14
- import { D as L, G as Q } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
- import { L as Z } from "../../../LineSeries-D_IL2qGF.js";
16
- import { B as ee } from "../../../Bullet-Djj7Vs9T.js";
17
- import { C as te } from "../../../Circle-BnfBNKBD.js";
18
- import { X as re } from "../../../XYCursor-CVUSpqb9.js";
19
- import { L as ae } from "../../../Legend-CFvQiIfn.js";
20
- import { D as oe } from "../../../DateAxis-DEXKps1S.js";
21
- const Le = (Y) => {
7
+ import { colorSetFromPalette as W, applyDateAxisLabelFormat as q, applyValueFormat as H } from "../_common/utils.js";
8
+ import { c as l, p as U, a as D } from "../../../Entity-BJCuhdq_.js";
9
+ import { X as _, V as $ } from "../../../AxisRenderer-BCQoUJw6.js";
10
+ import { S as j } from "../../../Scrollbar-CTI7_8Qw.js";
11
+ import { A as X, a as J } from "../../../AxisRendererY-AXWvGU6r.js";
12
+ import { C as K } from "../../../CategoryAxis-B6NqW8qd.js";
13
+ import { C as Q } from "../../../ColumnSeries-CtRTsn-E.js";
14
+ import { D as L, G as Z } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
+ import { L as ee } from "../../../LineSeries-D_IL2qGF.js";
16
+ import { B as te } from "../../../Bullet-Djj7Vs9T.js";
17
+ import { C as re } from "../../../Circle-BnfBNKBD.js";
18
+ import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
19
+ import { L as oe } from "../../../Legend-CFvQiIfn.js";
20
+ import { D as se } from "../../../DateAxis-DEXKps1S.js";
21
+ const Ye = (Y) => {
22
22
  const f = E({ props: Y, name: "HCColumnLineMix" }), {
23
23
  dimensions: t,
24
24
  values: n,
@@ -29,20 +29,20 @@ const Le = (Y) => {
29
29
  skipEmptyDates: A = !1,
30
30
  sx: T,
31
31
  ...R
32
- } = f, s = P(), g = `hc-column-line-mix-${V().replace(/:/g, "")}`, d = z(null), y = t.length < 1 ? "ColumnLineMix requires at least 1 dimension" : null;
32
+ } = f, s = P(), y = `hc-column-line-mix-${V().replace(/:/g, "")}`, d = z(null), g = t.length < 1 ? "ColumnLineMix requires at least 1 dimension" : null;
33
33
  G(() => {
34
- if (y) return;
34
+ if (g) return;
35
35
  let c;
36
36
  return c = setTimeout(() => {
37
- var w, v, F, k;
38
- const e = M.new(g);
37
+ var w, F, v, k;
38
+ const e = M.new(y);
39
39
  d.current = e, e.setThemes([O.new(e)]), e.interfaceColors.setAll({
40
40
  text: l(s.palette.text.primary),
41
41
  grid: l(s.palette.divider),
42
42
  stroke: l(s.palette.divider)
43
43
  });
44
44
  const r = e.container.children.push(
45
- U.new(e, {
45
+ _.new(e, {
46
46
  panX: !1,
47
47
  panY: !1,
48
48
  wheelX: "none",
@@ -54,85 +54,85 @@ const Le = (Y) => {
54
54
  );
55
55
  r.set("colors", W(e, x)), r.get("colors", {}).set("step", 3), r.set(
56
56
  "scrollbarX",
57
- $.new(e, { orientation: "horizontal" })
57
+ j.new(e, { orientation: "horizontal" })
58
58
  );
59
- let o, m = p;
59
+ let a, m = p;
60
60
  if (t[0].type === "date") {
61
61
  m = C.orderBy(p, [t[0].value]);
62
- const i = A ? Q : oe;
63
- o = r.xAxes.push(
62
+ const i = A ? Z : se;
63
+ a = r.xAxes.push(
64
64
  i.new(e, {
65
65
  maxDeviation: 0.1,
66
66
  groupData: !1,
67
67
  baseInterval: h || { timeUnit: "day", count: 1 },
68
- renderer: D.new(e, {})
68
+ renderer: X.new(e, {})
69
69
  })
70
- ), (w = o.get("renderer")) == null || w.grid.template.setAll({
70
+ ), (w = a.get("renderer")) == null || w.grid.template.setAll({
71
71
  stroke: l(s.palette.divider),
72
72
  strokeOpacity: 1
73
- });
73
+ }), q(a, t[0]);
74
74
  } else
75
- o = r.xAxes.push(
76
- J.new(e, {
75
+ a = r.xAxes.push(
76
+ K.new(e, {
77
77
  categoryField: t[0].value,
78
- renderer: D.new(e, {})
78
+ renderer: X.new(e, {})
79
79
  })
80
- ), (v = o.get("renderer")) == null || v.grid.template.setAll({
80
+ ), (F = a.get("renderer")) == null || F.grid.template.setAll({
81
81
  stroke: l(s.palette.divider),
82
82
  strokeOpacity: 1
83
83
  }), e.numberFormatter.setAll({
84
84
  numberFormat: "#",
85
85
  numericFields: ["valueX"]
86
- }), m = C.orderBy(p, [t[0].value]), o.data.setAll(m);
86
+ }), m = C.orderBy(p, [t[0].value]), a.data.setAll(m);
87
87
  const u = r.yAxes.push(
88
- _.new(e, {
88
+ $.new(e, {
89
89
  min: 0,
90
90
  extraMax: 0.1,
91
- renderer: j.new(e, { strokeOpacity: 0.1 })
91
+ renderer: J.new(e, { strokeOpacity: 0.1 })
92
92
  })
93
93
  );
94
- (F = u.get("renderer")) == null || F.grid.template.setAll({
94
+ (v = u.get("renderer")) == null || v.grid.template.setAll({
95
95
  stroke: l(s.palette.divider),
96
96
  strokeOpacity: 1
97
97
  }), n.forEach((i, I) => {
98
98
  if (I === 0) {
99
- const a = r.series.push(
100
- K.new(e, {
99
+ const o = r.series.push(
100
+ Q.new(e, {
101
101
  name: i.label ?? b(i.name),
102
- xAxis: o,
102
+ xAxis: a,
103
103
  yAxis: u,
104
104
  valueYField: i.dataFieldName,
105
105
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
106
106
  })
107
107
  );
108
- a.columns.template.setAll({
109
- tooltipY: H(10),
108
+ o.columns.template.setAll({
109
+ tooltipY: U(10),
110
110
  templateField: "columnSettings"
111
- }), t[0].type === "date" && (a.data.processor = L.new(e, {
111
+ }), t[0].type === "date" && (o.data.processor = L.new(e, {
112
112
  dateFormat: "i",
113
113
  dateFields: [t[0].value]
114
- })), a.data.setAll(m), a.appear();
114
+ })), o.data.setAll(m), o.appear();
115
115
  } else {
116
- const a = r.series.push(
117
- Z.new(e, {
116
+ const o = r.series.push(
117
+ ee.new(e, {
118
118
  name: i.label ?? b(i.name),
119
- xAxis: o,
119
+ xAxis: a,
120
120
  yAxis: u,
121
121
  valueYField: i.dataFieldName,
122
122
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
123
123
  })
124
124
  );
125
- a.strokes.template.setAll({
125
+ o.strokes.template.setAll({
126
126
  strokeWidth: 3,
127
127
  templateField: "strokeSettings"
128
- }), t[0].type === "date" && (a.data.processor = L.new(e, {
128
+ }), t[0].type === "date" && (o.data.processor = L.new(e, {
129
129
  dateFormat: "i",
130
130
  dateFields: [t[0].value]
131
- })), a.data.setAll(m), a.bullets.push(function() {
132
- return ee.new(e, {
133
- sprite: te.new(e, {
131
+ })), o.data.setAll(m), o.bullets.push(function() {
132
+ return te.new(e, {
133
+ sprite: re.new(e, {
134
134
  strokeWidth: 3,
135
- stroke: a.get("stroke"),
135
+ stroke: o.get("stroke"),
136
136
  radius: 5,
137
137
  fill: e.interfaceColors.get("background")
138
138
  })
@@ -141,29 +141,29 @@ const Le = (Y) => {
141
141
  }
142
142
  }), r.set(
143
143
  "cursor",
144
- re.new(e, { xAxis: o, behavior: "none" })
144
+ ae.new(e, { xAxis: a, behavior: "none" })
145
145
  ).lineY.set("visible", !1), N({
146
146
  root: e,
147
147
  chart: r,
148
- xAxis: o,
148
+ xAxis: a,
149
149
  theme: s,
150
150
  isDateAxis: t[0].type === "date",
151
151
  baseInterval: h,
152
152
  follow: !0
153
153
  }), r.children.push(
154
- ae.new(e, {
155
- centerX: X,
156
- x: X
154
+ oe.new(e, {
155
+ centerX: D,
156
+ x: D
157
157
  })
158
- ).data.setAll(r.series.values), q(e, (k = n == null ? void 0 : n[0]) == null ? void 0 : k.format), r.appear(1e3, 100);
158
+ ).data.setAll(r.series.values), H(e, (k = n == null ? void 0 : n[0]) == null ? void 0 : k.format), r.appear(1e3, 100);
159
159
  }, S), () => {
160
160
  var e;
161
161
  c && clearTimeout(c), (e = d.current) == null || e.dispose(), d.current = null;
162
162
  };
163
163
  }, [p, t, n, s.palette.mode, x, A]);
164
164
  const B = { ...f };
165
- return { chartId: g, ownerState: B, sx: T, error: y, other: R };
165
+ return { chartId: y, ownerState: B, sx: T, error: g, other: R };
166
166
  };
167
167
  export {
168
- Le as useColumnLineMixLogic
168
+ Ye as useColumnLineMixLogic
169
169
  };