@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
|
@@ -7,74 +7,114 @@
|
|
|
7
7
|
-webkit-box-shadow: none;
|
|
8
8
|
box-shadow: none;
|
|
9
9
|
border-bottom: 1px solid rgba(169, 169, 169, 0.2);
|
|
10
|
-
}
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
.image-profile {
|
|
12
|
+
padding: 0 0 0 0;
|
|
13
|
+
width: 100px;
|
|
14
|
+
height: 100px;
|
|
15
|
+
margin: auto;
|
|
16
|
+
line-height: 100px;
|
|
17
|
+
font-size: 40px;
|
|
18
|
+
color: white;
|
|
19
|
+
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
.info-profile {
|
|
22
|
+
padding: 10px 0 0 0;
|
|
23
|
+
text-align: center;
|
|
24
|
+
.name {
|
|
25
|
+
-webkit-font-smoothing: antialiased;
|
|
26
|
+
text-rendering: optimizeLegibility;
|
|
27
|
+
text-size-adjust: none;
|
|
28
|
+
user-select: text;
|
|
29
|
+
font-family: "Roboto", "Helvetica Neue", sans-serif;
|
|
30
|
+
-webkit-box-direction: normal;
|
|
31
|
+
color: #333333;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
font-size: 17px;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
-webkit-tap-highlight-color: transparent;
|
|
36
|
+
display: block;
|
|
37
|
+
font-size: large;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
31
41
|
}
|
|
32
42
|
|
|
33
|
-
.user-online {
|
|
34
|
-
height: 11px;
|
|
35
|
-
width: 11px;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 44px;
|
|
39
|
-
left: 40px;
|
|
40
|
-
border: 0.5px solid #fff;
|
|
41
|
-
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
#members-list{
|
|
45
|
+
ion-item{
|
|
46
|
+
display: flex;
|
|
47
|
+
height: 60px;
|
|
48
|
+
|
|
49
|
+
.status-icon-container{
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 35px;
|
|
52
|
+
left: 45px;
|
|
53
|
+
background-color: white;
|
|
54
|
+
height: 17px;
|
|
55
|
+
width: 17px;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
|
|
61
|
+
&.mobile{
|
|
62
|
+
top: 30px;
|
|
63
|
+
left: 50px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
svg{
|
|
67
|
+
fill: #f44336;
|
|
68
|
+
|
|
69
|
+
&.online{
|
|
70
|
+
fill: #4caf50;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
50
74
|
|
|
51
|
-
.info-profile {
|
|
52
|
-
padding: 10px 0 0 0;
|
|
53
|
-
text-align: center;
|
|
54
|
-
.name {
|
|
55
|
-
-webkit-font-smoothing: antialiased;
|
|
56
|
-
text-rendering: optimizeLegibility;
|
|
57
|
-
text-size-adjust: none;
|
|
58
|
-
user-select: text;
|
|
59
|
-
font-family: "Roboto", "Helvetica Neue", sans-serif;
|
|
60
|
-
-webkit-box-direction: normal;
|
|
61
|
-
color: #333333;
|
|
62
|
-
font-weight: 500;
|
|
63
|
-
font-size: 17px;
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
-webkit-tap-highlight-color: transparent;
|
|
66
|
-
display: block;
|
|
67
|
-
font-size: large;
|
|
68
|
-
font-weight: bold;
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// .member-profile {
|
|
81
|
+
// padding: 0 0 0 0;
|
|
82
|
+
// width: 55px;
|
|
83
|
+
// height: 55px;
|
|
84
|
+
// margin: auto;
|
|
85
|
+
// line-height: 57px;
|
|
86
|
+
// font-size: 25px;
|
|
87
|
+
// color: white;
|
|
88
|
+
// position: relative;
|
|
89
|
+
// }
|
|
90
|
+
|
|
91
|
+
// .user-online {
|
|
92
|
+
// height: 11px;
|
|
93
|
+
// width: 11px;
|
|
94
|
+
// border-radius: 50%;
|
|
95
|
+
// position: absolute;
|
|
96
|
+
// top: 44px;
|
|
97
|
+
// left: 40px;
|
|
98
|
+
// border: 0.5px solid #fff;
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
// .user-presence {
|
|
103
|
+
// position: absolute;
|
|
104
|
+
// top: 88px;
|
|
105
|
+
// height: 12px;
|
|
106
|
+
// left: calc(50% + 30px);
|
|
107
|
+
// width: 100px;
|
|
108
|
+
// }
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
// .info-group-member-email {
|
|
113
|
+
// font-size: 13px;
|
|
114
|
+
// margin-top: 2px;
|
|
115
|
+
// white-space: nowrap;
|
|
116
|
+
// width: 205px;
|
|
117
|
+
// overflow: hidden;
|
|
118
|
+
// text-overflow: ellipsis;
|
|
119
|
+
// }
|
|
80
120
|
}
|
|
@@ -23,6 +23,7 @@ export class InfoGroupComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
23
23
|
// objectKeys = Object.keys;
|
|
24
24
|
|
|
25
25
|
@Input() groupDetail: any;
|
|
26
|
+
@Input() isMobile: boolean;
|
|
26
27
|
// @Input() member_array: any;
|
|
27
28
|
public displaySkeletonScreen: boolean = true;
|
|
28
29
|
public member_array: any
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<ion-toolbar
|
|
1
|
+
<ion-toolbar [class.mobile]="isMobile">
|
|
2
2
|
|
|
3
|
-
<ion-buttons *ngIf="
|
|
3
|
+
<ion-buttons *ngIf="isMobile || supportMode === false" slot="start" style="height:60px">
|
|
4
4
|
<ion-button ion-button icon-only fill="clear" (click)="onOpenProfileInfo($event)">
|
|
5
5
|
<ion-icon slot="icon-only" name="reorder-three-outline"></ion-icon>
|
|
6
6
|
</ion-button>
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
ion-toolbar {
|
|
3
|
+
height: var(--header-height);
|
|
4
|
+
&:not(.mobile){
|
|
5
|
+
--background: var(--list-bkg-color);
|
|
6
|
+
border: none;
|
|
7
|
+
}
|
|
8
|
+
&.mobile{
|
|
9
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ion-button{
|
|
13
|
+
--color: var(--basic-blue);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
1
17
|
ion-title img {
|
|
2
18
|
height: 30px;
|
|
3
19
|
}
|
|
@@ -23,8 +39,4 @@ ion-title img {
|
|
|
23
39
|
|
|
24
40
|
.header-logo {
|
|
25
41
|
margin-top: 5px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.bottom-border-on-mobile {
|
|
29
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
30
42
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
import { IonicModule } from '@ionic/angular';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { HeaderConversationsList } from './header-conversations-list.component';
|
|
5
5
|
|
|
6
|
-
describe('
|
|
7
|
-
let component:
|
|
8
|
-
let fixture: ComponentFixture<
|
|
6
|
+
describe('ConversationsListHeader', () => {
|
|
7
|
+
let component: HeaderConversationsList;
|
|
8
|
+
let fixture: ComponentFixture<HeaderConversationsList>;
|
|
9
9
|
|
|
10
10
|
beforeEach(async(() => {
|
|
11
11
|
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [
|
|
12
|
+
declarations: [ HeaderConversationsList ],
|
|
13
13
|
imports: [IonicModule.forRoot()]
|
|
14
14
|
}).compileComponents();
|
|
15
15
|
|
|
16
|
-
fixture = TestBed.createComponent(
|
|
16
|
+
fixture = TestBed.createComponent(HeaderConversationsList);
|
|
17
17
|
component = fixture.componentInstance;
|
|
18
18
|
fixture.detectChanges();
|
|
19
19
|
}));
|
|
@@ -4,22 +4,22 @@ import { EventsService } from 'src/app/services/events-service'
|
|
|
4
4
|
import { CreateTicketPage } from 'src/app/pages/create-ticket/create-ticket.page'
|
|
5
5
|
import { CustomTranslateService } from 'src/chat21-core/providers/custom-translate.service'
|
|
6
6
|
@Component({
|
|
7
|
-
selector: '
|
|
8
|
-
templateUrl: './
|
|
9
|
-
styleUrls: ['./
|
|
7
|
+
selector: 'header-conversations-list',
|
|
8
|
+
templateUrl: './header-conversations-list.component.html',
|
|
9
|
+
styleUrls: ['./header-conversations-list.component.scss'],
|
|
10
10
|
})
|
|
11
|
-
export class
|
|
11
|
+
export class HeaderConversationsList implements OnInit {
|
|
12
12
|
|
|
13
13
|
@Input() numberOpenConv: number
|
|
14
14
|
@Input() supportMode: boolean
|
|
15
15
|
@Input() archived_btn: boolean
|
|
16
16
|
@Input() writeto_btn: boolean
|
|
17
|
-
@Input() sound_btn: string
|
|
17
|
+
@Input() sound_btn: string;
|
|
18
|
+
@Input() isMobile: boolean;
|
|
18
19
|
@Output() onSoundChange = new EventEmitter<string>()
|
|
19
20
|
@Output() openContactsDirectory = new EventEmitter()
|
|
20
21
|
@Output() openProfileInfo = new EventEmitter()
|
|
21
22
|
|
|
22
|
-
IS_ON_MOBILE_DEVICE: boolean
|
|
23
23
|
createTicketModal = null
|
|
24
24
|
public translationMap: Map<string, string>;
|
|
25
25
|
tooltipOptions = {
|
|
@@ -36,7 +36,7 @@ export class DdpHeaderComponent implements OnInit {
|
|
|
36
36
|
public modalController: ModalController,
|
|
37
37
|
private translateService: CustomTranslateService,
|
|
38
38
|
) {
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
this.translations();
|
|
41
41
|
// this.listenToCloseCreateTicketModal() // published from create ticket page
|
|
42
42
|
}
|
|
@@ -68,15 +68,6 @@ export class DdpHeaderComponent implements OnInit {
|
|
|
68
68
|
// }
|
|
69
69
|
// }
|
|
70
70
|
|
|
71
|
-
isOnMobileDevice() {
|
|
72
|
-
this.IS_ON_MOBILE_DEVICE = false
|
|
73
|
-
if (/Android|iPhone/i.test(window.navigator.userAgent)) {
|
|
74
|
-
this.IS_ON_MOBILE_DEVICE = true
|
|
75
|
-
}
|
|
76
|
-
// console.log('[DDP-HEADER] IS_ON_MOBILE_DEVICE', this.IS_ON_MOBILE_DEVICE)
|
|
77
|
-
return this.IS_ON_MOBILE_DEVICE
|
|
78
|
-
}
|
|
79
|
-
|
|
80
71
|
ngOnInit() {
|
|
81
72
|
// console.log('DDP HEADER SUPPORT MODE ', this.supportMode)
|
|
82
73
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<ion-toolbar [class.mobile]="isMobile">
|
|
2
|
+
|
|
3
|
+
<ion-buttons slot="start">
|
|
4
|
+
<ion-button ion-button (click)="onBackButtonHandler()">
|
|
5
|
+
<ion-icon slot="icon-only" name="arrow-back-outline"></ion-icon>
|
|
6
|
+
</ion-button>
|
|
7
|
+
</ion-buttons>
|
|
8
|
+
|
|
9
|
+
<ion-title> {{headerTitle}}</ion-title>
|
|
10
|
+
|
|
11
|
+
</ion-toolbar>
|
|
12
|
+
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
import { IonicModule } from '@ionic/angular';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { HeaderConversationsListArchived } from './header-conversations-list-archived.component';
|
|
5
5
|
|
|
6
6
|
describe('OptionHeaderComponent', () => {
|
|
7
|
-
let component:
|
|
8
|
-
let fixture: ComponentFixture<
|
|
7
|
+
let component: HeaderConversationsListArchived;
|
|
8
|
+
let fixture: ComponentFixture<HeaderConversationsListArchived>;
|
|
9
9
|
|
|
10
10
|
beforeEach(async(() => {
|
|
11
11
|
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [
|
|
12
|
+
declarations: [ HeaderConversationsListArchived ],
|
|
13
13
|
imports: [IonicModule.forRoot()]
|
|
14
14
|
}).compileComponents();
|
|
15
15
|
|
|
16
|
-
fixture = TestBed.createComponent(
|
|
16
|
+
fixture = TestBed.createComponent(HeaderConversationsListArchived);
|
|
17
17
|
component = fixture.componentInstance;
|
|
18
18
|
fixture.detectChanges();
|
|
19
19
|
}));
|
|
@@ -2,13 +2,14 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
5
|
-
selector: '
|
|
6
|
-
templateUrl: './
|
|
7
|
-
styleUrls: ['./
|
|
5
|
+
selector: 'header-conversations-list-archived',
|
|
6
|
+
templateUrl: './header-conversations-list-archived.component.html',
|
|
7
|
+
styleUrls: ['./header-conversations-list-archived.component.scss'],
|
|
8
8
|
})
|
|
9
|
-
export class
|
|
9
|
+
export class HeaderConversationsListArchived implements OnInit {
|
|
10
10
|
|
|
11
11
|
@Input() headerTitle: string
|
|
12
|
+
@Input() isMobile: boolean;
|
|
12
13
|
@Output() onBackButton = new EventEmitter<boolean>();
|
|
13
14
|
static UserPresenceComponent: any[] | any;
|
|
14
15
|
|
|
@@ -1,158 +1,107 @@
|
|
|
1
1
|
<div class="main-content main-content-project-for-panel">
|
|
2
|
-
<div class="container-fluid container-project-for-panel">
|
|
3
|
-
|
|
4
|
-
<div class="left-sidebar">
|
|
5
|
-
|
|
6
|
-
<!-- <loading-spinner *ngIf="showSpinner"></loading-spinner> -->
|
|
7
|
-
<!-- *ngIf="!showSpinner" -->
|
|
8
|
-
<div class="left-sidebar-project" style="margin-right: -10px;">
|
|
9
|
-
|
|
10
|
-
<div class="small-projects-sidebar">
|
|
11
|
-
<!-- <div class="pinned-project">Pinned project </div> margin-left:4px -->
|
|
12
|
-
<div *ngIf="project?.id_project?.status !== 0" class="flex-container-project-for-panel project-row">
|
|
13
|
-
<div class="flex-child-left" [tooltip]="conversationsInQueue" [options]="tooltipOptions" placement="top"
|
|
14
|
-
content-type="template" (click)="openUnservedConvs()">
|
|
15
|
-
<div class="unassigned-notifications-icon-wpr">
|
|
16
|
-
<svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" focusable="false"
|
|
17
|
-
class="style-scope yt-icon"
|
|
18
|
-
style="pointer-events: none; width: 37px; height:auto; fill: rgb(107,107,107);margin-top: 9px;">
|
|
19
|
-
<g class="style-scope yt-icon">
|
|
20
|
-
<path
|
|
21
|
-
d="M10,20h4c0,1.1-0.9,2-2,2S10,21.1,10,20z M20,17.35V19H4v-1.65l2-1.88v-5.15c0-2.92,1.56-5.22,4-5.98V3.96 c0-1.42,1.49-2.5,2.99-1.76C13.64,2.52,14,3.23,14,3.96l0,0.39c2.44,0.75,4,3.06,4,5.98v5.15L20,17.35z M19,17.77l-2-1.88v-5.47 c0-2.47-1.19-4.36-3.13-5.1c-1.26-0.53-2.64-0.5-3.84,0.03C8.15,6.11,7,7.99,7,10.42v5.47l-2,1.88V18h14V17.77z"
|
|
22
|
-
class="style-scope yt-icon"></path>
|
|
23
|
-
</g>
|
|
24
|
-
</svg>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="unassigned-notifications-badge" *ngIf="unservedRequestCount > 0">
|
|
27
|
-
<!-- || currentUserRequestCount > 0 -->
|
|
28
|
-
<!-- <span *ngIf="unservedRequestCount > 0 "> -->
|
|
29
|
-
<!-- + currentUserRequestCount -->
|
|
30
|
-
<span class="notification-count">{{ unservedRequestCount }}</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
2
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<!-- <div class="availabily-and-busy-wpr">
|
|
70
|
-
<div class="availabily---wpr" tooltip="{{avaialble_status_for_tooltip}}" [options]="tooltipOptions">
|
|
71
|
-
<div class="onoffswitch"
|
|
72
|
-
(click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)">
|
|
73
|
-
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
|
|
74
|
-
id="switchavailableunavailablestatus" tabindex="0" [checked]="project?.ws_projct_user_available">
|
|
75
|
-
<label class="onoffswitch-label" for="switchavailableunavailablestatus"></label>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<!- - (click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)" - ->
|
|
81
|
-
<span *ngIf="project?.ws_projct_user_available === true" class="availibility-status-text"
|
|
82
|
-
[ngClass]="{'online-text-color' : project?.ws_projct_user_available === true, 'offline-text-color' : project?.ws_projct_user_available === false}">
|
|
83
|
-
{{translationMap?.get('LABEL_AVAILABLE') }}
|
|
84
|
-
</span>
|
|
85
|
-
<!- - (click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)" - ->
|
|
86
|
-
<span *ngIf="project?.ws_projct_user_available === false" class="availibility-status-text"
|
|
87
|
-
[ngClass]="{'online-text-color' : project?.ws_projct_user_available === true, 'offline-text-color' : project?.ws_projct_user_available === false}">
|
|
88
|
-
{{translationMap?.get('LABEL_NOT_AVAILABLE')}}
|
|
89
|
-
</span>
|
|
90
|
-
|
|
91
|
-
<div class="project-item--isBusy-icon-wpr" *ngIf="project?.ws_projct_user_isBusy === true" tooltip="{{translationMap?.get('LABEL_BUSY')}}"
|
|
92
|
-
[options]="tooltipOptions" placement="top" >
|
|
93
|
-
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="16px"
|
|
94
|
-
viewBox="0 0 24 24" width="16px" fill="#FEB92C">
|
|
95
|
-
<g><path d="M0,0h24v24H0V0z" fill="none" /></g>
|
|
96
|
-
<g><path d="M11.99,2C6.47,2,2,6.48,2,12s4.47,10,9.99,10C17.52,22,22,17.52,22,12S17.52,2,11.99,2z M15.29,16.71L11,12.41V7h2v4.59 l3.71,3.71L15.29,16.71z" /></g>
|
|
97
|
-
</svg>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div> -->
|
|
101
|
-
|
|
102
|
-
<div *ngIf="IS_ON_MOBILE_DEVICE === true" class="flex-child-view-all-convs">
|
|
103
|
-
<div class="view-all-convs-icon-wpr" style="cursor: pointer;" [tooltip]="viewAllConvs"
|
|
104
|
-
[options]="tooltipOptions" placement="top" content-type="template">
|
|
105
|
-
|
|
106
|
-
<ion-button ion-button fill="clear" class="open-unserved-convs-btn"
|
|
107
|
-
(click)="openUnservedConvsAndGoToProjectList()">
|
|
108
|
-
|
|
109
|
-
<span class="push-icon-and-list-wpr">
|
|
110
|
-
<!-- <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg"
|
|
111
|
-
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24"
|
|
112
|
-
style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 20px;">
|
|
113
|
-
<style type="text/css">
|
|
114
|
-
.st0 {
|
|
115
|
-
fill: #3880ff;
|
|
116
|
-
}
|
|
117
|
-
</style>
|
|
118
|
-
<path class="st0"
|
|
119
|
-
d="M22.8,15v-2c-1.7,0-3-1.3-3-3V5h1c0.5,0,1-0.5,1-1s-0.5-1-1-1h-10c-0.5,0-1,0.5-1,1s0.5,1,1,1h1v5
|
|
120
|
-
c0,1.7-1.3,3-3,3v2h6v5c0.6,0,1.4,0,2,0v-5H22.8z M12.8,13c0.7-0.9,1-1.9,1-3V5h4v5c0,1.1,0.4,2.2,1,3H12.8z" />
|
|
121
|
-
<rect x="1.2" y="13" class="st0" width="6.3" height="2" />
|
|
122
|
-
<rect x="1.2" y="18" class="st0" width="12.1" height="2" />
|
|
123
|
-
<rect x="1.2" y="7.6" class="st0" width="9.2" height="2" />
|
|
124
|
-
</svg> -->
|
|
125
|
-
|
|
126
|
-
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg"
|
|
127
|
-
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24"
|
|
128
|
-
style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 16px;">
|
|
129
|
-
<style type="text/css">
|
|
130
|
-
.st0 {
|
|
131
|
-
fill: #165CEE;
|
|
132
|
-
}
|
|
133
|
-
</style>
|
|
134
|
-
<path class="st0" d="M20.6,16.3v-2.4c-2.1,0-3.7-1.6-3.7-3.7V4h1.2c0.6,0,1.2-0.6,1.2-1.2s-0.6-1.2-1.2-1.2H5.9
|
|
135
|
-
c-0.6,0-1.2,0.6-1.2,1.2S5.3,4,5.9,4h1.2v6.1c0,2.1-1.6,3.7-3.7,3.7v2.4h7.3v6.1c0.7,0,1.7,0,2.4,0v-6.1H20.6z M8.3,13.8
|
|
136
|
-
c0.9-1.1,1.2-2.3,1.2-3.7V4h4.9v6.1c0,1.3,0.5,2.7,1.2,3.7H8.3z" />
|
|
137
|
-
</svg>
|
|
138
|
-
</span>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</ion-button>
|
|
143
|
-
</div>
|
|
144
|
-
<ng-template #viewAllConvs>
|
|
145
|
-
<span>
|
|
146
|
-
{{translationMap?.get('CHANGE_PINNED_PROJECT') }}</span>
|
|
147
|
-
</ng-template>
|
|
3
|
+
<!-- <div class="pinned-project">Pinned project </div> margin-left:4px -->
|
|
4
|
+
<div *ngIf="project?.id_project?.status !== 0" class="flex-container-project-for-panel project-row">
|
|
5
|
+
<div class="flex-child-left" [tooltip]="conversationsInQueueOnProjectName" [options]="tooltipOptions" placement="top"
|
|
6
|
+
content-type="template" (click)="openUnservedConvs()">
|
|
7
|
+
<div class="unassigned-notifications-icon-wpr">
|
|
8
|
+
<svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" focusable="false" class="style-scope yt-icon">
|
|
9
|
+
<g class="style-scope yt-icon">
|
|
10
|
+
<path
|
|
11
|
+
d="M10,20h4c0,1.1-0.9,2-2,2S10,21.1,10,20z M20,17.35V19H4v-1.65l2-1.88v-5.15c0-2.92,1.56-5.22,4-5.98V3.96 c0-1.42,1.49-2.5,2.99-1.76C13.64,2.52,14,3.23,14,3.96l0,0.39c2.44,0.75,4,3.06,4,5.98v5.15L20,17.35z M19,17.77l-2-1.88v-5.47 c0-2.47-1.19-4.36-3.13-5.1c-1.26-0.53-2.64-0.5-3.84,0.03C8.15,6.11,7,7.99,7,10.42v5.47l-2,1.88V18h14V17.77z"
|
|
12
|
+
class="style-scope yt-icon"></path>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="unassigned-notifications-badge" *ngIf="unservedRequestCount > 0">
|
|
17
|
+
<!-- || currentUserRequestCount > 0 -->
|
|
18
|
+
<!-- <span *ngIf="unservedRequestCount > 0 "> -->
|
|
19
|
+
<!-- + currentUserRequestCount -->
|
|
20
|
+
<span class="notification-count">{{ unservedRequestCount }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<div class="flex-child-right">
|
|
26
|
+
<div class="project-name-project-for-panel" [tooltip]="conversationsInQueueOnProjectName"
|
|
27
|
+
[options]="tooltipOptions" placement="top" content-type="template" (click)="openUnservedConvs()">
|
|
28
|
+
<div class="project---name"> <a>{{ project?.id_project?.name }}</a> </div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- <div class="availabily-and-busy-wpr">
|
|
32
|
+
<div class="availabily---wpr" tooltip="{{avaialble_status_for_tooltip}}" [options]="tooltipOptions">
|
|
33
|
+
<div class="onoffswitch"
|
|
34
|
+
(click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)">
|
|
35
|
+
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
|
|
36
|
+
id="switchavailableunavailablestatus" tabindex="0" [checked]="project?.ws_projct_user_available">
|
|
37
|
+
<label class="onoffswitch-label" for="switchavailableunavailablestatus"></label>
|
|
148
38
|
</div>
|
|
39
|
+
</div>
|
|
149
40
|
|
|
41
|
+
|
|
42
|
+
<!- - (click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)" - ->
|
|
43
|
+
<span *ngIf="project?.ws_projct_user_available === true" class="availibility-status-text"
|
|
44
|
+
[ngClass]="{'online-text-color' : project?.ws_projct_user_available === true, 'offline-text-color' : project?.ws_projct_user_available === false}">
|
|
45
|
+
{{translationMap?.get('LABEL_AVAILABLE') }}
|
|
46
|
+
</span>
|
|
47
|
+
<!- - (click)="$event.stopPropagation();changeAvailabilityState(project?.id_project?._id, project?.ws_projct_user_available)" - ->
|
|
48
|
+
<span *ngIf="project?.ws_projct_user_available === false" class="availibility-status-text"
|
|
49
|
+
[ngClass]="{'online-text-color' : project?.ws_projct_user_available === true, 'offline-text-color' : project?.ws_projct_user_available === false}">
|
|
50
|
+
{{translationMap?.get('LABEL_NOT_AVAILABLE')}}
|
|
51
|
+
</span>
|
|
52
|
+
|
|
53
|
+
<div class="project-item--isBusy-icon-wpr" *ngIf="project?.ws_projct_user_isBusy === true" tooltip="{{translationMap?.get('LABEL_BUSY')}}"
|
|
54
|
+
[options]="tooltipOptions" placement="top" >
|
|
55
|
+
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="16px"
|
|
56
|
+
viewBox="0 0 24 24" width="16px" fill="#FEB92C">
|
|
57
|
+
<g><path d="M0,0h24v24H0V0z" fill="none" /></g>
|
|
58
|
+
<g><path d="M11.99,2C6.47,2,2,6.48,2,12s4.47,10,9.99,10C17.52,22,22,17.52,22,12S17.52,2,11.99,2z M15.29,16.71L11,12.41V7h2v4.59 l3.71,3.71L15.29,16.71z" /></g>
|
|
59
|
+
</svg>
|
|
150
60
|
</div>
|
|
151
61
|
</div>
|
|
62
|
+
</div> -->
|
|
152
63
|
|
|
153
|
-
|
|
64
|
+
<!-- <div *ngIf="IS_ON_MOBILE_DEVICE === true" class="flex-child-view-all-convs">
|
|
65
|
+
<div class="view-all-convs-icon-wpr" style="cursor: pointer;" [tooltip]="viewAllConvs"
|
|
66
|
+
[options]="tooltipOptions" placement="top" content-type="template">
|
|
67
|
+
|
|
68
|
+
<ion-button ion-button fill="clear" class="open-unserved-convs-btn"
|
|
69
|
+
(click)="openUnservedConvsAndGoToProjectList()">
|
|
70
|
+
|
|
71
|
+
<span class="push-icon-and-list-wpr">
|
|
72
|
+
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg"
|
|
73
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 24 24"
|
|
74
|
+
style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 16px;">
|
|
75
|
+
<style type="text/css">
|
|
76
|
+
.st0 {
|
|
77
|
+
fill: #165CEE;
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
80
|
+
<path class="st0" d="M20.6,16.3v-2.4c-2.1,0-3.7-1.6-3.7-3.7V4h1.2c0.6,0,1.2-0.6,1.2-1.2s-0.6-1.2-1.2-1.2H5.9
|
|
81
|
+
c-0.6,0-1.2,0.6-1.2,1.2S5.3,4,5.9,4h1.2v6.1c0,2.1-1.6,3.7-3.7,3.7v2.4h7.3v6.1c0.7,0,1.7,0,2.4,0v-6.1H20.6z M8.3,13.8
|
|
82
|
+
c0.9-1.1,1.2-2.3,1.2-3.7V4h4.9v6.1c0,1.3,0.5,2.7,1.2,3.7H8.3z" />
|
|
83
|
+
</svg>
|
|
84
|
+
</span>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</ion-button>
|
|
89
|
+
</div>
|
|
90
|
+
<ng-template #viewAllConvs>
|
|
91
|
+
<span>
|
|
92
|
+
{{translationMap?.get('CHANGE_PINNED_PROJECT') }}</span>
|
|
93
|
+
</ng-template>
|
|
94
|
+
</div> -->
|
|
154
95
|
|
|
155
|
-
</div>
|
|
156
96
|
</div>
|
|
157
|
-
|
|
158
|
-
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<ng-template #conversationsInQueueOnProjectName>
|
|
103
|
+
<span>
|
|
104
|
+
({{ unservedRequestCount }})
|
|
105
|
+
{{translationMap?.get('UnassignedConversations') }}
|
|
106
|
+
</span>
|
|
107
|
+
</ng-template>
|