ng-hub-ui-forms 22.41.0 → 22.42.1

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
@@ -147,7 +147,7 @@ npm install ng-hub-ui-forms ng-hub-ui-utils ng-hub-ui-ds
147
147
  "@angular/core": ">=21.0.0",
148
148
  "@angular/forms": ">=21.0.0",
149
149
  "@angular/platform-browser": ">=21.0.0",
150
- "ng-hub-ui-ds": ">=22.0.0",
150
+ "ng-hub-ui-ds": ">=22.14.1",
151
151
  "ng-hub-ui-utils": ">=22.12.0"
152
152
  }
153
153
  ```
@@ -811,6 +811,25 @@ form = new FormGroup(
811
811
  On submit, each invalid field shows its error and the cross-field `hubAreEqual`
812
812
  error is surfaced by the fieldset/form — no manual error markup anywhere.
813
813
 
814
+ #### Taking the reader to the errors
815
+
816
+ `hubScrollToError` on the submit button scrolls to the first error left on screen and focuses its
817
+ control; each further press moves to the next one, and after the last it starts again. A field's
818
+ control and its message count once. Left empty it walks the button's own form, the one it sits in
819
+ or the one its `form` attribute names:
820
+
821
+ ```html
822
+ <form id="customer" [formGroup]="form" hubForm (submit)="save()">…</form>
823
+ <button hubButton type="submit" form="customer" hubScrollToError>Save</button>
824
+
825
+ <!-- any other block, with a product's own error marks as well -->
826
+ <section #sheet>…</section>
827
+ <button [hubScrollToError]="sheet" hubScrollToErrorSelector=".my-error">Check</button>
828
+ ```
829
+
830
+ A template reference on `<form hubForm>` names the component, not the element, which is why the
831
+ form is reached through the button rather than passed in.
832
+
814
833
  #### Two ways to write the fieldset
815
834
 
816
835
  `hubFieldset` is an attribute on the native element, so the group costs one element instead of
@@ -945,6 +964,8 @@ check mark (unset, each mark is black or white, whichever reads on its swatch).
945
964
 
946
965
  **`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.
947
966
 
967
+ **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.
968
+
948
969
  **`hub-datepicker` inside a modal** — the same guarantee, through `--hub-datepicker-overlay-zindex` (default `calc(var(--hub-sys-zindex-modal, 1055) + 5)`): a calendar opened inside a `HubModal` is drawn over the dialog, and its backdrop one layer under the calendar but still over the dialog, so clicking outside closes it. One token moves both:
949
970
 
950
971
  ```css