@chat21/chat21-ionic 3.0.77 → 3.0.78-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 +12 -0
- package/package.json +1 -1
- package/src/app/app.component.scss +1 -1
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +11 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +45 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +15 -2
- 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 +62 -34
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +58 -18
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +14 -10
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +61 -37
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +56 -28
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +6 -20
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +1 -1
- 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 +4 -3
- package/src/app/pages/conversation-detail/conversation-detail.page.html +11 -10
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +0 -2
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +66 -29
- 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 +7 -0
- package/src/assets/i18n/ar.json +268 -265
- package/src/assets/i18n/az.json +3 -0
- package/src/assets/i18n/de.json +3 -0
- package/src/assets/i18n/en.json +3 -0
- package/src/assets/i18n/es.json +3 -0
- package/src/assets/i18n/fr.json +3 -0
- package/src/assets/i18n/it.json +3 -0
- package/src/assets/i18n/kk.json +3 -0
- package/src/assets/i18n/pt.json +3 -0
- package/src/assets/i18n/ru.json +3 -0
- package/src/assets/i18n/sr.json +3 -0
- package/src/assets/i18n/sv.json +3 -0
- package/src/assets/i18n/tr.json +3 -0
- package/src/assets/i18n/uk.json +3 -0
- package/src/assets/i18n/uz.json +3 -0
- package/src/chat21-core/utils/utils.ts +5 -1
|
@@ -27,7 +27,7 @@ ion-header {
|
|
|
27
27
|
text-align: left;
|
|
28
28
|
padding-inline: unset;
|
|
29
29
|
margin: 0px 10px;
|
|
30
|
-
height: 40px;
|
|
30
|
+
// height: 40px;
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
ion-avatar {
|
|
@@ -73,12 +73,9 @@ ion-header {
|
|
|
73
73
|
// display: inline-block;
|
|
74
74
|
// vertical-align: middle;
|
|
75
75
|
// margin: -6px 0px 0 6px;
|
|
76
|
-
position: absolute;
|
|
77
|
-
margin:
|
|
78
|
-
|
|
79
|
-
top: 0;
|
|
80
|
-
left: 50px;
|
|
81
|
-
vertical-align: middle;
|
|
76
|
+
// position: absolute;
|
|
77
|
+
// margin-left: 12px;
|
|
78
|
+
|
|
82
79
|
// cursor: pointer;
|
|
83
80
|
}
|
|
84
81
|
.tile-point {
|
|
@@ -92,14 +89,12 @@ ion-header {
|
|
|
92
89
|
}
|
|
93
90
|
.tile-username {
|
|
94
91
|
display: inline-block;
|
|
95
|
-
font-size:
|
|
96
|
-
color: var(--black);
|
|
92
|
+
font-size: 18px;
|
|
97
93
|
margin: 0;
|
|
98
94
|
padding: 0;
|
|
99
95
|
|
|
100
|
-
color: #
|
|
101
|
-
font-
|
|
102
|
-
font-weight: 600;
|
|
96
|
+
color: #1f2d3d;
|
|
97
|
+
font-weight: 400; //600;
|
|
103
98
|
-webkit-font-smoothing: antialiased;
|
|
104
99
|
text-rendering: optimizeLegibility;
|
|
105
100
|
-webkit-text-size-adjust: none;
|
|
@@ -133,18 +128,25 @@ ion-header {
|
|
|
133
128
|
}
|
|
134
129
|
}
|
|
135
130
|
|
|
131
|
+
.avatar-and-typing-wpr{
|
|
132
|
+
display: flex;
|
|
133
|
+
&.mobile{
|
|
134
|
+
margin-left: 25px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
136
138
|
.avatar-container {
|
|
137
139
|
background-color: #fff;
|
|
138
140
|
color: #fff;
|
|
139
141
|
text-align: center;
|
|
140
142
|
width: 40px;
|
|
141
143
|
height: 40px;
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: 0;
|
|
144
|
+
// position: absolute;
|
|
145
|
+
// top: 0;
|
|
146
|
+
// left: 20px;
|
|
144
147
|
border-radius: 50%;
|
|
145
148
|
padding: 0px;
|
|
146
|
-
transform: translateX(-50%);
|
|
147
|
-
left: 20px;
|
|
149
|
+
// transform: translateX(-50%);
|
|
148
150
|
|
|
149
151
|
border-color: #fff;
|
|
150
152
|
border-style: solid;
|
|
@@ -152,6 +154,14 @@ ion-header {
|
|
|
152
154
|
line-height: 40px;
|
|
153
155
|
display: inline-block;
|
|
154
156
|
}
|
|
157
|
+
|
|
158
|
+
.info-container{
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
margin-left: 12px;
|
|
163
|
+
}
|
|
164
|
+
|
|
155
165
|
.user-presence {
|
|
156
166
|
position: absolute;
|
|
157
167
|
bottom: 0;
|
|
@@ -159,16 +169,38 @@ ion-header {
|
|
|
159
169
|
left: 30px;
|
|
160
170
|
width: 100px;
|
|
161
171
|
}
|
|
162
|
-
.
|
|
163
|
-
position: absolute;
|
|
164
|
-
left: 50px;
|
|
165
|
-
bottom: -3px;
|
|
166
|
-
padding: 0;
|
|
167
|
-
margin: 0;
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
.subtitle-info {
|
|
173
|
+
// position: absolute;
|
|
174
|
+
// left: 50px;
|
|
175
|
+
// bottom: -3px;
|
|
176
|
+
// padding: 0;
|
|
177
|
+
// margin: 0;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
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
|
+
}
|
|
170
200
|
}
|
|
171
201
|
|
|
202
|
+
|
|
203
|
+
|
|
172
204
|
.tile-info-with-ios {
|
|
173
205
|
left: 82px !important;
|
|
174
206
|
top: 10px!important;
|
|
@@ -182,7 +214,3 @@ ion-header {
|
|
|
182
214
|
left: 55px;
|
|
183
215
|
top: 10px;
|
|
184
216
|
}
|
|
185
|
-
|
|
186
|
-
.resolve-conv-margin-right {
|
|
187
|
-
margin-right: 52px;
|
|
188
|
-
}
|
|
@@ -22,7 +22,7 @@ import { ModalController } from '@ionic/angular'
|
|
|
22
22
|
import { EventsService } from 'src/app/services/events-service'
|
|
23
23
|
import { CreateTicketPage } from 'src/app/pages/create-ticket/create-ticket.page'
|
|
24
24
|
import { TiledeskService } from 'src/app/services/tiledesk/tiledesk.service'
|
|
25
|
-
import { TYPE_DIRECT } from 'src/chat21-core/utils/constants'
|
|
25
|
+
import { TYPE_DIRECT, TYPE_SUPPORT_GROUP } from 'src/chat21-core/utils/constants'
|
|
26
26
|
|
|
27
27
|
@Component({
|
|
28
28
|
selector: 'app-header-conversation-detail',
|
|
@@ -34,14 +34,11 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
34
34
|
@Input() idLoggedUser: string
|
|
35
35
|
@Input() conversationUid: string
|
|
36
36
|
@Input() conv_type: string
|
|
37
|
-
@Input() isOpenInfoConversation: boolean = true
|
|
38
37
|
@Input() isMobile: boolean
|
|
39
|
-
@Input()
|
|
40
|
-
@Output() eventOpenCloseInfoConversation = new EventEmitter<boolean>()
|
|
38
|
+
@Input() translationsMap: Map<string, string>
|
|
41
39
|
conversationWithFullname: string
|
|
42
40
|
openInfoConversation = true
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
|
|
45
42
|
isDirect = false
|
|
46
43
|
isTyping = false
|
|
47
44
|
borderColor = '#ffffff'
|
|
@@ -52,6 +49,8 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
52
49
|
IS_ON_IOS_MOBILE_DEVICE: boolean
|
|
53
50
|
private logger: LoggerService = LoggerInstance.getInstance()
|
|
54
51
|
|
|
52
|
+
TYPE_SUPPORT_GROUP = TYPE_SUPPORT_GROUP
|
|
53
|
+
|
|
55
54
|
constructor(
|
|
56
55
|
public imageRepoService: ImageRepoService,
|
|
57
56
|
private route: ActivatedRoute,
|
|
@@ -91,8 +90,7 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
91
90
|
this.logger.log('[CONVS-DETAIL][HEADER] - (ngOnChanges) - conversationAvatar', this.conversationAvatar)
|
|
92
91
|
if (this.conversationAvatar) {
|
|
93
92
|
this.conversationAvatar.imageurl = this.imageRepoService.getImagePhotoUrl(this.conversationAvatar.uid)
|
|
94
|
-
}
|
|
95
|
-
this.openInfoConversation = this.isOpenInfoConversation
|
|
93
|
+
}
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
// ----------------------------------------------------
|
|
@@ -133,18 +131,6 @@ export class HeaderConversationDetailComponent implements OnInit, OnChanges {
|
|
|
133
131
|
});
|
|
134
132
|
}
|
|
135
133
|
|
|
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
|
-
|
|
148
134
|
/** */
|
|
149
135
|
pushPage(event) { }
|
|
150
136
|
|
|
@@ -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 *ngIf="unservedRequestCount > 0">
|
|
104
|
+
({{ unservedRequestCount }})
|
|
105
|
+
{{translationMap?.get('UnassignedConversations') }}
|
|
106
|
+
</span>
|
|
107
|
+
</ng-template>
|
|
@@ -4,13 +4,10 @@
|
|
|
4
4
|
padding-top: 0px;
|
|
5
5
|
margin-top: 0px !important;
|
|
6
6
|
padding-bottom: 0px !important;
|
|
7
|
-
// background: #fff;
|
|
8
7
|
padding-left: 0px;
|
|
9
8
|
width: 100%;
|
|
10
|
-
// min-height:
|
|
11
|
-
// height:
|
|
12
|
-
min-height: 64px;
|
|
13
|
-
height: 64px;
|
|
9
|
+
// min-height: 64px;
|
|
10
|
+
// height: 64px;
|
|
14
11
|
position: relative;
|
|
15
12
|
// top: -5px; //nk x AS
|
|
16
13
|
}
|
|
@@ -215,14 +212,10 @@
|
|
|
215
212
|
}
|
|
216
213
|
}
|
|
217
214
|
|
|
218
|
-
.container-project-for-panel {
|
|
219
|
-
padding: 0px !important;
|
|
220
|
-
width: 296px;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
215
|
.flex-container-project-for-panel {
|
|
224
216
|
display: flex;
|
|
225
|
-
width: 100%;
|
|
217
|
+
// width: 100%;
|
|
218
|
+
// height: 64px;
|
|
226
219
|
justify-content: center;
|
|
227
220
|
align-items: center;
|
|
228
221
|
// position: relative;
|
|
@@ -231,17 +224,18 @@
|
|
|
231
224
|
-o-transition: all 0.2s ease-in;
|
|
232
225
|
-webkit-transition: all 0.2s ease-in;
|
|
233
226
|
transition: all 0.2s ease-in;
|
|
234
|
-
|
|
227
|
+
margin: 6px;
|
|
228
|
+
// background-color: rgba(24, 119, 242, 0.1);
|
|
229
|
+
border-radius: 5px;
|
|
235
230
|
}
|
|
236
231
|
|
|
237
|
-
.flex-container:hover {
|
|
238
|
-
background-color:
|
|
232
|
+
.flex-container-project-for-panel:hover {
|
|
233
|
+
background-color: rgba(24, 119, 242, 0.2);
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
.flex-child-right {
|
|
242
237
|
flex: 1;
|
|
243
|
-
padding: 18px 0px;
|
|
244
|
-
// height: 100%;
|
|
238
|
+
// padding: 18px 0px;
|
|
245
239
|
}
|
|
246
240
|
|
|
247
241
|
|
|
@@ -249,7 +243,7 @@
|
|
|
249
243
|
// flex: 0 0 20%;
|
|
250
244
|
width: 60px;
|
|
251
245
|
text-align: center;
|
|
252
|
-
padding: 18px 0px;
|
|
246
|
+
// padding: 18px 0px;
|
|
253
247
|
height: 100%;
|
|
254
248
|
}
|
|
255
249
|
// border: 2px solid yellow;
|
|
@@ -315,16 +309,15 @@
|
|
|
315
309
|
overflow: hidden !important;
|
|
316
310
|
text-overflow: ellipsis !important;
|
|
317
311
|
font-family: Helvetica, Helvetica, Arial, sans-serif;
|
|
318
|
-
font-size: 14px;
|
|
312
|
+
font-size: 16px; //14px;
|
|
319
313
|
position: relative;
|
|
320
|
-
top: -1px;
|
|
321
314
|
cursor: pointer;
|
|
315
|
+
a {
|
|
316
|
+
color: #779bbb
|
|
317
|
+
}
|
|
322
318
|
}
|
|
323
319
|
|
|
324
320
|
|
|
325
|
-
.project-name-project-for-panel-on-desktop {
|
|
326
|
-
width: 217px
|
|
327
|
-
}
|
|
328
321
|
|
|
329
322
|
// .project-name-project-for-panel:hover span {
|
|
330
323
|
// color: rgba(0, 0, 0, 0.35);
|
|
@@ -337,7 +330,8 @@
|
|
|
337
330
|
|
|
338
331
|
}
|
|
339
332
|
.project---name:hover {
|
|
340
|
-
color:
|
|
333
|
+
color: rgb(100, 131, 158);
|
|
334
|
+
// font-weight: 600;
|
|
341
335
|
}
|
|
342
336
|
|
|
343
337
|
.view-all-convs-icon:hover {
|
|
@@ -452,13 +446,21 @@
|
|
|
452
446
|
// top: 3px;
|
|
453
447
|
|
|
454
448
|
position: relative;
|
|
455
|
-
top: -8px;
|
|
449
|
+
// top: -8px;
|
|
456
450
|
background: transparent;
|
|
457
451
|
border-radius: 50%;
|
|
458
|
-
width: 50px;
|
|
452
|
+
width: 40px; //50px;
|
|
459
453
|
left: 10px;
|
|
460
|
-
height: 50px;
|
|
454
|
+
height: 40px; //50px;
|
|
461
455
|
cursor: pointer;
|
|
456
|
+
|
|
457
|
+
svg {
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
width: 30px;
|
|
460
|
+
height: auto;
|
|
461
|
+
fill: #779bbb; //rgb(107,107,107);
|
|
462
|
+
margin-top: 7px;
|
|
463
|
+
}
|
|
462
464
|
}
|
|
463
465
|
.unassigned-notifications-icon-wpr:hover {
|
|
464
466
|
background-color: rgba(0, 0, 0, 0.05);
|
|
@@ -467,23 +469,28 @@
|
|
|
467
469
|
.unassigned-notifications-badge {
|
|
468
470
|
position: absolute;
|
|
469
471
|
// top: 12px;
|
|
470
|
-
top: 14px;
|
|
472
|
+
top: 6px;//14px;
|
|
471
473
|
border-radius: 50%;
|
|
472
474
|
background: #e41e3f;
|
|
473
475
|
// width: 24px;
|
|
474
476
|
// height: 24px;
|
|
475
|
-
width: 22px;
|
|
476
|
-
height: 22px;
|
|
477
|
+
width: 20px; //22px;
|
|
478
|
+
height: 20px; //22px;
|
|
477
479
|
color: #fff;
|
|
478
480
|
|
|
479
|
-
left:
|
|
481
|
+
left: 40px; //33px;
|
|
480
482
|
border: 1px solid #fff;
|
|
483
|
+
|
|
484
|
+
display: flex;
|
|
485
|
+
align-content: center;
|
|
486
|
+
justify-content: center;
|
|
487
|
+
align-items: center;
|
|
481
488
|
}
|
|
482
489
|
.notification-count {
|
|
483
|
-
font-size: 12px;
|
|
490
|
+
font-size: 10px; //12px;
|
|
484
491
|
font-weight: 500;
|
|
485
492
|
position: relative;
|
|
486
|
-
top: -1px;
|
|
493
|
+
// top: -1px;
|
|
487
494
|
text-align: center;
|
|
488
495
|
}
|
|
489
496
|
|
|
@@ -132,9 +132,10 @@ export class ProjectItemComponent implements OnInit {
|
|
|
132
132
|
'LABEL_NOT_AVAILABLE',
|
|
133
133
|
'LABEL_BUSY',
|
|
134
134
|
'VIEW_ALL_CONVERSATIONS',
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
135
|
+
'UnassignedConversations',
|
|
136
|
+
// 'CONVERSATIONS_IN_QUEUE',
|
|
137
|
+
// 'CONVERSATION_IN_QUEUE',
|
|
138
|
+
// 'NO_CONVERSATION_IN_QUEUE',
|
|
138
139
|
'PINNED_PROJECT',
|
|
139
140
|
'CHANGE_PINNED_PROJECT',
|
|
140
141
|
"CHANGE_TO_YOUR_STATUS_TO_AVAILABLE",
|