import * as i0 from '@angular/core'; import { ElementRef, OnInit, OnDestroy, TemplateRef, EventEmitter, ChangeDetectorRef } from '@angular/core'; import { SkyAppWindowRef } from '@skyux/core'; import * as i1 from '@skyux/i18n'; import { SkyLibResourcesService } from '@skyux/i18n'; import * as i2 from '@angular/common'; /** * @internal */ declare class SkyInlineFormAdapterService { #private; applyAutofocus(inlineFormElementRef: ElementRef): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Specifies configuration options for the inline form's buttons when `buttonLayout` is set to `Custom`. */ interface SkyInlineFormButtonConfig { /** * The `string` value to return when users click a custom button. * This correlates to the `reason` in `SkyInlineFormCloseArgs`. * The standard values are `cancel`, `delete`, `done`, and `save`, but other custom values are also allowed. * @required */ action: string; /** * The label for the button. * @required */ text: string; /** * Whether to disable the button. * @default false */ disabled?: boolean; /** * The background color and style for the button. * The valid options are `default`, `link`, and `primary`. * These values set the background color and style from the * [secondary, link, and primary button classes](https://developer.blackbaud.com/skyux/components/button) respectively. */ styleType?: string; } interface SkyInlineFormCloseArgs { /** * Returns a `string` value to explain why users clicked a custom button and initiated a `close` event. * This correlates to either the `action` in `SkyInlineFormButtonConfig` for custom buttons or the standard * value of `cancel`, `delete`, `done`, or `save` for predefined buttons. */ reason: string; } declare enum SkyInlineFormButtonLayout { /** * Displays custom buttons. */ Custom = 0, /** * Displays Done and Cancel buttons. */ DoneCancel = 1, /** * Displays Done, Delete, and Cancel buttons. */ DoneDeleteCancel = 2, /** * Displays Save and Cancel buttons. */ SaveCancel = 3, /** * Displays Save, Delete, and Cancel buttons. */ SaveDeleteCancel = 4 } /** * Specifies configuration options for the buttons to display with the inline form. */ interface SkyInlineFormConfig { /** * The buttons to display with the inline form. The valid options are `Custom` * for custom buttons, `DoneCancel` for Done and Cancel buttons, `DoneDeleteCancel` for Done, * Delete, and Cancel buttons, `SaveCancel` for Save and Cancel buttons, and `SaveDeleteCancel` * for Save, Delete, and Cancel buttons. * @required */ buttonLayout: SkyInlineFormButtonLayout; /** * Configuration options for the inline form's buttons when `buttonLayout` is set to `Custom`. */ buttons?: SkyInlineFormButtonConfig[]; } /** * Renders form content in the current view instead of a separate modal. */ declare class SkyInlineFormComponent implements OnInit, OnDestroy { #private; /** * Configuration options for the buttons to display with the inline form. * @required */ set config(value: SkyInlineFormConfig | undefined); get config(): SkyInlineFormConfig | undefined; /** * The template to instantiate the inline form. * @required */ template: TemplateRef | undefined; /** * Whether to display the inline form. Users can toggle between displaying * and hiding the inline form. * @default false */ set showForm(value: boolean | undefined); get showForm(): boolean | undefined; get showFormData(): boolean | undefined; /** * Fires when users close the inline form. */ close: EventEmitter; buttons: SkyInlineFormButtonConfig[]; constructor(adapter: SkyInlineFormAdapterService, elementRef: ElementRef, resourcesService: SkyLibResourcesService, skyAppWindowRef: SkyAppWindowRef, changeDetectorRef: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; closeInlineForm(event: SkyInlineFormButtonConfig): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Import into any component library module that needs to use resource strings. */ declare class SkyInlineFormResourcesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SkyInlineFormModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @internal */ type SkyInlineFormButtonAction = 'done' | 'save' | 'delete' | 'cancel'; export { SkyInlineFormButtonLayout, SkyInlineFormModule, SkyInlineFormComponent as λ1 }; export type { SkyInlineFormButtonAction, SkyInlineFormButtonConfig, SkyInlineFormCloseArgs, SkyInlineFormConfig };