@chat21/chat21-ionic 3.0.78-rc.3 → 3.0.78
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 +2 -16
- package/package.json +1 -1
- package/src/app/app.component.scss +1 -1
- package/src/app/app.component.ts +2 -7
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +1 -8
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +2 -31
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +2 -69
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -15
- 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 +1 -3
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +2 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +34 -62
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +18 -58
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -14
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +37 -52
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +29 -57
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +24 -8
- package/src/app/components/ddp-header/ddp-header.component.html +1 -1
- package/src/app/components/ddp-header/ddp-header.component.scss +0 -4
- package/src/app/components/project-item/project-item.component.html +149 -98
- package/src/app/components/project-item/project-item.component.scss +32 -39
- package/src/app/components/project-item/project-item.component.ts +4 -5
- package/src/app/pages/conversation-detail/conversation-detail.page.html +10 -14
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +2 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +43 -156
- package/src/app/pages/conversations-list/conversations-list.page.html +2 -2
- package/src/app/pages/conversations-list/conversations-list.page.scss +2 -2
- package/src/app/pages/conversations-list/conversations-list.page.ts +0 -7
- package/src/assets/i18n/ar.json +265 -268
- package/src/assets/i18n/az.json +0 -3
- package/src/assets/i18n/de.json +0 -3
- package/src/assets/i18n/en.json +0 -3
- package/src/assets/i18n/es.json +0 -3
- package/src/assets/i18n/fr.json +0 -3
- package/src/assets/i18n/it.json +0 -3
- package/src/assets/i18n/kk.json +0 -3
- package/src/assets/i18n/pt.json +0 -3
- package/src/assets/i18n/ru.json +0 -3
- package/src/assets/i18n/sr.json +0 -3
- package/src/assets/i18n/sv.json +0 -3
- package/src/assets/i18n/tr.json +0 -3
- package/src/assets/i18n/uk.json +0 -3
- package/src/assets/i18n/uz.json +0 -3
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +9 -7
- package/src/chat21-core/utils/constants.ts +0 -4
- package/src/chat21-core/utils/user-typing/user-typing.component.html +5 -8
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +17 -87
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +94 -12
- package/src/chat21-core/utils/utils.ts +1 -5
- package/src/variables.scss +1 -7
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { TYPE_GROUP, TYPE_SUPPORT_GROUP } from './../../../../chat21-core/utils/constants';
|
|
2
|
-
import { TYPE_DIRECT } from 'src/chat21-core/utils/constants';
|
|
3
1
|
import { Component, EventEmitter, Input, IterableDiffers, KeyValueDiffers, OnInit, Output, SimpleChange } from '@angular/core';
|
|
4
2
|
import { ConversationModel } from 'src/chat21-core/models/conversation';
|
|
5
3
|
import { ImageRepoService } from 'src/chat21-core/providers/abstract/image-repo.service';
|
|
@@ -16,7 +14,6 @@ import { AppConfigProvider } from 'src/app/services/app-config';
|
|
|
16
14
|
import { DomSanitizer } from '@angular/platform-browser'
|
|
17
15
|
import { TiledeskAuthService } from 'src/chat21-core/providers/tiledesk/tiledesk-auth.service';
|
|
18
16
|
import { AlertController } from '@ionic/angular';
|
|
19
|
-
import { CustomTranslateService } from 'src/chat21-core/providers/custom-translate.service';
|
|
20
17
|
// import { LoggerService } from 'src/chat21-core/providers/abstract/logger.service';
|
|
21
18
|
// import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
|
|
22
19
|
|
|
@@ -38,8 +35,6 @@ export class IonListConversationsComponent extends ListConversationsComponent im
|
|
|
38
35
|
public currentYear: any;
|
|
39
36
|
public browserLang: string;
|
|
40
37
|
|
|
41
|
-
public translationsMap: Map<string, string> = new Map()
|
|
42
|
-
|
|
43
38
|
public PROJECT_FOR_PANEL: any;
|
|
44
39
|
public archive_btn_tooltip: string;
|
|
45
40
|
public resolve_btn_tooltip: string;
|
|
@@ -57,10 +52,6 @@ export class IonListConversationsComponent extends ListConversationsComponent im
|
|
|
57
52
|
'hideDelayAfterClick': 3000,
|
|
58
53
|
'hide-delay': 100
|
|
59
54
|
};
|
|
60
|
-
|
|
61
|
-
TYPE_DIRECT = TYPE_DIRECT;
|
|
62
|
-
TYPE_GROUP = TYPE_GROUP;
|
|
63
|
-
TYPE_SUPPORT_GROUP = TYPE_SUPPORT_GROUP;
|
|
64
55
|
/**
|
|
65
56
|
*
|
|
66
57
|
* @param iterableDiffers
|
|
@@ -72,7 +63,6 @@ export class IonListConversationsComponent extends ListConversationsComponent im
|
|
|
72
63
|
public kvDiffers: KeyValueDiffers,
|
|
73
64
|
public platform: Platform,
|
|
74
65
|
private translate: TranslateService,
|
|
75
|
-
private translateService: CustomTranslateService,
|
|
76
66
|
private networkService: NetworkService,
|
|
77
67
|
private appConfigProvider: AppConfigProvider,
|
|
78
68
|
private sanitizer: DomSanitizer,
|
|
@@ -83,6 +73,7 @@ export class IonListConversationsComponent extends ListConversationsComponent im
|
|
|
83
73
|
super(iterableDiffers, kvDiffers)
|
|
84
74
|
this.setMomentLocale();
|
|
85
75
|
|
|
76
|
+
|
|
86
77
|
// if (this.browserLang) {
|
|
87
78
|
|
|
88
79
|
// moment.locale(this.browserLang)
|
|
@@ -132,11 +123,16 @@ export class IonListConversationsComponent extends ListConversationsComponent im
|
|
|
132
123
|
'ALERT_TITLE',
|
|
133
124
|
'ActionNotAllowed',
|
|
134
125
|
'CLOSE_ALERT_CONFIRM_LABEL',
|
|
135
|
-
'YouAreNoLongerAmongTheTeammatesManagingThisConversation'
|
|
136
|
-
'GROUP_CHAT',
|
|
137
|
-
'DIRECT_CHAT'
|
|
126
|
+
'YouAreNoLongerAmongTheTeammatesManagingThisConversation'
|
|
138
127
|
]
|
|
139
|
-
this.
|
|
128
|
+
this.translate.get(['Resolve', 'Archive', 'ALERT_TITLE']).subscribe((translations: string) => {
|
|
129
|
+
this.resolve_btn_tooltip = translations['Resolve'];
|
|
130
|
+
this.archive_btn_tooltip = translations['Archive'];
|
|
131
|
+
this.alert_lbl = translations['ALERT_TITLE']
|
|
132
|
+
this.actionNotAllowed_lbl = translations['ActionNotAllowed']
|
|
133
|
+
this.ok_lbl = translations['CLOSE_ALERT_CONFIRM_LABEL']
|
|
134
|
+
this.youAreNoLongerAmongTheTeammatesManagingThisConversation_lbl = translations['YouAreNoLongerAmongTheTeammatesManagingThisConversation']
|
|
135
|
+
});
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
setMomentLocale() {
|
|
@@ -6,64 +6,46 @@
|
|
|
6
6
|
</ion-back-button>
|
|
7
7
|
</ion-buttons>
|
|
8
8
|
|
|
9
|
-
<ion-title>
|
|
9
|
+
<ion-title [class.info-open]="openInfoConversation || openInfoMessage">
|
|
10
10
|
|
|
11
|
-
<div *ngIf="conversationAvatar" class="avatar-and-typing-wpr"
|
|
11
|
+
<div *ngIf="conversationAvatar" class="avatar-and-typing-wpr" >
|
|
12
12
|
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '55px' : '' }" -->
|
|
13
|
-
<div class="avatar-container" style="cursor: pointer"
|
|
13
|
+
<div *ngIf="conversationAvatar" class="avatar-container" (click)="onOpenCloseInfoConversation()" style="cursor: pointer"
|
|
14
14
|
[ngClass]="{ 'avatar-container-ios': platformName === 'ios' }">
|
|
15
15
|
<app-avatar-profile
|
|
16
16
|
[itemAvatar]=conversationAvatar>
|
|
17
17
|
</app-avatar-profile>
|
|
18
18
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
|
|
30
|
-
<div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
|
|
31
|
-
<app-user-presence
|
|
32
|
-
[idUser]=conversationAvatar.conversation_with
|
|
33
|
-
[translationMap]=translationsMap
|
|
34
|
-
[borderColor]=borderColor
|
|
35
|
-
[fontColor]=fontColor>
|
|
36
|
-
</app-user-presence>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<div class="subtitle-info">
|
|
40
|
-
<div class="conversation_project">
|
|
41
|
-
<!-- DIRECT CONV -->
|
|
42
|
-
<div *ngIf="isDirect">
|
|
43
|
-
<svg xmlns="http://www.w3.org/2000/svg" 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>
|
|
44
|
-
<span class="truncate">{{translationsMap.get('DIRECT_CHAT')}}</span>
|
|
45
|
-
</div>
|
|
46
|
-
<!-- GROUP CONV -->
|
|
47
|
-
<div *ngIf="conversationUid?.startsWith(TYPE_GROUP)">
|
|
48
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 24 24" fill="#000000"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>
|
|
49
|
-
<span class="truncate">{{translationsMap.get('GROUP_CHAT')}}</span>
|
|
50
|
-
</div>
|
|
51
|
-
<!-- SUPPORT-GROUP CONV -->
|
|
52
|
-
<div *ngIf="conversationUid?.startsWith(TYPE_SUPPORT_GROUP)">
|
|
53
|
-
<svg xmlns="http://www.w3.org/2000/svg" data-v-78d18411="" width="15" height="15" fill="none" viewBox="0 0 24 24" class="inbox-icon"><path d="M22.002 12C22.002 6.477 17.524 2 12 2 6.476 1.999 2 6.477 2 12.001c0 5.186 3.947 9.45 9.001 9.952V20.11c-.778-.612-1.478-1.905-1.939-3.61h1.94V15H8.737a18.969 18.969 0 0 1-.135-5h6.794c.068.64.105 1.31.105 2h1.5c0-.684-.033-1.353-.095-2h3.358c.154.64.237 1.31.237 2h1.5ZM4.786 16.5h2.722l.102.396c.317 1.17.748 2.195 1.27 3.015a8.532 8.532 0 0 1-4.094-3.41ZM3.736 10h3.358a20.847 20.847 0 0 0-.095 2c0 1.043.075 2.051.217 3H4.043a8.483 8.483 0 0 1-.544-3c0-.682.08-1.347.232-1.983L3.736 10Zm5.122-5.902.023-.008C8.16 5.222 7.611 6.748 7.298 8.5H4.25c.905-2 2.56-3.587 4.608-4.402Zm3.026-.594L12 3.5l.126.006c1.262.126 2.48 2.125 3.045 4.995H8.83c.568-2.878 1.79-4.88 3.055-4.996Zm3.343.76-.107-.174.291.121a8.533 8.533 0 0 1 4.339 4.29h-3.048c-.298-1.665-.806-3.125-1.475-4.237Z M12 19a1 1 0 0 0 1 1h3v2h-.5a.5.5 0 1 0 0 1h4a.5.5 0 0 0 0-1H19v-2h3a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1v5Z" fill="currentColor"/></svg>
|
|
54
|
-
<span *ngIf="conversationAvatar?.project_name" class="truncate">{{conversationAvatar?.project_name}}</span>
|
|
55
|
-
<span *ngIf="!conversationAvatar?.project_name" class="truncate">{{conversationAvatar?.projectId}}</span>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
19
|
+
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
|
|
20
|
+
<div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
|
|
21
|
+
<app-user-presence
|
|
22
|
+
[idUser]=conversationAvatar.conversation_with
|
|
23
|
+
[translationMap]=translationMap
|
|
24
|
+
[borderColor]=borderColor
|
|
25
|
+
[fontColor]=fontColor>
|
|
26
|
+
</app-user-presence>
|
|
27
|
+
</div>
|
|
58
28
|
|
|
59
|
-
|
|
29
|
+
<div *ngIf="conversationAvatar" class="user-typing">
|
|
30
|
+
<app-user-typing
|
|
31
|
+
[idConversation]=conversationAvatar.uid
|
|
32
|
+
[idCurrentUser]=idLoggedUser
|
|
33
|
+
[isDirect]=isDirect
|
|
34
|
+
[translationMap]=translationMap
|
|
35
|
+
[color]=fontColor
|
|
36
|
+
[membersConversation]=membersConversation>
|
|
37
|
+
</app-user-typing>
|
|
60
38
|
</div>
|
|
61
|
-
|
|
62
39
|
|
|
63
|
-
|
|
40
|
+
</div>
|
|
41
|
+
<!-- [ngClass] = "{ 'tile-info-with-ios': platformName === 'ios' ? '82px' : ''82px'' }" -->
|
|
42
|
+
<!-- (click)="onOpenCloseInfoConversation()" -->
|
|
43
|
+
<div *ngIf="conversationAvatar" class="tile-info-with"
|
|
44
|
+
[ngClass]="{ 'tile-info-with-ios': platformName === 'ios' }">
|
|
45
|
+
<span class="tile-username">{{ conversationAvatar.conversation_with_fullname | truncate:50 }} </span>
|
|
46
|
+
<!-- <span class="tile-username">{{ conversation_with_fullname }} </span> -->
|
|
64
47
|
|
|
65
48
|
</div>
|
|
66
|
-
|
|
67
49
|
|
|
68
50
|
<!-- <div *ngIf="conversationWithFullname" class="tile-info-with" (click)="onOpenCloseInfoConversation()">
|
|
69
51
|
<span class="tile-username">{{ conversationWithFullname }} </span>
|
|
@@ -79,19 +61,22 @@
|
|
|
79
61
|
</ion-button> -->
|
|
80
62
|
|
|
81
63
|
<ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" color="primary" size="small"
|
|
82
|
-
|
|
64
|
+
(click)="closeConversation()" [ngClass]="{'resolve-conv-margin-right': !isMobile}" [disabled]="conv_closed === true">
|
|
83
65
|
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
84
66
|
<ion-icon name="archive-outline"></ion-icon>
|
|
85
67
|
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
86
68
|
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Resolve' | translate}} </span>
|
|
87
69
|
</ion-button>
|
|
88
70
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
71
|
+
<ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
72
|
+
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
73
|
+
<ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
|
|
74
|
+
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
75
|
+
|
|
76
|
+
</ion-button>
|
|
77
|
+
<ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
93
78
|
<ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
|
|
94
|
-
</ion-button>
|
|
79
|
+
</ion-button>
|
|
95
80
|
|
|
96
81
|
</ion-buttons>
|
|
97
82
|
|
|
@@ -5,7 +5,7 @@ ion-header {
|
|
|
5
5
|
border-color: var(--light-gray);
|
|
6
6
|
border-bottom-width: thin;
|
|
7
7
|
ion-toolbar{
|
|
8
|
-
height:
|
|
8
|
+
height: 60px;
|
|
9
9
|
.flex-container{
|
|
10
10
|
display: flex;
|
|
11
11
|
}
|
|
@@ -27,7 +27,7 @@ ion-header {
|
|
|
27
27
|
text-align: left;
|
|
28
28
|
padding-inline: unset;
|
|
29
29
|
margin: 0px 10px;
|
|
30
|
-
|
|
30
|
+
height: 40px;
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
ion-avatar {
|
|
@@ -73,9 +73,12 @@ ion-header {
|
|
|
73
73
|
// display: inline-block;
|
|
74
74
|
// vertical-align: middle;
|
|
75
75
|
// margin: -6px 0px 0 6px;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
position: absolute;
|
|
77
|
+
margin: auto 0;
|
|
78
|
+
height: 100%;
|
|
79
|
+
top: 0;
|
|
80
|
+
left: 50px;
|
|
81
|
+
vertical-align: middle;
|
|
79
82
|
// cursor: pointer;
|
|
80
83
|
}
|
|
81
84
|
.tile-point {
|
|
@@ -89,12 +92,14 @@ ion-header {
|
|
|
89
92
|
}
|
|
90
93
|
.tile-username {
|
|
91
94
|
display: inline-block;
|
|
92
|
-
font-size:
|
|
95
|
+
font-size: 15px;
|
|
96
|
+
color: var(--black);
|
|
93
97
|
margin: 0;
|
|
94
98
|
padding: 0;
|
|
95
99
|
|
|
96
|
-
color: #
|
|
97
|
-
font-
|
|
100
|
+
color: #3c4858;
|
|
101
|
+
font-family: "Google Sans",sans-serif!important;
|
|
102
|
+
font-weight: 600;
|
|
98
103
|
-webkit-font-smoothing: antialiased;
|
|
99
104
|
text-rendering: optimizeLegibility;
|
|
100
105
|
-webkit-text-size-adjust: none;
|
|
@@ -128,25 +133,18 @@ ion-header {
|
|
|
128
133
|
}
|
|
129
134
|
}
|
|
130
135
|
|
|
131
|
-
.avatar-and-typing-wpr{
|
|
132
|
-
display: flex;
|
|
133
|
-
&.mobile{
|
|
134
|
-
margin-left: 25px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
136
|
.avatar-container {
|
|
139
137
|
background-color: #fff;
|
|
140
138
|
color: #fff;
|
|
141
139
|
text-align: center;
|
|
142
140
|
width: 40px;
|
|
143
141
|
height: 40px;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
// left: 20px;
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0;
|
|
147
144
|
border-radius: 50%;
|
|
148
145
|
padding: 0px;
|
|
149
|
-
|
|
146
|
+
transform: translateX(-50%);
|
|
147
|
+
left: 20px;
|
|
150
148
|
|
|
151
149
|
border-color: #fff;
|
|
152
150
|
border-style: solid;
|
|
@@ -154,14 +152,6 @@ ion-header {
|
|
|
154
152
|
line-height: 40px;
|
|
155
153
|
display: inline-block;
|
|
156
154
|
}
|
|
157
|
-
|
|
158
|
-
.info-container{
|
|
159
|
-
display: flex;
|
|
160
|
-
flex-direction: column;
|
|
161
|
-
justify-content: center;
|
|
162
|
-
margin-left: 12px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
155
|
.user-presence {
|
|
166
156
|
position: absolute;
|
|
167
157
|
bottom: 0;
|
|
@@ -169,38 +159,16 @@ ion-header {
|
|
|
169
159
|
left: 30px;
|
|
170
160
|
width: 100px;
|
|
171
161
|
}
|
|
172
|
-
.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
// height: 16px;
|
|
181
|
-
// width: 140px;
|
|
182
|
-
font-size: 12px;
|
|
183
|
-
.conversation_project{
|
|
184
|
-
display: inline-flex;
|
|
185
|
-
align-items: center;
|
|
186
|
-
line-height: 1.2rem;
|
|
187
|
-
font-weight: 500;
|
|
188
|
-
color: #779bbb;
|
|
189
|
-
font-size: 10px;
|
|
190
|
-
max-width: 90%;
|
|
191
|
-
margin-right: 5px;
|
|
192
|
-
svg {
|
|
193
|
-
fill:#779bbb;
|
|
194
|
-
vertical-align: sub;
|
|
195
|
-
}
|
|
196
|
-
span{
|
|
197
|
-
padding-left: 5px
|
|
198
|
-
}
|
|
199
|
-
}
|
|
162
|
+
.user-typing {
|
|
163
|
+
position: absolute;
|
|
164
|
+
left: 50px;
|
|
165
|
+
bottom: -3px;
|
|
166
|
+
padding: 0;
|
|
167
|
+
margin: 0;
|
|
168
|
+
height: 16px;
|
|
169
|
+
width: 140px;
|
|
200
170
|
}
|
|
201
171
|
|
|
202
|
-
|
|
203
|
-
|
|
204
172
|
.tile-info-with-ios {
|
|
205
173
|
left: 82px !important;
|
|
206
174
|
top: 10px!important;
|
|
@@ -214,3 +182,7 @@ ion-header {
|
|
|
214
182
|
left: 55px;
|
|
215
183
|
top: 10px;
|
|
216
184
|
}
|
|
185
|
+
|
|
186
|
+
.resolve-conv-margin-right {
|
|
187
|
+
margin-right: 52px;
|
|
188
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TYPE_GROUP } from './../../../../chat21-core/utils/constants';
|
|
2
1
|
import {
|
|
3
2
|
Component,
|
|
4
3
|
OnInit,
|
|
@@ -23,7 +22,7 @@ import { ModalController } from '@ionic/angular'
|
|
|
23
22
|
import { EventsService } from 'src/app/services/events-service'
|
|
24
23
|
import { CreateTicketPage } from 'src/app/pages/create-ticket/create-ticket.page'
|
|
25
24
|
import { TiledeskService } from 'src/app/services/tiledesk/tiledesk.service'
|
|
26
|
-
import { TYPE_DIRECT
|
|
25
|
+
import { TYPE_DIRECT } from 'src/chat21-core/utils/constants'
|
|
27
26
|
|
|
28
27
|
@Component({
|
|
29
28
|
selector: 'app-header-conversation-detail',
|
|
@@ -35,22 +34,24 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
35
34
|
@Input() idLoggedUser: string
|
|
36
35
|
@Input() conversationUid: string
|
|
37
36
|
@Input() conv_type: string
|
|
37
|
+
@Input() isOpenInfoConversation: boolean = true
|
|
38
38
|
@Input() isMobile: boolean
|
|
39
|
-
@Input()
|
|
39
|
+
@Input() translationMap: Map<string, string>
|
|
40
|
+
@Output() eventOpenCloseInfoConversation = new EventEmitter<boolean>()
|
|
40
41
|
conversationWithFullname: string
|
|
41
42
|
openInfoConversation = true
|
|
42
|
-
|
|
43
|
+
openInfoMessage = true
|
|
44
|
+
|
|
43
45
|
isDirect = false
|
|
46
|
+
isTyping = false
|
|
44
47
|
borderColor = '#ffffff'
|
|
45
48
|
fontColor = '#949494'
|
|
49
|
+
membersConversation = ['SYSTEM']
|
|
46
50
|
platformName: string
|
|
47
51
|
conv_closed: boolean = false;
|
|
48
52
|
IS_ON_IOS_MOBILE_DEVICE: boolean
|
|
49
53
|
private logger: LoggerService = LoggerInstance.getInstance()
|
|
50
54
|
|
|
51
|
-
TYPE_SUPPORT_GROUP = TYPE_SUPPORT_GROUP
|
|
52
|
-
TYPE_GROUP = TYPE_GROUP
|
|
53
|
-
|
|
54
55
|
constructor(
|
|
55
56
|
public imageRepoService: ImageRepoService,
|
|
56
57
|
private route: ActivatedRoute,
|
|
@@ -90,7 +91,8 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
90
91
|
this.logger.log('[CONVS-DETAIL][HEADER] - (ngOnChanges) - conversationAvatar', this.conversationAvatar)
|
|
91
92
|
if (this.conversationAvatar) {
|
|
92
93
|
this.conversationAvatar.imageurl = this.imageRepoService.getImagePhotoUrl(this.conversationAvatar.uid)
|
|
93
|
-
}
|
|
94
|
+
}
|
|
95
|
+
this.openInfoConversation = this.isOpenInfoConversation
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
// ----------------------------------------------------
|
|
@@ -100,6 +102,8 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
100
102
|
this.getPlatformName()
|
|
101
103
|
if ( this.conversationAvatar && this.conversationAvatar.channelType === TYPE_DIRECT ) {
|
|
102
104
|
this.isDirect = true
|
|
105
|
+
} else if (this.idLoggedUser) {
|
|
106
|
+
this.membersConversation.push(this.idLoggedUser)
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
|
|
@@ -129,6 +133,18 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
129
133
|
});
|
|
130
134
|
}
|
|
131
135
|
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
onOpenCloseInfoConversation() {
|
|
139
|
+
this.openInfoMessage = false
|
|
140
|
+
this.openInfoConversation = !this.openInfoConversation
|
|
141
|
+
this.logger.log(
|
|
142
|
+
'[CONVS-DETAIL][HEADER] - onOpenCloseInfoConversation - openInfoConversation ',
|
|
143
|
+
this.openInfoConversation,
|
|
144
|
+
)
|
|
145
|
+
this.eventOpenCloseInfoConversation.emit(this.openInfoConversation)
|
|
146
|
+
}
|
|
147
|
+
|
|
132
148
|
/** */
|
|
133
149
|
pushPage(event) { }
|
|
134
150
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<ion-toolbar [ngClass]="{'bottom-border-on-mobile':IS_ON_MOBILE_DEVICE === true }">
|
|
1
|
+
<ion-toolbar style="height:60px" [ngClass]="{'bottom-border-on-mobile':IS_ON_MOBILE_DEVICE === true }">
|
|
2
2
|
|
|
3
3
|
<ion-buttons *ngIf="IS_ON_MOBILE_DEVICE === true || supportMode === false" slot="start" style="height:60px">
|
|
4
4
|
<ion-button ion-button icon-only fill="clear" (click)="onOpenProfileInfo($event)">
|