UNPKG

@microsoft/windows-admin-center-sdk

Version:

Microsoft - Windows Admin Center Shell

60 lines (59 loc) 2.57 kB
import { Injector, OnInit } from '@angular/core'; import { SimplePropertySchemaFieldLoaderComponent } from '../../../schema/schema-field-host.component'; import { SmeInternalFormFieldComponent } from '../form-field.component'; import * as i0 from "@angular/core"; export declare class ToggleSwitchFormFieldLoaderComponent extends SimplePropertySchemaFieldLoaderComponent { static ɵfac: i0.ɵɵFactoryDeclaration<ToggleSwitchFormFieldLoaderComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ToggleSwitchFormFieldLoaderComponent, "ng-component", never, {}, {}, never, never, false, never>; } export declare class ToggleSwitchFormFieldComponent extends SmeInternalFormFieldComponent<boolean> implements OnInit { /** * The source name to use for logging */ protected get logSourceName(): string; /** * Indicates the default value for immediateValidation. * This is meant to be overridden by derived classes */ protected get defaultImmediateValidation(): boolean; /** * The label to show when the switch is on */ labelOn: string; /** * The label to show when the switch is off */ labelOff: string; /** * The aria label for this instance */ get ariaLabel(): string; /** * Initializes a new instance of the ToggleSwitchFormFieldComponent */ constructor(injector: Injector); /** * Implementation of angular OnInit interface */ ngOnInit(): void; /** * Gets the initial host classes to be applied to this element * When called in the @see BaseComponent super class initialization, These classes will be automatically assigned to the host element. */ protected getInitialHostClasses(): string[]; /** * Creates the idBag used by this component to store unique element ids. * id values will be assigned be the @see BaseComponent super class. */ protected createIdBag(): MsftSme.StringMap<string>; /** * We only truly disable the switch if not in accessibility mode */ getDisabledStatus(): boolean; /** * We disabled event propagation for disabled toggle switch */ toggleChanged(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<ToggleSwitchFormFieldComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ToggleSwitchFormFieldComponent, "sme-form-field[type=\"toggle-switch\"]", never, { "labelOn": "labelOn"; "labelOff": "labelOff"; }, {}, never, never, false, never>; }