ng-hub-ui-forms 22.45.1 → 22.47.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
@@ -52,6 +52,12 @@ This library is part of the **ng-hub-ui** ecosystem:
52
52
  npm install ng-hub-ui-forms
53
53
  ```
54
54
 
55
+ `@angular/cdk` (22 or later) is a required peer: the select's list renders in a CDK overlay.
56
+
57
+ ```bash
58
+ npm install @angular/cdk
59
+ ```
60
+
55
61
  `ng-hub-ui-utils` is a peer dependency (the datepicker opens its panel through its overlay
56
62
  service, and every field renders its tooltip helper text with `hubTooltip`). `ng-hub-ui-ds`
57
63
  carries the design tokens the fields read; it is optional, because every token is read with a
@@ -136,7 +142,7 @@ section.
136
142
  ## 📦 Installation
137
143
 
138
144
  ```bash
139
- npm install ng-hub-ui-forms ng-hub-ui-utils ng-hub-ui-ds
145
+ npm install ng-hub-ui-forms @angular/cdk ng-hub-ui-utils ng-hub-ui-ds
140
146
  ```
141
147
 
142
148
  ### Peer Dependencies
@@ -945,6 +951,20 @@ field once it is touched and valid. The invalid state is unaffected — it is al
945
951
  automatic; only success is gated behind this flag. A per-field `showValid` input
946
952
  overrides the global default.
947
953
 
954
+ `feedbackAnimation` sets how validation messages appear and go. `collapse` (the default) opens the
955
+ room the message needs while it fades in, so the fields below slide down instead of jumping; `fade`
956
+ and `slide` only soften the text; `none` shows and hides it at once. Your own motion is a pair of
957
+ classes Angular adds while the message enters and leaves. Style them in a global stylesheet, because
958
+ they land on the field's feedback element, out of reach of an encapsulated component style. Without
959
+ `leave`, the message goes at once. Every preset stops under `prefers-reduced-motion`, and a message
960
+ shown as a tooltip is never animated. Timing comes from `--hub-form-feedback-motion-duration`,
961
+ `--hub-form-feedback-motion-easing` and `--hub-form-feedback-slide-distance`.
962
+
963
+ ```ts
964
+ provideHubForms({ feedbackAnimation: 'slide' });
965
+ provideHubForms({ feedbackAnimation: { enter: 'error-in', leave: 'error-out' } });
966
+ ```
967
+
948
968
  `color` sets an application palette for every colour field without `swatches` of its own (there is
949
969
  none by default) and the two accessible names the colour field adds: `customColorLabel`
950
970
  (`'Custom color'`) for the grid's last cell and `pickerLabel` (`'Choose color'`) for the hex field's
@@ -1001,7 +1021,9 @@ check mark (unset, each mark is black or white, whichever reads on its swatch).
1001
1021
  }
1002
1022
  ```
1003
1023
 
1004
- **`hub-select` inside a modal** — the dropdown panel stacks through `--hub-select-dropdown-zindex` (default `calc(var(--hub-sys-zindex-modal, 1055) + 5)`; the previous `--hub-select-dropdown-z-index` spelling is deprecated but still honoured), so a select opened inside a `HubModal` renders above the dialog instead of being clipped underneath it.
1024
+ **`hub-select` inside a modal** — the list renders in a CDK overlay, which uses the browser's top layer, so a select opened inside a `HubModal` is drawn above the dialog with no z-index to tune. `appendTo` only chooses the element the overlay container is placed in; the position is computed against the viewport. `popover` is deprecated and has no effect.
1025
+
1026
+ **Glass** — when `ng-hub-ui-ds` turns its glass layer on (`[data-hub-glass]` or `data-theme="glass"` on an ancestor), the select list and the datepicker calendar become translucent, blurred and rimmed. Inputs and the other fields stay opaque on purpose, for readability. With the layer off, nothing changes.
1005
1027
 
1006
1028
  **Width of the list** — the panel is never narrower than the control and grows to its longest option, up to `--hub-select-dropdown-max-width` (default `24rem`) and never past the screen. When it would run off the screen from the control's start, it lines up with the control's end.
1007
1029