ng-hub-ui-paginable 22.3.0 → 22.5.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
@@ -1103,6 +1103,7 @@ interface TableRowEvent<T> {
1103
1103
  | `batchActions` | `Array<PaginableTableDropdown \| PaginableActionButton>` | `[]` | Actions for selected items. |
1104
1104
  | `clickFn` | `(event: ListClickEvent<T>) => void` | `null` | Handler for item click events. |
1105
1105
  | `rowClass` | `string \| ((item: T) => string)` | `null` | Custom CSS class for a list item. Can be a fixed string or a function that returns a class based on item data. |
1106
+ | `connected` | `boolean` | `false` | Draws a vertical connector between consecutive items for a timeline / pipeline look (list display only, skipped in cards). Themed via `--hub-list-connector-color` / `-width` / `-style` / `-offset`. |
1106
1107
 
1107
1108
  **List Click Event (`ListClickEvent<T>`):**
1108
1109
 
@@ -1232,7 +1233,7 @@ You can also use `tableRowTpt` with expandable components.
1232
1233
  The `ng-hub-ui-paginable` library is fully style-configurable through **CSS custom properties (CSS variables)** for **Table**, **List**, and **Paginator**.
1233
1234
 
1234
1235
  For a complete and up-to-date token catalog, see [CSS Variables Reference](./docs/css-variables-reference.md).
1235
- Table and List also expose context pagination tokens (`--hub-table-pagination-*`, `--hub-list-pagination-*`) so embedded paginators follow component themes by default.
1236
+ The paginator embedded in Table and List is themed through the shared `--hub-paginator-*` tokens — override them on the host component to re-theme it in context.
1236
1237
 
1237
1238
  ### 🔗 Import styles
1238
1239
 
@@ -1261,6 +1262,45 @@ Table and List also expose context pagination tokens (`--hub-table-pagination-*`
1261
1262
  }
1262
1263
  ```
1263
1264
 
1265
+ ### 🧩 SCSS mixins — one-call theming
1266
+
1267
+ Instead of setting the `--hub-*` tokens by hand, you can theme the table or the list in a single `@include`. Every parameter is optional and defaults to `null`, so only the ones you pass are emitted (the rest keep the component defaults). Import the mixin you need from the distributed styles:
1268
+
1269
+ ```scss
1270
+ @use 'ng-hub-ui-paginable/styles/mixins/table-theme' as *;
1271
+ @use 'ng-hub-ui-paginable/styles/mixins/list-theme' as *;
1272
+ ```
1273
+
1274
+ #### `hub-table-theme(…)` — theme `<hub-table>`
1275
+
1276
+ Colour (`$accent`, `$bg`, `$color`, `$border-color`, `$hover-bg`, `$hover-color`, `$selected-bg`, `$selected-color`, `$striped-bg`, `$striped-color`), border (`$border-width`, `$border-radius`), density (`$cell-padding-x`, `$cell-padding-y`) and footer / bottom-bar (`$footer-gap`, `$footer-justify`, `$footer-align`, `$footer-wrap`).
1277
+
1278
+ ```scss
1279
+ .invoices-table {
1280
+ @include hub-table-theme(
1281
+ $accent: var(--hub-sys-color-success),
1282
+ $border-radius: 0.5rem,
1283
+ $cell-padding-y: 0.375rem,
1284
+ $footer-justify: end
1285
+ );
1286
+ }
1287
+ ```
1288
+
1289
+ #### `hub-list-theme(…)` — theme `<hub-list>` (list & cards)
1290
+
1291
+ Colour (`$accent`, `$bg`, `$item-bg`, `$item-color`, `$item-border-color`, `$hover-bg`, `$selected-bg`, `$selected-color`), border/radius (`$border-radius`, `$item-border-radius`), density (`$item-padding-x`, `$item-padding-y`, `$gap`), the cards layout (`$cards-bg`, `$cards-border-color`, `$cards-border-radius`, `$cards-padding-x`, `$cards-padding-y`, `$cards-min-column-width`, `$cards-gap`) and footer (`$footer-gap`, `$footer-justify`, `$footer-align`, `$footer-wrap`).
1292
+
1293
+ ```scss
1294
+ .team-list {
1295
+ @include hub-list-theme(
1296
+ $accent: var(--hub-sys-color-success),
1297
+ $item-border-radius: 0.75rem,
1298
+ $gap: 0.5rem,
1299
+ $cards-min-column-width: 16rem
1300
+ );
1301
+ }
1302
+ ```
1303
+
1264
1304
  ### Dynamic Row Styling (`rowClass`)
1265
1305
 
1266
1306
  The `rowClass` input allows you to dynamically assign custom CSS classes to each row in both the table and list components. This is useful for visually highlighting rows based on their data. It accepts either a static `string` (to apply the same class to all rows) or a `function` that receives the item data and returns a class string.
@@ -1974,9 +2014,9 @@ headers = [
1974
2014
 
1975
2015
  ```scss
1976
2016
  .hub-table {
1977
- --hub-body-bg: #f8f9fa;
1978
- --hub-body-color: #212529;
1979
- --hub-border-color: #dee2e6;
2017
+ --hub-table-bg: #f8f9fa;
2018
+ --hub-table-color: #212529;
2019
+ --hub-table-border-color: #dee2e6;
1980
2020
  }
1981
2021
  ```
1982
2022