@chat21/chat21-ionic 3.0.78 → 3.0.79-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 +41 -1
- package/package.json +1 -1
- package/src/app/app.component.scss +2 -1
- package/src/app/app.component.ts +52 -7
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +8 -1
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -10
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +110 -38
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +15 -2
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +1 -1
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +3 -1
- 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/info-message/info-message.component.scss +2 -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.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 +62 -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 +4 -4
- package/src/app/components/canned-response/canned-response.component.scss +1 -1
- package/src/app/components/canned-response/canned-response.component.ts +1 -0
- 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 +61 -42
- 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 +9 -25
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +4 -4
- package/src/app/components/conversation-info/info-content/info-content.component.html +2 -1
- package/src/app/components/conversation-info/info-content/info-content.component.ts +3 -2
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +1 -9
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +0 -2
- 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/{ddp-header/ddp-header.component.html → conversations-list/header-conversations-list/header-conversations-list.component.html} +2 -2
- 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/{ddp-header/ddp-header.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/project-item/project-item.component.html +98 -149
- package/src/app/components/project-item/project-item.component.scss +39 -32
- package/src/app/components/project-item/project-item.component.ts +5 -3
- 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/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +41 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +2 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.html +40 -23
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +40 -250
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +165 -46
- package/src/app/pages/conversations-list/conversations-list.page.html +11 -8
- package/src/app/pages/conversations-list/conversations-list.page.scss +10 -2
- package/src/app/pages/conversations-list/conversations-list.page.ts +22 -17
- package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
- package/src/app/pages/loader-preview/loader-preview.page.scss +4 -0
- 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/shared/shared.module.ts +24 -24
- package/src/assets/i18n/ar.json +270 -265
- package/src/assets/i18n/az.json +5 -0
- package/src/assets/i18n/de.json +5 -0
- package/src/assets/i18n/en.json +5 -0
- package/src/assets/i18n/es.json +5 -0
- package/src/assets/i18n/fr.json +5 -0
- package/src/assets/i18n/it.json +5 -0
- package/src/assets/i18n/kk.json +5 -0
- package/src/assets/i18n/pt.json +5 -0
- package/src/assets/i18n/ru.json +5 -0
- package/src/assets/i18n/sr.json +5 -0
- package/src/assets/i18n/sv.json +5 -0
- package/src/assets/i18n/tr.json +5 -0
- package/src/assets/i18n/uk.json +5 -0
- package/src/assets/i18n/uz.json +5 -0
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +7 -9
- package/src/chat21-core/utils/constants.ts +5 -1
- 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 +9 -1
- package/src/global.scss +47 -43
- package/src/variables.scss +26 -9
- 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
|
@@ -4,13 +4,10 @@
|
|
|
4
4
|
padding-top: 0px;
|
|
5
5
|
margin-top: 0px !important;
|
|
6
6
|
padding-bottom: 0px !important;
|
|
7
|
-
// background: #fff;
|
|
8
7
|
padding-left: 0px;
|
|
9
8
|
width: 100%;
|
|
10
|
-
// min-height:
|
|
11
|
-
// height:
|
|
12
|
-
min-height: 64px;
|
|
13
|
-
height: 64px;
|
|
9
|
+
// min-height: 64px;
|
|
10
|
+
// height: 64px;
|
|
14
11
|
position: relative;
|
|
15
12
|
// top: -5px; //nk x AS
|
|
16
13
|
}
|
|
@@ -215,14 +212,10 @@
|
|
|
215
212
|
}
|
|
216
213
|
}
|
|
217
214
|
|
|
218
|
-
.container-project-for-panel {
|
|
219
|
-
padding: 0px !important;
|
|
220
|
-
width: 296px;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
215
|
.flex-container-project-for-panel {
|
|
224
216
|
display: flex;
|
|
225
|
-
width: 100%;
|
|
217
|
+
// width: 100%;
|
|
218
|
+
// height: 64px;
|
|
226
219
|
justify-content: center;
|
|
227
220
|
align-items: center;
|
|
228
221
|
// position: relative;
|
|
@@ -231,17 +224,18 @@
|
|
|
231
224
|
-o-transition: all 0.2s ease-in;
|
|
232
225
|
-webkit-transition: all 0.2s ease-in;
|
|
233
226
|
transition: all 0.2s ease-in;
|
|
234
|
-
|
|
227
|
+
margin: 6px;
|
|
228
|
+
// background-color: rgba(24, 119, 242, 0.1);
|
|
229
|
+
border-radius: 5px;
|
|
235
230
|
}
|
|
236
231
|
|
|
237
|
-
.flex-container:hover {
|
|
238
|
-
background-color:
|
|
232
|
+
.flex-container-project-for-panel:hover {
|
|
233
|
+
background-color: rgba(24, 119, 242, 0.2);
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
.flex-child-right {
|
|
242
237
|
flex: 1;
|
|
243
|
-
padding: 18px 0px;
|
|
244
|
-
// height: 100%;
|
|
238
|
+
// padding: 18px 0px;
|
|
245
239
|
}
|
|
246
240
|
|
|
247
241
|
|
|
@@ -249,7 +243,7 @@
|
|
|
249
243
|
// flex: 0 0 20%;
|
|
250
244
|
width: 60px;
|
|
251
245
|
text-align: center;
|
|
252
|
-
padding: 18px 0px;
|
|
246
|
+
// padding: 18px 0px;
|
|
253
247
|
height: 100%;
|
|
254
248
|
}
|
|
255
249
|
// border: 2px solid yellow;
|
|
@@ -315,16 +309,15 @@
|
|
|
315
309
|
overflow: hidden !important;
|
|
316
310
|
text-overflow: ellipsis !important;
|
|
317
311
|
font-family: Helvetica, Helvetica, Arial, sans-serif;
|
|
318
|
-
font-size: 14px;
|
|
312
|
+
font-size: 16px; //14px;
|
|
319
313
|
position: relative;
|
|
320
|
-
top: -1px;
|
|
321
314
|
cursor: pointer;
|
|
315
|
+
a {
|
|
316
|
+
color: #779bbb
|
|
317
|
+
}
|
|
322
318
|
}
|
|
323
319
|
|
|
324
320
|
|
|
325
|
-
.project-name-project-for-panel-on-desktop {
|
|
326
|
-
width: 217px
|
|
327
|
-
}
|
|
328
321
|
|
|
329
322
|
// .project-name-project-for-panel:hover span {
|
|
330
323
|
// color: rgba(0, 0, 0, 0.35);
|
|
@@ -337,7 +330,8 @@
|
|
|
337
330
|
|
|
338
331
|
}
|
|
339
332
|
.project---name:hover {
|
|
340
|
-
color:
|
|
333
|
+
color: rgb(100, 131, 158);
|
|
334
|
+
// font-weight: 600;
|
|
341
335
|
}
|
|
342
336
|
|
|
343
337
|
.view-all-convs-icon:hover {
|
|
@@ -452,13 +446,21 @@
|
|
|
452
446
|
// top: 3px;
|
|
453
447
|
|
|
454
448
|
position: relative;
|
|
455
|
-
top: -8px;
|
|
449
|
+
// top: -8px;
|
|
456
450
|
background: transparent;
|
|
457
451
|
border-radius: 50%;
|
|
458
|
-
width: 50px;
|
|
452
|
+
width: 40px; //50px;
|
|
459
453
|
left: 10px;
|
|
460
|
-
height: 50px;
|
|
454
|
+
height: 40px; //50px;
|
|
461
455
|
cursor: pointer;
|
|
456
|
+
|
|
457
|
+
svg {
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
width: 30px;
|
|
460
|
+
height: auto;
|
|
461
|
+
fill: #779bbb; //rgb(107,107,107);
|
|
462
|
+
margin-top: 7px;
|
|
463
|
+
}
|
|
462
464
|
}
|
|
463
465
|
.unassigned-notifications-icon-wpr:hover {
|
|
464
466
|
background-color: rgba(0, 0, 0, 0.05);
|
|
@@ -467,23 +469,28 @@
|
|
|
467
469
|
.unassigned-notifications-badge {
|
|
468
470
|
position: absolute;
|
|
469
471
|
// top: 12px;
|
|
470
|
-
top: 14px;
|
|
472
|
+
top: 6px;//14px;
|
|
471
473
|
border-radius: 50%;
|
|
472
474
|
background: #e41e3f;
|
|
473
475
|
// width: 24px;
|
|
474
476
|
// height: 24px;
|
|
475
|
-
width: 22px;
|
|
476
|
-
height: 22px;
|
|
477
|
+
width: 20px; //22px;
|
|
478
|
+
height: 20px; //22px;
|
|
477
479
|
color: #fff;
|
|
478
480
|
|
|
479
|
-
left:
|
|
481
|
+
left: 40px; //33px;
|
|
480
482
|
border: 1px solid #fff;
|
|
483
|
+
|
|
484
|
+
display: flex;
|
|
485
|
+
align-content: center;
|
|
486
|
+
justify-content: center;
|
|
487
|
+
align-items: center;
|
|
481
488
|
}
|
|
482
489
|
.notification-count {
|
|
483
|
-
font-size: 12px;
|
|
490
|
+
font-size: 10px; //12px;
|
|
484
491
|
font-weight: 500;
|
|
485
492
|
position: relative;
|
|
486
|
-
top: -1px;
|
|
493
|
+
// top: -1px;
|
|
487
494
|
text-align: center;
|
|
488
495
|
}
|
|
489
496
|
|
|
@@ -132,9 +132,10 @@ export class ProjectItemComponent implements OnInit {
|
|
|
132
132
|
'LABEL_NOT_AVAILABLE',
|
|
133
133
|
'LABEL_BUSY',
|
|
134
134
|
'VIEW_ALL_CONVERSATIONS',
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
135
|
+
'UnassignedConversations',
|
|
136
|
+
// 'CONVERSATIONS_IN_QUEUE',
|
|
137
|
+
// 'CONVERSATION_IN_QUEUE',
|
|
138
|
+
// 'NO_CONVERSATION_IN_QUEUE',
|
|
138
139
|
'PINNED_PROJECT',
|
|
139
140
|
'CHANGE_PINNED_PROJECT',
|
|
140
141
|
"CHANGE_TO_YOUR_STATUS_TO_AVAILABLE",
|
|
@@ -311,6 +312,7 @@ export class ProjectItemComponent implements OnInit {
|
|
|
311
312
|
}
|
|
312
313
|
});
|
|
313
314
|
//not sound if unservedRequest is already chached and web-sk is closed and restart again
|
|
315
|
+
// this.logger.log('updateUnservedRequestCount::: count , unservedRequestCount ', count , this.unservedRequestCount)
|
|
314
316
|
if(count > this.unservedRequestCount ){
|
|
315
317
|
this.events.publish('unservedRequest:count', count)
|
|
316
318
|
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<div class="
|
|
1
|
+
<div id="presence-container">
|
|
2
|
+
<div class="status-icon-container" [class.mobile]="isMobile">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" [class.online]="online" height="15" width="15" viewBox="0 0 24 24" fill="#000000"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>
|
|
4
|
+
</div>
|
|
5
|
+
<!-- <div class="status-icon" [class.online]="online" [style.border-color]="borderColor"></div> -->
|
|
6
|
+
<div class="online-point">{{status}}</div>
|
|
7
|
+
</div>
|
|
@@ -1,24 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
#presence-container{
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.status-icon-container{
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 22px;
|
|
8
|
+
left: 30px;
|
|
9
|
+
background-color: white;
|
|
10
|
+
height: 17px;
|
|
11
|
+
width: 17px;
|
|
8
12
|
border-radius: 50%;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
|
|
17
|
+
&.mobile{
|
|
18
|
+
top: 36px;
|
|
19
|
+
left: 50px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
svg{
|
|
23
|
+
fill: #f44336;
|
|
24
|
+
|
|
25
|
+
&.online{
|
|
26
|
+
fill: #4caf50;
|
|
27
|
+
}
|
|
12
28
|
}
|
|
13
29
|
|
|
14
30
|
}
|
|
31
|
+
|
|
15
32
|
.online-point {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
color:
|
|
21
|
-
font-size:
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
line-height: 1.2rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
color: #779bbb;
|
|
38
|
+
font-size: 10px;
|
|
39
|
+
max-width: 90%;
|
|
40
|
+
margin-right: 5px;
|
|
24
41
|
}
|
|
@@ -17,11 +17,10 @@ import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance'
|
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
export class UserPresenceComponent implements OnInit, OnDestroy {
|
|
20
|
+
|
|
20
21
|
@Input() idUser: string;
|
|
22
|
+
@Input() isMobile: boolean;
|
|
21
23
|
@Input() translationMap: Map<string, string>;
|
|
22
|
-
@Input() fontColor: string;
|
|
23
|
-
@Input() borderColor: string;
|
|
24
|
-
|
|
25
24
|
|
|
26
25
|
public online = true;
|
|
27
26
|
public status = '';
|
|
@@ -47,9 +46,6 @@ export class UserPresenceComponent implements OnInit, OnDestroy {
|
|
|
47
46
|
|
|
48
47
|
/** */
|
|
49
48
|
initialize() {
|
|
50
|
-
if (this.translationMap) {
|
|
51
|
-
this.status = this.translationMap.get('LABEL_ACTIVE_NOW');
|
|
52
|
-
}
|
|
53
49
|
this.logger.log('[USER-PRESENCE-COMP] - initialize - this.translationMap', this.translationMap);
|
|
54
50
|
this.logger.log('[USER-PRESENCE-COMP] - initialize - this.status', this.status);
|
|
55
51
|
this.logger.log('[USER-PRESENCE-COMP] - initialize - idUser ->', this.idUser);
|
|
@@ -122,11 +118,11 @@ export class UserPresenceComponent implements OnInit, OnDestroy {
|
|
|
122
118
|
this.logger.log('[USER-PRESENCE-COMP] userIsOnLine - userId: ', userId, ' - isOnline: ', isOnline);
|
|
123
119
|
this.online = isOnline;
|
|
124
120
|
if (isOnline) {
|
|
125
|
-
this.status = this.translationMap.get('
|
|
121
|
+
this.status = this.translationMap.get('LABEL_ONLINE');
|
|
126
122
|
} else {
|
|
127
|
-
this.status = this.translationMap.get('
|
|
123
|
+
this.status = this.translationMap.get('LABEL_OFFLINE');
|
|
128
124
|
if (this.lastConnectionDate && this.lastConnectionDate.trim() !== '') {
|
|
129
|
-
this.status = this.lastConnectionDate
|
|
125
|
+
this.status = this.status + ' (' + this.lastConnectionDate + ')'
|
|
130
126
|
}
|
|
131
127
|
}
|
|
132
128
|
}
|
|
@@ -141,7 +137,7 @@ export class UserPresenceComponent implements OnInit, OnDestroy {
|
|
|
141
137
|
this.logger.log('[USER-PRESENCE-COMP] userLastConnection - lastConnectionDate', lastConnectionDate);
|
|
142
138
|
this.lastConnectionDate = lastConnectionDate;
|
|
143
139
|
if (this.online === false) {
|
|
144
|
-
this.status = this.lastConnectionDate
|
|
140
|
+
this.status = this.translationMap.get('LABEL_OFFLINE') + ' (' + this.lastConnectionDate + ')'
|
|
145
141
|
}
|
|
146
142
|
}
|
|
147
143
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
}
|
|
15
|
+
|
|
16
|
+
ion-content {
|
|
17
|
+
// overwrite inline styles
|
|
18
|
+
--offset-bottom: auto!important;
|
|
19
|
+
--overflow: hidden;
|
|
20
|
+
overflow: scroll;
|
|
21
|
+
&:not(.mobile){
|
|
22
|
+
background: var(--list-bkg-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&::-webkit-scrollbar {
|
|
26
|
+
width: 6px;
|
|
27
|
+
height: 8px;
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&::-webkit-scrollbar-track {
|
|
32
|
+
background: #f9f9f9;
|
|
33
|
+
}
|
|
34
|
+
&::-webkit-scrollbar-thumb {
|
|
35
|
+
background-color: #b9b9b9;
|
|
36
|
+
border-radius: 0px;
|
|
37
|
+
}
|
|
38
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
39
|
+
background-color: #727272;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -17,7 +17,9 @@ import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance'
|
|
|
17
17
|
styleUrls: ['./contacts-directory.page.scss'],
|
|
18
18
|
})
|
|
19
19
|
export class ContactsDirectoryPage implements OnInit {
|
|
20
|
+
|
|
20
21
|
@Input() token: string;
|
|
22
|
+
@Input() isMobile: boolean;
|
|
21
23
|
// @Input() user: string;
|
|
22
24
|
|
|
23
25
|
public contacts: Array<UserModel>;
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
<span *ngIf="conversationWith && loggedUser; then showConversation else showPlaceholder"></span>
|
|
2
2
|
<ng-template #showPlaceholder>
|
|
3
|
+
|
|
4
|
+
<ion-header no-border class="ion-no-border" [class.mobile]="isMobile">
|
|
5
|
+
<ion-toolbar [class.mobile]="isMobile">
|
|
6
|
+
|
|
7
|
+
</ion-toolbar>
|
|
8
|
+
</ion-header>
|
|
3
9
|
<!-- class="splash-page" -->
|
|
4
|
-
<ion-content padding>
|
|
10
|
+
<ion-content padding id="contentPlaceholder" [class.mobile]="isMobile">
|
|
5
11
|
<!-- <div padding class="image-splash-page"></div>
|
|
6
12
|
<div padding class="title-splash-page">
|
|
7
13
|
text new conversation + button
|
|
8
14
|
</div> -->
|
|
15
|
+
|
|
9
16
|
|
|
10
|
-
<ion-grid
|
|
11
|
-
<ion-row class="ion-justify-content-center ion-align-items-center" style="
|
|
17
|
+
<ion-grid class="grid_content" [class.mobile]="isMobile">
|
|
18
|
+
<ion-row class="row_content ion-justify-content-center ion-align-items-center" style="flex-direction: column">
|
|
12
19
|
<span *ngIf="isOnline === true && !showSpinner"
|
|
13
|
-
style="color: #92949c; font-size: 16px;line-height: 18px;
|
|
20
|
+
style="color: #92949c; font-size: 16px;line-height: 18px;">
|
|
14
21
|
<span *ngIf="conversation_count > 0 ">
|
|
15
22
|
{{'PleaseSelectChatToStartMessaging' | translate }}
|
|
16
23
|
</span>
|
|
17
24
|
<span *ngIf="conversation_count === 0" style="line-height: 1.2;color: #4b5258;
|
|
18
25
|
font-weight: 500;">
|
|
19
26
|
{{'ALL_CONVS_SERVED' | translate}}
|
|
20
|
-
|
|
21
27
|
</span>
|
|
22
28
|
|
|
23
29
|
</span>
|
|
@@ -37,15 +43,13 @@
|
|
|
37
43
|
[idLoggedUser]="loggedUser.uid"
|
|
38
44
|
[conversationUid]="conversationWith"
|
|
39
45
|
[conversationAvatar]="conversationAvatar"
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[conv_type]="conv_type"
|
|
43
|
-
(eventOpenCloseInfoConversation)="returnOpenCloseInfoConversation($event)">
|
|
46
|
+
[translationsMap]="translationsHeaderMap"
|
|
47
|
+
[conv_type]="conv_type">
|
|
44
48
|
</app-header-conversation-detail>
|
|
45
49
|
|
|
46
|
-
<ion-content id="conv-details">
|
|
47
|
-
<ion-grid class="grid_content">
|
|
48
|
-
<ion-row class="row_content">
|
|
50
|
+
<ion-content id="conv-details" [class.mobile]="isMobile">
|
|
51
|
+
<ion-grid class="grid_content" [class.mobile]="isMobile">
|
|
52
|
+
<ion-row class="row_content" [class.mobile]="isMobile">
|
|
49
53
|
<ion-col id="chatArea" [class.mobile]="isMobile" [class.open]="openInfoConversation"
|
|
50
54
|
[ngClass]="{'chat-area-apps-sidebar-wide': appsidebarIsWide === true}">
|
|
51
55
|
|
|
@@ -98,10 +102,15 @@
|
|
|
98
102
|
</ng-template>
|
|
99
103
|
|
|
100
104
|
<ng-template #content_messages>
|
|
101
|
-
<ion-content #ionContentChatArea appScrollbarTheme class="ionContentChatArea"
|
|
102
|
-
(
|
|
103
|
-
(
|
|
104
|
-
(
|
|
105
|
+
<ion-content #ionContentChatArea appScrollbarTheme class="ionContentChatArea"
|
|
106
|
+
(drop)="drop($event)"
|
|
107
|
+
(dragover)="allowDrop($event)"
|
|
108
|
+
(dragleave)="drag($event)"
|
|
109
|
+
[scrollEvents]="true"
|
|
110
|
+
(ionScrollStart)="logScrollStart($event)"
|
|
111
|
+
(ionScroll)="logScrolling($event)"
|
|
112
|
+
(ionScrollEnd)="logScrollEnd($event)"
|
|
113
|
+
[class.active]="true">
|
|
105
114
|
|
|
106
115
|
<!-- ----------------------------------------------------------- -->
|
|
107
116
|
<!-- DROPZONE -->
|
|
@@ -125,7 +134,12 @@
|
|
|
125
134
|
[senderId]="loggedUser.uid"
|
|
126
135
|
[baseLocation]="window?.location?.origin"
|
|
127
136
|
[areVisibleCAR]="areVisibleCAR"
|
|
128
|
-
[supportMode]= "supportMode"
|
|
137
|
+
[supportMode]= "supportMode"
|
|
138
|
+
[isMobile]="isMobile"
|
|
139
|
+
[isTypings]="isTypings"
|
|
140
|
+
[idUserTypingNow]="idUserTypingNow"
|
|
141
|
+
[nameUserTypingNow]="nameUserTypingNow"
|
|
142
|
+
[translationMap]="translationsContentMap"
|
|
129
143
|
[stylesMap]="styleMap"
|
|
130
144
|
(onBeforeMessageRender)="onBeforeMessageRenderFN($event)"
|
|
131
145
|
(onAfterMessageRender)="onAfterMessageRenderFN($event)"
|
|
@@ -133,7 +147,8 @@
|
|
|
133
147
|
(onScrollContent)="returnOnScrollContent($event)"
|
|
134
148
|
(onMenuOptionShow)="returnOnMenuOption($event)"
|
|
135
149
|
(onElementRendered)="onElementRenderedFN($event)"
|
|
136
|
-
(onAddUploadingBubble)="addUploadingBubbleEvent($event)"
|
|
150
|
+
(onAddUploadingBubble)="addUploadingBubbleEvent($event)"
|
|
151
|
+
(onOpenCloseInfoConversation)="onOpenCloseInfoConversation($event)">
|
|
137
152
|
</ion-conversation-detail>
|
|
138
153
|
|
|
139
154
|
</ion-content>
|
|
@@ -155,7 +170,8 @@
|
|
|
155
170
|
[conversationWith]="conversationWith"
|
|
156
171
|
[conversationWithFullname]="conversationWithFullname"
|
|
157
172
|
[currentString]="messageStr"
|
|
158
|
-
[
|
|
173
|
+
[stylesMap]="styleMap"
|
|
174
|
+
[translationMap]="translationsMap"
|
|
159
175
|
(onLoadedCannedResponses)="onLoadedCannedResponses($event)"
|
|
160
176
|
(onClickCanned)="replaceTagInMessage($event)"
|
|
161
177
|
(onClickAddCannedResponse)="presentCreateCannedResponseModal()">
|
|
@@ -211,9 +227,9 @@
|
|
|
211
227
|
[loggedUser]="loggedUser"
|
|
212
228
|
[conversationWith]="conversationWith"
|
|
213
229
|
[tagsCannedFilter]="tagsCannedFilter"
|
|
214
|
-
[translationMap]="
|
|
230
|
+
[translationMap]="translationsMap"
|
|
215
231
|
[fileUploadAccept]="appConfigProvider.getConfig().fileUploadAccept"
|
|
216
|
-
[isOpenInfoConversation]="
|
|
232
|
+
[isOpenInfoConversation]="openInfoConversation"
|
|
217
233
|
[dropEvent]="dropEvent"
|
|
218
234
|
[disableTextarea]="disableTextarea"
|
|
219
235
|
(eventChangeTextArea)="returnChangeTextArea($event)"
|
|
@@ -230,10 +246,11 @@
|
|
|
230
246
|
[ngClass]="{'info-convs-apps-sidebar-wide': appsidebarIsWide === true}">
|
|
231
247
|
<app-info-content
|
|
232
248
|
[openInfoConversation]="openInfoConversation"
|
|
233
|
-
[translationMap]="translationMap"
|
|
234
249
|
[loggedUser]="loggedUser"
|
|
235
250
|
[tenant]="tenant"
|
|
236
|
-
[groupDetail]="groupDetail"
|
|
251
|
+
[groupDetail]="groupDetail"
|
|
252
|
+
[isMobile]="isMobile"
|
|
253
|
+
[translationMap]="translationsMap">
|
|
237
254
|
</app-info-content>
|
|
238
255
|
</ion-col>
|
|
239
256
|
|