mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fixe merge
This commit is contained in:
@@ -11,7 +11,31 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'empty-chat',
|
||||||
loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule)
|
loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'btn-criar',
|
||||||
|
loadChildren: () => import('./shared/buttons/btn-criar/btn-criar.module').then( m => m.BtnCriarPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'btn-adicionar',
|
||||||
|
loadChildren: () => import('./shared/buttons/btn-adicionar/btn-adicionar.module').then( m => m.BtnAdicionarPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'empty-container',
|
||||||
|
loadChildren: () => import('./shared/empty-container/empty-container.module').then( m => m.EmptyContainerPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'events-to-approve',
|
||||||
|
loadChildren: () => import('./shared/gabinete-digital/events-to-approve/events-to-approve.module').then( m => m.EventsToApprovePageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'expedients',
|
||||||
|
loadChildren: () => import('./shared/gabinete-digital/expedients/expedients.module').then( m => m.ExpedientsPageModule)
|
||||||
|
},
|
||||||
|
|
||||||
/* {
|
/* {
|
||||||
path: 'chat',
|
path: 'chat',
|
||||||
|
|||||||
@@ -27,5 +27,4 @@
|
|||||||
<ion-label>Chat</ion-label>
|
<ion-label>Chat</ion-label>
|
||||||
</ion-tab-button>
|
</ion-tab-button>
|
||||||
</ion-tab-bar>
|
</ion-tab-bar>
|
||||||
|
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
@@ -911,7 +911,6 @@ export class AgendaPage implements OnInit {
|
|||||||
this.mobileComponent.showAttendeeModal = false;
|
this.mobileComponent.showAttendeeModal = false;
|
||||||
|
|
||||||
this.closeEventToApprove();
|
this.closeEventToApprove();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async AproveEventEditEvent(data){
|
async AproveEventEditEvent(data){
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ import { SharedModule } from 'src/app/shared/shared.module';
|
|||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { GroupMessagesPage } from 'src/app/shared/chat/group-messages/group-messages.page';
|
import { GroupMessagesPage } from 'src/app/shared/chat/group-messages/group-messages.page';
|
||||||
import { MessagesPage } from 'src/app/shared/chat/messages/messages.page';
|
import { MessagesPage } from 'src/app/shared/chat/messages/messages.page';
|
||||||
|
import { EmptyChatPage } from 'src/app/shared/chat/empty-chat/empty-chat.page';
|
||||||
|
import { ContactsPage } from 'src/app/shared/chat/messages/contacts/contacts.page';
|
||||||
|
import { NewGroupPage } from 'src/app/shared/chat/new-group/new-group.page';
|
||||||
|
import { GroupContactsPage } from 'src/app/shared/chat/group-messages/group-contacts/group-contacts.page';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -24,9 +28,20 @@ import { MessagesPage } from 'src/app/shared/chat/messages/messages.page';
|
|||||||
declarations: [
|
declarations: [
|
||||||
ChatPage,
|
ChatPage,
|
||||||
MessagesPage,
|
MessagesPage,
|
||||||
|
ContactsPage,
|
||||||
GroupMessagesPage,
|
GroupMessagesPage,
|
||||||
|
NewGroupPage,
|
||||||
|
GroupContactsPage,
|
||||||
|
EmptyChatPage,
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
entryComponents: [MessagesPage, GroupMessagesPage]
|
entryComponents: [
|
||||||
|
MessagesPage,
|
||||||
|
ContactsPage,
|
||||||
|
GroupMessagesPage,
|
||||||
|
NewGroupPage,
|
||||||
|
GroupContactsPage,
|
||||||
|
EmptyChatPage,
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class ChatPageModule {}
|
export class ChatPageModule {}
|
||||||
|
|||||||
@@ -10,15 +10,15 @@
|
|||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
<div class="main-content d-flex height-100">
|
<div class="main-content d-flex height-100">
|
||||||
<!-- Aside left -->
|
<!-- Aside left -->
|
||||||
<div class="d-flex aside-wrapper flex-column pt-25">
|
<div class="aside-wrapper d-flex flex-column pt-25">
|
||||||
<!-- <p class="text-center mt-0 aside-title px-20">Chat</p> -->
|
<!-- <p class="text-center mt-0 aside-title px-20">Chat</p> -->
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<div class="div-title">
|
<div class="div-title">
|
||||||
<ion-label class="title">Chat</ion-label>
|
<ion-label class="title">Chat</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-icon">
|
<div class="div-icon">
|
||||||
<ion-icon slot="end" (click)="newGroup()" src="assets/images/icons-chat-new-group.svg" ></ion-icon>
|
<ion-icon slot="end" (click)="openNewGroupPage()" src="assets/images/icons-chat-new-group.svg" ></ion-icon>
|
||||||
<ion-icon slot="end" (click)="selectContact()" src="assets/images/icons-chat-new-conversation.svg"></ion-icon>
|
<ion-icon slot="end" (click)="openContactsPage()" src="assets/images/icons-chat-new-conversation.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
@@ -87,11 +87,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Aside right -->
|
<!-- Aside right -->
|
||||||
<div class="aside-content d-none flex-column height-100">
|
<div class="aside-content d-none flex-column height-100">
|
||||||
<!-- <ion-button (click)="openMessagesPage()">Messages</ion-button>
|
<app-empty-chat [texto]="emptyTextDescription" class="d-flex height-100 flex-column" *ngIf="showEmptyComponent" #messagecontainer></app-empty-chat>
|
||||||
<ion-button (click)="openGroupMessagesPage('MduvQyrQBejb3xMrY')">Groups</ion-button>
|
|
||||||
<ion-button (click)="destroyComponent()">Destroy</ion-button> -->
|
|
||||||
<app-messages class="d-flex height-100 flex-column" [roomId]="roomId" *ngIf="showMessages" #messagecontainer></app-messages>
|
<app-messages class="d-flex height-100 flex-column" [roomId]="roomId" *ngIf="showMessages" #messagecontainer></app-messages>
|
||||||
<app-group-messages class="d-flex height-100 flex-column" [roomId]="roomId" *ngIf="showGroupMessages" #messagecontainer></app-group-messages>
|
<app-contacts (openMessage)="openMessagesPage($event)" *ngIf="showContacts" class="d-flex height-100 flex-column"></app-contacts>
|
||||||
|
<app-new-group (addGroupMessage)="openGroupContactsPage($event)" *ngIf="showNewGroup" class="d-flex height-100 flex-column"></app-new-group>
|
||||||
|
<app-group-contacts (openGroupMessage)="openGroupMessagesPage($event)" [roomId]="groupRoomId" class="d-flex height-100 flex-column" *ngIf="showGroupContacts"></app-group-contacts>
|
||||||
|
<app-group-messages (openGroupContacts)="openGroupContactsPage($event)" *ngIf="showGroupMessages" class="d-flex height-100 flex-column" [roomId]="roomId" #messagecontainer></app-group-messages>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ ion-content{
|
|||||||
.title-content{
|
.title-content{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
overflow: auto;
|
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
|
|||||||
@@ -57,11 +57,18 @@ export class ChatPage implements OnInit {
|
|||||||
componentRef: any;
|
componentRef: any;
|
||||||
|
|
||||||
roomId:any;
|
roomId:any;
|
||||||
|
groupRoomId:any;
|
||||||
|
showEmptyComponent=true;
|
||||||
showMessages=false;
|
showMessages=false;
|
||||||
|
showContacts=false;
|
||||||
|
showNewGroup=false;
|
||||||
showGroupMessages=false;
|
showGroupMessages=false;
|
||||||
|
showGroupContacts=false;
|
||||||
|
emptyTextDescription = 'Sem conversa selecionada';
|
||||||
|
|
||||||
@Output() getRoomInfo;
|
@Output() getRoomInfo;
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private http:HttpClient,
|
private http:HttpClient,
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
@@ -75,11 +82,6 @@ export class ChatPage implements OnInit {
|
|||||||
/* this.headers = this.headers.set('X-User-Id', 'GqjNWiLrGEHRna7Zn');
|
/* this.headers = this.headers.set('X-User-Id', 'GqjNWiLrGEHRna7Zn');
|
||||||
this.headers = this.headers.set('X-Auth-Token', 'SJwIgtlqfloPK696fpc2VBvyDluipuIHKB_0Q6-9ycJ'); */
|
this.headers = this.headers.set('X-Auth-Token', 'SJwIgtlqfloPK696fpc2VBvyDluipuIHKB_0Q6-9ycJ'); */
|
||||||
}
|
}
|
||||||
closeAllDesktopComponent(){
|
|
||||||
this.desktopComponent = {
|
|
||||||
showMessages: false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.segment = "Contactos";
|
this.segment = "Contactos";
|
||||||
|
|
||||||
@@ -99,7 +101,24 @@ export class ChatPage implements OnInit {
|
|||||||
}
|
}
|
||||||
closeAllDesktopComponents() {
|
closeAllDesktopComponents() {
|
||||||
this.showMessages=false;
|
this.showMessages=false;
|
||||||
|
this.showContacts=false;
|
||||||
|
this.showNewGroup=false;
|
||||||
this.showGroupMessages=false;
|
this.showGroupMessages=false;
|
||||||
|
this.showEmptyComponent=false;
|
||||||
|
this.showGroupContacts=false;
|
||||||
|
console.log('All components closed!');
|
||||||
|
}
|
||||||
|
openGroupContactsPage(data){
|
||||||
|
console.log(data);
|
||||||
|
this.groupRoomId = data;
|
||||||
|
console.log(this.groupRoomId);
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
if(window.innerWidth <= 1024){
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.showGroupContacts = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
openMessagesPage(rid) {
|
openMessagesPage(rid) {
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
@@ -107,22 +126,46 @@ export class ChatPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
|
this.showEmptyComponent = false;
|
||||||
this.roomId = rid;
|
this.roomId = rid;
|
||||||
this.showMessages=true;
|
this.showMessages=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
openGroupMessagesPage(rid) {
|
openContactsPage() {
|
||||||
|
console.log('OK');
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
this.openGroupMessagesModal(rid);
|
//this.selectContact();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log('here');
|
||||||
|
this.showContacts=true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
openNewGroupPage() {
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.newGroup();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
this.roomId = rid;
|
this.showNewGroup=true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
openGroupMessagesPage(data) {
|
||||||
|
console.log('HERE');
|
||||||
|
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.openGroupMessagesModal(data);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
this.showEmptyComponent = false;
|
||||||
|
this.roomId = data;
|
||||||
this.showGroupMessages=true;
|
this.showGroupMessages=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onSegmentChange(){
|
onSegmentChange(){
|
||||||
this.load();
|
this.load();
|
||||||
}
|
}
|
||||||
@@ -219,7 +262,7 @@ export class ChatPage implements OnInit {
|
|||||||
modal.onDidDismiss();
|
modal.onDidDismiss();
|
||||||
}
|
}
|
||||||
async openMessagesModal(roomId:any){
|
async openMessagesModal(roomId:any){
|
||||||
this.closeAllDesktopComponent();
|
this.closeAllDesktopComponents();
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
<div class="content-details">
|
<div class="content-details">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<p>{{customDate}}</p>
|
<p>{{customDate}}</p>
|
||||||
<p>das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'hh:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
<p>das {{loadedEvent.workflowInstanceDataFields.StartDate}} às {{loadedEvent.workflowInstanceDataFields.EndDate}}</p>
|
||||||
<p *ngIf="!loadedEvent.workflowInstanceDataFields.IsRecurring">(Não se repete)</p>
|
<p *ngIf="!loadedEvent.workflowInstanceDataFields.IsRecurring">(Não se repete)</p>
|
||||||
<p *ngIf="loadedEvent.workflowInstanceDataFields.IsRecurring">Repete</p>
|
<p *ngIf="loadedEvent.workflowInstanceDataFields.IsRecurring">Repete</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ S
|
|||||||
this.segment = this.navParams.get('segment');
|
this.segment = this.navParams.get('segment');
|
||||||
/* console.log(this.navParams.get('md')); */
|
/* console.log(this.navParams.get('md')); */
|
||||||
console.log(this.segment);
|
console.log(this.segment);
|
||||||
|
|
||||||
this.LoadToApproveEvents();
|
this.LoadToApproveEvents();
|
||||||
|
|
||||||
|
|
||||||
@@ -64,9 +65,9 @@ S
|
|||||||
this.eventsMDGPRList = res;
|
this.eventsMDGPRList = res;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async openApproveModal(eventSerialNumber){
|
async openApproveModal(eventSerialNumber){
|
||||||
|
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
classs = 'cal-modal modal modal-desktop'
|
classs = 'cal-modal modal modal-desktop'
|
||||||
@@ -79,7 +80,7 @@ S
|
|||||||
componentProps:{
|
componentProps:{
|
||||||
serialNumber: eventSerialNumber,
|
serialNumber: eventSerialNumber,
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'event-list',
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -87,6 +88,7 @@ S
|
|||||||
|
|
||||||
modal.onDidDismiss();
|
modal.onDidDismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh(event) {
|
doRefresh(event) {
|
||||||
this.LoadToApproveEvents();
|
this.LoadToApproveEvents();
|
||||||
console.log('refresh');
|
console.log('refresh');
|
||||||
|
|||||||
+145
-176
@@ -1,10 +1,10 @@
|
|||||||
<ion-header class="ion-no-border">
|
<!-- <ion-header hidden class="ion-no-border">
|
||||||
<ion-toolbar class="header-toolbar">
|
<ion-toolbar class="header-toolbar">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<app-btn-modal-dismiss></app-btn-modal-dismiss>
|
<app-btn-modal-dismiss></app-btn-modal-dismiss>
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Detalhes do Expediente</ion-label>
|
<ion-label class="title">{{ task.Folio}}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-icon">
|
<div class="div-icon">
|
||||||
<ion-menu-button autoHide="false">
|
<ion-menu-button autoHide="false">
|
||||||
@@ -14,19 +14,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
|
||||||
<!-- <ion-header>
|
|
||||||
<ion-toolbar class="bg-blue">
|
|
||||||
<ion-buttons slot="start">
|
|
||||||
<ion-back-button defaultHref="/expediente"></ion-back-button>
|
|
||||||
</ion-buttons>
|
|
||||||
<ion-title>Expediente</ion-title>
|
|
||||||
<ion-buttons slot="end">
|
|
||||||
<ion-menu-button autoHide="false">
|
|
||||||
<ion-icon name="ellipsis-vertical-outline"></ion-icon>
|
|
||||||
</ion-menu-button>
|
|
||||||
</ion-buttons>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-header> -->
|
</ion-header> -->
|
||||||
|
|
||||||
<ion-menu autoHide="false" side="end" content-id="main-content">
|
<ion-menu autoHide="false" side="end" content-id="main-content">
|
||||||
@@ -68,172 +55,154 @@
|
|||||||
<ion-menu-button></ion-menu-button>
|
<ion-menu-button></ion-menu-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-content padding>
|
<ion-content class="height-100">
|
||||||
<div *ngIf="task">
|
<div class="main-content d-flex height-100">
|
||||||
<h3 class="h3-event-title">Detalhes do Expediente</h3>
|
<div class="content d-flex flex-column" *ngIf="task">
|
||||||
<ion-item-group>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label position="stacked">Assunto</ion-label>
|
|
||||||
<ion-input disabled="true">{{ task.Folio }}</ion-input>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label position="stacked">Remetentes</ion-label>
|
|
||||||
<ion-input disabled="true">{{task.Remetente}}</ion-input><!-- {{ task.Senders }} -->
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label position="stacked">Data</ion-label>
|
|
||||||
<ion-input disabled="true" value=''>{{ task.CreateDate | date: 'dd-MM-yy | hh:mm'}}</ion-input>
|
|
||||||
</ion-item>
|
|
||||||
<ion-button (click)="viewDocument()" class="btn-ok-no-width" fill="clear" color="#fff" shape="round" expand="block">
|
|
||||||
<ion-icon name="attach" slot="start"></ion-icon>
|
|
||||||
Ver documento
|
|
||||||
</ion-button>
|
|
||||||
</ion-item-group>
|
|
||||||
<div *ngIf="eventsList">
|
|
||||||
<h3 class="h3-event-title">Eventos Associados</h3>
|
|
||||||
<!-- <ion-list>
|
|
||||||
<ion-item-sliding>
|
|
||||||
<ion-item lines="none"
|
|
||||||
*ngFor="let event of eventsList"
|
|
||||||
[routerLink]="['/home/gabinete-digital/expediente/events/', event.EventId, 'gabinete-digital/expediente/' + serialnumber]">
|
|
||||||
<div class="div-item-{{event.CalendarName}}">
|
|
||||||
<div class="div-up">
|
|
||||||
<div class="div-icon">
|
|
||||||
<ion-icon slot="start" name="reader"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="div-content-{{event.CalendarName}}">
|
|
||||||
<h3 class="capitalizeText">{{event.Subject}}</h3>
|
|
||||||
<p>{{event.StartDate | date: 'dd-MM-yy | hh:mm'}} - {{event.EndDate| date: 'hh:mm'}}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="div-botton">
|
|
||||||
<div class="div-botton-left">
|
|
||||||
<ion-icon class="ion-icon-location" slot="start" name="location"></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="div-botton-middle">
|
|
||||||
<p class="item-list-small capitalizeText">{{event.Location}}</p>
|
|
||||||
</div>
|
|
||||||
<div *ngIf="event.HasAttachments" class="div-botton-right">
|
|
||||||
<ion-icon class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ion-item>
|
|
||||||
</ion-item-sliding>
|
|
||||||
</ion-list> -->
|
|
||||||
|
|
||||||
<ion-list>
|
<div class="main-header">
|
||||||
<div *ngIf="eventsList">
|
<div class="title-content">
|
||||||
<ion-item-sliding>
|
<app-btn-modal-dismiss></app-btn-modal-dismiss>
|
||||||
<ion-item
|
<div class="middle">
|
||||||
class="Rectangle" lines="none"
|
<ion-label class="title">{{ task.Folio}}</ion-label>
|
||||||
*ngFor="let event of eventsList"
|
</div>
|
||||||
(click)="viewEventDetail(event.EventId)"
|
<div class="div-icon">
|
||||||
>
|
<ion-menu-button autoHide="false">
|
||||||
<!-- [routerLink]="['/home/events', event.EventId, 'events']" -->
|
<ion-icon name="ellipsis-vertical-outline"></ion-icon>
|
||||||
<div class="content-{{profile}}-{{event.CalendarName}}">
|
</ion-menu-button>
|
||||||
<div class="approve-event-time">
|
</div>
|
||||||
<p>{{event.StartDate | date: 'hh:mm'}}</p>
|
</div>
|
||||||
<p>{{event.EndDate | date: 'hh:mm'}}</p>
|
</div>
|
||||||
</div>
|
<div class="upper-content">
|
||||||
<div class="approve-event-detail">
|
<div class="content-details">
|
||||||
<p *ngIf="event.StartDate != event.EndDate">{{event.StartDate | date: 'd/M/yy' }} - {{ event.EndDate | date: 'dd/mm/yy'}} | {{event.Location}}</p>
|
<ion-label>
|
||||||
<p *ngIf="event.StartDate == event.EndDate">{{event.StartDate | date: 'd/M/yy' }} | {{event.Location}}</p>
|
<p><span class="date">Sexta, 14 de Abril</span><span class="label">Expediente</span></p>
|
||||||
<h3>{{event.Subject}}</h3>
|
<p><span class="color-red">Muitíssimo urgente</span></p>
|
||||||
</div>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</ion-item>
|
</div>
|
||||||
</ion-item-sliding>
|
<div class="middle-content">
|
||||||
|
<h5>Intervenientes</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label>
|
||||||
|
<div *ngFor="let interveniente of intervenientes">
|
||||||
|
<p>{{interveniente.Name}}</p>
|
||||||
|
</div>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<h5>Com conhecimento</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label>
|
||||||
|
<div *ngFor="let c of cc">
|
||||||
|
<p>{{c.Name}}</p>
|
||||||
|
</div>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<h5>Detalhes</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label>
|
||||||
|
<p [innerHTML]="task.Note"></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</div>
|
||||||
|
<div class="bottom-content width-100">
|
||||||
|
<ion-list>
|
||||||
|
<h5>Documentos Anexados</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label
|
||||||
|
(click)="viewDocument()">
|
||||||
|
<p class="attach-title-item">{{ task.Folio }}<span class="span-right color-red btn-size"><ion-icon name="close"></ion-icon></span></p>
|
||||||
|
<p><span class="span-left">{{task.Remetente}}</span><span class="span-right">{{ task.CreateDate | date: 'dd/MM/yy' }}</span></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
</ion-list>
|
|
||||||
|
|
||||||
|
<div *ngIf="eventsList">
|
||||||
|
<h3 class="h3-event-title">Eventos Associados</h3>
|
||||||
|
<ion-list>
|
||||||
|
<div *ngIf="eventsList">
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-item
|
||||||
|
class="Rectangle" lines="none"
|
||||||
|
*ngFor="let event of eventsList"
|
||||||
|
(click)="viewEventDetail(event.EventId)"
|
||||||
|
>
|
||||||
|
<!-- [routerLink]="['/home/events', event.EventId, 'events']" -->
|
||||||
|
<div class="content-{{profile}}-{{event.CalendarName}}">
|
||||||
|
<div class="approve-event-time">
|
||||||
|
<p>{{event.StartDate | date: 'hh:mm'}}</p>
|
||||||
|
<p>{{event.EndDate | date: 'hh:mm'}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="approve-event-detail">
|
||||||
|
<p *ngIf="event.StartDate != event.EndDate">{{event.StartDate | date: 'd/M/yy' }} - {{ event.EndDate | date: 'dd/mm/yy'}} | {{event.Location}}</p>
|
||||||
|
<p *ngIf="event.StartDate == event.EndDate">{{event.StartDate | date: 'd/M/yy' }} | {{event.Location}}</p>
|
||||||
|
<h3>{{event.Subject}}</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
</ion-item-sliding>
|
||||||
|
</div>
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div *ngIf="!eventsList">
|
<div class="aside-right flex-column height-100">
|
||||||
<ion-list>
|
<div class="buttons">
|
||||||
<ion-list-header>
|
<button full class="btn-ok" shape="round" >Efectuar dispacho</button>
|
||||||
<ion-label>
|
<button class="btn-cancel" shape="round" >Descartar</button>
|
||||||
|
<div class="solid"></div>
|
||||||
|
<button full class="btn-cancel" shape="round" >Solicitar</button>
|
||||||
|
<button class="btn-cancel" shape="round" >Pedido de Deferimento</button>
|
||||||
|
<button full class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||||
|
<button class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||||
|
<div class="solid"></div>
|
||||||
|
<button class="btn-cancel" shape="round" >Executar</button>
|
||||||
|
<button full class="btn-cancel" shape="round" >Delegar</button>
|
||||||
|
<button class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="!task">
|
||||||
|
<ion-list>
|
||||||
|
<ion-list-header>
|
||||||
|
<ion-label>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</ion-label>
|
||||||
|
</ion-list-header>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-button color="medium" shape="round" expand="block">
|
||||||
|
<!-- <ion-icon color="medium" name="attach" slot="start"></ion-icon> -->
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
</ion-label>
|
</ion-button>
|
||||||
</ion-list-header>
|
</ion-list>
|
||||||
<ion-item>
|
</div>
|
||||||
<ion-thumbnail slot="start">
|
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
|
||||||
</ion-thumbnail>
|
|
||||||
<ion-label>
|
|
||||||
<h3>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 60%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-thumbnail slot="start">
|
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
|
||||||
</ion-thumbnail>
|
|
||||||
<ion-label>
|
|
||||||
<h3>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 60%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
|
|
||||||
</ion-list>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div *ngIf="!task">
|
|
||||||
<ion-list>
|
|
||||||
<ion-list-header>
|
|
||||||
<ion-label>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-label>
|
|
||||||
</ion-list-header>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<h3>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<h3>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</h3>
|
|
||||||
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<h3>
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
|
||||||
</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-button color="medium" shape="round" expand="block">
|
|
||||||
<!-- <ion-icon color="medium" name="attach" slot="start"></ion-icon> -->
|
|
||||||
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
|
||||||
</ion-button>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
|
|||||||
+141
-146
@@ -1,19 +1,24 @@
|
|||||||
@import '~src/function.scss';
|
@import '~src/function.scss';
|
||||||
.header-toolbar{
|
.content{
|
||||||
--background:transparent;
|
padding: 30px 20px 0 20px !important;
|
||||||
--opacity: 1;
|
margin: 0;
|
||||||
|
float: left;
|
||||||
.main-header{
|
}
|
||||||
width: 100%; /* 400px */
|
.color-red{
|
||||||
height: 100%;
|
font-weight: 500;
|
||||||
font-family: Roboto;
|
color:#d30a0a !important;
|
||||||
border-top-left-radius: 25px;
|
}
|
||||||
border-top-right-radius: 25px;
|
.btn-size{
|
||||||
background-color: #fff;
|
font-size: 18px !important;
|
||||||
overflow:hidden;
|
}
|
||||||
padding: 30px 20px 0px 20px;
|
.main-header{
|
||||||
color:#000;
|
font-family: Roboto;
|
||||||
transform: translate3d(0, 1px, 0);
|
border-top-left-radius: 25px;
|
||||||
|
border-top-right-radius: 25px;
|
||||||
|
background-color: #fff;
|
||||||
|
overflow:auto;
|
||||||
|
color:#000;
|
||||||
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|
||||||
.header-top{
|
.header-top{
|
||||||
width: 360px;
|
width: 360px;
|
||||||
@@ -67,6 +72,8 @@
|
|||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
float: left;
|
float: left;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
.div-icon{
|
.div-icon{
|
||||||
width: 40px;
|
width: 40px;
|
||||||
@@ -75,8 +82,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ion-item-group{
|
ion-item-group{
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
}
|
}
|
||||||
@@ -85,141 +91,130 @@ ion-button{
|
|||||||
width: 80%;
|
width: 80%;
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
}
|
}
|
||||||
.h3-event-title{
|
|
||||||
padding: 15px 0 0px 25px;
|
|
||||||
font-weight: bold;
|
.upper-content{
|
||||||
|
font-family: Roboto;
|
||||||
|
margin-left: 41px;
|
||||||
|
overflow: auto;
|
||||||
|
font-size: 18px;
|
||||||
|
|
||||||
|
.label{
|
||||||
|
border-radius: 20px;
|
||||||
|
background: #ffb703;
|
||||||
|
float: right;
|
||||||
|
padding: 5px 13.5px 5px 13.5px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-calendar-type ion-button{
|
||||||
|
height: 25px;
|
||||||
|
}
|
||||||
|
.content-details{
|
||||||
|
font-size: 17px;
|
||||||
|
.date{
|
||||||
|
color: #797979;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.middle-conten{
|
||||||
|
.middle-content p{
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bottom-content{
|
||||||
|
//width: 360px;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
.bottom-content h3{
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0 0 0 10px;
|
||||||
|
}
|
||||||
|
.attach-document{
|
||||||
|
font-size: 15px;
|
||||||
|
color: #0d89d1;
|
||||||
|
margin: 5px 5px 5px 10px;
|
||||||
|
padding: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.attach-icon{
|
||||||
|
width: 37px;
|
||||||
|
font-size: 35px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.attach-title-item{
|
||||||
|
font-size: 18px;
|
||||||
|
width: 100%;
|
||||||
|
color:#0d89d1;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
/* SPAN */
|
||||||
|
.span-left{
|
||||||
|
float: left;
|
||||||
|
font-size: 15x;
|
||||||
|
}
|
||||||
|
.span-right{
|
||||||
|
text-align: right;
|
||||||
|
float: right;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.aside-right{
|
||||||
|
padding: 30px 20px 0 20px !important;
|
||||||
|
|
||||||
|
.arrow-right{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
.arrow-right-icon{
|
||||||
|
width: 37px;
|
||||||
|
float: right;
|
||||||
|
font-size: 35px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.buttons{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.btn-ok, .btn-cancel, .btn-delete{
|
||||||
|
height: auto !important;
|
||||||
|
font-size: 16px !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
padding: 15px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
border-top: 1px solid #ebebeb;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//DIV
|
@media only screen and (max-width: 1023px) {
|
||||||
.div-item-Oficial{
|
.content{
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
margin: 10px 0 5px 0;
|
|
||||||
/* background: #cab0dc; */
|
|
||||||
/* border-radius: 20px; */
|
|
||||||
/* padding: 10px; */
|
|
||||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
|
||||||
}
|
|
||||||
.div-item-Pessoal{
|
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
margin: 10px 0 5px 0;
|
|
||||||
/* background: #cbeecb; */
|
|
||||||
/* border-radius: 20px; */
|
|
||||||
/* padding: 10px; */
|
|
||||||
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
|
||||||
}
|
|
||||||
.div-up{
|
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.div-up h3{
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 17px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.aside-right{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
.div-icon{
|
.div-icon{
|
||||||
width: 10%;
|
display: none;
|
||||||
font-size: 22px;
|
|
||||||
float: left;
|
|
||||||
color: #808080;
|
|
||||||
}
|
}
|
||||||
.div-icon ion-icon{
|
.content{
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
}
|
|
||||||
.div-content-Oficial{
|
|
||||||
width: 85%;
|
|
||||||
float: left;
|
|
||||||
border-left: 4px solid #cab0dc;
|
|
||||||
padding: 0 0 0 12px;
|
|
||||||
}
|
|
||||||
.div-content-Pessoal{
|
|
||||||
width: 85%;
|
|
||||||
float: left;
|
|
||||||
border-left: 4px solid #cbeecb;
|
|
||||||
padding: 0 0 0 12px;
|
|
||||||
}
|
|
||||||
.div-content-Oficial h3, .div-content-Pessoal h3{
|
|
||||||
font-size: 14pt;
|
|
||||||
/* border: 1px solid red; */
|
|
||||||
}
|
|
||||||
.div-content-Oficial p, .div-content-Pessoal p{
|
|
||||||
font-size: 12pt;
|
|
||||||
color: rgb(94, 92, 92);
|
|
||||||
padding: 0 !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
.div-botton{
|
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
margin: 10px 0 5px 0;
|
|
||||||
}
|
|
||||||
.div-botton-left{
|
|
||||||
width: 10%;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.ion-icon-location{
|
|
||||||
text-align: center;
|
|
||||||
display: block;
|
|
||||||
color: #000;
|
|
||||||
font-size: 16px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
.div-botton-middle{
|
|
||||||
width: 75%;
|
width: 75%;
|
||||||
float: left;
|
border-right: 1px solid #d8d8d8;
|
||||||
margin-top: 0.5px;
|
|
||||||
}
|
}
|
||||||
.div-botton-middle p{
|
|
||||||
padding: 0;
|
.aside-right{
|
||||||
margin: 0;
|
width: 25%;
|
||||||
}
|
|
||||||
.div-botton-right{
|
|
||||||
width: 10%;
|
|
||||||
float: left;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.ion-icon-attach{
|
|
||||||
color: #666666;
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
/* TOGGLE BUTTON */
|
|
||||||
.switch {
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
width: 90px;
|
|
||||||
height: 34px;
|
|
||||||
float: right;
|
|
||||||
margin:20px 20px 0 0;
|
|
||||||
}
|
|
||||||
.div-top-header{
|
|
||||||
width: 400px;
|
|
||||||
margin: 6px auto;
|
|
||||||
background-color: #0782c9;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.div-search{
|
|
||||||
font-size: 45px;
|
|
||||||
float: left;
|
|
||||||
margin: 0 0 0 10px
|
|
||||||
}
|
|
||||||
.div-logo{
|
|
||||||
background: transparent;
|
|
||||||
width: 150px;
|
|
||||||
margin: 2.5px 0 2.5px 71px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.div-logo img{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.div-profile{
|
|
||||||
font-size: 45px;
|
|
||||||
float: right;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
+15
-1
@@ -26,6 +26,8 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
eventsList: Event[];
|
eventsList: Event[];
|
||||||
serialnumber: string;
|
serialnumber: string;
|
||||||
profile: string;
|
profile: string;
|
||||||
|
intervenientes: any;
|
||||||
|
cc: any;
|
||||||
|
|
||||||
constructor(private activateRoute: ActivatedRoute,
|
constructor(private activateRoute: ActivatedRoute,
|
||||||
private processes: ProcessesService,
|
private processes: ProcessesService,
|
||||||
@@ -62,14 +64,26 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
this.processes.GetTask(serial).subscribe(res => {
|
this.processes.GetTask(serial).subscribe(res => {
|
||||||
this.task = {
|
this.task = {
|
||||||
"SerialNumber": res.serialNumber,
|
"SerialNumber": res.serialNumber,
|
||||||
"Folio": res.workflowInstanceFolio,
|
"Folio": res.workflowInstanceDataFields.Subject,
|
||||||
"Senders": res.originator.email,
|
"Senders": res.originator.email,
|
||||||
"CreateDate": momentG(new Date(res.taskStartDate),'yyyy-MM-dd HH:mm:ss'),
|
"CreateDate": momentG(new Date(res.taskStartDate),'yyyy-MM-dd HH:mm:ss'),
|
||||||
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
||||||
"Remetente": res.workflowInstanceDataFields.Sender,
|
"Remetente": res.workflowInstanceDataFields.Sender,
|
||||||
|
"Note": res.workflowInstanceDataFields.Note,
|
||||||
|
"FolderId": res.workflowInstanceDataFields.FolderID
|
||||||
}
|
}
|
||||||
this.fulltask = res;
|
this.fulltask = res;
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
this.processes.GetTaskParticipants(this.task.FolderId).subscribe(users=>{
|
||||||
|
this.intervenientes = users.filter(user=>{
|
||||||
|
return user.Type == 'I';
|
||||||
|
});
|
||||||
|
this.cc = users.filter(user=>{
|
||||||
|
return user.Type == 'CC';
|
||||||
|
});
|
||||||
|
console.log(users);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ export class ExpedientePage implements OnInit {
|
|||||||
async viewExpedientDetail(serialNumber:any) {
|
async viewExpedientDetail(serialNumber:any) {
|
||||||
console.log(this.profile);
|
console.log(this.profile);
|
||||||
|
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 1024){
|
||||||
classs = 'modal modal-desktop'
|
classs = 'modal modal-desktop'
|
||||||
@@ -75,7 +74,6 @@ export class ExpedientePage implements OnInit {
|
|||||||
classs = 'gabinete-digital-mobile-modal-to-Desktop'
|
classs = 'gabinete-digital-mobile-modal-to-Desktop'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ExpedienteDetailPage,
|
component: ExpedienteDetailPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
|
|||||||
@@ -10,7 +10,10 @@ import { GabineteDigitalPage } from './gabinete-digital.page';
|
|||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { EventListComponent } from 'src/app/shared/agenda/event-list/event-list.component';
|
import { EventListComponent } from 'src/app/shared/agenda/event-list/event-list.component';
|
||||||
import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/expediente.page'
|
import { EmptyContainerPage } from 'src/app/shared/empty-container/empty-container.page';
|
||||||
|
import { EventsToApprovePage } from 'src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page';
|
||||||
|
import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/expediente.page';
|
||||||
|
import { ExpedientsPage } from 'src/app/shared/gabinete-digital/expedients/expedients.page';
|
||||||
|
|
||||||
/* import { ComponentsModule } from 'src/app/components/components.module'; */
|
/* import { ComponentsModule } from 'src/app/components/components.module'; */
|
||||||
|
|
||||||
@@ -25,7 +28,16 @@ import { ExpedientePage } from 'src/app/shared/gabinete-digital/expediente/exped
|
|||||||
declarations: [
|
declarations: [
|
||||||
GabineteDigitalPage,
|
GabineteDigitalPage,
|
||||||
EventListComponent,
|
EventListComponent,
|
||||||
ExpedientePage
|
EmptyContainerPage,
|
||||||
|
EventsToApprovePage,
|
||||||
|
ExpedientePage,
|
||||||
|
ExpedientsPage,
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
EmptyContainerPage,
|
||||||
|
EventsToApprovePage,
|
||||||
|
ExpedientePage,
|
||||||
|
ExpedientsPage,
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -8,29 +8,27 @@
|
|||||||
<ion-refresher-content>
|
<ion-refresher-content>
|
||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
<div class="main-content height-100">
|
<div class="main-content d-flex height-100">
|
||||||
|
|
||||||
<div class="d-flex height-100">
|
<!-- Aside left -->
|
||||||
|
<div class="aside-wrapper d-flex flex-column pt-25 justify-center width-md-40 ">
|
||||||
<!-- -->
|
|
||||||
<div class="d-flex aside-wrapper flex-column pt-25 justify-center width-md-40">
|
|
||||||
<p class="text-center mt-0 aside-title px-20">Gabinete Digital</p>
|
<p class="text-center mt-0 aside-title px-20">Gabinete Digital</p>
|
||||||
<div class="aside overflow-y-auto d-flex d-md-block flex-wrap justify-center width-100 px-20">
|
<div class="aside overflow-y-auto d-flex d-md-block flex-wrap justify-center width-100 px-20">
|
||||||
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApproveList('MDGPR')">
|
<div class="exp-card d-flex flex-column justify-center" (click)="openEventsToApprovePage('MDGPR')">
|
||||||
<div class="d-flex justify-center">
|
<div class="d-flex justify-center">
|
||||||
<ion-icon src="assets/images/icons-agenda.svg"></ion-icon>
|
<ion-icon src="assets/images/icons-agenda.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-center exp-card-title ">Eventos para Aprovação</p>
|
<p class="text-center exp-card-title ">Eventos para Aprovação</p>
|
||||||
<p class="text-center exp-card-content">{{count_ev_md+count_ev_pr}} <span class="title1">Documentos</span></p>
|
<p class="text-center exp-card-content">{{count_ev_md+count_ev_pr}} <span class="title1">Documentos</span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-card d-flex flex-column justify-center" (click)="openExpedientList()">
|
<div class="exp-card d-flex flex-column justify-center" (click)="openExpedientListPage()">
|
||||||
<div class="d-flex justify-center">
|
<div class="d-flex justify-center">
|
||||||
<ion-icon src="assets/images/icons-correspondencia.svg"></ion-icon>
|
<ion-icon src="assets/images/icons-correspondencia.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-center exp-card-title ">Correspondencia</p>
|
<p class="text-center exp-card-title ">Correspondencia</p>
|
||||||
<p class="text-center exp-card-content">{{count_exp_dailywork}} <span class="title1">Documentos</span></p>
|
<p class="text-center exp-card-content">{{count_exp_dailywork}} <span class="title1">Documentos</span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-card d-flex flex-column justify-center" (click)="notImplemented()">
|
<div class="exp-card d-flex flex-column justify-center" (click)="viewEventDetail('1')">
|
||||||
<div class="d-flex justify-center">
|
<div class="d-flex justify-center">
|
||||||
<ion-icon src="assets/images/icons-expediente-pendente.svg"></ion-icon>
|
<ion-icon src="assets/images/icons-expediente-pendente.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
@@ -69,12 +67,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- -->
|
<!-- Aside right -->
|
||||||
<div class="d-none flex-1 aside-content height-100 overflow-y-auto pt-25">
|
<div class="aside-content d-none flex-column height-100">
|
||||||
<app-event-list class="d-flex flex-1 flex-column height-100" *ngIf="desktopComponent.showEventList"></app-event-list>
|
<app-empty-container [texto]="emptyTextDescription" *ngIf="showEmptyContainer" class="d-flex height-100 flex-column"></app-empty-container>
|
||||||
<app-expediente class="d-flex flex-1 flex-column height-100" *ngIf="desktopComponent.showExpediente"></app-expediente>
|
<app-events-to-approve [segment]="'MDGPR'" *ngIf="showEventsToApprove" class="d-flex height-100 flex-column"></app-events-to-approve>
|
||||||
|
<app-expedients (openExpedientDetail)="openExpedientPage($event)" [profile]="profile" class="d-flex height-100 flex-column" *ngIf="showExpedients"></app-expedients>
|
||||||
|
<app-expediente (openExpedientList)="openExpedientListPage()" [profile]="profile" [serialNumber]="serialNumber" class="d-flex height-100 flex-column" *ngIf="showExpedientDetail"></app-expediente>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ ion-content{
|
|||||||
padding: 30px 5px 30px 5px;
|
padding: 30px 5px 30px 5px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||||
border: solid 1px #e9e9e9;
|
//border: solid 1px #e9e9e9;
|
||||||
/* --background-color: #ffffff !important; */
|
/* --background-color: #ffffff !important; */
|
||||||
background-color: #ffffff !important;
|
background-color: #ffffff !important;
|
||||||
float: left;
|
float: left;
|
||||||
@@ -153,8 +153,9 @@ ion-content{
|
|||||||
|
|
||||||
.main-content{
|
.main-content{
|
||||||
.aside-wrapper{
|
.aside-wrapper{
|
||||||
border: 1px solid red;
|
width: 40%;
|
||||||
justify-content: flex-start !important;
|
justify-content: flex-start !important;
|
||||||
|
border-right: 1px solid #d8d8d8;
|
||||||
.aside-title{
|
.aside-title{
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
@@ -162,25 +163,38 @@ ion-content{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.aside-content{
|
.aside-content{
|
||||||
|
width: 60%;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.exp-card{
|
.exp-card{
|
||||||
margin: 5px auto;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-bottom: 15px;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: 11px;
|
padding: 10px 17px 10px 17px;
|
||||||
padding-bottom: 5px;
|
|
||||||
padding-top: 5px;
|
|
||||||
height: unset !important;
|
height: unset !important;
|
||||||
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||||
|
|
||||||
.exp-card-title{
|
.exp-card-title{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin-top: 0px !important;
|
||||||
|
}
|
||||||
|
.exp-card-content{
|
||||||
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
.exp-card-content .title1{
|
.exp-card-content .title1{
|
||||||
display: none;
|
display: none;
|
||||||
|
margin-top: 0px !important;
|
||||||
|
}
|
||||||
|
.exp-card-content .number{
|
||||||
|
//display: none;
|
||||||
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,13 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
showEventList: false,
|
showEventList: false,
|
||||||
showExpediente : false
|
showExpediente : false
|
||||||
}
|
}
|
||||||
|
showEventsToApprove = false;
|
||||||
|
showEmptyContainer = true;
|
||||||
|
showExpedients = false;
|
||||||
|
showExpedientDetail = false;
|
||||||
|
emptyTextDescription = 'Sem opção selecionada';
|
||||||
|
|
||||||
|
serialNumber:string;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private processesbackend:ProcessesService,
|
private processesbackend:ProcessesService,
|
||||||
@@ -90,6 +97,14 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closeAllDesktopComponents(){
|
||||||
|
this.showEmptyContainer = false;
|
||||||
|
this.showEventsToApprove = false;
|
||||||
|
this.showExpedients = false;
|
||||||
|
this.showExpedients = false;
|
||||||
|
this.showExpedientDetail = false;
|
||||||
|
}
|
||||||
|
|
||||||
LoadCounts() {
|
LoadCounts() {
|
||||||
this.showLoader = true;
|
this.showLoader = true;
|
||||||
this.processesbackend.GetTasksList("Expediente", true).subscribe(res =>{
|
this.processesbackend.GetTasksList("Expediente", true).subscribe(res =>{
|
||||||
@@ -123,6 +138,16 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
|||||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openEventsToApprovePage(segment:any){
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.openEventsToApproveList(segment);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.showEventsToApprove = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async openEventsToApproveList(segment:any){
|
async openEventsToApproveList(segment:any){
|
||||||
|
|
||||||
this.closeAllDesktopComponent();
|
this.closeAllDesktopComponent();
|
||||||
@@ -151,7 +176,27 @@ this.processesbackend.GetActionsList().subscribe(res=>{
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
openExpedientListPage(){
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.openExpedientList();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.showExpedients = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
openExpedientPage(data){
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
this.closeAllDesktopComponents();
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
//this.openExpedientList();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.serialNumber = data;
|
||||||
|
this.showExpedientDetail = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
async openExpedientList(){
|
async openExpedientList(){
|
||||||
|
|
||||||
this.closeAllDesktopComponent();
|
this.closeAllDesktopComponent();
|
||||||
|
|||||||
@@ -37,8 +37,7 @@ export class ProcessesService {
|
|||||||
return this.http.get<any>(`${geturl}`, options);
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetTask(serialnumber:string): Observable<any>
|
GetTask(serialnumber:string): Observable<any>{
|
||||||
{
|
|
||||||
const geturl = environment.apiURL + 'Tasks/FindTask';
|
const geturl = environment.apiURL + 'Tasks/FindTask';
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
|
||||||
@@ -50,6 +49,20 @@ export class ProcessesService {
|
|||||||
};
|
};
|
||||||
return this.http.get<any>(`${geturl}`, options);
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GetTaskParticipants(folderId:string): Observable<any>{
|
||||||
|
const geturl = environment.apiURL + 'Processes/GetUsersInDispash';
|
||||||
|
let params = new HttpParams();
|
||||||
|
|
||||||
|
params = params.set("folderId", folderId);
|
||||||
|
|
||||||
|
let options = {
|
||||||
|
headers: this.headers,
|
||||||
|
params: params
|
||||||
|
};
|
||||||
|
return this.http.get<any>(`${geturl}`, options);
|
||||||
|
}
|
||||||
|
|
||||||
FindTaskDocId(serialnumber:string): Observable<any>
|
FindTaskDocId(serialnumber:string): Observable<any>
|
||||||
{
|
{
|
||||||
const geturl = environment.apiURL + 'Tasks/FindExpedienteDocId';
|
const geturl = environment.apiURL + 'Tasks/FindExpedienteDocId';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<ion-header class="ion-no-border px-20">
|
<ion-header hidden class="ion-no-border px-20">
|
||||||
<div class="header-content d-flex justify-space-between">
|
<div class="header-content d-flex justify-space-between">
|
||||||
<div class="header-icon-left">
|
<div class="header-icon-left">
|
||||||
<ion-icon (click)="close()" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
|
<ion-icon (click)="close()" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="header-title flex-grow-1">
|
<div class="header-title flex-grow-1">
|
||||||
<label>{{loadedEvent.workflowInstanceDataFields.Subject}}</label>
|
<label>{{loadedEvent.workflowInstanceDataFields.Subject}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-icon-right">
|
<div class="header-icon-right display-none-{{showAside}}">
|
||||||
<ion-icon (click)="notImplemented()" src="assets/images/icons-edit.svg"></ion-icon>
|
<ion-icon (click)="notImplemented()" src="assets/images/icons-edit.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,72 +36,80 @@
|
|||||||
</ion-menu>
|
</ion-menu>
|
||||||
|
|
||||||
<ion-content id="main-content">
|
<ion-content id="main-content">
|
||||||
<div class="upper-content">
|
<div class="main-content d-flex height-100">
|
||||||
<div class="content-location d-flex justify-space-between">
|
<div class="content">
|
||||||
<div class="location-detail">
|
<div class="header-content width-100 d-flex justify-space-between">
|
||||||
<ion-label >{{loadedEvent.workflowInstanceDataFields.Location}}</ion-label>
|
<div class="header-icon-left">
|
||||||
|
<ion-icon (click)="close()" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
|
||||||
|
</div>
|
||||||
|
<div class="header-title flex-grow-1">
|
||||||
|
<label>{{loadedEvent.workflowInstanceDataFields.Subject}}</label>
|
||||||
|
</div>
|
||||||
|
<div class="header-icon-right display-none-{{showAside}}">
|
||||||
|
<ion-icon (click)="notImplemented()" src="assets/images/icons-edit.svg"></ion-icon>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-calendar-type">
|
<div class="upper-content d-flex flex-column">
|
||||||
<ion-button class="button-calendar-type" slot="end">{{loadedEvent.workflowInstanceDataFields.Agenda}}</ion-button>
|
<div class="content-location">
|
||||||
|
<p>
|
||||||
|
<span class="location">{{loadedEvent.workflowInstanceDataFields.Location}}</span>
|
||||||
|
<span class="event-type-{{loadedEvent.workflowInstanceDataFields.Agenda}}">{{loadedEvent.workflowInstanceDataFields.Agenda}}</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="content-details">
|
||||||
|
<ion-label>
|
||||||
|
<p>{{customDate}}</p>
|
||||||
|
<p>das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'hh:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||||
|
<p *ngIf="!loadedEvent.workflowInstanceDataFields.IsRecurring">(Não se repete)</p>
|
||||||
|
<p *ngIf="loadedEvent.workflowInstanceDataFields.IsRecurring">Repete</p>
|
||||||
|
</ion-label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="middle-content">
|
||||||
|
<h5>Intervenientes</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label>
|
||||||
|
<p>{{loadedEvent.workflowInstanceDataFields.Participants}}</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<h5>Detalhes</h5>
|
||||||
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
|
<ion-label>
|
||||||
|
<p>{{loadedEvent.workflowInstanceDataFields.Body}}</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="content-details">
|
|
||||||
<ion-label>
|
|
||||||
<p>{{customDate}}</p>
|
|
||||||
<p>das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'hh:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
|
||||||
<p *ngIf="!loadedEvent.workflowInstanceDataFields.IsRecurring">(Não se repete)</p>
|
|
||||||
<p *ngIf="loadedEvent.workflowInstanceDataFields.IsRecurring">Repete</p>
|
|
||||||
</ion-label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="middle-content">
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<h3>Intervenientes</h3>
|
|
||||||
<p>{{loadedEvent.workflowInstanceDataFields.Participants}}</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item>
|
|
||||||
<ion-label>
|
|
||||||
<h3>Detalhes</h3>
|
|
||||||
<p>{{loadedEvent.workflowInstanceDataFields.Body}}</p>
|
|
||||||
</ion-label>
|
|
||||||
</ion-item>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="loadedAttachments" class="bottom-content">
|
<div *ngIf="loadedAttachments" class="bottom-content">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<h3>Documentos Anexados</h3>
|
<h3>Documentos Anexados</h3>
|
||||||
<ion-item>
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="attach-title-item">Receita por Natureza</p>
|
<p class="attach-title-item">Receita por Natureza</p>
|
||||||
<p><span class="span-left">{{loadedAttachments.Remetente}}</span><span class="span-right">{{loadedAttachments.CreateDate}}<!-- {{ task.CreateDate | date: 'dd-MM-yy' }} --></span></p>
|
<p><span class="span-left">{{loadedAttachments.Remetente}}</span><span class="span-right">{{loadedAttachments.CreateDate}}<!-- {{ task.CreateDate | date: 'dd-MM-yy' }} --></span></p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="showAside" class="aside-right flex-column height-100">
|
||||||
|
<div class="aside-buttons">
|
||||||
|
<button full class="btn-ok" shape="round" >Editar evento</button>
|
||||||
|
<button full class="btn-ok" shape="round" >Aprovar</button>
|
||||||
|
<button class="btn-cancel" shape="round" >Emendar</button>
|
||||||
|
<div class="solid"></div>
|
||||||
|
<button full class="btn-delete" shape="round" >Rejeitar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
<ion-footer>
|
<ion-footer class="display-none-{{showAside}}">
|
||||||
<ion-toolbar>
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<ion-item lines="none">
|
<button class="btn-cancel" shape="round" (click)="emendTask(loadedEvent.serialNumber)">Emendar</button>
|
||||||
<p>
|
<ion-menu-button autoHide="false">
|
||||||
<ion-button class="button-edit-event" shape="round" (click)="emendTask(loadedEvent.serialNumber)">Emendar</ion-button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<ion-menu-button autoHide="false">
|
|
||||||
<ion-icon (click)="openMenu()" name="ellipsis-vertical-outline"></ion-icon>
|
<ion-icon (click)="openMenu()" name="ellipsis-vertical-outline"></ion-icon>
|
||||||
</ion-menu-button>
|
</ion-menu-button>
|
||||||
</p>
|
<button class="btn-ok" shape="round" (click)="approveTask(loadedEvent.serialNumber)">Aprovar</button>
|
||||||
<p>
|
<button hidden class="btn-delete" shape="round" (click)="rejectTask(loadedEvent.serialNumber)">Rejeitar</button>
|
||||||
<ion-button class="button-approve" shape="round" (click)="approveTask(loadedEvent.serialNumber)">Aprovar</ion-button>
|
</div>
|
||||||
</p>
|
|
||||||
</ion-item>
|
|
||||||
<ion-item hidden>
|
|
||||||
<p>
|
|
||||||
<ion-button class="button-reject" shape="round" (click)="rejectTask(loadedEvent.serialNumber)">Rejeitar</ion-button>
|
|
||||||
</p>
|
|
||||||
</ion-item>
|
|
||||||
</div>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-footer>
|
</ion-footer>
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
ion-content{
|
|
||||||
--padding-top:0px;
|
|
||||||
--padding-start: 20px;
|
|
||||||
--padding-end: 20px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
ion-menu{
|
ion-menu{
|
||||||
--height: 225px;
|
--height: 225px;
|
||||||
}
|
}
|
||||||
|
.display-none-true{
|
||||||
|
display: none;
|
||||||
|
border: 1px solid red;
|
||||||
|
}
|
||||||
.header-content{
|
.header-content{
|
||||||
margin: 25px auto;
|
//margin: 25px auto;
|
||||||
}
|
}
|
||||||
.header-icon-left{
|
.header-icon-left{
|
||||||
width: 36px;
|
width: 36px;
|
||||||
@@ -29,95 +27,146 @@ ion-content{
|
|||||||
font-size: 45px;
|
font-size: 45px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.upper-content{
|
|
||||||
margin-left: 50px;
|
|
||||||
font-size: 18px;
|
|
||||||
|
|
||||||
.content-location{
|
.content{
|
||||||
margin: 0 auto;
|
padding: 30px 20px 0 20px !important;
|
||||||
padding: 0;
|
overflow: auto;
|
||||||
}
|
width: 100%;
|
||||||
|
|
||||||
.location-detail{
|
.upper-content{
|
||||||
width: 210px;
|
margin-left: 40px;
|
||||||
font-weight: 700;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
float: left;
|
|
||||||
margin: 5px 5px 5px 0px;
|
.content-location{
|
||||||
}
|
margin-top: 0px !important;
|
||||||
.button-calendar-type{
|
width: 100%;
|
||||||
width: 91px;
|
padding: 0;
|
||||||
--border-radius: 12.5px;
|
}
|
||||||
--background: #ffb703;
|
|
||||||
margin-left: 5px;
|
.location{
|
||||||
float: left;
|
float: left;
|
||||||
|
}
|
||||||
|
.event-type-Oficial{
|
||||||
|
font-family: Roboto;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: #fec077;
|
||||||
|
float: right !important;
|
||||||
|
padding: 5px 13.5px 5px 13.5px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.event-type-Pessoal{
|
||||||
|
font-family: Roboto;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: #f05d5e;
|
||||||
|
float: right !important;
|
||||||
|
padding: 5px 13.5px 5px 13.5px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.button-edit-event {
|
||||||
|
width: 140px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 22.5px;
|
||||||
|
--background: #e0e9ee;
|
||||||
|
--color:#061b52;
|
||||||
|
}
|
||||||
|
.content-details p{
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.button-calendar-type ion-button{
|
.middle-conten{
|
||||||
height: 25px;
|
.middle-content h3, .middle-content p{
|
||||||
}
|
|
||||||
.button-edit-event {
|
|
||||||
width: 140px;
|
|
||||||
height: 44px;
|
|
||||||
border-radius: 22.5px;
|
|
||||||
--background: #e0e9ee;
|
|
||||||
--color:#061b52;
|
|
||||||
}
|
|
||||||
.content-details p{
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.middle-conten{
|
.bottom-content{
|
||||||
.middle-content h3, .middle-content p{
|
width: 360px;
|
||||||
font-size: 16px;
|
margin: 0 auto;
|
||||||
|
|
||||||
|
.bottom-content h3{
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0 0 0 10px;
|
||||||
|
}
|
||||||
|
.attach-document{
|
||||||
|
font-size: 15px;
|
||||||
|
color: #0d89d1;
|
||||||
|
margin: 5px 5px 5px 10px;
|
||||||
|
padding: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.attach-icon{
|
||||||
|
width: 37px;
|
||||||
|
font-size: 35px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.attach-title-item{
|
||||||
|
width: 100%;
|
||||||
|
font-size: 15px;
|
||||||
|
color:#0d89d1;
|
||||||
|
}
|
||||||
|
/* SPAN */
|
||||||
|
.span-left{
|
||||||
|
float: left;
|
||||||
|
font-size: 15x;
|
||||||
|
}
|
||||||
|
.span-right{
|
||||||
|
text-align: right;
|
||||||
|
float: right;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.aside-right{
|
||||||
|
overflow: auto;
|
||||||
|
padding: 30px 20px 0 20px !important;
|
||||||
|
|
||||||
|
.arrow-right{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
/* .arrow-right-icon{
|
||||||
|
width: 37px;
|
||||||
|
float: right;
|
||||||
|
font-size: 35px;
|
||||||
|
overflow: hidden;
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
.aside-buttons{
|
||||||
|
width: 100% !important;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.btn-ok, .btn-cancel, .btn-delete{
|
||||||
|
height: auto !important;
|
||||||
|
font-size: 16px !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
padding: 15px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
border-top: 1px solid #ebebeb;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-content{
|
|
||||||
width: 360px;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
.bottom-content h3{
|
|
||||||
font-size: 16px;
|
|
||||||
margin: 0 0 0 10px;
|
|
||||||
}
|
|
||||||
.attach-document{
|
|
||||||
font-size: 15px;
|
|
||||||
color: #0d89d1;
|
|
||||||
margin: 5px 5px 5px 10px;
|
|
||||||
padding: 5px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.attach-icon{
|
|
||||||
width: 37px;
|
|
||||||
font-size: 35px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.attach-title-item{
|
|
||||||
width: 100%;
|
|
||||||
font-size: 15px;
|
|
||||||
color:#0d89d1;
|
|
||||||
}
|
|
||||||
/* SPAN */
|
|
||||||
.span-left{
|
|
||||||
float: left;
|
|
||||||
font-size: 15x;
|
|
||||||
}
|
|
||||||
.span-right{
|
|
||||||
text-align: right;
|
|
||||||
float: right;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.buttons{
|
.buttons{
|
||||||
width: 360px;
|
display: flex;
|
||||||
margin: 0 auto;
|
justify-content: space-between;
|
||||||
}
|
overflow: auto;
|
||||||
|
|
||||||
|
|
||||||
.button-options {
|
.button-options {
|
||||||
height: 44px;
|
height: 44px;
|
||||||
--color: #42b9fe;
|
--color: #42b9fe;
|
||||||
/* opacity: 0; */
|
/* opacity: 0; */
|
||||||
}
|
}
|
||||||
.button-approve {
|
.button-approve {
|
||||||
width: 140px;
|
width: 140px;
|
||||||
@@ -132,4 +181,30 @@ ion-content{
|
|||||||
border-radius: 22.5px;
|
border-radius: 22.5px;
|
||||||
--background: #ffe0e0;
|
--background: #ffe0e0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* @media only screen and (max-width: 1140px) {
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.aside-right{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
} */
|
||||||
|
/* @media only screen and (min-width: 1140px) {
|
||||||
|
.div-icon{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
//width: 75%;
|
||||||
|
border-right: 1px solid #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside-right{
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
} */
|
||||||
|
|
||||||
@@ -21,11 +21,13 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
loadedAttachments:any;
|
loadedAttachments:any;
|
||||||
customDate:any;
|
customDate:any;
|
||||||
today:any;
|
today:any;
|
||||||
|
show: boolean = false;
|
||||||
|
|
||||||
months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
||||||
days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
||||||
|
|
||||||
@Input() serialNumber:string;
|
@Input() serialNumber:string;
|
||||||
|
@Input() showAside:boolean;
|
||||||
|
|
||||||
@Output() approveEventDismiss = new EventEmitter<any>();
|
@Output() approveEventDismiss = new EventEmitter<any>();
|
||||||
@Output() closeEventToApprove = new EventEmitter<any>();
|
@Output() closeEventToApprove = new EventEmitter<any>();
|
||||||
@@ -44,6 +46,8 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getTask();
|
this.getTask();
|
||||||
this.getAttachments();
|
this.getAttachments();
|
||||||
|
console.log(this.showAside);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notImplemented(){
|
notImplemented(){
|
||||||
@@ -53,6 +57,7 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
close(){
|
close(){
|
||||||
/* this.router.navigate(['/home/gabinete-digital/event-list']); */
|
/* this.router.navigate(['/home/gabinete-digital/event-list']); */
|
||||||
this.closeEventToApprove.emit();
|
this.closeEventToApprove.emit();
|
||||||
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
getTask(){
|
getTask(){
|
||||||
@@ -119,7 +124,6 @@ export class ApproveEventComponent implements OnInit {
|
|||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: EmendMessageModalPage,
|
component: EmendMessageModalPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
|
|
||||||
},
|
},
|
||||||
cssClass: 'emend-message-modal',
|
cssClass: 'emend-message-modal',
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.right{
|
.right{
|
||||||
padding: 0!important;
|
padding: 0!important;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #0782c9;
|
color: #0782c9;
|
||||||
margin: 8px 0 0 5px;
|
margin: 8px 0 0 5px;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { BtnAdicionarPage } from './btn-adicionar.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: BtnAdicionarPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class BtnAdicionarPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { BtnAdicionarPageRoutingModule } from './btn-adicionar-routing.module';
|
||||||
|
|
||||||
|
import { BtnAdicionarPage } from './btn-adicionar.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
BtnAdicionarPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [BtnAdicionarPage]
|
||||||
|
})
|
||||||
|
export class BtnAdicionarPageModule {}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="right">
|
||||||
|
<ion-label>Adicionar</ion-label>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.right{
|
||||||
|
padding: 0!important;
|
||||||
|
float: right;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #0782c9;
|
||||||
|
margin: 8px 5px 0 5px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { BtnAdicionarPage } from './btn-adicionar.page';
|
||||||
|
|
||||||
|
describe('BtnAdicionarPage', () => {
|
||||||
|
let component: BtnAdicionarPage;
|
||||||
|
let fixture: ComponentFixture<BtnAdicionarPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ BtnAdicionarPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(BtnAdicionarPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-btn-adicionar',
|
||||||
|
templateUrl: './btn-adicionar.page.html',
|
||||||
|
styleUrls: ['./btn-adicionar.page.scss'],
|
||||||
|
})
|
||||||
|
export class BtnAdicionarPage implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { BtnCriarPage } from './btn-criar.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: BtnCriarPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class BtnCriarPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { BtnCriarPageRoutingModule } from './btn-criar-routing.module';
|
||||||
|
|
||||||
|
import { BtnCriarPage } from './btn-criar.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
BtnCriarPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [BtnCriarPage]
|
||||||
|
})
|
||||||
|
export class BtnCriarPageModule {}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="right">
|
||||||
|
<ion-label>Criar grupo</ion-label>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.right{
|
||||||
|
padding: 0!important;
|
||||||
|
float: right;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #0782c9;
|
||||||
|
margin: 8px 5px 0 5px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { BtnCriarPage } from './btn-criar.page';
|
||||||
|
|
||||||
|
describe('BtnCriarPage', () => {
|
||||||
|
let component: BtnCriarPage;
|
||||||
|
let fixture: ComponentFixture<BtnCriarPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ BtnCriarPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(BtnCriarPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-btn-criar',
|
||||||
|
templateUrl: './btn-criar.page.html',
|
||||||
|
styleUrls: ['./btn-criar.page.scss'],
|
||||||
|
})
|
||||||
|
export class BtnCriarPage implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { EmptyChatPage } from './empty-chat.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: EmptyChatPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class EmptyChatPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EmptyChatPageRoutingModule } from './empty-chat-routing.module';
|
||||||
|
|
||||||
|
import { EmptyChatPage } from './empty-chat.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
EmptyChatPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [EmptyChatPage]
|
||||||
|
})
|
||||||
|
export class EmptyChatPageModule {}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<ion-content>
|
||||||
|
<div class="center height-100">
|
||||||
|
<p>{{texto}}</p>
|
||||||
|
</div>
|
||||||
|
</ion-content>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EmptyChatPage } from './empty-chat.page';
|
||||||
|
|
||||||
|
describe('EmptyChatPage', () => {
|
||||||
|
let component: EmptyChatPage;
|
||||||
|
let fixture: ComponentFixture<EmptyChatPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ EmptyChatPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(EmptyChatPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-empty-chat',
|
||||||
|
templateUrl: './empty-chat.page.html',
|
||||||
|
styleUrls: ['./empty-chat.page.scss'],
|
||||||
|
})
|
||||||
|
export class EmptyChatPage implements OnInit {
|
||||||
|
@Input() texto:string;
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<ion-toolbar class="header-toolbar">
|
<ion-toolbar class="header-toolbar">
|
||||||
<div class="main-header">
|
<div class="main-header width-100">
|
||||||
<div class="title-content">
|
<div class="title-content width-100">
|
||||||
<div class="back-icon">
|
<div class="back-icon">
|
||||||
<ion-icon (click)="close()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
<ion-icon (click)="openGroupMessagesPage()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-title">
|
<div class="div-title">
|
||||||
<ion-label class="title">Contactos</ion-label>
|
<ion-label class="title">Contactos</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<app-btn-seguinte (click)="createGroup()"></app-btn-seguinte>
|
<app-btn-adicionar (click)="updateGroup()"></app-btn-adicionar>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
@@ -26,9 +26,6 @@
|
|||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div *ngIf="members">
|
<div *ngIf="members">
|
||||||
<ion-label class="members-label">Contactos selecção:</ion-label>
|
<ion-label class="members-label">Contactos selecção:</ion-label>
|
||||||
@@ -41,7 +38,7 @@
|
|||||||
</ion-list>
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-virtual-scroll [items]="users | filter:textSearch: 'name'" approxItemHeight="70px" [headerFn]="separateLetter">
|
<ion-virtual-scroll [items]="users" approxItemHeight="70px" [headerFn]="separateLetter">
|
||||||
|
|
||||||
<div class="item-divider" *virtualHeader="let header">
|
<div class="item-divider" *virtualHeader="let header">
|
||||||
<ion-label>{{header}}</ion-label>
|
<ion-label>{{header}}</ion-label>
|
||||||
@@ -49,8 +46,8 @@
|
|||||||
|
|
||||||
<div *virtualItem="let user" class="item-checkbox">
|
<div *virtualItem="let user" class="item-checkbox">
|
||||||
<ion-checkbox (ionChange)="selectedContact(user)" color="primary"></ion-checkbox>
|
<ion-checkbox (ionChange)="selectedContact(user)" color="primary"></ion-checkbox>
|
||||||
<p>{{user.name}}</p>
|
<ion-label>{{user.name}}</ion-label>
|
||||||
<ion-icon name="ellipse"></ion-icon>
|
<div class="icon"><ion-icon name="ellipse"></ion-icon></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ion-virtual-scroll>
|
</ion-virtual-scroll>
|
||||||
|
|||||||
@@ -3,11 +3,8 @@
|
|||||||
--opacity: 1;
|
--opacity: 1;
|
||||||
|
|
||||||
.main-header{
|
.main-header{
|
||||||
width: 100%; /* 400px */
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
border-top-left-radius: 25px;
|
|
||||||
border-top-right-radius: 25px;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
padding: 30px 20px 0px 20px;
|
padding: 30px 20px 0px 20px;
|
||||||
@@ -26,7 +23,6 @@
|
|||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
.title-content{
|
.title-content{
|
||||||
width: 360px;
|
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -62,28 +58,28 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.search ion-searchbar{
|
.search ion-searchbar{
|
||||||
/* border: 1px solid green; */
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
--border-radius: 5px;
|
--border-radius: 5px;
|
||||||
--box-shadow: none;
|
--box-shadow: none;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
--icon-color:#0d89d1;
|
--icon-color:#0d89d1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-content{
|
ion-content{
|
||||||
--background:transparent;
|
--background:transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content{
|
.main-content{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow:auto;
|
|
||||||
padding: 0 0 0 0;
|
padding: 0 0 0 0;
|
||||||
|
overflow:auto;
|
||||||
|
|
||||||
.members-label{
|
.members-label{
|
||||||
margin: 10px 20px 10px 20px !important;
|
margin: 10px 20px 10px 20px !important;
|
||||||
@@ -111,8 +107,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
margin: 10px 20px 10px 20px !important;
|
margin: 10px 20px 10px 20px !important;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-checkbox ion-checkbox, .members-checkbox ion-checkbox{
|
.item-checkbox ion-checkbox, .members-checkbox ion-checkbox{
|
||||||
@@ -121,20 +115,16 @@
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-checkbox p, .members-checkbox p{
|
.item-checkbox ion-label, .members-checkbox p{
|
||||||
display: block;
|
|
||||||
margin: 0 !important;
|
|
||||||
width: 330px;
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #0d89d1;
|
color: #0d89d1;
|
||||||
float: left;
|
float: left;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
.item-checkbox ion-icon, .members-checkbox ion-icon{
|
.icon, .members-checkbox ion-icon{
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
float: left;
|
|
||||||
color:#99e47b;
|
color:#99e47b;
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
import { ModalController, NavParams } from '@ionic/angular';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
@@ -31,12 +31,15 @@ export class GroupContactsPage implements OnInit {
|
|||||||
groupName:string;
|
groupName:string;
|
||||||
selectedUserList:any;
|
selectedUserList:any;
|
||||||
|
|
||||||
|
@Input() roomId:string;
|
||||||
|
@Output() openGroupMessage:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
private navParams: NavParams,
|
//private navParams: NavParams,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.authService.userData$.subscribe((res:any)=>{
|
this.authService.userData$.subscribe((res:any)=>{
|
||||||
@@ -45,16 +48,32 @@ export class GroupContactsPage implements OnInit {
|
|||||||
this.textSearch="";
|
this.textSearch="";
|
||||||
this.dm=null;
|
this.dm=null;
|
||||||
this.room=null;
|
this.room=null;
|
||||||
this.isGroupCreated = this.navParams.get('isCreated');
|
/* this.isGroupCreated = this.navParams.get('isCreated');
|
||||||
this.groupName = this.navParams.get('name');
|
this.groupName = this.navParams.get('name');
|
||||||
this.room = this.navParams.get('room');
|
this.room = this.navParams.get('room');
|
||||||
this.members = this.navParams.get('members');
|
this.members = this.navParams.get('members'); */
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
//this.getRoomInfo();
|
||||||
this.loadUsers();
|
this.loadUsers();
|
||||||
console.log(this.groupName);
|
console.log(this.roomId);
|
||||||
console.log(this.isGroupCreated);
|
//console.log(this.isGroupCreated);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateGroup(){
|
||||||
|
this.showLoader = true;
|
||||||
|
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
|
||||||
|
this.room = room['room'];
|
||||||
|
this.addContacts(this.room);
|
||||||
|
this.showLoader = false;
|
||||||
|
this.openGroupMessage.emit(this.room._id)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
openGroupMessagesPage(){
|
||||||
|
this.showLoader = true;
|
||||||
|
this.openGroupMessage.emit(this.roomId)
|
||||||
|
this.showLoader = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadUsers(){
|
loadUsers(){
|
||||||
@@ -147,7 +166,6 @@ export class GroupContactsPage implements OnInit {
|
|||||||
let body ={
|
let body ={
|
||||||
"roomId":room._id,
|
"roomId":room._id,
|
||||||
"userId":user._id,
|
"userId":user._id,
|
||||||
|
|
||||||
}
|
}
|
||||||
this.chatService.addUserToGroup(body).subscribe(res=>{
|
this.chatService.addUserToGroup(body).subscribe(res=>{
|
||||||
console.log(res['success']);
|
console.log(res['success']);
|
||||||
@@ -155,9 +173,9 @@ export class GroupContactsPage implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
createGroup(){
|
/* createGroup(){
|
||||||
|
console.log(this.groupName);
|
||||||
if(!this.isGroupCreated){
|
if(!this.isGroupCreated){
|
||||||
/* this.close(); */
|
|
||||||
let body = { "name":this.groupName, }
|
let body = { "name":this.groupName, }
|
||||||
this.chatService.addGroup(body).subscribe(res=>{
|
this.chatService.addGroup(body).subscribe(res=>{
|
||||||
console.log('group created');
|
console.log('group created');
|
||||||
@@ -171,16 +189,8 @@ export class GroupContactsPage implements OnInit {
|
|||||||
else{
|
else{
|
||||||
this.addContacts(this.room);
|
this.addContacts(this.room);
|
||||||
this.close();
|
this.close();
|
||||||
/* this.openGroupMessages(this.room); */
|
|
||||||
/* this.chatService.getGroupInfo(this.room._id).subscribe(res=>{
|
|
||||||
console.log(res);
|
|
||||||
|
|
||||||
this.addContacts(res['group']);
|
|
||||||
this.openGroupMessages(res['group']);
|
|
||||||
}) */
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
||||||
async newGroup(){
|
async newGroup(){
|
||||||
this.close();
|
this.close();
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
<ion-label class="title">{{room.name.split('-').join(' ')}}</ion-label>
|
<ion-label class="title">{{room.name.split('-').join(' ')}}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<ion-icon (click)="openOptions()" src="assets/images/icons-menu.svg"></ion-icon>
|
<ion-icon (click)="openGroupMessagesOptions()" src="assets/images/icons-menu.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div (click)="addContacts()" class="header-bottom">
|
<div (click)="openGroupContactsPage()" class="header-bottom">
|
||||||
<div class="header-bottom-icon">
|
<div class="header-bottom-icon">
|
||||||
<ion-icon src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<ion-footer>
|
<ion-footer>
|
||||||
<div class="container width-100 d-flex">
|
<div class="container width-100 d-flex">
|
||||||
<div>
|
<div>
|
||||||
<ion-icon (click)="openChatOptions()" class="chat-icon-options" src="assets/icon/icons-chat-options.svg"></ion-icon>
|
<ion-icon (click)="openSendGroupMessageOptions()" class="chat-icon-options" src="assets/icon/icons-chat-options.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="width-80">
|
<div class="width-80">
|
||||||
<ion-item class="ion-no-padding type-message" lines="none">
|
<ion-item class="ion-no-padding type-message" lines="none">
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
.header-bottom-contacts{
|
.header-bottom-contacts{
|
||||||
width: 275px;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #797979;
|
color: #797979;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnChanges, OnInit, Input, SimpleChanges} from '@angular/core';
|
import { Component, OnChanges, OnInit, Input, SimpleChanges, Output, EventEmitter} from '@angular/core';
|
||||||
import { ActionSheetController, MenuController, ModalController, PopoverController } from '@ionic/angular';
|
import { ActionSheetController, AnimationController, MenuController, ModalController, PopoverController } from '@ionic/angular';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page';
|
import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page';
|
||||||
@@ -25,6 +25,7 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
members:any;
|
members:any;
|
||||||
|
|
||||||
@Input() roomId:string;
|
@Input() roomId:string;
|
||||||
|
@Output() openGroupContacts:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private menu: MenuController,
|
private menu: MenuController,
|
||||||
@@ -33,6 +34,7 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
public popoverController: PopoverController,
|
public popoverController: PopoverController,
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
|
private animationController: AnimationController,
|
||||||
) {
|
) {
|
||||||
this.isGroupCreated = true;
|
this.isGroupCreated = true;
|
||||||
}
|
}
|
||||||
@@ -49,6 +51,10 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
console.log(this.roomId);
|
console.log(this.roomId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openGroupContactsPage(){
|
||||||
|
this.openGroupContacts.emit(this.roomId);
|
||||||
|
}
|
||||||
|
|
||||||
close(){
|
close(){
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
@@ -132,8 +138,68 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
});
|
});
|
||||||
this.message = "";
|
this.message = "";
|
||||||
}
|
}
|
||||||
|
async openGroupMessagesOptions() {
|
||||||
|
|
||||||
/* async openOptions(ev: any) {
|
const enterAnimation = (baseEl: any) => {
|
||||||
|
const backdropAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||||
|
.fromTo('opacity', '0.01', 'var(--backdrop-opacity)');
|
||||||
|
|
||||||
|
const wrapperAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('.modal-wrapper')!)
|
||||||
|
.keyframes([
|
||||||
|
{ offset: 0, opacity: '1', right: '-100%' },
|
||||||
|
{ offset: 1, opacity: '1', right: '0px' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
return this.animationController.create()
|
||||||
|
.addElement(baseEl)
|
||||||
|
.easing('ease-out')
|
||||||
|
.duration(500)
|
||||||
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const leaveAnimation = (baseEl: any) => {
|
||||||
|
return enterAnimation(baseEl).direction('reverse');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* const popover = await this.popoverController.create({
|
||||||
|
component: MessagesOptionsPage,
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.dm._id,
|
||||||
|
},
|
||||||
|
cssClass: 'messages-options',
|
||||||
|
event: ev,
|
||||||
|
translucent: true,
|
||||||
|
});
|
||||||
|
return await popover.present(); */
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
enterAnimation,
|
||||||
|
leaveAnimation,
|
||||||
|
component: ChatPopoverPage,
|
||||||
|
cssClass: 'model profile-modal search-submodal',
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.roomId,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await modal.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
openSendGroupMessageOptions(ev: any){
|
||||||
|
if(window.innerWidth <= 1024){
|
||||||
|
console.log('mobile');
|
||||||
|
this.openChatOptions(ev);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log('desktop');
|
||||||
|
this._openChatOptions();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async openOptions(ev: any) {
|
||||||
const popover = await this.popoverController.create({
|
const popover = await this.popoverController.create({
|
||||||
component: ChatPopoverPage,
|
component: ChatPopoverPage,
|
||||||
cssClass: 'chat-popover',
|
cssClass: 'chat-popover',
|
||||||
@@ -147,10 +213,7 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
popover.onDidDismiss().then(res=>{
|
popover.onDidDismiss().then(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if(res.data){
|
if(res.data){
|
||||||
this.roomName = res.data.name.split('-').join(' ');
|
this.getRoomInfo();
|
||||||
console.log(this.roomName);
|
|
||||||
|
|
||||||
this.load();
|
|
||||||
//this.modalController.dismiss();
|
//this.modalController.dismiss();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -186,10 +249,10 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
|
|
||||||
modal.onDidDismiss().then(()=>{
|
modal.onDidDismiss().then(()=>{
|
||||||
this.load();
|
this.getRoomInfo();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
/* async actionSheet() {
|
/* async actionSheet() {
|
||||||
const actionSheet = await this.actionSheetController.create({
|
const actionSheet = await this.actionSheetController.create({
|
||||||
cssClass: 'my-custom-class',
|
cssClass: 'my-custom-class',
|
||||||
@@ -216,5 +279,42 @@ export class GroupMessagesPage implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
async _openChatOptions() {
|
||||||
|
|
||||||
|
const enterAnimation = (baseEl: any) => {
|
||||||
|
const backdropAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||||
|
.fromTo('opacity', '0.01', 'var(--backdrop-opacity)');
|
||||||
|
|
||||||
|
const wrapperAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('.modal-wrapper')!)
|
||||||
|
.keyframes([
|
||||||
|
{ offset: 0, opacity: '1', right: '-100%' },
|
||||||
|
{ offset: 1, opacity: '1', right: '0px' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
return this.animationController.create()
|
||||||
|
.addElement(baseEl)
|
||||||
|
.easing('ease-out')
|
||||||
|
.duration(500)
|
||||||
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const leaveAnimation = (baseEl: any) => {
|
||||||
|
return enterAnimation(baseEl).direction('reverse');
|
||||||
|
}
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
enterAnimation,
|
||||||
|
leaveAnimation,
|
||||||
|
component: ChatOptionsPopoverPage,
|
||||||
|
cssClass: 'model profile-modal search-submodal',
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.roomId,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await modal.present();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { ContactsPageRoutingModule } from './contacts-routing.module';
|
|||||||
|
|
||||||
import { ContactsPage } from './contacts.page';
|
import { ContactsPage } from './contacts.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
import { PipesModule } from 'src/app/pipes/pipes.module';
|
import { FilterPipe } from 'src/app/pipes/filter.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -16,9 +16,9 @@ import { PipesModule } from 'src/app/pipes/pipes.module';
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
SharedModule,
|
SharedModule,
|
||||||
PipesModule,
|
|
||||||
ContactsPageRoutingModule
|
ContactsPageRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [ContactsPage]
|
exports: [FilterPipe],
|
||||||
|
declarations: [ContactsPage, FilterPipe]
|
||||||
})
|
})
|
||||||
export class ContactsPageModule {}
|
export class ContactsPageModule {}
|
||||||
|
|||||||
@@ -19,20 +19,22 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
|
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
<ion-refresher-content>
|
<ion-refresher-content>
|
||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
|
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
|
|
||||||
<ion-virtual-scroll [items]="users | filter:textSearch: 'name'" approxItemHeight="70px" [headerFn]="separateLetter">
|
<ion-virtual-scroll [items]="users" approxItemHeight="70px" [headerFn]="separateLetter">
|
||||||
|
|
||||||
<div class="item-divider" *virtualHeader="let header">
|
<div class="item-divider" *virtualHeader="let header">
|
||||||
<ion-label>{{header}}</ion-label>
|
<ion-label>{{header}}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div (click)="createRoom(user.username)" *virtualItem="let user" class="item-user">
|
<div (click)="openMessagesPage(user.username)" *virtualItem="let user" class="item-user">
|
||||||
<p>{{user.name}}</p>
|
<p>{{user.name}}</p>
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<ion-icon class="{{user.status}}" slot="end" name="ellipse"></ion-icon>
|
<ion-icon class="{{user.status}}" slot="end" name="ellipse"></ion-icon>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
--opacity: 1;
|
--opacity: 1;
|
||||||
|
|
||||||
.main-header{
|
.main-header{
|
||||||
width: 100%; /* 400px */
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
border-top-left-radius: 25px;
|
border-top-left-radius: 25px;
|
||||||
@@ -27,7 +27,6 @@
|
|||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
.title-content{
|
.title-content{
|
||||||
width: 360px;
|
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -80,13 +79,13 @@
|
|||||||
--background:transparent;
|
--background:transparent;
|
||||||
}
|
}
|
||||||
.main-content{
|
.main-content{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow:auto;
|
padding: 0 0 0 0;
|
||||||
padding: 0 0 0 0;
|
overflow:auto;
|
||||||
|
|
||||||
.item-divider{
|
.item-divider{
|
||||||
background: #ebebeb;
|
background: #ebebeb;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
@@ -23,6 +23,8 @@ export class ContactsPage implements OnInit {
|
|||||||
room:any;
|
room:any;
|
||||||
dm:any;
|
dm:any;
|
||||||
|
|
||||||
|
@Output() openMessage:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
@@ -46,6 +48,22 @@ export class ContactsPage implements OnInit {
|
|||||||
this.textSearch = event.detail.value;
|
this.textSearch = event.detail.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openMessagesPage(username:string){
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.createRoom(username);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
let body = {
|
||||||
|
username: username,
|
||||||
|
}
|
||||||
|
this.chatService.createRoom(body).subscribe(res => {
|
||||||
|
console.log(res);
|
||||||
|
this.room = res['room'];
|
||||||
|
this.openMessage.emit(this.room._id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
loadUsers(){
|
loadUsers(){
|
||||||
this.options = {
|
this.options = {
|
||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<span><ion-icon class="{{users.status}}" name="ellipse"></ion-icon></span>
|
<span><ion-icon class="{{users.status}}" name="ellipse"></ion-icon></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<ion-icon (click)="openMessagesOptions()" src="assets/images/icons-menu.svg"></ion-icon>
|
<ion-icon (click)="_openMessagesOptions()" src="assets/images/icons-menu.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-bottom" (click)="addContacts()">
|
<div hidden class="header-bottom" (click)="addContacts()">
|
||||||
<div class="header-bottom-icon">
|
<div class="header-bottom-icon">
|
||||||
<ion-icon src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<ion-footer>
|
<ion-footer>
|
||||||
<div class="container width-100 d-flex">
|
<div class="container width-100 d-flex">
|
||||||
<div>
|
<div>
|
||||||
<ion-icon (click)="openChatOptions()" class="chat-icon-options" src="assets/icon/icons-chat-options.svg"></ion-icon>
|
<ion-icon (click)="openSendMessageOptions()" class="chat-icon-options" src="assets/icon/icons-chat-options.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="width-80">
|
<div class="width-80">
|
||||||
<ion-item class="ion-no-padding type-message" lines="none">
|
<ion-item class="ion-no-padding type-message" lines="none">
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { AfterViewChecked, Component, ElementRef, Input, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
import { AfterViewChecked, Component, ElementRef, Input, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||||
import { ModalController, NavParams, PopoverController } from '@ionic/angular';
|
import { AnimationController, ModalController, NavParams, PopoverController } from '@ionic/angular';
|
||||||
import { Status } from 'src/app/models/chat/status.model';
|
import { Status } from 'src/app/models/chat/status.model';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page';
|
import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page';
|
||||||
import { MessagesOptionsPage } from 'src/app/shared/popover/messages-options/messages-options.page';
|
import { MessagesOptionsPage } from 'src/app/shared/popover/messages-options/messages-options.page';
|
||||||
|
import { ProfileComponent } from '../../headers/header-no-search/profile/profile.component';
|
||||||
import { ContactsPage } from '../new-group/contacts/contacts.page';
|
import { ContactsPage } from '../new-group/contacts/contacts.page';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -33,6 +34,7 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
|
|||||||
/* private navParams: NavParams, */
|
/* private navParams: NavParams, */
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
|
private animationController: AnimationController,
|
||||||
) {
|
) {
|
||||||
/* this.dm = this.navParams.get('dm'); */
|
/* this.dm = this.navParams.get('dm'); */
|
||||||
}
|
}
|
||||||
@@ -145,6 +147,17 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
|
|||||||
modal.onDidDismiss();
|
modal.onDidDismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openSendMessageOptions(ev:any){
|
||||||
|
if(window.innerWidth <= 1024){
|
||||||
|
console.log('mobile');
|
||||||
|
this.openChatOptions(ev);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log('desktop');
|
||||||
|
this._openChatOptions();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async openChatOptions(ev: any) {
|
async openChatOptions(ev: any) {
|
||||||
const popover = await this.popoverController.create({
|
const popover = await this.popoverController.create({
|
||||||
component: ChatOptionsPopoverPage,
|
component: ChatOptionsPopoverPage,
|
||||||
@@ -155,5 +168,108 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
|
|||||||
return await popover.present();
|
return await popover.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
async _openMessagesOptions() {
|
||||||
|
|
||||||
|
const enterAnimation = (baseEl: any) => {
|
||||||
|
const backdropAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||||
|
.fromTo('opacity', '0.01', 'var(--backdrop-opacity)');
|
||||||
|
|
||||||
|
const wrapperAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('.modal-wrapper')!)
|
||||||
|
.keyframes([
|
||||||
|
{ offset: 0, opacity: '1', right: '-100%' },
|
||||||
|
{ offset: 1, opacity: '1', right: '0px' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
return this.animationController.create()
|
||||||
|
.addElement(baseEl)
|
||||||
|
.easing('ease-out')
|
||||||
|
.duration(500)
|
||||||
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const leaveAnimation = (baseEl: any) => {
|
||||||
|
return enterAnimation(baseEl).direction('reverse');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* const popover = await this.popoverController.create({
|
||||||
|
component: MessagesOptionsPage,
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.dm._id,
|
||||||
|
},
|
||||||
|
cssClass: 'messages-options',
|
||||||
|
event: ev,
|
||||||
|
translucent: true,
|
||||||
|
});
|
||||||
|
return await popover.present(); */
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
enterAnimation,
|
||||||
|
leaveAnimation,
|
||||||
|
component: MessagesOptionsPage,
|
||||||
|
cssClass: 'model profile-modal search-submodal',
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.roomId,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await modal.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
async _openChatOptions() {
|
||||||
|
|
||||||
|
const enterAnimation = (baseEl: any) => {
|
||||||
|
const backdropAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('ion-backdrop')!)
|
||||||
|
.fromTo('opacity', '0.01', 'var(--backdrop-opacity)');
|
||||||
|
|
||||||
|
const wrapperAnimation = this.animationController.create()
|
||||||
|
.addElement(baseEl.querySelector('.modal-wrapper')!)
|
||||||
|
.keyframes([
|
||||||
|
{ offset: 0, opacity: '1', right: '-100%' },
|
||||||
|
{ offset: 1, opacity: '1', right: '0px' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
return this.animationController.create()
|
||||||
|
.addElement(baseEl)
|
||||||
|
.easing('ease-out')
|
||||||
|
.duration(500)
|
||||||
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const leaveAnimation = (baseEl: any) => {
|
||||||
|
return enterAnimation(baseEl).direction('reverse');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* const popover = await this.popoverController.create({
|
||||||
|
component: MessagesOptionsPage,
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.dm._id,
|
||||||
|
},
|
||||||
|
cssClass: 'messages-options',
|
||||||
|
event: ev,
|
||||||
|
translucent: true,
|
||||||
|
});
|
||||||
|
return await popover.present(); */
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
enterAnimation,
|
||||||
|
leaveAnimation,
|
||||||
|
component: ChatOptionsPopoverPage,
|
||||||
|
cssClass: 'model profile-modal search-submodal',
|
||||||
|
componentProps: {
|
||||||
|
roomId: this.roomId,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await modal.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { GroupContactsPage } from './group-contacts.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: GroupContactsPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class GroupContactsPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { GroupContactsPageRoutingModule } from './group-contacts-routing.module';
|
||||||
|
|
||||||
|
import { GroupContactsPage } from './group-contacts.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
GroupContactsPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [GroupContactsPage]
|
||||||
|
})
|
||||||
|
export class GroupContactsPageModule {}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<ion-header>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title>group-contacts</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
<ion-content>
|
||||||
|
|
||||||
|
</ion-content>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { GroupContactsPage } from './group-contacts.page';
|
||||||
|
|
||||||
|
describe('GroupContactsPage', () => {
|
||||||
|
let component: GroupContactsPage;
|
||||||
|
let fixture: ComponentFixture<GroupContactsPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ GroupContactsPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(GroupContactsPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-group-contacts',
|
||||||
|
templateUrl: './group-contacts.page.html',
|
||||||
|
styleUrls: ['./group-contacts.page.scss'],
|
||||||
|
})
|
||||||
|
export class GroupContactsPage implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -15,7 +15,11 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'group-chat',
|
path: 'group-chat',
|
||||||
loadChildren: () => import('./group-chat/group-chat.module').then( m => m.GroupChatPageModule)
|
loadChildren: () => import('./group-chat/group-chat.module').then( m => m.GroupChatPageModule)
|
||||||
|
},
{
|
||||||
|
path: 'group-contacts',
|
||||||
|
loadChildren: () => import('./group-contacts/group-contacts.module').then( m => m.GroupContactsPageModule)
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|||||||
@@ -2,20 +2,17 @@
|
|||||||
<ion-toolbar class="header-toolbar">
|
<ion-toolbar class="header-toolbar">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<div class="left">
|
|
||||||
<ion-icon (click)="close()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
|
||||||
</div>
|
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Novo Grupo</ion-label>
|
<ion-label class="title">Novo Grupo</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<app-btn-seguinte *ngIf="groupName" (click)="addContacts()"></app-btn-seguinte>
|
<app-btn-criar *ngIf="groupName" (click)="createGroup()"></app-btn-criar> <!-- addContacts -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="main-content">
|
<div class="main-content width-100">
|
||||||
<div class="item-container">
|
<div class="item-container">
|
||||||
<ion-input [(ngModel)]="groupName" placeholder="Título"></ion-input>
|
<ion-input [(ngModel)]="groupName" placeholder="Título"></ion-input>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ ion-content{
|
|||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|
||||||
.title-content{
|
.title-content{
|
||||||
width: 360px;
|
//width: 360px;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -63,7 +63,7 @@ ion-content{
|
|||||||
padding: 0!important;
|
padding: 0!important;
|
||||||
float: left;
|
float: left;
|
||||||
width: 221px;
|
width: 221px;
|
||||||
margin: 2.5px 0 0 5px;
|
//margin: 2.5px 0 0 5px;
|
||||||
}
|
}
|
||||||
.right{
|
.right{
|
||||||
padding: 0!important;
|
padding: 0!important;
|
||||||
@@ -101,7 +101,7 @@ ion-content{
|
|||||||
padding: 15px 20px 0 20px;
|
padding: 15px 20px 0 20px;
|
||||||
|
|
||||||
.item-container{
|
.item-container{
|
||||||
width: 360px;
|
//width: 360px;
|
||||||
margin: 15px auto;
|
margin: 15px auto;
|
||||||
border: 1px solid #ebebeb;
|
border: 1px solid #ebebeb;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@@ -110,7 +110,7 @@ ion-content{
|
|||||||
|
|
||||||
.item-container-no-border{
|
.item-container-no-border{
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 360px;
|
//width: 360px;
|
||||||
margin: 25px auto;
|
margin: 25px auto;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -124,15 +124,16 @@ ion-content{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container-div{
|
.container-div{
|
||||||
|
width: 100%;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.ion-item-class-2{
|
.ion-item-class-2{
|
||||||
width: 360px;
|
width: 100%;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
|
|
||||||
.ion-icon-class{
|
.ion-icon-class{
|
||||||
width: 45px;
|
width: 5%;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
float: left;
|
float: left;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@@ -140,12 +141,13 @@ ion-content{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ion-input-class{
|
.ion-input-class{
|
||||||
width: 315px;
|
width: 93%;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
border: 1px solid #ebebeb;
|
border: 1px solid #ebebeb;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
margin-left: 2%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { analyzeAndValidateNgModules } from '@angular/compiler';
|
import { analyzeAndValidateNgModules } from '@angular/compiler';
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { ModalController, NavParams, PickerController, PopoverController } from '@ionic/angular';
|
import { ModalController, NavParams, PickerController, PopoverController } from '@ionic/angular';
|
||||||
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
|
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
|
||||||
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
|
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
|
||||||
|
|
||||||
@@ -15,17 +16,21 @@ export class NewGroupPage implements OnInit {
|
|||||||
displayDuration: any;
|
displayDuration: any;
|
||||||
showDuration: boolean;
|
showDuration: boolean;
|
||||||
selectedDuration = ['','',''];
|
selectedDuration = ['','',''];
|
||||||
groupName:string;
|
//groupName:string;
|
||||||
|
|
||||||
|
@Input() groupName:string;
|
||||||
|
@Output() addGroupMessage:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private pickerController: PickerController,
|
private pickerController: PickerController,
|
||||||
private popoverController: PopoverController,
|
private popoverController: PopoverController,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private navParams: NavParams,
|
private chatService: ChatService,
|
||||||
|
//private navParams: NavParams,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.isGroupCreated = false;
|
this.isGroupCreated = false;
|
||||||
this.groupName = this.navParams.get('name');
|
//this.groupName = this.navParams.get('name');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -35,7 +40,19 @@ export class NewGroupPage implements OnInit {
|
|||||||
this.showDuration = event.detail.checked;
|
this.showDuration = event.detail.checked;
|
||||||
}
|
}
|
||||||
close(){
|
close(){
|
||||||
this.modalController.dismiss();
|
//this.modalController.dismiss();
|
||||||
|
console.log('close');
|
||||||
|
this.addGroupMessage.emit();
|
||||||
|
}
|
||||||
|
|
||||||
|
createGroup(){
|
||||||
|
let name = this.groupName.split(' ').join('-');
|
||||||
|
let body = { "name":name, }
|
||||||
|
this.chatService.addGroup(body).subscribe(res=>{
|
||||||
|
console.log('group created');
|
||||||
|
console.log(res['group']);
|
||||||
|
this.addGroupMessage.emit(res['group']._id);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async addContacts(){
|
async addContacts(){
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { EmptyContainerPage } from './empty-container.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: EmptyContainerPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class EmptyContainerPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EmptyContainerPageRoutingModule } from './empty-container-routing.module';
|
||||||
|
|
||||||
|
import { EmptyContainerPage } from './empty-container.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
EmptyContainerPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [EmptyContainerPage]
|
||||||
|
})
|
||||||
|
export class EmptyContainerPageModule {}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<ion-content>
|
||||||
|
<div class="center height-100">
|
||||||
|
<p>{{texto}}</p>
|
||||||
|
</div>
|
||||||
|
</ion-content>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EmptyContainerPage } from './empty-container.page';
|
||||||
|
|
||||||
|
describe('EmptyContainerPage', () => {
|
||||||
|
let component: EmptyContainerPage;
|
||||||
|
let fixture: ComponentFixture<EmptyContainerPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ EmptyContainerPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(EmptyContainerPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-empty-container',
|
||||||
|
templateUrl: './empty-container.page.html',
|
||||||
|
styleUrls: ['./empty-container.page.scss'],
|
||||||
|
})
|
||||||
|
export class EmptyContainerPage implements OnInit {
|
||||||
|
@Input() texto:string;
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { EventsToApprovePage } from './events-to-approve.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: EventsToApprovePage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class EventsToApprovePageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EventsToApprovePageRoutingModule } from './events-to-approve-routing.module';
|
||||||
|
|
||||||
|
import { EventsToApprovePage } from './events-to-approve.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
EventsToApprovePageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [EventsToApprovePage]
|
||||||
|
})
|
||||||
|
export class EventsToApprovePageModule {}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
<ion-content>
|
||||||
|
<div class="title width-100">
|
||||||
|
<label>Sim Eventos para Aprovação</label>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-segment [(ngModel)]="segment">
|
||||||
|
<ion-segment-button value="MDGPR">
|
||||||
|
Seu calendário
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button value="PR">
|
||||||
|
Presidente da República
|
||||||
|
</ion-segment-button>
|
||||||
|
</ion-segment>
|
||||||
|
</ion-toolbar>
|
||||||
|
</div>
|
||||||
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
|
<ion-refresher-content>
|
||||||
|
</ion-refresher-content>
|
||||||
|
</ion-refresher>
|
||||||
|
<div [ngSwitch]="segment">
|
||||||
|
<!-- <div class="header-content width-100"> -->
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<ion-list class="width-100" *ngSwitchCase="'MDGPR'">
|
||||||
|
<div class="width-100" *ngIf="eventsMDGPRList">
|
||||||
|
<ion-list>
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-item class="Rectangle width-100" lines="none"
|
||||||
|
*ngFor="let event of eventsMDGPRList" (click)="openApproveModal(event.serialNumber)">
|
||||||
|
|
||||||
|
<div class="content-mdgpr-{{event.workflowInstanceDataFields.Agenda}} width-100">
|
||||||
|
<div class="approve-event-time">
|
||||||
|
<p>{{event.workflowInstanceDataFields.StartDate | date: 'hh:mm'}}</p>
|
||||||
|
<p>{{event.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="approve-event-detail">
|
||||||
|
<p *ngIf="event.workflowInstanceDataFields.StartDate != event.workflowInstanceDataFields.EndDate">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} - {{ event.workflowInstanceDataFields.EndDate | date: 'dd/M/yy'}} | {{event.workflowInstanceDataFields.Location}}</p>
|
||||||
|
<p *ngIf="event.workflowInstanceDataFields.StartDate == event.workflowInstanceDataFields.EndDate">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} | {{event.workflowInstanceDataFields.Location}}</p>
|
||||||
|
<h3>{{event.workflowInstanceDataFields.Subject}}</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
</ion-item-sliding>
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
</ion-list>
|
||||||
|
<ion-list *ngSwitchCase="'PR'">
|
||||||
|
<div *ngIf="eventsPRList">
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-item class="Rectangle" lines="none"
|
||||||
|
*ngFor="let event of eventsPRList" (click)="openApproveModal(event.serialNumber)">
|
||||||
|
<div class="content-pr-{{event.workflowInstanceDataFields.Agenda}}">
|
||||||
|
<div class="approve-event-time">
|
||||||
|
<p>{{event.workflowInstanceDataFields.StartDate | date: 'hh:mm'}}</p>
|
||||||
|
<p>{{event.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="approve-event-detail">
|
||||||
|
<p *ngIf="event.workflowInstanceDataFields.StartDate != event.workflowInstanceDataFields.EndDate">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} - {{ event.workflowInstanceDataFields.EndDate | date: 'dd/M/yy'}} | {{event.workflowInstanceDataFields.Location}}</p>
|
||||||
|
<p *ngIf="event.workflowInstanceDataFields.StartDate == event.workflowInstanceDataFields.EndDate">{{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} | {{event.workflowInstanceDataFields.Location}}</p>
|
||||||
|
<h3>{{event.workflowInstanceDataFields.Subject}}</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
</ion-item-sliding>
|
||||||
|
</div>
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
</ion-content>
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
:host{
|
||||||
|
padding: 30px 20px 0 20px !important;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 25px;
|
||||||
|
color:#000;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
ion-item-sliding{
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
.Rectangle {
|
||||||
|
//width: 360px;
|
||||||
|
border-radius: 15px;
|
||||||
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||||
|
border: solid 1px #e9e9e9;
|
||||||
|
background-color: var(--white);
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.content-mdgpr-Oficial{
|
||||||
|
border-radius: 5px;
|
||||||
|
border-right: 5px solid #99e47b;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.content-mdgpr-Pessoal{
|
||||||
|
border-radius: 5px;
|
||||||
|
border-right: 5px solid #958bfc;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.content-pr-Oficial{
|
||||||
|
border-radius: 5px;
|
||||||
|
border-right: 5px solid #ffb703;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.content-pr-Pessoal{
|
||||||
|
border-radius: 5px;
|
||||||
|
border-right: 5px solid #f05d5e;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.approve-event-time{
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.approve-event-time p{
|
||||||
|
width: 33px;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: normal;
|
||||||
|
letter-spacing: normal;
|
||||||
|
color: var(--Antartic-grey);
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
.approve-event-detail{
|
||||||
|
float: left;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.approve-event-detail p{
|
||||||
|
//width: 250px;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: normal;
|
||||||
|
letter-spacing: normal;
|
||||||
|
color: var(--black);
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
.approve-event-detail h3{
|
||||||
|
width: 250px;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-stretch: normal;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: normal;
|
||||||
|
letter-spacing: normal;
|
||||||
|
color: #0d89d1;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { EventsToApprovePage } from './events-to-approve.page';
|
||||||
|
|
||||||
|
describe('EventsToApprovePage', () => {
|
||||||
|
let component: EventsToApprovePage;
|
||||||
|
let fixture: ComponentFixture<EventsToApprovePage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ EventsToApprovePage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(EventsToApprovePage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
|
import { EventBody } from 'src/app/models/eventbody.model';
|
||||||
|
import { EventPerson } from 'src/app/models/eventperson.model';
|
||||||
|
import { Event } from 'src/app/models/event.model';
|
||||||
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
|
import { ModalController, NavParams } from '@ionic/angular';
|
||||||
|
import { NavigationEnd, Router } from '@angular/router';
|
||||||
|
import { ApproveEventComponent } from '../../agenda/approve-event/approve-event.component';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-events-to-approve',
|
||||||
|
templateUrl: './events-to-approve.page.html',
|
||||||
|
styleUrls: ['./events-to-approve.page.scss'],
|
||||||
|
})
|
||||||
|
export class EventsToApprovePage implements OnInit {
|
||||||
|
|
||||||
|
//segment:string;
|
||||||
|
showLoader: boolean;
|
||||||
|
eventsPRList: any;
|
||||||
|
eventsMDGPRList: any;
|
||||||
|
eventPerson: EventPerson;
|
||||||
|
eventBody: EventBody;
|
||||||
|
categories: string[];
|
||||||
|
serialnumber:string;
|
||||||
|
|
||||||
|
@Input() segment:string;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private processes:ProcessesService,
|
||||||
|
private modalController: ModalController,
|
||||||
|
private router: Router,
|
||||||
|
//private navParams: NavParams,
|
||||||
|
) { }
|
||||||
|
S
|
||||||
|
ngOnInit() {
|
||||||
|
//this.segment = this.navParams.get('segment');
|
||||||
|
/* console.log(this.navParams.get('md')); */
|
||||||
|
console.log(this.segment);
|
||||||
|
this.LoadToApproveEvents();
|
||||||
|
|
||||||
|
|
||||||
|
this.router.events.forEach((event) => {
|
||||||
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
|
this.LoadToApproveEvents();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
window.onresize = (event) => {
|
||||||
|
// if not mobile remove all component
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
this.modalController.dismiss();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
LoadToApproveEvents(){
|
||||||
|
this.showLoader = true;
|
||||||
|
|
||||||
|
this.processes.GetToApprovedEvents('PR','false').subscribe(res=>{
|
||||||
|
this.showLoader = false;
|
||||||
|
this.eventsPRList = res;
|
||||||
|
});
|
||||||
|
this.processes.GetToApprovedEvents('MDGPR','false').subscribe(res=>{
|
||||||
|
this.showLoader = false;
|
||||||
|
this.eventsMDGPRList = res;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
async openApproveModal(eventSerialNumber){
|
||||||
|
let classs;
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
classs = 'modal modal-desktop'
|
||||||
|
} else {
|
||||||
|
classs = 'modal modal-desktop showAsideOptions'
|
||||||
|
}
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: ApproveEventComponent,
|
||||||
|
componentProps:{
|
||||||
|
serialNumber: eventSerialNumber,
|
||||||
|
showAside: true,
|
||||||
|
},
|
||||||
|
cssClass: classs,
|
||||||
|
});
|
||||||
|
await modal.present();
|
||||||
|
modal.onDidDismiss();
|
||||||
|
}
|
||||||
|
|
||||||
|
doRefresh(event) {
|
||||||
|
this.LoadToApproveEvents();
|
||||||
|
console.log('refresh');
|
||||||
|
setTimeout(() => {
|
||||||
|
event.target.complete();
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
close(){
|
||||||
|
this.modalController.dismiss(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,110 +2,237 @@
|
|||||||
<ion-toolbar class="header-toolbar">
|
<ion-toolbar class="header-toolbar">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<app-btn-modal-dismiss></app-btn-modal-dismiss>
|
<app-btn-modal-dismiss (click)="openExpedientListPage()"></app-btn-modal-dismiss>
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Gabinete Digital</ion-label>
|
<ion-label class="title">Detalhes do Expediente</ion-label>
|
||||||
|
</div>
|
||||||
|
<div class="div-icon">
|
||||||
|
<ion-menu-button autoHide="false">
|
||||||
|
<ion-icon name="ellipsis-vertical-outline"></ion-icon>
|
||||||
|
</ion-menu-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
<ion-toolbar>
|
|
||||||
<ion-segment [(ngModel)]="segment">
|
|
||||||
<ion-segment-button value="expediente">
|
|
||||||
Expediente
|
|
||||||
</ion-segment-button>
|
|
||||||
<ion-segment-button value="pendentes">
|
|
||||||
Pendentes
|
|
||||||
</ion-segment-button>
|
|
||||||
</ion-segment>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
<!-- <ion-header>
|
||||||
|
<ion-toolbar class="bg-blue">
|
||||||
|
<ion-buttons slot="start">
|
||||||
|
<ion-back-button defaultHref="/expediente"></ion-back-button>
|
||||||
|
</ion-buttons>
|
||||||
|
<ion-title>Expediente</ion-title>
|
||||||
|
<ion-buttons slot="end">
|
||||||
|
<ion-menu-button autoHide="false">
|
||||||
|
<ion-icon name="ellipsis-vertical-outline"></ion-icon>
|
||||||
|
</ion-menu-button>
|
||||||
|
</ion-buttons>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header> -->
|
||||||
|
|
||||||
<ion-content>
|
<ion-menu autoHide="false" side="end" content-id="main-content">
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-header>
|
||||||
<ion-refresher-content
|
<ion-toolbar translucent>
|
||||||
pullingIcon="chevron-down-circle-outline"
|
<ion-title>Menu</ion-title>
|
||||||
pullingText="deslize para actualizar"
|
</ion-toolbar>
|
||||||
refreshingSpinner="circles"
|
</ion-header>
|
||||||
refreshingText="A actualizar...">
|
<ion-content>
|
||||||
</ion-refresher-content>
|
<ion-list>
|
||||||
</ion-refresher>
|
<ion-item (click)="openExpedientActionsModal('0',fulltask)">
|
||||||
|
<ion-icon name="documents" slot="start"></ion-icon>
|
||||||
|
<ion-label>Efectuar Despacho</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item (click)="openExpedientActionsModal('1',fulltask)">
|
||||||
|
<ion-icon name="arrow-undo" slot="start"></ion-icon>
|
||||||
|
<ion-label>Pedido de Parecer</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item (click)="openExpedientActionsModal('2',fulltask)">
|
||||||
|
<ion-icon name="arrow-redo" slot="start"></ion-icon>
|
||||||
|
<ion-label>Pedido de Deferimento</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item (click)="openBookMeetingModal(task)">
|
||||||
|
<ion-icon name="calendar" slot="start"></ion-icon>
|
||||||
|
<ion-label>Marcar reunião</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item (click)="discartExpedient()">
|
||||||
|
<ion-icon name="trash" slot="start"></ion-icon>
|
||||||
|
<ion-label>Descartar</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item disabled>
|
||||||
|
<ion-icon name="paper-plane" slot="start"></ion-icon>
|
||||||
|
<ion-label>Enviar para pendentes</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</ion-list>
|
||||||
|
</ion-content>
|
||||||
|
</ion-menu>
|
||||||
|
<div class="ion-page" id="main-content">
|
||||||
|
<ion-menu-button></ion-menu-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div [ngSwitch]="segment" *ngIf="taskslist">
|
<ion-content padding>
|
||||||
<ion-list *ngSwitchCase="'expediente'">
|
<div *ngIf="task">
|
||||||
<ion-item-group>
|
<h3 class="h3-event-title">Detalhes do Expediente</h3>
|
||||||
|
<ion-item-group>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label position="stacked">Assunto</ion-label>
|
||||||
|
<ion-input disabled="true">{{ task.Folio }}</ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label position="stacked">Remetentes</ion-label>
|
||||||
|
<ion-input disabled="true">{{task.Remetente}}</ion-input><!-- {{ task.Senders }} -->
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label position="stacked">Data</ion-label>
|
||||||
|
<ion-input disabled="true" value=''>{{ task.CreateDate | date: 'dd-MM-yy | hh:mm'}}</ion-input>
|
||||||
|
</ion-item>
|
||||||
|
<ion-button (click)="viewDocument()" class="btn-ok-no-width" fill="clear" color="#fff" shape="round" expand="block">
|
||||||
|
<ion-icon name="attach" slot="start"></ion-icon>
|
||||||
|
Ver documento
|
||||||
|
</ion-button>
|
||||||
|
</ion-item-group>
|
||||||
|
<div *ngIf="eventsList">
|
||||||
|
<h3 class="h3-event-title">Eventos Associados</h3>
|
||||||
|
<!-- <ion-list>
|
||||||
<ion-item-sliding>
|
<ion-item-sliding>
|
||||||
<!-- <ion-item lines="none" *ngFor = "let task of taskslist" >
|
<ion-item lines="none"
|
||||||
<div class="div-content-expediente">
|
*ngFor="let event of eventsList"
|
||||||
<ion-item lines="none" [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]">
|
[routerLink]="['/home/gabinete-digital/expediente/events/', event.EventId, 'gabinete-digital/expediente/' + serialnumber]">
|
||||||
<ion-icon slot="end" name="calendar"></ion-icon>
|
<div class="div-item-{{event.CalendarName}}">
|
||||||
<h3>{{ task.Folio }}</h3>
|
<div class="div-up">
|
||||||
</ion-item>
|
<div class="div-icon">
|
||||||
<p><span class="span-left">{{task.Remetente}}</span><span class="span-right">{{ task.CreateDate | date: 'dd-MM-yy' }}</span></p>
|
<ion-icon slot="start" name="reader"></ion-icon>
|
||||||
<p><span class="span-left">{{ task.Senders }}</span><span class="span-right">{{ task.CreateDate | date: 'dd-MM-yy' }}</span></p>
|
|
||||||
</div>
|
|
||||||
</ion-item> -->
|
|
||||||
|
|
||||||
<ion-item
|
|
||||||
class="expediente"
|
|
||||||
lines="none"
|
|
||||||
*ngFor = "let task of taskslist"
|
|
||||||
(click)="viewExpedientDetail(task.SerialNumber)"
|
|
||||||
>
|
|
||||||
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
|
||||||
<div class="Rectangle">
|
|
||||||
<div class="exp-top-detail">
|
|
||||||
<div class="exp-date">
|
|
||||||
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-remetente">
|
<div class="div-content-{{event.CalendarName}}">
|
||||||
<ion-label>{{task.Remetente}}</ion-label>
|
<h3 class="capitalizeText">{{event.Subject}}</h3>
|
||||||
</div>
|
<p>{{event.StartDate | date: 'dd-MM-yy | hh:mm'}} - {{event.EndDate| date: 'hh:mm'}}</p>
|
||||||
<div class="exp-icon">
|
|
||||||
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
|
||||||
<label></label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-bottom-detail">
|
<div class="div-botton">
|
||||||
<ion-label>{{ task.Folio }}</ion-label>
|
<div class="div-botton-left">
|
||||||
|
<ion-icon class="ion-icon-location" slot="start" name="location"></ion-icon>
|
||||||
|
</div>
|
||||||
|
<div class="div-botton-middle">
|
||||||
|
<p class="item-list-small capitalizeText">{{event.Location}}</p>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="event.HasAttachments" class="div-botton-right">
|
||||||
|
<ion-icon class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
|
|
||||||
</ion-item-sliding>
|
</ion-item-sliding>
|
||||||
</ion-item-group>
|
</ion-list> -->
|
||||||
</ion-list>
|
|
||||||
<ion-list *ngSwitchCase="'pendentes'">
|
|
||||||
<ion-item-group>
|
|
||||||
<ion-item-sliding>
|
|
||||||
</ion-item-sliding>
|
|
||||||
</ion-item-group>
|
|
||||||
</ion-list>
|
|
||||||
</div>
|
|
||||||
<div *ngIf="!taskslist">
|
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
|
<div *ngIf="eventsList">
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-item
|
||||||
|
class="Rectangle" lines="none"
|
||||||
|
*ngFor="let event of eventsList"
|
||||||
|
(click)="viewEventDetail(event.EventId)"
|
||||||
|
>
|
||||||
|
<!-- [routerLink]="['/home/events', event.EventId, 'events']" -->
|
||||||
|
<div class="content-{{profile}}-{{event.CalendarName}}">
|
||||||
|
<div class="approve-event-time">
|
||||||
|
<p>{{event.StartDate | date: 'hh:mm'}}</p>
|
||||||
|
<p>{{event.EndDate | date: 'hh:mm'}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="approve-event-detail">
|
||||||
|
<p *ngIf="event.StartDate != event.EndDate">{{event.StartDate | date: 'd/M/yy' }} - {{ event.EndDate | date: 'dd/mm/yy'}} | {{event.Location}}</p>
|
||||||
|
<p *ngIf="event.StartDate == event.EndDate">{{event.StartDate | date: 'd/M/yy' }} | {{event.Location}}</p>
|
||||||
|
<h3>{{event.Subject}}</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
</ion-item-sliding>
|
||||||
|
</div>
|
||||||
|
</ion-list>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <div *ngIf="!eventsList">
|
||||||
|
<ion-list>
|
||||||
|
<ion-list-header>
|
||||||
|
<ion-label>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</ion-label>
|
||||||
|
</ion-list-header>
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-thumbnail slot="end">
|
<ion-thumbnail slot="start">
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
<ion-skeleton-text animated></ion-skeleton-text>
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
<h3>
|
||||||
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 60%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-thumbnail slot="end">
|
<ion-thumbnail slot="start">
|
||||||
<ion-skeleton-text animated></ion-skeleton-text>
|
<ion-skeleton-text animated></ion-skeleton-text>
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
<h3>
|
||||||
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 60%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
|
</ion-list>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div *ngIf="!task">
|
||||||
|
<ion-list>
|
||||||
|
<ion-list-header>
|
||||||
|
<ion-label>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</ion-label>
|
||||||
|
</ion-list-header>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-label>
|
||||||
|
<h3>
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text>
|
||||||
|
</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-button color="medium" shape="round" expand="block">
|
||||||
|
<!-- <ion-icon color="medium" name="attach" slot="start"></ion-icon> -->
|
||||||
|
<ion-skeleton-text animated style="width: 50%"></ion-skeleton-text>
|
||||||
|
</ion-button>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -77,48 +77,53 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* CONTENT */
|
ion-item-group{
|
||||||
.item-list-small{
|
margin: 15px;
|
||||||
font-size: 11px;
|
}
|
||||||
|
ion-button{
|
||||||
|
display: block;
|
||||||
|
width: 80%;
|
||||||
|
margin: 20px auto;
|
||||||
|
}
|
||||||
|
.h3-event-title{
|
||||||
|
padding: 15px 0 0px 25px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
//DIV
|
||||||
|
.div-item-Oficial{
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
margin: 10px 0 5px 0;
|
||||||
|
/* background: #cab0dc; */
|
||||||
|
/* border-radius: 20px; */
|
||||||
|
/* padding: 10px; */
|
||||||
|
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
||||||
|
}
|
||||||
|
.div-item-Pessoal{
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
margin: 10px 0 5px 0;
|
||||||
|
/* background: #cbeecb; */
|
||||||
|
/* border-radius: 20px; */
|
||||||
|
/* padding: 10px; */
|
||||||
|
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
||||||
|
}
|
||||||
|
.div-up{
|
||||||
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.ion-item-class{
|
.div-up h3{
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
.label-text{
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
//DIV
|
|
||||||
ion-item{
|
|
||||||
--background: none;
|
|
||||||
}
|
|
||||||
.div-content-expediente{
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
border-left: 3px solid #dae3f3;
|
|
||||||
padding:5px 5px 15px 5px;
|
|
||||||
margin: 10px 0 10px 0;
|
|
||||||
background: #dae3f3;
|
|
||||||
border-radius: 20px;
|
|
||||||
}
|
|
||||||
.div-content-pendentes{
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
border-left: 3px solid #d9d9d9;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
.div-content-expediente h3, .div-content-pendentes h3{
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 14pt;
|
font-size: 17px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.div-icon{
|
.div-icon{
|
||||||
width: 10%;
|
width: 10%;
|
||||||
font-size: 20px;
|
font-size: 22px;
|
||||||
float: left;
|
float: left;
|
||||||
color: #808080;
|
color: #808080;
|
||||||
}
|
}
|
||||||
@@ -127,101 +132,94 @@ ion-item{
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
}
|
}
|
||||||
.div-content-expediente p, .div-content-pendentes p{
|
.div-content-Oficial{
|
||||||
|
width: 85%;
|
||||||
|
float: left;
|
||||||
|
border-left: 4px solid #cab0dc;
|
||||||
|
padding: 0 0 0 12px;
|
||||||
|
}
|
||||||
|
.div-content-Pessoal{
|
||||||
|
width: 85%;
|
||||||
|
float: left;
|
||||||
|
border-left: 4px solid #cbeecb;
|
||||||
|
padding: 0 0 0 12px;
|
||||||
|
}
|
||||||
|
.div-content-Oficial h3, .div-content-Pessoal h3{
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
|
/* border: 1px solid red; */
|
||||||
|
}
|
||||||
|
.div-content-Oficial p, .div-content-Pessoal p{
|
||||||
|
font-size: 12pt;
|
||||||
color: rgb(94, 92, 92);
|
color: rgb(94, 92, 92);
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
.div-botton{
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 10px 0 5px 0;
|
||||||
|
}
|
||||||
|
.div-botton-left{
|
||||||
|
width: 10%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.ion-icon-location{
|
||||||
|
text-align: center;
|
||||||
|
display: block;
|
||||||
|
color: #000;
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.div-botton-middle{
|
||||||
|
width: 75%;
|
||||||
|
float: left;
|
||||||
|
margin-top: 0.5px;
|
||||||
|
}
|
||||||
|
.div-botton-middle p{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.span-left{
|
.div-botton-right{
|
||||||
/* border: 1px solid red; */
|
width: 10%;
|
||||||
float: left;
|
float: left;
|
||||||
font-size: 12px;
|
margin: 0;
|
||||||
padding-left: 18px;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.span-right{
|
.ion-icon-attach{
|
||||||
/* border: 1px solid blue; */
|
color: #666666;
|
||||||
text-align: right;
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
/* TOGGLE BUTTON */
|
||||||
|
.switch {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 90px;
|
||||||
|
height: 34px;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 12px;
|
margin:20px 20px 0 0;
|
||||||
padding-right: 18px;
|
}
|
||||||
}
|
.div-top-header{
|
||||||
|
width: 400px;
|
||||||
/* New CSS */
|
margin: 6px auto;
|
||||||
.expediente{
|
background-color: #0782c9;
|
||||||
padding-top: 10px;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.exp-list-item{
|
.div-search{
|
||||||
width: 368px;
|
font-size: 45px;
|
||||||
overflow: auto;
|
float: left;
|
||||||
/* border-bottom: 1px solid gray; */
|
margin: 0 0 0 10px
|
||||||
margin: 10px auto;
|
}
|
||||||
}
|
.div-logo{
|
||||||
.exp-top-detail{
|
background: transparent;
|
||||||
width: 100%;
|
width: 150px;
|
||||||
overflow: auto;
|
margin: 2.5px 0 2.5px 71px;
|
||||||
}
|
float: left;
|
||||||
.exp-date{
|
}
|
||||||
width: auto;
|
.div-logo img{
|
||||||
font-family: Roboto;
|
width: 100%;
|
||||||
font-size: 13px;
|
}
|
||||||
font-weight: normal;
|
.div-profile{
|
||||||
font-stretch: normal;
|
font-size: 45px;
|
||||||
font-style: normal;
|
float: right;
|
||||||
line-height: normal;
|
margin-right: 10px;
|
||||||
letter-spacing: normal;
|
}
|
||||||
color: #797979;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.exp-remetente{
|
|
||||||
width: 200px;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #000000;
|
|
||||||
float: left;
|
|
||||||
margin-left: 16px;
|
|
||||||
|
|
||||||
}
|
|
||||||
.exp-icon{
|
|
||||||
width: 45px;
|
|
||||||
float: right;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
.exp-icon ion-icon{
|
|
||||||
font-size: 25px;
|
|
||||||
color: #42b9fe;
|
|
||||||
}
|
|
||||||
.exp-bottom-detail{
|
|
||||||
width: 100px;
|
|
||||||
float: left;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #0d89d1;
|
|
||||||
}
|
|
||||||
.div-top-header{
|
|
||||||
width: 400px;
|
|
||||||
margin: 6px auto;
|
|
||||||
background-color: #0782c9;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.div-search{
|
|
||||||
font-size: 45px;
|
|
||||||
float: left;
|
|
||||||
margin: 0 0 0 10px
|
|
||||||
}
|
|
||||||
.div-logo{
|
|
||||||
background: transparent;
|
|
||||||
width: 150px;
|
|
||||||
margin: 2.5px 0 2.5px 71px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.div-logo img{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.div-profile{
|
|
||||||
font-size: 45px;
|
|
||||||
float: right;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
@@ -1,13 +1,19 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
|
||||||
import { CalendarComponent } from 'ionic2-calendar';
|
|
||||||
|
|
||||||
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
|
import { AttachmentsService } from 'src/app/services/attachments.service';
|
||||||
|
import { EventsService } from 'src/app/services/events.service';
|
||||||
|
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||||
|
import { DailyWorkTask } from 'src/app/models/dailyworktask.model';
|
||||||
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { formatDate } from '@angular/common';
|
import { formatDate } from '@angular/common';
|
||||||
import { LoadingService } from 'src/app/services/loading.service';
|
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
import { MenuController, ModalController, NavParams } from '@ionic/angular';
|
||||||
import { ExpedienteDetailPage } from 'src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
import { Event } from 'src/app/models/event.model';
|
||||||
|
import { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
|
||||||
|
import { momentG } from 'src/plugin/momentG';
|
||||||
|
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
||||||
|
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-expediente',
|
selector: 'app-expediente',
|
||||||
@@ -16,78 +22,143 @@ import { ExpedienteDetailPage } from 'src/app/pages/gabinete-digital/expediente/
|
|||||||
})
|
})
|
||||||
export class ExpedientePage implements OnInit {
|
export class ExpedientePage implements OnInit {
|
||||||
|
|
||||||
segment:string;
|
task: any;
|
||||||
profile:string;
|
fulltask: any;
|
||||||
|
eventsList: Event[];
|
||||||
|
//serialnumber: string;
|
||||||
|
//profile: string;
|
||||||
|
|
||||||
@ViewChild(CalendarComponent) myCal: CalendarComponent;
|
@Input() profile:string;
|
||||||
|
@Input() serialNumber:string;
|
||||||
|
@Output() openExpedientList:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
taskslist:DailyWorkTask[];
|
constructor(private activateRoute: ActivatedRoute,
|
||||||
serialNumber:string;
|
private processes: ProcessesService,
|
||||||
|
private iab: InAppBrowser,
|
||||||
constructor(
|
private attachments: AttachmentsService,
|
||||||
private processes:ProcessesService,
|
private events: EventsService,
|
||||||
|
private menu: MenuController,
|
||||||
|
private router: Router,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
) {
|
//private navParams: NavParams,
|
||||||
this.profile = 'mdgpr';
|
private alertService: AlertService) {
|
||||||
|
//this.serialnumber = this.navParams.get('serialNumber');
|
||||||
|
//this.profile = this.navParams.get('profile');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
//Inicializar segment
|
this.profile = "mdgpr";
|
||||||
this.segment = "expediente";
|
console.log(this.serialNumber);
|
||||||
this.LoadList();
|
|
||||||
|
this.activateRoute.paramMap.subscribe(paramMap => {
|
||||||
|
if (!paramMap.has('SerialNumber')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/* this.serialnumber = paramMap.get('SerialNumber'); */
|
||||||
|
this.LoadTaskDetail(this.serialNumber);
|
||||||
|
this.LoadRelatedEvents(this.serialNumber);
|
||||||
|
});
|
||||||
|
this.LoadTaskDetail(this.serialNumber);
|
||||||
|
this.LoadRelatedEvents(this.serialNumber);
|
||||||
|
}
|
||||||
|
openExpedientListPage(){
|
||||||
|
this.openExpedientList.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadList()
|
|
||||||
{
|
async LoadTaskDetail(serial: string) {
|
||||||
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
this.processes.GetTask(serial).subscribe(res => {
|
||||||
this.taskslist = new Array();
|
this.task = {
|
||||||
result.forEach(element => {
|
"SerialNumber": res.serialNumber,
|
||||||
let task: DailyWorkTask = {
|
"Folio": res.workflowInstanceFolio,
|
||||||
"SerialNumber": element.serialNumber,
|
"Senders": res.originator.email,
|
||||||
"Folio": element.workflowInstanceFolio,
|
"CreateDate": momentG(new Date(res.taskStartDate),'yyyy-MM-dd HH:mm:ss'),
|
||||||
"Senders": element.originator.email,
|
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
||||||
"CreateDate": formatDate(new Date(element.taskStartDate), 'yyyy-MM-dd HH:mm', 'pt'),
|
"Remetente": res.workflowInstanceDataFields.Sender,
|
||||||
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
}
|
||||||
"Remetente": element.workflowInstanceDataFields.Remetente
|
this.fulltask = res;
|
||||||
}
|
console.log(res);
|
||||||
this.taskslist.push(task);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh(event) {
|
async LoadRelatedEvents(serial: string) {
|
||||||
this.LoadList();
|
if (this.eventsList == null) {
|
||||||
|
this.attachments.getAttachmentsBySerial(serial).subscribe(res => {
|
||||||
setTimeout(() => {
|
console.log(res);
|
||||||
event.target.complete();
|
res.forEach(att => {
|
||||||
}, 2000);
|
if (this.eventsList == null) {
|
||||||
|
this.eventsList = new Array();
|
||||||
|
}
|
||||||
|
this.events.getEvent(att.ParentId).subscribe(event => {
|
||||||
|
this.eventsList.push(event);
|
||||||
|
console.log(this.eventsList);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async viewExpedientDetail(serialNumber:any) {
|
viewDocument(){
|
||||||
console.log(this.profile);
|
const url: string = this.task.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||||
|
const browser = this.iab.create(url,"_parent");
|
||||||
|
browser.show();
|
||||||
|
}
|
||||||
|
|
||||||
let classs;
|
openMenu() {
|
||||||
if( window.innerWidth <= 1024){
|
this.menu.open();
|
||||||
classs = 'modal'
|
}
|
||||||
} else {
|
|
||||||
classs = 'gabinete-digital-mobile-modal-to-Desktop'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
async openExpedientActionsModal(taskAction: any, task: any) {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ExpedienteDetailPage,
|
component: ExpedientTaskModalPage,
|
||||||
componentProps:{
|
componentProps: {
|
||||||
enterAnimation: "",
|
taskAction: taskAction,
|
||||||
serialNumber: serialNumber,
|
task: task,
|
||||||
profile: this.profile,
|
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'expedient-task-modal modal-desktop',
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res)=>{
|
modal.onDidDismiss();
|
||||||
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
discartExpedient() {
|
||||||
|
let body = { "serialNumber": this.serialNumber, "action": "Task Completed" }
|
||||||
|
console.log(body);
|
||||||
|
this.processes.PostTaskAction(body);
|
||||||
|
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||||
|
}
|
||||||
|
|
||||||
|
async openBookMeetingModal(task: any) {
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: BookMeetingModalPage,
|
||||||
|
componentProps: {
|
||||||
|
task: task,
|
||||||
|
},
|
||||||
|
cssClass: 'book-meeting-modal modal-desktop',
|
||||||
|
backdropDismiss: false
|
||||||
|
});
|
||||||
|
await modal.present();
|
||||||
|
modal.onDidDismiss();
|
||||||
|
}
|
||||||
|
|
||||||
|
async viewEventDetail(eventId: any) {
|
||||||
|
console.log(this.profile);
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: ViewEventPage,
|
||||||
|
componentProps: {
|
||||||
|
eventId: eventId,
|
||||||
|
profile: this.profile,
|
||||||
|
},
|
||||||
|
cssClass: 'modal modal-desktop',
|
||||||
|
backdropDismiss: false
|
||||||
|
});
|
||||||
|
await modal.present();
|
||||||
|
modal.onDidDismiss().then((res) => {
|
||||||
|
if (res) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { ExpedientsPage } from './expedients.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: ExpedientsPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class ExpedientsPageRoutingModule {}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { ExpedientsPageRoutingModule } from './expedients-routing.module';
|
||||||
|
|
||||||
|
import { ExpedientsPage } from './expedients.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
ExpedientsPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [ExpedientsPage]
|
||||||
|
})
|
||||||
|
export class ExpedientsPageModule {}
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
<ion-header class="ion-no-border">
|
||||||
|
<div class="title">
|
||||||
|
<ion-label >Correspondência</ion-label>
|
||||||
|
</div>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-segment [(ngModel)]="segment">
|
||||||
|
<ion-segment-button value="expediente">
|
||||||
|
Expediente
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button value="pendentes">
|
||||||
|
Pendentes
|
||||||
|
</ion-segment-button>
|
||||||
|
</ion-segment>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
<ion-content>
|
||||||
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
<ion-refresher-content
|
||||||
|
pullingIcon="chevron-down-circle-outline"
|
||||||
|
pullingText="deslize para actualizar"
|
||||||
|
refreshingSpinner="circles"
|
||||||
|
refreshingText="A actualizar...">
|
||||||
|
</ion-refresher-content>
|
||||||
|
</ion-refresher>
|
||||||
|
|
||||||
|
<div class="width-100" [ngSwitch]="segment" *ngIf="taskslist">
|
||||||
|
<ion-list *ngSwitchCase="'expediente'">
|
||||||
|
<ion-item
|
||||||
|
class="expediente ion-no-padding"
|
||||||
|
*ngFor = "let task of taskslist"
|
||||||
|
(click)="viewExpedientDetail(task.SerialNumber)"
|
||||||
|
>
|
||||||
|
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
||||||
|
<div class="item width-100">
|
||||||
|
<div class="exp-top-detail">
|
||||||
|
<div class="exp-date">
|
||||||
|
<ion-label>{{ task.CreateDate | date: 'dd-MM-yy' }}</ion-label>
|
||||||
|
</div>
|
||||||
|
<div class="exp-remetente">
|
||||||
|
<ion-label>{{task.Remetente}}</ion-label>
|
||||||
|
</div>
|
||||||
|
<div class="exp-icon">
|
||||||
|
<ion-icon src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
||||||
|
<label></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="exp-bottom-detail">
|
||||||
|
<ion-label>{{ task.Folio }}</ion-label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
</ion-list>
|
||||||
|
<ion-list *ngSwitchCase="'pendentes'">
|
||||||
|
<ion-item-group>
|
||||||
|
<ion-item-sliding>
|
||||||
|
</ion-item-sliding>
|
||||||
|
</ion-item-group>
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="!taskslist">
|
||||||
|
|
||||||
|
<ion-list>
|
||||||
|
<ion-item>
|
||||||
|
<ion-thumbnail slot="end">
|
||||||
|
<ion-skeleton-text animated></ion-skeleton-text>
|
||||||
|
</ion-thumbnail>
|
||||||
|
<ion-label>
|
||||||
|
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
||||||
|
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
||||||
|
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
<ion-item>
|
||||||
|
<ion-thumbnail slot="end">
|
||||||
|
<ion-skeleton-text animated></ion-skeleton-text>
|
||||||
|
</ion-thumbnail>
|
||||||
|
<ion-label>
|
||||||
|
<h3><ion-skeleton-text animated style="width: 50%"></ion-skeleton-text></h3>
|
||||||
|
<p><ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></p>
|
||||||
|
<p><ion-skeleton-text animated style="width: 60%"></ion-skeleton-text></p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</ion-list>
|
||||||
|
</div>
|
||||||
|
</ion-content>
|
||||||
|
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
@import '~src/function.scss';
|
||||||
|
/* CONTENT */
|
||||||
|
:host{
|
||||||
|
padding: 30px 20px 0 20px !important;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 25px;
|
||||||
|
color:#000;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.item-list-small{
|
||||||
|
font-size: 11px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.ion-item-class{
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
.label-text{
|
||||||
|
width: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
//DIV
|
||||||
|
ion-item{
|
||||||
|
--background: none;
|
||||||
|
}
|
||||||
|
.item {
|
||||||
|
//border-radius: 15px;
|
||||||
|
//box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||||
|
//Sborder: solid 1px #e9e9e9;
|
||||||
|
background-color: var(--white);
|
||||||
|
margin: 0 auto;
|
||||||
|
//padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.div-content-expediente{
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
border-left: 3px solid #dae3f3;
|
||||||
|
padding:5px 5px 15px 5px;
|
||||||
|
margin: 10px 0 10px 0;
|
||||||
|
background: #dae3f3;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
.div-content-pendentes{
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
border-left: 3px solid #d9d9d9;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.div-content-expediente h3, .div-content-pendentes h3{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 14pt;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.div-icon{
|
||||||
|
width: 10%;
|
||||||
|
font-size: 20px;
|
||||||
|
float: left;
|
||||||
|
color: #808080;
|
||||||
|
}
|
||||||
|
.div-icon ion-icon{
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
.div-content-expediente p, .div-content-pendentes p{
|
||||||
|
font-size: 14pt;
|
||||||
|
color: rgb(94, 92, 92);
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.span-left{
|
||||||
|
/* border: 1px solid red; */
|
||||||
|
float: left;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-left: 18px;
|
||||||
|
}
|
||||||
|
.span-right{
|
||||||
|
/* border: 1px solid blue; */
|
||||||
|
text-align: right;
|
||||||
|
float: right;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-right: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* New CSS */
|
||||||
|
.expediente{
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
.exp-list-item{
|
||||||
|
//width: 368px;
|
||||||
|
overflow: auto;
|
||||||
|
/* border-bottom: 1px solid gray; */
|
||||||
|
margin: 10px auto;
|
||||||
|
}
|
||||||
|
.exp-top-detail{
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.exp-date{
|
||||||
|
width: auto;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: normal;
|
||||||
|
letter-spacing: normal;
|
||||||
|
color: #797979;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.exp-remetente{
|
||||||
|
//width: 200px;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #000000;
|
||||||
|
float: left;
|
||||||
|
margin-left: 16px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.exp-icon{
|
||||||
|
width: 45px;
|
||||||
|
float: right;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.exp-icon ion-icon{
|
||||||
|
font-size: 25px;
|
||||||
|
color: #42b9fe;
|
||||||
|
}
|
||||||
|
.exp-bottom-detail{
|
||||||
|
float: left;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #0d89d1;
|
||||||
|
}
|
||||||
|
.div-top-header{
|
||||||
|
width: 400px;
|
||||||
|
margin: 6px auto;
|
||||||
|
background-color: #0782c9;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.div-search{
|
||||||
|
font-size: 45px;
|
||||||
|
float: left;
|
||||||
|
margin: 0 0 0 10px
|
||||||
|
}
|
||||||
|
.div-logo{
|
||||||
|
background: transparent;
|
||||||
|
width: 150px;
|
||||||
|
margin: 2.5px 0 2.5px 71px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.div-logo img{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.div-profile{
|
||||||
|
font-size: 45px;
|
||||||
|
float: right;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { ExpedientsPage } from './expedients.page';
|
||||||
|
|
||||||
|
describe('ExpedientsPage', () => {
|
||||||
|
let component: ExpedientsPage;
|
||||||
|
let fixture: ComponentFixture<ExpedientsPage>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ ExpedientsPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(ExpedientsPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
import { CalendarComponent } from 'ionic2-calendar';
|
||||||
|
|
||||||
|
import { DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||||
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
|
import { formatDate } from '@angular/common';
|
||||||
|
import { LoadingService } from 'src/app/services/loading.service';
|
||||||
|
import { ModalController, NavParams } from '@ionic/angular';
|
||||||
|
import { ExpedienteDetailPage } from 'src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-expedients',
|
||||||
|
templateUrl: './expedients.page.html',
|
||||||
|
styleUrls: ['./expedients.page.scss'],
|
||||||
|
})
|
||||||
|
export class ExpedientsPage implements OnInit {
|
||||||
|
segment:string;
|
||||||
|
//profile:string;
|
||||||
|
|
||||||
|
@ViewChild(CalendarComponent) myCal: CalendarComponent;
|
||||||
|
|
||||||
|
taskslist:DailyWorkTask[];
|
||||||
|
serialNumber:string;
|
||||||
|
|
||||||
|
@Input() profile:string;
|
||||||
|
@Output() openExpedientDetail:EventEmitter<any> = new EventEmitter<any>();
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private processes:ProcessesService,
|
||||||
|
private modalController: ModalController,
|
||||||
|
) {
|
||||||
|
this.profile = 'mdgpr';
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
//Inicializar segment
|
||||||
|
this.segment = "expediente";
|
||||||
|
this.LoadList();
|
||||||
|
}
|
||||||
|
|
||||||
|
openExpedientDetailPage(data){
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
this.openExpedientDetail.emit(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
LoadList()
|
||||||
|
{
|
||||||
|
this.processes.GetTasksList("Expediente", false).subscribe(result => {
|
||||||
|
this.taskslist = new Array();
|
||||||
|
result.forEach(element => {
|
||||||
|
let task: DailyWorkTask = {
|
||||||
|
"SerialNumber": element.serialNumber,
|
||||||
|
"Folio": element.workflowInstanceFolio,
|
||||||
|
"Senders": element.originator.email,
|
||||||
|
"CreateDate": formatDate(new Date(element.taskStartDate), 'yyyy-MM-dd HH:mm', 'pt'),
|
||||||
|
"DocumentURL": element.workflowInstanceDataFields.ViewerRequest,
|
||||||
|
"Remetente": element.workflowInstanceDataFields.Remetente
|
||||||
|
}
|
||||||
|
this.taskslist.push(task);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
doRefresh(event) {
|
||||||
|
this.LoadList();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
event.target.complete();
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
|
||||||
|
async viewExpedientDetail(serialNumber:any) {
|
||||||
|
console.log(this.profile);
|
||||||
|
|
||||||
|
let classs;
|
||||||
|
if( window.innerWidth <= 1024){
|
||||||
|
classs = 'modal'
|
||||||
|
} else {
|
||||||
|
classs = 'gabinete-digital-mobile-modal-to-Desktop'
|
||||||
|
}
|
||||||
|
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: ExpedienteDetailPage,
|
||||||
|
componentProps:{
|
||||||
|
enterAnimation: "",
|
||||||
|
serialNumber: serialNumber,
|
||||||
|
profile: this.profile,
|
||||||
|
},
|
||||||
|
cssClass: 'modal modal-desktop',
|
||||||
|
});
|
||||||
|
await modal.present();
|
||||||
|
modal.onDidDismiss().then((res)=>{
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,5 +1,17 @@
|
|||||||
<ion-content>
|
<ion-content class="container">
|
||||||
<ion-row>
|
<div class="arrow-right">
|
||||||
|
<ion-icon (click)="close()" slot="end" class="arrow-right-icon" src='assets/images/icons-arrow-arrow-right.svg'></ion-icon>
|
||||||
|
</div>
|
||||||
|
<div class="buttons">
|
||||||
|
<button full class="btn-ok" shape="round" >Tirar Fotografia</button>
|
||||||
|
<button class="btn-ok" shape="round" >Digitalizar Documento</button>
|
||||||
|
<button full class="btn-ok" shape="round" >Anexar Fotografia</button>
|
||||||
|
<button class="btn-ok" shape="round" >Anexar Documento</button>
|
||||||
|
<div class="solid"></div>
|
||||||
|
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <ion-row>
|
||||||
<ion-col>
|
<ion-col>
|
||||||
<button full class="btn-ok" shape="round" >Tirar Fotografia</button>
|
<button full class="btn-ok" shape="round" >Tirar Fotografia</button>
|
||||||
</ion-col>
|
</ion-col>
|
||||||
@@ -19,5 +31,5 @@
|
|||||||
</ion-col>
|
</ion-col>
|
||||||
<ion-col>
|
<ion-col>
|
||||||
</ion-col>
|
</ion-col>
|
||||||
</ion-row>
|
</ion-row> -->
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,32 +1,47 @@
|
|||||||
ion-row{
|
.container{
|
||||||
padding: 10px 10px 5px 10px;
|
--padding-top:20px !important;
|
||||||
}
|
--padding-bottom:20px !important;
|
||||||
.border-top{
|
--padding-start:20px !important;
|
||||||
padding-top: 5px !important;
|
--padding-end:20px !important;
|
||||||
border-top: 1px solid #ebebeb;
|
|
||||||
}
|
|
||||||
/* ion-col{
|
|
||||||
border: 1px solid red;
|
|
||||||
} */
|
|
||||||
.btn-cancel{
|
|
||||||
display: block;
|
|
||||||
width: 170px !important;
|
|
||||||
height: 45px !important;
|
|
||||||
border-radius: 22.5px;
|
|
||||||
background-color: #e0e9ee;
|
|
||||||
--color: #061b52 !important;
|
|
||||||
--background:transparent;
|
|
||||||
--box-shadow: none;
|
|
||||||
margin: 0 auto !important;
|
|
||||||
}
|
}
|
||||||
|
.arrow-right{
|
||||||
.btn-ok{
|
display: none;
|
||||||
display: block;
|
margin-bottom: 20px;
|
||||||
width: 170px !important;
|
.arrow-right-icon{
|
||||||
height: 45px !important;
|
width: 37px;
|
||||||
border-radius: 22.5px;
|
float: right;
|
||||||
--background: #42b9fe;
|
font-size: 35px;
|
||||||
--color: #ffffff !important;
|
overflow: hidden;
|
||||||
margin: 0 auto !important;
|
}
|
||||||
|
}
|
||||||
|
.buttons{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.btn-ok, .btn-cancel, .btn-delete{
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
display: none;
|
||||||
|
width: 90%;
|
||||||
|
border-top: 1px solid #bbb;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
.arrow-right{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
.btn-cancel{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.btn-ok{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
.mobile-only{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { PopoverController } from '@ionic/angular';
|
import { ModalController, PopoverController } from '@ionic/angular';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-chat-options-popover',
|
selector: 'app-chat-options-popover',
|
||||||
@@ -9,14 +9,20 @@ import { PopoverController } from '@ionic/angular';
|
|||||||
export class ChatOptionsPopoverPage implements OnInit {
|
export class ChatOptionsPopoverPage implements OnInit {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private popoverController: PopoverController
|
private popoverController: PopoverController,
|
||||||
|
private modalController: ModalController,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
close(){
|
close(){
|
||||||
this.popoverController.dismiss();
|
if( window.innerWidth <= 1024){
|
||||||
|
this.popoverController.dismiss();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.modalController.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,12 @@
|
|||||||
<ion-content>
|
<ion-content class="container">
|
||||||
<ion-row>
|
<div class="arrow-right">
|
||||||
<ion-col>
|
<ion-icon (click)="close()" slot="end" class="arrow-right-icon" src='assets/images/icons-arrow-arrow-right.svg'></ion-icon>
|
||||||
<button (click)="leaveGroup()" class="btn-cancel" shape="round" >Sair do Grupo</button>
|
</div>
|
||||||
</ion-col>
|
<div class="buttons">
|
||||||
<ion-col>
|
<button (click)="leaveGroup()" class="btn-cancel" shape="round" >Sair do Grupo</button>
|
||||||
<button (click)="openChangeGroupName()" class="btn-ok" shape="round" >Alterar nome do grupo</button>
|
<button (click)="openChangeGroupName()" class="btn-ok" shape="round" >Alterar nome do grupo</button>
|
||||||
</ion-col>
|
<div class="solid"></div>
|
||||||
</ion-row>
|
<button (click)="close()" full class="btn-cancel mobile-only" shape="round" >Cancelar</button>
|
||||||
<ion-row class="border-top">
|
<button (click)="deleteGroup()" class="btn-delete" shape="round">Apagar grupo</button>
|
||||||
<ion-col>
|
</div>
|
||||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col>
|
|
||||||
<button (click)="deleteGroup()" class="btn-delete" shape="round">Apagar grupo</button>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,15 +1,53 @@
|
|||||||
ion-row{
|
.container{
|
||||||
padding: 10px 10px 5px 10px;
|
--padding-top:20px !important;
|
||||||
|
--padding-bottom:20px !important;
|
||||||
|
--padding-start:20px !important;
|
||||||
|
--padding-end:20px !important;
|
||||||
}
|
}
|
||||||
.border-top{
|
.arrow-right{
|
||||||
padding-top: 5px !important;
|
display: none;
|
||||||
border-top: 1px solid #ebebeb;
|
margin-bottom: 20px;
|
||||||
|
.arrow-right-icon{
|
||||||
|
width: 37px;
|
||||||
|
float: right;
|
||||||
|
font-size: 35px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.buttons{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
display: none;
|
||||||
|
width: 90%;
|
||||||
|
border-top: 1px solid #bbb;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
.arrow-right{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
.btn-cancel{
|
||||||
|
//display: none;
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
|
.btn-ok{
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
|
.btn-delete{
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
margin-top: 10px !important;
|
||||||
|
}
|
||||||
|
.solid{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.mobile-only{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* ion-col{
|
|
||||||
border: 1px solid red;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/* .btn-ok, .btn-cancel, .btn-delete{
|
|
||||||
font-size: 13px;
|
|
||||||
padding:0 !important;
|
|
||||||
} */
|
|
||||||
|
|||||||
@@ -25,7 +25,12 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
close(){
|
close(){
|
||||||
this.popoverController.dismiss();
|
if( window.innerWidth <= 1024){
|
||||||
|
this.popoverController.dismiss();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.modalController.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Top menu options
|
//Top menu options
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<ion-content>
|
<ion-content class="container">
|
||||||
<ion-row class="border-top">
|
<div class="arrow-right">
|
||||||
<ion-col>
|
<ion-icon slot="end" class="arrow-right-icon" (click)="close()" src='assets/images/icons-arrow-arrow-right.svg'></ion-icon>
|
||||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
</div>
|
||||||
</ion-col>
|
<div class="buttons">
|
||||||
<ion-col>
|
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||||
<button (click)="closeChatRoom()" full class="btn-delete" shape="round" >Apagar conversa</button>
|
<div class="solid"></div>
|
||||||
</ion-col>
|
<button (click)="closeChatRoom()" full class="btn-delete" shape="round" >Apagar conversa</button>
|
||||||
</ion-row>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,3 +1,46 @@
|
|||||||
ion-row{
|
.container{
|
||||||
padding: 10px 10px 5px 10px;
|
--padding-top:20px !important;
|
||||||
|
--padding-bottom:20px !important;
|
||||||
|
--padding-start:20px !important;
|
||||||
|
--padding-end:20px !important;
|
||||||
|
}
|
||||||
|
.arrow-right{
|
||||||
|
display: none;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
.arrow-right-icon{
|
||||||
|
width: 37px;
|
||||||
|
float: right;
|
||||||
|
font-size: 35px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.buttons{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
display: none;
|
||||||
|
width: 90%;
|
||||||
|
border-top: 1px solid #bbb;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
.arrow-right{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
.btn-cancel{
|
||||||
|
display: none;
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
|
.btn-delete{
|
||||||
|
width: 100% !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
margin-top: 10px !important;
|
||||||
|
}
|
||||||
|
/* .solid{
|
||||||
|
display: block;
|
||||||
|
} */
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { NavParams, PopoverController } from '@ionic/angular';
|
import { ModalController, NavParams, PopoverController } from '@ionic/angular';
|
||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -13,6 +13,7 @@ export class MessagesOptionsPage implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private popoverController: PopoverController,
|
private popoverController: PopoverController,
|
||||||
|
private modalController: ModalController,
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private navParams: NavParams,
|
private navParams: NavParams,
|
||||||
)
|
)
|
||||||
@@ -24,7 +25,12 @@ export class MessagesOptionsPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(){
|
close(){
|
||||||
this.popoverController.dismiss();
|
if( window.innerWidth <= 1024){
|
||||||
|
this.popoverController.dismiss();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.modalController.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
closeChatRoom(){
|
closeChatRoom(){
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import { BtnSeguintePage } from './btn-seguinte/btn-seguinte.page';
|
|||||||
import { BtnModalDismissPage } from './btn-modal-dismiss/btn-modal-dismiss.page';
|
import { BtnModalDismissPage } from './btn-modal-dismiss/btn-modal-dismiss.page';
|
||||||
import { ChatPopoverPage } from './popover/chat-popover/chat-popover.page';
|
import { ChatPopoverPage } from './popover/chat-popover/chat-popover.page';
|
||||||
import { HeaderNoSearchPage } from './headers/header-no-search/header-no-search.page';
|
import { HeaderNoSearchPage } from './headers/header-no-search/header-no-search.page';
|
||||||
|
import { EmptyChatPage } from './chat/empty-chat/empty-chat.page';
|
||||||
|
import { BtnCriarPage } from './buttons/btn-criar/btn-criar.page';
|
||||||
|
import { BtnAdicionarPage } from './buttons/btn-adicionar/btn-adicionar.page';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -21,6 +24,9 @@ import { HeaderNoSearchPage } from './headers/header-no-search/header-no-search.
|
|||||||
HeaderNoSearchPage,
|
HeaderNoSearchPage,
|
||||||
BtnSeguintePage,
|
BtnSeguintePage,
|
||||||
BtnModalDismissPage,
|
BtnModalDismissPage,
|
||||||
|
EmptyChatPage,
|
||||||
|
BtnCriarPage,
|
||||||
|
BtnAdicionarPage,
|
||||||
],
|
],
|
||||||
entryComponents:[],
|
entryComponents:[],
|
||||||
declarations: [
|
declarations: [
|
||||||
@@ -29,6 +35,9 @@ import { HeaderNoSearchPage } from './headers/header-no-search/header-no-search.
|
|||||||
HeaderNoSearchPage,
|
HeaderNoSearchPage,
|
||||||
BtnSeguintePage,
|
BtnSeguintePage,
|
||||||
BtnModalDismissPage,
|
BtnModalDismissPage,
|
||||||
|
EmptyChatPage,
|
||||||
|
BtnCriarPage,
|
||||||
|
BtnAdicionarPage,
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class SharedModule {}
|
export class SharedModule {}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="35" viewBox="0 0 36 35">
|
||||||
|
<g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<g stroke="#42B9FE" stroke-width="2">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path d="M22.629 9L13.371 18 22.629 27" transform="translate(-20 -124) translate(0 99) translate(20 25)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 447 B |
@@ -0,0 +1,9 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="35" viewBox="0 0 36 35">
|
||||||
|
<g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<g stroke="#42B9FE" stroke-width="2">
|
||||||
|
<g>
|
||||||
|
<path d="M22.629 9L13.371 18 22.629 27" transform="translate(-968 -20) matrix(-1 0 0 1 1004 20)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 394 B |
+38
-1
@@ -290,6 +290,43 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.hideAsideOptions{
|
||||||
|
@media only screen and (min-width: 1140px) {
|
||||||
|
.div-icon{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
border-right: 1px solid #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside-right{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* .aside-right{
|
||||||
|
display: none;
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
width: 100%;
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
.showAsideOptions{
|
||||||
|
@media only screen and (min-width: 1140px) {
|
||||||
|
.div-icon{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
width: 75%;
|
||||||
|
border-right: 1px solid #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aside-right{
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-width-100{
|
.modal-width-100{
|
||||||
.modal-wrapper{
|
.modal-wrapper{
|
||||||
@@ -364,7 +401,7 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
|
|
||||||
@media only screen and (min-width: 1024px) {
|
@media only screen and (min-width: 1024px) {
|
||||||
.gabinete-digital-mobile-modal-to-Desktop{
|
.gabinete-digital-mobile-modal-to-Desktop{
|
||||||
top: 75px;
|
//top: 75px;
|
||||||
left: 40%;
|
left: 40%;
|
||||||
|
|
||||||
.modal-wrapper{
|
.modal-wrapper{
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
--ion-color-warning-tint: #ffca22;
|
--ion-color-warning-tint: #ffca22;
|
||||||
|
|
||||||
/** danger **/
|
/** danger **/
|
||||||
|
--ion-color-red:#d30a0a;
|
||||||
--ion-color-danger: #eb445a;
|
--ion-color-danger: #eb445a;
|
||||||
--ion-color-danger-rgb: 235, 68, 90;
|
--ion-color-danger-rgb: 235, 68, 90;
|
||||||
--ion-color-danger-contrast: #ffffff;
|
--ion-color-danger-contrast: #ffffff;
|
||||||
@@ -264,7 +265,7 @@
|
|||||||
background: rgba(51, 51, 51, 0.3);
|
background: rgba(51, 51, 51, 0.3);
|
||||||
}
|
}
|
||||||
.modal, .newchat, .new-group, .contacts, .group-messages, .custom-modal{
|
.modal, .newchat, .new-group, .contacts, .group-messages, .custom-modal{
|
||||||
padding-top: 93px;
|
padding-top: 75px;
|
||||||
--border-radius: 25px 25px 0 0;
|
--border-radius: 25px 25px 0 0;
|
||||||
--border-width:0px;
|
--border-width:0px;
|
||||||
}
|
}
|
||||||
@@ -312,7 +313,6 @@
|
|||||||
/* .event-actions-popover ion-list{
|
/* .event-actions-popover ion-list{
|
||||||
} */
|
} */
|
||||||
.Rectangle {
|
.Rectangle {
|
||||||
width: 360px;
|
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||||
border: solid 1px #e9e9e9;
|
border: solid 1px #e9e9e9;
|
||||||
|
|||||||
Reference in New Issue
Block a user