@chat21/chat21-ionic 3.0.61-rc8 → 3.0.61

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +6 -0
  3. package/angular.json +2 -0
  4. package/config.xml +0 -1
  5. package/deploy_pre.sh +1 -1
  6. package/deploy_prod.sh +1 -1
  7. package/env.sample +1 -1
  8. package/package.json +4 -4
  9. package/src/app/app-routing.module.ts +15 -0
  10. package/src/app/app.component.ts +12 -9
  11. package/src/app/app.module.ts +11 -3
  12. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -25
  13. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +160 -50
  14. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +108 -18
  15. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +21 -36
  16. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +19 -7
  17. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +35 -40
  18. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -1
  19. package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +13 -10
  20. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +3 -2
  21. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +2 -0
  22. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +142 -71
  23. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +57 -20
  24. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +32 -9
  25. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +98 -24
  26. package/src/app/components/ddp-header/ddp-header.component.html +9 -2
  27. package/src/app/components/ddp-header/ddp-header.component.ts +93 -18
  28. package/src/app/components/project-item/project-item.component.html +1 -1
  29. package/src/app/components/project-item/project-item.component.scss +1 -1
  30. package/src/app/components/project-item/project-item.component.ts +3 -3
  31. package/src/app/components/sidebar/sidebar.component.html +65 -52
  32. package/src/app/components/sidebar/sidebar.component.scss +23 -0
  33. package/src/app/components/sidebar/sidebar.component.ts +74 -26
  34. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +20 -9
  35. package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +20 -3
  36. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +24 -8
  37. package/src/app/pages/conversation-detail/conversation-detail.module.ts +5 -1
  38. package/src/app/pages/conversation-detail/conversation-detail.page.html +19 -10
  39. package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
  40. package/src/app/pages/conversation-detail/conversation-detail.page.ts +229 -389
  41. package/src/app/pages/conversations-list/conversations-list.page.ts +646 -454
  42. package/src/app/pages/create-canned-response/create-canned-response-routing.module.ts +17 -0
  43. package/src/app/pages/create-canned-response/create-canned-response.module.ts +30 -0
  44. package/src/app/pages/create-canned-response/create-canned-response.page.html +150 -0
  45. package/src/app/pages/create-canned-response/create-canned-response.page.scss +55 -0
  46. package/src/app/pages/create-canned-response/create-canned-response.page.spec.ts +24 -0
  47. package/src/app/pages/create-canned-response/create-canned-response.page.ts +319 -0
  48. package/src/app/pages/create-requester/create-requester-routing.module.ts +17 -0
  49. package/src/app/pages/create-requester/create-requester.module.ts +28 -0
  50. package/src/app/pages/create-requester/create-requester.page.html +67 -0
  51. package/src/app/pages/create-requester/create-requester.page.scss +30 -0
  52. package/src/app/pages/create-requester/create-requester.page.spec.ts +24 -0
  53. package/src/app/pages/create-requester/create-requester.page.ts +138 -0
  54. package/src/app/pages/create-ticket/create-ticket-routing.module.ts +17 -0
  55. package/src/app/pages/create-ticket/create-ticket.module.ts +28 -0
  56. package/src/app/pages/create-ticket/create-ticket.page.html +171 -0
  57. package/src/app/pages/create-ticket/create-ticket.page.scss +52 -0
  58. package/src/app/pages/create-ticket/create-ticket.page.spec.ts +24 -0
  59. package/src/app/pages/create-ticket/create-ticket.page.ts +432 -0
  60. package/src/app/pages/loader-preview/loader-preview.page.ts +2 -11
  61. package/src/app/pages/profile-info/profile-info.page.html +2 -2
  62. package/src/app/pages/profile-info/profile-info.page.scss +12 -1
  63. package/src/app/services/tiledesk/tiledesk.service.ts +190 -0
  64. package/src/app/shared/shared.module.ts +1 -1
  65. package/src/assets/i18n/de.json +37 -1
  66. package/src/assets/i18n/en.json +37 -1
  67. package/src/assets/i18n/es.json +38 -2
  68. package/src/assets/i18n/fr.json +38 -2
  69. package/src/assets/i18n/it.json +38 -2
  70. package/src/assets/i18n/pt.json +38 -2
  71. package/src/assets/i18n/ru.json +38 -2
  72. package/src/assets/i18n/sr.json +38 -2
  73. package/src/assets/i18n/tr.json +37 -1
  74. package/src/assets/images/default-avatar-x-select.png +0 -0
  75. package/src/assets/images/priority_icons/high.svg +3 -0
  76. package/src/assets/images/priority_icons/high_v2.svg +14 -0
  77. package/src/assets/images/priority_icons/low.svg +10 -0
  78. package/src/assets/images/priority_icons/low_v2.svg +14 -0
  79. package/src/assets/images/priority_icons/medium.svg +16 -0
  80. package/src/assets/images/priority_icons/medium_v2.svg +11 -0
  81. package/src/assets/images/priority_icons/urgent.svg +4 -0
  82. package/src/assets/images/priority_icons/urgent_v2.svg +16 -0
  83. package/src/chat-config-mqtt.json +25 -16
  84. package/src/chat-config-template.json +5 -4
  85. package/src/chat-config.json +1 -0
  86. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +8 -3
  87. package/src/chat21-core/utils/constants.ts +2 -0
  88. package/src/chat21-core/utils/utils-message.ts +19 -0
  89. package/src/global.scss +33 -9
@@ -225,5 +225,41 @@
225
225
  "Resolve": "Çözmek",
226
226
  "Archive": "Arşivle",
227
227
  "ActionNotAllowed":"İşleme izin verilmiyor",
228
- "YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Artık bu konuşmayı yöneten takım arkadaşları arasında değilsiniz"
228
+ "YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Artık bu konuşmayı yöneten takım arkadaşları arasında değilsiniz",
229
+ "TicketSuccessfullyCreated":"Bilet başarıyla oluşturuldu",
230
+ "Continue":"Devam",
231
+ "ViewArchivedConversations":"Arşivlenmiş konuşmalar",
232
+ "ViewContactsList":"Kişiler listesi",
233
+ "AddAsCannedResponse":"Varsayılan yanıt olarak ekle",
234
+ "AddNewCannedResponse":"Yeni bir hazır yanıt ekle",
235
+ "TitleIsRequired":"Başlık zorunludur",
236
+ "MessageIsRequired":"Mesaj gerekli",
237
+ "Already_present_in_the_dashboard_json":"........",
238
+ "CreateTicket": "Bilet oluştur",
239
+ "Requester": "istekte bulunan",
240
+ "ViewRequesterDetails": "İstek sahibi ayrıntılarını görüntüle",
241
+ "Priority": "Öncelik",
242
+ "urgent": "Acil",
243
+ "high": "Yüksek",
244
+ "medium": "Orta",
245
+ "low": "Düşük",
246
+ "SelectRequester": "Talep edeni seçin",
247
+ "AddRequester": "Ekle istekte bulunan",
248
+ "Subject": "Ders",
249
+ "SelectAssignee": "Atanan seçin",
250
+ "Message": "İleti",
251
+ "CreateNewRequester": "Yeni istek sahibi oluştur",
252
+ "Name": "İsim",
253
+ "NameIsRequired": "İsim gerekli",
254
+ "EnterValidEmail": "Geçerli bir e-posta adresi girin",
255
+ "Title": "Başlık",
256
+ "Add": "Eklemek",
257
+ "AddCustomization": "Kişiselleştirme ekle",
258
+ "SelectACustomizationToAddToYourMessage": "Mesaja eklemek için bir kişiselleştirme değeri seçin",
259
+ "recipient_name_desc": "Temsilcinin cevap verdiği kişinin adı mesaja eklenecektir.",
260
+ "agent_name_desc": "Cevap veren temsilcinin adı mesaja eklenecektir.",
261
+ "First_name_of_recipient": "Alıcının adı",
262
+ "First_name_of_agent": "Ajanın adı",
263
+ "EnterCannedResponseTitle": "Hazır yanıt başlığını girin",
264
+ "WriteMsgToSendToYourVisitors": "Ziyaretçilerinize göndermek için hazır bir yanıt mesajı yazın"
229
265
  }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M3.5 9.9c-.5.3-1.1.1-1.4-.3s-.1-1.1.4-1.4l5-3c.3-.2.7-.2 1 0l5 3c.5.3.6.9.3 1.4-.3.5-.9.6-1.4.3L8 7.2 3.5 9.9z" fill="#ff5630"/>
3
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#B30013;}
7
+ </style>
8
+ <g>
9
+ <path class="st0" d="M3.5,5.7C3,6,2.4,5.8,2.1,5.3S2,4.3,2.5,4l5-3c0.3-0.2,0.7-0.2,1,0l5,3c0.5,0.3,0.6,0.9,0.3,1.4
10
+ C13.6,5.8,13,6,12.5,5.7L8,3L3.5,5.7z"/>
11
+ <path class="st0" d="M8.1,15.2H7.9c-0.5,0-0.9-0.7-0.9-1.5v-7c0-0.8,0.4-1.5,0.9-1.5h0.2C8.6,5,9,5.7,9,6.5v7
12
+ C9,14.5,8.6,15.2,8.1,15.2z"/>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#3C8562;}
7
+ </style>
8
+ <path class="st0" d="M12.5,6.1C13,5.8,13.6,6,13.9,6.5C14.2,7,14,7.6,13.6,7.8l-5,3c-0.3,0.2-0.7,0.2-1,0l-5-3
9
+ C2,7.6,1.9,6.9,2.2,6.5C2.4,6,3.1,5.8,3.5,6.1L8,8.8C8,8.8,12.5,6.1,12.5,6.1z"/>
10
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#3C8562;}
7
+ </style>
8
+ <g>
9
+ <path class="st0" d="M8,13.1l4.5-2.7c0.5-0.3,1.1-0.1,1.3,0.3c0.3,0.5,0.2,1.1-0.3,1.4l-5,3c-0.3,0.2-0.7,0.2-1,0l-5-3
10
+ c-0.5-0.3-0.7-0.8-0.4-1.3s0.9-0.7,1.4-0.4L8,13.1z"/>
11
+ <path class="st0" d="M9,2.6v7c0,0.8-0.4,1.5-0.9,1.3H7.9C7.4,10.9,7,10.2,7,9.4v-7c0-0.8,0.4-1.5,0.9-1.5h0.2C8.6,0.9,9,1.6,9,2.6z
12
+ "/>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Warstwa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFAB00;}
7
+ </style>
8
+ <title>icon/16px/medium-priority</title>
9
+ <desc>Created with Sketch.</desc>
10
+ <g id="icon_x2F_16px_x2F_medium-priority-">
11
+ <g>
12
+ <path class="st0" d="M3,4h10c0.6,0,1,0.4,1,1s-0.4,1-1,1H3C2.4,6,2,5.6,2,5S2.4,4,3,4z M3,10h10c0.6,0,1,0.4,1,1s-0.4,1-1,1H3
13
+ c-0.6,0-1-0.4-1-1S2.4,10,3,10z"/>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 15.9 15.9" style="enable-background:new 0 0 15.9 15.9;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:none;}
7
+ .st1{fill:#616E7D;}
8
+ </style>
9
+ <path class="st0" d="M1,0.9h14v14h-14C0.9,14.9,0.9,0.9,1,0.9z"/>
10
+ <path class="st1" d="M7.9,3.7c-2.3,0-4.3,1.9-4.3,4.3s1.9,4.3,4.3,4.3s4.3-1.9,4.3-4.3S10.4,3.7,7.9,3.7z"/>
11
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path d="M3.47876 7.9c-.5.3-1.1.1-1.4-.4s-.1-1 .4-1.3l5-3c.3-.2.7-.2 1 0l5 3c.5.3.6.9.3 1.4-.2.4-.8.6-1.3.3l-4.5-2.7-4.5 2.7z" fill="#ff5630"/>
3
+ <path d="M3.47876 12.2c-.5.3-1.1.2-1.4-.3s-.1-1.1.4-1.4l5-3c.3-.2.7-.2 1 0l5 3c.5.3.6.9.3 1.4-.3.5-.9.6-1.4.3l-4.4-2.7-4.5 2.7z" fill="#ff7452"/>
4
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#B30013;}
7
+ </style>
8
+ <g>
9
+ <path class="st0" d="M3.5,5.7C3,6,2.4,5.8,2.1,5.3S2,4.3,2.5,4l5-3c0.3-0.2,0.7-0.2,1,0l5,3c0.5,0.3,0.6,0.9,0.3,1.4
10
+ C13.6,5.8,13,6,12.5,5.7L8,3L3.5,5.7z"/>
11
+ <path class="st0" d="M3.5,10C3,10.3,2.4,10.2,2.1,9.7S2,8.6,2.5,8.3l5-3c0.3-0.2,0.7-0.2,1,0l5,3c0.5,0.3,0.6,0.9,0.3,1.4
12
+ s-0.9,0.6-1.4,0.3L8,7.3L3.5,10z"/>
13
+ <path class="st0" d="M8.1,15.2H7.9c-0.5,0-0.9-0.4-0.9-0.9V10c0-0.5,0.4-0.9,0.9-0.9h0.2C8.6,9.1,9,9.5,9,10v4.2
14
+ C9,14.8,8.6,15.2,8.1,15.2z"/>
15
+ </g>
16
+ </svg>
@@ -1,27 +1,36 @@
1
1
  {
2
+ "t2y12PruGU9wUtEGzBJfolMIgK": "",
2
3
  "chatEngine": "mqtt",
3
4
  "uploadEngine": "native",
4
- "pushEngine": "none",
5
+ "pushEngine":"none",
5
6
  "fileUploadAccept":"*/*",
6
- "logLevel": "Debug",
7
+ "logLevel":"info",
8
+ "authPersistence": "LOCAL",
9
+ "supportMode": "true",
10
+ "writeToButton": "true",
11
+ "archivedButton": "true",
7
12
  "firebaseConfig": {
8
- "tenant": "tilechat",
9
- "apiKey": "AIzaSyCoWXHNvP1-qOllCpTshhC6VjPXeRTK0T4",
10
- "authDomain": "chat21-pre-01.firebaseapp.com",
11
- "databaseURL": "https://chat21-pre-01.firebaseio.com",
12
- "projectId": "chat21-pre-01",
13
- "storageBucket": "chat21-pre-01.appspot.com",
14
- "messagingSenderId": "269505353043",
15
- "appId": "1:269505353043:web:b82af070572669e3707da6",
16
- "chat21ApiUrl": "https://us-central1-chat21-pre-01.cloudfunctions.net"
13
+ "tenant":"tilechat",
14
+ "apiKey": "",
15
+ "authDomain": "",
16
+ "databaseURL": "",
17
+ "projectId": "",
18
+ "storageBucket": "",
19
+ "messagingSenderId": "",
20
+ "appId": "",
21
+ "chat21ApiUrl": "",
22
+ "vapidKey": ""
17
23
  },
18
24
  "chat21Config": {
19
25
  "appId": "tilechat",
20
- "MQTTendpoint": "ws://99.80.197.164:15675/ws",
21
- "APIendpoint": "http://99.80.197.164:8004/api"
26
+ "MQTTendpoint": "ws://localhost:8081/mqws/ws",
27
+ "APIendpoint": "/chatapi/api"
22
28
  },
23
- "apiUrl": "http://99.80.197.164:3000/",
24
- "baseImageUrl": "http://99.80.197.164:3000/",
25
- "dashboardUrl": "http://tiledesk-dashboard-pre.s3-eu-west-1.amazonaws.com/native-mqtt/dashboard/2.1.70-beta.1.6/index.html"
29
+ "apiUrl": "/api/",
30
+ "baseImageUrl": "/api/",
31
+ "dashboardUrl": "/dashboard/",
32
+ "wsUrl": "",
33
+ "wsUrlRel": ""
26
34
  }
27
35
 
36
+
@@ -5,6 +5,10 @@
5
5
  "pushEngine":"${PUSH_ENGINE}",
6
6
  "fileUploadAccept":"${FILE_UPLOAD_ACCEPT}",
7
7
  "logLevel":"${LOG_LEVEL}",
8
+ "authPersistence": "${AUTH_PERSISTENCE}",
9
+ "supportMode": "${SUPPORT_MODE}",
10
+ "writeToButton": "${WRITE_TO_BUTTON}",
11
+ "archivedButton": "${ARCHIVED_BUTTON}",
8
12
  "firebaseConfig": {
9
13
  "tenant":"${FIREBASE_TENANT}",
10
14
  "apiKey": "${FIREBASE_APIKEY}",
@@ -26,8 +30,5 @@
26
30
  "baseImageUrl": "${API_BASEIMAGE_URL}",
27
31
  "dashboardUrl": "${DASHBOARD_URL}",
28
32
  "wsUrl": "${WS_URL}",
29
- "wsUrlRel": "${WS_URL_RELATIVE}",
30
- "supportMode": "${SUPPORT_MODE}",
31
- "writeToButton": "${WRITE_TO_BUTTON}",
32
- "archivedButton": "${ARCHIVED_BUTTON}"
33
+ "wsUrlRel": "${WS_URL_RELATIVE}"
33
34
  }
@@ -5,6 +5,7 @@
5
5
  "pushEngine":"none",
6
6
  "fileUploadAccept":"*/*",
7
7
  "logLevel": "Info",
8
+ "authPersistence": "LOCAL",
8
9
  "firebaseConfig": {
9
10
  "tenant":"tilechat",
10
11
  "apiKey": "CHANGEIT",
@@ -18,11 +18,11 @@ import { ConversationHandlerService } from '../abstract/conversation-handler.ser
18
18
  import { LoggerService } from '../abstract/logger.service';
19
19
  import { LoggerInstance } from '../logger/loggerInstance';
20
20
  // utils
21
- import { MSG_STATUS_RECEIVED, CHAT_REOPENED, CHAT_CLOSED, MEMBER_JOINED_GROUP, TYPE_DIRECT, MESSAGE_TYPE_INFO , TOUCHING_OPERATOR} from '../../utils/constants';
21
+ import { MSG_STATUS_RECEIVED, CHAT_REOPENED, CHAT_CLOSED, MEMBER_JOINED_GROUP, TYPE_DIRECT, MESSAGE_TYPE_INFO, TOUCHING_OPERATOR } from '../../utils/constants';
22
22
  import { compareValues, searchIndexInArrayForUid, conversationMessagesRef } from '../../utils/utils';
23
23
 
24
24
 
25
- import { messageType } from 'src/chat21-core/utils/utils-message';
25
+ import { messageType, isEmojii } from 'src/chat21-core/utils/utils-message';
26
26
 
27
27
 
28
28
 
@@ -156,7 +156,8 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
156
156
  typeMsg,
157
157
  attributes,
158
158
  channelType,
159
- false
159
+ false,
160
+ isEmojii(msg)
160
161
  );
161
162
  const messageRef = firebaseMessagesCustomUid.push({
162
163
  language: lang,
@@ -288,6 +289,10 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
288
289
 
289
290
  // verifico che il sender è il logged user
290
291
  msg.isSender = this.isSender(msg.sender, this.loggedUser.uid);
292
+
293
+ //check if message contains only an emojii
294
+ msg.emoticon = isEmojii(msg.text)
295
+
291
296
  // traduco messaggi se sono del server
292
297
  if (msg.attributes && msg.attributes.subtype) {
293
298
  if (msg.attributes.subtype === 'info' || msg.attributes.subtype === 'info/support') {
@@ -112,3 +112,5 @@ export const LogLevel = {
112
112
 
113
113
  export const tranlatedLanguage = ['it', 'en', 'de', 'es', 'pt', 'fr', 'ru', 'tr', 'sr']
114
114
 
115
+
116
+
@@ -85,6 +85,25 @@ export function messageType(msgType: string, message: any) {
85
85
  }
86
86
  }
87
87
 
88
+ export function isEmojii(message: any){
89
+ if (message.length > 2) {
90
+ return false;
91
+ }
92
+ let fistChar = '';
93
+ try {
94
+ fistChar = message.trim(); // .charAt(0);
95
+ } catch (e) {
96
+ return false;
97
+ }
98
+
99
+ const ranges = ['(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])'];
100
+ if (fistChar.match(ranges.join('|'))) {
101
+ return true;
102
+ } else {
103
+ return false;
104
+ }
105
+ }
106
+
88
107
  /** */
89
108
  export function getSizeImg(message: any, maxWidthImage?: number): any {
90
109
  try {
package/src/global.scss CHANGED
@@ -542,6 +542,14 @@ select:-webkit-autofill:focus {
542
542
  color: #f44336;
543
543
  }
544
544
 
545
+ #canned > ion-list > ion-item > div > div.no-canned-available-text {
546
+ color: #1877f2 !important;
547
+ }
548
+
549
+ #canned > ion-list > ion-item > div > div.no-canned-available-text:hover {
550
+ text-decoration: underline;
551
+ }
552
+
545
553
  .highlight-search-string {
546
554
  color: #1877f2 !important;
547
555
  }
@@ -845,28 +853,38 @@ select:-webkit-autofill:focus {
845
853
  }
846
854
 
847
855
 
848
-
849
-
850
-
851
856
  /* OVERWRITE THE DEFAULT STYLE */
852
857
  .nav-mobile-menu {
853
858
  margin-top: 45px !important;
854
859
  }
855
- /* // NK end NEW: AVATAR ON THE SIDEBAR */
856
860
 
857
- /* NK start CUSTOM SCROLL BAR */
858
861
 
859
- ::-webkit-scrollbar {
862
+ /* CUSTOM SCROLL BAR FOR LEFT SIDEBAR */
863
+ .sidebar-wrapper::-webkit-scrollbar {
860
864
  width: 3px;
861
865
  }
862
- ::-webkit-scrollbar-track {
866
+ .sidebar-wrapper::-webkit-scrollbar-track {
863
867
  background-color: #1c2b45;
864
868
  }
865
- ::-webkit-scrollbar-thumb {
869
+ .sidebar-wrapper::-webkit-scrollbar-thumb {
866
870
  background-color: #3c485b;
867
871
  border-radius: 3px;
868
872
  }
869
- /* NK end CUSTOM SCROLL BAR */
873
+
874
+ /* CUSTOM SCROLL BAR FOR USER DETAILS DRAWER */
875
+ #user-details::-webkit-scrollbar {
876
+ width: 3px;
877
+ }
878
+
879
+ #user-details::-webkit-scrollbar-track {
880
+ background-color: #1c2b45;
881
+ }
882
+ #user-details::-webkit-scrollbar-thumb {
883
+ background-color: #3c485b;
884
+ border-radius: 3px;
885
+ }
886
+
887
+ /* end CUSTOM SCROLL BAR */
870
888
 
871
889
  /* SIDEBAR NAV ITEMS */
872
890
 
@@ -965,3 +983,9 @@ ul.dropdown-menu > li > a {
965
983
  color: #647491;
966
984
  padding-top: 10px;
967
985
  }
986
+
987
+ // ng-select custom class in Create ticket modal
988
+ .ng-select.create-ticket-custom-select {
989
+ margin-top: 5px !important;
990
+ }
991
+