@chat21/chat21-ionic 3.0.85 → 3.0.86-rc.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/CHANGELOG.md +121 -4
- package/README.md +2 -2
- package/package.json +4 -3
- package/src/app/app-routing.module.ts +7 -2
- package/src/app/app.component.html +7 -1
- package/src/app/app.component.scss +20 -2
- package/src/app/app.component.ts +131 -20
- package/src/app/app.module.ts +8 -3
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +11 -4
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +86 -23
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +188 -88
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +42 -3
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +11 -24
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +6 -10
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +16 -26
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +5 -1
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +22 -15
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +25 -5
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +2 -1
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +14 -15
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +24 -5
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +6 -1
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +12 -13
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +26 -5
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.html +8 -2
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.scss +36 -0
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/html/html.component.ts +0 -1
- package/src/app/chatlib/conversation-detail/message/image/image.component.html +3 -2
- package/src/app/chatlib/conversation-detail/message/image/image.component.scss +17 -5
- package/src/app/chatlib/conversation-detail/message/image/image.component.ts +1 -1
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +3 -2
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +16 -6
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -3
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +2 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +78 -52
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +63 -20
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +14 -10
- package/src/app/components/canned-response/canned-response.component.html +9 -9
- package/src/app/components/canned-response/canned-response.component.scss +14 -7
- package/src/app/components/canned-response/canned-response.component.ts +5 -4
- package/src/app/components/contacts-directory/contacts-directory.component.html +22 -26
- package/src/app/components/contacts-directory/contacts-directory.component.scss +8 -6
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +64 -47
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +98 -61
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +24 -44
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +116 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +39 -42
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +67 -4
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +82 -154
- package/src/app/components/conversation-info/info-content/info-content.component.html +23 -2
- package/src/app/components/conversation-info/info-content/info-content.component.ts +5 -6
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +7 -14
- package/src/app/components/conversation-info/info-direct/info-direct.component.scss +23 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +1 -6
- package/src/app/components/conversation-info/info-group/info-group.component.html +44 -108
- package/src/app/components/conversation-info/info-group/info-group.component.scss +101 -61
- package/src/app/components/conversation-info/info-group/info-group.component.ts +1 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.html +2 -1
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts +0 -1
- package/src/app/components/{ddp-header/ddp-header.component.html → conversations-list/header-conversations-list/header-conversations-list.component.html} +3 -3
- package/src/app/components/{ddp-header/ddp-header.component.scss → conversations-list/header-conversations-list/header-conversations-list.component.scss} +16 -4
- package/src/app/components/{conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts → conversations-list/header-conversations-list/header-conversations-list.component.spec.ts} +6 -6
- package/src/app/components/{ddp-header/ddp-header.component.ts → conversations-list/header-conversations-list/header-conversations-list.component.ts} +7 -16
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +12 -0
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +14 -0
- package/src/app/components/{conversation-detail/option-header/option-header.component.spec.ts → conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts} +5 -5
- package/src/app/components/{conversation-detail/option-header/option-header.component.ts → conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts} +5 -4
- package/src/app/components/navbar/navbar.component.html +103 -0
- package/src/app/components/navbar/navbar.component.scss +249 -0
- package/src/app/components/{ddp-header/ddp-header.component.spec.ts → navbar/navbar.component.spec.ts} +6 -6
- package/src/app/components/navbar/navbar.component.ts +195 -0
- package/src/app/components/project-item/project-item.component.html +98 -149
- package/src/app/components/project-item/project-item.component.scss +43 -35
- package/src/app/components/project-item/project-item.component.ts +16 -4
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +5 -5
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +24 -13
- package/src/app/components/utils/user-presence/user-presence.component.html +7 -2
- package/src/app/components/utils/user-presence/user-presence.component.scss +35 -18
- package/src/app/components/utils/user-presence/user-presence.component.ts +6 -10
- package/src/app/{pages → modals}/create-canned-response/create-canned-response-routing.module.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.module.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.html +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.scss +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.spec.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.ts +13 -13
- package/src/app/{pages → modals}/loader-preview/loader-preview-routing.module.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.module.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.html +1 -1
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.scss +4 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.spec.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.ts +1 -2
- package/src/app/modals/send-email/send-email-routing.module.ts +17 -0
- package/src/app/modals/send-email/send-email.module.ts +31 -0
- package/src/app/modals/send-email/send-email.page.html +46 -0
- package/src/app/modals/send-email/send-email.page.scss +161 -0
- package/src/app/modals/send-email/send-email.page.spec.ts +24 -0
- package/src/app/modals/send-email/send-email.page.ts +89 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +47 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +2 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +0 -8
- package/src/app/pages/conversation-detail/conversation-detail.page.html +48 -27
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +45 -254
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +330 -138
- package/src/app/pages/conversations-list/conversations-list.page.html +11 -8
- package/src/app/pages/conversations-list/conversations-list.page.scss +18 -2
- package/src/app/pages/conversations-list/conversations-list.page.ts +26 -24
- package/src/app/pages/profile-info/profile-info.page.html +2 -4
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +42 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +1 -0
- package/src/app/services/canned-responses/canned-responses.service.ts +26 -0
- package/src/app/services/projects/projects.service.spec.ts +12 -0
- package/src/app/services/projects/projects.service.ts +43 -0
- package/src/app/services/tiledesk/tiledesk.service.ts +33 -17
- package/src/app/shared/shared.module.ts +24 -33
- package/src/app/utils/toast.spec.ts +7 -0
- package/src/app/utils/toast.ts +48 -0
- package/src/assets/i18n/ar.json +288 -265
- package/src/assets/i18n/az.json +24 -1
- package/src/assets/i18n/de.json +25 -2
- package/src/assets/i18n/en.json +25 -2
- package/src/assets/i18n/es.json +26 -3
- package/src/assets/i18n/fr.json +24 -1
- package/src/assets/i18n/it.json +24 -1
- package/src/assets/i18n/kk.json +25 -2
- package/src/assets/i18n/pt.json +25 -2
- package/src/assets/i18n/ru.json +24 -1
- package/src/assets/i18n/sr.json +287 -264
- package/src/assets/i18n/sv.json +25 -2
- package/src/assets/i18n/tr.json +25 -2
- package/src/assets/i18n/uk.json +25 -2
- package/src/assets/i18n/uz.json +24 -1
- package/src/assets/js/chat21client.js +1 -1
- package/src/assets/sounds/interface-start.mp3 +0 -0
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat-config-mqtt-localhost.json +2 -2
- package/src/chat-config-native-mqtt.json +3 -0
- package/src/chat21-core/models/conversation.ts +0 -1
- package/src/chat21-core/models/projects.ts +27 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +7 -9
- package/src/chat21-core/providers/logger/customLogger.ts +1 -1
- package/src/chat21-core/providers/mqtt/mqtt-auth-service.ts +7 -8
- package/src/chat21-core/utils/constants.ts +7 -1
- package/src/chat21-core/utils/convertRequestToConversation.ts +41 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.html +8 -5
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +87 -17
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +12 -94
- package/src/chat21-core/utils/utils.ts +41 -11
- package/src/global.scss +59 -255
- package/src/index.html +0 -9
- package/src/variables.scss +30 -10
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +0 -3
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +0 -21
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +0 -14
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +0 -54
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +0 -98
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +0 -84
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +0 -30
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +0 -83
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +0 -68
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +0 -3
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +0 -10
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +0 -14
- package/src/app/components/conversation-detail/option-header/option-header.component.html +0 -13
- package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
package/src/global.scss
CHANGED
|
@@ -107,189 +107,6 @@ 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
|
-
|
|
293
110
|
// START GESTIONE SIDEBAR ESTERNA CON IFRAME //
|
|
294
111
|
#tld-sidebar {
|
|
295
112
|
position: absolute;
|
|
@@ -362,19 +179,7 @@ app-message-text-area {
|
|
|
362
179
|
z-index: 99999; // nk
|
|
363
180
|
background: #fff; // nk
|
|
364
181
|
}
|
|
365
|
-
|
|
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
|
-
}
|
|
182
|
+
|
|
378
183
|
app-conversation-info {
|
|
379
184
|
height: calc(100% - 60px);
|
|
380
185
|
}
|
|
@@ -423,11 +228,6 @@ select:-webkit-autofill:focus {
|
|
|
423
228
|
font-weight: 300;
|
|
424
229
|
}
|
|
425
230
|
|
|
426
|
-
// da rivedere
|
|
427
|
-
// :host ::ng-deep tiledeskwidget-bubble-message > div > div > tiledeskwidget-image > div > img {
|
|
428
|
-
// display: none !important;
|
|
429
|
-
// }
|
|
430
|
-
|
|
431
231
|
/*
|
|
432
232
|
* Canned responses
|
|
433
233
|
* -------------------------------------------- */
|
|
@@ -436,6 +236,10 @@ select:-webkit-autofill:focus {
|
|
|
436
236
|
opacity: 10 !important;
|
|
437
237
|
cursor: pointer;
|
|
438
238
|
}
|
|
239
|
+
.native-textarea[disabled] {
|
|
240
|
+
opacity: 10 !important;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
439
243
|
}
|
|
440
244
|
|
|
441
245
|
|
|
@@ -481,18 +285,7 @@ select:-webkit-autofill:focus {
|
|
|
481
285
|
line-height: 42px;
|
|
482
286
|
}
|
|
483
287
|
/* 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
|
-
}
|
|
490
288
|
|
|
491
|
-
.missing-connection-toast::part(message) {
|
|
492
|
-
// display: none;
|
|
493
|
-
display: flex;
|
|
494
|
-
align-items: center;
|
|
495
|
-
}
|
|
496
289
|
|
|
497
290
|
// User details Sidebar
|
|
498
291
|
.user-details-sidebar {
|
|
@@ -795,66 +588,70 @@ select:-webkit-autofill:focus {
|
|
|
795
588
|
}
|
|
796
589
|
|
|
797
590
|
// select teammate status in user detail drawer
|
|
798
|
-
.
|
|
591
|
+
.teammate-status-in-drawer {
|
|
592
|
+
|
|
593
|
+
&.ng-select {
|
|
799
594
|
|
|
800
|
-
.ng-select-container {
|
|
801
|
-
background-color: #2d323e;
|
|
802
|
-
color: #fff;
|
|
803
|
-
border: 1px solid #2d323e;
|
|
804
|
-
}
|
|
805
|
-
&.ng-select-opened{
|
|
806
595
|
.ng-select-container {
|
|
807
596
|
background-color: #2d323e;
|
|
597
|
+
color: #fff;
|
|
808
598
|
border: 1px solid #2d323e;
|
|
809
599
|
}
|
|
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
|
+
|
|
810
615
|
}
|
|
811
616
|
|
|
812
|
-
|
|
813
|
-
|
|
617
|
+
.ng-dropdown-panel {
|
|
618
|
+
background-color: #2d323e;
|
|
619
|
+
border: 1px solid #2d323e;
|
|
620
|
+
|
|
621
|
+
&.ng-select-bottom {
|
|
814
622
|
border: 1px solid #2d323e;
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
623
|
+
margin-top: 8px;
|
|
624
|
+
border-top-right-radius: 4px;
|
|
625
|
+
border-top-left-radius: 4px;
|
|
626
|
+
}
|
|
819
627
|
|
|
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 {
|
|
628
|
+
.ng-dropdown-panel-items {
|
|
629
|
+
.ng-option {
|
|
844
630
|
background-color: #2d323e;
|
|
845
631
|
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
|
+
}
|
|
846
647
|
}
|
|
847
|
-
|
|
848
|
-
&.ng-option-marked.ng-option-selected{
|
|
849
|
-
background-color: rgba(30, 33, 41, 0.3);
|
|
850
|
-
color: #fff;
|
|
851
|
-
}
|
|
648
|
+
|
|
852
649
|
}
|
|
853
|
-
|
|
854
650
|
}
|
|
855
651
|
}
|
|
856
652
|
|
|
857
653
|
|
|
654
|
+
|
|
858
655
|
/* *** SMALL SIDEBAR STYLE *** */
|
|
859
656
|
.small-sidebar-tiledesk-nav-user {
|
|
860
657
|
height: 40px;
|
|
@@ -938,3 +735,10 @@ ul.dropdown-menu > li > a {
|
|
|
938
735
|
margin-top: 5px !important;
|
|
939
736
|
}
|
|
940
737
|
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
//MODALS
|
|
741
|
+
.modal-wrapper{
|
|
742
|
+
border-radius: 16px !important;
|
|
743
|
+
}
|
|
744
|
+
|
package/src/index.html
CHANGED
|
@@ -33,15 +33,6 @@
|
|
|
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
|
-
|
|
45
36
|
<!-- add to homescreen for ios -->
|
|
46
37
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
47
38
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
package/src/variables.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
body {
|
|
2
2
|
/* Color palette */
|
|
3
3
|
--white: #ffffff;
|
|
4
4
|
--black: #000000;
|
|
@@ -7,27 +7,47 @@
|
|
|
7
7
|
--basic-green: #0A7D41;
|
|
8
8
|
--dark-green: #005f3b;
|
|
9
9
|
--light-green: #8cc841;
|
|
10
|
-
|
|
11
10
|
--light-gray: #F2F2F2;
|
|
12
11
|
--basic-gray: #666666;
|
|
13
12
|
--dark-gray: #363636;
|
|
14
|
-
|
|
15
|
-
|
|
16
13
|
--light-blue: #C9E4F6;
|
|
17
14
|
--basic-blue: #2a69c1;
|
|
18
15
|
--bubble-blue: rgb(0, 153, 255);
|
|
19
|
-
|
|
20
|
-
--bubble-privateMsg: rgb(254, 214, 168);
|
|
21
|
-
--bubble-privateMsgColor: rgb(47, 57, 65);
|
|
16
|
+
|
|
22
17
|
|
|
23
18
|
--basic-yellow: #FFC627;
|
|
24
19
|
--basic-red: #EB1E23;
|
|
25
20
|
|
|
26
|
-
--bck-msg-sent: #
|
|
21
|
+
--bck-msg-sent: #2a6ac1;
|
|
27
22
|
--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
|
+
|
|
28
31
|
--light-white: #f7f7f7;
|
|
29
32
|
--black: #1a1a1a;
|
|
30
33
|
--gray: #aaaaaa;
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
}
|
package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.row-day {
|
|
2
|
-
padding: 0 10px;
|
|
3
|
-
text-align: center;
|
|
4
|
-
width: 100%;
|
|
5
|
-
margin-top: 15px;
|
|
6
|
-
margin-bottom: 5px;
|
|
7
|
-
}
|
|
8
|
-
.header-day {
|
|
9
|
-
background-color: var(--transparent);
|
|
10
|
-
padding-top: 4px;
|
|
11
|
-
padding-bottom: 4px;
|
|
12
|
-
padding-left: 12px;
|
|
13
|
-
padding-right: 12px;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
border-radius: 13px;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
font-weight: bold;
|
|
18
|
-
color: var(--basic-gray);
|
|
19
|
-
display: inline-block;
|
|
20
|
-
}
|
|
21
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { IonicModule } from '@ionic/angular';
|
|
3
|
-
|
|
4
|
-
import { BubbleDayMessageComponent } from './bubble-day-message.component';
|
|
5
|
-
|
|
6
|
-
describe('BubbleDayMessageComponent', () => {
|
|
7
|
-
let component: BubbleDayMessageComponent;
|
|
8
|
-
let fixture: ComponentFixture<BubbleDayMessageComponent>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async(() => {
|
|
11
|
-
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [ BubbleDayMessageComponent ],
|
|
13
|
-
imports: [IonicModule.forRoot()]
|
|
14
|
-
}).compileComponents();
|
|
15
|
-
|
|
16
|
-
fixture = TestBed.createComponent(BubbleDayMessageComponent);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
it('should create', () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'app-bubble-day-message',
|
|
5
|
-
templateUrl: './bubble-day-message.component.html',
|
|
6
|
-
styleUrls: ['./bubble-day-message.component.scss'],
|
|
7
|
-
})
|
|
8
|
-
export class BubbleDayMessageComponent implements OnInit {
|
|
9
|
-
@Input() messageDate = '';
|
|
10
|
-
constructor() { }
|
|
11
|
-
|
|
12
|
-
ngOnInit() {}
|
|
13
|
-
|
|
14
|
-
}
|
package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<div class="message message-my" [class.first-message]="isFirstMessage" >
|
|
2
|
-
|
|
3
|
-
<div class="bubble-message"
|
|
4
|
-
[class.image]="message.type == 'image'"
|
|
5
|
-
[class.no-text]="!message.text"
|
|
6
|
-
(mouseover)="showButtonInfo()">
|
|
7
|
-
<span class="buttonInfo" (click)="presentPopover($event, message)"> </span>
|
|
8
|
-
|
|
9
|
-
<div *ngIf="message.type == 'image';"
|
|
10
|
-
(click)="popupUrl(message.metadata.src,'windowName')"
|
|
11
|
-
>
|
|
12
|
-
<img
|
|
13
|
-
class="message-content message-content-image"
|
|
14
|
-
[src]="message.metadata.src"
|
|
15
|
-
[width]="getSizeImg(message).width"
|
|
16
|
-
[height]="getSizeImg(message).height" />
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div *ngIf="message.type == 'file';" class="message-content message-content-text"
|
|
20
|
-
[innerHTML]="urlify(message.metadata.src, message.metadata.name)"
|
|
21
|
-
></div>
|
|
22
|
-
|
|
23
|
-
<div>
|
|
24
|
-
|
|
25
|
-
<!-- <div *ngIf="message.type == 'text'"> -->
|
|
26
|
-
<div *ngIf="isPopupUrl(message.text); then contentPopup else contentNewTab">here is ignored</div>
|
|
27
|
-
<ng-template #contentPopup>
|
|
28
|
-
<div style="text-decoration: underline; padding:8px; cursor: pointer;" (click)="popupUrl(message.text,'windowName')">{{stripTags(message.text)}}</div>
|
|
29
|
-
</ng-template>
|
|
30
|
-
<ng-template #contentNewTab>
|
|
31
|
-
<div class="message-content message-content-text" [innerHTML]="message.text"></div>
|
|
32
|
-
</ng-template>
|
|
33
|
-
<!-- </div> -->
|
|
34
|
-
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<div class="timestamp-message right">{{message.timestamp | date: 'H:mm'}}</div>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<div class="attribute-message">
|
|
41
|
-
<div class="status-message">
|
|
42
|
-
<span *ngIf="!message.status" class="material-icons">
|
|
43
|
-
<ion-icon name="time-outline"></ion-icon>
|
|
44
|
-
</span>
|
|
45
|
-
<span *ngIf="message.status==MSG_STATUS_SENT" class="material-icons">
|
|
46
|
-
<ion-icon name="checkmark-outline"></ion-icon>
|
|
47
|
-
</span>
|
|
48
|
-
<span *ngIf="message.status==MSG_STATUS_RETURN_RECEIPT" class="material-icons">
|
|
49
|
-
<ion-icon name="checkmark-done-outline"></ion-icon>
|
|
50
|
-
</span>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
</div>
|
package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
.message {
|
|
2
|
-
.bubble-message {
|
|
3
|
-
position: relative;
|
|
4
|
-
border-radius: 15px;
|
|
5
|
-
font-size: 15px;
|
|
6
|
-
// padding: 5px 10px 10px 10px;
|
|
7
|
-
display: block;
|
|
8
|
-
width: auto;
|
|
9
|
-
max-width: 80%;
|
|
10
|
-
line-height: 1.34;
|
|
11
|
-
direction: ltr;
|
|
12
|
-
padding: 0px;
|
|
13
|
-
.message-content-image {
|
|
14
|
-
border-radius: 15px 6px 0px 0px;
|
|
15
|
-
}
|
|
16
|
-
&.no-text {
|
|
17
|
-
line-height: 0;
|
|
18
|
-
.message-content-image {
|
|
19
|
-
border-radius: 15px 6px 0px 15px;
|
|
20
|
-
}
|
|
21
|
-
.message-content.message-content-text{
|
|
22
|
-
padding: 0px;
|
|
23
|
-
height: 0px;
|
|
24
|
-
}
|
|
25
|
-
.timestamp-message {
|
|
26
|
-
background-color: #00000045;
|
|
27
|
-
padding: 4px;
|
|
28
|
-
color: white;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
&.image{
|
|
32
|
-
max-width: 300px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.message-content:after {
|
|
40
|
-
content: "\00a0\00a0\00a0\00a0\00a0\00a0";
|
|
41
|
-
}
|
|
42
|
-
.timestamp-message {
|
|
43
|
-
font-size: 10px;
|
|
44
|
-
padding: 0px;
|
|
45
|
-
position: absolute;
|
|
46
|
-
bottom: 2px;
|
|
47
|
-
right: 6px;
|
|
48
|
-
line-height: 15px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.message-my {
|
|
52
|
-
width: 100%;
|
|
53
|
-
margin-top: 4px;
|
|
54
|
-
.message-content.message-content-text{
|
|
55
|
-
color: var(--white)!important;
|
|
56
|
-
padding: 5px 20px 5px 10px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.bubble-message {
|
|
61
|
-
background-color: var(--bubble-blue);
|
|
62
|
-
color: white;
|
|
63
|
-
margin-right: 24px;
|
|
64
|
-
float: right;
|
|
65
|
-
border-top-right-radius: 6px;
|
|
66
|
-
border-bottom-right-radius: 6px;
|
|
67
|
-
}
|
|
68
|
-
&.first-message {
|
|
69
|
-
margin-top: 10px;
|
|
70
|
-
.bubble-message {
|
|
71
|
-
border-top-right-radius: 12px;
|
|
72
|
-
border-bottom-right-radius: 0px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.timestamp-message {
|
|
76
|
-
color: var(--white);
|
|
77
|
-
}
|
|
78
|
-
.attribute-message {
|
|
79
|
-
position: absolute;
|
|
80
|
-
width: 100%;
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
bottom: 0;
|
|
83
|
-
right: 0;
|
|
84
|
-
.status-message {
|
|
85
|
-
position: absolute;
|
|
86
|
-
top: 0;
|
|
87
|
-
right: 0;
|
|
88
|
-
width: 15px;
|
|
89
|
-
.material-icons {
|
|
90
|
-
font-size: 15px;
|
|
91
|
-
color: var(--basic-blue);
|
|
92
|
-
position: absolute;
|
|
93
|
-
bottom: 4px;
|
|
94
|
-
right: 2px;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|