@zambon-dev/ui 1.1.0 → 1.2.0
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 +105 -0
- package/fesm2022/zambon-dev-ui-library.mjs +53 -26
- 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 +47 -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": {
|
|
@@ -1558,11 +1584,31 @@ export declare class RibbonButtonComponent implements OnDestroy {
|
|
|
1558
1584
|
protected documentKeyDown(event: Event): void;
|
|
1559
1585
|
protected readonly showDropdown: WritableSignal<boolean>;
|
|
1560
1586
|
protected readonly status: WritableSignal<null | 'failure' | 'warning' | 'success'>;
|
|
1587
|
+
private static instances;
|
|
1588
|
+
private readonly instanceId;
|
|
1561
1589
|
private clickedOutside;
|
|
1562
1590
|
private overlay;
|
|
1563
1591
|
private overlayRef?;
|
|
1564
1592
|
private positionBuilder;
|
|
1565
1593
|
private viewContainerRef;
|
|
1594
|
+
/**
|
|
1595
|
+
* What this button is called, whether or not its label is on screen. Compact mode hides the
|
|
1596
|
+
* label below 36rem of ribbon width, and an icon with no accessible name is unusable with a
|
|
1597
|
+
* screen reader. The tooltip is the fallback because a consumer who gives one and no label has
|
|
1598
|
+
* already said what the button does; with neither there is nothing to invent.
|
|
1599
|
+
*/
|
|
1600
|
+
protected get accessibleName(): string;
|
|
1601
|
+
/** Id of the label element, so the dropdown chevron can borrow this button's name. */
|
|
1602
|
+
protected get labelId(): string;
|
|
1603
|
+
/**
|
|
1604
|
+
* The chevron borrows the button's name by reference, but only when there is a label element
|
|
1605
|
+
* with text in it. A reference to an empty span names the control *nothing at all*, which is
|
|
1606
|
+
* worse than leaving it unnamed: it suppresses the fallback a screen reader would otherwise
|
|
1607
|
+
* use. An icon-only button with a tooltip is the case that exposes this.
|
|
1608
|
+
*/
|
|
1609
|
+
protected get chevronLabelledBy(): string | null;
|
|
1610
|
+
/** The chevron's name when there is no label element to point at. */
|
|
1611
|
+
protected get chevronAriaLabel(): string | null;
|
|
1566
1612
|
protected get buttonIcon(): string;
|
|
1567
1613
|
protected get isButtonDisabled(): boolean;
|
|
1568
1614
|
ngOnDestroy(): void;
|