@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
38 lines (37 loc) • 2.06 kB
TypeScript
import { ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* A re-usable form field accessibility manager.
*/
export declare class FormFieldAccessibilityManagerBaseService {
/**
* The focus handler on delete/add if the form field is a list.
* @param value The value for the list form field.
* @param addButton The component reference for the add button.
* @param hostElement The host element reference.
* @param isDelete Determine if the action is delete.
* @returns void
*/
listFormFieldFocusHandlerOnKeyboardAction(value: string[], addButton: ElementRef | undefined, hostElement: ElementRef, isDelete?: boolean): void;
/**
* The focus handler on delete/add if the form field is a list. And the list is built with a specific selector.
* @param value The value for the list form field.
* @param addButton The component reference for the add button.
* @param hostElement The host element reference.
* @param selector The selector for the input fields.
* @returns void
*/
listFormFieldFocusHandlerOnKeyboardActionBySelector(value: string[], addButton: ElementRef | undefined, hostElement: ElementRef, selector: string): void;
/**
* It handles the focus on the input field by index if value is type of any[].
* @param hostElement the host form field element.
* @param index the index of the input field to focus on.
* @returns void.
*/
focusOnInputByIndex(hostElement: ElementRef, index: number): void;
deferredFocusOnTargetBySelector(value: string[], hostElement: ElementRef, selector: string): void;
protected deferredFocusOnAddButton(addButton: ElementRef | undefined): void;
protected deferredFocusOnInputFields(hostElement: ElementRef, value: string[], isDelete?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldAccessibilityManagerBaseService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FormFieldAccessibilityManagerBaseService>;
}