@chat21/chat21-ionic 3.0.63 → 3.0.65-rc1

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 (45) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/deploy_amazon_beta.sh +29 -0
  3. package/deploy_amazon_prod.sh +26 -0
  4. package/deploy_pre.sh +5 -44
  5. package/deploy_prod.sh +6 -54
  6. package/package.json +6 -1
  7. package/publiccode.yml +110 -0
  8. package/src/app/app.component.ts +50 -59
  9. package/src/app/app.module.ts +1 -0
  10. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +2 -2
  11. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +0 -1
  12. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -39
  13. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +18 -6
  14. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +2 -2
  15. package/src/app/chatlib/conversation-detail/message/html/html.component.html +1 -0
  16. package/src/app/chatlib/conversation-detail/message/html/html.component.scss +79 -0
  17. package/src/app/chatlib/conversation-detail/message/html/html.component.spec.ts +25 -0
  18. package/src/app/chatlib/conversation-detail/message/html/html.component.ts +33 -0
  19. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +1 -1
  20. package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +0 -1
  21. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +1 -1
  22. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +19 -0
  23. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +116 -0
  24. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +2 -2
  25. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +2 -2
  26. package/src/app/directives/safe-html.pipe.ts +2 -2
  27. package/src/app/directives/truncate.pipe.spec.ts +8 -0
  28. package/src/app/directives/truncate.pipe.ts +16 -0
  29. package/src/app/pages/conversation-detail/conversation-detail.module.ts +3 -2
  30. package/src/app/pages/conversation-detail/conversation-detail.page.html +4 -2
  31. package/src/app/pages/conversation-detail/conversation-detail.page.ts +12 -23
  32. package/src/app/pages/conversations-list/conversations-list.page.html +21 -12
  33. package/src/app/pages/conversations-list/conversations-list.page.ts +104 -366
  34. package/src/app/pages/loader-preview/loader-preview.module.ts +1 -2
  35. package/src/app/shared/shared.module.ts +4 -0
  36. package/src/assets/js/chat21client.js +1 -1
  37. package/src/{chat-config-mqtt-ver-uploaded.json → chat-config-mqtt-localhost.json} +10 -6
  38. package/src/chat-config-mqtt.json +18 -28
  39. package/src/chat-config-native-mqtt.json +30 -0
  40. package/src/chat-config-pre.json +9 -13
  41. package/src/chat21-core/models/conversation.ts +1 -1
  42. package/src/chat21-core/providers/abstract/conversations-handler.service.ts +1 -1
  43. package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +65 -9
  44. package/src/chat21-core/utils/utils-message.ts +5 -6
  45. package/src/chat-config-pre-test.json +0 -37
@@ -143,7 +143,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
143
143
  arrowkeyLocation = -1
144
144
  public_Key: any;
145
145
  areVisibleCAR: boolean;
146
- support_mode: boolean;
146
+ supportMode: boolean;
147
147
  //SOUND
148
148
  setTimeoutSound: any;
149
149
  audio: any;
@@ -313,7 +313,6 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
313
313
  const conversations = this.conversationsHandlerService.conversations
314
314
  // console.log('[CONVS-DETAIL] conversations', conversations);
315
315
  this.conversation_count = conversations.length
316
- this.logger.log('[CONVS-DETAIL] conversation_count', this.conversation_count)
317
316
  })
318
317
 
319
318
  this.conversationsHandlerService.conversationChanged.subscribe((conv) => {
@@ -321,7 +320,6 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
321
320
  const conversations = this.conversationsHandlerService.conversations
322
321
  // console.log('[CONVS-DETAIL] conversations', conversations);
323
322
  this.conversation_count = conversations.length
324
- this.logger.log('[CONVS-DETAIL] conversation_count', this.conversation_count)
325
323
  if (conv && conv.sender !== this.loggedUser.uid) {
326
324
  this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange data sender ', conv.sender)
327
325
  this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange this.loggedUser.uid ', this.loggedUser.uid)
@@ -333,8 +331,8 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
333
331
  // ARE AT THE END
334
332
  this.updateConversationBadge()
335
333
  }
336
- if (conv.uid === this.conversationWith) {
337
- this.conversationAvatar = setConversationAvatar(conv.conversation_with, conv.conversation_with_fullname, conv.channel_type)
334
+ if(conv.uid && conv.uid === this.conversationWith){
335
+ this.conversationAvatar = setConversationAvatar(conv.conversation_with,conv.conversation_with_fullname,conv.channel_type)
338
336
  }
339
337
 
340
338
  }
@@ -354,15 +352,15 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
354
352
  }
355
353
 
356
354
  getOSCODE() {
357
- this.support_mode = null
355
+ this.supportMode = null
358
356
  if (this.appConfigProvider.getConfig().supportMode === true || this.appConfigProvider.getConfig().supportMode === 'true') {
359
- this.support_mode = true
357
+ this.supportMode = true
360
358
  } else if (this.appConfigProvider.getConfig().supportMode === false || this.appConfigProvider.getConfig().supportMode === 'false') {
361
- this.support_mode = false
359
+ this.supportMode = false
362
360
  } else if (!this.appConfigProvider.getConfig().supportMode) {
363
- this.support_mode = false
361
+ this.supportMode = false
364
362
  }
365
- this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig support_mode', this.support_mode)
363
+ this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig supportMode', this.supportMode)
366
364
  this.public_Key = this.appConfigProvider.getConfig().t2y12PruGU9wUtEGzBJfolMIgK
367
365
  this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig public_Key', this.public_Key)
368
366
 
@@ -375,26 +373,17 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
375
373
  let car = key.split(':')
376
374
  if (car[1] === 'F') {
377
375
  this.areVisibleCAR = false
378
- this.logger.log(
379
- '[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
380
- this.areVisibleCAR,
381
- )
376
+ this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
382
377
  } else {
383
378
  this.areVisibleCAR = true
384
- this.logger.log(
385
- '[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
386
- this.areVisibleCAR,
387
- )
379
+ this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
388
380
  }
389
381
  }
390
382
  })
391
383
 
392
384
  if (!this.public_Key.includes('CAR')) {
393
385
  this.areVisibleCAR = false
394
- this.logger.log(
395
- '[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
396
- this.areVisibleCAR,
397
- )
386
+ this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
398
387
  }
399
388
  } else {
400
389
  this.areVisibleCAR = false
@@ -1127,7 +1116,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1127
1116
  // ----------------------------------------------------------
1128
1117
  // DISPLAY CANNED RESPONSES if message.lastIndexOf("/")
1129
1118
  // ----------------------------------------------------------
1130
- if (this.areVisibleCAR && this.support_mode === true) {
1119
+ if (this.areVisibleCAR && this.supportMode === true) {
1131
1120
  setTimeout(() => {
1132
1121
  if (this.conversationWith.startsWith('support-group')) {
1133
1122
  const pos = message.lastIndexOf('/')
@@ -43,16 +43,17 @@
43
43
  <ion-label part="message-text" class="waiting-for-network-msg"> Waiting for network</ion-label>
44
44
  </ion-item>
45
45
  <!-- supportMode && -->
46
- <ion-item *ngIf="displayNewConvsItem && conversationType !=='archived'" class="ion-no-padding open-iframe-item">
46
+ <ion-item *ngIf="displayNewConvsItem && conversationType !=='archived' && supportMode" class="ion-no-padding open-iframe-item">
47
47
  <div tabindex="0"></div>
48
48
  <!-- <ion-note class="pinned-project">
49
49
  {{ 'PINNED_PROJECT' | translate }}
50
50
  </ion-note> -->
51
51
 
52
- <app-project-item style="width: 100%;"
53
- (openUnsevedConvsEvent)="openUnsevedConversationIframe($event)"
54
- (projectIdEvent)="getLastProjectId($event)">
55
- </app-project-item>
52
+ <app-project-item
53
+ style="width: 100%;"
54
+ (openUnsevedConvsEvent)="openUnsevedConversationIframe($event)"
55
+ (projectIdEvent)="getLastProjectId($event)">
56
+ </app-project-item>
56
57
  </ion-item>
57
58
 
58
59
  <span
@@ -66,10 +67,15 @@
66
67
  <!-- ---------------------------------- -->
67
68
  <!-- ACTIVE CONVERSATION LIST -->
68
69
  <!-- ---------------------------------- -->
69
- <ion-list-conversations *ngIf="conversationType ==='active'" [uidConvSelected]="uidConvSelected"
70
- [listConversations]="conversations" [stylesMap]="stylesMap" [translationMap]="translationMapConversation"
71
- (onConversationSelected)=onConversationSelected($event) (onImageLoaded)="onImageLoaded($event)"
72
- (onConversationLoaded)="onConversationLoaded($event)" (onCloseConversation)="onCloseConversation($event)"
70
+ <ion-list-conversations *ngIf="conversationType ==='active'"
71
+ [uidConvSelected]="uidConvSelected"
72
+ [listConversations]="conversations"
73
+ [stylesMap]="stylesMap"
74
+ [translationMap]="translationMapConversation"
75
+ (onConversationSelected)=onConversationSelected($event)
76
+ (onImageLoaded)="onImageLoaded($event)"
77
+ (onConversationLoaded)="onConversationLoaded($event)"
78
+ (onCloseConversation)="onCloseConversation($event)"
73
79
  [archiveActionNotAllowed]="archiveActionNotAllowed"
74
80
  (onCloseAlert)="onCloseAlert($event)">
75
81
  </ion-list-conversations>
@@ -77,9 +83,12 @@
77
83
  <!-- ---------------------------------- -->
78
84
  <!-- ARCHIVED CONVERSATION LIST -->
79
85
  <!-- ---------------------------------- -->
80
- <ion-list-conversations *ngIf="conversationType ==='archived'" [listConversations]="archivedConversations"
81
- [stylesMap]="stylesMap" [translationMap]="translationMapConversation"
82
- (onConversationSelected)=onConversationSelected($event) (onImageLoaded)="onImageLoaded($event)"
86
+ <ion-list-conversations *ngIf="conversationType ==='archived'"
87
+ [listConversations]="archivedConversations"
88
+ [stylesMap]="stylesMap"
89
+ [translationMap]="translationMapConversation"
90
+ (onConversationSelected)=onConversationSelected($event)
91
+ (onImageLoaded)="onImageLoaded($event)"
83
92
  (onConversationLoaded)="onConversationLoaded($event)">
84
93
  </ion-list-conversations>
85
94
  </ng-template>