ng-hub-ui-forms 22.3.0 → 22.4.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
@@ -92,7 +92,7 @@ mode — no Bootstrap dependency.
92
92
 
93
93
  ## 🎯 Features
94
94
 
95
- - **Fields** — `hub-input` (text/number/email/password/color/switch/checkbox/counter, with input-group addons & masks, projected in-field affixes, a built-in `clearable` button and debounced typeahead `search`), `hub-otp-input`, `hub-textarea` (+ `hubAutoresize`), `hub-slider`, `hub-select` (dropdown / buttons / checkbox / radio formats, grouping, typeahead, custom templates), `hub-datepicker` (single & range, keyboard nav, i18n).
95
+ - **Fields** — `hub-input` (text/number/email/password/color/switch/checkbox/counter, with input-group addons & masks, projected in-field affixes, a built-in `clearable` button and debounced typeahead `search`), `hub-otp-input`, `hub-textarea` (+ `hubAutoresize`), `hub-slider` (single / dual thumb, gradient fill), `hub-segmented` (segmented control field — single & multiple selection, horizontal & vertical, with label + validation), `hub-select` (dropdown format, grouping, typeahead, custom templates; the `buttons` / `checkbox` / `radio` formats are **deprecated** use `hub-segmented`), `hub-datepicker` (single & range, keyboard nav, i18n).
96
96
  - **Automatic error display** — bind a field and its control errors render below it; `hub-fieldset`, `form[hubForm]` and `hub-legend` surface group- and form-level (cross-field) errors the same way, with zero wiring.
97
97
  - **Containers** — `hub-fieldset` / `form[hubForm]` group fields and show their group errors; `hub-legend` renders an accessible legend.
98
98
  - **Configurable** — `provideHubForms({ … })` sets the invalid-feedback templates, datepicker locale/labels and more, app-wide or per instance.
@@ -291,7 +291,7 @@ shared SCSS tokens; import them once at the app root:
291
291
  ```css
292
292
  hub-input,
293
293
  hub-select {
294
- --hub-field-border-color: #cbd5e1;
294
+ --hub-input-border-color: #cbd5e1;
295
295
  --hub-select-option-selected-bg: #e0e7ff;
296
296
  }
297
297
  ```
@@ -308,6 +308,28 @@ hub-input {
308
308
  }
309
309
  ```
310
310
 
311
+ **`hub-slider`** — `--hub-slider-track-fill` takes a full `<image>` (e.g. a `linear-gradient(to right, …)`) for the filled part of the track, which renders intact clipped to the current percentage; `--hub-slider-value-space` is the value-bubble headroom and collapses to `0` on a `[showValue]="false"` (flush) slider:
312
+
313
+ ```css
314
+ .gradient-slider {
315
+ --hub-slider-track-fill: linear-gradient(to right, #22c55e, #eab308, #ef4444);
316
+ }
317
+ ```
318
+
319
+ **`hub-select` inside a modal** — the dropdown panel stacks through `--hub-select-dropdown-z-index` (default `calc(var(--hub-sys-zindex-modal, 1055) + 5)`), so a select opened inside a `HubModal` renders above the dialog instead of being clipped underneath it.
320
+
321
+ **`hub-segmented` variants & theming** — the `color` input tints the selected segment from the semantic families (`<hub-segmented color="primary">`); any of the `--hub-segmented-*` slots can be set directly, or in one call with the SCSS mixin:
322
+
323
+ ```scss
324
+ @use 'ng-hub-ui-forms/styles' as *;
325
+
326
+ .brand-toggle {
327
+ @include hub-segmented-theme($selected-bg: gold, $selected-color: #111, $radius: 999px);
328
+ }
329
+ ```
330
+
331
+ In single-select mode the selected pill slides between options (`--hub-segmented-indicator-transition`, default `0.2s ease`; disabled under `prefers-reduced-motion`).
332
+
311
333
  ---
312
334
 
313
335
  ## ✨ Signal Forms (opt-in)