@burdenoff/microfe-assethandler 2026.813.1 → 2026.813.2

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 (78) hide show
  1. package/dist/assethandler/components/charts/BarsChart.js +25 -25
  2. package/dist/assethandler/components/charts/ChartParts.js +27 -27
  3. package/dist/assethandler/components/charts/DonutChart.js +17 -17
  4. package/dist/assethandler/components/charts/ProgressMeter.js +5 -5
  5. package/dist/assethandler/components/charts/RadialGauge.js +13 -13
  6. package/dist/assethandler/components/charts/Sparkline.js +27 -27
  7. package/dist/assethandler/components/charts/TrendChart.js +47 -47
  8. package/dist/assethandler/components/index.js +1 -1
  9. package/dist/assethandler/pages/AiPredictionsPage.js +20 -20
  10. package/dist/assethandler/pages/AnalyticsPage.d.ts.map +1 -1
  11. package/dist/assethandler/pages/AnalyticsPage.js +133 -133
  12. package/dist/assethandler/pages/AnalyticsPage.js.map +1 -1
  13. package/dist/assethandler/pages/AssetsAssetCategoriesPage.d.ts.map +1 -1
  14. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js +55 -55
  15. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js.map +1 -1
  16. package/dist/assethandler/pages/AssetsAssetCreatePage.d.ts.map +1 -1
  17. package/dist/assethandler/pages/AssetsAssetCreatePage.js +77 -78
  18. package/dist/assethandler/pages/AssetsAssetCreatePage.js.map +1 -1
  19. package/dist/assethandler/pages/AssetsAssetDetailPage.d.ts.map +1 -1
  20. package/dist/assethandler/pages/AssetsAssetDetailPage.js +140 -141
  21. package/dist/assethandler/pages/AssetsAssetDetailPage.js.map +1 -1
  22. package/dist/assethandler/pages/AssetsAssetListPage.js +249 -249
  23. package/dist/assethandler/pages/AssetsAssetListPage.js.map +1 -1
  24. package/dist/assethandler/pages/AssetsAssetTrackingPage.js +8 -8
  25. package/dist/assethandler/pages/CmdbBrowserPage.js +34 -34
  26. package/dist/assethandler/pages/DashboardPage.d.ts.map +1 -1
  27. package/dist/assethandler/pages/DashboardPage.js +256 -255
  28. package/dist/assethandler/pages/DashboardPage.js.map +1 -1
  29. package/dist/assethandler/pages/DiscoveryJobsPage.js +27 -27
  30. package/dist/assethandler/pages/EsgDashboardPage.js +53 -53
  31. package/dist/assethandler/pages/FinanceBudgetDetailPage.d.ts.map +1 -1
  32. package/dist/assethandler/pages/FinanceBudgetDetailPage.js +156 -155
  33. package/dist/assethandler/pages/FinanceBudgetDetailPage.js.map +1 -1
  34. package/dist/assethandler/pages/FinanceFinanceHubPage.d.ts.map +1 -1
  35. package/dist/assethandler/pages/FinanceFinanceHubPage.js +475 -475
  36. package/dist/assethandler/pages/FinanceFinanceHubPage.js.map +1 -1
  37. package/dist/assethandler/pages/FinanceInvoiceDetailPage.d.ts.map +1 -1
  38. package/dist/assethandler/pages/FinanceInvoiceDetailPage.js +141 -140
  39. package/dist/assethandler/pages/FinanceInvoiceDetailPage.js.map +1 -1
  40. package/dist/assethandler/pages/ItilChangeManagementPage.js +21 -21
  41. package/dist/assethandler/pages/ItilIncidentManagementPage.js +34 -34
  42. package/dist/assethandler/pages/ItilProblemManagementPage.js +17 -17
  43. package/dist/assethandler/pages/KnowledgeBasePage.js +39 -39
  44. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.d.ts.map +1 -1
  45. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js +114 -114
  46. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js.map +1 -1
  47. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.d.ts.map +1 -1
  48. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js +158 -157
  49. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js.map +1 -1
  50. package/dist/assethandler/pages/OperationsOperationsHubPage.d.ts.map +1 -1
  51. package/dist/assethandler/pages/OperationsOperationsHubPage.js +253 -252
  52. package/dist/assethandler/pages/OperationsOperationsHubPage.js.map +1 -1
  53. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.d.ts.map +1 -1
  54. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js +96 -95
  55. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js.map +1 -1
  56. package/dist/assethandler/pages/ProvenancePage.js +21 -21
  57. package/dist/assethandler/pages/ReportsDashboardPage.d.ts.map +1 -1
  58. package/dist/assethandler/pages/ReportsDashboardPage.js +301 -301
  59. package/dist/assethandler/pages/ReportsDashboardPage.js.map +1 -1
  60. package/dist/assethandler/pages/SecuritySecurityHubPage.js +126 -126
  61. package/dist/assethandler/pages/SecuritySecurityHubPage.js.map +1 -1
  62. package/dist/assethandler/pages/TransactionsTransactionDetailPage.d.ts.map +1 -1
  63. package/dist/assethandler/pages/TransactionsTransactionDetailPage.js +112 -113
  64. package/dist/assethandler/pages/TransactionsTransactionDetailPage.js.map +1 -1
  65. package/dist/assethandler/pages/TransactionsTransactionListPage.d.ts.map +1 -1
  66. package/dist/assethandler/pages/TransactionsTransactionListPage.js +136 -137
  67. package/dist/assethandler/pages/TransactionsTransactionListPage.js.map +1 -1
  68. package/dist/assethandler/providers/AssetHandlerProvider.d.ts +14 -0
  69. package/dist/assethandler/providers/AssetHandlerProvider.d.ts.map +1 -1
  70. package/dist/assethandler/providers/AssetHandlerProvider.js +44 -34
  71. package/dist/assethandler/providers/AssetHandlerProvider.js.map +1 -1
  72. package/dist/assethandler/types/index.d.ts +10 -0
  73. package/dist/assethandler/types/index.d.ts.map +1 -1
  74. package/dist/assethandler/utils/money.d.ts +34 -0
  75. package/dist/assethandler/utils/money.d.ts.map +1 -0
  76. package/dist/assethandler/utils/money.js +27 -0
  77. package/dist/assethandler/utils/money.js.map +1 -0
  78. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { Legend as e } from "../../../node_modules/recharts/es6/component/Legend.js";
2
- import { Tooltip as t } from "../../../node_modules/recharts/es6/component/Tooltip.js";
3
- import { ResponsiveContainer as n } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
4
- import { Bar as r } from "../../../node_modules/recharts/es6/cartesian/Bar.js";
5
- import { CartesianGrid as i } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
6
- import { XAxis as a } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
7
- import { YAxis as o } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
8
- import { BarChart as s } from "../../../node_modules/recharts/es6/chart/BarChart.js";
9
- import { chartTokens as c, defaultSeriesColor as l, formatNumber as u, usePrefersReducedMotion as d } from "./chartTheme.js";
1
+ import { chartTokens as e, defaultSeriesColor as t, formatNumber as n, usePrefersReducedMotion as r } from "./chartTheme.js";
2
+ import { Legend as i } from "../../../node_modules/recharts/es6/component/Legend.js";
3
+ import { Tooltip as a } from "../../../node_modules/recharts/es6/component/Tooltip.js";
4
+ import { ResponsiveContainer as o } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
5
+ import { Bar as s } from "../../../node_modules/recharts/es6/cartesian/Bar.js";
6
+ import { CartesianGrid as c } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
7
+ import { XAxis as l } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
8
+ import { YAxis as u } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
9
+ import { BarChart as d } from "../../../node_modules/recharts/es6/chart/BarChart.js";
10
10
  import { ChartDataTable as f, ChartEmpty as p, ChartFigure as m, ChartLegend as h, ChartTooltip as g } from "./ChartParts.js";
11
11
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
12
12
  //#region src/assethandler/components/charts/BarsChart.tsx
13
- function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked: w = !1, height: T = 260, valueFormat: E = u, xTickFormat: D, showGrid: O = !0, showLegend: k, categoryWidth: A = 96, emptyLabel: j, ariaLabel: M, className: N }) {
14
- let P = d(), F = S.map((e, t) => ({
13
+ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked: w = !1, height: T = 260, valueFormat: E = n, xTickFormat: D, showGrid: O = !0, showLegend: k, categoryWidth: A = 96, emptyLabel: j, ariaLabel: M, className: N }) {
14
+ let P = r(), F = S.map((e, n) => ({
15
15
  ...e,
16
16
  label: e.label ?? e.key,
17
- color: e.color ?? l(t, S.length)
17
+ color: e.color ?? t(n, S.length)
18
18
  })), I = M ?? `${F.map((e) => e.label).join(", ")} by ${x}`;
19
19
  if (b.length === 0) return /* @__PURE__ */ v(p, {
20
20
  height: T,
@@ -22,7 +22,7 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
22
22
  className: N
23
23
  });
24
24
  let L = C === "vertical", R = k ?? F.length > 1, z = {
25
- fill: c.textMuted,
25
+ fill: e.textMuted,
26
26
  fontSize: 12
27
27
  }, B = F.length - 1, V = (e) => !w || e === B ? L ? [
28
28
  4,
@@ -52,10 +52,10 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
52
52
  series: F,
53
53
  valueFormat: E
54
54
  }),
55
- children: /* @__PURE__ */ v(n, {
55
+ children: /* @__PURE__ */ v(o, {
56
56
  width: "100%",
57
57
  height: "100%",
58
- children: /* @__PURE__ */ y(s, {
58
+ children: /* @__PURE__ */ y(d, {
59
59
  data: b,
60
60
  layout: L ? "horizontal" : "vertical",
61
61
  margin: {
@@ -66,13 +66,13 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
66
66
  },
67
67
  barCategoryGap: L ? "24%" : "28%",
68
68
  children: [
69
- O ? /* @__PURE__ */ v(i, {
69
+ O ? /* @__PURE__ */ v(c, {
70
70
  vertical: !L,
71
71
  horizontal: L,
72
- stroke: c.grid,
72
+ stroke: e.grid,
73
73
  strokeWidth: 1
74
74
  }) : null,
75
- L ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(a, {
75
+ L ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(l, {
76
76
  dataKey: x,
77
77
  type: "category",
78
78
  tickLine: !1,
@@ -80,20 +80,20 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
80
80
  tick: z,
81
81
  tickMargin: 8,
82
82
  tickFormatter: D ? (e) => D(e) : void 0
83
- }), /* @__PURE__ */ v(o, {
83
+ }), /* @__PURE__ */ v(u, {
84
84
  type: "number",
85
85
  tickLine: !1,
86
86
  axisLine: !1,
87
87
  tick: z,
88
88
  width: 48,
89
89
  tickFormatter: (e) => E(Number(e))
90
- })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(a, {
90
+ })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(l, {
91
91
  type: "number",
92
92
  tickLine: !1,
93
93
  axisLine: !1,
94
94
  tick: z,
95
95
  tickFormatter: (e) => E(Number(e))
96
- }), /* @__PURE__ */ v(o, {
96
+ }), /* @__PURE__ */ v(u, {
97
97
  dataKey: x,
98
98
  type: "category",
99
99
  tickLine: !1,
@@ -102,9 +102,9 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
102
102
  width: A,
103
103
  tickFormatter: D ? (e) => D(e) : void 0
104
104
  })] }),
105
- /* @__PURE__ */ v(t, {
105
+ /* @__PURE__ */ v(a, {
106
106
  cursor: {
107
- fill: c.track,
107
+ fill: e.track,
108
108
  opacity: .5
109
109
  },
110
110
  content: /* @__PURE__ */ v(g, {
@@ -112,8 +112,8 @@ function b({ data: b, xKey: x, series: S, orientation: C = "vertical", stacked:
112
112
  labelFormat: D
113
113
  })
114
114
  }),
115
- R ? /* @__PURE__ */ v(e, { content: /* @__PURE__ */ v(h, {}) }) : null,
116
- F.map((e, t) => /* @__PURE__ */ v(r, {
115
+ R ? /* @__PURE__ */ v(i, { content: /* @__PURE__ */ v(h, {}) }) : null,
116
+ F.map((e, t) => /* @__PURE__ */ v(s, {
117
117
  dataKey: e.key,
118
118
  name: e.label,
119
119
  fill: e.color,
@@ -1,59 +1,59 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { chartTokens as t, renderValue as n } from "./chartTheme.js";
1
+ import { chartTokens as e, renderValue as t } from "./chartTheme.js";
2
+ import { cn as n } from "../../utils/cn.js";
3
3
  import { Inbox as r } from "lucide-react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  //#region src/assethandler/components/charts/ChartParts.tsx
6
- function o({ active: e, payload: r, label: o, valueFormat: s, labelFormat: c, hideLabel: l }) {
7
- return !e || !r || r.length === 0 ? null : /* @__PURE__ */ a("div", {
6
+ function o({ active: n, payload: r, label: o, valueFormat: s, labelFormat: c, hideLabel: l }) {
7
+ return !n || !r || r.length === 0 ? null : /* @__PURE__ */ a("div", {
8
8
  className: "min-w-32 rounded-lg border border-border-seam bg-bg-surface/95 px-3 py-2 shadow-lg backdrop-blur-sm",
9
9
  children: [!l && o !== void 0 && o !== "" ? /* @__PURE__ */ i("p", {
10
10
  className: "mb-1.5 text-xs font-medium text-text-secondary",
11
11
  children: c ? c(o) : String(o)
12
12
  }) : null, /* @__PURE__ */ i("ul", {
13
13
  className: "space-y-1",
14
- children: r.map((e, r) => /* @__PURE__ */ a("li", {
14
+ children: r.map((n, r) => /* @__PURE__ */ a("li", {
15
15
  className: "flex items-center justify-between gap-4 text-sm",
16
16
  children: [/* @__PURE__ */ a("span", {
17
17
  className: "flex min-w-0 items-center gap-1.5",
18
18
  children: [/* @__PURE__ */ i("span", {
19
19
  "aria-hidden": "true",
20
20
  className: "h-2.5 w-2.5 shrink-0 rounded-[3px]",
21
- style: { backgroundColor: e.color ?? t.brand }
21
+ style: { backgroundColor: n.color ?? e.brand }
22
22
  }), /* @__PURE__ */ i("span", {
23
23
  className: "truncate text-text-secondary",
24
- children: e.name ?? e.dataKey
24
+ children: n.name ?? n.dataKey
25
25
  })]
26
26
  }), /* @__PURE__ */ i("span", {
27
27
  className: "font-semibold tabular-nums text-text-primary",
28
- children: n(e.value, s)
28
+ children: t(n.value, s)
29
29
  })]
30
- }, `${String(e.dataKey ?? e.name ?? r)}`))
30
+ }, `${String(n.dataKey ?? n.name ?? r)}`))
31
31
  })]
32
32
  });
33
33
  }
34
- function s({ payload: e }) {
35
- return !e || e.length === 0 ? null : /* @__PURE__ */ i("ul", {
34
+ function s({ payload: t }) {
35
+ return !t || t.length === 0 ? null : /* @__PURE__ */ i("ul", {
36
36
  className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-1.5 pt-3",
37
- children: e.map((e, n) => /* @__PURE__ */ a("li", {
37
+ children: t.map((t, n) => /* @__PURE__ */ a("li", {
38
38
  className: "flex items-center gap-1.5 text-xs text-text-secondary",
39
39
  children: [/* @__PURE__ */ i("span", {
40
40
  "aria-hidden": "true",
41
41
  className: "h-2.5 w-2.5 rounded-[3px]",
42
- style: { backgroundColor: e.color ?? t.brand }
43
- }), e.value]
44
- }, `${String(e.value ?? n)}`))
42
+ style: { backgroundColor: t.color ?? e.brand }
43
+ }), t.value]
44
+ }, `${String(t.value ?? n)}`))
45
45
  });
46
46
  }
47
- function c({ height: t = 240, label: n = "No data yet", className: o }) {
47
+ function c({ height: e = 240, label: t = "No data yet", className: o }) {
48
48
  return /* @__PURE__ */ a("div", {
49
- className: e("flex w-full flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-border-seam bg-bg-sunken/40 text-center", o),
50
- style: { height: t },
49
+ className: n("flex w-full flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-border-seam bg-bg-sunken/40 text-center", o),
50
+ style: { height: e },
51
51
  children: [/* @__PURE__ */ i(r, {
52
52
  className: "h-6 w-6 text-text-muted",
53
53
  "aria-hidden": "true"
54
54
  }), /* @__PURE__ */ i("p", {
55
55
  className: "text-sm text-text-muted",
56
- children: n
56
+ children: t
57
57
  })]
58
58
  });
59
59
  }
@@ -68,32 +68,32 @@ var l = {
68
68
  whiteSpace: "nowrap",
69
69
  borderWidth: 0
70
70
  };
71
- function u({ caption: e, xLabel: t, xKey: r, data: o, series: s, valueFormat: c }) {
71
+ function u({ caption: e, xLabel: n, xKey: r, data: o, series: s, valueFormat: c }) {
72
72
  return /* @__PURE__ */ a("table", {
73
73
  style: l,
74
74
  children: [
75
75
  /* @__PURE__ */ i("caption", { children: e }),
76
76
  /* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", { children: [/* @__PURE__ */ i("th", {
77
77
  scope: "col",
78
- children: t
78
+ children: n
79
79
  }), s.map((e) => /* @__PURE__ */ i("th", {
80
80
  scope: "col",
81
81
  children: e.label ?? e.key
82
82
  }, e.key))] }) }),
83
- /* @__PURE__ */ i("tbody", { children: o.map((e, t) => /* @__PURE__ */ a("tr", { children: [/* @__PURE__ */ i("th", {
83
+ /* @__PURE__ */ i("tbody", { children: o.map((e, n) => /* @__PURE__ */ a("tr", { children: [/* @__PURE__ */ i("th", {
84
84
  scope: "row",
85
85
  children: String(e[r] ?? "")
86
- }), s.map((t) => /* @__PURE__ */ i("td", { children: n(e[t.key], c) }, t.key))] }, `${String(e[r] ?? t)}`)) })
86
+ }), s.map((n) => /* @__PURE__ */ i("td", { children: t(e[n.key], c) }, n.key))] }, `${String(e[r] ?? n)}`)) })
87
87
  ]
88
88
  });
89
89
  }
90
- function d({ ariaLabel: t, height: n, children: r, a11y: o, className: s }) {
90
+ function d({ ariaLabel: e, height: t, children: r, a11y: o, className: s }) {
91
91
  return /* @__PURE__ */ a("figure", {
92
92
  role: "img",
93
- "aria-label": t,
94
- className: e("w-full", s),
93
+ "aria-label": e,
94
+ className: n("w-full", s),
95
95
  children: [/* @__PURE__ */ i("div", {
96
- style: { height: n },
96
+ style: { height: t },
97
97
  children: r
98
98
  }), o]
99
99
  });
@@ -1,42 +1,42 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { Tooltip as t } from "../../../node_modules/recharts/es6/component/Tooltip.js";
3
- import { ResponsiveContainer as n } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
4
- import { Cell as r } from "../../../node_modules/recharts/es6/component/Cell.js";
5
- import { Pie as i } from "../../../node_modules/recharts/es6/polar/Pie.js";
6
- import { PieChart as a } from "../../../node_modules/recharts/es6/chart/PieChart.js";
7
- import { chartTokens as o, formatNumber as s, renderValue as c, seriesColor as l, usePrefersReducedMotion as u } from "./chartTheme.js";
1
+ import { chartTokens as e, formatNumber as t, renderValue as n, seriesColor as r, usePrefersReducedMotion as i } from "./chartTheme.js";
2
+ import { cn as a } from "../../utils/cn.js";
3
+ import { Tooltip as o } from "../../../node_modules/recharts/es6/component/Tooltip.js";
4
+ import { ResponsiveContainer as s } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
5
+ import { Cell as c } from "../../../node_modules/recharts/es6/component/Cell.js";
6
+ import { Pie as l } from "../../../node_modules/recharts/es6/polar/Pie.js";
7
+ import { PieChart as u } from "../../../node_modules/recharts/es6/chart/PieChart.js";
8
8
  import { ChartEmpty as d, ChartTooltip as f, srOnlyStyle as p } from "./ChartParts.js";
9
9
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
10
10
  //#region src/assethandler/components/charts/DonutChart.tsx
11
- function g({ data: g, centerLabel: _, centerValue: v, height: y = 240, thickness: b = .42, valueFormat: x = s, showLegend: S = !0, emptyLabel: C, ariaLabel: w, className: T }) {
12
- let E = u(), D = g.filter((e) => typeof e.value == "number" && Number.isFinite(e.value) && e.value > 0).map((e, t) => ({
11
+ function g({ data: g, centerLabel: _, centerValue: v, height: y = 240, thickness: b = .42, valueFormat: x = t, showLegend: S = !0, emptyLabel: C, ariaLabel: w, className: T }) {
12
+ let E = i(), D = g.filter((e) => typeof e.value == "number" && Number.isFinite(e.value) && e.value > 0).map((e, t) => ({
13
13
  ...e,
14
- color: e.color ?? l(t)
14
+ color: e.color ?? r(t)
15
15
  })), O = D.reduce((e, t) => e + t.value, 0);
16
16
  if (D.length === 0 || O <= 0) return /* @__PURE__ */ m(d, {
17
17
  height: y,
18
18
  label: C,
19
19
  className: T
20
20
  });
21
- let k = w ?? `${_ ?? "Distribution"}: ${D.map((e) => e.name).join(", ")}`, A = Math.max(0, Math.round(82 * (1 - b))), j = _ !== void 0 || v !== void 0, M = v === void 0 ? x(O) : c(v, x);
21
+ let k = w ?? `${_ ?? "Distribution"}: ${D.map((e) => e.name).join(", ")}`, A = Math.max(0, Math.round(82 * (1 - b))), j = _ !== void 0 || v !== void 0, M = v === void 0 ? x(O) : n(v, x);
22
22
  return /* @__PURE__ */ h("figure", {
23
23
  role: "img",
24
24
  "aria-label": k,
25
- className: e("w-full", T),
25
+ className: a("w-full", T),
26
26
  children: [
27
27
  /* @__PURE__ */ h("div", {
28
28
  className: "relative mx-auto",
29
29
  style: { height: y },
30
- children: [/* @__PURE__ */ m(n, {
30
+ children: [/* @__PURE__ */ m(s, {
31
31
  width: "100%",
32
32
  height: "100%",
33
- children: /* @__PURE__ */ h(a, { children: [/* @__PURE__ */ m(t, {
33
+ children: /* @__PURE__ */ h(u, { children: [/* @__PURE__ */ m(o, {
34
34
  cursor: !1,
35
35
  content: /* @__PURE__ */ m(f, {
36
36
  valueFormat: x,
37
37
  hideLabel: !0
38
38
  })
39
- }), /* @__PURE__ */ m(i, {
39
+ }), /* @__PURE__ */ m(l, {
40
40
  data: D,
41
41
  dataKey: "value",
42
42
  nameKey: "name",
@@ -45,10 +45,10 @@ function g({ data: g, centerLabel: _, centerValue: v, height: y = 240, thickness
45
45
  innerRadius: `${A}%`,
46
46
  outerRadius: "82%",
47
47
  paddingAngle: 1.5,
48
- stroke: o.surface,
48
+ stroke: e.surface,
49
49
  strokeWidth: 2,
50
50
  isAnimationActive: !E,
51
- children: D.map((e) => /* @__PURE__ */ m(r, { fill: e.color }, e.name))
51
+ children: D.map((e) => /* @__PURE__ */ m(c, { fill: e.color }, e.name))
52
52
  })] })
53
53
  }), j ? /* @__PURE__ */ h("div", {
54
54
  className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",
@@ -1,5 +1,5 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { toneColor as t } from "./chartTheme.js";
1
+ import { toneColor as e } from "./chartTheme.js";
2
+ import { cn as t } from "../../utils/cn.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/assethandler/components/charts/ProgressMeter.tsx
5
5
  var i = {
@@ -11,9 +11,9 @@ function o({ value: o, max: s = 100, label: c, thresholds: l = {
11
11
  warning: .75,
12
12
  danger: .9
13
13
  }, higherIsWorse: u = !0, tone: d, showValue: f = !0, format: p = a, size: m = "md", className: h }) {
14
- let g = Math.min(1, Math.max(0, o / (s > 0 ? s : 1))), _ = Math.round(g * 100), v = t(d ?? (u ? g >= l.danger ? "danger" : g >= l.warning ? "warning" : "success" : g >= l.warning ? "success" : g >= l.danger ? "warning" : "danger"));
14
+ let g = Math.min(1, Math.max(0, o / (s > 0 ? s : 1))), _ = Math.round(g * 100), v = e(d ?? (u ? g >= l.danger ? "danger" : g >= l.warning ? "warning" : "success" : g >= l.warning ? "success" : g >= l.danger ? "warning" : "danger"));
15
15
  return /* @__PURE__ */ r("div", {
16
- className: e("w-full", h),
16
+ className: t("w-full", h),
17
17
  children: [c !== void 0 || f ? /* @__PURE__ */ r("div", {
18
18
  className: "mb-1.5 flex items-center justify-between gap-3 text-sm",
19
19
  children: [c === void 0 ? /* @__PURE__ */ n("span", {}) : /* @__PURE__ */ n("span", {
@@ -27,7 +27,7 @@ function o({ value: o, max: s = 100, label: c, thresholds: l = {
27
27
  })]
28
28
  }) : null]
29
29
  }) : null, /* @__PURE__ */ n("div", {
30
- className: e("w-full overflow-hidden rounded-full bg-bg-sunken", i[m]),
30
+ className: t("w-full overflow-hidden rounded-full bg-bg-sunken", i[m]),
31
31
  role: "progressbar",
32
32
  "aria-valuenow": o,
33
33
  "aria-valuemin": 0,
@@ -1,41 +1,41 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { ResponsiveContainer as t } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
3
- import { PolarAngleAxis as n } from "../../../node_modules/recharts/es6/polar/PolarAngleAxis.js";
4
- import { RadialBar as r } from "../../../node_modules/recharts/es6/polar/RadialBar.js";
5
- import { RadialBarChart as i } from "../../../node_modules/recharts/es6/chart/RadialBarChart.js";
6
- import { chartTokens as a, toneColor as o, usePrefersReducedMotion as s } from "./chartTheme.js";
1
+ import { chartTokens as e, toneColor as t, usePrefersReducedMotion as n } from "./chartTheme.js";
2
+ import { cn as r } from "../../utils/cn.js";
3
+ import { ResponsiveContainer as i } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
4
+ import { PolarAngleAxis as a } from "../../../node_modules/recharts/es6/polar/PolarAngleAxis.js";
5
+ import { RadialBar as o } from "../../../node_modules/recharts/es6/polar/RadialBar.js";
6
+ import { RadialBarChart as s } from "../../../node_modules/recharts/es6/chart/RadialBarChart.js";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  //#region src/assethandler/components/charts/RadialGauge.tsx
9
9
  var u = (e, t, n) => Math.min(n, Math.max(t, e));
10
10
  function d({ value: d, min: f = 0, max: p = 100, label: m, sublabel: h, thresholds: g, higherIsBetter: _ = !0, tone: v, color: y, height: b = 200, format: x = (e) => Math.round(e).toString(), ariaLabel: S, className: C }) {
11
- let w = s(), T = p - f || 1, E = u(d, f, p), D = g?.warning ?? (_ ? f + T * .8 : f + T * .5), O = g?.danger ?? (_ ? f + T * .5 : f + T * .8), k = y ?? o(v ?? (_ ? d >= D ? "success" : d >= O ? "warning" : "danger" : d <= D ? "success" : d <= O ? "warning" : "danger")), A = [{
11
+ let w = n(), T = p - f || 1, E = u(d, f, p), D = g?.warning ?? (_ ? f + T * .8 : f + T * .5), O = g?.danger ?? (_ ? f + T * .5 : f + T * .8), k = y ?? t(v ?? (_ ? d >= D ? "success" : d >= O ? "warning" : "danger" : d <= D ? "success" : d <= O ? "warning" : "danger")), A = [{
12
12
  name: m ?? "value",
13
13
  value: E
14
14
  }];
15
15
  return /* @__PURE__ */ l("figure", {
16
16
  role: "img",
17
17
  "aria-label": S ?? `${m ? `${m}: ` : ""}${x(d)}`,
18
- className: e("relative w-full", C),
18
+ className: r("relative w-full", C),
19
19
  style: { height: b },
20
- children: [/* @__PURE__ */ c(t, {
20
+ children: [/* @__PURE__ */ c(i, {
21
21
  width: "100%",
22
22
  height: "100%",
23
- children: /* @__PURE__ */ l(i, {
23
+ children: /* @__PURE__ */ l(s, {
24
24
  data: A,
25
25
  innerRadius: "72%",
26
26
  outerRadius: "100%",
27
27
  barSize: 14,
28
28
  startAngle: 225,
29
29
  endAngle: -45,
30
- children: [/* @__PURE__ */ c(n, {
30
+ children: [/* @__PURE__ */ c(a, {
31
31
  type: "number",
32
32
  domain: [f, p],
33
33
  angleAxisId: 0,
34
34
  tick: !1
35
- }), /* @__PURE__ */ c(r, {
35
+ }), /* @__PURE__ */ c(o, {
36
36
  dataKey: "value",
37
37
  angleAxisId: 0,
38
- background: { fill: a.track },
38
+ background: { fill: e.track },
39
39
  cornerRadius: 999,
40
40
  fill: k,
41
41
  isAnimationActive: !w
@@ -1,23 +1,23 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { ResponsiveContainer as t } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
3
- import { ReferenceDot as n } from "../../../node_modules/recharts/es6/cartesian/ReferenceDot.js";
4
- import { Line as r } from "../../../node_modules/recharts/es6/cartesian/Line.js";
5
- import { Area as i } from "../../../node_modules/recharts/es6/cartesian/Area.js";
6
- import { XAxis as a } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
7
- import { YAxis as o } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
8
- import { LineChart as s } from "../../../node_modules/recharts/es6/chart/LineChart.js";
9
- import { AreaChart as c } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
10
- import { chartTokens as l, usePrefersReducedMotion as u } from "./chartTheme.js";
1
+ import { chartTokens as e, usePrefersReducedMotion as t } from "./chartTheme.js";
2
+ import { cn as n } from "../../utils/cn.js";
3
+ import { ResponsiveContainer as r } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
4
+ import { ReferenceDot as i } from "../../../node_modules/recharts/es6/cartesian/ReferenceDot.js";
5
+ import { Line as a } from "../../../node_modules/recharts/es6/cartesian/Line.js";
6
+ import { Area as o } from "../../../node_modules/recharts/es6/cartesian/Area.js";
7
+ import { XAxis as s } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
8
+ import { YAxis as c } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
9
+ import { LineChart as l } from "../../../node_modules/recharts/es6/chart/LineChart.js";
10
+ import { AreaChart as u } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
11
11
  import { useId as d } from "react";
12
12
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
13
13
  //#region src/assethandler/components/charts/Sparkline.tsx
14
- function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, strokeWidth: v = 2, showEndDot: y = !0, className: b, ariaLabel: x }) {
15
- let S = d(), C = u(), w = m.filter((e) => typeof e == "number" && Number.isFinite(e)).map((e, t) => ({
14
+ function m({ data: m, type: h = "area", color: g = e.brand, height: _ = 40, strokeWidth: v = 2, showEndDot: y = !0, className: b, ariaLabel: x }) {
15
+ let S = d(), C = t(), w = m.filter((e) => typeof e == "number" && Number.isFinite(e)).map((e, t) => ({
16
16
  i: t,
17
17
  v: e
18
18
  })), T = x === void 0;
19
19
  if (w.length < 2) return /* @__PURE__ */ f("div", {
20
- className: e("flex items-center", b),
20
+ className: n("flex items-center", b),
21
21
  style: { height: _ },
22
22
  "aria-hidden": T ? !0 : void 0,
23
23
  "aria-label": T ? void 0 : x,
@@ -26,15 +26,15 @@ function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, stro
26
26
  });
27
27
  let E = w.map((e) => e.v), D = Math.min(...E), O = Math.max(...E), k = (O - D || Math.abs(O) || 1) * .15, A = w[w.length - 1];
28
28
  return /* @__PURE__ */ f("div", {
29
- className: e("w-full", b),
29
+ className: n("w-full", b),
30
30
  style: { height: _ },
31
31
  role: T ? void 0 : "img",
32
32
  "aria-hidden": T ? !0 : void 0,
33
33
  "aria-label": T ? void 0 : x,
34
- children: /* @__PURE__ */ f(t, {
34
+ children: /* @__PURE__ */ f(r, {
35
35
  width: "100%",
36
36
  height: "100%",
37
- children: h === "area" ? /* @__PURE__ */ p(c, {
37
+ children: h === "area" ? /* @__PURE__ */ p(u, {
38
38
  data: w,
39
39
  margin: {
40
40
  top: 4,
@@ -59,17 +59,17 @@ function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, stro
59
59
  stopOpacity: .02
60
60
  })]
61
61
  }) }),
62
- /* @__PURE__ */ f(a, {
62
+ /* @__PURE__ */ f(s, {
63
63
  dataKey: "i",
64
64
  type: "number",
65
65
  hide: !0,
66
66
  domain: ["dataMin", "dataMax"]
67
67
  }),
68
- /* @__PURE__ */ f(o, {
68
+ /* @__PURE__ */ f(c, {
69
69
  hide: !0,
70
70
  domain: [D - k, O + k]
71
71
  }),
72
- /* @__PURE__ */ f(i, {
72
+ /* @__PURE__ */ f(o, {
73
73
  type: "monotone",
74
74
  dataKey: "v",
75
75
  stroke: g,
@@ -79,17 +79,17 @@ function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, stro
79
79
  dot: !1,
80
80
  activeDot: !1
81
81
  }),
82
- y ? /* @__PURE__ */ f(n, {
82
+ y ? /* @__PURE__ */ f(i, {
83
83
  x: A.i,
84
84
  y: A.v,
85
85
  r: 3.5,
86
86
  fill: g,
87
- stroke: l.surface,
87
+ stroke: e.surface,
88
88
  strokeWidth: 2,
89
89
  isFront: !0
90
90
  }) : null
91
91
  ]
92
- }) : /* @__PURE__ */ p(s, {
92
+ }) : /* @__PURE__ */ p(l, {
93
93
  data: w,
94
94
  margin: {
95
95
  top: 4,
@@ -98,17 +98,17 @@ function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, stro
98
98
  left: 6
99
99
  },
100
100
  children: [
101
- /* @__PURE__ */ f(a, {
101
+ /* @__PURE__ */ f(s, {
102
102
  dataKey: "i",
103
103
  type: "number",
104
104
  hide: !0,
105
105
  domain: ["dataMin", "dataMax"]
106
106
  }),
107
- /* @__PURE__ */ f(o, {
107
+ /* @__PURE__ */ f(c, {
108
108
  hide: !0,
109
109
  domain: [D - k, O + k]
110
110
  }),
111
- /* @__PURE__ */ f(r, {
111
+ /* @__PURE__ */ f(a, {
112
112
  type: "monotone",
113
113
  dataKey: "v",
114
114
  stroke: g,
@@ -117,12 +117,12 @@ function m({ data: m, type: h = "area", color: g = l.brand, height: _ = 40, stro
117
117
  dot: !1,
118
118
  activeDot: !1
119
119
  }),
120
- y ? /* @__PURE__ */ f(n, {
120
+ y ? /* @__PURE__ */ f(i, {
121
121
  x: A.i,
122
122
  y: A.v,
123
123
  r: 3.5,
124
124
  fill: g,
125
- stroke: l.surface,
125
+ stroke: e.surface,
126
126
  strokeWidth: 2,
127
127
  isFront: !0
128
128
  }) : null