@zambon-dev/ui 1.1.0 → 1.2.0
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/CHANGELOG.md +105 -0
- package/fesm2022/zambon-dev-ui-library.mjs +53 -26
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +6 -4
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/types/zambon-dev-ui-library.d.ts +47 -1
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
23
|
|
|
24
24
|
### ⚠ Breaking Changes / Migration
|
|
25
25
|
|
|
26
|
+
## [1.2.0] - 2026-10-27
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- **Ribbon buttons carry an accessible name.** `lib-ribbon-button` sets `aria-label` from its
|
|
31
|
+
label whether or not the label is on screen, falling back to `tooltip` when there is no label.
|
|
32
|
+
The dropdown chevron, which had no name at all, borrows the button's through `aria-labelledby`.
|
|
33
|
+
No new translation key: the chevron reuses the name the button already has.
|
|
34
|
+
- **`title` falls back to the label.** A button with no `tooltip` now explains itself on hover
|
|
35
|
+
using its label, which matters once a narrow screen has taken that label away.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- **The ribbon adapts to narrow screens.** Below `36rem` of the bar's **own** width — not the
|
|
40
|
+
window's — buttons drop their labels and their glyph shrinks, and group captions are hidden.
|
|
41
|
+
Whatever still does not fit scrolls horizontally, at any width. Measured at 375px: the bar is
|
|
42
|
+
58px tall instead of 110px, and a six-button bar that previously lost two buttons outright now
|
|
43
|
+
reaches all of them.
|
|
44
|
+
- **The ribbon no longer shrinks vertically.** It is a flex item in the views' full-height
|
|
45
|
+
column and was being squeezed on short screens, which pushed its group captions outside the bar.
|
|
46
|
+
- **The `[right]` slot joins the row when the bar scrolls.** `justify-between` packs from the
|
|
47
|
+
start once the content overflows, so the slot stops being pinned opposite the groups and sits
|
|
48
|
+
at the end of the scrolling row. Visible on every detail view at phone width.
|
|
49
|
+
- **Two-pane modals stack when narrow.** `lib-multi-select` and `lib-multi-editor` put one pane
|
|
50
|
+
per row below `36rem` of the **modal's** width, each pane scrolling inside a minimum height.
|
|
51
|
+
Keyed on the modal because its width comes from its `size` input: a `size-sm` modal is narrow on
|
|
52
|
+
a desktop too. `lib-modal` itself is unchanged.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- **Ribbon actions were unreachable on a narrow screen.** The bar neither wrapped nor scrolled, so
|
|
57
|
+
anything past the edge was clipped by an ancestor with nothing on screen saying so. At 375px a
|
|
58
|
+
typical list view silently lost its Refresh and Export buttons.
|
|
59
|
+
- **The data grid's header was nearly the same colour as its striped rows.** The header and the
|
|
60
|
+
zebra stripe were drawn from two different ramps that converged: measured over white, the header
|
|
61
|
+
landed 7.5 apart from a striped row while the two row colours are 23.7 apart, so the header read
|
|
62
|
+
as a third, fainter stripe rather than as a heading. In the dark theme both ramps lighten and the
|
|
63
|
+
gap was 3.7 — no difference at all. The header now sits on the same ink as the stripe, several
|
|
64
|
+
rungs up, so it is always the strongest of the three and inverts with the theme on its own.
|
|
65
|
+
|
|
66
|
+
### ⚠ Breaking Changes / Migration
|
|
67
|
+
|
|
68
|
+
- **A ribbon inside a parent that sizes to its own contents now collapses.** The ribbon host is a
|
|
69
|
+
CSS container query container, and a contained element contributes no width to its parent, so an
|
|
70
|
+
`inline-block`, float or grid auto column around a `lib-ribbon` shrinks to nothing and takes the
|
|
71
|
+
bar with it — measured at 10px, padding and border only.
|
|
72
|
+
|
|
73
|
+
**Migration:** give the parent a width. Make it a block, a grid cell, or a stretched flex item,
|
|
74
|
+
which is what a full-width toolbar wants anyway. Every usage in this package already satisfies
|
|
75
|
+
this. The `Library/Ribbon/Ribbon → CollapsesInAContentSizedParent` story shows the failure.
|
|
76
|
+
|
|
77
|
+
- **Anything you project into a `lib-ribbon` that used to escape the bar no longer does.** The
|
|
78
|
+
host is now a horizontal scroll container, so an in-place popover, a `position: sticky` child or
|
|
79
|
+
an absolutely positioned badge is clipped or scrolled by it instead of painting outside. The
|
|
80
|
+
ribbon button's own options list is unaffected: it already renders through a CDK overlay, and
|
|
81
|
+
that is the pattern to follow.
|
|
82
|
+
|
|
83
|
+
**Migration:** render anything that must escape the bar through a CDK overlay.
|
|
84
|
+
|
|
85
|
+
- **`position: fixed` and `position: absolute` inside a `lib-ribbon` now resolve against the
|
|
86
|
+
ribbon**, not the viewport or an outer ancestor, because containment makes the host a
|
|
87
|
+
containing block.
|
|
88
|
+
|
|
89
|
+
- **A `lib-ribbon` inside a flex _row_ now overflows instead of shrinking.** The host declares
|
|
90
|
+
`width: 100%` and `flex-shrink: 0` — the latter because it was being squeezed on short screens
|
|
91
|
+
and its group captions were painting outside the bar — so in a row there is nothing left to
|
|
92
|
+
give. In a flex column, which is how every view in this package uses it, nothing changes.
|
|
93
|
+
|
|
94
|
+
**Migration:** give a row-flex parent room, or let the ribbon shrink by overriding
|
|
95
|
+
`flex-shrink` on it.
|
|
96
|
+
|
|
97
|
+
## [1.1.1] - 2026-10-25
|
|
98
|
+
|
|
99
|
+
### Changed
|
|
100
|
+
|
|
101
|
+
- **`MultiEditorComponent` announces its form's status when it disables the form.** It still
|
|
102
|
+
disables the controls quietly, as before, so nothing subscribed to one of them hears about it.
|
|
103
|
+
The form as a whole now emits one status and value event afterwards: when the editor opens, when
|
|
104
|
+
it starts with no row selected and when the selected row is removed. Code subscribed to the
|
|
105
|
+
editor's own `FormGroup` sees that one extra event.
|
|
106
|
+
|
|
107
|
+
### Fixed
|
|
108
|
+
|
|
109
|
+
- **A field in a multi-editor turns into an input when a row is picked.** `lib-form-input`
|
|
110
|
+
decided between an input and a read-only value by reading `form.enabled` and the control's value
|
|
111
|
+
straight from the form, which is not a signal. Under `OnPush` nothing told it the multi-editor
|
|
112
|
+
had enabled its form, so the editor showed every field read-only and nothing could be typed.
|
|
113
|
+
The field now follows the form's events.
|
|
114
|
+
|
|
115
|
+
- **A field leaves edit mode when the edit is cancelled, even if its control stayed disabled.** A
|
|
116
|
+
control kept disabled through an edit -- a read-only username, say -- went on showing a disabled
|
|
117
|
+
input after the view cancelled, instead of its value. Same cause, same fix.
|
|
118
|
+
|
|
119
|
+
- **A read-only field shows a value patched into a disabled form.** It used to keep the value it
|
|
120
|
+
painted first.
|
|
121
|
+
|
|
122
|
+
- **The sign-in screen shows `AppConfig.loginBackgroundUrl`.** The photograph sat at a negative
|
|
123
|
+
z-index under a host that painted the backdrop and had no stacking context of its own, so it was
|
|
124
|
+
always hidden behind the backdrop. When a photograph is set, the footer under the card now gets a
|
|
125
|
+
glass surface, so its text stays readable over the picture.
|
|
126
|
+
|
|
127
|
+
### ⚠ Breaking Changes / Migration
|
|
128
|
+
|
|
129
|
+
- None.
|
|
130
|
+
|
|
26
131
|
## [1.1.0] - 2026-10-25
|
|
27
132
|
|
|
28
133
|
### Added
|