@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
59 lines (58 loc) • 2.71 kB
TypeScript
import { ElementRef, EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
export declare class SkyTokenComponent {
#private;
/**
* Whether to disable the token to prevent users from selecting it, dismissing it,
* or navigating to it with the arrow keys. When the token is disabled,
* users can still place focus on it using the `Tab` key.
* @default false
*/
set disabled(value: boolean | undefined);
get disabled(): boolean;
/**
* The ARIA label for the token's close button. This sets the button's `aria-label` to provide a text equivalent for screen readers
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
* For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
* @default "Remove item"
*/
ariaLabel: string | undefined;
/**
* Whether users can remove the token from the list by selecting the close button.
* @default true
*/
set dismissible(value: boolean | undefined);
get dismissible(): boolean;
/**
* Whether users can place focus on the token using the `Tab`. This does not
* affect the ability to select the token, dismiss it, or navigate to it with the arrow keys.
* @default true
*/
set focusable(value: boolean | undefined);
/**
* Used by the tokens component to set the appropriate role for each token.
* @internal
*/
role: string | undefined;
/**
* Fires when users click the close button.
*/
dismiss: EventEmitter<void>;
/**
* Fires when users place focus on the token by navigating to it with the `Tab` key.
*/
tokenFocus: EventEmitter<void>;
actionButtonRef: ElementRef | undefined;
isFocused: boolean;
tokenActive: boolean;
closeActive: boolean;
tabIndex: number;
protected onFocusIn(): void;
protected onFocusOut(event: FocusEvent): void;
dismissToken(event: Event): void;
focusElement(): void;
setTokenActive(tokenActive: boolean): void;
setCloseActive(closeActive: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTokenComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTokenComponent, "sky-token", never, { "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "focusable": { "alias": "focusable"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, { "dismiss": "dismiss"; "tokenFocus": "tokenFocus"; }, never, ["*"], false, never>;
}