@zambon-dev/ui 1.1.1 → 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/package.json
CHANGED
|
@@ -1584,11 +1584,31 @@ export declare class RibbonButtonComponent implements OnDestroy {
|
|
|
1584
1584
|
protected documentKeyDown(event: Event): void;
|
|
1585
1585
|
protected readonly showDropdown: WritableSignal<boolean>;
|
|
1586
1586
|
protected readonly status: WritableSignal<null | 'failure' | 'warning' | 'success'>;
|
|
1587
|
+
private static instances;
|
|
1588
|
+
private readonly instanceId;
|
|
1587
1589
|
private clickedOutside;
|
|
1588
1590
|
private overlay;
|
|
1589
1591
|
private overlayRef?;
|
|
1590
1592
|
private positionBuilder;
|
|
1591
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;
|
|
1592
1612
|
protected get buttonIcon(): string;
|
|
1593
1613
|
protected get isButtonDisabled(): boolean;
|
|
1594
1614
|
ngOnDestroy(): void;
|