ng-hub-ui-paginable 21.2.0 → 22.0.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/README.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # ng-hub-ui-paginable
2
2
 
3
+ [Español](./README.es.md) | **English**
4
+
5
+ ## Documentation and Live Examples
6
+
7
+ This package is part of [Hub UI](https://hubui.dev/), a collection of Angular component libraries for standalone apps.
8
+
9
+ - Docs: https://hubui.dev/paginable/overview/
10
+ - Live examples: https://hubui.dev/paginable/examples/
11
+ - Hub UI: https://hubui.dev/
12
+
3
13
  ## 🧩 Library Family `ng-hub-ui`
4
14
 
5
15
  This library is part of the **ng-hub-ui** ecosystem:
@@ -10,9 +20,13 @@ This library is part of the **ng-hub-ui** ecosystem:
10
20
  - [**ng-hub-ui-board**](https://www.npmjs.com/package/ng-hub-ui-board)
11
21
  - [**ng-hub-ui-breadcrumbs**](https://www.npmjs.com/package/ng-hub-ui-breadcrumbs)
12
22
  - [**ng-hub-ui-calendar**](https://www.npmjs.com/package/ng-hub-ui-calendar)
23
+ - [**ng-hub-ui-dropdown**](https://www.npmjs.com/package/ng-hub-ui-dropdown)
24
+ - [**ng-hub-ui-history**](https://www.npmjs.com/package/ng-hub-ui-history)
13
25
  - [**ng-hub-ui-modal**](https://www.npmjs.com/package/ng-hub-ui-modal)
26
+ - [**ng-hub-ui-nav**](https://www.npmjs.com/package/ng-hub-ui-nav)
14
27
  - [**ng-hub-ui-paginable**](https://www.npmjs.com/package/ng-hub-ui-paginable) ← You are here
15
28
  - [**ng-hub-ui-portal**](https://www.npmjs.com/package/ng-hub-ui-portal)
29
+ - [**ng-hub-ui-sortable**](https://www.npmjs.com/package/ng-hub-ui-sortable)
16
30
  - [**ng-hub-ui-stepper**](https://www.npmjs.com/package/ng-hub-ui-stepper)
17
31
  - [**ng-hub-ui-utils**](https://www.npmjs.com/package/ng-hub-ui-utils)
18
32
 
@@ -115,8 +129,8 @@ This library arises from the need to offer highly configurable, accessible, and
115
129
 
116
130
  All components are built as standalone Angular components with full Angular Signals support.
117
131
 
118
- > ⚠️ **Breaking changes in v21.2.0**
119
- > This major release removes the `color` property from `PaginableActionButton` and unifies action button contracts.
132
+ > ⚠️ **Breaking changes in v22.0.0**
133
+ > This major release restructures the List CSS API (the `.hub-list` block moves to the host, the `<ul>` becomes `.hub-list__items`), renames the `--hub-list-container-*` variables, and removes the non-functional `--hub-table-breakpoint-*` variables. `peerDependencies` stays at `>=18.0.0`, so Angular 18–22 remain supported.
120
134
  > Review migration steps in [BREAKING_CHANGES.md](./BREAKING_CHANGES.md) before upgrading.
121
135
 
122
136
  ---
@@ -402,6 +416,24 @@ export class ExampleComponent {
402
416
  </hub-ui-list>
403
417
  ```
404
418
 
419
+ ### List Component as Cards
420
+
421
+ Use the same component with `options.display = 'cards'` when you want a card-based root layout while keeping nested children rendered as a regular hierarchical list.
422
+
423
+ ```html
424
+ <hub-ui-list
425
+ [items]="products()"
426
+ [bindLabel]="'name'"
427
+ [bindChildren]="'children'"
428
+ [options]="{
429
+ display: 'cards',
430
+ searchable: true,
431
+ collapsed: true
432
+ }"
433
+ >
434
+ </hub-ui-list>
435
+ ```
436
+
405
437
  ### Standalone Paginator
406
438
 
407
439
  ```html
@@ -1056,6 +1088,8 @@ interface ListClickEvent<T> {
1056
1088
  }
1057
1089
  ```
1058
1090
 
1091
+ `options.display` accepts `'list' | 'cards'`. The `cards` mode only affects the root level of the list component.
1092
+
1059
1093
  ### Paginator Component (`<hub-ui-paginator>`)
1060
1094
 
1061
1095
  #### Inputs
@@ -2209,6 +2243,27 @@ export class AppComponent {
2209
2243
 
2210
2244
  ## 📊 Changelog
2211
2245
 
2246
+ ## [22.0.0] - 2026-06-17
2247
+
2248
+ ### Changed
2249
+
2250
+ - **List:** the BEM block now lives on the host element. The host `hub-list` carries the `.hub-list` block class and the `<ul>` becomes the `.hub-list__items` element (modifiers `.hub-list__items--root` / `--cards`). Backgrounds are controlled via `--hub-list-bg` (host) and `--hub-list-item-bg` (items), both defaulting to a transparent host / surface items.
2251
+
2252
+ ### Added
2253
+
2254
+ - **List:** `--hub-list-gap`, `--hub-list-items-bg` and `--hub-list-item-bg` CSS variables.
2255
+
2256
+ ### Fixed
2257
+
2258
+ - **List:** the card CSS variables (`--hub-list-cards-*`) were documented and overridable but never applied — they now take effect.
2259
+ - **Paginator:** `--hub-paginator-font-size` is now actually applied.
2260
+ - **Docs:** CSS variables reference corrected (fixed the `--hub-table-table-*` doubled-prefix typo, documented the table search block) and brought to full EN/ES parity.
2261
+
2262
+ ### Removed
2263
+
2264
+ - **Breaking — List:** renamed `--hub-list-container-*` variables to `--hub-list-bg` / `--hub-list-border-radius` / `--hub-list-padding-x/y` / `--hub-list-items-gap`, and the `.hub-list` / `.hub-list--root` / `.hub-list--cards` selectors were restructured (see the Changed note above).
2265
+ - **Table:** removed the non-functional `--hub-table-breakpoint-*` variables (responsive breakpoints are fixed and cannot be overridden via CSS variables).
2266
+
2212
2267
  ## [19.10.2] - 2025-12-23
2213
2268
 
2214
2269
  ### Added
@@ -2286,7 +2341,7 @@ Do you like this library? You can support us by buying us a coffee ☕:
2286
2341
 
2287
2342
  Thanks to all contributors who have helped make this library better!
2288
2343
 
2289
- - **Carlos Morcillo Fernández** - _Creator & Maintainer_ - [@carlos-morcillo](https://github.com/carlos-morcillo)
2344
+ - **[Carlos Morcillo Fernández](https://www.carlosmorcillo.com)** - _Creator & Maintainer_ - [@carlos-morcillo](https://github.com/carlos-morcillo)
2290
2345
 
2291
2346
  ## 📄 License
2292
2347