2021-12-10 16:08:36 +01:00
|
|
|
<ion-content class="height-100 container-wrapper">
|
2021-08-19 18:54:50 +01:00
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
2023-09-19 10:21:23 +01:00
|
|
|
|
2021-01-27 16:01:49 +01:00
|
|
|
<ion-refresher-content>
|
|
|
|
|
</ion-refresher-content>
|
|
|
|
|
</ion-refresher>
|
2023-07-06 12:18:15 +01:00
|
|
|
<div class="main-content d-flex height-100 border-t-radius viewport-font-size">
|
2021-03-05 11:58:59 +01:00
|
|
|
<!-- Aside left -->
|
2021-07-30 13:49:31 +01:00
|
|
|
<div class="aside-wrapper d-flex flex-column flex-grow-1">
|
2021-03-05 16:43:07 +01:00
|
|
|
<!-- <p class="text-center mt-0 aside-title px-20">Chat</p> -->
|
2023-01-04 12:16:44 +01:00
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="ChatSystemService.loadingWholeList"></ion-progress-bar>
|
2021-03-05 16:43:07 +01:00
|
|
|
<div class="title-content">
|
|
|
|
|
<div class="div-title">
|
2023-07-06 12:18:15 +01:00
|
|
|
<ion-label class="title font-25-em">Chat</ion-label>
|
2021-03-05 16:43:07 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="div-icon">
|
2022-09-26 16:16:37 +01:00
|
|
|
|
2022-10-11 15:35:50 +01:00
|
|
|
<!-- <button (click)="openChatDebuggingPageModal()" title="Nova Conversa Individual" class="btn-no-color font-12">
|
2022-09-26 16:16:37 +01:00
|
|
|
Dev
|
2022-10-11 15:35:50 +01:00
|
|
|
</button> -->
|
2022-01-19 12:32:29 +01:00
|
|
|
<button title="Nova Conversa Individual" class="btn-no-color" (click)="openContactsPage()">
|
2021-11-16 16:00:14 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src="assets/images/icons-chat-new-conversation.svg"></ion-icon>
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src="assets/images/theme/gov/icons-chat-new-conversation.svg"></ion-icon>
|
2022-10-20 15:45:10 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " slot="end" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-chat-new-conversation.svg"></ion-icon>
|
2021-04-09 08:59:22 +01:00
|
|
|
</button>
|
2022-01-19 12:32:29 +01:00
|
|
|
<button title="Novo Grupo" class="btn-no-color" (click)="openNewGroupPage()">
|
2021-11-16 16:00:14 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src="assets/images/icons-chat-new-group.svg" ></ion-icon>
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src="assets/images/theme/gov/icons-chat-new-group.svg" ></ion-icon>
|
2022-10-20 15:45:10 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " slot="end" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-chat-new-group.svg" ></ion-icon>
|
2021-04-09 08:59:22 +01:00
|
|
|
</button>
|
2021-03-05 16:43:07 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-07-27 14:18:45 +01:00
|
|
|
|
2024-06-04 09:31:37 +01:00
|
|
|
<h3>Current Count Object: {{ count$ | async | json }}</h3>
|
2023-09-19 10:21:23 +01:00
|
|
|
|
2024-06-04 09:31:37 +01:00
|
|
|
<div *ngFor="let item of (count$ | async)?.chatRooms | keyvalue">
|
|
|
|
|
<p>{{ item.key }}: {{ item.value | json }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <p>Current Count: {{ (count$ | async)?.count }}</p> -->
|
|
|
|
|
<!-- <p>Current Count Details: {{ (count$ | async)?.details }}</p> -->
|
2021-12-17 16:54:18 +01:00
|
|
|
|
2021-03-04 15:24:47 +01:00
|
|
|
</div>
|
2021-03-05 11:58:59 +01:00
|
|
|
<!-- Aside right -->
|
2021-03-11 16:21:09 +01:00
|
|
|
<div class="aside-content d-none flex-column height-100">
|
2021-12-22 10:31:10 +01:00
|
|
|
|
2024-06-04 09:31:37 +01:00
|
|
|
<div>Current Count: {{ count$ | async }}</div>
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 17:11:41 +01:00
|
|
|
<app-empty-chat [texto]="emptyTextDescription"
|
|
|
|
|
class="height-100 flex-column"
|
2023-08-14 12:15:18 +01:00
|
|
|
[style.display]="showEmptyComponent && !showContacts && !showNewGroup && !showEditGroup && !showGroupContacts && !showGroupMessages && !showNewEvent ? 'flex' : 'none'"
|
2021-07-16 21:17:34 +01:00
|
|
|
#messagecontainer>
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-empty-chat>
|
2021-12-22 10:31:10 +01:00
|
|
|
|
2021-07-22 17:11:41 +01:00
|
|
|
<app-messages class=" height-100 flex-column"
|
2021-07-26 12:12:59 +01:00
|
|
|
*ngIf="showMessages"
|
|
|
|
|
[style.display]="showMessages ? 'flex' : 'none'"
|
2021-07-26 13:01:13 +01:00
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
|
|
|
|
(showEmptyContainer)="showEmptyContainer()"
|
2021-08-20 11:58:28 +01:00
|
|
|
(showEmptyContainer)="showEmptyContainer()"
|
|
|
|
|
(openNewEventPage)="openNewEventPage($event)"
|
2021-07-26 13:01:13 +01:00
|
|
|
[style.display]="showMessages ? 'flex' : 'none'"
|
2021-07-26 19:31:19 +01:00
|
|
|
[roomId]="roomId"
|
|
|
|
|
[showMessages]="showMessages" #messagecontainer>
|
2021-07-26 22:51:13 +01:00
|
|
|
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-messages>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
2021-07-22 17:11:41 +01:00
|
|
|
<app-contacts
|
|
|
|
|
(openMessage)="openMessagesPage($event)"
|
2022-10-11 14:18:55 +01:00
|
|
|
(backToChat)="backToChat($event)"
|
2022-07-27 16:12:46 +01:00
|
|
|
(emptyTextDescriptionOpen)="emptyTextDescriptionOpen()"
|
2022-10-13 14:37:03 +01:00
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
2021-07-26 12:12:59 +01:00
|
|
|
*ngIf="showContacts"
|
2022-10-11 14:18:55 +01:00
|
|
|
[roomId]="roomId"
|
2021-07-16 21:17:34 +01:00
|
|
|
[style.display]="showContacts ? 'flex' : 'none'"
|
|
|
|
|
class=" height-100 flex-column">
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-contacts>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
2022-12-17 17:52:35 +01:00
|
|
|
<!-- <app-contacts
|
|
|
|
|
(openMessage)="openMessagesPage($event)"
|
|
|
|
|
(backToChat)="backToChat($event)"
|
|
|
|
|
(emptyTextDescriptionOpen)="emptyTextDescriptionOpen()"
|
|
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
|
|
|
|
*ngIf="showContacts"
|
|
|
|
|
[roomId]="roomId"
|
|
|
|
|
[style.display]="showContacts ? 'flex' : 'none'"
|
|
|
|
|
class=" height-100 flex-column">
|
|
|
|
|
</app-contacts> -->
|
|
|
|
|
|
2021-07-22 17:11:41 +01:00
|
|
|
<app-new-group
|
|
|
|
|
(addGroupMessage)="openGroupContactsPage($event)"
|
2022-10-11 14:18:55 +01:00
|
|
|
[roomId]="roomId"
|
|
|
|
|
(backToChat)="backToChat($event)"
|
2022-07-27 16:12:46 +01:00
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
2022-09-28 16:33:13 +01:00
|
|
|
*ngIf="showNewGroup"
|
2023-09-19 10:21:23 +01:00
|
|
|
class=" height-100 flex-column d-flex">
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-new-group>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
2021-04-16 11:25:10 +01:00
|
|
|
<app-edit-group [roomId]="roomId"
|
|
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
2021-07-16 21:17:34 +01:00
|
|
|
(openGroupMessage)="openGroupMessagesPage($event)"
|
2021-07-26 12:12:59 +01:00
|
|
|
*ngIf="showEditGroup"
|
2021-07-16 21:17:34 +01:00
|
|
|
[style.display]="showEditGroup ? 'flex' : 'none'"
|
|
|
|
|
class="height-100 flex-column">
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-edit-group>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
2021-07-22 17:11:41 +01:00
|
|
|
<app-group-contacts
|
|
|
|
|
(openGroupMessage)="openGroupMessagesPage($event)"
|
2021-07-26 12:12:59 +01:00
|
|
|
*ngIf="showGroupContacts"
|
2021-07-16 21:17:34 +01:00
|
|
|
[style.display]="showGroupContacts ? 'flex' : 'none'"
|
2021-07-22 17:11:41 +01:00
|
|
|
[roomId]="groupRoomId" class=" height-100 flex-column"
|
2022-10-13 14:37:03 +01:00
|
|
|
(backToChat)="backToChat($event)"
|
2021-07-16 21:17:34 +01:00
|
|
|
>
|
2021-04-16 11:25:10 +01:00
|
|
|
</app-group-contacts>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
2021-04-15 23:57:14 +01:00
|
|
|
<app-group-messages
|
2022-09-30 15:13:36 +01:00
|
|
|
*ngIf="showGroupMessages && ChatSystemService.deleteRecently(roomId) == false"
|
2022-07-04 14:08:51 +01:00
|
|
|
[style.display]="showEmptyComponent ? 'flex' : 'none'"
|
2021-04-15 23:57:14 +01:00
|
|
|
(closeAllDesktopComponents)="closeAllDesktopComponents()"
|
|
|
|
|
(showEmptyContainer)="showEmptyContainer()"
|
2021-04-16 11:25:10 +01:00
|
|
|
(openGroupContacts)="openGroupContactsPage($event)"
|
|
|
|
|
(openEditGroupPage)="openEditGroupPage($event)"
|
2021-08-18 16:40:58 +01:00
|
|
|
(openNewEventPage)="openNewEventPage($event)"
|
2021-08-30 18:56:37 +01:00
|
|
|
(getGroups)="getGroups($event)"
|
2021-07-16 21:17:34 +01:00
|
|
|
[style.display]="showGroupMessages ? 'flex' : 'none'"
|
2021-07-22 17:11:41 +01:00
|
|
|
class=" height-100 flex-column"
|
2021-04-16 11:25:10 +01:00
|
|
|
[roomId]="roomId" #messagecontainer>
|
|
|
|
|
</app-group-messages>
|
2021-08-18 16:40:58 +01:00
|
|
|
|
|
|
|
|
<app-new-event
|
2022-08-01 16:20:26 +01:00
|
|
|
*ngIf="showNewEvent"
|
2021-08-18 16:40:58 +01:00
|
|
|
[profile]=""
|
2021-12-22 10:31:10 +01:00
|
|
|
[roomId]="groupRoomId"
|
2021-08-18 16:40:58 +01:00
|
|
|
[selectedSegment]=segment
|
|
|
|
|
[taskParticipants]="taskParticipants"
|
|
|
|
|
[taskParticipantsCc]="taskParticipantsCc"
|
|
|
|
|
[selectedDate]="eventSelectedDate"
|
|
|
|
|
[eventAttendees]="contacts"
|
2022-08-04 16:39:38 +01:00
|
|
|
(onAddEvent)="closeNewEventComponentAndOpenChat($event)"
|
2022-12-16 15:44:52 +01:00
|
|
|
(openAttendeesComponent)="openAttendeesComponent($event)"
|
2022-10-03 11:02:32 +01:00
|
|
|
(backToChat)="backToChat($event)"
|
2021-08-18 16:40:58 +01:00
|
|
|
[style.display]="showNewEvent ? 'flex' : 'none'"
|
|
|
|
|
class=" height-100 flex-column">
|
|
|
|
|
</app-new-event>
|
|
|
|
|
<app-attendee-modal
|
|
|
|
|
[adding]="adding"
|
|
|
|
|
[taskParticipants]="taskParticipants"
|
|
|
|
|
[taskParticipantsCc]="taskParticipantsCc"
|
2022-12-16 15:44:52 +01:00
|
|
|
(closeComponent)="openNewEventPage()"
|
2021-08-18 16:40:58 +01:00
|
|
|
(setIntervenient)="setIntervenient($event)"
|
|
|
|
|
(setIntervenientCC)="setIntervenientCC($event)"
|
|
|
|
|
(setContact)="setContact($event)"
|
|
|
|
|
[style.display]="showAttendees ? 'flex' : 'none'"
|
|
|
|
|
[footer]="true"
|
|
|
|
|
class=" height-100 flex-column">
|
|
|
|
|
</app-attendee-modal>
|
|
|
|
|
|
2021-03-04 15:24:47 +01:00
|
|
|
</div>
|
2020-10-30 15:22:35 +01:00
|
|
|
</div>
|
2020-09-10 09:48:37 +01:00
|
|
|
</ion-content>
|