@chat21/chat21-ionic 3.4.22 → 3.4.23-rc2
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 +25 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +18 -2
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +4 -3
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +4 -4
- package/src/app/components/utils/user-presence/user-presence.component.scss +4 -2
- package/src/app/directives/tooltip.directive.ts +4 -0
- package/src/chat21-core/utils/utils.ts +2 -0
- package/src/global.scss +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,9 +8,34 @@
|
|
|
8
8
|
### **Copyrigth**:
|
|
9
9
|
*Tiledesk SRL*
|
|
10
10
|
|
|
11
|
+
# 3.4.23-rc2
|
|
12
|
+
- **bug-fixed**: cannot upload xlsx files
|
|
13
|
+
|
|
14
|
+
# 3.4.23-rc1
|
|
15
|
+
- **bug-fixed**: cannot click to change user status
|
|
16
|
+
- **bug-fixed**: tooltip not hided alfter click on it
|
|
17
|
+
|
|
11
18
|
# 3.4.22 in PROD
|
|
12
19
|
- **added**: managed allowed_upload_extentions from project settings
|
|
13
20
|
|
|
21
|
+
# 3.4.21-rc6
|
|
22
|
+
- **added**: managed allowed_upload_extentions from project settings
|
|
23
|
+
|
|
24
|
+
# 3.4.21-rc5
|
|
25
|
+
- **added**: setConversation as read when agent click on it
|
|
26
|
+
|
|
27
|
+
# 3.4.21-rc4
|
|
28
|
+
- **added**: ability to init and decrement new conversation count badge
|
|
29
|
+
|
|
30
|
+
# 3.4.21-rc3
|
|
31
|
+
- **changed**: badge notification for agentDesktop
|
|
32
|
+
|
|
33
|
+
# 3.4.21-rc2
|
|
34
|
+
- **added**: count in newConversation handler event
|
|
35
|
+
|
|
36
|
+
# 3.4.21-rc1
|
|
37
|
+
- **added**: implement badge notification for agentDesktop sw when new conversation is assigned to logged agent
|
|
38
|
+
|
|
14
39
|
# 3.4.21 in PROD
|
|
15
40
|
|
|
16
41
|
# 3.4.20 in PROD
|
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -168,6 +168,7 @@ export class AppComponent implements OnInit {
|
|
|
168
168
|
}, { capture: true });
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
|
|
171
172
|
listenChatAlreadyOpenWithoutParamsInMobileMode() {
|
|
172
173
|
this.events.subscribe('noparams:mobile', (isAlreadyOpenInMobileMode) => {
|
|
173
174
|
// console.log('[APP-COMP] Chat is Already Open In Mobile Mode ', isAlreadyOpenInMobileMode)
|
|
@@ -332,7 +333,7 @@ export class AppComponent implements OnInit {
|
|
|
332
333
|
|
|
333
334
|
listenToPostMsgs() {
|
|
334
335
|
window.addEventListener("message", (event) => {
|
|
335
|
-
this.logger.log("[APP-COMP] message event ", event);
|
|
336
|
+
// this.logger.log("[APP-COMP] message event ", event);
|
|
336
337
|
|
|
337
338
|
if (event && event.data && event.data.action && event.data.parameter) {
|
|
338
339
|
if (event.data.action === 'openJoinConversationModal') {
|
|
@@ -1110,6 +1111,7 @@ export class AppComponent implements OnInit {
|
|
|
1110
1111
|
if (conversation && conversation.is_new === true && this.isInitialized) {
|
|
1111
1112
|
this.manageTabNotification('conv_added', conversation.sound)
|
|
1112
1113
|
this.manageEventNewConversation(conversation)
|
|
1114
|
+
this.setNotification();
|
|
1113
1115
|
}
|
|
1114
1116
|
if(conversation) this.updateConversationsOnStorage()
|
|
1115
1117
|
});
|
|
@@ -1343,7 +1345,10 @@ export class AppComponent implements OnInit {
|
|
|
1343
1345
|
|
|
1344
1346
|
subscribeConversationSelected= (conversation: ConversationModel) => {
|
|
1345
1347
|
if(conversation && conversation.is_new){
|
|
1346
|
-
this.audio_NewConv.pause()
|
|
1348
|
+
this.audio_NewConv.pause();
|
|
1349
|
+
this.conversationsHandlerService.setConversationRead(conversation.uid)
|
|
1350
|
+
//UPDATE NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1351
|
+
this.setNotification();
|
|
1347
1352
|
}
|
|
1348
1353
|
}
|
|
1349
1354
|
|
|
@@ -1419,6 +1424,9 @@ export class AppComponent implements OnInit {
|
|
|
1419
1424
|
this.logger.debug('[APP-COMP]-CONVS - INIT CONV CONVS 2', conversations)
|
|
1420
1425
|
this.events.publish('appcompSubscribeToConvs:loadingIsActive', false);
|
|
1421
1426
|
}
|
|
1427
|
+
|
|
1428
|
+
//INIT NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1429
|
+
this.setNotification();
|
|
1422
1430
|
});
|
|
1423
1431
|
|
|
1424
1432
|
}
|
|
@@ -1635,6 +1643,14 @@ export class AppComponent implements OnInit {
|
|
|
1635
1643
|
this.triggerEvents.triggerOnNewConversationInit(conversation)
|
|
1636
1644
|
}
|
|
1637
1645
|
|
|
1646
|
+
private setNotification() {
|
|
1647
|
+
this.logger.log('[APP-COMP] setNotification for NEW CONVERSATION');
|
|
1648
|
+
if(window['AGENTDESKTOP']){
|
|
1649
|
+
this.logger.log('[APP-COMP] manageNotification AGENTDESKTOP exist', window['AGENTDESKTOP']);
|
|
1650
|
+
window['AGENTDESKTOP']['TAB'].Badge(this.conversationsHandlerService.countIsNew().toString())
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1638
1654
|
|
|
1639
1655
|
@HostListener('document:visibilitychange', [])
|
|
1640
1656
|
visibilitychange() {
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
// transform: translate(0);
|
|
37
37
|
transform: translate(60px);
|
|
38
38
|
display: block;
|
|
39
|
-
left: 0px;
|
|
39
|
+
// left: 0px;
|
|
40
|
+
left: 10px;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
.user-details-btn-close {
|
|
@@ -243,7 +244,7 @@
|
|
|
243
244
|
-webkit-font-smoothing: antialiased;
|
|
244
245
|
vertical-align: middle;
|
|
245
246
|
cursor: pointer;
|
|
246
|
-
|
|
247
|
+
height: 60px;
|
|
247
248
|
&:hover {
|
|
248
249
|
text-decoration: underline;
|
|
249
250
|
}
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
text-align: center;
|
|
259
260
|
|
|
260
261
|
padding-bottom: 15px;
|
|
261
|
-
padding-top:
|
|
262
|
+
padding-top: 56px;
|
|
262
263
|
font-size: 16px;
|
|
263
264
|
font-weight: 400;
|
|
264
265
|
z-index: 1;
|
|
@@ -87,7 +87,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
|
|
|
87
87
|
|
|
88
88
|
subcribeToAuthStateChanged() {
|
|
89
89
|
this.messagingAuthService.BSAuthStateChanged.subscribe((state) => {
|
|
90
|
-
|
|
90
|
+
this.logger.log('[SIDEBAR-USER-DETAILS] BSAuthStateChanged ', state)
|
|
91
91
|
|
|
92
92
|
if (state === 'online') {
|
|
93
93
|
const storedCurrentUser = this.appStorageService.getItem('currentUser')
|
|
@@ -281,7 +281,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
|
|
|
281
281
|
listenToCurrentStoredProject() {
|
|
282
282
|
this.events.subscribe('storage:last_project', projectObjct => {
|
|
283
283
|
if (projectObjct && projectObjct !== 'undefined') {
|
|
284
|
-
//
|
|
284
|
+
// this.logger.log('[SIDEBAR-USER-DETAILS] - GET STORED PROJECT ', projectObjct)
|
|
285
285
|
|
|
286
286
|
//TODO: recuperare info da root e non da id_project
|
|
287
287
|
this.project = {
|
|
@@ -309,7 +309,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
|
|
|
309
309
|
|
|
310
310
|
try {
|
|
311
311
|
this.tiledeskToken = this.appStorageService.getItem('tiledeskToken');
|
|
312
|
-
//
|
|
312
|
+
// this.logger.log('[SIDEBAR-USER-DETAILS] - GET STORED TOKEN ', this.tiledeskToken)
|
|
313
313
|
} catch (err) {
|
|
314
314
|
this.logger.error('[SIDEBAR-USER-DETAILS] - GET STORED TOKEN ', err)
|
|
315
315
|
}
|
|
@@ -346,7 +346,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
|
|
|
346
346
|
|
|
347
347
|
if (projectUser) {
|
|
348
348
|
if (projectUser['user_available'] === false && projectUser['profileStatus'] === 'inactive') {
|
|
349
|
-
//
|
|
349
|
+
// this.logger.log('teammateStatus ', this.teammateStatus)
|
|
350
350
|
this.selectedStatus = this.teammateStatus[2].id;
|
|
351
351
|
this.logger.debug('[SIDEBAR-USER-DETAILS] - PROFILE_STATUS selected option', this.teammateStatus[2].name);
|
|
352
352
|
this.teammateStatus = this.teammateStatus.slice(0)
|
|
@@ -903,6 +903,8 @@ function getMimeTypeFromExtension(extension: string): string {
|
|
|
903
903
|
'.txt': 'text/plain',
|
|
904
904
|
'.doc': 'application/msword',
|
|
905
905
|
'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
906
|
+
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
907
|
+
'.xls': 'application/vnd.ms-excel',
|
|
906
908
|
'.wav' : 'audio/wav'
|
|
907
909
|
// Aggiungi altri tipi MIME se necessario
|
|
908
910
|
};
|
package/src/global.scss
CHANGED
|
@@ -296,7 +296,8 @@ select:-webkit-autofill:focus {
|
|
|
296
296
|
|
|
297
297
|
// SIDEBAR: start
|
|
298
298
|
.sidebar {
|
|
299
|
-
background-color: var(--sidebar-background-color);
|
|
299
|
+
// background-color: var(--sidebar-background-color);
|
|
300
|
+
background-color: var(--sidebar-header-background);
|
|
300
301
|
color: var(--sidebar-color);
|
|
301
302
|
|
|
302
303
|
transition-property: top, bottom, width;
|