@adzen/doohbot 1.0.0 → 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.
Files changed (91) hide show
  1. package/README.md +20 -14
  2. package/fesm2022/adzen-doohbot.mjs +4622 -0
  3. package/fesm2022/adzen-doohbot.mjs.map +1 -0
  4. package/index.d.ts +1301 -0
  5. package/index.d.ts.map +1 -0
  6. package/package.json +29 -57
  7. package/src/lib/app/chat/components/chat-button/chat-button.component.scss +115 -0
  8. package/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +14 -0
  9. package/src/lib/app/chat/components/chat-header/chat-header.component.scss +82 -0
  10. package/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +369 -0
  11. package/src/lib/app/chat/components/chat-message/chat-message.component.scss +235 -0
  12. package/src/lib/app/chat/components/chat-window/chat-window.component.scss +194 -0
  13. package/src/lib/app/chat/components/message-input/message-input.component.scss +59 -0
  14. package/src/lib/app/chat/components/message-list/message-list.component.scss +258 -0
  15. package/src/lib/app/login/login-form.component.scss +213 -0
  16. package/src/lib/app/personalization/personalization-dialog.component.scss +177 -0
  17. package/src/lib/app/personalization/sections/account/account-section.component.scss +209 -0
  18. package/src/lib/app/personalization/sections/instruction/instruction-section.component.scss +63 -0
  19. package/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +199 -0
  20. package/src/lib/app/personalization/sections/terms/terms-section.component.scss +74 -0
  21. package/src/lib/doohbot.component.scss +18 -0
  22. package/{projects/doohbot/src/lib/shared/chips/chips.scss → src/lib/shared/chips/chips.component.scss} +3 -1
  23. package/src/lib/shared/dialog/dialog.component.scss +90 -0
  24. package/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +53 -0
  25. package/src/lib/shared/input-dialog/input-dialog.component.scss +71 -0
  26. package/src/lib/shared/popout/popout.scss +0 -0
  27. package/src/lib/shared/snackbar/snackbar.component.scss +125 -0
  28. package/src/lib/styles/_theme.scss +69 -0
  29. package/src/lib/styles/material-override.scss +338 -0
  30. package/{projects/doohbot/src/lib/utils → src/lib/styles}/utility.scss +85 -33
  31. package/src/lib/theme/index.scss +8 -0
  32. package/src/lib/theme/palettes/aqua.scss +88 -0
  33. package/src/lib/theme/palettes/candy.scss +88 -0
  34. package/src/lib/theme/palettes/doohbot.scss +88 -0
  35. package/src/lib/theme/palettes/forest.scss +88 -0
  36. package/src/lib/theme/palettes/midnight.scss +88 -0
  37. package/src/lib/theme/palettes/slate.scss +88 -0
  38. package/src/lib/theme/palettes/sunset.scss +86 -0
  39. package/src/lib/theme/themes.scss +7 -0
  40. package/src/lib/theme/tokens/semantic.scss +102 -0
  41. package/.editorconfig +0 -17
  42. package/.vscode/extensions.json +0 -4
  43. package/.vscode/launch.json +0 -26
  44. package/.vscode/settings.json +0 -13
  45. package/.vscode/tasks.json +0 -42
  46. package/adzen-doohbot-0.0.1.tgz +0 -0
  47. package/adzen-doohbot-1.0.0.tgz +0 -0
  48. package/angular.json +0 -119
  49. package/projects/doohbot/README.md +0 -63
  50. package/projects/doohbot/ng-package.json +0 -16
  51. package/projects/doohbot/package.json +0 -12
  52. package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.directive.ts +0 -62
  53. package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.module.ts +0 -9
  54. package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.directive.ts +0 -163
  55. package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.module.ts +0 -9
  56. package/projects/doohbot/src/lib/doohbot.html +0 -216
  57. package/projects/doohbot/src/lib/doohbot.scss +0 -568
  58. package/projects/doohbot/src/lib/doohbot.spec.ts +0 -21
  59. package/projects/doohbot/src/lib/doohbot.ts +0 -345
  60. package/projects/doohbot/src/lib/elements/elements.ts +0 -25
  61. package/projects/doohbot/src/lib/helpers/predefined_messages.ts +0 -2
  62. package/projects/doohbot/src/lib/inputs/doohbot-input.ts +0 -25
  63. package/projects/doohbot/src/lib/model/doohbot.intents.ts +0 -24
  64. package/projects/doohbot/src/lib/model/message.ts +0 -13
  65. package/projects/doohbot/src/lib/model/token.ts +0 -3
  66. package/projects/doohbot/src/lib/services/messaging.service.ts +0 -76
  67. package/projects/doohbot/src/lib/shared/chips/chips.html +0 -9
  68. package/projects/doohbot/src/lib/shared/chips/chips.spec.ts +0 -23
  69. package/projects/doohbot/src/lib/shared/chips/chips.ts +0 -18
  70. package/projects/doohbot/src/lib/shared/snackbar/snackbar.html +0 -7
  71. package/projects/doohbot/src/lib/shared/snackbar/snackbar.scss +0 -73
  72. package/projects/doohbot/src/lib/shared/snackbar/snackbar.spec.ts +0 -21
  73. package/projects/doohbot/src/lib/shared/snackbar/snackbar.ts +0 -44
  74. package/projects/doohbot/src/lib/utils/material-override.scss +0 -312
  75. package/projects/doohbot/src/public-api.ts +0 -5
  76. package/projects/doohbot/tsconfig.lib.json +0 -19
  77. package/projects/doohbot/tsconfig.lib.prod.json +0 -11
  78. package/projects/doohbot/tsconfig.spec.json +0 -14
  79. package/projects/doohbot-element/public/favicon.ico +0 -0
  80. package/projects/doohbot-element/src/app/app.config.ts +0 -12
  81. package/projects/doohbot-element/src/app/app.html +0 -1
  82. package/projects/doohbot-element/src/app/app.routes.ts +0 -3
  83. package/projects/doohbot-element/src/app/app.spec.ts +0 -23
  84. package/projects/doohbot-element/src/app/app.ts +0 -10
  85. package/projects/doohbot-element/src/index.html +0 -15
  86. package/projects/doohbot-element/src/main.ts +0 -6
  87. package/projects/doohbot-element/src/styles.scss +0 -15
  88. package/projects/doohbot-element/tsconfig.app.json +0 -15
  89. package/projects/doohbot-element/tsconfig.spec.json +0 -14
  90. package/tsconfig.json +0 -43
  91. /package/{projects/doohbot-element/src/app/app.scss → src/lib/shared/menu-item/menu-item.component.scss} +0 -0
@@ -1,312 +0,0 @@
1
- /*
2
-
3
- ================================
4
-
5
- SlideToggle
6
-
7
- ================================
8
-
9
- */
10
-
11
- .mat-slide-toggle-bar {
12
- height: 21px !important;
13
-
14
- width: 36px !important;
15
-
16
- border-radius: 2px !important;
17
-
18
- .mat-slide-toggle-thum-b-container {
19
- top: 0px !important;
20
-
21
- .mat-slide-toggle-thumb {
22
- height: 21px !important;
23
-
24
- border-radius: 2px !important;
25
- }
26
- }
27
- }
28
-
29
- .mat-slide-toggle.mat-primary.mat-checked {
30
- .mat-slide-toggle-bar {
31
- background-color: #c6d2d8 !important;
32
- }
33
-
34
- .mat-slide-toggle-thumb {
35
- background-color: #016596 !important;
36
- }
37
- }
38
-
39
- /*
40
-
41
- ================================
42
-
43
- Snackbar
44
-
45
- ================================
46
-
47
- */
48
-
49
- mat-snack-bar-container {
50
- button {
51
- color: #fff !important;
52
- }
53
-
54
- mat-icon {
55
- font-size: 15pt;
56
- }
57
- }
58
-
59
- .msg-warn {
60
- div {
61
- background-color: orange !important;
62
-
63
- color: #fff !important;
64
- }
65
- }
66
-
67
- .msg-success {
68
- div {
69
- background-color: green !important;
70
-
71
- color: #fff !important;
72
- }
73
- }
74
-
75
- .msg-error {
76
- div {
77
- background-color: red !important;
78
-
79
- color: #fff !important;
80
- }
81
- }
82
-
83
- .msg-info {
84
- div {
85
- background-color: rgb(68, 68, 211) !important;
86
-
87
- color: #fff !important;
88
- }
89
- }
90
-
91
- /*
92
-
93
- ================================
94
-
95
- Mat Card
96
-
97
- ================================
98
-
99
- */
100
-
101
- .mat-card-header-text {
102
- margin: 2px !important;
103
- }
104
-
105
- .card-style {
106
- box-shadow:
107
- 0px 6px 6px -3px rgb(0 0 0 / 20%),
108
- 0px 10px 14px 1px rgb(0 0 0 / 14%),
109
- 0px 4px 18px 3px rgb(0 0 0 / 12%) !important;
110
- }
111
-
112
- .mat-card-content {
113
- padding: 0px !important;
114
- }
115
-
116
- /*
117
-
118
- ================================
119
-
120
- Mat Dialog
121
-
122
- ================================
123
-
124
- */
125
-
126
- div[mat-dialog-title] {
127
- display: flex;
128
-
129
- font-size: large !important;
130
-
131
- color: #302727 !important;
132
-
133
- padding: 0.5rem;
134
-
135
- padding-left: 0;
136
-
137
- span {
138
- flex: 1;
139
-
140
- display: flex;
141
-
142
- align-items: center;
143
-
144
- justify-content: center;
145
- }
146
-
147
- mat-icon {
148
- align-self: center;
149
- }
150
-
151
- mat-icon:hover:not(.clear-form-icon) {
152
- color: #fff !important;
153
-
154
- background: #f33232 !important;
155
-
156
- border-radius: 50% !important;
157
- }
158
-
159
- &:after {
160
- content: '';
161
-
162
- // background: $linear-gradient;
163
-
164
- display: block;
165
-
166
- height: 0.1rem;
167
-
168
- width: 100%;
169
-
170
- position: absolute;
171
-
172
- bottom: 0;
173
- }
174
- }
175
-
176
- mat-dialog-content {
177
- margin: 0 !important;
178
-
179
- padding: 20px 20px 8px 20px !important;
180
- }
181
-
182
- div[mat-dialog-actions] {
183
- margin: 0 !important;
184
-
185
- padding: 12px 13px !important;
186
-
187
- justify-content: flex-end !important;
188
- }
189
-
190
- /*
191
-
192
- ================================
193
-
194
- NGXDate style override
195
-
196
- ================================
197
-
198
- */
199
-
200
- .mat-menu-panel {
201
- max-width: 100% !important;
202
-
203
- section {
204
- width: 308px !important;
205
- }
206
- }
207
-
208
- /*
209
-
210
- ================================
211
-
212
- MatSelect style override
213
-
214
- ================================
215
-
216
- */
217
-
218
- .mat-optgroup-label {
219
- font-weight: 800;
220
-
221
- border-top: solid 1px #f3eaea;
222
-
223
- border-bottom: solid 1px #f3eaea;
224
- }
225
-
226
- .select-panel-w-10rem {
227
- min-width: 10rem !important;
228
- }
229
-
230
- .select-panel-w-20rem {
231
- min-width: 20rem !important;
232
- }
233
-
234
- .select-panel-w-25rem {
235
- min-width: 25rem !important;
236
- }
237
-
238
- .select-panel-w-30rem {
239
- min-width: 30rem !important;
240
- }
241
-
242
- .select-panel-w-50rem {
243
- min-width: 50rem !important;
244
- }
245
-
246
- /*
247
-
248
- ================================
249
-
250
- MatTooltip style override
251
-
252
- ================================
253
-
254
- */
255
-
256
- .multi-line-tooltip {
257
- white-space: pre-line;
258
- }
259
-
260
- .mat-tooltip {
261
- background-color: #fff !important;
262
- }
263
-
264
- /*
265
-
266
- ================================
267
-
268
- MatDrawer style override
269
-
270
- ================================
271
-
272
- */
273
-
274
- .mat-drawer-backdrop {
275
- background-color: #68565682 !important;
276
- }
277
-
278
- mat-icon {
279
- cursor: pointer;
280
- }
281
-
282
- /*
283
-
284
- ================================
285
-
286
- Mat Progress Bar
287
-
288
- ================================
289
-
290
- */
291
-
292
- mat-progress-bar {
293
- .mdc-linear-progress__buffer-bar {
294
- background-color: rgb(249 250 255 / 0%) !important;
295
- }
296
- }
297
-
298
- /*
299
-
300
- ================================
301
-
302
- Mat Bottomsheet
303
-
304
- ================================
305
-
306
- */
307
-
308
- mat-bottom-sheet-container {
309
- padding: 0px !important;
310
-
311
- overflow: hidden !important;
312
- }
@@ -1,5 +0,0 @@
1
- /*
2
- * Public API Surface of chatbot
3
- */
4
-
5
- export * from './lib/doohbot';
@@ -1,19 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/lib",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "inlineSources": true,
10
- "sourceMap": true,
11
- "types": []
12
- },
13
- "include": [
14
- "src/**/*.ts"
15
- ],
16
- "exclude": [
17
- "**/*.spec.ts"
18
- ]
19
- }
@@ -1,11 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "./tsconfig.lib.json",
5
- "compilerOptions": {
6
- "declarationMap": false
7
- },
8
- "angularCompilerOptions": {
9
- "compilationMode": "partial"
10
- }
11
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/spec",
7
- "types": [
8
- "jasmine"
9
- ]
10
- },
11
- "include": [
12
- "src/**/*.ts"
13
- ]
14
- }
@@ -1,12 +0,0 @@
1
- import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
2
- import { provideRouter } from '@angular/router';
3
-
4
- import { routes } from './app.routes';
5
-
6
- export const appConfig: ApplicationConfig = {
7
- providers: [
8
- provideBrowserGlobalErrorListeners(),
9
- provideZoneChangeDetection({ eventCoalescing: true }),
10
- provideRouter(routes)
11
- ]
12
- };
@@ -1 +0,0 @@
1
- <app-doohbot></app-doohbot>
@@ -1,3 +0,0 @@
1
- import { Routes } from '@angular/router';
2
-
3
- export const routes: Routes = [];
@@ -1,23 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
- import { App } from './app';
3
-
4
- describe('App', () => {
5
- beforeEach(async () => {
6
- await TestBed.configureTestingModule({
7
- imports: [App],
8
- }).compileComponents();
9
- });
10
-
11
- it('should create the app', () => {
12
- const fixture = TestBed.createComponent(App);
13
- const app = fixture.componentInstance;
14
- expect(app).toBeTruthy();
15
- });
16
-
17
- it('should render title', () => {
18
- const fixture = TestBed.createComponent(App);
19
- fixture.detectChanges();
20
- const compiled = fixture.nativeElement as HTMLElement;
21
- expect(compiled.querySelector('h1')?.textContent).toContain('Hello, chatbot-element');
22
- });
23
- });
@@ -1,10 +0,0 @@
1
- import { Component, signal } from '@angular/core';
2
- import { Doohbot } from 'doohbot';
3
-
4
- @Component({
5
- selector: 'app-root',
6
- imports: [Doohbot],
7
- templateUrl: './app.html',
8
- styleUrl: './app.scss',
9
- })
10
- export class App {}
@@ -1,15 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>ChatbotElement</title>
6
- <base href="/">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link rel="icon" type="image/x-icon" href="favicon.ico">
9
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
10
-
11
- </head>
12
- <body>
13
- <app-root></app-root>
14
- </body>
15
- </html>
@@ -1,6 +0,0 @@
1
- import { bootstrapApplication } from '@angular/platform-browser';
2
- import { appConfig } from './app/app.config';
3
- import { App } from './app/app';
4
-
5
- bootstrapApplication(App, appConfig)
6
- .catch((err) => console.error(err));
@@ -1,15 +0,0 @@
1
- // /* You can add global styles to this file, and also import other style files */
2
- // :root {
3
- // --primary-color: #4F46E5;
4
- // --secondary-color: #6c757d;
5
- // --background-color: #f8f9fa;
6
- // --white: #ffffff;
7
- // --text-color: #333;
8
- // --font-family: Arial, sans-serif;
9
- // }
10
-
11
- // body {
12
- // font-family: var(--font-family);
13
- // background-color: var(--background-color);
14
- // color: var(--text-color);
15
- // }
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/app",
7
- "types": []
8
- },
9
- "include": [
10
- "src/**/*.ts"
11
- ],
12
- "exclude": [
13
- "src/**/*.spec.ts"
14
- ]
15
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/spec",
7
- "types": [
8
- "jasmine"
9
- ]
10
- },
11
- "include": [
12
- "src/**/*.ts"
13
- ]
14
- }
package/tsconfig.json DELETED
@@ -1,43 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "compileOnSave": false,
5
- "compilerOptions": {
6
- "paths": {
7
- "doohbot": ["./dist/doohbot"]
8
- },
9
- "strict": true,
10
- "noImplicitOverride": true,
11
- "noPropertyAccessFromIndexSignature": true,
12
- "noImplicitReturns": true,
13
- "noFallthroughCasesInSwitch": true,
14
- "skipLibCheck": true,
15
- "isolatedModules": true,
16
- "experimentalDecorators": true,
17
- "importHelpers": true,
18
- "target": "ES2022",
19
- "module": "preserve"
20
- },
21
- "angularCompilerOptions": {
22
- "enableI18nLegacyMessageIdFormat": false,
23
- "strictInjectionParameters": true,
24
- "strictInputAccessModifiers": true,
25
- "typeCheckHostBindings": true,
26
- "strictTemplates": true
27
- },
28
- "files": [],
29
- "references": [
30
- {
31
- "path": "./projects/doohbot/tsconfig.lib.json"
32
- },
33
- {
34
- "path": "./projects/doohbot/tsconfig.spec.json"
35
- },
36
- {
37
- "path": "./projects/doohbot-element/tsconfig.app.json"
38
- },
39
- {
40
- "path": "./projects/doohbot-element/tsconfig.spec.json"
41
- }
42
- ]
43
- }