@zambon-dev/ui 1.12.0 → 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 CHANGED
@@ -27,6 +27,52 @@ 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
+
56
+ ## [1.12.2] - 2026-12-06
57
+
58
+ ### Changed
59
+
60
+ - **`selectedRowKeys` on a data grid dataset gives a copy.** Before, it gave the dataset's own
61
+ list, so a list you kept changed with the next selection, and removing the selected rows emptied
62
+ it. Keep the copy as long as you need. Setting `selectedRowKeys` keeps a copy of your list too.
63
+ Code that kept the list to see the selection change, or changed the list to change the selection,
64
+ must change. Read `selectedRowKeys` again when you need it, or listen to `selectedRowsChanged`.
65
+ Change the selection with `selectRow`, `deselectRow`, `selectRows` or `clearSelection`.
66
+
67
+ ### Fixed
68
+
69
+ - **`utcDate` showed a date with no time as the day before.** A value such as `2026-12-05` is a
70
+ calendar day, but the pipe shifted it by the time zone, so west of Greenwich, as in Brazil, it
71
+ showed 4 December. It now comes back as the start of the same day in local time. A day the
72
+ calendar does not have, such as `2026-02-30`, gives `null`.
73
+ - **`ng add` said components render before the packages were installed.** Its closing message
74
+ now says they render once its packages are installed.
75
+
30
76
  ## [1.12.0] - 2026-12-06
31
77
 
32
78
  ### Added
@@ -2921,7 +2967,9 @@ URL) in `AppConfig`, and implement a hub that pushes the notification list to cl
2921
2967
  available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
2922
2968
  `shared-v*` tags.
2923
2969
 
2924
- [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/ui-v1.12.0...HEAD
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
2972
+ [1.12.2]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.2
2925
2973
  [1.12.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.12.0
2926
2974
  [1.11.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.1
2927
2975
  [1.11.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/ui-v1.11.0
@@ -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({