@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.
Files changed (55) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +26 -0
  4. package/.vscode/settings.json +13 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/README.md +58 -0
  7. package/adzen-doohbot-0.0.1.tgz +0 -0
  8. package/adzen-doohbot-1.0.0.tgz +0 -0
  9. package/angular.json +119 -0
  10. package/package.json +57 -0
  11. package/projects/doohbot/README.md +63 -0
  12. package/projects/doohbot/ng-package.json +16 -0
  13. package/projects/doohbot/package.json +12 -0
  14. package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.directive.ts +62 -0
  15. package/projects/doohbot/src/lib/directives/draggable/draggable-dialog.module.ts +9 -0
  16. package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.directive.ts +163 -0
  17. package/projects/doohbot/src/lib/directives/resizable/resizable-dialog.module.ts +9 -0
  18. package/projects/doohbot/src/lib/doohbot.html +216 -0
  19. package/projects/doohbot/src/lib/doohbot.scss +568 -0
  20. package/projects/doohbot/src/lib/doohbot.spec.ts +21 -0
  21. package/projects/doohbot/src/lib/doohbot.ts +345 -0
  22. package/projects/doohbot/src/lib/elements/elements.ts +25 -0
  23. package/projects/doohbot/src/lib/helpers/predefined_messages.ts +2 -0
  24. package/projects/doohbot/src/lib/inputs/doohbot-input.ts +25 -0
  25. package/projects/doohbot/src/lib/model/doohbot.intents.ts +24 -0
  26. package/projects/doohbot/src/lib/model/message.ts +13 -0
  27. package/projects/doohbot/src/lib/model/token.ts +3 -0
  28. package/projects/doohbot/src/lib/services/messaging.service.ts +76 -0
  29. package/projects/doohbot/src/lib/shared/chips/chips.html +9 -0
  30. package/projects/doohbot/src/lib/shared/chips/chips.scss +27 -0
  31. package/projects/doohbot/src/lib/shared/chips/chips.spec.ts +23 -0
  32. package/projects/doohbot/src/lib/shared/chips/chips.ts +18 -0
  33. package/projects/doohbot/src/lib/shared/snackbar/snackbar.html +7 -0
  34. package/projects/doohbot/src/lib/shared/snackbar/snackbar.scss +73 -0
  35. package/projects/doohbot/src/lib/shared/snackbar/snackbar.spec.ts +21 -0
  36. package/projects/doohbot/src/lib/shared/snackbar/snackbar.ts +44 -0
  37. package/projects/doohbot/src/lib/utils/material-override.scss +312 -0
  38. package/projects/doohbot/src/lib/utils/utility.scss +536 -0
  39. package/projects/doohbot/src/public-api.ts +5 -0
  40. package/projects/doohbot/tsconfig.lib.json +19 -0
  41. package/projects/doohbot/tsconfig.lib.prod.json +11 -0
  42. package/projects/doohbot/tsconfig.spec.json +14 -0
  43. package/projects/doohbot-element/public/favicon.ico +0 -0
  44. package/projects/doohbot-element/src/app/app.config.ts +12 -0
  45. package/projects/doohbot-element/src/app/app.html +1 -0
  46. package/projects/doohbot-element/src/app/app.routes.ts +3 -0
  47. package/projects/doohbot-element/src/app/app.scss +0 -0
  48. package/projects/doohbot-element/src/app/app.spec.ts +23 -0
  49. package/projects/doohbot-element/src/app/app.ts +10 -0
  50. package/projects/doohbot-element/src/index.html +15 -0
  51. package/projects/doohbot-element/src/main.ts +6 -0
  52. package/projects/doohbot-element/src/styles.scss +15 -0
  53. package/projects/doohbot-element/tsconfig.app.json +15 -0
  54. package/projects/doohbot-element/tsconfig.spec.json +14 -0
  55. package/tsconfig.json +43 -0
@@ -0,0 +1,312 @@
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
+ }