@chat21/chat21-ionic 3.0.82-rc.7 → 3.0.82

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 (156) hide show
  1. package/CHANGELOG.md +5 -99
  2. package/README.md +2 -2
  3. package/package.json +3 -4
  4. package/src/app/app.component.html +1 -7
  5. package/src/app/app.component.scss +2 -20
  6. package/src/app/app.component.ts +18 -129
  7. package/src/app/app.module.ts +1 -3
  8. package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +1 -8
  9. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +23 -77
  10. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +88 -171
  11. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -40
  12. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +24 -11
  13. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +10 -6
  14. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +2 -2
  15. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +25 -16
  16. package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +1 -5
  17. package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +15 -22
  18. package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +5 -25
  19. package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +1 -2
  20. package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +15 -14
  21. package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +5 -24
  22. package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +1 -6
  23. package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +13 -12
  24. package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +5 -26
  25. package/src/app/chatlib/conversation-detail/message/frame/frame.component.html +2 -8
  26. package/src/app/chatlib/conversation-detail/message/frame/frame.component.scss +0 -36
  27. package/src/app/chatlib/conversation-detail/message/frame/frame.component.ts +2 -2
  28. package/src/app/chatlib/conversation-detail/message/html/html.component.ts +1 -0
  29. package/src/app/chatlib/conversation-detail/message/image/image.component.html +2 -3
  30. package/src/app/chatlib/conversation-detail/message/image/image.component.scss +5 -17
  31. package/src/app/chatlib/conversation-detail/message/image/image.component.ts +1 -1
  32. package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +2 -3
  33. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +6 -16
  34. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +3 -1
  35. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +0 -2
  36. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +52 -78
  37. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +20 -63
  38. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -14
  39. package/src/app/components/canned-response/canned-response.component.html +9 -9
  40. package/src/app/components/canned-response/canned-response.component.scss +7 -14
  41. package/src/app/components/canned-response/canned-response.component.ts +1 -1
  42. package/src/app/components/contacts-directory/contacts-directory.component.html +26 -22
  43. package/src/app/components/contacts-directory/contacts-directory.component.scss +6 -8
  44. package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +3 -0
  45. package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +21 -0
  46. package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +24 -0
  47. package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +14 -0
  48. package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +54 -0
  49. package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +98 -0
  50. package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.spec.ts → conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts} +6 -6
  51. package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +84 -0
  52. package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +30 -0
  53. package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +83 -0
  54. package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +24 -0
  55. package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +68 -0
  56. package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +3 -0
  57. package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +10 -0
  58. package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +24 -0
  59. package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +14 -0
  60. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +42 -61
  61. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +61 -98
  62. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +25 -9
  63. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +8 -17
  64. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +4 -4
  65. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +84 -24
  66. package/src/app/components/conversation-detail/option-header/option-header.component.html +13 -0
  67. package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
  68. package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts → conversation-detail/option-header/option-header.component.spec.ts} +5 -5
  69. package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts → conversation-detail/option-header/option-header.component.ts} +4 -5
  70. package/src/app/components/conversation-info/info-content/info-content.component.html +4 -8
  71. package/src/app/components/conversation-info/info-content/info-content.component.ts +6 -3
  72. package/src/app/components/conversation-info/info-direct/info-direct.component.html +13 -7
  73. package/src/app/components/conversation-info/info-direct/info-direct.component.scss +0 -23
  74. package/src/app/components/conversation-info/info-direct/info-direct.component.ts +6 -1
  75. package/src/app/components/conversation-info/info-group/info-group.component.html +108 -44
  76. package/src/app/components/conversation-info/info-group/info-group.component.scss +61 -101
  77. package/src/app/components/conversation-info/info-group/info-group.component.ts +0 -1
  78. package/src/app/components/conversation-info/info-support-group/info-support-group.component.html +1 -2
  79. package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts +1 -0
  80. package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.html → ddp-header/ddp-header.component.html} +3 -3
  81. package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.scss → ddp-header/ddp-header.component.scss} +4 -16
  82. package/src/app/components/{navbar/navbar.component.spec.ts → ddp-header/ddp-header.component.spec.ts} +6 -6
  83. package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.ts → ddp-header/ddp-header.component.ts} +16 -7
  84. package/src/app/components/project-item/project-item.component.html +149 -98
  85. package/src/app/components/project-item/project-item.component.scss +35 -43
  86. package/src/app/components/project-item/project-item.component.ts +4 -16
  87. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +5 -5
  88. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +10 -23
  89. package/src/app/components/utils/user-presence/user-presence.component.html +2 -7
  90. package/src/app/components/utils/user-presence/user-presence.component.scss +18 -35
  91. package/src/app/components/utils/user-presence/user-presence.component.ts +10 -6
  92. package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
  93. package/src/app/pages/contacts-directory/contacts-directory.page.scss +0 -47
  94. package/src/app/pages/contacts-directory/contacts-directory.page.ts +0 -2
  95. package/src/app/pages/conversation-detail/conversation-detail.module.ts +8 -0
  96. package/src/app/pages/conversation-detail/conversation-detail.page.html +23 -41
  97. package/src/app/pages/conversation-detail/conversation-detail.page.scss +250 -40
  98. package/src/app/pages/conversation-detail/conversation-detail.page.ts +112 -186
  99. package/src/app/pages/conversations-list/conversations-list.page.html +8 -11
  100. package/src/app/pages/conversations-list/conversations-list.page.scss +2 -18
  101. package/src/app/pages/conversations-list/conversations-list.page.ts +22 -25
  102. package/src/app/pages/create-canned-response/create-canned-response.page.ts +13 -13
  103. package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
  104. package/src/app/pages/loader-preview/loader-preview.page.scss +0 -4
  105. package/src/app/pages/loader-preview/loader-preview.page.ts +2 -1
  106. package/src/app/pages/profile-info/profile-info.page.html +4 -2
  107. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
  108. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +0 -42
  109. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +0 -1
  110. package/src/app/services/canned-responses/canned-responses.service.ts +0 -26
  111. package/src/app/services/tiledesk/tiledesk.service.ts +25 -1
  112. package/src/app/services/websocket/websocket.service.ts +1 -1
  113. package/src/app/shared/shared.module.ts +33 -24
  114. package/src/assets/i18n/ar.json +265 -278
  115. package/src/assets/i18n/az.json +1 -14
  116. package/src/assets/i18n/de.json +2 -15
  117. package/src/assets/i18n/en.json +2 -15
  118. package/src/assets/i18n/es.json +2 -15
  119. package/src/assets/i18n/fr.json +1 -14
  120. package/src/assets/i18n/it.json +1 -14
  121. package/src/assets/i18n/kk.json +2 -15
  122. package/src/assets/i18n/pt.json +2 -15
  123. package/src/assets/i18n/ru.json +1 -14
  124. package/src/assets/i18n/sr.json +264 -277
  125. package/src/assets/i18n/sv.json +2 -15
  126. package/src/assets/i18n/tr.json +2 -15
  127. package/src/assets/i18n/uk.json +2 -15
  128. package/src/assets/i18n/uz.json +1 -14
  129. package/src/assets/js/chat21client.js +148 -175
  130. package/src/chat-config-mqtt-localhost.json +2 -2
  131. package/src/chat-config-native-mqtt.json +0 -3
  132. package/src/chat21-core/models/conversation.ts +1 -0
  133. package/src/chat21-core/providers/firebase/firebase-typing.service.ts +9 -7
  134. package/src/chat21-core/providers/mqtt/mqtt-auth-service.ts +8 -7
  135. package/src/chat21-core/utils/constants.ts +1 -6
  136. package/src/chat21-core/utils/user-typing/user-typing.component.html +5 -8
  137. package/src/chat21-core/utils/user-typing/user-typing.component.scss +17 -87
  138. package/src/chat21-core/utils/user-typing/user-typing.component.ts +94 -12
  139. package/src/chat21-core/utils/utils.ts +10 -38
  140. package/src/global.scss +255 -52
  141. package/src/index.html +9 -0
  142. package/src/variables.scss +10 -30
  143. package/deploy_amazon_beta.sh +0 -29
  144. package/deploy_amazon_prod.sh +0 -30
  145. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +0 -116
  146. package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +0 -12
  147. package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +0 -14
  148. package/src/app/components/navbar/navbar.component.html +0 -103
  149. package/src/app/components/navbar/navbar.component.scss +0 -249
  150. package/src/app/components/navbar/navbar.component.ts +0 -190
  151. package/src/app/services/projects/projects.service.spec.ts +0 -12
  152. package/src/app/services/projects/projects.service.ts +0 -43
  153. package/src/assets/sounds/interface-start.mp3 +0 -0
  154. package/src/assets/sounds/wheep-wheep.mp3 +0 -0
  155. package/src/chat21-core/models/projects.ts +0 -27
  156. package/src/chat21-core/utils/convertRequestToConversation.ts +0 -41
package/src/global.scss CHANGED
@@ -107,6 +107,189 @@ app-conversations-list {
107
107
  font-size: 13px;
108
108
  }
109
109
 
110
+ // .popover-md .popover-content{
111
+ // width: auto!important;
112
+ // }
113
+
114
+ // ion-backdrop{
115
+ // display: block;
116
+ // background-color: #000000!important;
117
+ // width: 100%;
118
+ // height: 100%;
119
+ // opacity: 0.0!important;
120
+ // }
121
+
122
+ // ion-app, ion-nav, ion-tab, ion-tabs, .app-root, .ion-page {
123
+ // contain: none!important;
124
+ // }
125
+
126
+ // .avatar-profile {
127
+ // position: absolute;
128
+ // top: 0px;
129
+ // left: 0px;
130
+ // display: inline-block;
131
+ // width: 50px;
132
+ // height: 50px;
133
+ // background-color: transparent;
134
+ // background-size: cover;
135
+ // background-position: top center;
136
+ // border-radius: 50%;
137
+ // border-color: #c3c3c3;
138
+ // border-style: solid;
139
+ // border-width: 0px;
140
+ // }
141
+ // .chat21-avatar.big{
142
+ // width: 200px;
143
+ // height: 200px;
144
+ // }
145
+
146
+ // /* LOADING */
147
+ // /*http://tobiasahlin.com/spinkit/*/
148
+ // #chat21-spinner {
149
+ // min-height: 20px;
150
+ // display: none;
151
+ // margin: 20px auto 0;
152
+ // width: 70px;
153
+ // text-align: center;
154
+ // }
155
+ // #chat21-spinner.active {
156
+ // display: block;
157
+ // }
158
+ // #chat21-spinner > div {
159
+ // width: 12px;
160
+ // height: 12px;
161
+ // background-color: #2a69c1;
162
+ // border-radius: 100%;
163
+ // display: inline-block;
164
+ // -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
165
+ // animation: sk-bouncedelay 1.4s infinite ease-in-out both;
166
+ // }
167
+ // #chat21-spinner .chat21-bounce1 {
168
+ // -webkit-animation-delay: -0.32s;
169
+ // animation-delay: -0.32s;
170
+ // }
171
+ // #chat21-spinner .chat21-bounce2 {
172
+ // -webkit-animation-delay: -0.16s;
173
+ // animation-delay: -0.16s;
174
+ // }
175
+ // #chat21-spinner span {
176
+ // display: block;
177
+ // margin: 0.5em 0 0 0;
178
+ // color: #2a6ac1;
179
+ // /* text-transform: uppercase; */
180
+ // font-family: 'Roboto', sans-serif;
181
+ // -webkit-animation: pulse 2000ms linear infinite;
182
+ // -moz-animation: pulse 2000ms linear infinite;
183
+ // animation: pulse 2000ms linear infinite;
184
+ // text-align: center;
185
+ // }
186
+
187
+ // @-webkit-keyframes sk-bouncedelay {
188
+ // 0%, 80%, 100% { -webkit-transform: scale(0) }
189
+ // 40% { -webkit-transform: scale(1.0) }
190
+ // }
191
+
192
+ // @keyframes sk-bouncedelay {
193
+ // 0%, 80%, 100% {
194
+ // -webkit-transform: scale(0);
195
+ // transform: scale(0);
196
+ // } 40% {
197
+ // -webkit-transform: scale(1.0);
198
+ // transform: scale(1.0);
199
+ // }
200
+ // }
201
+
202
+ // .c21-right{
203
+ // float: right;
204
+ // }
205
+ // .c21-left{
206
+ // float: left;
207
+ // }
208
+ // .clearfix:after {
209
+ // display: block;
210
+ // clear: both;
211
+ // content: '';
212
+ // }
213
+ // .clear{
214
+ // clear: both;
215
+ // }
216
+
217
+ // /* END LOADIN */
218
+
219
+ // .c21-alert {
220
+ // &.c21-alert-notification {
221
+ // display: inline-block;
222
+ // margin: 0 auto;
223
+ // position: fixed;
224
+ // -webkit-transition: all .5s ease-in-out 0s;
225
+ // transition: all .5s ease-in-out 0s;
226
+ // z-index: 1031;
227
+ // top: -100px;
228
+ // left: 0px;
229
+ // right: 0px;
230
+ // max-width: 450px;
231
+ // width: 80%;
232
+ // padding: 10px;
233
+ // cursor: pointer;
234
+ // display: block;
235
+ // }
236
+ // &.alert-danger {
237
+ // background-color: #f55a4e;
238
+ // color: #fff;
239
+ // border-radius: 3px;
240
+ // -webkit-box-shadow: 0 12px 20px -10px rgba(244,67,54,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(244,67,54,.2);
241
+ // box-shadow: 0 12px 20px -10px rgba(244,67,54,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(244,67,54,.2);
242
+ // }
243
+ // &.animated {
244
+ // top: 10px;
245
+ // -webkit-animation-duration: 1s;
246
+ // animation-duration: 1s;
247
+ // -webkit-animation-fill-mode: both;
248
+ // animation-fill-mode: both;
249
+ // }
250
+
251
+ // }
252
+
253
+ // ion-navbar {
254
+ // .toolbar-background{
255
+ // /* height: 55px; */
256
+ // box-shadow: inset 0px -1px 0px #f7f7f7;
257
+ // }
258
+
259
+ // }
260
+
261
+ // ion-toolbar {
262
+ // .toolbar-background {
263
+ // background-color: #ffffff;
264
+ // }
265
+ // .transparent{
266
+ // .toolbar-background {
267
+ // background-color: transparent;
268
+ // }
269
+ // }
270
+ // }
271
+
272
+ // .footer:before {
273
+ // height: 1px;
274
+ // }
275
+ // // .modal-page {
276
+ // // z-index: 1;
277
+ // // background-color: transparent;
278
+ // // opacity: 0;
279
+ // // transition: all 0.2s;
280
+ // // right: -100%;
281
+ // // &.open {
282
+ // // // background-color: $trasp-black;
283
+ // // opacity: 1;
284
+ // // transition: all 0.3s;
285
+ // // right: 0px;
286
+ // // }
287
+ // // }
288
+
289
+ // .split-pane-side {
290
+ // border-right: 1px solid rgba(169, 169, 169, 0.1)!important;
291
+ // }
292
+
110
293
  // START GESTIONE SIDEBAR ESTERNA CON IFRAME //
111
294
  #tld-sidebar {
112
295
  position: absolute;
@@ -179,7 +362,19 @@ app-message-text-area {
179
362
  z-index: 99999; // nk
180
363
  background: #fff; // nk
181
364
  }
182
-
365
+ app-bubble-day-message {
366
+ width: 100%;
367
+ }
368
+ app-bubble-system-message {
369
+ max-width: 80%;
370
+ margin: 0 auto;
371
+ }
372
+ app-bubble-my-message {
373
+ width: 100%;
374
+ }
375
+ app-bubble-others-message {
376
+ width: 100%;
377
+ }
183
378
  app-conversation-info {
184
379
  height: calc(100% - 60px);
185
380
  }
@@ -228,6 +423,11 @@ select:-webkit-autofill:focus {
228
423
  font-weight: 300;
229
424
  }
230
425
 
426
+ // da rivedere
427
+ // :host ::ng-deep tiledeskwidget-bubble-message > div > div > tiledeskwidget-image > div > img {
428
+ // display: none !important;
429
+ // }
430
+
231
431
  /*
232
432
  * Canned responses
233
433
  * -------------------------------------------- */
@@ -236,10 +436,6 @@ select:-webkit-autofill:focus {
236
436
  opacity: 10 !important;
237
437
  cursor: pointer;
238
438
  }
239
- .native-textarea[disabled] {
240
- opacity: 10 !important;
241
- cursor: pointer;
242
- }
243
439
  }
244
440
 
245
441
 
@@ -285,7 +481,18 @@ select:-webkit-autofill:focus {
285
481
  line-height: 42px;
286
482
  }
287
483
  /* End rules for the member list refactoring in the "info-group.component.html" (replacement of ion-grid with ion-list) */
484
+ .missing-connection-toast {
485
+ --background: #fdd764;
486
+ --color: #2e3939;
487
+ font-weight: 500;
488
+ font-size: 16px;
489
+ }
288
490
 
491
+ .missing-connection-toast::part(message) {
492
+ // display: none;
493
+ display: flex;
494
+ align-items: center;
495
+ }
289
496
 
290
497
  // User details Sidebar
291
498
  .user-details-sidebar {
@@ -588,70 +795,66 @@ select:-webkit-autofill:focus {
588
795
  }
589
796
 
590
797
  // select teammate status in user detail drawer
591
- .teammate-status-in-drawer {
592
-
593
- &.ng-select {
798
+ .ng-select.teammate-status-in-drawer {
594
799
 
800
+ .ng-select-container {
801
+ background-color: #2d323e;
802
+ color: #fff;
803
+ border: 1px solid #2d323e;
804
+ }
805
+ &.ng-select-opened{
595
806
  .ng-select-container {
596
807
  background-color: #2d323e;
597
- color: #fff;
598
808
  border: 1px solid #2d323e;
599
809
  }
600
- &.ng-select-opened{
601
- .ng-select-container {
602
- background-color: #2d323e;
603
- border: 1px solid #2d323e;
604
- }
605
- }
606
-
607
- &.ng-select-focused:not(.ng-select-opened){
608
- >.ng-select-container{
609
- border: 1px solid #2d323e;
610
- box-shadow: unset;
611
- }
612
- }
613
-
614
-
615
810
  }
616
811
 
617
- .ng-dropdown-panel {
618
- background-color: #2d323e;
619
- border: 1px solid #2d323e;
620
-
621
- &.ng-select-bottom {
812
+ &.ng-select-focused:not(.ng-select-opened){
813
+ >.ng-select-container{
622
814
  border: 1px solid #2d323e;
623
- margin-top: 8px;
624
- border-top-right-radius: 4px;
625
- border-top-left-radius: 4px;
626
- }
815
+ box-shadow: unset;
816
+ }
817
+ }
818
+
627
819
 
628
- .ng-dropdown-panel-items {
629
- .ng-option {
820
+ }
821
+
822
+ .ng-dropdown-panel {
823
+ background-color: #2d323e;
824
+ border: 1px solid #2d323e;
825
+
826
+ &.ng-select-bottom {
827
+ border: 1px solid #2d323e;
828
+ margin-top: 8px;
829
+ border-top-right-radius: 4px;
830
+ border-top-left-radius: 4px;
831
+ }
832
+
833
+ .ng-dropdown-panel-items {
834
+ .ng-option {
835
+ background-color: #2d323e;
836
+ color: #fff;
837
+
838
+ &.ng-option-marked {
839
+ background-color: rgba(30, 33, 41, 0.3);
840
+ color: #fff;
841
+ }
842
+
843
+ &.ng-option-selected {
630
844
  background-color: #2d323e;
631
845
  color: #fff;
632
-
633
- &.ng-option-marked {
634
- background-color: rgba(30, 33, 41, 0.3);
635
- color: #fff;
636
- }
637
-
638
- &.ng-option-selected {
639
- background-color: #2d323e;
640
- color: #fff;
641
- }
642
-
643
- &.ng-option-marked.ng-option-selected{
644
- background-color: rgba(30, 33, 41, 0.3);
645
- color: #fff;
646
- }
647
846
  }
648
-
847
+
848
+ &.ng-option-marked.ng-option-selected{
849
+ background-color: rgba(30, 33, 41, 0.3);
850
+ color: #fff;
851
+ }
649
852
  }
853
+
650
854
  }
651
855
  }
652
856
 
653
857
 
654
-
655
858
  /* *** SMALL SIDEBAR STYLE *** */
656
859
  .small-sidebar-tiledesk-nav-user {
657
860
  height: 40px;
package/src/index.html CHANGED
@@ -33,6 +33,15 @@
33
33
  <!-- <script src="https://unpkg.com/mqtt@4.1.0/dist/mqtt.min.js"></script> -->
34
34
  <!-- <script src="./assets/js/watchToConnectionAtStartUp.js"></script> -->
35
35
 
36
+
37
+ <!-- segment analytics -->
38
+ <script>
39
+ !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="qaTU0wG6VH6xPAhOzD2kneI70Txg1fTB";;analytics.SNIPPET_VERSION="4.15.3";
40
+ analytics.load("qaTU0wG6VH6xPAhOzD2kneI70Txg1fTB");
41
+ analytics.page();
42
+ }}();
43
+ </script>
44
+
36
45
  <!-- add to homescreen for ios -->
37
46
  <meta name="apple-mobile-web-app-capable" content="yes" />
38
47
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
@@ -1,4 +1,4 @@
1
- body {
1
+ :root {
2
2
  /* Color palette */
3
3
  --white: #ffffff;
4
4
  --black: #000000;
@@ -7,47 +7,27 @@ body {
7
7
  --basic-green: #0A7D41;
8
8
  --dark-green: #005f3b;
9
9
  --light-green: #8cc841;
10
+
10
11
  --light-gray: #F2F2F2;
11
12
  --basic-gray: #666666;
12
13
  --dark-gray: #363636;
14
+
15
+
13
16
  --light-blue: #C9E4F6;
14
17
  --basic-blue: #2a69c1;
15
18
  --bubble-blue: rgb(0, 153, 255);
16
-
19
+ --bubble-lightyellow: rgb(255, 247, 237);
20
+ --bubble-privateMsg: rgb(254, 214, 168);
21
+ --bubble-privateMsgColor: rgb(47, 57, 65);
17
22
 
18
23
  --basic-yellow: #FFC627;
19
24
  --basic-red: #EB1E23;
20
25
 
21
- --bck-msg-sent: #2a6ac1;
26
+ --bck-msg-sent: #62a8ea;
22
27
  --col-msg-sent:#ffffff;
23
-
24
- --bck-msg-received: #f0f2f7;
25
- --col-msg-received: #06132b;
26
-
27
- --bubble-lightyellow: rgb(255, 247, 237);
28
- --bubble-privateMsg: rgb(254, 214, 168);
29
- --bubble-privateMsgColor: rgb(47, 57, 65);
30
-
31
28
  --light-white: #f7f7f7;
32
29
  --black: #1a1a1a;
33
30
  --gray: #aaaaaa;
34
31
 
35
- --header-height: 60px;
36
- --list-bkg-color: #f8fafc;
37
- --list-bkg-color-selected: rgba(24, 119, 242, 0.12); //rgba(24, 119, 242, 0.04);
38
-
39
- --button-in-msg-font-size: 15px;
40
- --buttonBackgroundColor: #ffffff;
41
- --buttonTextColor: #2a6ac1;
42
- --buttonHoverBackgroundColor: #2a6ac1;
43
- --buttonHoverTextColor: #ffffff;
44
-
45
- --padding-conversation-detail: 10px;
46
-
47
- --border-radius-item: 16px;
48
- --border-radius-content: 16px;
49
-
50
- --sidebar-width: 60px;
51
- --nav-bar-heigth: 60px;
52
-
53
- }
32
+
33
+ }
@@ -1,29 +0,0 @@
1
- #npm version prerelease --preid=beta
2
- version=`node -e 'console.log(require("./package.json").version)'`
3
- echo "version $version"
4
-
5
- URL_VER=${version//[.]//}
6
- echo 'URL_VER: ---->'$URL_VER
7
-
8
- sed -i -e "s/$URL_VER/g" src/utils/constants.ts
9
-
10
- # ng build --prod --base-href /$NEW_BUILD/
11
- #ionic cordova build browser --prod
12
-
13
- ionic cordova platform add browser --save
14
- #ionic cordova build browser --prod --release
15
- ionic cordova build --configuration="pre" browser #--prod --verbose
16
-
17
- cp -p src/firebase-messaging-sw.js platforms/browser/www/
18
- cp -p src/manifest.json platforms/browser/www/
19
- cp -p src/chat-config.json platforms/browser/www/
20
-
21
- cd platforms/browser/www
22
- aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/$version/ --cache-control max-age=300
23
- aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/ --cache-control max-age=300
24
- cd ../../../
25
-
26
- #aws cloudfront create-invalidation --distribution-id E13L8CUUKUWAJF --paths "/*"
27
-
28
- echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5/$version/
29
- echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
@@ -1,30 +0,0 @@
1
- # npm version patch
2
- version=`node -e 'console.log(require("./package.json").version)'`
3
- echo "version $version"
4
-
5
- URL_VER=${version//[.]//}
6
- echo 'URL_VER: ---->'$URL_VER
7
-
8
- # sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
9
- sed -i -e "s/$URL_VER/g" src/utils/constants.ts
10
-
11
-
12
- ionic cordova platform add browser --save
13
- #ionic cordova build --env=prod browser -- --base-href /www/ --prod
14
- ionic cordova build --env=prod browser --prod
15
-
16
- cp -p src/firebase-messaging-sw.js platforms/browser/www/
17
- cp -p src/manifest.json platforms/browser/www/
18
- cp -p src/chat-config.json platforms/browser/www/
19
-
20
- cd platforms/browser/www
21
- aws s3 sync . s3://tiledesk-console/v2/chat/ --cache-control max-age=172800
22
- aws s3 sync . s3://tiledesk-console/v2/chat/$version/ --cache-control max-age=172800
23
- # aws s3 sync . s3://tiledesk-console/v2/chat/latest/ --cache-control max-age=172800
24
- cd ../../../
25
-
26
- # aws cloudfront create-invalidation --distribution-id E36UIP90GOSFPM --paths "/*"
27
-
28
- # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
29
- echo new version deployed on s3://tiledesk-console/v2/chat/$version/
30
- echo available on https://console.tiledesk.com/v2/chat/$version/index.html
@@ -1,116 +0,0 @@
1
- <ion-header no-border class="ion-no-border">
2
- <ion-toolbar style="height:60px">
3
- <div class="flex-container">
4
- <div class="back-flex-container">
5
- <ion-buttons slot="start" style="height:60px">
6
- <!-- (click)="pushPage('conversations-list')" defaultHref="/conversations-list" -->
7
- <ion-back-button style="display: block;" text="" *ngIf="isMobile" (click)="goBackToConversationList()">
8
- </ion-back-button>
9
- </ion-buttons>
10
- </div>
11
- <div class="user-info-flex-container">
12
- <div style="display: flex;">
13
- <div>1</div>
14
- <div>2</div>
15
- </div>
16
- </div>
17
-
18
- <div class="resolve-flex-container">
19
- <ion-buttons slot="end">
20
-
21
- <!-- <ion-button ion-button fill="clear" color="primary" size="small" (click)="presentCreateTicketModal()" [ngClass]="{'resolve-conv-margin-right': !isMobile}">
22
- <ion-icon name="ticket-outline"></ion-icon>
23
- <span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Crea ticket' | translate}} </span>
24
- </ion-button> -->
25
-
26
- <ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" color="primary" size="small"
27
- (click)="closeConversation()" [ngClass]="{'resolve-conv-margin-right': !isMobile}" [disabled]="conv_closed === true">
28
- <!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
29
- <ion-icon name="archive-outline"></ion-icon>
30
- <!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
31
- <span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Resolve' | translate}} </span>
32
- </ion-button>
33
-
34
- <ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
35
- <!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
36
- <ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
37
- <!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
38
-
39
- </ion-button>
40
- <ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
41
- <ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
42
- </ion-button>
43
-
44
- </ion-buttons>
45
- </div>
46
-
47
- </div>
48
- </ion-toolbar>
49
- </ion-header>
50
-
51
-
52
-
53
-
54
- <ion-title>
55
-
56
- <div *ngIf="conversationAvatar" class="avatar-and-typing-wpr" >
57
- <!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '55px' : '' }" -->
58
- <div *ngIf="conversationAvatar" class="avatar-container" (click)="onOpenCloseInfoConversation()" style="cursor: pointer"
59
- [ngClass]="{ 'avatar-container-ios': platformName === 'ios' }">
60
- <app-avatar-profile [itemAvatar]=conversationAvatar></app-avatar-profile>
61
- </div>
62
- <!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
63
- <div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
64
- <app-user-presence [idUser]=conversationAvatar.conversation_with [translationMap]=translationMap
65
- [borderColor]=borderColor [fontColor]=fontColor>
66
- </app-user-presence>
67
- </div>
68
-
69
- <div *ngIf="conversationAvatar" class="user-typing">
70
- <app-user-typing [idConversation]=conversationAvatar.uid [idCurrentUser]=idLoggedUser [isDirect]=isDirect
71
- [translationMap]=translationMap [color]=fontColor [membersConversation]=membersConversation>
72
- </app-user-typing>
73
- </div>
74
-
75
- </div>
76
- <!-- [ngClass] = "{ 'tile-info-with-ios': platformName === 'ios' ? '82px' : ''82px'' }" -->
77
- <!-- (click)="onOpenCloseInfoConversation()" -->
78
- <div *ngIf="conversationAvatar" class="tile-info-with"
79
- [ngClass]="{ 'tile-info-with-ios': platformName === 'ios' }">
80
- <span class="tile-username">{{ conversationAvatar.conversation_with_fullname | truncate:50 }} </span>
81
- <!-- <span class="tile-username">{{ conversation_with_fullname }} </span> -->
82
-
83
- </div>
84
-
85
- <!-- <div *ngIf="conversationWithFullname" class="tile-info-with" (click)="onOpenCloseInfoConversation()">
86
- <span class="tile-username">{{ conversationWithFullname }} </span>
87
- </div> -->
88
-
89
- </ion-title>
90
- <!-- openInfoConversation {{openInfoConversation}} -->
91
- <ion-buttons slot="end">
92
-
93
- <!-- <ion-button ion-button fill="clear" color="primary" size="small" (click)="presentCreateTicketModal()" [ngClass]="{'resolve-conv-margin-right': !isMobile}">
94
- <ion-icon name="ticket-outline"></ion-icon>
95
- <span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Crea ticket' | translate}} </span>
96
- </ion-button> -->
97
-
98
- <ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" color="primary" size="small"
99
- (click)="closeConversation()" [ngClass]="{'resolve-conv-margin-right': !isMobile}" [disabled]="conv_closed === true">
100
- <!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
101
- <ion-icon name="archive-outline"></ion-icon>
102
- <!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
103
- <span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Resolve' | translate}} </span>
104
- </ion-button>
105
-
106
- <ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
107
- <!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
108
- <ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
109
- <!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
110
-
111
- </ion-button>
112
- <ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
113
- <ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
114
- </ion-button>
115
-
116
- </ion-buttons>
@@ -1,12 +0,0 @@
1
- <ion-toolbar [class.mobile]="isMobile">
2
-
3
- <ion-buttons slot="start">
4
- <ion-button ion-button (click)="onBackButtonHandler()">
5
- <ion-icon slot="icon-only" name="arrow-back-outline"></ion-icon>
6
- </ion-button>
7
- </ion-buttons>
8
-
9
- <ion-title> {{headerTitle}}</ion-title>
10
-
11
- </ion-toolbar>
12
-
@@ -1,14 +0,0 @@
1
- ion-toolbar {
2
- height: var(--header-height);
3
- &:not(.mobile){
4
- --background: var(--list-bkg-color);
5
- border: none;
6
- }
7
- &.mobile{
8
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
- }
10
-
11
- ion-button{
12
- --color: var(--basic-blue);
13
- }
14
- }