import { FieldsetPassThrough, FieldsetBeforeToggleEvent, FieldsetAfterToggleEvent } from 'primeng/types/fieldset'; export * from 'primeng/types/fieldset'; import * as i0 from '@angular/core'; import { EventEmitter, ElementRef, TemplateRef, QueryList } from '@angular/core'; import { MotionOptions, MotionEvent } from '@primeuix/motion'; import * as i2 from 'primeng/api'; import { BlockableUI, PrimeTemplate } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import * as _primeuix_styled from '@primeuix/styled'; import { BaseStyle } from 'primeng/base'; /** * * Fieldset is a grouping component with the optional content toggle feature. * * [Live Demo](https://www.primeng.org/fieldset/) * * @module fieldsetstyle * */ declare enum FieldsetClasses { /** * Class name of the root element */ root = "p-fieldset", /** * Class name of the legend element */ legend = "p-fieldset-legend", /** * Class name of the legend label element */ legendLabel = "p-fieldset-legend-label", /** * Class name of the toggle icon element */ toggleIcon = "p-fieldset-toggle-icon", /** * Class name of the content container element */ contentContainer = "p-fieldset-content-container", /** * Class name of the content wrapper element */ contentWrapper = "p-fieldset-content-wrapper", /** * Class name of the content element */ content = "p-fieldset-content" } declare class FieldsetStyle extends BaseStyle { name: string; style: _primeuix_styled.StyleType; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-fieldset-toggleable': any; 'p-fieldset-collapsed': any; })[]; legend: string; legendLabel: string; toggleButton: string; toggleIcon: string; contentContainer: string; contentWrapper: string; content: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface FieldsetStyle extends BaseStyle { } /** * Fieldset is a grouping component with the optional content toggle feature. * @group Components */ declare class Fieldset extends BaseComponent implements BlockableUI { $pcFieldset: Fieldset | undefined; _componentStyle: FieldsetStyle; bindDirectiveInstance: Bind; onAfterViewChecked(): void; get dataP(): string | undefined; /** * Header text of the fieldset. * @group Props */ legend: string | undefined; /** * When specified, content can toggled by clicking the legend. * @group Props * @defaultValue false */ toggleable: boolean | undefined; /** * Inline style of the component. * @group Props */ style: { [klass: string]: any; } | null | undefined; /** * Style class of the component. * @group Props */ styleClass: string | undefined; /** * Transition options of the panel animation. * @group Props * @deprecated since v21.0.0, use `motionOptions` instead. */ transitionOptions: string; /** * The motion options. * @group Props */ motionOptions: i0.InputSignal; computedMotionOptions: i0.Signal; /** * Emits when the collapsed state changes. * @param {boolean} value - New value. * @group Emits */ collapsedChange: EventEmitter; /** * Callback to invoke before panel toggle. * @param {PanelBeforeToggleEvent} event - Custom toggle event * @group Emits */ onBeforeToggle: EventEmitter; /** * Callback to invoke after panel toggle. * @param {PanelAfterToggleEvent} event - Custom toggle event * @group Emits */ onAfterToggle: EventEmitter; contentWrapperViewChild: ElementRef; private _id; get id(): string; get buttonAriaLabel(): string | undefined; /** * Internal collapsed state */ _collapsed: boolean | undefined; /** * Defines the initial state of content, supports one or two-way binding as well. * @group Props */ get collapsed(): boolean | undefined; set collapsed(value: boolean | undefined); /** * Custom header template. * @group Templates */ headerTemplate: TemplateRef | undefined; /** * Custom expand icon template. * @group Templates */ expandIconTemplate: TemplateRef | undefined; /** * Custom collapse icon template. * @group Templates */ collapseIconTemplate: TemplateRef | undefined; /** * Custom content template. * @group Templates */ contentTemplate: TemplateRef | undefined; toggle(event: MouseEvent): void; onKeyDown(event: any): void; expand(): void; collapse(): void; getBlockableElement(): HTMLElement; updateTabIndex(): void; onToggleDone(event: MotionEvent): void; _headerTemplate: TemplateRef | undefined; _expandIconTemplate: TemplateRef | undefined; _collapseIconTemplate: TemplateRef | undefined; _contentTemplate: TemplateRef | undefined; templates: QueryList; onAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_toggleable: unknown; static ngAcceptInputType_collapsed: unknown; } declare class FieldsetModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { Fieldset, FieldsetClasses, FieldsetModule, FieldsetStyle };