@umituz/web-dashboard 4.6.3 → 4.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-dashboard",
3
- "version": "4.6.3",
3
+ "version": "4.6.4",
4
4
  "description": "Installable app skeleton for the fleet — layouts, auth, onboarding, analytics (dependency-free SVG charts), calendar, i18n injection, permissions/session/module registry; ships its own udb-* stylesheet and --u-* tokens",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -82,7 +82,7 @@ export function Sparkline({
82
82
  width = 110,
83
83
  color = 'currentColor',
84
84
  }: {
85
- data: number[];
85
+ data: readonly number[];
86
86
  height?: number;
87
87
  width?: number;
88
88
  color?: string;
@@ -143,8 +143,8 @@ export function HBars({ rows, formatValue = (n: number) => String(n) }: { rows:
143
143
  export interface BarSeries {
144
144
  key?: string;
145
145
  label: string;
146
- values?: number[];
147
- data?: number[];
146
+ values?: readonly number[];
147
+ data?: readonly number[];
148
148
  tone?: string;
149
149
  color?: string;
150
150
  }
@@ -156,7 +156,7 @@ export function BarChart({
156
156
  formatValue = (v: number) => String(v),
157
157
  formatLabel = (l: string) => l,
158
158
  }: {
159
- labels: string[];
159
+ labels: readonly string[];
160
160
  series: BarSeries[];
161
161
  height?: number;
162
162
  formatValue?: (v: number) => string;
@@ -304,8 +304,8 @@ export function Donut({
304
304
  export interface LineSeries {
305
305
  key?: string;
306
306
  label: string;
307
- values?: number[];
308
- data?: number[];
307
+ values?: readonly number[];
308
+ data?: readonly number[];
309
309
  tone?: string;
310
310
  color?: string;
311
311
  kind?: 'line' | 'bars';
@@ -329,8 +329,8 @@ export function LineChart({
329
329
  yLabelLeft,
330
330
  yLabelRight,
331
331
  }: {
332
- points?: LineChartPoint[];
333
- labels?: string[];
332
+ points?: readonly LineChartPoint[];
333
+ labels?: readonly string[];
334
334
  series: LineSeries[];
335
335
  height?: number;
336
336
  formatLeft?: (v: number) => string;