@chat21/chat21-ionic 3.0.81-rc.1 → 3.0.81-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 +4 -0
- package/angular.json +1 -0
- package/package.json +1 -1
- package/src/app/components/canned-response/canned-response.component.html +5 -4
- package/src/app/components/canned-response/canned-response.component.scss +16 -0
- package/src/app/components/canned-response/canned-response.component.ts +1 -1
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1 -36
- package/src/chat-config-native-mqtt.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# chat21-ionic ver 3.0
|
|
2
2
|
|
|
3
|
+
### 3.0.81-rc.2
|
|
4
|
+
- changed: canned loader
|
|
5
|
+
- bug-fixed: if search for a string that not correspond with an existing canned, was shown loader ever
|
|
6
|
+
|
|
3
7
|
### 3.0.81-rc.1
|
|
4
8
|
- added: remove bubble-message background if is image or iframe and no text is in message
|
|
5
9
|
- added: new sound if unassigned request arrive
|
package/angular.json
CHANGED
package/package.json
CHANGED
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
<label class="add-canned-response-label" >{{translationMap?.get('AddNewCannedResponse')}}</label>
|
|
19
19
|
</ion-item>
|
|
20
20
|
</div>
|
|
21
|
-
<!--
|
|
22
|
-
<div
|
|
21
|
+
<!-- LOADER -->
|
|
22
|
+
<div class="loader" *ngIf="tagsCannedFilter.length === 0">
|
|
23
23
|
<div class="box">
|
|
24
|
-
<div class="container">
|
|
24
|
+
<!-- <div class="container">
|
|
25
25
|
<span class="circle" [ngStyle]="{'background-color': stylesMap?.get('themeColor')}"></span>
|
|
26
26
|
<span class="circle" [ngStyle]="{'background-color': stylesMap?.get('themeColor')}"></span>
|
|
27
27
|
<span class="circle" [ngStyle]="{'background-color': stylesMap?.get('themeColor')}"></span>
|
|
28
28
|
<span class="circle" [ngStyle]="{'background-color': stylesMap?.get('themeColor')}"></span>
|
|
29
|
-
</div>
|
|
29
|
+
</div> -->
|
|
30
|
+
<div class="spinner" [ngStyle]="{'border-top-color': stylesMap?.get('themeColor')}"></div>
|
|
30
31
|
<div class="label">{{translationMap.get('LABEL_LOADING')}}</div>
|
|
31
32
|
</div>
|
|
32
33
|
</div>
|
|
@@ -204,6 +204,22 @@ ion-item {
|
|
|
204
204
|
animation: grow 500ms linear 0s infinite reverse;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.spinner {
|
|
211
|
+
margin: auto;
|
|
212
|
+
border: 8px solid #EAF0F6;
|
|
213
|
+
border-radius: 50%;
|
|
214
|
+
border-top: 8px solid var(--basic-blue);
|
|
215
|
+
width: 50px;
|
|
216
|
+
height: 50px;
|
|
217
|
+
animation: spinner 1s linear infinite;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@keyframes spinner {
|
|
221
|
+
0% { transform: rotate(0deg); }
|
|
222
|
+
100% { transform: rotate(360deg); }
|
|
207
223
|
}
|
|
208
224
|
|
|
209
225
|
.label{
|
|
@@ -163,7 +163,7 @@ export class CannedResponseComponent implements OnInit {
|
|
|
163
163
|
canned.text = this.replacePlaceholderInCanned(canned.text);
|
|
164
164
|
canned.disabled = true
|
|
165
165
|
});
|
|
166
|
-
if (this.
|
|
166
|
+
if (this.tagsCannedFilter && this.tagsCannedFilter.length === 0) {
|
|
167
167
|
// const button = this.renderer.createElement('button');
|
|
168
168
|
// const buttonText = this.renderer.createText('Click me');
|
|
169
169
|
// this.renderer.appendChild(button, buttonText);
|
|
@@ -720,14 +720,10 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
720
720
|
this.logger.log('[CONVS-DETAIL] - initConversationHandler (else) - this.messages: ', this.messages)
|
|
721
721
|
this.logger.log('[CONVS-DETAIL] - initConversationHandler (else) - this.showMessageWelcome: ', this.showMessageWelcome)
|
|
722
722
|
}
|
|
723
|
-
this.logger.log('[CONVS-DETAIL] - initConversationHandler (else) - message ', this.messages, ' showIonContent', this.showIonContent)
|
|
724
723
|
}
|
|
725
724
|
|
|
726
725
|
initGroupsHandler() {
|
|
727
|
-
if (
|
|
728
|
-
this.conversationWith.startsWith('support-group') ||
|
|
729
|
-
this.conversationWith.startsWith('group-')
|
|
730
|
-
) {
|
|
726
|
+
if (this.conversationWith.startsWith('support-group') || this.conversationWith.startsWith('group-')) {
|
|
731
727
|
this.groupService.initialize(this.tenant, this.loggedUser.uid)
|
|
732
728
|
this.logger.log('[CONVS-DETAIL] - initGroupsHandler - tenant', this.tenant, ' loggedUser UID', this.loggedUser.uid)
|
|
733
729
|
}
|
|
@@ -949,37 +945,6 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
949
945
|
let subscription: any
|
|
950
946
|
let subscriptionKey: string
|
|
951
947
|
|
|
952
|
-
// subscriptionKey = 'BSConversationsChanged'
|
|
953
|
-
// subscription = this.subscriptions.find((item) => item.key === subscriptionKey)
|
|
954
|
-
// if (!subscription) {
|
|
955
|
-
// subscription = this.conversationsHandlerService.conversationChanged.subscribe((data: ConversationModel) => {
|
|
956
|
-
// this.logger.log('[CONVS-DETAIL] subscribe BSConversationsChanged data ', data, ' this.loggedUser.uid:', this.loggedUser.uid)
|
|
957
|
-
|
|
958
|
-
// if (data && data.sender !== this.loggedUser.uid) {
|
|
959
|
-
// this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange data sender ', data.sender)
|
|
960
|
-
// this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange this.loggedUser.uid ', this.loggedUser.uid)
|
|
961
|
-
// this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange is_new ', data.is_new)
|
|
962
|
-
// this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange showButtonToBottom ', this.showButtonToBottom)
|
|
963
|
-
// // UPDATE THE CONVERSATION TO 'READ' IF IT IS ME WHO WRITES THE LAST MESSAGE OF THE CONVERSATION
|
|
964
|
-
// // AND IF THE POSITION OF THE SCROLL IS AT THE END
|
|
965
|
-
// if (!this.showButtonToBottom && data.is_new) {
|
|
966
|
-
// // ARE AT THE END
|
|
967
|
-
// this.updateConversationBadge()
|
|
968
|
-
// }
|
|
969
|
-
// if(data.uid === this.conversationWith){
|
|
970
|
-
// this.conversationAvatar = setConversationAvatar(
|
|
971
|
-
// data.conversation_with,
|
|
972
|
-
// data.conversation_with_fullname,
|
|
973
|
-
// data.channel_type,
|
|
974
|
-
// )
|
|
975
|
-
// }
|
|
976
|
-
|
|
977
|
-
// }
|
|
978
|
-
// })
|
|
979
|
-
// const subscribe = { key: subscriptionKey, value: subscription }
|
|
980
|
-
// this.subscriptions.push(subscribe)
|
|
981
|
-
// }
|
|
982
|
-
|
|
983
948
|
subscriptionKey = 'messageAdded'
|
|
984
949
|
subscription = this.subscriptions.find((item) => item.key === subscriptionKey)
|
|
985
950
|
if (!subscription) {
|
|
@@ -27,5 +27,9 @@
|
|
|
27
27
|
"baseImageUrl": "https://console.native.tiledesk.com/api/",
|
|
28
28
|
"dashboardUrl": "https://console.native.tiledesk.com/dashboard/",
|
|
29
29
|
"testsiteBaseUrl":"https://console.native.tiledesk.com/widget/assets/twp/index.html",
|
|
30
|
-
"authPersistence": "LOCAL"
|
|
30
|
+
"authPersistence": "LOCAL",
|
|
31
|
+
"supportMode": true,
|
|
32
|
+
"archivedButton": true,
|
|
33
|
+
"writeToButton": true,
|
|
34
|
+
"wsUrl":"wss://console.native.tiledesk.com/mqws/ws"
|
|
31
35
|
}
|