UNPKG

@progress/kendo-angular-conversational-ui

Version:

Kendo UI for Angular Conversational UI components

64 lines (63 loc) 2.46 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter } from '@angular/core'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { PromptBoxBaseTool } from './base-tool'; import { ActionButtonEvent } from '../common/models'; import * as i0 from "@angular/core"; /** * Defines the **Action** button component for the PromptBox. Used to send messages or stop ongoing operations. * * @example * ```html * <kendo-promptbox> * <kendo-promptbox-end-affix> * <kendo-promptbox-action-button></kendo-promptbox-action-button> * </kendo-promptbox-end-affix> * </kendo-promptbox> * ``` */ export declare class PromptBoxActionButtonComponent extends PromptBoxBaseTool { private localization; /** * @hidden */ buttonClass: string; /** * Sets the loading state of the **Action** button. * * @default false */ loading: boolean; /** * Sets the icon to be displayed when the **Action** button is in loading state. * * @default 'stop' */ loadingIcon: string; /** * Sets the SVG icon to be displayed when the **Action** button is in loading state. * * @default stopIcon */ loadingSVGIcon: SVGIcon; /** * Fires when the user clicks the Action button. * @hidden */ promptAction: EventEmitter<ActionButtonEvent>; constructor(localization: LocalizationService); /** * @hidden */ handleClick(): void; /** * @hidden */ textFor(key: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<PromptBoxActionButtonComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PromptBoxActionButtonComponent, "kendo-promptbox-action-button", ["kendoPromptBoxActionButton"], { "buttonClass": { "alias": "buttonClass"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; }; "loadingSVGIcon": { "alias": "loadingSVGIcon"; "required": false; }; }, { "promptAction": "promptAction"; }, never, never, true, never>; }