@adzen/doohbot 1.0.1 → 1.0.2
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/README.md +20 -14
- package/fesm2022/adzen-doohbot.mjs +4622 -0
- package/fesm2022/adzen-doohbot.mjs.map +1 -0
- package/index.d.ts +1301 -0
- package/index.d.ts.map +1 -0
- package/package.json +29 -57
- package/src/lib/app/chat/components/chat-button/chat-button.component.scss +115 -0
- package/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +14 -0
- package/src/lib/app/chat/components/chat-header/chat-header.component.scss +82 -0
- package/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +369 -0
- package/src/lib/app/chat/components/chat-message/chat-message.component.scss +235 -0
- package/src/lib/app/chat/components/chat-window/chat-window.component.scss +194 -0
- package/src/lib/app/chat/components/message-input/message-input.component.scss +59 -0
- package/src/lib/app/chat/components/message-list/message-list.component.scss +258 -0
- package/src/lib/app/login/login-form.component.scss +213 -0
- package/src/lib/app/personalization/personalization-dialog.component.scss +177 -0
- package/src/lib/app/personalization/sections/account/account-section.component.scss +209 -0
- package/src/lib/app/personalization/sections/instruction/instruction-section.component.scss +63 -0
- package/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +199 -0
- package/src/lib/app/personalization/sections/terms/terms-section.component.scss +74 -0
- package/src/lib/doohbot.component.scss +18 -0
- package/{projects/doohbot/src/lib/shared/chips/chips.scss → src/lib/shared/chips/chips.component.scss} +3 -1
- package/src/lib/shared/dialog/dialog.component.scss +90 -0
- package/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +53 -0
- package/src/lib/shared/input-dialog/input-dialog.component.scss +71 -0
- package/src/lib/shared/popout/popout.scss +0 -0
- package/src/lib/shared/snackbar/snackbar.component.scss +125 -0
- package/src/lib/styles/_theme.scss +69 -0
- package/src/lib/styles/material-override.scss +338 -0
- package/{projects/doohbot/src/lib/utils → src/lib/styles}/utility.scss +85 -33
- package/src/lib/theme/index.scss +8 -0
- package/src/lib/theme/palettes/aqua.scss +88 -0
- package/src/lib/theme/palettes/candy.scss +88 -0
- package/src/lib/theme/palettes/doohbot.scss +88 -0
- package/src/lib/theme/palettes/forest.scss +88 -0
- package/src/lib/theme/palettes/midnight.scss +88 -0
- package/src/lib/theme/palettes/slate.scss +88 -0
- package/src/lib/theme/palettes/sunset.scss +86 -0
- package/src/lib/theme/themes.scss +7 -0
- package/src/lib/theme/tokens/semantic.scss +102 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -26
- package/.vscode/settings.json +0 -13
- package/.vscode/tasks.json +0 -42
- package/adzen-doohbot-0.0.1.tgz +0 -0
- package/adzen-doohbot-1.0.0.tgz +0 -0
- package/adzen-doohbot-1.0.1.tgz +0 -0
- package/angular.json +0 -119
- package/projects/doohbot/README.md +0 -63
- package/projects/doohbot/ng-package.json +0 -16
- package/projects/doohbot/package.json +0 -12
- package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.directive.ts +0 -62
- package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.directive.ts +0 -163
- package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/doohbot.html +0 -216
- package/projects/doohbot/src/lib/doohbot.scss +0 -568
- package/projects/doohbot/src/lib/doohbot.spec.ts +0 -21
- package/projects/doohbot/src/lib/doohbot.ts +0 -345
- package/projects/doohbot/src/lib/elements/elements.ts +0 -25
- package/projects/doohbot/src/lib/helpers/predefined_messages.ts +0 -2
- package/projects/doohbot/src/lib/inputs/doohbot-input.ts +0 -25
- package/projects/doohbot/src/lib/model/doohbot.intents.ts +0 -24
- package/projects/doohbot/src/lib/model/message.ts +0 -13
- package/projects/doohbot/src/lib/model/token.ts +0 -3
- package/projects/doohbot/src/lib/services/messaging.service.ts +0 -73
- package/projects/doohbot/src/lib/shared/chips/chips.html +0 -9
- package/projects/doohbot/src/lib/shared/chips/chips.spec.ts +0 -23
- package/projects/doohbot/src/lib/shared/chips/chips.ts +0 -18
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.html +0 -7
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.scss +0 -73
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.spec.ts +0 -21
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.ts +0 -44
- package/projects/doohbot/src/lib/utils/material-override.scss +0 -312
- package/projects/doohbot/src/public-api.ts +0 -5
- package/projects/doohbot/tsconfig.lib.json +0 -19
- package/projects/doohbot/tsconfig.lib.prod.json +0 -11
- package/projects/doohbot/tsconfig.spec.json +0 -14
- package/projects/doohbot-element/public/favicon.ico +0 -0
- package/projects/doohbot-element/src/app/app.config.ts +0 -12
- package/projects/doohbot-element/src/app/app.html +0 -1
- package/projects/doohbot-element/src/app/app.routes.ts +0 -3
- package/projects/doohbot-element/src/app/app.spec.ts +0 -23
- package/projects/doohbot-element/src/app/app.ts +0 -10
- package/projects/doohbot-element/src/index.html +0 -15
- package/projects/doohbot-element/src/main.ts +0 -6
- package/projects/doohbot-element/src/styles.scss +0 -15
- package/projects/doohbot-element/tsconfig.app.json +0 -15
- package/projects/doohbot-element/tsconfig.spec.json +0 -14
- package/tsconfig.json +0 -43
- /package/{projects/doohbot-element/src/app/app.scss → src/lib/shared/menu-item/menu-item.component.scss} +0 -0
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
// resizable-dialog.directive.ts
|
|
2
|
-
import { Directive, ElementRef, Renderer2, OnInit, OnDestroy, HostListener } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
@Directive({
|
|
5
|
-
selector: '[resizableDialog]',
|
|
6
|
-
})
|
|
7
|
-
export class ResizableDialogDirective implements OnInit, OnDestroy {
|
|
8
|
-
private resizeHandles: HTMLElement[] = [];
|
|
9
|
-
private activeHandle: string | null = null;
|
|
10
|
-
private startX = 0;
|
|
11
|
-
private startY = 0;
|
|
12
|
-
private startWidth = 0;
|
|
13
|
-
private startHeight = 0;
|
|
14
|
-
private startLeft = 0;
|
|
15
|
-
private startTop = 0;
|
|
16
|
-
|
|
17
|
-
// Define resize directions
|
|
18
|
-
private directions = ['n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'];
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
private el: ElementRef<HTMLElement>,
|
|
22
|
-
private renderer: Renderer2,
|
|
23
|
-
) {}
|
|
24
|
-
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
this.setStyle();
|
|
27
|
-
this.createResizeHandles();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ngOnDestroy() {
|
|
31
|
-
this.removeResizeHandles();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
private setStyle() {
|
|
35
|
-
const element = this.el.nativeElement;
|
|
36
|
-
this.renderer.setStyle(element, 'position', 'absolute');
|
|
37
|
-
this.renderer.setStyle(element, 'overflow', 'hidden');
|
|
38
|
-
this.renderer.setStyle(element, 'boxSizing', 'border-box');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
private createResizeHandles() {
|
|
42
|
-
this.directions.forEach((dir) => {
|
|
43
|
-
const handle = this.renderer.createElement('div');
|
|
44
|
-
this.renderer.setAttribute(handle, 'data-dir', dir);
|
|
45
|
-
this.renderer.setStyle(handle, 'position', 'absolute');
|
|
46
|
-
this.renderer.setStyle(handle, 'background', 'transparent');
|
|
47
|
-
this.renderer.setStyle(handle, 'zIndex', '10');
|
|
48
|
-
this.renderer.setStyle(handle, 'userSelect', 'none');
|
|
49
|
-
|
|
50
|
-
// Set size and position based on direction
|
|
51
|
-
if (dir.includes('e') || dir.includes('w')) {
|
|
52
|
-
this.renderer.setStyle(handle, 'width', '10px');
|
|
53
|
-
this.renderer.setStyle(handle, 'cursor', dir.includes('e') ? 'e-resize' : 'w-resize');
|
|
54
|
-
this.renderer.setStyle(handle, 'top', '0');
|
|
55
|
-
this.renderer.setStyle(handle, 'bottom', '0');
|
|
56
|
-
this.renderer.setStyle(handle, 'right', dir.includes('e') ? '0' : null);
|
|
57
|
-
this.renderer.setStyle(handle, 'left', dir.includes('w') ? '0' : null);
|
|
58
|
-
}
|
|
59
|
-
if (dir.includes('n') || dir.includes('s')) {
|
|
60
|
-
this.renderer.setStyle(handle, 'height', '10px');
|
|
61
|
-
this.renderer.setStyle(handle, 'cursor', dir.includes('s') ? 's-resize' : 'n-resize');
|
|
62
|
-
this.renderer.setStyle(handle, 'left', '0');
|
|
63
|
-
this.renderer.setStyle(handle, 'right', '0');
|
|
64
|
-
this.renderer.setStyle(handle, 'bottom', dir.includes('s') ? '0' : null);
|
|
65
|
-
this.renderer.setStyle(handle, 'top', dir.includes('n') ? '0' : null);
|
|
66
|
-
}
|
|
67
|
-
if (dir === 'ne' || dir === 'nw' || dir === 'se' || dir === 'sw') {
|
|
68
|
-
this.renderer.setStyle(handle, 'width', '12px');
|
|
69
|
-
this.renderer.setStyle(handle, 'height', '12px');
|
|
70
|
-
this.renderer.setStyle(handle, 'borderRadius', '50%');
|
|
71
|
-
this.renderer.setStyle(handle, 'cursor', `${dir}-resize`);
|
|
72
|
-
this.renderer.setStyle(handle, 'top', dir.includes('n') ? '0' : null);
|
|
73
|
-
this.renderer.setStyle(handle, 'bottom', dir.includes('s') ? '0' : null);
|
|
74
|
-
this.renderer.setStyle(handle, 'left', dir.includes('w') ? '0' : null);
|
|
75
|
-
this.renderer.setStyle(handle, 'right', dir.includes('e') ? '0' : null);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
this.renderer.appendChild(this.el.nativeElement, handle);
|
|
79
|
-
this.resizeHandles.push(handle);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private removeResizeHandles() {
|
|
84
|
-
this.resizeHandles.forEach((handle) => {
|
|
85
|
-
this.renderer.removeChild(this.el.nativeElement, handle);
|
|
86
|
-
});
|
|
87
|
-
this.resizeHandles = [];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@HostListener('mousedown', ['$event'])
|
|
91
|
-
onMouseDown(event: MouseEvent) {
|
|
92
|
-
const target = event.target as HTMLElement;
|
|
93
|
-
const dir = target.getAttribute('data-dir');
|
|
94
|
-
if (!dir) return;
|
|
95
|
-
|
|
96
|
-
event.preventDefault();
|
|
97
|
-
|
|
98
|
-
this.activeHandle = dir;
|
|
99
|
-
const rect = this.el.nativeElement.getBoundingClientRect();
|
|
100
|
-
|
|
101
|
-
this.startX = event.clientX;
|
|
102
|
-
this.startY = event.clientY;
|
|
103
|
-
this.startWidth = parseFloat(this.getComputedStyleValue('width'));
|
|
104
|
-
this.startHeight = parseFloat(this.getComputedStyleValue('height'));
|
|
105
|
-
this.startLeft = parseFloat(this.getComputedStyleValue('left'));
|
|
106
|
-
this.startTop = parseFloat(this.getComputedStyleValue('top'));
|
|
107
|
-
|
|
108
|
-
// Prevent text selection during resize
|
|
109
|
-
document.body.classList.add('no-select');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@HostListener('document:mousemove', ['$event'])
|
|
113
|
-
onMouseMove(event: MouseEvent) {
|
|
114
|
-
if (!this.activeHandle) return;
|
|
115
|
-
|
|
116
|
-
const dx = event.clientX - this.startX;
|
|
117
|
-
const dy = event.clientY - this.startY;
|
|
118
|
-
|
|
119
|
-
let newWidth = this.startWidth;
|
|
120
|
-
let newHeight = this.startHeight;
|
|
121
|
-
let newLeft = this.startLeft;
|
|
122
|
-
let newTop = this.startTop;
|
|
123
|
-
|
|
124
|
-
const minWidth = 150;
|
|
125
|
-
const minHeight = 100;
|
|
126
|
-
|
|
127
|
-
// Horizontal resize
|
|
128
|
-
if (this.activeHandle.includes('e')) {
|
|
129
|
-
newWidth = Math.max(this.startWidth + dx, minWidth);
|
|
130
|
-
}
|
|
131
|
-
if (this.activeHandle.includes('w')) {
|
|
132
|
-
newWidth = Math.max(this.startWidth - dx, minWidth);
|
|
133
|
-
newLeft = this.startLeft + (this.startWidth - newWidth);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Vertical resize
|
|
137
|
-
if (this.activeHandle.includes('s')) {
|
|
138
|
-
newHeight = Math.max(this.startHeight + dy, minHeight);
|
|
139
|
-
}
|
|
140
|
-
if (this.activeHandle.includes('n')) {
|
|
141
|
-
newHeight = Math.max(this.startHeight - dy, minHeight);
|
|
142
|
-
newTop = this.startTop + (this.startHeight - newHeight);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Apply changes
|
|
146
|
-
this.renderer.setStyle(this.el.nativeElement, 'width', `${newWidth}px`);
|
|
147
|
-
this.renderer.setStyle(this.el.nativeElement, 'height', `${newHeight}px`);
|
|
148
|
-
this.renderer.setStyle(this.el.nativeElement, 'left', `${newLeft}px`);
|
|
149
|
-
this.renderer.setStyle(this.el.nativeElement, 'top', `${newTop}px`);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@HostListener('document:mouseup')
|
|
153
|
-
onMouseUp() {
|
|
154
|
-
if (this.activeHandle) {
|
|
155
|
-
this.activeHandle = null;
|
|
156
|
-
document.body.classList.remove('no-select');
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
private getComputedStyleValue(property: string): string {
|
|
161
|
-
return getComputedStyle(this.el.nativeElement).getPropertyValue(property) || '0';
|
|
162
|
-
}
|
|
163
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ResizableDialogDirective } from './resizable-dialog.directive';
|
|
3
|
-
|
|
4
|
-
@NgModule({
|
|
5
|
-
declarations: [],
|
|
6
|
-
imports: [ResizableDialogDirective],
|
|
7
|
-
exports: [ResizableDialogDirective],
|
|
8
|
-
})
|
|
9
|
-
export default class ResizableDialogModule {}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
<!-- fab -->
|
|
2
|
-
@if (buttonStyle === 'fab' && !isChatOpen()) {
|
|
3
|
-
<button class="chat-fab" (click)="toggleChat()">
|
|
4
|
-
<mat-icon>{{ chatIcon }}</mat-icon>
|
|
5
|
-
@if (unreadCount() > 0) {
|
|
6
|
-
<span class="alert-badge">
|
|
7
|
-
{{ unreadCount() > 9 ? '9+' : unreadCount() }}
|
|
8
|
-
</span>
|
|
9
|
-
}
|
|
10
|
-
</button>
|
|
11
|
-
}
|
|
12
|
-
<!-- sidebar button -->
|
|
13
|
-
@if (buttonStyle === 'sidebar' && !isChatOpen()) {
|
|
14
|
-
<button class="chat-sidebar" (click)="toggleChat()">
|
|
15
|
-
<h2 style="transform: rotate(-90deg); font-size: 16px">{{ appTitle }}</h2>
|
|
16
|
-
@if (unreadCount() > 0) {
|
|
17
|
-
<span class="alert-badge">
|
|
18
|
-
{{ unreadCount() > 9 ? '9+' : unreadCount() }}
|
|
19
|
-
</span>
|
|
20
|
-
}
|
|
21
|
-
</button>
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
<!-- ... chat window ... -->
|
|
25
|
-
@if (isChatOpen()) {
|
|
26
|
-
<div
|
|
27
|
-
draggableDialog
|
|
28
|
-
[dragHandle]="'.chat-header'"
|
|
29
|
-
resizableDialog
|
|
30
|
-
class="chat-window"
|
|
31
|
-
[class.fullscreen]="isFullScreen"
|
|
32
|
-
>
|
|
33
|
-
<!-- chat window -->
|
|
34
|
-
<div class="chat-header">
|
|
35
|
-
<div class="chat-title">
|
|
36
|
-
<img class="chat-logo" [src]="appLogoUrl" alt="Logo" />
|
|
37
|
-
<h2>{{ appTitle }}</h2>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<div class="chat-header-buttons">
|
|
41
|
-
<!-- settings Button -->
|
|
42
|
-
<button class="header-button" [matMenuTriggerFor]="settingsMenu" matTooltip="Menu">
|
|
43
|
-
<mat-icon>{{ moreIcon }}</mat-icon>
|
|
44
|
-
</button>
|
|
45
|
-
|
|
46
|
-
<!-- minimize Button -->
|
|
47
|
-
<button class="header-button" (click)="toggleChat()" matTooltip="Close">
|
|
48
|
-
<mat-icon>{{ minimizeIcon }}</mat-icon>
|
|
49
|
-
</button>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<!-- Messages / Welcome Screen -->
|
|
54
|
-
<div #chatMessages class="chat-messages">
|
|
55
|
-
<!-- Welcome Screen -->
|
|
56
|
-
@if (messages().length === 0 && !isBotTyping()) {
|
|
57
|
-
<div class="welcome-screen">
|
|
58
|
-
<img [src]="appLogoUrl" alt="Welcome" class="welcome-image" />
|
|
59
|
-
<h3>{{ appSubtitle }}</h3>
|
|
60
|
-
<p>{{ welcomeDesc }}</p>
|
|
61
|
-
|
|
62
|
-
<!-- Predefined messages chips -->
|
|
63
|
-
<app-chips
|
|
64
|
-
[messages]="predefinedMessages"
|
|
65
|
-
[disabled]="isBotTyping()"
|
|
66
|
-
(click)="onPredefinedClick($event)"
|
|
67
|
-
></app-chips>
|
|
68
|
-
</div>
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
<!-- Chat Messages -->
|
|
72
|
-
@for (message of messages(); track message.id ?? $index; let i = $index) {
|
|
73
|
-
<div
|
|
74
|
-
class="message-wrapper"
|
|
75
|
-
[class.user]="message.sender === 'user'"
|
|
76
|
-
[class.bot]="message.sender === 'bot'"
|
|
77
|
-
>
|
|
78
|
-
<!-- Bot Avatar -->
|
|
79
|
-
@if (message.sender === 'bot') {
|
|
80
|
-
<img class="bot-avatar" [src]="botAvatarUrl" alt="Bot Avatar" />
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
<!-- Message Bubble -->
|
|
84
|
-
<div
|
|
85
|
-
class="message"
|
|
86
|
-
[class.user]="message.sender === 'user'"
|
|
87
|
-
[class.bot]="message.sender === 'bot'"
|
|
88
|
-
>
|
|
89
|
-
{{ message.text }}
|
|
90
|
-
<!-- Show time below message -->
|
|
91
|
-
@if (message.sender === 'bot') {
|
|
92
|
-
<div class="message-time">
|
|
93
|
-
{{ message.timestamp | date: 'shortTime' }}
|
|
94
|
-
</div>
|
|
95
|
-
}
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
<!-- User Avatar -->
|
|
99
|
-
@if (message.sender === 'user') {
|
|
100
|
-
<img class="user-avatar" [src]="userAvatarUrl" alt="User Avatar" />
|
|
101
|
-
}
|
|
102
|
-
</div>
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
<!-- Typing Indicator -->
|
|
106
|
-
@if (isBotTyping()) {
|
|
107
|
-
<div class="message-wrapper bot">
|
|
108
|
-
<img class="bot-avatar" [src]="botAvatarUrl" alt="Bot Avatar" />
|
|
109
|
-
<div class="message bot">
|
|
110
|
-
<div class="typing-indicator">
|
|
111
|
-
<span></span>
|
|
112
|
-
<span></span>
|
|
113
|
-
<span></span>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
}
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
<!-- SUGGESTED CHIPS: Show only if last bot message was fallback -->
|
|
121
|
-
@if (showSuggestionChips()) {
|
|
122
|
-
<app-chips
|
|
123
|
-
[messages]="predefinedMessages"
|
|
124
|
-
[disabled]="isBotTyping()"
|
|
125
|
-
(click)="onPredefinedClick($event)"
|
|
126
|
-
></app-chips>
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
<!-- Inline error message -->
|
|
130
|
-
@if (messageError()) {
|
|
131
|
-
<app-snackbar
|
|
132
|
-
[message]="messageError()"
|
|
133
|
-
[show]="!messageError()"
|
|
134
|
-
(closed)="clearMessageError()"
|
|
135
|
-
></app-snackbar>
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
<!-- Chat Input -->
|
|
139
|
-
<div class="chat-input">
|
|
140
|
-
<input
|
|
141
|
-
#messageInput
|
|
142
|
-
type="text"
|
|
143
|
-
[disabled]="isBotTyping()"
|
|
144
|
-
(keydown.enter)="sendMessage(messageInput.value); messageInput.value = ''"
|
|
145
|
-
placeholder="{{ hintText }}"
|
|
146
|
-
/>
|
|
147
|
-
<button (click)="sendMessage(messageInput.value); messageInput.value = ''">
|
|
148
|
-
<mat-icon>{{ sendIcon }}</mat-icon>
|
|
149
|
-
</button>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<!-- footer -->
|
|
153
|
-
<div class="terms-conditions">
|
|
154
|
-
<a href="#">Terms and Conditions</a>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
<mat-menu #settingsMenu="matMenu" class="mat-menu-override">
|
|
160
|
-
<!-- Change Theme -->
|
|
161
|
-
<div class="theme-selector">
|
|
162
|
-
<!-- <span>Theme</span> -->
|
|
163
|
-
|
|
164
|
-
<!-- System Theme -->
|
|
165
|
-
<button
|
|
166
|
-
mat-icon-button
|
|
167
|
-
class="theme-btn"
|
|
168
|
-
[class.selected]="theme === 'system'"
|
|
169
|
-
(click)="changeTheme('system')"
|
|
170
|
-
>
|
|
171
|
-
<mat-icon>brightness_6</mat-icon>
|
|
172
|
-
</button>
|
|
173
|
-
|
|
174
|
-
<!-- Light Theme -->
|
|
175
|
-
<button
|
|
176
|
-
mat-icon-button
|
|
177
|
-
class="theme-btn"
|
|
178
|
-
[class.selected]="theme === 'light'"
|
|
179
|
-
(click)="changeTheme('light')"
|
|
180
|
-
>
|
|
181
|
-
<mat-icon>light_mode</mat-icon>
|
|
182
|
-
</button>
|
|
183
|
-
|
|
184
|
-
<!-- Dark Theme -->
|
|
185
|
-
<button
|
|
186
|
-
mat-icon-button
|
|
187
|
-
class="theme-btn"
|
|
188
|
-
[class.selected]="theme === 'dark'"
|
|
189
|
-
(click)="changeTheme('dark')"
|
|
190
|
-
>
|
|
191
|
-
<mat-icon>dark_mode</mat-icon>
|
|
192
|
-
</button>
|
|
193
|
-
</div>
|
|
194
|
-
|
|
195
|
-
<!-- Full-Screen Button -->
|
|
196
|
-
<button mat-menu-item (click)="toggleFullScreen()" style="display: flex; align-items: center">
|
|
197
|
-
<mat-icon>{{ isFullScreen ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>
|
|
198
|
-
<span> {{ isFullScreen ? 'Minimize' : 'Expand' }}</span>
|
|
199
|
-
</button>
|
|
200
|
-
|
|
201
|
-
<!-- Pop-out Screen -->
|
|
202
|
-
<!-- <button
|
|
203
|
-
mat-menu-item
|
|
204
|
-
(click)="isPoppedOut ? popIn() : popOut()"
|
|
205
|
-
style="display: flex; align-items: center"
|
|
206
|
-
>
|
|
207
|
-
<mat-icon>{{ isPoppedOut ? 'open_in_new_off' : 'open_in_new' }}</mat-icon>
|
|
208
|
-
<span>{{ isPoppedOut ? 'Pop-in Screen' : 'Pop-out Screen' }}</span>
|
|
209
|
-
</button> -->
|
|
210
|
-
|
|
211
|
-
<!-- Clear Chat -->
|
|
212
|
-
<button mat-menu-item (click)="clearChat()" style="display: flex; align-items: center">
|
|
213
|
-
<mat-icon>clear_all</mat-icon>
|
|
214
|
-
<span>Clear Chat</span>
|
|
215
|
-
</button>
|
|
216
|
-
</mat-menu>
|