@aakash58/chatbot 1.0.83 → 1.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aakash58-chatbot-1.0.84.tgz +0 -0
- package/fesm2022/aakash58-chatbot.mjs +2432 -1715
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +217 -177
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken, ElementRef, Renderer2, OnDestroy, SimpleChanges, RendererFactory2, TrackByFunction, EventEmitter, AfterViewInit } from '@angular/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { HttpClient } from '@angular/common/http';
|
|
6
5
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
7
6
|
import { Router } from '@angular/router';
|
|
7
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
8
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
8
9
|
|
|
9
10
|
interface Message {
|
|
10
11
|
id: string;
|
|
@@ -18,56 +19,6 @@ interface Message {
|
|
|
18
19
|
agent?: string;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
interface DoohbotThemeConfig {
|
|
22
|
-
fontFamily?: string;
|
|
23
|
-
primaryColor?: string;
|
|
24
|
-
secondaryColor?: string;
|
|
25
|
-
backgroundColor?: string;
|
|
26
|
-
chatInputColor?: string;
|
|
27
|
-
textAltColor?: string;
|
|
28
|
-
textColor?: string;
|
|
29
|
-
secondaryTextColor?: string;
|
|
30
|
-
hintTextColor?: string;
|
|
31
|
-
buttonColor?: string;
|
|
32
|
-
userMessageColor?: string;
|
|
33
|
-
botMessageColor?: string;
|
|
34
|
-
userTextColor?: string;
|
|
35
|
-
botTextColor?: string;
|
|
36
|
-
borderColor?: string;
|
|
37
|
-
borderShadowColor?: string;
|
|
38
|
-
borderTopColor?: string;
|
|
39
|
-
typingIndicatorColor?: string;
|
|
40
|
-
white?: string;
|
|
41
|
-
black?: string;
|
|
42
|
-
grey?: string;
|
|
43
|
-
red?: string;
|
|
44
|
-
lightRed?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
48
|
-
declare class ThemeService implements OnDestroy {
|
|
49
|
-
private overlay;
|
|
50
|
-
private renderer;
|
|
51
|
-
private _theme;
|
|
52
|
-
theme: i0.Signal<ThemeMode>;
|
|
53
|
-
private _activeTheme;
|
|
54
|
-
activeTheme: i0.Signal<"light-theme" | "dark-theme">;
|
|
55
|
-
private observer;
|
|
56
|
-
constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
|
|
57
|
-
setTheme(mode: ThemeMode): void;
|
|
58
|
-
private updateActiveTheme;
|
|
59
|
-
private handleAutoTheme;
|
|
60
|
-
private detectAndApplyParentTheme;
|
|
61
|
-
private isParentDark;
|
|
62
|
-
private applyThemeToGlobal;
|
|
63
|
-
private cleanupObservers;
|
|
64
|
-
ngOnDestroy(): void;
|
|
65
|
-
applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
|
|
66
|
-
private parseColor;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
68
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
22
|
declare class DoohbotInput {
|
|
72
23
|
username: string;
|
|
73
24
|
password: string;
|
|
@@ -152,89 +103,6 @@ interface DoohbotApiConfig {
|
|
|
152
103
|
*/
|
|
153
104
|
declare const DOOHBOT_API_CONFIG: InjectionToken<DoohbotApiConfig>;
|
|
154
105
|
|
|
155
|
-
declare class HttpService {
|
|
156
|
-
private http;
|
|
157
|
-
apiUrl: string;
|
|
158
|
-
constructor(http: HttpClient);
|
|
159
|
-
get(url: string, param?: object, nestedParam?: boolean, showLoader?: boolean, refresh?: boolean): Observable<any>;
|
|
160
|
-
private buildHttpParams;
|
|
161
|
-
post(url: string, param?: object, showLoader?: boolean): Observable<any>;
|
|
162
|
-
private returnResponse;
|
|
163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
164
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
declare class AuthResult {
|
|
168
|
-
access_token: string;
|
|
169
|
-
refresh_token: string;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare class ApiResponse<T> {
|
|
173
|
-
success: boolean;
|
|
174
|
-
message: string;
|
|
175
|
-
data?: T;
|
|
176
|
-
constructor(success: boolean, message: string, data?: T);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
declare class LoginRequest {
|
|
180
|
-
username: string;
|
|
181
|
-
password: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
declare class AccountService {
|
|
185
|
-
private http;
|
|
186
|
-
constructor(http: HttpService);
|
|
187
|
-
login(param?: LoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
|
|
188
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
189
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
declare class CryptoHelperService {
|
|
193
|
-
private encoder;
|
|
194
|
-
private decoder;
|
|
195
|
-
private secretKey;
|
|
196
|
-
setSecretKey(key: string): void;
|
|
197
|
-
private getKey;
|
|
198
|
-
encrypt(value: string): Promise<string | null>;
|
|
199
|
-
decrypt(value: string): Promise<string | null>;
|
|
200
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
|
|
201
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
declare global {
|
|
205
|
-
interface Window {
|
|
206
|
-
storageEventAdded?: boolean;
|
|
207
|
-
tabCLoseEventAdded?: boolean;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
declare class AuthService {
|
|
211
|
-
private router;
|
|
212
|
-
private http;
|
|
213
|
-
private cryptoHelper;
|
|
214
|
-
apiUrl: string;
|
|
215
|
-
storageKey: string;
|
|
216
|
-
secretKey: string;
|
|
217
|
-
companyCode: string;
|
|
218
|
-
jwtHelper: JwtHelperService;
|
|
219
|
-
constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
|
|
220
|
-
logout(): Observable<boolean>;
|
|
221
|
-
setSession(session: AuthResult): void;
|
|
222
|
-
setLocalStorage(key: string, value: any): void;
|
|
223
|
-
getLocalStorage(key: string): any;
|
|
224
|
-
isAuthenticated(): boolean;
|
|
225
|
-
isTokenExpired(): boolean;
|
|
226
|
-
encrypt(value: string): any;
|
|
227
|
-
decrypt(value: string): string | null;
|
|
228
|
-
clearAuth(): void;
|
|
229
|
-
clearSession(): void;
|
|
230
|
-
clearTabInfo(): void;
|
|
231
|
-
clearStorage(): void;
|
|
232
|
-
clearCache(): void;
|
|
233
|
-
getUserId(): any;
|
|
234
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
235
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
106
|
interface UserContext {
|
|
239
107
|
userId: string;
|
|
240
108
|
userName: string;
|
|
@@ -242,6 +110,32 @@ interface UserContext {
|
|
|
242
110
|
metadata?: Record<string, any>;
|
|
243
111
|
}
|
|
244
112
|
|
|
113
|
+
interface DoohbotThemeConfig {
|
|
114
|
+
fontFamily?: string;
|
|
115
|
+
primaryColor?: string;
|
|
116
|
+
secondaryColor?: string;
|
|
117
|
+
backgroundColor?: string;
|
|
118
|
+
chatInputColor?: string;
|
|
119
|
+
textAltColor?: string;
|
|
120
|
+
textColor?: string;
|
|
121
|
+
secondaryTextColor?: string;
|
|
122
|
+
hintTextColor?: string;
|
|
123
|
+
buttonColor?: string;
|
|
124
|
+
userMessageColor?: string;
|
|
125
|
+
botMessageColor?: string;
|
|
126
|
+
userTextColor?: string;
|
|
127
|
+
botTextColor?: string;
|
|
128
|
+
borderColor?: string;
|
|
129
|
+
borderShadowColor?: string;
|
|
130
|
+
borderTopColor?: string;
|
|
131
|
+
typingIndicatorColor?: string;
|
|
132
|
+
white?: string;
|
|
133
|
+
black?: string;
|
|
134
|
+
grey?: string;
|
|
135
|
+
red?: string;
|
|
136
|
+
lightRed?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
245
139
|
declare class FullscreenDirective {
|
|
246
140
|
private el;
|
|
247
141
|
private renderer;
|
|
@@ -271,8 +165,6 @@ interface ChatSessionGroup {
|
|
|
271
165
|
declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
272
166
|
private elementRef;
|
|
273
167
|
private renderer;
|
|
274
|
-
private accountService;
|
|
275
|
-
private authService;
|
|
276
168
|
config: DoohbotInput;
|
|
277
169
|
platformTenant: string;
|
|
278
170
|
subTenant: string;
|
|
@@ -283,60 +175,57 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
283
175
|
apiConfig?: DoohbotApiConfig;
|
|
284
176
|
userContext?: UserContext;
|
|
285
177
|
themeConfig: DoohbotThemeConfig | undefined;
|
|
286
|
-
|
|
287
|
-
|
|
178
|
+
appEmoji: {
|
|
179
|
+
waveHand: string;
|
|
180
|
+
robotFace: string;
|
|
181
|
+
partyPopper: string;
|
|
182
|
+
thinkingFace: string;
|
|
183
|
+
thumbsUp: string;
|
|
184
|
+
thumbsDown: string;
|
|
185
|
+
redHeart: string;
|
|
186
|
+
};
|
|
187
|
+
private chatFacade;
|
|
188
|
+
private uiState;
|
|
189
|
+
private themeService;
|
|
288
190
|
isChatOpen: i0.WritableSignal<boolean>;
|
|
191
|
+
isHistorySidebarOpen: i0.WritableSignal<boolean>;
|
|
192
|
+
unreadCount: i0.Signal<number>;
|
|
193
|
+
isFullScreen: i0.WritableSignal<boolean>;
|
|
289
194
|
isAuthenticated: i0.WritableSignal<boolean>;
|
|
290
|
-
private messageService;
|
|
291
|
-
isBotTyping: i0.WritableSignal<boolean>;
|
|
292
195
|
messages: i0.WritableSignal<Message[]>;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
private tenantContextService;
|
|
296
|
-
private contextSubscription?;
|
|
297
|
-
maxMessageLength: number;
|
|
196
|
+
isBotTyping: i0.WritableSignal<boolean>;
|
|
197
|
+
chatSessions: i0.WritableSignal<ChatSession[]>;
|
|
298
198
|
messageError: i0.WritableSignal<string | null>;
|
|
299
|
-
|
|
199
|
+
showSuggestionChips: i0.Signal<boolean>;
|
|
300
200
|
userName: string;
|
|
301
|
-
isHistorySidebarOpen: i0.WritableSignal<boolean>;
|
|
302
|
-
chatSessions: i0.WritableSignal<ChatSession[]>;
|
|
303
|
-
private chatHistoryService;
|
|
304
201
|
predefinedMessages: string[];
|
|
305
|
-
|
|
202
|
+
maxMessageLength: number;
|
|
203
|
+
private contextCleanup?;
|
|
204
|
+
/**
|
|
205
|
+
* Check if current user is a guest user
|
|
206
|
+
*/
|
|
207
|
+
isGuestUser: i0.Signal<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* Helper method to check if a user ID belongs to a guest user
|
|
210
|
+
*/
|
|
211
|
+
private checkIfGuestUser;
|
|
306
212
|
chatWindowRef: ElementRef;
|
|
307
213
|
fullscreenDirective: FullscreenDirective;
|
|
308
|
-
constructor(elementRef: ElementRef, renderer: Renderer2
|
|
214
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
309
215
|
ngOnChanges(changes: SimpleChanges): void;
|
|
310
216
|
ngOnInit(): void;
|
|
311
217
|
ngOnDestroy(): void;
|
|
312
|
-
private
|
|
313
|
-
private updateCssVariables;
|
|
314
|
-
/**
|
|
315
|
-
* Update context when tenant or agent inputs change
|
|
316
|
-
*/
|
|
317
|
-
private updateContext;
|
|
318
|
-
/**
|
|
319
|
-
* Update API configuration
|
|
320
|
-
*/
|
|
321
|
-
private updateApiConfig;
|
|
218
|
+
private performLogin;
|
|
322
219
|
toggleChat(): void;
|
|
220
|
+
sendMessage(text: string): Promise<void>;
|
|
323
221
|
clearChat(): void;
|
|
222
|
+
clearMessageError(): void;
|
|
324
223
|
toggleHistorySidebar(): void;
|
|
325
224
|
loadChatSession(session: ChatSession): void;
|
|
326
225
|
deleteSession(sessionId: string): void;
|
|
327
|
-
loadUserSessions
|
|
328
|
-
sendMessage(text: string): Promise<void>;
|
|
329
|
-
clearMessageError(): void;
|
|
330
|
-
showSuggestionChips: i0.Signal<boolean>;
|
|
331
|
-
markAsReadEffect: i0.EffectRef;
|
|
332
|
-
unreadCount: i0.Signal<number>;
|
|
333
|
-
preFullscreenState: {
|
|
334
|
-
width: string;
|
|
335
|
-
height: string;
|
|
336
|
-
left: string;
|
|
337
|
-
top: string;
|
|
338
|
-
} | null;
|
|
226
|
+
private loadUserSessions;
|
|
339
227
|
toggleFullScreen(): void;
|
|
228
|
+
trackByMessageId(index: number, item: any): string;
|
|
340
229
|
static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
341
230
|
static ɵcmp: i0.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "platformTenant": { "alias": "platformTenant"; "required": false; }; "subTenant": { "alias": "subTenant"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
342
231
|
}
|
|
@@ -418,6 +307,89 @@ declare class ChatbotApiService {
|
|
|
418
307
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChatbotApiService>;
|
|
419
308
|
}
|
|
420
309
|
|
|
310
|
+
declare class AuthResult {
|
|
311
|
+
access_token: string;
|
|
312
|
+
refresh_token: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare class CryptoHelperService {
|
|
316
|
+
private encoder;
|
|
317
|
+
private decoder;
|
|
318
|
+
private secretKey;
|
|
319
|
+
setSecretKey(key: string): void;
|
|
320
|
+
private getKey;
|
|
321
|
+
encrypt(value: string): Promise<string | null>;
|
|
322
|
+
decrypt(value: string): Promise<string | null>;
|
|
323
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
|
|
324
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare global {
|
|
328
|
+
interface Window {
|
|
329
|
+
storageEventAdded?: boolean;
|
|
330
|
+
tabCLoseEventAdded?: boolean;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
declare class AuthService {
|
|
334
|
+
private router;
|
|
335
|
+
private http;
|
|
336
|
+
private cryptoHelper;
|
|
337
|
+
apiUrl: string;
|
|
338
|
+
storageKey: string;
|
|
339
|
+
secretKey: string;
|
|
340
|
+
companyCode: string;
|
|
341
|
+
jwtHelper: JwtHelperService;
|
|
342
|
+
constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
|
|
343
|
+
logout(): Observable<boolean>;
|
|
344
|
+
setSession(session: AuthResult): void;
|
|
345
|
+
setLocalStorage(key: string, value: any): void;
|
|
346
|
+
getLocalStorage(key: string): any;
|
|
347
|
+
isAuthenticated(): boolean;
|
|
348
|
+
isTokenExpired(): boolean;
|
|
349
|
+
encrypt(value: string): any;
|
|
350
|
+
decrypt(value: string): string | null;
|
|
351
|
+
clearAuth(): void;
|
|
352
|
+
clearSession(): void;
|
|
353
|
+
clearTabInfo(): void;
|
|
354
|
+
clearStorage(): void;
|
|
355
|
+
clearCache(): void;
|
|
356
|
+
getUserId(): any;
|
|
357
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
358
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare class HttpService {
|
|
362
|
+
private http;
|
|
363
|
+
apiUrl: string;
|
|
364
|
+
constructor(http: HttpClient);
|
|
365
|
+
get(url: string, param?: object, nestedParam?: boolean, showLoader?: boolean, refresh?: boolean): Observable<any>;
|
|
366
|
+
private buildHttpParams;
|
|
367
|
+
post(url: string, param?: object, showLoader?: boolean): Observable<any>;
|
|
368
|
+
private returnResponse;
|
|
369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class ApiResponse<T> {
|
|
374
|
+
success: boolean;
|
|
375
|
+
message: string;
|
|
376
|
+
data?: T;
|
|
377
|
+
constructor(success: boolean, message: string, data?: T);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare class LoginRequest {
|
|
381
|
+
username: string;
|
|
382
|
+
password: string;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
declare class AccountService {
|
|
386
|
+
private http;
|
|
387
|
+
constructor(http: HttpService);
|
|
388
|
+
login(param?: LoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
|
|
389
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
390
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
391
|
+
}
|
|
392
|
+
|
|
421
393
|
declare const appConst: {
|
|
422
394
|
APP_LOGO: string;
|
|
423
395
|
APP_TEXT_LOGO: string;
|
|
@@ -441,6 +413,30 @@ interface TenantConfig extends ChatContext {
|
|
|
441
413
|
userContext?: UserContext;
|
|
442
414
|
}
|
|
443
415
|
|
|
416
|
+
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
417
|
+
declare class ThemeService implements OnDestroy {
|
|
418
|
+
private overlay;
|
|
419
|
+
private renderer;
|
|
420
|
+
private _theme;
|
|
421
|
+
theme: i0.Signal<ThemeMode>;
|
|
422
|
+
private _activeTheme;
|
|
423
|
+
activeTheme: i0.Signal<"light-theme" | "dark-theme">;
|
|
424
|
+
private observer;
|
|
425
|
+
constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
|
|
426
|
+
setTheme(mode: ThemeMode): void;
|
|
427
|
+
private updateActiveTheme;
|
|
428
|
+
private handleAutoTheme;
|
|
429
|
+
private detectAndApplyParentTheme;
|
|
430
|
+
private isParentDark;
|
|
431
|
+
private applyThemeToGlobal;
|
|
432
|
+
private cleanupObservers;
|
|
433
|
+
ngOnDestroy(): void;
|
|
434
|
+
applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
|
|
435
|
+
private parseColor;
|
|
436
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
437
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
438
|
+
}
|
|
439
|
+
|
|
444
440
|
declare class ChatWindowComponent {
|
|
445
441
|
isChatOpen: boolean;
|
|
446
442
|
enableDrag: boolean;
|
|
@@ -468,6 +464,9 @@ declare class ChatWindowComponent {
|
|
|
468
464
|
showSuggestionChips: boolean;
|
|
469
465
|
isHistorySidebarOpen: boolean;
|
|
470
466
|
chatSessions: ChatSession[];
|
|
467
|
+
chatHistoryUserName: string;
|
|
468
|
+
isGuestUser: boolean;
|
|
469
|
+
themeConfig: DoohbotThemeConfig | undefined;
|
|
471
470
|
toggleChat: EventEmitter<void>;
|
|
472
471
|
toggleFullScreen: EventEmitter<void>;
|
|
473
472
|
toggleHistorySidebar: EventEmitter<void>;
|
|
@@ -489,8 +488,9 @@ declare class ChatWindowComponent {
|
|
|
489
488
|
onClearChat(): void;
|
|
490
489
|
onSessionSelected(session: ChatSession): void;
|
|
491
490
|
onSessionDeleted(sessionId: string): void;
|
|
491
|
+
onPopoutShown(win: Window): void;
|
|
492
492
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatWindowComponent, never>;
|
|
493
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatWindowComponent, "app-chat-window", never, { "isChatOpen": { "alias": "isChatOpen"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "isFullScreen": { "alias": "isFullScreen"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appTextLogoUrl": { "alias": "appTextLogoUrl"; "required": false; }; "appHeaderLogoUrl": { "alias": "appHeaderLogoUrl"; "required": false; }; "moreIcon": { "alias": "moreIcon"; "required": false; }; "minimizeIcon": { "alias": "minimizeIcon"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "sendIcon": { "alias": "sendIcon"; "required": false; }; "messageError": { "alias": "messageError"; "required": false; }; "showSuggestionChips": { "alias": "showSuggestionChips"; "required": false; }; "isHistorySidebarOpen": { "alias": "isHistorySidebarOpen"; "required": false; }; "chatSessions": { "alias": "chatSessions"; "required": false; }; }, { "toggleChat": "toggleChat"; "toggleFullScreen": "toggleFullScreen"; "toggleHistorySidebar": "toggleHistorySidebar"; "openSettings": "openSettings"; "suggestionClick": "suggestionClick"; "send": "send"; "clearMessageError": "clearMessageError"; "clearChat": "clearChat"; "sessionSelected": "sessionSelected"; "sessionDeleted": "sessionDeleted"; }, never, never, true, never>;
|
|
493
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatWindowComponent, "app-chat-window", never, { "isChatOpen": { "alias": "isChatOpen"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "isFullScreen": { "alias": "isFullScreen"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appTextLogoUrl": { "alias": "appTextLogoUrl"; "required": false; }; "appHeaderLogoUrl": { "alias": "appHeaderLogoUrl"; "required": false; }; "moreIcon": { "alias": "moreIcon"; "required": false; }; "minimizeIcon": { "alias": "minimizeIcon"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "sendIcon": { "alias": "sendIcon"; "required": false; }; "messageError": { "alias": "messageError"; "required": false; }; "showSuggestionChips": { "alias": "showSuggestionChips"; "required": false; }; "isHistorySidebarOpen": { "alias": "isHistorySidebarOpen"; "required": false; }; "chatSessions": { "alias": "chatSessions"; "required": false; }; "chatHistoryUserName": { "alias": "chatHistoryUserName"; "required": false; }; "isGuestUser": { "alias": "isGuestUser"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, { "toggleChat": "toggleChat"; "toggleFullScreen": "toggleFullScreen"; "toggleHistorySidebar": "toggleHistorySidebar"; "openSettings": "openSettings"; "suggestionClick": "suggestionClick"; "send": "send"; "clearMessageError": "clearMessageError"; "clearChat": "clearChat"; "sessionSelected": "sessionSelected"; "sessionDeleted": "sessionDeleted"; }, never, never, true, never>;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
declare class MessageListComponent implements AfterViewInit, OnDestroy {
|
|
@@ -508,6 +508,9 @@ declare class MessageListComponent implements AfterViewInit, OnDestroy {
|
|
|
508
508
|
suggestionClick: EventEmitter<string>;
|
|
509
509
|
private chatMessagesContainer;
|
|
510
510
|
private mutationObserver;
|
|
511
|
+
appEmoji: {
|
|
512
|
+
waveHand: string;
|
|
513
|
+
};
|
|
511
514
|
ngAfterViewInit(): void;
|
|
512
515
|
private scrollToBottom;
|
|
513
516
|
ngOnDestroy(): void;
|
|
@@ -516,5 +519,42 @@ declare class MessageListComponent implements AfterViewInit, OnDestroy {
|
|
|
516
519
|
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "app-message-list", never, { "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; }, { "suggestionClick": "suggestionClick"; }, never, never, true, never>;
|
|
517
520
|
}
|
|
518
521
|
|
|
519
|
-
|
|
520
|
-
|
|
522
|
+
interface DialogData {
|
|
523
|
+
title: string;
|
|
524
|
+
message: string;
|
|
525
|
+
confirmText?: string;
|
|
526
|
+
cancelText?: string;
|
|
527
|
+
confirmButtonColor?: 'primary' | 'accent' | 'warn';
|
|
528
|
+
icon?: string;
|
|
529
|
+
}
|
|
530
|
+
declare class DialogComponent {
|
|
531
|
+
dialogRef: MatDialogRef<DialogComponent>;
|
|
532
|
+
data: DialogData;
|
|
533
|
+
constructor(dialogRef: MatDialogRef<DialogComponent>, data: DialogData);
|
|
534
|
+
onCancel(): void;
|
|
535
|
+
onConfirm(): void;
|
|
536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
537
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, true, never>;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
declare class DialogService {
|
|
541
|
+
private dialog;
|
|
542
|
+
constructor(dialog: MatDialog);
|
|
543
|
+
/**
|
|
544
|
+
* Opens a confirmation dialog with customizable options
|
|
545
|
+
* @param data Configuration for the dialog
|
|
546
|
+
* @returns Observable that emits true if confirmed, false if cancelled
|
|
547
|
+
*/
|
|
548
|
+
open(data: DialogData): Observable<boolean>;
|
|
549
|
+
/**
|
|
550
|
+
* Convenience method for delete confirmation dialogs
|
|
551
|
+
* @param itemName Name of the item being deleted
|
|
552
|
+
* @returns Observable that emits true if confirmed, false if cancelled
|
|
553
|
+
*/
|
|
554
|
+
confirmDelete(itemName?: string): Observable<boolean>;
|
|
555
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
556
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export { AccountService, AuthService, ChatWindowComponent, ChatbotApiService, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, DialogComponent, DialogService, Doohbot, DoohbotInput, MessageListComponent, appConst };
|
|
560
|
+
export type { ChatContext, ChatSession, ChatSessionGroup, DialogData, DoohbotApiConfig, DoohbotThemeConfig, TenantConfig, UserContext };
|