ng-hub-ui-forms 22.44.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/fesm2022/ng-hub-ui-forms.mjs +16 -16
- package/fesm2022/ng-hub-ui-forms.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_field.scss +17 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-hub-ui-forms",
|
|
3
|
-
"version": "22.44.
|
|
3
|
+
"version": "22.44.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Accessible, signal-based form fields for Angular (input, textarea, slider, segmented, select, datepicker, file input with drag & drop and upload progress) with automatic error display for controls, FormGroups and FormArrays. Reactive Forms today, Signal Forms ready. Part of the ng-hub-ui family.",
|
|
6
6
|
"author": "Carlos Morcillo Fernández <carlos.morcillo@me.com> (https://www.carlosmorcillo.com)",
|
package/styles/_field.scss
CHANGED
|
@@ -76,13 +76,20 @@ hub-timepicker {
|
|
|
76
76
|
text-overflow: ellipsis;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
//
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
// The control sits in the second column, under the label's own row.
|
|
80
|
+
> .hub-field__body {
|
|
81
|
+
grid-column: 2;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Helper text and validation feedback run the full row instead: anchored to the
|
|
86
|
+
// label's column only, they would start wherever the label happens to end and
|
|
87
|
+
// read as attached to the control alone; anchored to the control's column only,
|
|
88
|
+
// as before, they would start short of the label with nothing above them there.
|
|
89
|
+
// Spanning both keeps one left edge for the field, horizontal or not.
|
|
83
90
|
> .hub-field__form-text,
|
|
84
91
|
> .hub-field__feedback {
|
|
85
|
-
grid-column:
|
|
92
|
+
grid-column: 1 / -1;
|
|
86
93
|
min-width: 0;
|
|
87
94
|
}
|
|
88
95
|
}
|
|
@@ -119,17 +126,16 @@ hub-timepicker {
|
|
|
119
126
|
}
|
|
120
127
|
|
|
121
128
|
/**
|
|
122
|
-
* Label row: the label
|
|
129
|
+
* Label row: the label, then the helper-text trigger right beside it.
|
|
123
130
|
*
|
|
124
131
|
* Only rendered when a field asks for `formTextType="tooltip"`. The label stays a
|
|
125
132
|
* direct child of `.hub-field` in every other case, because that is what the
|
|
126
133
|
* horizontal grid and a good deal of existing markup address.
|
|
127
134
|
*
|
|
128
|
-
* The mark
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* its question marks up instead of scattering them wherever each label happens to stop.
|
|
135
|
+
* The mark sits immediately after the label, one `gap` away, in both the stacked and the
|
|
136
|
+
* horizontal layout — never pushed to the row's far edge: the row can be as wide as the
|
|
137
|
+
* control below it, which the label rarely is, and a mark parked out at that edge reads as
|
|
138
|
+
* unrelated to the label it explains.
|
|
133
139
|
*/
|
|
134
140
|
&__label-row {
|
|
135
141
|
display: flex;
|
|
@@ -139,10 +145,6 @@ hub-timepicker {
|
|
|
139
145
|
> .hub-field__label {
|
|
140
146
|
min-width: 0;
|
|
141
147
|
}
|
|
142
|
-
|
|
143
|
-
> .hub-field__hint {
|
|
144
|
-
margin-inline-start: auto;
|
|
145
|
-
}
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
&__required {
|