UNPKG

@progress/kendo-angular-conversational-ui

Version:

Kendo UI for Angular Conversational UI components

49 lines (48 loc) 1.83 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { PopupService, PopupRef } from '@progress/kendo-angular-popup'; import { InlineAIPromptSettings } from './models'; import * as i0 from "@angular/core"; /** * Provides a service for opening and configuring the Inline AI Prompt component dynamically. * * @example * ```ts * export class DemoComponent { * @ViewChild('anchor', { read: ElementRef }) anchor: ElementRef; * constructor(private promptService: InlineAIPromptService) {} * * open(): void { * this.promptService.open({ * popupSettings: { anchor: this.anchor }, * placeholder: 'Enter your prompt...' * }); * } * } * ``` * ```html * <button #anchor (click)="open()">Ask AI</button> * ``` */ export declare class InlineAIPromptService { private popupService; /** * @hidden */ constructor(popupService: PopupService); /** * Opens an Inline AI Prompt component in a popup. The popup appears near the specified anchor element or at the provided offset coordinates. * * @param {InlineAIPromptSettings} options The options for the InlineAIPromptComponent. * @returns {PopupRef} A reference to the popup. */ open(options: InlineAIPromptSettings): PopupRef; /** * Projects the input options onto the component instance. */ private projectComponentInputs; static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<InlineAIPromptService>; }