@zambon-dev/ui 1.1.0 → 1.1.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/CHANGELOG.md +34 -0
- package/fesm2022/zambon-dev-ui-library.mjs +21 -8
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +6 -4
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/types/zambon-dev-ui-library.d.ts +27 -1
package/package.json
CHANGED
|
@@ -949,11 +949,29 @@ export declare class FormInputComponent extends BaseComponent implements OnInit
|
|
|
949
949
|
protected readonly formGroupDirective: FormGroupDirective;
|
|
950
950
|
protected readonly formGroupName: FormGroupName;
|
|
951
951
|
protected readonly formService: FormService;
|
|
952
|
+
/**
|
|
953
|
+
* Bumped on every event the form emits -- a status change, a value change, a reset.
|
|
954
|
+
*
|
|
955
|
+
* A FormGroup is not a signal, so the template could not track whether the form is enabled or
|
|
956
|
+
* what a control holds. Angular's own `NgControlStatus` notified this view by accident, but only
|
|
957
|
+
* while an input was on screen and only when that control's own status moved. So the field never
|
|
958
|
+
* turned into an input when a multi-editor enabled its form, and a control kept disabled through
|
|
959
|
+
* an edit stayed an input after the edit was cancelled.
|
|
960
|
+
*
|
|
961
|
+
* A change made with `emitEvent: false` emits nothing, and still reaches no one.
|
|
962
|
+
*/
|
|
963
|
+
private readonly formChanged;
|
|
964
|
+
/**
|
|
965
|
+
* Whether the field is an input rather than a read-only value. Both halves are read every time:
|
|
966
|
+
* with `||` the edit-mode signal went untracked whenever the form happened to be enabled.
|
|
967
|
+
*/
|
|
968
|
+
protected readonly isEditable: Signal<boolean>;
|
|
969
|
+
/** What the read-only face shows: the fixed value, or else the control's current value. */
|
|
970
|
+
protected readonly shownValue: Signal<any>;
|
|
952
971
|
protected get formControl(): FormControl<any> | null;
|
|
953
972
|
protected get formControlName(): string;
|
|
954
973
|
protected get formGroup(): FormGroup;
|
|
955
974
|
protected get isFormControl(): boolean;
|
|
956
|
-
protected get isFormEditMode(): boolean;
|
|
957
975
|
protected get parentGroups(): string[];
|
|
958
976
|
protected get stepAttributeValue(): number | null;
|
|
959
977
|
protected get minAttributeValue(): number | null;
|
|
@@ -1403,6 +1421,14 @@ export declare class MultiEditorComponent extends ModalComponent implements OnIn
|
|
|
1403
1421
|
closeModal(): void;
|
|
1404
1422
|
toggleModal(): void;
|
|
1405
1423
|
private clearAllFormArrays;
|
|
1424
|
+
/**
|
|
1425
|
+
* Disables the form without telling anything subscribed to its controls, then announces the new
|
|
1426
|
+
* status once, from the form itself.
|
|
1427
|
+
*
|
|
1428
|
+
* The fields in the editor read the form's state from its events. A form disabled without one
|
|
1429
|
+
* left them showing inputs for a form that no longer accepted any.
|
|
1430
|
+
*/
|
|
1431
|
+
private disableFormQuietly;
|
|
1406
1432
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiEditorComponent, never>;
|
|
1407
1433
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiEditorComponent, "lib-multi-editor", never, {
|
|
1408
1434
|
"addButtonLabel": {
|