import { TerraPlacementEnum } from '../../../../../helpers'; import { ControlValueAccessor } from '@angular/forms'; import { MultiSelectInterface } from './multi-select.interface'; import { L10nLocale } from 'angular-l10n'; import { MatSelect } from '@angular/material/select'; import * as i0 from "@angular/core"; export declare class MultiSelectComponent implements ControlValueAccessor, MultiSelectInterface { /** The name of the control which will be used as label. */ name: string; /** Disables the select when set to true. Default false. */ isDisabled: boolean; /** Requires the select to be filled when set to true. Default false. */ isRequired: boolean; /** Text that should be shown in a tooltip on the control. */ tooltipText: string; /** Set the tooltip placement (bottom, top, left, right). Default top. */ tooltipPlacement: TerraPlacementEnum; /** List of options that the user can select from. */ checkboxValues: Array<{ caption: string; value: any; }>; /** Internal model. Stores the value of the selected option. */ value: Array; /** Current language to be used to translate any labels. */ _lang: string; /** Stores the callback function that will be called on blur. */ _onTouchedCallback: () => void; /** Stores the callback function that will be called when the control's value changes in the UI. */ _onChangeCallback: (_: Array) => void; constructor(locale: L10nLocale); /** Registers a callback function that is called when the control's value changes in the UI. */ registerOnChange(fn: (_: Array) => void): void; /** Registers a callback function that is called by the forms API on initialization to update the form model on blur. */ registerOnTouched(fn: () => void): void; /** Writes a new value to the select element. */ writeValue(value: Array): void; /** * Calls registered {@link _onChangeCallback} whenever the user has changed selections. * Passes `null` instead of an empty array to the change callback if there's nothing selected. */ _onChange(value: Array): void; /** * Selects/deselects all options depending on whether all options are selected. * If all options are selected, they'll be unselected afterwards. Otherwise all options will be selected. * @param select */ _toggleAll(select: MatSelect): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }