@zambon-dev/library 1.3.1 → 1.3.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/CHANGELOG.md CHANGED
@@ -23,7 +23,72 @@ 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.3.0] - 2026-07-28
26
+ ## [1.3.2] - 2026-07-30
27
+
28
+ ### Added
29
+
30
+ - **Storybook: `Data Grid/Data Grid ▸ Multi Select Tall Rows` story** — multi-selection over rows
31
+ taller than the default `rowHeight` (41.6px), the height a row needs once it shows a thumbnail.
32
+ Misalignment in the selection column is obvious at that height, so this is the story to check the
33
+ selection checkbox against. Development-only: stories are excluded from the package build.
34
+
35
+ ### Changed
36
+
37
+ - **`lib-ribbon` now hides itself when it contains no visible buttons.** A screen with no ribbon
38
+ actions — a dashboard, or any view that projects an empty `#ribbon` template — previously still
39
+ rendered the bar's border, background and padding around nothing, wasting vertical space at the top
40
+ of the page. This mirrors `lib-ribbon-group`, which already hid itself when none of its children
41
+ were visible. Ribbons with at least one visible group are unaffected. See
42
+ **⚠ Breaking Changes / Migration** below.
43
+
44
+ ### Fixed
45
+
46
+ - **`lib-data-grid`'s multi-selection checkbox is now vertically centred in the row.** The checkbox is
47
+ styled with `vertical-align: super`, which lifts it off the middle of its line box — roughly 6px at
48
+ the default font size. At the default `configs.rowHeight` (41.6px) the drift is easy to miss, but on
49
+ taller rows (say `rowHeight: 56` for a row showing a thumbnail) the checkbox visibly hugged the top
50
+ of the row while the text columns stayed centred. The selection cell now lays its checkbox out as a
51
+ flex item, so it is centred by the box model and `vertical-align` no longer applies to it. The cell
52
+ is also tagged with a `selection` class, mirroring the header's `header-cell selection`. Horizontal
53
+ placement is unchanged, and no consumer changes are required.
54
+ - **Form inputs no longer render a stray bordered box when `type` is set as a static attribute.**
55
+ Angular keeps static attributes in the DOM even when a directive consumes them as an `@Input()`, so
56
+ `<lib-form-input-group type="checkbox">` left a `type="checkbox"` attribute on the host element —
57
+ where `@tailwindcss/forms`' tag-agnostic `[type="checkbox"]` base rules styled the host itself as a
58
+ checkbox (1px border, white fill, `height: 1rem`), drawing an empty-input box around the field row
59
+ and tinting its icon. `FormInputGroupComponent` and `FormInputComponent` now clear the attribute via
60
+ a host binding. This affects every value of `type` (`checkbox`, `date`, `number`, `password`, …);
61
+ both `type="checkbox"` and `[type]="'checkbox'"` now render identically, so existing call sites are
62
+ fixed with no changes required.
63
+ - **`lib-multi-editor` no longer discards rows the user did not type into.** `MultiEditorDataset.newData()`
64
+ exists so implementations can pre-fill a new row, but `onNewClick` reached the form through
65
+ `reset()` + `patchValue()`, which leaves it pristine — and the change tracker only records a row
66
+ while `formGroup.dirty`. Pre-filled values were therefore shown in the grid and then dropped from
67
+ the save batch. The visible symptom was worse than lost defaults: adding several rows and editing
68
+ only the last one saved just that row, because `onSaveClick` validates the current selection only,
69
+ so the earlier rows silently vanished on refresh. `newData()`'s values are now registered when the
70
+ row is added.
71
+
72
+ ### ⚠ Breaking Changes / Migration
73
+
74
+ `lib-multi-editor` now sends rows that `newData()` pre-filled but the user never edited. Nothing to do
75
+ if your `newData()` returns an empty object (`{}`) — the common "blank row" convention — since a
76
+ value-less row is still skipped and the posted batch is byte-for-byte what it was before. If your
77
+ `newData()` *does* return field values, those rows now reach `saveData()` where they were previously
78
+ dropped, so a batch may contain entries it did not before; verify your backend rejects or defaults
79
+ them as you expect.
80
+
81
+ `lib-ribbon` now hides itself when it has neither a visible `lib-ribbon-group` nor any other
82
+ projected content. No action needed if your ribbons use groups (the normal case). The rule is a
83
+ global selector at specificity (0,1,2), so overriding it requires `!important`. Because the bar can
84
+ now appear and disappear rather than merely resize, anything positioned relative to the ribbon may
85
+ shift when a button's visibility resolves (e.g. as permissions arrive).
86
+
87
+ ## [1.3.1] - 2026-07-28
88
+
89
+ > There is no `1.3.0` on npm: the version number was taken by an early publish that was later
90
+ > unpublished, and npm never allows a retired version number to be reused. The sidebar rework below
91
+ > therefore shipped as `1.3.1`. Upgrade straight from `1.2.0` to `1.3.1`.
27
92
 
28
93
  ### Added
29
94
 
@@ -90,7 +155,8 @@ config options and the `getUserProfile()` method still exist but are no longer c
90
155
  available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
91
156
  `library-v*` tags.
92
157
 
93
- [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/library-v1.3.0...HEAD
94
- [1.3.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.3.0
158
+ [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/library-v1.3.2...HEAD
159
+ [1.3.2]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.3.2
160
+ [1.3.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.3.1
95
161
  [1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.2.0
96
162
  [1.1.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.1.1