ng-hub-ui-forms 22.43.0 → 22.44.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 +8 -1
- package/fesm2022/ng-hub-ui-forms.mjs +51 -20
- package/fesm2022/ng-hub-ui-forms.mjs.map +1 -1
- package/package.json +2 -2
- package/styles/_field.scss +50 -15
- package/types/ng-hub-ui-forms.d.ts +6 -0
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ npm install ng-hub-ui-forms ng-hub-ui-utils ng-hub-ui-ds
|
|
|
148
148
|
"@angular/forms": ">=21.0.0",
|
|
149
149
|
"@angular/platform-browser": ">=21.0.0",
|
|
150
150
|
"ng-hub-ui-ds": ">=22.14.1",
|
|
151
|
-
"ng-hub-ui-utils": ">=22.
|
|
151
|
+
"ng-hub-ui-utils": ">=22.21.0"
|
|
152
152
|
}
|
|
153
153
|
```
|
|
154
154
|
|
|
@@ -843,6 +843,13 @@ form = new FormGroup(
|
|
|
843
843
|
On submit, each invalid field shows its error and the cross-field `hubAreEqual`
|
|
844
844
|
error is surfaced by the fieldset/form — no manual error markup anywhere.
|
|
845
845
|
|
|
846
|
+
Inside a container that lays fields out as cells, a message under the control would make the
|
|
847
|
+
row taller. Such a container provides `HUB_FIELD_FEEDBACK` (from `ng-hub-ui-utils`) with
|
|
848
|
+
`'tooltip'`, and the fields inside it ring themselves in the danger colour and keep the message
|
|
849
|
+
for a tooltip on hover, in the danger colour with white or black text by contrast. The message
|
|
850
|
+
stays in the page, visually hidden, so screen readers still announce it. The paginable table does
|
|
851
|
+
this under `flushFields`, and the spreadsheet for the fields it opens in a cell.
|
|
852
|
+
|
|
846
853
|
#### Taking the reader to the errors
|
|
847
854
|
|
|
848
855
|
`hubScrollToError` on the submit button scrolls to the first error left on screen and focuses its
|