import { SelectButtonPassThrough, SelectButtonOptionClickEvent, SelectButtonChangeEvent, SelectButtonItemTemplateContext } from 'primeng/types/selectbutton'; export * from 'primeng/types/selectbutton'; import * as _angular_core from '@angular/core'; import { Provider, TemplateRef } from '@angular/core'; import { BaseEditableHolder } from 'primeng/baseeditableholder'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { InputSize } from 'primeng/types/shared'; import { ToggleButtonChangeEvent } from 'primeng/types/togglebutton'; import { BaseStyle } from 'primeng/base'; import * as i2 from 'primeng/api'; declare class SelectButtonStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-invalid': any; 'p-selectbutton-fluid': any; })[]; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * * SelectButton is used to choose single or multiple items from a list using buttons. * * [Live Demo](https://www.primeng.org/selectbutton/) * * @module selectbuttonstyle * */ declare enum SelectButtonClasses { /** * Class name of the root element */ root = "p-selectbutton" } declare const SELECTBUTTON_VALUE_ACCESSOR: Provider; /** * SelectButton is used to choose single or multiple items from a list using buttons. * @group Components */ declare class SelectButton extends BaseEditableHolder { componentName: string; /** * An array of selectitems to display as the available options. * @group Props */ options: _angular_core.InputSignal; /** * Name of the label field of an option. * @group Props */ optionLabel: _angular_core.InputSignal; /** * Name of the value field of an option. * @group Props */ optionValue: _angular_core.InputSignal; /** * Name of the disabled field of an option or function to determine disabled state. * @group Props */ optionDisabled: _angular_core.InputSignal boolean) | undefined>; /** * Whether selection can be cleared. * @group Props */ unselectable: _angular_core.InputSignalWithTransform; /** * Index of the element in tabbing order. * @group Props */ tabindex: _angular_core.InputSignalWithTransform; /** * When specified, allows selecting multiple values. * @group Props */ multiple: _angular_core.InputSignalWithTransform; /** * Whether selection can not be cleared. * @group Props */ allowEmpty: _angular_core.InputSignalWithTransform; /** * Style class of the component. * @group Props */ styleClass: _angular_core.InputSignal; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. * @group Props */ ariaLabelledBy: _angular_core.InputSignal; /** * A property to uniquely identify a value in options. * @group Props */ dataKey: _angular_core.InputSignal; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: _angular_core.InputSignalWithTransform; /** * Specifies the size of the component. * @defaultValue undefined * @group Props */ size: _angular_core.InputSignal; /** * Spans 100% width of the container when enabled. * @defaultValue undefined * @group Props */ fluid: _angular_core.InputSignalWithTransform; /** * Callback to invoke on input click. * @param {SelectButtonOptionClickEvent} event - Custom click event. * @group Emits */ onOptionClick: _angular_core.OutputEmitterRef; /** * Callback to invoke on selection change. * @param {SelectButtonChangeEvent} event - Custom change event. * @group Emits */ onChange: _angular_core.OutputEmitterRef; /** * Custom item template. * @param {SelectButtonItemTemplateContext} context - item context. * @see {@link SelectButtonItemTemplateContext} * @group Templates */ itemTemplate: _angular_core.Signal | undefined>; equalityKey: _angular_core.Signal; $allowEmpty: _angular_core.Signal; dataP: _angular_core.Signal; value: _angular_core.WritableSignal; focusedIndex: _angular_core.WritableSignal; _componentStyle: SelectButtonStyle; $pcSelectButton: SelectButton | undefined; bindDirectiveInstance: Bind; onAfterViewChecked(): void; getAllowEmpty(): boolean; getOptionLabel(option: any): any; getOptionValue(option: any): any; isOptionDisabled(option: any): any; isButtonDisabled(option: any): any; getItemContext(option: any, index: number): { $implicit: any; index: number; }; onOptionSelect(event: ToggleButtonChangeEvent, option: any, index: number): void; changeTabIndexes(event: Event, direction: string): void; onFocus(event: Event, index: number): void; onBlur(): void; removeOption(option: any): void; isSelected(option: any): boolean; /** * @override * * @see {@link BaseEditableHolder.writeControlValue} * Writes the value to the control. */ writeControlValue(value: any, setModelValue: (value: any) => void): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SelectButtonModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SELECTBUTTON_VALUE_ACCESSOR, SelectButton, SelectButtonClasses, SelectButtonModule, SelectButtonStyle };