@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
42 lines (41 loc) • 1.71 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* 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 Inline AI Prompt components dynamically.
*
* @example
* ```ts
* import { InlineAIPromptService } from '@progress/kendo-angular-conversational-ui';
*
* constructor(private inlineAIPromptService: InlineAIPromptService) {}
*
* openPrompt(anchor: ElementRef) {
* const promptRef = this.inlineAIPromptService.open({
* anchor: anchor,
* placeholder: 'Enter your prompt...'
* });
* }
* ```
*/
export declare class InlineAIPromptService {
private popupService;
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>;
}