@umriss-ui/dashboard 0.58.0 → 0.58.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.
- package/API.md +28 -0
- package/CHANGELOG.md +14 -0
- package/dist/dashboard.css +1 -1
- package/dist/dashboard.js +1 -1
- package/docs/llms-full.md +2 -2
- package/package.json +2 -2
package/API.md
CHANGED
|
@@ -94,3 +94,31 @@ Generated by the props step (`pnpm --filter @umriss-ui/dashboard props`); do not
|
|
|
94
94
|
|
|
95
95
|
- options: Options — The widget's current options.
|
|
96
96
|
- change: (options: Options) => void — Replaces the options; one step of the draft.
|
|
97
|
+
|
|
98
|
+
## Types in full
|
|
99
|
+
|
|
100
|
+
### DashboardView
|
|
101
|
+
|
|
102
|
+
- widgets: ReadonlyArray<DashboardWidget> — The widgets, in the order they are drawn and read.
|
|
103
|
+
|
|
104
|
+
### DashboardWidget
|
|
105
|
+
|
|
106
|
+
- id: string — Unique within the view.
|
|
107
|
+
- type: string — The `name` of the widget type it is an instance of.
|
|
108
|
+
- size: WidgetSize — One of the sizes its type offers.
|
|
109
|
+
- options: unknown — The type's own options, typed through the hook.
|
|
110
|
+
- locked?: boolean — Set by the application, never by the dashboard: the reader can move the widget but not resize it, change its options or remove it.
|
|
111
|
+
|
|
112
|
+
### HeadingOptions
|
|
113
|
+
|
|
114
|
+
- text: string — The title across the full width.
|
|
115
|
+
|
|
116
|
+
### SizeSpan
|
|
117
|
+
|
|
118
|
+
- columns: number — Columns of twelve.
|
|
119
|
+
- rows: number — Rows of the fixed row unit.
|
|
120
|
+
|
|
121
|
+
### WidgetContent
|
|
122
|
+
|
|
123
|
+
- size: WidgetSize — The size the widget stands at.
|
|
124
|
+
- options: Options — The widget's options.
|
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,20 @@ one section before an upgrade reads that one.
|
|
|
13
13
|
|
|
14
14
|
The dashboard joins the other five packages' one number at its first version: they are released together, and a package without a change of its own still gets a heading for it.
|
|
15
15
|
|
|
16
|
+
## 0.58.2 – Released in step with the table (Dec. 2026)
|
|
17
|
+
|
|
18
|
+
No change of its own; the number moves with the table, whose paged scroll area no longer keeps a scrollbar over blank surface.
|
|
19
|
+
|
|
20
|
+
## 0.58.1 – The editing outline keeps clear of the bar's last button (Nov. 2026)
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **`API.md` prints every function's signature and the members of every record type with their types** (a closing section "Types in full"), so that a caller reads what a function takes and what a record's fields are without opening the source.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **The outline of the editing mode no longer covers the edge of the bar's last button.** The bar's controls stand 2 px in from the frame, at rest too.
|
|
29
|
+
|
|
16
30
|
## 0.58.0 – The candidate for 1.0: `openCatalogue()`, the stored view is promised (Nov. 2026)
|
|
17
31
|
|
|
18
32
|
This is the last minor before `1.0.0`, and the surface is frozen with it. Every old name below works for this minor, warns once in development, and is removed in `1.0.0`; nothing else will differ between the two.
|
package/dist/dashboard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer umriss.tokens,umriss.base,umriss.components;@layer umriss.components{.
|
|
1
|
+
@layer umriss.tokens,umriss.base,umriss.components;@layer umriss.components{._root_uwiwp_17,._root_uwiwp_17:before,._root_uwiwp_17:after{box-sizing:border-box}._bar_uwiwp_36,._bar_uwiwp_36:before,._bar_uwiwp_36:after{box-sizing:border-box}._mode_uwiwp_49,._mode_uwiwp_49:before,._mode_uwiwp_49:after{box-sizing:border-box}._head_uwiwp_64,._head_uwiwp_64:before,._head_uwiwp_64:after{box-sizing:border-box}._editingHead_uwiwp_83,._editingHead_uwiwp_83:before,._editingHead_uwiwp_83:after{box-sizing:border-box}._grip_uwiwp_91,._grip_uwiwp_91:before,._grip_uwiwp_91:after{box-sizing:border-box}._title_uwiwp_96,._title_uwiwp_96:before,._title_uwiwp_96:after{box-sizing:border-box}._size_uwiwp_123,._size_uwiwp_123:before,._size_uwiwp_123:after{box-sizing:border-box}._item_uwiwp_131,._item_uwiwp_131:before,._item_uwiwp_131:after{box-sizing:border-box}._placeholder_uwiwp_141,._placeholder_uwiwp_141:before,._placeholder_uwiwp_141:after{box-sizing:border-box}._grid_uwiwp_147,._grid_uwiwp_147:before,._grid_uwiwp_147:after{box-sizing:border-box}._headingRow_uwiwp_164,._headingRow_uwiwp_164:before,._headingRow_uwiwp_164:after{box-sizing:border-box}._headingHead_uwiwp_79,._headingHead_uwiwp_79:before,._headingHead_uwiwp_79:after{box-sizing:border-box}._heading_uwiwp_79,._heading_uwiwp_79:before,._heading_uwiwp_79:after{box-sizing:border-box}._body_uwiwp_194,._body_uwiwp_194:before,._body_uwiwp_194:after{box-sizing:border-box}._options_uwiwp_222,._options_uwiwp_222:before,._options_uwiwp_222:after{box-sizing:border-box}._catalogue_uwiwp_227,._catalogue_uwiwp_227:before,._catalogue_uwiwp_227:after{box-sizing:border-box}._entry_uwiwp_235,._entry_uwiwp_235:before,._entry_uwiwp_235:after{box-sizing:border-box}._footprint_uwiwp_242,._footprint_uwiwp_242:before,._footprint_uwiwp_242:after{box-sizing:border-box}._entryText_uwiwp_254,._entryText_uwiwp_254:before,._entryText_uwiwp_254:after{box-sizing:border-box}._root_uwiwp_17{container-type:inline-size;width:100%;padding:0 0 var(--u-space-4);border-radius:var(--u-radius-lg);corner-shape:squircle;--_dashboard-row-unit: var(--u-dashboard-row, round(max(50px, 3.125rem), 1px));--_dashboard-gap: var(--u-dashboard-gap, 12px)}._root_uwiwp_17[data-editing]{outline:2px solid var(--u-color-accent);outline-offset:-2px}._bar_uwiwp_36{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--u-space-2);max-width:var(--u-dashboard-max-width, 1560px);padding-block:var(--u-space-3);padding-inline:2px}._mode_uwiwp_49{margin-inline-end:auto;padding:5px var(--u-space-2);border-radius:var(--u-radius-xs);corner-shape:squircle;background:var(--u-color-accent);color:var(--u-color-on-accent);font-family:var(--u-font-mono);font-size:var(--u-text-xs);font-weight:var(--u-weight-medium);line-height:var(--u-leading-none);letter-spacing:var(--u-tracking-caps);text-transform:var(--u-transform-caps)}._head_uwiwp_64{display:flex;align-items:center;gap:6px;min-width:0;min-height:calc(var(--u-control-height) + 2px);padding:var(--u-space-2) var(--u-space-2) 0 var(--u-space-3);border-radius:var(--u-radius-lg) var(--u-radius-lg) 0 0;corner-shape:squircle}._head_uwiwp_64:not(._headingHead_uwiwp_79){height:max(calc(var(--u-control-height) + 2px),calc(var(--u-space-2) + var(--u-text-sm) * var(--u-leading-normal)))}._editingHead_uwiwp_83{padding-block:0;background:var(--u-color-surface-pressed);touch-action:none;user-select:none;cursor:grab}._grip_uwiwp_91{flex:none;color:var(--u-color-text-muted)}._title_uwiwp_96{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--u-text-sm);font-weight:var(--u-weight-medium);line-height:var(--u-leading-normal);white-space:nowrap;text-overflow:ellipsis}._head_uwiwp_64:hover ._title_uwiwp_96,._head_uwiwp_64:focus-within ._title_uwiwp_96{position:relative;z-index:1;overflow:visible;background:var(--u-color-surface);white-space:normal}._editingHead_uwiwp_83:hover ._title_uwiwp_96,._editingHead_uwiwp_83:focus-within ._title_uwiwp_96{background:var(--u-color-surface-pressed)}._size_uwiwp_123{font-family:var(--u-font-mono);font-size:var(--u-text-xs);line-height:var(--u-leading-none);color:var(--u-color-text-muted);white-space:nowrap}._item_uwiwp_131[data-dragging]{position:relative;z-index:5;box-shadow:var(--u-shadow-overlay)}._item_uwiwp_131[data-dragging] ._editingHead_uwiwp_83{cursor:grabbing}._placeholder_uwiwp_141{border:2px dashed var(--u-color-accent);border-radius:var(--u-radius-lg);corner-shape:squircle;background:var(--u-color-accent-subtle)}._grid_uwiwp_147{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:var(--_dashboard-row-unit);gap:var(--_dashboard-gap);max-width:var(--u-dashboard-max-width, 1560px)}._item_uwiwp_131{grid-column:var(--_dashboard-column) / span var(--_dashboard-columns);grid-row:var(--_dashboard-row) / span var(--_dashboard-rows);min-height:0;min-width:0}._headingRow_uwiwp_164{display:flex;align-items:stretch}._headingHead_uwiwp_79{flex:1 1 auto;align-items:flex-end;padding:0 var(--u-space-2) 0 2px;border-radius:var(--u-radius-md);corner-shape:squircle}._headingRow_uwiwp_164[data-editing] ._headingHead_uwiwp_79{align-items:center;padding-inline-start:var(--u-space-3);padding-block-end:0}._heading_uwiwp_79{flex:1 1 auto;min-width:0;margin:0;padding-block-end:calc(var(--u-space-1) + 2px);font-size:var(--u-text-lg)}._headingRow_uwiwp_164[data-editing] ._heading_uwiwp_79{padding-block-end:0}._body_uwiwp_194{flex:1 1 auto;min-height:0;padding:2px var(--u-space-3) 10px;overflow:auto}._body_uwiwp_194:focus-visible{outline:2px solid var(--u-color-accent);outline-offset:-2px}@container (max-width: 755px){._grid_uwiwp_147{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}._item_uwiwp_131{grid-column:1;grid-row:auto;order:var(--_dashboard-order, 0);height:calc(var(--_dashboard-rows) * var(--_dashboard-row-unit) + (var(--_dashboard-rows) - 1) * var(--_dashboard-gap))}}._options_uwiwp_222{min-width:16rem;padding:var(--u-space-3)}._catalogue_uwiwp_227{list-style:none;margin:0;padding:0;display:grid;gap:var(--u-space-3, 12px)}._entry_uwiwp_235{display:grid;grid-template-columns:4.5rem 1fr auto;align-items:center;gap:var(--u-space-3, 12px)}._footprint_uwiwp_242{aspect-ratio:3 / 1;border-radius:2px;corner-shape:squircle;box-shadow:var(--u-edge)}._footprint_uwiwp_242>span{box-sizing:border-box}._footprint_uwiwp_242>span{display:block;background:var(--u-color-accent, currentColor);opacity:.5}._entryText_uwiwp_254{display:grid}@media print{._head_uwiwp_64 button{box-sizing:border-box}._bar_uwiwp_36,._grip_uwiwp_91,._head_uwiwp_64 button{display:none}._root_uwiwp_17{color-scheme:light}._item_uwiwp_131{break-inside:avoid}}}
|
package/dist/dashboard.js
CHANGED
|
@@ -12,7 +12,7 @@ const He = (n, t) => n.widgets.some((r) => r.id === t && r.locked !== !0), qe =
|
|
|
12
12
|
let r = 1;
|
|
13
13
|
for (; n.widgets.some((d) => d.id === `${t}-${r}`); ) r++;
|
|
14
14
|
return `${t}-${r}`;
|
|
15
|
-
}, tt = (n) => (t) => ({ ...t, widgets: [...t.widgets, n] }), nt = (n, t) => (r) => He(r, n) ? { ...r, widgets: r.widgets.map((d) => d.id === n ? { ...d, options: t } : d) } : r, st = "
|
|
15
|
+
}, tt = (n) => (t) => ({ ...t, widgets: [...t.widgets, n] }), nt = (n, t) => (r) => He(r, n) ? { ...r, widgets: r.widgets.map((d) => d.id === n ? { ...d, options: t } : d) } : r, st = "_root_uwiwp_17", rt = "_bar_uwiwp_36", ot = "_mode_uwiwp_49", at = "_head_uwiwp_64", it = "_editingHead_uwiwp_83", dt = "_grip_uwiwp_91", ct = "_title_uwiwp_96", lt = "_size_uwiwp_123", ut = "_item_uwiwp_131", ht = "_placeholder_uwiwp_141", ft = "_grid_uwiwp_147", pt = "_headingRow_uwiwp_164", gt = "_headingHead_uwiwp_79", mt = "_heading_uwiwp_79", bt = "_body_uwiwp_194", wt = "_options_uwiwp_222", yt = "_catalogue_uwiwp_227", _t = "_entry_uwiwp_235", zt = "_footprint_uwiwp_242", xt = "_entryText_uwiwp_254", x = {
|
|
16
16
|
root: st,
|
|
17
17
|
bar: rt,
|
|
18
18
|
mode: ot,
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/dashboard 0.58.
|
|
1
|
+
# @umriss-ui/dashboard 0.58.2
|
|
2
2
|
|
|
3
3
|
> React dashboard for data-dense applications - widgets a reader arranges, packed in order on twelve columns.
|
|
4
4
|
|
|
@@ -861,7 +861,7 @@ Declares no props of its own.
|
|
|
861
861
|
- Never: stacks of widgets that share one place, coordinates and free placement, a layout per breakpoint, dense packing, dragging from the catalogue to a chosen place ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
862
862
|
- Where an arrangement is stored, which default a role gets, several dashboards and what stands in a widget are the application's.
|
|
863
863
|
|
|
864
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/dashboard-v0.58.
|
|
864
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/dashboard-v0.58.2/docs/adr/0032-what-umriss-is-not.md).
|
|
865
865
|
|
|
866
866
|
## API index
|
|
867
867
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/dashboard",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.2",
|
|
4
4
|
"description": "React dashboard for data-dense applications - widgets a reader arranges, packed in order on twelve columns.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@fontsource/geist-mono": "^5.3.0",
|
|
67
67
|
"@fontsource/geist-sans": "^5.3.0",
|
|
68
|
-
"@umriss-ui/core": "0.58.
|
|
68
|
+
"@umriss-ui/core": "0.58.2",
|
|
69
69
|
"@umriss-ui/demo": "0.0.0",
|
|
70
70
|
"@types/node": "^22.20.2",
|
|
71
71
|
"@types/react": "^19.0.0",
|