UNPKG

@engie-group/fluid-design-system-angular

Version:

Fluid Design System Angular

69 lines (68 loc) 2.18 kB
import { EventEmitter } from '@angular/core'; import { SwitchValue, SwitchValues, SwitchVariant } from './switch.model'; import * as i0 from "@angular/core"; export declare class SwitchComponent { /** * @ignore */ private readonly switchClassName; /** * Switch variant theme */ variant: SwitchVariant; /** * Whether switch is disabled or not */ isDisabled: boolean; /** * Values that will be emitted by the switch on toggle */ values: SwitchValues; /** * Whether switch is checked or not */ isChecked: boolean; /** * id of the input inside of the switch */ id: string; /** * name of the input inside of the switch */ name: string; /** * Aria label, for accessibility reasons */ ariaLabel: string; /** * Aria labelled by, for accessibility reasons */ ariaLabelledBy: string; /** * title of the input inside of the switch */ title: string; /** * Output that emits a SwitchValue when switch value change occurs */ valueChange: EventEmitter<SwitchValue>; /** * @ignore */ private _inputElement; constructor(); /** * @ignore */ getButtonMainClass(): string; /** * @ignore */ _onChangeEvent(event: Event): void; /** * @ignore */ _onInputClick(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "nj-switch", never, { "variant": { "alias": "variant"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "values": { "alias": "values"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["[left-label]", "[right-label]"], true, never>; }