@adzen/doohbot 1.0.0
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/.editorconfig +17 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +26 -0
- package/.vscode/settings.json +13 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +58 -0
- package/adzen-doohbot-0.0.1.tgz +0 -0
- package/adzen-doohbot-1.0.0.tgz +0 -0
- package/angular.json +119 -0
- package/package.json +57 -0
- package/projects/doohbot/README.md +63 -0
- package/projects/doohbot/ng-package.json +16 -0
- package/projects/doohbot/package.json +12 -0
- package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.directive.ts +62 -0
- package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.module.ts +9 -0
- package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.directive.ts +163 -0
- package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.module.ts +9 -0
- package/projects/doohbot/src/lib/doohbot.html +216 -0
- package/projects/doohbot/src/lib/doohbot.scss +568 -0
- package/projects/doohbot/src/lib/doohbot.spec.ts +21 -0
- package/projects/doohbot/src/lib/doohbot.ts +345 -0
- package/projects/doohbot/src/lib/elements/elements.ts +25 -0
- package/projects/doohbot/src/lib/helpers/predefined_messages.ts +2 -0
- package/projects/doohbot/src/lib/inputs/doohbot-input.ts +25 -0
- package/projects/doohbot/src/lib/model/doohbot.intents.ts +24 -0
- package/projects/doohbot/src/lib/model/message.ts +13 -0
- package/projects/doohbot/src/lib/model/token.ts +3 -0
- package/projects/doohbot/src/lib/services/messaging.service.ts +76 -0
- package/projects/doohbot/src/lib/shared/chips/chips.html +9 -0
- package/projects/doohbot/src/lib/shared/chips/chips.scss +27 -0
- package/projects/doohbot/src/lib/shared/chips/chips.spec.ts +23 -0
- package/projects/doohbot/src/lib/shared/chips/chips.ts +18 -0
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.html +7 -0
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.scss +73 -0
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.spec.ts +21 -0
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.ts +44 -0
- package/projects/doohbot/src/lib/utils/material-override.scss +312 -0
- package/projects/doohbot/src/lib/utils/utility.scss +536 -0
- package/projects/doohbot/src/public-api.ts +5 -0
- package/projects/doohbot/tsconfig.lib.json +19 -0
- package/projects/doohbot/tsconfig.lib.prod.json +11 -0
- package/projects/doohbot/tsconfig.spec.json +14 -0
- package/projects/doohbot-element/public/favicon.ico +0 -0
- package/projects/doohbot-element/src/app/app.config.ts +12 -0
- package/projects/doohbot-element/src/app/app.html +1 -0
- package/projects/doohbot-element/src/app/app.routes.ts +3 -0
- package/projects/doohbot-element/src/app/app.scss +0 -0
- package/projects/doohbot-element/src/app/app.spec.ts +23 -0
- package/projects/doohbot-element/src/app/app.ts +10 -0
- package/projects/doohbot-element/src/index.html +15 -0
- package/projects/doohbot-element/src/main.ts +6 -0
- package/projects/doohbot-element/src/styles.scss +15 -0
- package/projects/doohbot-element/tsconfig.app.json +15 -0
- package/projects/doohbot-element/tsconfig.spec.json +14 -0
- package/tsconfig.json +43 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
/*
|
|
2
|
+
================================
|
|
3
|
+
Custom Utility Class
|
|
4
|
+
================================
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
$colors: (
|
|
8
|
+
'blue': '#2196F3',
|
|
9
|
+
'blue-dark': '#1333bc',
|
|
10
|
+
'blue-grey': '#7b7781',
|
|
11
|
+
'sky-blue': '#87ceeb',
|
|
12
|
+
'green': '#619361',
|
|
13
|
+
'green-dark-1': '#538353',
|
|
14
|
+
'green-light': 'rgb(13, 155, 13)',
|
|
15
|
+
'green-light-1': '#76bd76',
|
|
16
|
+
'orange': '#cc7e33',
|
|
17
|
+
'yellow': '#ffff00',
|
|
18
|
+
'yellow-dark-1': '#bdbd28',
|
|
19
|
+
'red': '#cc5133',
|
|
20
|
+
'red-light': 'rgb(249 3 3)',
|
|
21
|
+
'red-dark': 'rgb(160, 5, 5)',
|
|
22
|
+
'white': '#fff',
|
|
23
|
+
'grey': 'grey',
|
|
24
|
+
'purple': '#800080',
|
|
25
|
+
'grey-dark': '#695e5e',
|
|
26
|
+
'grey-light': '#b2a6a6',
|
|
27
|
+
'black': '#000',
|
|
28
|
+
'pink': '#e91e63',
|
|
29
|
+
'pink-dark-1': '#d81b60',
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
// Text Color
|
|
33
|
+
@each $color-name, $value in $colors {
|
|
34
|
+
.txt-#{$color-name} {
|
|
35
|
+
color: #{$value} !important;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Bg Color
|
|
40
|
+
@each $color-name, $value in $colors {
|
|
41
|
+
.bg-#{$color-name} {
|
|
42
|
+
background-color: #{$value} !important;
|
|
43
|
+
|
|
44
|
+
@if $color-name == white {
|
|
45
|
+
color: #000 !important;
|
|
46
|
+
} @else if $color-name == 'sky-blue' {
|
|
47
|
+
color: #000 !important;
|
|
48
|
+
} @else {
|
|
49
|
+
color: #fff !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Border
|
|
55
|
+
$border-position: (
|
|
56
|
+
top: 't',
|
|
57
|
+
right: 'r',
|
|
58
|
+
left: 'l',
|
|
59
|
+
bottom: 'b',
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
@for $size from 1 through 10 {
|
|
63
|
+
@each $color, $col in $colors {
|
|
64
|
+
@each $position, $pos in $border-position {
|
|
65
|
+
.border-#{$pos}-#{$color}-#{$size}px {
|
|
66
|
+
border-#{$position}: solid #{$size}px #{$col} !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.border-#{$color}-#{$size}px {
|
|
71
|
+
border: solid #{$size}px #{$col} !important;
|
|
72
|
+
}
|
|
73
|
+
.border-t-b-#{$color}-#{$size}px {
|
|
74
|
+
border-top: solid #{$size}px #{$col} !important;
|
|
75
|
+
border-bottom: solid #{$size}px #{$col} !important;
|
|
76
|
+
}
|
|
77
|
+
.border-l-r-#{$color}-#{$size}px {
|
|
78
|
+
border-left: solid #{$size}px #{$col} !important;
|
|
79
|
+
border-right: solid #{$size}px #{$col} !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Height, Width
|
|
85
|
+
$unit: (
|
|
86
|
+
rem: 'rem',
|
|
87
|
+
per: '%',
|
|
88
|
+
px: 'px',
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
@for $size from 0 through 50 {
|
|
92
|
+
@each $unit, $ut in $unit {
|
|
93
|
+
.h-#{$size}#{$unit} {
|
|
94
|
+
height: #{$size}#{$ut} !important;
|
|
95
|
+
}
|
|
96
|
+
.w-#{$size}#{$unit} {
|
|
97
|
+
width: #{$size}#{$ut} !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Margin, Padding
|
|
103
|
+
$position: (
|
|
104
|
+
top: 't',
|
|
105
|
+
right: 'r',
|
|
106
|
+
left: 'l',
|
|
107
|
+
bottom: 'b',
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
$unit: (
|
|
111
|
+
rem: 'rem',
|
|
112
|
+
per: '%',
|
|
113
|
+
px: 'px',
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
@for $size from 0 through 100 {
|
|
117
|
+
@each $unit, $ut in $unit {
|
|
118
|
+
@each $position, $pos in $position {
|
|
119
|
+
.m-#{$pos}-#{$size}#{$unit} {
|
|
120
|
+
margin-#{$position}: #{$size}#{$ut} !important;
|
|
121
|
+
}
|
|
122
|
+
.p-#{$pos}-#{$size}#{$unit} {
|
|
123
|
+
padding-#{$position}: #{$size}#{$ut} !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.m-#{$size}#{$unit} {
|
|
128
|
+
margin: #{$size}#{$ut} !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p-#{$size}#{$unit} {
|
|
132
|
+
padding: #{$size}#{$ut} !important;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Font Size
|
|
138
|
+
$unit: (
|
|
139
|
+
rem: 'rem',
|
|
140
|
+
px: 'px',
|
|
141
|
+
pt: 'pt',
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
@for $size from 0 through 50 {
|
|
145
|
+
@each $unit, $ut in $unit {
|
|
146
|
+
.f-s-#{$size}#{$unit} {
|
|
147
|
+
font-size: #{$size}#{$ut} !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*
|
|
153
|
+
================================
|
|
154
|
+
Utility Css
|
|
155
|
+
================================
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
// Gradient | Background | Color
|
|
159
|
+
.gradient-green-linear {
|
|
160
|
+
background-image: linear-gradient(to right, green, rgb(16, 180, 16)) !important;
|
|
161
|
+
|
|
162
|
+
// mat.define-palette(mat.$green-palette, 900),
|
|
163
|
+
// mat.define-palette(mat.$green-palette, 500)
|
|
164
|
+
}
|
|
165
|
+
.gradient-orange-linear {
|
|
166
|
+
background-image: linear-gradient(to right, rgb(179, 120, 10), rgb(245, 164, 14)) !important;
|
|
167
|
+
// mat.define-palette(mat.$orange-palette, 900),
|
|
168
|
+
// mat.define-palette(mat.$orange-palette, 500)
|
|
169
|
+
}
|
|
170
|
+
.gradient-red-linear {
|
|
171
|
+
background-image: linear-gradient(to right, red, rgb(255, 60, 0)) !important;
|
|
172
|
+
// mat.define-palette(mat.$red-palette, 900),
|
|
173
|
+
// mat.define-palette(mat.$red-palette, 500)
|
|
174
|
+
}
|
|
175
|
+
.gradient-blue-linear {
|
|
176
|
+
background-image: linear-gradient(to right, blue, rgb(22, 86, 224)) !important;
|
|
177
|
+
|
|
178
|
+
// mat.define-palette(mat.$blue-palette, 900),
|
|
179
|
+
// mat.define-palette(mat.$blue-palette, 500)
|
|
180
|
+
}
|
|
181
|
+
// Gradient | Background | Color
|
|
182
|
+
|
|
183
|
+
// Flex
|
|
184
|
+
.d-flex {
|
|
185
|
+
display: -ms-flexbox !important;
|
|
186
|
+
display: flex !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.flex-none {
|
|
190
|
+
flex: none !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.flex-0-0-16vw {
|
|
194
|
+
flex: 0 0 16vw !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.flex-1 {
|
|
198
|
+
flex: 1 !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.flex-dir-col {
|
|
202
|
+
flex-direction: column !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.flex-dir-row {
|
|
206
|
+
flex-direction: row !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.flex-spacer {
|
|
210
|
+
flex-grow: 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.center-wrapper-column {
|
|
214
|
+
display: flex !important;
|
|
215
|
+
align-items: center !important;
|
|
216
|
+
flex-direction: column !important;
|
|
217
|
+
justify-content: center !important;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.center-wrapper-row {
|
|
221
|
+
display: flex !important;
|
|
222
|
+
align-items: center !important;
|
|
223
|
+
flex-direction: row !important;
|
|
224
|
+
justify-content: center !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.justify-start {
|
|
228
|
+
-ms-flex-pack: start !important;
|
|
229
|
+
justify-content: flex-start !important;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.justify-end {
|
|
233
|
+
-ms-flex-pack: end !important;
|
|
234
|
+
justify-content: flex-end !important;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.justify-center {
|
|
238
|
+
-ms-flex-pack: center !important;
|
|
239
|
+
justify-content: center !important;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.justify-space-between {
|
|
243
|
+
-ms-flex-pack: justify !important;
|
|
244
|
+
justify-content: space-between !important;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.justify-around {
|
|
248
|
+
-ms-flex-pack: distribute !important;
|
|
249
|
+
justify-content: space-around !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Input
|
|
253
|
+
.input-prefix {
|
|
254
|
+
font-weight: 500;
|
|
255
|
+
margin-right: 5px;
|
|
256
|
+
}
|
|
257
|
+
.input-suffix {
|
|
258
|
+
font-weight: 500;
|
|
259
|
+
margin-left: 5px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Text
|
|
263
|
+
.text-right {
|
|
264
|
+
text-align: right !important;
|
|
265
|
+
}
|
|
266
|
+
.text-left {
|
|
267
|
+
text-align: left !important;
|
|
268
|
+
}
|
|
269
|
+
.text-center {
|
|
270
|
+
text-align: center !important;
|
|
271
|
+
}
|
|
272
|
+
.float-right {
|
|
273
|
+
float: right !important;
|
|
274
|
+
}
|
|
275
|
+
.float-left {
|
|
276
|
+
float: left !important;
|
|
277
|
+
}
|
|
278
|
+
.text-end {
|
|
279
|
+
text-align: end !important;
|
|
280
|
+
}
|
|
281
|
+
.text-start {
|
|
282
|
+
text-align: start !important;
|
|
283
|
+
}
|
|
284
|
+
.txt-center {
|
|
285
|
+
text-align: center !important;
|
|
286
|
+
}
|
|
287
|
+
.txt-decoration-none {
|
|
288
|
+
text-decoration: none !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.f-w-b {
|
|
292
|
+
font-weight: bold !important;
|
|
293
|
+
}
|
|
294
|
+
.f-w-500 {
|
|
295
|
+
font-weight: 500 !important;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Width & Height
|
|
299
|
+
.w-100 {
|
|
300
|
+
width: 100% !important;
|
|
301
|
+
}
|
|
302
|
+
.h-100 {
|
|
303
|
+
height: 100% !important;
|
|
304
|
+
}
|
|
305
|
+
.vw-100 {
|
|
306
|
+
width: 100vw !important;
|
|
307
|
+
}
|
|
308
|
+
.vh-100 {
|
|
309
|
+
height: 100vh !important;
|
|
310
|
+
}
|
|
311
|
+
.h-auto {
|
|
312
|
+
height: auto !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Alignment
|
|
316
|
+
.align-items-center {
|
|
317
|
+
align-items: center !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.card-title-text {
|
|
321
|
+
font-size: 14px !important;
|
|
322
|
+
font-weight: 600 !important;
|
|
323
|
+
color: #6f766c;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.pointer-event-none {
|
|
327
|
+
pointer-events: none !important;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.d-none {
|
|
331
|
+
display: none !important;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.d-none-1 {
|
|
335
|
+
display: none;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.radius-none {
|
|
339
|
+
border-radius: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.radius-round {
|
|
343
|
+
border-radius: 2px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.rad-full {
|
|
347
|
+
border-radius: 100%;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.radius-circle {
|
|
351
|
+
border-radius: 50%;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.overflow-visible {
|
|
355
|
+
overflow: visible;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.overflow-hidden {
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.overflow-auto {
|
|
363
|
+
overflow: auto;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.block {
|
|
367
|
+
display: block;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.button-block {
|
|
371
|
+
display: block;
|
|
372
|
+
width: 100%;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.inline-block {
|
|
376
|
+
display: inline-block;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.center-block {
|
|
380
|
+
display: block;
|
|
381
|
+
margin: 0 auto;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.relative {
|
|
385
|
+
position: relative;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.fixed {
|
|
389
|
+
position: fixed;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.absolute {
|
|
393
|
+
position: absolute;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.shadow-none {
|
|
397
|
+
box-shadow: none !important;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.border-none {
|
|
401
|
+
border: 0 !important;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.background-none {
|
|
405
|
+
background-color: transparent !important;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.d-block {
|
|
409
|
+
display: block !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.text-center {
|
|
413
|
+
text-align: center;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.align-items-start {
|
|
417
|
+
-ms-flex-align: start !important;
|
|
418
|
+
align-items: flex-start !important;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.align-items-end {
|
|
422
|
+
-ms-flex-align: end !important;
|
|
423
|
+
align-items: flex-end !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.align-items-center {
|
|
427
|
+
-ms-flex-align: center !important;
|
|
428
|
+
align-items: center !important;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.align-items-baseline {
|
|
432
|
+
-ms-flex-align: baseline !important;
|
|
433
|
+
align-items: baseline !important;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.align-items-stretch {
|
|
437
|
+
-ms-flex-align: stretch !important;
|
|
438
|
+
align-items: stretch !important;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.align-content-start {
|
|
442
|
+
-ms-flex-line-pack: start !important;
|
|
443
|
+
align-content: flex-start !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.align-content-end {
|
|
447
|
+
-ms-flex-line-pack: end !important;
|
|
448
|
+
align-content: flex-end !important;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.align-content-center {
|
|
452
|
+
-ms-flex-line-pack: center !important;
|
|
453
|
+
align-content: center !important;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.align-content-between {
|
|
457
|
+
-ms-flex-line-pack: justify !important;
|
|
458
|
+
align-content: space-between !important;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.align-content-around {
|
|
462
|
+
-ms-flex-line-pack: distribute !important;
|
|
463
|
+
align-content: space-around !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.align-content-stretch {
|
|
467
|
+
-ms-flex-line-pack: stretch !important;
|
|
468
|
+
align-content: stretch !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.align-self-auto {
|
|
472
|
+
-ms-flex-item-align: auto !important;
|
|
473
|
+
align-self: auto !important;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.align-self-start {
|
|
477
|
+
-ms-flex-item-align: start !important;
|
|
478
|
+
align-self: flex-start !important;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.align-self-end {
|
|
482
|
+
-ms-flex-item-align: end !important;
|
|
483
|
+
align-self: flex-end !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.align-self-center {
|
|
487
|
+
-ms-flex-item-align: center !important;
|
|
488
|
+
align-self: center !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.align-self-baseline {
|
|
492
|
+
-ms-flex-item-align: baseline !important;
|
|
493
|
+
align-self: baseline !important;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.align-self-stretch {
|
|
497
|
+
-ms-flex-item-align: stretch !important;
|
|
498
|
+
align-self: stretch !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.h-300px {
|
|
502
|
+
height: 300px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.transition {
|
|
506
|
+
-webkit-transition:
|
|
507
|
+
width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
508
|
+
transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
|
|
509
|
+
transition:
|
|
510
|
+
width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
511
|
+
transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.fade-in {
|
|
515
|
+
animation: fadeIn 5s;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.fade-out {
|
|
519
|
+
animation: fadeOut 5s;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.opacity-1 {
|
|
523
|
+
opacity: 1 !important;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.show {
|
|
527
|
+
opacity: 1 !important;
|
|
528
|
+
transition: opacity 0.3s ease-in !important;
|
|
529
|
+
pointer-events: auto !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.hide {
|
|
533
|
+
opacity: 0 !important;
|
|
534
|
+
transition: opacity 0.3s ease-out !important;
|
|
535
|
+
pointer-events: none !important;
|
|
536
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<app-doohbot></app-doohbot>
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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>
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
// }
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|