@zambon-dev/ui 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zambon-dev/ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Angular UI components, application framework and shared application layer for Zambon applications.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1108,6 +1108,18 @@ export declare class FormInputGroupComponent extends BaseComponent implements On
1108
1108
  protected readonly formGroupName: FormGroupName;
1109
1109
  protected formService: FormService;
1110
1110
  protected readonly loadingField: WritableSignal<boolean>;
1111
+ /**
1112
+ * Bumped on every event the control emits -- a value, status or touched change.
1113
+ *
1114
+ * A FormControl is not a signal, so the template could not track the control's errors or whether
1115
+ * it was touched. A change the field made itself redrew it, but one made from outside did not: the
1116
+ * server's errors after a save turned the input red and left the message hidden until the user
1117
+ * typed again, and a save marking every field as touched showed no required message at all.
1118
+ */
1119
+ private readonly controlChanged;
1120
+ protected readonly errors: Signal<ValidationErrors | null>;
1121
+ protected readonly isInvalid: Signal<boolean>;
1122
+ protected readonly isTouched: Signal<boolean>;
1111
1123
  protected get formControl(): FormControl<any> | null;
1112
1124
  protected get formGroup(): FormGroup;
1113
1125
  protected get hasNotes(): boolean;