@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
|
@@ -94,23 +94,30 @@
|
|
|
94
94
|
width: 100%;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
ion-input {
|
|
97
|
+
ion-input, ion-textarea {
|
|
98
98
|
--padding-bottom: 0px;
|
|
99
99
|
--padding-top: 0px;
|
|
100
100
|
&.text{
|
|
101
101
|
font-style: italic;
|
|
102
|
+
margin-top: 2px;
|
|
102
103
|
}
|
|
103
104
|
&.title {
|
|
104
105
|
font-weight: 500;
|
|
105
106
|
}
|
|
107
|
+
|
|
106
108
|
&.readonly{
|
|
107
109
|
cursor: pointer;
|
|
108
110
|
pointer-events: none;
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
|
-
.native-input[disabled] {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
// .native-input[disabled] {
|
|
114
|
+
// opacity: 10 !important;
|
|
115
|
+
// cursor: pointer;
|
|
116
|
+
// }
|
|
117
|
+
// .native-textarea[disabled] {
|
|
118
|
+
// opacity: 10 !important;
|
|
119
|
+
// cursor: pointer;
|
|
120
|
+
// }
|
|
114
121
|
ion-icon {
|
|
115
122
|
zoom: 0.7;
|
|
116
123
|
}
|
|
@@ -183,7 +190,7 @@ ion-item {
|
|
|
183
190
|
width: 15px;
|
|
184
191
|
height: 15px;
|
|
185
192
|
border-radius: 50%;
|
|
186
|
-
background-color:
|
|
193
|
+
background-color: var(--basic-blue);
|
|
187
194
|
animation: move 500ms linear 0ms infinite;
|
|
188
195
|
margin-right: 30px;
|
|
189
196
|
|
|
@@ -202,13 +209,14 @@ ion-item {
|
|
|
202
209
|
animation: grow 500ms linear 0s infinite reverse;
|
|
203
210
|
}
|
|
204
211
|
}
|
|
212
|
+
|
|
205
213
|
}
|
|
206
214
|
|
|
207
215
|
.spinner {
|
|
208
216
|
margin: auto;
|
|
209
217
|
border: 8px solid #EAF0F6;
|
|
210
218
|
border-radius: 50%;
|
|
211
|
-
border-top: 8px solid
|
|
219
|
+
border-top: 8px solid var(--basic-blue);
|
|
212
220
|
width: 50px;
|
|
213
221
|
height: 50px;
|
|
214
222
|
animation: spinner 1s linear infinite;
|
|
@@ -219,7 +227,6 @@ ion-item {
|
|
|
219
227
|
100% { transform: rotate(360deg); }
|
|
220
228
|
}
|
|
221
229
|
|
|
222
|
-
|
|
223
230
|
.label{
|
|
224
231
|
text-align: center;
|
|
225
232
|
margin-top: 10px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppStorageService } from 'src/chat21-core/providers/abstract/app-storage.service';
|
|
2
2
|
import { Component, Input, OnInit, SimpleChange, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';
|
|
3
|
-
import { CreateCannedResponsePage } from 'src/app/
|
|
3
|
+
import { CreateCannedResponsePage } from 'src/app/modals/create-canned-response/create-canned-response.page';
|
|
4
4
|
import { CannedResponsesService } from 'src/app/services/canned-responses/canned-responses.service';
|
|
5
5
|
import { TiledeskService } from 'src/app/services/tiledesk/tiledesk.service';
|
|
6
6
|
import { UserModel } from 'src/chat21-core/models/user';
|
|
@@ -20,6 +20,7 @@ export class CannedResponseComponent implements OnInit {
|
|
|
20
20
|
@Input() conversationWith: string;
|
|
21
21
|
@Input() conversationWithFullname: string;
|
|
22
22
|
@Input() currentString: string;
|
|
23
|
+
@Input() stylesMap: Map<string, string>;
|
|
23
24
|
@Input() translationMap: Map<string, string>;
|
|
24
25
|
@Output() onLoadedCannedResponses = new EventEmitter<[any]>();
|
|
25
26
|
@Output() onClickCanned = new EventEmitter<any>();
|
|
@@ -194,7 +195,6 @@ export class CannedResponseComponent implements OnInit {
|
|
|
194
195
|
// this.logger.log('[CANNED] filterItems tagsCannedClone ', items, ' searchTerm: ', searchTerm)
|
|
195
196
|
//this.logger.log("filterItems::: ",searchTerm);
|
|
196
197
|
return items.filter((item) => {
|
|
197
|
-
//this.logger.log("filterItems::: ", item.title.toString().toLowerCase());
|
|
198
198
|
// this.logger.log('[CANNED] filtered tagsCannedClone item ', item)
|
|
199
199
|
return item.title.toString().toLowerCase().indexOf(searchTerm.toString().toLowerCase()) > -1
|
|
200
200
|
})
|
|
@@ -268,7 +268,7 @@ export class CannedResponseComponent implements OnInit {
|
|
|
268
268
|
|
|
269
269
|
@HostListener('document:keydown', ['$event'])
|
|
270
270
|
handleKeyboardEvent(event: KeyboardEvent) {
|
|
271
|
-
this.logger.log("CONVERSATION-DETAIL handleKeyboardEvent event.key ", event);
|
|
271
|
+
// this.logger.log("CONVERSATION-DETAIL handleKeyboardEvent event.key ", event);
|
|
272
272
|
|
|
273
273
|
if (this.tagsCannedFilter.length > 0) {
|
|
274
274
|
if (event.key === 'ArrowDown') {
|
|
@@ -288,7 +288,8 @@ export class CannedResponseComponent implements OnInit {
|
|
|
288
288
|
|
|
289
289
|
// set the focus on current canned
|
|
290
290
|
setTimeout(() => {
|
|
291
|
-
this.el.nativeElement.querySelector('.canned-list').scrollTop = this.arrowkeyLocation * 59 //
|
|
291
|
+
this.el.nativeElement.querySelector('.canned-list').scrollTop = this.arrowkeyLocation * 59 // 59px is the height of the single element
|
|
292
|
+
// this.el.nativeElement.querySelector('#canned-item_'+this.arrowkeyLocation).scrollIntoView({ behavior: 'smooth' })
|
|
292
293
|
}, 0);
|
|
293
294
|
|
|
294
295
|
if (event.key === 'Enter') {
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
<ion-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</ion-item>
|
|
2
|
+
<ion-searchbar id="contacts-searchbar" debounce="500" (ionInput)="onSearchInput($event)"></ion-searchbar>
|
|
3
|
+
|
|
4
|
+
<ion-item button="true" lines="none" class="ion-no-padding" *ngFor="let user of contacts" (click)="goToChat(user)">
|
|
5
|
+
<div tabindex="0"></div>
|
|
6
|
+
<!-- <div [class.selected]="user.uid === uidUserSelected"></div> [style.background-color]="user.color"-->
|
|
7
|
+
<ion-avatar slot="start">
|
|
8
|
+
<div #avatarPlaceholder class="avatar-placeholder" [ngStyle]="{'background': 'linear-gradient(rgb(255,255,255) -125%,' + user.color + ')'}" [innerHTML]="user.avatar"></div>
|
|
9
|
+
<div *ngIf="user.imageurl" #avatarImage class="avatar-profile" [style.background-image]="'url(' + user.imageurl + ')'"></div>
|
|
10
|
+
<!-- <div *ngIf="getImageAvatar(conversation.sender)" #avatarImage class="avatar-profile" [style.background-image]="'url(' + getImageAvatar(conversation.sender) + ')'"></div> -->
|
|
11
|
+
<div class="user-presence">
|
|
12
|
+
<app-presence
|
|
13
|
+
[isOnline]="user.online">
|
|
14
|
+
</app-presence>
|
|
15
|
+
</div>
|
|
16
|
+
</ion-avatar>
|
|
17
|
+
|
|
18
|
+
<ion-label>
|
|
19
|
+
<h2>{{ user.fullname }}</h2>
|
|
20
|
+
<!-- <p>{{ user.uid }}</p> -->
|
|
21
|
+
</ion-label>
|
|
22
|
+
|
|
23
|
+
</ion-item>
|
|
26
24
|
|
|
27
|
-
</ion-list>
|
|
28
|
-
</ion-content>
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
ion-item {
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
height: 64px;
|
|
4
|
+
--min-height: 64px;
|
|
4
5
|
position: relative;
|
|
5
6
|
display: flex;
|
|
6
7
|
text-decoration: none;
|
|
7
|
-
|
|
8
|
-
padding-right: 8px;
|
|
8
|
+
margin: 4px 5px;
|
|
9
9
|
--padding-start: 0;
|
|
10
10
|
--inner-padding-end: 0;
|
|
11
|
+
--background: transparent;
|
|
12
|
+
--background-hover: #000000 !important;
|
|
13
|
+
border-radius: var(--border-radius-item);
|
|
14
|
+
|
|
11
15
|
.selected {
|
|
12
|
-
border-radius: 10px;
|
|
13
|
-
padding-left: 8px;
|
|
14
|
-
padding-right: 8px;
|
|
15
16
|
position: absolute;
|
|
16
17
|
width: 100%;
|
|
17
18
|
height: 100%;
|
|
18
19
|
z-index:-1;
|
|
19
|
-
background
|
|
20
|
+
background: var(--list-bkg-color-selected);
|
|
21
|
+
border-right: 4px solid var(--basic-blue);
|
|
20
22
|
}
|
|
21
23
|
ion-avatar {
|
|
22
24
|
position: relative;
|
|
@@ -1,51 +1,73 @@
|
|
|
1
|
-
<ion-header no-border class="ion-no-border">
|
|
2
|
-
<ion-toolbar>
|
|
1
|
+
<ion-header no-border class="ion-no-border" [class.mobile]="isMobile">
|
|
2
|
+
<ion-toolbar [class.mobile]="isMobile">
|
|
3
3
|
<ion-buttons slot="start" style="height:60px" *ngIf="isMobile">
|
|
4
4
|
<!-- (click)="pushPage('conversations-list')" defaultHref="/conversations-list" -->
|
|
5
5
|
<ion-back-button style="display: block;" text="" (click)="goBackToConversationList()">
|
|
6
6
|
</ion-back-button>
|
|
7
7
|
</ion-buttons>
|
|
8
8
|
|
|
9
|
-
<ion-title
|
|
9
|
+
<ion-title>
|
|
10
10
|
|
|
11
|
-
<div *ngIf="conversationAvatar" class="avatar-and-typing-wpr" >
|
|
11
|
+
<div *ngIf="conversationAvatar" class="avatar-and-typing-wpr" [ngClass]="{'mobile': isMobile}">
|
|
12
12
|
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '55px' : '' }" -->
|
|
13
|
-
<div
|
|
14
|
-
[ngClass]="{ 'avatar-container-ios': platformName === 'ios' }">
|
|
13
|
+
<div class="avatar-container" [ngClass]="{ 'avatar-container-ios': platformName === 'ios' }">
|
|
15
14
|
<app-avatar-profile
|
|
16
15
|
[itemAvatar]=conversationAvatar>
|
|
17
16
|
</app-avatar-profile>
|
|
18
17
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
<div class="info-container">
|
|
19
|
+
|
|
20
|
+
<!-- [ngClass] = "{ 'tile-info-with-ios': platformName === 'ios' ? '82px' : ''82px'' }" -->
|
|
21
|
+
<!-- (click)="onOpenCloseInfoConversation()" -->
|
|
22
|
+
<div class="tile-info-with"
|
|
23
|
+
[ngClass]="{ 'tile-info-with-ios': platformName === 'ios' }">
|
|
24
|
+
<span class="tile-username truncate">{{ conversationAvatar.conversation_with_fullname}} </span>
|
|
25
|
+
<!-- <span class="tile-username">{{ conversation_with_fullname }} </span> -->
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
|
|
29
|
+
<!-- <div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
|
|
30
|
+
<app-user-presence
|
|
31
|
+
[idUser]=conversationAvatar.conversation_with
|
|
32
|
+
[translationMap]=translationsMap
|
|
33
|
+
[borderColor]=borderColor
|
|
34
|
+
[fontColor]=fontColor>
|
|
35
|
+
</app-user-presence>
|
|
36
|
+
</div> -->
|
|
37
|
+
|
|
38
|
+
<div class="subtitle-info">
|
|
39
|
+
<div class="conversation_project">
|
|
40
|
+
<!-- DIRECT CONV -->
|
|
41
|
+
<div *ngIf="isDirect">
|
|
42
|
+
<app-user-presence
|
|
43
|
+
[idUser]="conversationAvatar.conversation_with"
|
|
44
|
+
[isMobile]="isMobile"
|
|
45
|
+
[translationMap]="translationsMap">
|
|
46
|
+
</app-user-presence>
|
|
47
|
+
<!-- <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>
|
|
48
|
+
<span class="truncate">{{translationsMap.get('DIRECT_CHAT')}}</span> -->
|
|
49
|
+
</div>
|
|
50
|
+
<!-- GROUP CONV -->
|
|
51
|
+
<div *ngIf="conversationUid?.startsWith(TYPE_GROUP)">
|
|
52
|
+
<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>
|
|
53
|
+
<span class="truncate">{{translationsMap.get('GROUP_CHAT')}}</span>
|
|
54
|
+
</div>
|
|
55
|
+
<!-- SUPPORT-GROUP CONV -->
|
|
56
|
+
<div *ngIf="conversationUid?.startsWith(TYPE_SUPPORT_GROUP)">
|
|
57
|
+
<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>
|
|
58
|
+
<span *ngIf="conversationAvatar?.project_name" class="truncate">{{conversationAvatar?.project_name}}</span>
|
|
59
|
+
<span *ngIf="!conversationAvatar?.project_name" class="truncate">{{conversationAvatar?.projectId}}</span>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
28
62
|
|
|
29
|
-
|
|
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>
|
|
63
|
+
</div>
|
|
38
64
|
</div>
|
|
65
|
+
|
|
39
66
|
|
|
40
|
-
|
|
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> -->
|
|
67
|
+
|
|
47
68
|
|
|
48
69
|
</div>
|
|
70
|
+
|
|
49
71
|
|
|
50
72
|
<!-- <div *ngIf="conversationWithFullname" class="tile-info-with" (click)="onOpenCloseInfoConversation()">
|
|
51
73
|
<span class="tile-username">{{ conversationWithFullname }} </span>
|
|
@@ -53,32 +75,27 @@
|
|
|
53
75
|
|
|
54
76
|
</ion-title>
|
|
55
77
|
<!-- openInfoConversation {{openInfoConversation}} -->
|
|
56
|
-
<ion-buttons slot="end">
|
|
78
|
+
<!-- <ion-buttons slot="end"> -->
|
|
57
79
|
|
|
58
80
|
<!-- <ion-button ion-button fill="clear" color="primary" size="small" (click)="presentCreateTicketModal()" [ngClass]="{'resolve-conv-margin-right': !isMobile}">
|
|
59
81
|
<ion-icon name="ticket-outline"></ion-icon>
|
|
60
82
|
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Crea ticket' | translate}} </span>
|
|
61
83
|
</ion-button> -->
|
|
62
84
|
|
|
63
|
-
<ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear"
|
|
64
|
-
|
|
65
|
-
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
85
|
+
<!-- <ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" size="small"
|
|
86
|
+
(click)="closeConversation()" [disabled]="conv_closed === true">
|
|
66
87
|
<ion-icon name="archive-outline"></ion-icon>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</ion-button>
|
|
70
|
-
|
|
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> -->
|
|
88
|
+
<span style="text-transform: capitalize; margin-left: 5px;"> {{translationsMap?.get('Resolve')}} </span>
|
|
89
|
+
</ion-button> -->
|
|
75
90
|
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
<!-- <ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
92
|
+
<ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
|
|
93
|
+
</ion-button> -->
|
|
94
|
+
<!-- <ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
78
95
|
<ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
|
|
79
|
-
</ion-button>
|
|
96
|
+
</ion-button> -->
|
|
80
97
|
|
|
81
|
-
</ion-buttons>
|
|
98
|
+
<!-- </ion-buttons> -->
|
|
82
99
|
|
|
83
100
|
</ion-toolbar>
|
|
84
101
|
</ion-header>
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
ion-header {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
border: none;
|
|
4
|
+
&.mobile{
|
|
5
|
+
--ion-background-color: #fff;
|
|
6
|
+
border-bottom-style: solid;
|
|
7
|
+
border-color: var(--light-gray);
|
|
8
|
+
border-bottom-width: thin;
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
ion-toolbar{
|
|
8
|
-
height:
|
|
12
|
+
height: var(--header-height);
|
|
13
|
+
&:not(.mobile){
|
|
14
|
+
--background: var(--list-bkg-color);
|
|
15
|
+
}
|
|
9
16
|
.flex-container{
|
|
10
17
|
display: flex;
|
|
11
18
|
}
|
|
@@ -27,7 +34,7 @@ ion-header {
|
|
|
27
34
|
text-align: left;
|
|
28
35
|
padding-inline: unset;
|
|
29
36
|
margin: 0px 10px;
|
|
30
|
-
height: 40px;
|
|
37
|
+
// height: 40px;
|
|
31
38
|
width: 100%;
|
|
32
39
|
}
|
|
33
40
|
ion-avatar {
|
|
@@ -69,17 +76,27 @@ ion-header {
|
|
|
69
76
|
}
|
|
70
77
|
}
|
|
71
78
|
.tile-info-with {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
display: flex;
|
|
80
|
+
|
|
81
|
+
.tile-username {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
font-size: 18px;
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
|
|
87
|
+
color: #1f2d3d;
|
|
88
|
+
font-weight: 400; //600;
|
|
89
|
+
-webkit-font-smoothing: antialiased;
|
|
90
|
+
text-rendering: optimizeLegibility;
|
|
91
|
+
-webkit-text-size-adjust: none;
|
|
92
|
+
-moz-text-size-adjust: none;
|
|
93
|
+
-ms-text-size-adjust: none;
|
|
94
|
+
text-size-adjust: none;
|
|
95
|
+
-webkit-user-select: text;
|
|
96
|
+
-moz-user-select: text;
|
|
97
|
+
-ms-user-select: text;
|
|
98
|
+
user-select: text;
|
|
99
|
+
}
|
|
83
100
|
}
|
|
84
101
|
.tile-point {
|
|
85
102
|
width: 10px;
|
|
@@ -90,27 +107,7 @@ ion-header {
|
|
|
90
107
|
margin-right: 5px;
|
|
91
108
|
vertical-align: middle;
|
|
92
109
|
}
|
|
93
|
-
|
|
94
|
-
display: inline-block;
|
|
95
|
-
font-size: 15px;
|
|
96
|
-
color: var(--black);
|
|
97
|
-
margin: 0;
|
|
98
|
-
padding: 0;
|
|
99
|
-
|
|
100
|
-
color: #3c4858;
|
|
101
|
-
font-family: "Google Sans",sans-serif!important;
|
|
102
|
-
font-weight: 600;
|
|
103
|
-
-webkit-font-smoothing: antialiased;
|
|
104
|
-
text-rendering: optimizeLegibility;
|
|
105
|
-
-webkit-text-size-adjust: none;
|
|
106
|
-
-moz-text-size-adjust: none;
|
|
107
|
-
-ms-text-size-adjust: none;
|
|
108
|
-
text-size-adjust: none;
|
|
109
|
-
-webkit-user-select: text;
|
|
110
|
-
-moz-user-select: text;
|
|
111
|
-
-ms-user-select: text;
|
|
112
|
-
user-select: text;
|
|
113
|
-
}
|
|
110
|
+
|
|
114
111
|
|
|
115
112
|
.tile-last-activity {
|
|
116
113
|
color: var(--light-gray);
|
|
@@ -125,6 +122,9 @@ ion-header {
|
|
|
125
122
|
}
|
|
126
123
|
|
|
127
124
|
ion-buttons {
|
|
125
|
+
ion-icon , span{
|
|
126
|
+
color: var(--basic-blue)
|
|
127
|
+
}
|
|
128
128
|
button {
|
|
129
129
|
max-width: 30px;
|
|
130
130
|
padding: 0;
|
|
@@ -133,42 +133,86 @@ ion-header {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.avatar-and-typing-wpr{
|
|
137
|
+
display: flex;
|
|
138
|
+
&.mobile{
|
|
139
|
+
margin-left: 25px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
136
143
|
.avatar-container {
|
|
137
|
-
background-color: #fff;
|
|
144
|
+
// background-color: #fff;
|
|
138
145
|
color: #fff;
|
|
139
146
|
text-align: center;
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: 0;
|
|
147
|
+
width: 44px;
|
|
148
|
+
height: 44px;
|
|
149
|
+
// position: absolute;
|
|
150
|
+
// top: 0;
|
|
151
|
+
// left: 20px;
|
|
144
152
|
border-radius: 50%;
|
|
145
153
|
padding: 0px;
|
|
146
|
-
transform: translateX(-50%);
|
|
147
|
-
left: 20px;
|
|
154
|
+
// transform: translateX(-50%);
|
|
148
155
|
|
|
149
156
|
border-color: #fff;
|
|
150
157
|
border-style: solid;
|
|
151
158
|
border-width: 0px;
|
|
152
159
|
line-height: 40px;
|
|
153
160
|
display: inline-block;
|
|
161
|
+
cursor: pointer;
|
|
154
162
|
}
|
|
163
|
+
|
|
164
|
+
.avatar-container-ios {
|
|
165
|
+
left: 55px;
|
|
166
|
+
top: 10px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.info-container{
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
margin-left: 12px;
|
|
174
|
+
width: 80%;
|
|
175
|
+
}
|
|
176
|
+
|
|
155
177
|
.user-presence {
|
|
156
178
|
position: absolute;
|
|
157
|
-
bottom: 0;
|
|
179
|
+
bottom: 3px; //0;
|
|
158
180
|
height: 12px;
|
|
159
181
|
left: 30px;
|
|
160
182
|
width: 100px;
|
|
161
183
|
}
|
|
162
|
-
.
|
|
163
|
-
position: absolute;
|
|
164
|
-
left: 50px;
|
|
165
|
-
bottom: -3px;
|
|
166
|
-
padding: 0;
|
|
167
|
-
margin: 0;
|
|
168
|
-
|
|
169
|
-
|
|
184
|
+
.subtitle-info {
|
|
185
|
+
// position: absolute;
|
|
186
|
+
// left: 50px;
|
|
187
|
+
// bottom: -3px;
|
|
188
|
+
// padding: 0;
|
|
189
|
+
// margin: 0;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
// height: 16px;
|
|
193
|
+
// width: 140px;
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
.conversation_project{
|
|
196
|
+
display: inline-flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
line-height: 1.2rem;
|
|
199
|
+
font-weight: 500;
|
|
200
|
+
color: #779bbb;
|
|
201
|
+
font-size: 10px;
|
|
202
|
+
max-width: 90%;
|
|
203
|
+
margin-right: 5px;
|
|
204
|
+
svg {
|
|
205
|
+
fill:#779bbb;
|
|
206
|
+
vertical-align: sub;
|
|
207
|
+
}
|
|
208
|
+
span{
|
|
209
|
+
padding-left: 5px
|
|
210
|
+
}
|
|
211
|
+
}
|
|
170
212
|
}
|
|
171
213
|
|
|
214
|
+
|
|
215
|
+
|
|
172
216
|
.tile-info-with-ios {
|
|
173
217
|
left: 82px !important;
|
|
174
218
|
top: 10px!important;
|
|
@@ -178,11 +222,4 @@ ion-header {
|
|
|
178
222
|
left: 63px;
|
|
179
223
|
}
|
|
180
224
|
|
|
181
|
-
.avatar-container-ios {
|
|
182
|
-
left: 55px;
|
|
183
|
-
top: 10px;
|
|
184
|
-
}
|
|
185
225
|
|
|
186
|
-
.resolve-conv-margin-right {
|
|
187
|
-
margin-right: 52px;
|
|
188
|
-
}
|