import { InplacePassThrough, InplaceContentTemplateContext } from 'primeng/types/inplace'; export * from 'primeng/types/inplace'; import * as i0 from '@angular/core'; import { EventEmitter, TemplateRef, QueryList } from '@angular/core'; import * as i2 from 'primeng/api'; import { 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'; /** * * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content. * * [Live Demo](https://www.primeng.org/inplace) * * @module inplacestyle * */ declare enum InplaceClasses { /** * Class name of the root element */ root = "p-inplace", /** * Class name of the display element */ display = "p-inplace-display", /** * Class name of the content element */ content = "p-inplace-content" } declare class InplaceStyle extends BaseStyle { name: string; style: _primeuix_styled.StyleType; classes: { root: () => string[]; display: ({ instance }: { instance: any; }) => (string | { 'p-disabled': any; })[]; content: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface InplaceStyle extends BaseStyle { } declare class InplaceDisplay extends BaseComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class InplaceContent extends BaseComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content. * @group Components */ declare class Inplace extends BaseComponent { $pcInplace: Inplace | undefined; bindDirectiveInstance: Bind; onAfterViewChecked(): void; /** * Whether the content is displayed or not. * @group Props */ active: boolean | undefined; /** * Displays a button to switch back to display mode. * @deprecated since v20.0.0, use `closeCallback` within content template. * @group Props */ closable: boolean | undefined; /** * When present, it specifies that the element should be disabled. * @group Props */ disabled: boolean | undefined; /** * Allows to prevent clicking. * @group Props */ preventClick: boolean | undefined; /** * Class of the element. * @deprecated since v20.0.0, use `class` instead. * @group Props */ styleClass: string | undefined; /** * Icon to display in the close button. * @deprecated since v20.0.0, use `class` instead. * @group Props */ closeIcon: string | undefined; /** * Establishes a string value that labels the close button. * @group Props */ closeAriaLabel: string | undefined; /** * Callback to invoke when inplace is opened. * @param {Event} event - Browser event. * @group Emits */ onActivate: EventEmitter; /** * Callback to invoke when inplace is closed. * @param {Event} event - Browser event. * @group Emits */ onDeactivate: EventEmitter; hover: boolean; /** * Custom display template. * @group Templates */ displayTemplate: TemplateRef | undefined; /** * Custom content template. * @group Templates */ contentTemplate: TemplateRef | undefined; /** * Custom close icon template. * @group Templates */ closeIconTemplate: TemplateRef | undefined; _componentStyle: InplaceStyle; onActivateClick(event: MouseEvent): void; onDeactivateClick(event: MouseEvent): void; /** * Activates the content. * @param {Event} event - Browser event. * @group Method */ activate(event?: Event): void; /** * Deactivates the content. * @param {Event} event - Browser event. * @group Method */ deactivate(event?: Event): void; onKeydown(event: KeyboardEvent): void; templates: QueryList | undefined; _displayTemplate: TemplateRef | undefined; _closeIconTemplate: TemplateRef | undefined; _contentTemplate: TemplateRef | undefined; onAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_active: unknown; static ngAcceptInputType_closable: unknown; static ngAcceptInputType_disabled: unknown; static ngAcceptInputType_preventClick: unknown; } declare class InplaceModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { Inplace, InplaceClasses, InplaceContent, InplaceDisplay, InplaceModule, InplaceStyle };