UNPKG

jqwidgets-ng

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-0098f7.svg)](https://jqwidgets.com/license/)

131 lines (130 loc) 6.33 kB
/// <reference path="../jqwidgets.d.ts" /> import { EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; export declare class jqxChatComponent implements OnChanges { attrAccentColor: string; attrApiKey: string; attrBotAvatar: string; attrBotName: string; attrColorScheme: string; attrDisabled: boolean; attrEnableClear: boolean; attrEnableCopyCode: boolean; attrEnableStop: boolean; attrHeaders: object; attrLauncherIcon: string; attrLauncherPosition: string; attrMaxTokens: number; attrMessages: jqwidgets.ChatMessage[]; attrMode: string; attrModel: string; attrOpen: boolean; attrPlaceHolder: string; attrProvider: string; attrProxyUrl: string; attrRtl: boolean; attrSendButtonIcon: boolean; attrSendButtonLabel: string; attrSendRequest: any; attrShowAvatars: boolean; attrShowHeader: boolean; attrShowHeaderAvatar: boolean; attrShowTimestamps: boolean; attrStarterPrompts: string[]; attrStatusText: string; attrStream: boolean; attrSubtitle: string; attrSystem: string; attrTheme: string; attrTitle: string; attrTypingIndicator: boolean; attrUserAvatar: string; attrUserName: string; attrWelcomeMessage: string; attrWidth: string | number; attrHeight: string | number; autoCreate: boolean; properties: string[]; host: any; elementRef: ElementRef; widgetObject: jqwidgets.jqxChat; constructor(containerElement: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): boolean; arraysEqual(attrValue: any, hostValue: any): boolean; manageAttributes(): any; moveClasses(parentEl: HTMLElement, childEl: HTMLElement): void; moveStyles(parentEl: HTMLElement, childEl: HTMLElement): void; createComponent(options?: any): void; createWidget(options?: any): void; __updateRect__(): void; setOptions(options: any): void; accentColor(arg?: string): string; apiKey(arg?: string): string; botAvatar(arg?: string): string; botName(arg?: string): string; colorScheme(arg?: string): string; disabled(arg?: boolean): boolean; enableClear(arg?: boolean): boolean; enableCopyCode(arg?: boolean): boolean; enableStop(arg?: boolean): boolean; headers(arg?: any): any; height(arg?: string | number): string | number; launcherIcon(arg?: string): string; launcherPosition(arg?: string): string; maxTokens(arg?: number): number; messages(arg?: jqwidgets.ChatMessage[]): jqwidgets.ChatMessage[]; mode(arg?: string): string; model(arg?: string): string; open(arg?: boolean): boolean; placeHolder(arg?: string): string; provider(arg?: string): string; proxyUrl(arg?: string): string; rtl(arg?: boolean): boolean; sendButtonIcon(arg?: boolean): boolean; sendButtonLabel(arg?: string): string; sendRequest(arg?: undefined): undefined; showAvatars(arg?: boolean): boolean; showHeader(arg?: boolean): boolean; showHeaderAvatar(arg?: boolean): boolean; showTimestamps(arg?: boolean): boolean; starterPrompts(arg?: string[]): string[]; statusText(arg?: string): string; stream(arg?: boolean): boolean; subtitle(arg?: string): string; system(arg?: string): string; theme(arg?: string): string; title(arg?: string): string; typingIndicator(arg?: boolean): boolean; userAvatar(arg?: string): string; userName(arg?: string): string; welcomeMessage(arg?: string): string; width(arg?: string | number): string | number; sendMessage(text?: string): void; stop(): void; addMessage(role: string, content: string): void; appendDelta(delta: string): void; getMessages(): jqwidgets.ChatMessage[]; clearConversation(): void; focus(): void; openPopup(): void; closePopup(): void; toggle(): void; val(value?: undefined): any; render(): void; refresh(): void; destroy(): void; onMessageSent: EventEmitter<any>; onResponseStart: EventEmitter<any>; onResponseDelta: EventEmitter<any>; onMessageReceived: EventEmitter<any>; onResponseEnd: EventEmitter<any>; onError: EventEmitter<any>; onOpen: EventEmitter<any>; onClose: EventEmitter<any>; onStop: EventEmitter<any>; onCreate: EventEmitter<any>; __wireEvents__(): void; static ɵfac: i0.ɵɵFactoryDeclaration<jqxChatComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<jqxChatComponent, "jqxChat", never, { "attrAccentColor": "accentColor"; "attrApiKey": "apiKey"; "attrBotAvatar": "botAvatar"; "attrBotName": "botName"; "attrColorScheme": "colorScheme"; "attrDisabled": "disabled"; "attrEnableClear": "enableClear"; "attrEnableCopyCode": "enableCopyCode"; "attrEnableStop": "enableStop"; "attrHeaders": "headers"; "attrLauncherIcon": "launcherIcon"; "attrLauncherPosition": "launcherPosition"; "attrMaxTokens": "maxTokens"; "attrMessages": "messages"; "attrMode": "mode"; "attrModel": "model"; "attrOpen": "open"; "attrPlaceHolder": "placeHolder"; "attrProvider": "provider"; "attrProxyUrl": "proxyUrl"; "attrRtl": "rtl"; "attrSendButtonIcon": "sendButtonIcon"; "attrSendButtonLabel": "sendButtonLabel"; "attrSendRequest": "sendRequest"; "attrShowAvatars": "showAvatars"; "attrShowHeader": "showHeader"; "attrShowHeaderAvatar": "showHeaderAvatar"; "attrShowTimestamps": "showTimestamps"; "attrStarterPrompts": "starterPrompts"; "attrStatusText": "statusText"; "attrStream": "stream"; "attrSubtitle": "subtitle"; "attrSystem": "system"; "attrTheme": "theme"; "attrTitle": "title"; "attrTypingIndicator": "typingIndicator"; "attrUserAvatar": "userAvatar"; "attrUserName": "userName"; "attrWelcomeMessage": "welcomeMessage"; "attrWidth": "width"; "attrHeight": "height"; "autoCreate": "auto-create"; }, { "onMessageSent": "onMessageSent"; "onResponseStart": "onResponseStart"; "onResponseDelta": "onResponseDelta"; "onMessageReceived": "onMessageReceived"; "onResponseEnd": "onResponseEnd"; "onError": "onError"; "onOpen": "onOpen"; "onClose": "onClose"; "onStop": "onStop"; "onCreate": "onCreate"; }, never, ["*"]>; }