@zambon-dev/ui 1.12.2 → 1.13.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 +28 -1
- package/fesm2022/zambon-dev-ui-framework.mjs +2 -1
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +97 -7
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/i18n/framework/en.json +1 -0
- package/i18n/framework/pt.json +1 -0
- package/package.json +1 -1
- package/types/zambon-dev-ui-library.d.ts +96 -0
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,32 @@ packages are listed under [Package history](#package-history) at the end.
|
|
|
27
27
|
|
|
28
28
|
### ⚠ Breaking Changes / Migration
|
|
29
29
|
|
|
30
|
+
## [1.13.0] - 2026-12-06
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Sorting and quick search in the data grid.** Two settings, both done by your API:
|
|
35
|
+
- `sortable: true` makes each heading a button that sorts by the column, ascending, then
|
|
36
|
+
descending, then not at all. `getData` receives `sort: { [field]: 'asc' | 'desc' }`. A column
|
|
37
|
+
sorts by its `field` with the dot path flattened, so `customer.name` sorts by `customerName`,
|
|
38
|
+
or by the new `sortField`; `sortable: false` on a column opts it out. The headings carry
|
|
39
|
+
`aria-sort`.
|
|
40
|
+
- `quickSearch: true` adds a search box to the toolbar. Once typing pauses, or on Enter,
|
|
41
|
+
`getData` receives `search`, the trimmed text. `quickSearchText` names it; the framework's
|
|
42
|
+
provider uses the new `Grid-Search` key.
|
|
43
|
+
- The dataset holds the current `sort` and `search`, and `setSort` and `setSearch` change them
|
|
44
|
+
from code. Each change reloads from the first block and keeps the filters, and drops a request
|
|
45
|
+
still in flight. A grid that waits for its first load keeps them for that load.
|
|
46
|
+
- ZWebAPI's list helpers apply both from the release that adds them,
|
|
47
|
+
[RicardoZambon/ZWebAPI#35](https://github.com/RicardoZambon/ZWebAPI/pull/35). Without either
|
|
48
|
+
setting, the grid sends the same request as before.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- **A reload during a load kept the old rows.** `setFilters`, `refresh` or a new `parentEntityId`
|
|
53
|
+
while a block was still loading was skipped, and that block's answer stayed on screen. The load
|
|
54
|
+
in flight is now dropped and the grid loads again with the new request.
|
|
55
|
+
|
|
30
56
|
## [1.12.2] - 2026-12-06
|
|
31
57
|
|
|
32
58
|
### Changed
|
|
@@ -2941,7 +2967,8 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
|
|
|
2941
2967
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
2942
2968
|
`shared-v*` tags.
|
|
2943
2969
|
|
|
2944
|
-
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.
|
|
2970
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.13.0...HEAD
|
|
2971
|
+
[1.13.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.13.0
|
|
2945
2972
|
[1.12.2]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.2
|
|
2946
2973
|
[1.12.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.0
|
|
2947
2974
|
[1.11.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.1
|
|
@@ -5664,7 +5664,8 @@ var FrameworkGridConfigsProvider = class FrameworkGridConfigsProvider extends Da
|
|
|
5664
5664
|
resetColumnsText: "Grid-ResetColumns",
|
|
5665
5665
|
resizeColumnText: "Grid-ResizeColumn",
|
|
5666
5666
|
copiedText: "Grid-Copied",
|
|
5667
|
-
copiedRowText: "Grid-CopiedRow"
|
|
5667
|
+
copiedRowText: "Grid-CopiedRow",
|
|
5668
|
+
quickSearchText: "Grid-Search"
|
|
5668
5669
|
});
|
|
5669
5670
|
}
|
|
5670
5671
|
static ɵfac = i0.ɵɵngDeclareFactory({
|