@zambon-dev/ui 1.6.0 → 1.7.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 +21 -1
- package/fesm2022/zambon-dev-ui-framework.mjs +5 -1
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +202 -14
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/i18n/framework/en.json +4 -0
- package/i18n/framework/pt.json +4 -0
- package/package.json +1 -1
- package/types/zambon-dev-ui-library.d.ts +133 -0
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,24 @@ packages are listed under [Package history](#package-history) at the end.
|
|
|
27
27
|
|
|
28
28
|
### ⚠ Breaking Changes / Migration
|
|
29
29
|
|
|
30
|
+
## [1.7.0] - 2026-12-05
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- `lib-data-grid` columns can name a `type`: `text`, `number`, `currency`, `percent`, `date`, `datetime`, `boolean`, `enum` or `badge`. The grid then formats the value in the application's language, and again when the language changes. Columns without a type show the value as before, and a column's `template` still wins.
|
|
35
|
+
- New column props for the types: `decimals`, `minDecimals`, `currency`, `utc` (a UTC value without a zone marker, shown in the user's time zone; a date with no time is kept on its day), `enumValues`, `badgeIntents`, and `trueText`/`falseText` (text for screen readers in a boolean cell). Boolean cells without their own texts use the new grid settings `booleanTrueText`/`booleanFalseText` ("Yes"/"No", or the framework keys `Grid-Yes`/`Grid-No`). A total of 1 uses `totalRowText` (`Grid-TotalRow`).
|
|
36
|
+
- Grid columns take an `align` prop: `start`, `center` or `end`. Number, currency and percent columns default to `end` and use tabular figures; boolean columns default to `center`. The header follows the cells.
|
|
37
|
+
- The `showTotalRows` grid setting shows the total number of records under the rows when `getData` returns `{ items, totalRows }`. `totalRowsText` sets the text, with a `{{ count }}` placeholder. The framework's grid settings use the new `Grid-TotalRows` key, in English and Portuguese.
|
|
38
|
+
|
|
39
|
+
## [1.6.1] - 2026-12-05
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- `lib-data-grid` shows its failure message when the first load fails. It used to stay blank.
|
|
44
|
+
- `lib-data-grid` has a default failure message, "The records could not be loaded.", when used without the framework's grid settings. It used to show an empty line.
|
|
45
|
+
- A `lib-data-grid` column whose `field` is a dot path, such as `customer.name`, shows an empty cell when a step is `null`. It used to throw and break the row.
|
|
46
|
+
- The `hideBorders` grid setting now drops the grid's outline and rounded corner. It was accepted but did nothing.
|
|
47
|
+
|
|
30
48
|
## [1.6.0] - 2026-12-05
|
|
31
49
|
|
|
32
50
|
### Added
|
|
@@ -2759,7 +2777,9 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
|
|
|
2759
2777
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
2760
2778
|
`shared-v*` tags.
|
|
2761
2779
|
|
|
2762
|
-
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.
|
|
2780
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.7.0...HEAD
|
|
2781
|
+
[1.7.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.7.0
|
|
2782
|
+
[1.6.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.6.1
|
|
2763
2783
|
[1.6.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.6.0
|
|
2764
2784
|
[1.5.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.5.0
|
|
2765
2785
|
[1.4.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.4.1
|
|
@@ -5638,7 +5638,11 @@ var FrameworkGridConfigsProvider = class FrameworkGridConfigsProvider extends Da
|
|
|
5638
5638
|
loadingDisplayText: "Grid-Loading",
|
|
5639
5639
|
messageOnEmpty: "Grid-Message-Empty",
|
|
5640
5640
|
messageOnFailed: "Grid-Message-Failed",
|
|
5641
|
-
messageOnLazyLoad: "Grid-Message-LazyLoad"
|
|
5641
|
+
messageOnLazyLoad: "Grid-Message-LazyLoad",
|
|
5642
|
+
totalRowsText: "Grid-TotalRows",
|
|
5643
|
+
totalRowText: "Grid-TotalRow",
|
|
5644
|
+
booleanTrueText: "Grid-Yes",
|
|
5645
|
+
booleanFalseText: "Grid-No"
|
|
5642
5646
|
});
|
|
5643
5647
|
}
|
|
5644
5648
|
static ɵfac = i0.ɵɵngDeclareFactory({
|