@zambon-dev/ui 1.5.0 → 1.6.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 +23 -1
- package/fesm2022/zambon-dev-ui-framework.mjs +743 -5
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +2185 -54
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/i18n/framework/en.json +14 -1
- package/i18n/framework/pt.json +14 -1
- package/package.json +1 -1
- package/types/zambon-dev-ui-framework.d.ts +306 -3
- package/types/zambon-dev-ui-library.d.ts +753 -9
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,27 @@ packages are listed under [Package history](#package-history) at the end.
|
|
|
27
27
|
|
|
28
28
|
### ⚠ Breaking Changes / Migration
|
|
29
29
|
|
|
30
|
+
## [1.6.0] - 2026-12-05
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- `lib-date-input`, a date or date-and-time field that shows and reads dates in the application's language, not the operating system's. Type the date (`05/12/2026` in Portuguese, `12/05/2026` in English) or pick it from a calendar. The value keeps the native shape: `yyyy-MM-dd`, or `yyyy-MM-ddTHH:mm` in `datetime` mode. It sets the `dateInvalid`, `dateMin` and `dateMax` errors.
|
|
35
|
+
- `lib-calendar`, the month calendar the date field opens. It can also sit on a page.
|
|
36
|
+
- `lib-number-input`, a number field that uses the application's language for the decimal and thousands separators. It supports `decimals`, `minDecimals`, `prefix`, `suffix` and `currency`, and sets the `numberInvalid`, `min` and `max` errors.
|
|
37
|
+
- `LocaleService`, a signal with the locale of the language the application shows. It reads the `locale` translation key and follows language changes. The `locale-format` helpers that format and read dates and numbers for a locale are exported too.
|
|
38
|
+
- `ToastService` and `framework-toast` in `@zambon-dev/ui/framework`: short, non-blocking messages in the bottom-right corner. Call `success()`, `info()`, `warning()` or `error()` with a translation key; no template change is needed. Success, info and warning close after five seconds, errors stay until closed, and the countdown pauses while the toast is hovered or focused. Screen readers hear each toast through the CDK `LiveAnnouncer`. Adds the translation key `Toast-Close`.
|
|
39
|
+
- `libTooltip` directive (`TooltipDirective`): a themed hint that shows on hover, on keyboard focus and on a long press, to use instead of the native `title` attribute. It takes a translation key or plain text, and accepts `tooltipPosition`, `tooltipDisabled` and `tooltipDelay`. Escape closes it, and the pointer can move onto it. Icon-only buttons still need `ariaLabel`.
|
|
40
|
+
- `framework-file-upload`, a form field to drop or browse for files. It keeps a `File` or `File[]` in its control, checks `accept`, `maxFileSize` and `maxFiles`, and lists each file it leaves out with the reason (also emitted through `filesRejected`). It shows a read-only list outside edit mode and per-file progress bars from `progress`. It does no upload itself: start yours on `filesAdded`. Adds `FileUpload-*` keys to the framework translations.
|
|
41
|
+
- `lib-badge`, a small coloured status label. Choose an `intent` (`neutral`, `success`, `warning`, `danger`, `info` or `accent`), and optionally an `icon` or a `dot`.
|
|
42
|
+
- `lib-skeleton`, a pulsing loading placeholder: lines of text, a block or a circle, set with `shape`, `lines`, `width` and `height`. Screen readers skip it; mark the loading container with `aria-busy`.
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- `lib-form-input` and `lib-form-input-group` with `type` `date`, `datetime-local` or `number` now use `lib-date-input` and `lib-number-input` instead of the native inputs. Dates and numbers show and are typed in the application's language. The control's value has the same shape as before.
|
|
47
|
+
- The read-only text of a date or number field follows the application's language too. A date field without `format` used to show `yyyy-MM-dd`; it now shows the language's short date, such as `05/12/2026`. Pass `format` to keep a fixed pattern.
|
|
48
|
+
- The form input group's loading placeholder is now a `lib-skeleton`. It is easier to see in the light theme, and stops pulsing when the user prefers reduced motion.
|
|
49
|
+
- The catalog select documentation now introduces its two modes up front: a fixed list with no backend call, or a search endpoint.
|
|
50
|
+
|
|
30
51
|
## [1.5.0] - 2026-11-08
|
|
31
52
|
|
|
32
53
|
### Added
|
|
@@ -2738,7 +2759,8 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
|
|
|
2738
2759
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
2739
2760
|
`shared-v*` tags.
|
|
2740
2761
|
|
|
2741
|
-
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.
|
|
2762
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.6.0...HEAD
|
|
2763
|
+
[1.6.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.6.0
|
|
2742
2764
|
[1.5.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.5.0
|
|
2743
2765
|
[1.4.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.4.1
|
|
2744
2766
|
[1.4.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.4.0
|