mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
pull made
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
https://wetransfer.com/downloads/48a9320a9b41c4b3bef97cfc0c42941620230803122443/778a91?utm_campaign=TRN_TDL_05&utm_source=sendgrid&utm_medium=email&trk=TRN_TDL_05
|
||||||
@@ -196,7 +196,7 @@ export class CreateProcessPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cancelTask() {
|
cancelTask() {
|
||||||
this.modalController.dismiss(null);
|
this.modalController.dismiss({action:'cancel'});
|
||||||
}
|
}
|
||||||
|
|
||||||
runValidation() {
|
runValidation() {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export interface ChatMessageInterface {
|
|||||||
msg: string;
|
msg: string;
|
||||||
file?: any;
|
file?: any;
|
||||||
ts: number;
|
ts: number;
|
||||||
|
t?: string;
|
||||||
u: {
|
u: {
|
||||||
_id: string;
|
_id: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ export class NewEventPage implements OnInit {
|
|||||||
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() <= new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() < new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Categories: new FormControl(this.postEvent.Category, [
|
Categories: new FormControl(this.postEvent.Category, [
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="room.lastMessage" class="item-description" [class.item-description-active]="room.id == idSelected">
|
<div *ngIf="room.lastMessage" class="item-description" [class.item-description-active]="room.id == idSelected">
|
||||||
|
|
||||||
<p class="font-13-em" *ngIf="room.lastMessage && room.otherUserType == false">{{room.lastMessage.msg}}</p>
|
<p class="font-13-em mb-0" *ngIf="room.lastMessage && room.otherUserType == false">{{room.lastMessage.msg}}</p>
|
||||||
<p class="font-13-em" *ngIf="room.otherUserType == true">está escrever...</p>
|
<p class="font-13-em" *ngIf="room.otherUserType == true">está escrever...</p>
|
||||||
<!-- <ion-label *ngIf="room.lastMessage.file">
|
<!-- <ion-label *ngIf="room.lastMessage.file">
|
||||||
<fa-icon *ngIf="room.lastMessage.file.type != 'application/meeting'" icon="file-alt" class="file-icon" [class.set-active-item-font-to-white]="room.id == idSelected"></fa-icon>
|
<fa-icon *ngIf="room.lastMessage.file.type != 'application/meeting'" icon="file-alt" class="file-icon" [class.set-active-item-font-to-white]="room.id == idSelected"></fa-icon>
|
||||||
@@ -133,14 +133,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div (click)="openGroupMessagesPage(group.id)" class="item-content flex-grow-1 cursor-pointer">
|
<div (click)="openGroupMessagesPage(group.id)" class="item-content flex-grow-1 cursor-pointer">
|
||||||
<div class="item-title-time">
|
<div class="item-title-time">
|
||||||
<div class="item-title" [class.item-title-active]="group.id ==idSelected">
|
<div class="item-title add-ellipsis" [class.item-title-active]="group.id ==idSelected">
|
||||||
<p class="font-15-em" [class.bold-message]="group.messageUnread == true">{{group.name.split('-').join(' ')}}</p>
|
<p class="font-15-em add-ellipsis mb-0 white-space-nowrap" [class.bold-message]="group.messageUnread == true">{{group.name.split('-').join(' ')}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.lastMessage && !group.customFields.countDownDate">{{group.duration}}</div>
|
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.lastMessage && !group.customFields.countDownDate">{{group.duration}}</div>
|
||||||
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.customFields.countDownDate">{{group.countDownTime}}</div>
|
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.customFields.countDownDate">{{group.countDownTime}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="group.lastMessage" class="item-description d-flex align-items-center" [class.item-description-active]="group.id ==idSelected">
|
<div *ngIf="group.lastMessage" class="item-description d-flex align-items-center" [class.item-description-active]="group.id ==idSelected">
|
||||||
<div class="item-message font-13-em" *ngIf="group.otherUserType == false">{{group.lastMessage.u.name}}: {{group.lastMessage.msg}} </div>
|
<div class="item-message font-13-em white-space-nowrap" *ngIf="group.otherUserType == false">{{group.lastMessage.u.name}}: {{group.lastMessage.msg}} </div>
|
||||||
<div class="font-13-em" *ngIf="group.otherUserType == true">{{group.userThatIsTyping}} está escrever ...</div>
|
<div class="font-13-em" *ngIf="group.otherUserType == true">{{group.userThatIsTyping}} está escrever ...</div>
|
||||||
|
|
||||||
<div class="item-files add-ellipsis" *ngIf="group.lastMessage.file">
|
<div class="item-files add-ellipsis" *ngIf="group.lastMessage.file">
|
||||||
@@ -148,7 +148,7 @@
|
|||||||
<fa-icon *ngIf="group.lastMessage.file.type == 'application/audio'" icon="file-audio" class="file-icon" [class.set-active-item-font-to-white]="group.id == idSelected"></fa-icon>
|
<fa-icon *ngIf="group.lastMessage.file.type == 'application/audio'" icon="file-audio" class="file-icon" [class.set-active-item-font-to-white]="group.id == idSelected"></fa-icon>
|
||||||
<span *ngIf="group.lastMessage.file.type == 'application/audio'" class="item-files-title font-13-em"> audio </span>
|
<span *ngIf="group.lastMessage.file.type == 'application/audio'" class="item-files-title font-13-em"> audio </span>
|
||||||
<fa-icon *ngIf="group.lastMessage.file.type == 'application/meeting'" icon="calendar-alt" class="file-icon" [class.set-active-item-font-to-white]="group.id == idSelected"></fa-icon>
|
<fa-icon *ngIf="group.lastMessage.file.type == 'application/meeting'" icon="calendar-alt" class="file-icon" [class.set-active-item-font-to-white]="group.id == idSelected"></fa-icon>
|
||||||
<span *ngIf="group.lastMessage.file.type != 'application/audio' && group.lastMessage.attachments" class="item-files-title font-13-em"> {{ group.lastMessage.attachments[0].title }}</span>
|
<span *ngIf="group.lastMessage.file.type != 'application/audio' && group.lastMessage.attachments" class="item-files-title font-13-em add-ellipsis"> {{ group.lastMessage.attachments[0].title }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-files" *ngIf="group.attachments">
|
<div class="item-files" *ngIf="group.attachments">
|
||||||
<div *ngIf="group.value.lastMessage.attachments[0].image_url">
|
<div *ngIf="group.value.lastMessage.attachments[0].image_url">
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ ion-content{
|
|||||||
border-bottom: 1px solid #ebebeb;
|
border-bottom: 1px solid #ebebeb;
|
||||||
padding: 0px 20px 0 20px !important;
|
padding: 0px 20px 0 20px !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
|
||||||
.item-icon{
|
.item-icon{
|
||||||
width: em(40);
|
width: em(40);
|
||||||
@@ -87,15 +89,17 @@ ion-content{
|
|||||||
.item-content{
|
.item-content{
|
||||||
//width: 317px;
|
//width: 317px;
|
||||||
float:right;
|
float:right;
|
||||||
|
width: 88%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-title-time{
|
.item-title-time{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.item-title{
|
.item-title{
|
||||||
width: calc(100% - 90px);
|
|
||||||
float: left;
|
float: left;
|
||||||
color: var(--title-text-color);
|
color: var(--title-text-color);
|
||||||
}
|
}
|
||||||
@@ -103,7 +107,6 @@ ion-content{
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.item-date{
|
.item-date{
|
||||||
width: 90px;
|
|
||||||
float: right;
|
float: right;
|
||||||
color: #797979;
|
color: #797979;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ export class ChatPage implements OnInit {
|
|||||||
this.selectContact();
|
this.selectContact();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
this.showEmptyComponent = false;
|
||||||
this.showContacts = true;
|
this.showContacts = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -301,6 +301,7 @@ export class ChatPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
|
this.showEmptyComponent = false;
|
||||||
this.showNewGroup = true;
|
this.showNewGroup = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ ion-content{
|
|||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|
||||||
.title-content{
|
.title-content{
|
||||||
width: 360px;
|
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="middle-container" *ngIf="!showMessageOptions">
|
<div class="middle-container" *ngIf="!showMessageOptions">
|
||||||
<div class="middle add-ellipsis">
|
<div class="middle add-ellipsis">
|
||||||
<ion-label class="title">{{groupNameFormart}}</ion-label>
|
<ion-label class="title">{{ ChatSystemService.getGroupRoom(roomId).name }}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="middle-container-options" *ngIf="showMessageOptions">
|
<div class="middle-container-options" *ngIf="showMessageOptions">
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-bottom-contacts">
|
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
|
||||||
<ion-label class="contacts-list" *ngFor="let member of members" >
|
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe" >
|
||||||
{{member.name}},
|
{{member.name}},
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -523,7 +523,8 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then(res => {
|
modal.onDidDismiss().then(res => {
|
||||||
if (res.data == 'leave') {
|
if (res.data == 'leave') {
|
||||||
|
this.close()
|
||||||
|
this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
//this.ChatSystemService.subscribeToRoomUpdate(this.roomId, this.room);
|
//this.ChatSystemService.subscribeToRoomUpdate(this.roomId, this.room);
|
||||||
}
|
}
|
||||||
else if (res.data == 'cancel') {
|
else if (res.data == 'cancel') {
|
||||||
@@ -534,6 +535,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
} else if (res.data == 'addUser') {
|
} else if (res.data == 'addUser') {
|
||||||
|
|
||||||
this.addContacts();
|
this.addContacts();
|
||||||
|
} else if (res.data == 'delete') {
|
||||||
|
this.close()
|
||||||
|
this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||||
(click)="goToEvent(event)"
|
(click)="goToEvent(event)"
|
||||||
>
|
>
|
||||||
<div class="d-flex event-box-content content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
<div class="d-flex event-box-content content-{{agendaColor}}-{{event.CalendarName}}">
|
||||||
|
|
||||||
<div class="schedule-time">
|
<div class="schedule-time">
|
||||||
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||||
@@ -229,12 +229,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="content overflow-y-auto flex-grow-1 height-100">
|
<div class="content overflow-y-auto flex-grow-1 height-100">
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||||
(click)="goToEvent(event)"
|
(click)="goToEvent(event)"
|
||||||
>
|
>
|
||||||
<div class="d-flex content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
|
||||||
|
<div class="d-flex content-{{agendaColor}}-{{event.CalendarName}}">
|
||||||
|
|
||||||
<div class="schedule-time">
|
<div class="schedule-time">
|
||||||
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ export class EventsPage implements OnInit {
|
|||||||
showCorrespondenciasLoader = false
|
showCorrespondenciasLoader = false
|
||||||
loadingAllTask = false
|
loadingAllTask = false
|
||||||
|
|
||||||
|
agendaColor = ''
|
||||||
|
|
||||||
|
|
||||||
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Não lidos'
|
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Não lidos'
|
||||||
showSearch = true;
|
showSearch = true;
|
||||||
@@ -104,6 +106,11 @@ export class EventsPage implements OnInit {
|
|||||||
this.listToPresentexpediente = []
|
this.listToPresentexpediente = []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
if(this.agendaColor != "PR") {
|
||||||
|
this.agendaColor = "MDGPR"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit(): void {
|
ngAfterViewInit(): void {
|
||||||
|
|||||||
@@ -482,7 +482,11 @@ export class DespachoPage implements OnInit {
|
|||||||
await this.distartExpedientModal();
|
await this.distartExpedientModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.goBack();
|
|
||||||
|
if(res.data?.action != 'cancel') {
|
||||||
|
this.goBack();
|
||||||
|
}
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export class DiplomasGerarPage implements OnInit {
|
|||||||
this.httpErroHandle.httpsSucessMessagge('Enviar para Pendentes')
|
this.httpErroHandle.httpsSucessMessagge('Enviar para Pendentes')
|
||||||
this.TaskService.loadDiplomas()
|
this.TaskService.loadDiplomas()
|
||||||
loader.remove()
|
loader.remove()
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
this.httpErroHandle.httpStatusHandle(error)
|
this.httpErroHandle.httpStatusHandle(error)
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import { ChatService } from 'src/app/services/chat.service';
|
|||||||
import { Platform } from '@ionic/angular';
|
import { Platform } from '@ionic/angular';
|
||||||
import { FirstEnterService } from '../../services/first-enter.service';
|
import { FirstEnterService } from '../../services/first-enter.service';
|
||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
|
||||||
import { CPSession } from 'src/app/store/documentManagement';
|
import { CPSession } from 'src/app/store/documentManagement';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="folder.Description" placeholder="Assunto*" ></ion-input>
|
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="folder.Description" placeholder="Assunto*" ></ion-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-div">
|
<div class="container-div overflow-hidden">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<div class="ion-icon-class">
|
<div class="ion-icon-class">
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<mat-form-field appearance="none" class="date-hour-picker">
|
<mat-form-field appearance="none" class="date-hour-picker">
|
||||||
<input matInput [ngxMatDatetimePicker]="picker1"
|
<input matInput [ngxMatDatetimePicker]="picker1"
|
||||||
placeholder="Data inicio*"
|
placeholder="Data inicio*"
|
||||||
[formControl]="dateControlStart"
|
[(ngModel)]="dateControlStart"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1" ></mat-datepicker-toggle>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="container-div">
|
<div class="container-div overflow-hiddens">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<div class="ion-icon-class">
|
<div class="ion-icon-class">
|
||||||
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
|
||||||
@@ -63,9 +63,9 @@
|
|||||||
<mat-form-field appearance="none" class="date-hour-picker">
|
<mat-form-field appearance="none" class="date-hour-picker">
|
||||||
<input matInput [ngxMatDatetimePicker]="fim"
|
<input matInput [ngxMatDatetimePicker]="fim"
|
||||||
placeholder="Data de fim*"
|
placeholder="Data de fim*"
|
||||||
[formControl]="dateControlEnd"
|
[(ngModel)]="dateControlEnd"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[min]="dateControlStart.value"
|
[min]="dateControlStart"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-fim" matSuffix [for]="fim" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-fim" matSuffix [for]="fim" ></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #fim
|
<ngx-mat-datetime-picker #fim
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ font-size: rem(25);
|
|||||||
}
|
}
|
||||||
.container-div{
|
.container-div{
|
||||||
margin-bottom: rem(15);
|
margin-bottom: rem(15);
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
.ion-item-container{
|
.ion-item-container{
|
||||||
margin: rem(15) auto;
|
margin: rem(15) auto;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import * as moment from 'moment';
|
|
||||||
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
||||||
import { PublicationsService } from 'src/app/services/publications.service';
|
import { PublicationsService } from 'src/app/services/publications.service';
|
||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
@@ -56,11 +55,11 @@ export class NewActionPage implements OnInit {
|
|||||||
showLoader = false
|
showLoader = false
|
||||||
|
|
||||||
get dateStart () {
|
get dateStart () {
|
||||||
return this.dateControlStart.value
|
return this.dateControlStart
|
||||||
}
|
}
|
||||||
|
|
||||||
get dateEnd () {
|
get dateEnd () {
|
||||||
return this.dateControlEnd.value
|
return this.dateControlEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@@ -74,8 +73,8 @@ export class NewActionPage implements OnInit {
|
|||||||
|
|
||||||
this.folder = new PublicationFolder();
|
this.folder = new PublicationFolder();
|
||||||
|
|
||||||
this.dateControlStart = new FormControl(this.roundTimeQuarterHour());
|
this.dateControlStart = this.roundTimeQuarterHour()
|
||||||
this.dateControlEnd = new FormControl(this.roundTimeQuarterHourPlus15(this.dateControlStart.value));
|
this.dateControlEnd = this.roundTimeQuarterHourPlus15(this.dateControlStart)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -96,7 +95,7 @@ export class NewActionPage implements OnInit {
|
|||||||
|
|
||||||
runValidation() {
|
runValidation() {
|
||||||
this.validateFrom = true;
|
this.validateFrom = true;
|
||||||
if(new Date(this.dateControlStart.value).getTime() > new Date(this.dateControlEnd.value).getTime()){
|
if(new Date(this.dateControlStart).getTime() > new Date(this.dateControlEnd).getTime()){
|
||||||
this.toastService._badRequest("A data de início não pode ser superior a data de fim");
|
this.toastService._badRequest("A data de início não pode ser superior a data de fim");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,7 +107,7 @@ export class NewActionPage implements OnInit {
|
|||||||
Validators.required,
|
Validators.required,
|
||||||
// Validators.minLength(4)
|
// Validators.minLength(4)
|
||||||
]),
|
]),
|
||||||
Date: new FormControl(this.dateValid, [
|
Date: new FormControl( this.dateValid,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Detail: new FormControl(this.folder.Detail, [
|
Detail: new FormControl(this.folder.Detail, [
|
||||||
@@ -129,8 +128,8 @@ export class NewActionPage implements OnInit {
|
|||||||
ProcessId: null,
|
ProcessId: null,
|
||||||
Description: this.folder.Description,
|
Description: this.folder.Description,
|
||||||
Detail: this.folder.Detail,
|
Detail: this.folder.Detail,
|
||||||
DateBegin: this.dateControlStart.value,
|
DateBegin: this.dateControlStart,
|
||||||
DateEnd: this.dateControlEnd.value,
|
DateEnd: this.dateControlEnd,
|
||||||
ActionType: this.segment,
|
ActionType: this.segment,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ ion-toolbar{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item:hover{
|
.item:hover{
|
||||||
background-color: var(--box-hover-background-color) !important;
|
background-color: var(--box-hover-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-item-options{
|
ion-item-options{
|
||||||
|
|||||||
@@ -502,6 +502,7 @@ export class MessageService {
|
|||||||
ts: this.ts,
|
ts: this.ts,
|
||||||
u: this.u,
|
u: this.u,
|
||||||
_id: this._id,
|
_id: this._id,
|
||||||
|
t: this.t,
|
||||||
id: this.id,
|
id: this.id,
|
||||||
hasFile: this.hasFile,
|
hasFile: this.hasFile,
|
||||||
origin: this.origin,
|
origin: this.origin,
|
||||||
|
|||||||
@@ -360,6 +360,14 @@ export class RoomService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('ChatMessage', ChatMessage)
|
||||||
|
|
||||||
|
if(ChatMessage?.t == "au" || ChatMessage?.t == "ru" || ChatMessage?.t == "ul") {
|
||||||
|
this.updateContacts()
|
||||||
|
} else if (ChatMessage?.t == "r") {
|
||||||
|
this.name = ChatMessage.msg
|
||||||
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
done()
|
done()
|
||||||
}, 5)
|
}, 5)
|
||||||
@@ -949,14 +957,73 @@ export class RoomService {
|
|||||||
this.messageUnread = false
|
this.messageUnread = false
|
||||||
}
|
}
|
||||||
|
|
||||||
addContacts(userId:any) {
|
async addContacts(userId:any) {
|
||||||
|
|
||||||
let body = {
|
let body = {
|
||||||
"roomId": this.id,
|
"roomId": this.id,
|
||||||
"userId": userId,
|
"userId": userId,
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.chatService.addUserToGroup(body).toPromise();
|
await this.chatService.addUserToGroup(body).toPromise();
|
||||||
|
this.ChatSystemService.getGroupRoom(this.id).updateContacts()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async updateContacts() {
|
||||||
|
|
||||||
|
let res
|
||||||
|
let error = false
|
||||||
|
|
||||||
|
if(this.t == 'd') {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getMembers(this.id).toPromise();
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getMembers(this.id).toPromise();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (this.t === 'p') {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getGroupMembers(this.id).toPromise()
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getGroupMembers(this.id).toPromise()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
try {
|
||||||
|
res = await this.chatService.getChannelMembers(this.id).toPromise()
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
await this.chatService.refreshtoken();
|
||||||
|
error = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error) {
|
||||||
|
res = await this.chatService.getChannelMembers(this.id).toPromise()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const members = res['members'];
|
||||||
|
const users = members.filter(data => data.username != this.sessionStore.user.UserName);
|
||||||
|
this.members = members
|
||||||
|
this.membersExcludeMe = users
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export class EditEventPage implements OnInit {
|
|||||||
participantes: new FormControl(this.taskParticipants, [
|
participantes: new FormControl(this.taskParticipants, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl( new Date(this._postEvent.StartDate).toLocaleString('pt') <= new Date(this._postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
Date: new FormControl( new Date(this._postEvent.StartDate).toLocaleString('pt') < new Date(this._postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ export class GroupContactsPage implements OnInit {
|
|||||||
"userId":user._id,
|
"userId":user._id,
|
||||||
}
|
}
|
||||||
this.chatService.addUserToGroup(body).subscribe(res=>{
|
this.chatService.addUserToGroup(body).subscribe(res=>{
|
||||||
|
this.ChatSystemService.getGroupRoom(roomId).updateContacts()
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="header-top">
|
<div class="header-top">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">{{groupNameFormart }}</ion-label>
|
<ion-label class="title">{{ ChatSystemService.getGroupRoom(roomId).name }}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<button title="Menu" class="btn-no-color" (click)="openGroupMessagesOptions()">
|
<button title="Menu" class="btn-no-color" (click)="openGroupMessagesOptions()">
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/icon/icons-user.svg"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-bottom-contacts">
|
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
|
||||||
<ion-label class="contacts-list" *ngFor="let member of members" >
|
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe" >
|
||||||
{{member.name}},
|
{{member.name}},
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -109,19 +109,19 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Delete
|
//Delete
|
||||||
deleteGroup(){
|
deleteGroup() {
|
||||||
let body = { "roomId":this.roomId, }
|
let body = { "roomId":this.roomId }
|
||||||
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
|
this.chatService.getRoomInfo(this.roomId).subscribe(room => {
|
||||||
this.room = room['room'];
|
this.room = room['room'];
|
||||||
|
|
||||||
if(this.room.t === 'p') {
|
if(this.room.t === 'p') {
|
||||||
this.chatService.deleteGroup(body).subscribe(res=>{
|
this.chatService.deleteGroup(body).subscribe(res=>{
|
||||||
this.ChatSystemService.deleteRoom(this.roomId)
|
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.chatService.deleteChannel(body).subscribe(res=>{
|
this.chatService.deleteChannel(body).subscribe(res=>{
|
||||||
this.ChatSystemService.deleteRoom(this.roomId)
|
// this.ChatSystemService.deleteRoom(this.roomId)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
placeholder="Data de fim*"
|
placeholder="Data de fim*"
|
||||||
[(ngModel)]="folder.DateEnd"
|
[(ngModel)]="folder.DateEnd"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
|
[min]="folder.DateBegin"
|
||||||
>
|
>
|
||||||
<mat-datepicker-toggle id="new-fim" matSuffix [for]="picker2" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle id="new-fim" matSuffix [for]="picker2" ></mat-datepicker-toggle>
|
||||||
<ngx-mat-datetime-picker #picker2
|
<ngx-mat-datetime-picker #picker2
|
||||||
|
|||||||
+26
-3
@@ -1238,6 +1238,9 @@ ngx-mat-datetime-content{
|
|||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
text-overflow: ellipsis !important;
|
text-overflow: ellipsis !important;
|
||||||
}
|
}
|
||||||
|
.white-space-nowrap {
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
.menuButton{
|
.menuButton{
|
||||||
font-size: rem(14);
|
font-size: rem(14);
|
||||||
@@ -1476,12 +1479,30 @@ $font-size: rem(15);
|
|||||||
.mat-form-field {
|
.mat-form-field {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
// date picker
|
||||||
|
ngx-mat-datetime-content .actions {
|
||||||
|
z-index: 1;
|
||||||
|
position: relative;
|
||||||
|
top: -66px;
|
||||||
|
margin-bottom: -44px;
|
||||||
|
|
||||||
ngx-mat-datetime-content button.mat-stroked-button {
|
button {
|
||||||
top: -56px;
|
z-index: 11111111;
|
||||||
margin-bottom: -35px;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ngx-mat-datetime-content .ngx-mat-timepicker {
|
||||||
|
z-index: 111;
|
||||||
|
}
|
||||||
|
.mat-form-field-underline {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ngx-mat-datetime-content .mat-input-element {
|
||||||
|
padding: 0px !important;
|
||||||
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: 'Roboto' !important;
|
font-family: 'Roboto' !important;
|
||||||
font-size: rem(16) !important;
|
font-size: rem(16) !important;
|
||||||
@@ -1621,3 +1642,5 @@ h5, .buttons{
|
|||||||
font-size: em($i);
|
font-size: em($i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "5cf48c1b2",
|
"shortSHA": "bf89e4684",
|
||||||
"SHA": "5cf48c1b2f7e695ac200b429c2a107b7caab4eac",
|
"SHA": "bf89e468416cca7863800d7aa06efec843d39156",
|
||||||
"branch": "developer",
|
"branch": "developer",
|
||||||
"lastCommitAuthor": "'Eudes Inácio'",
|
"lastCommitAuthor": "'Eudes Inácio'",
|
||||||
"lastCommitTime": "'Fri Aug 4 10:13:06 2023 +0100'",
|
"lastCommitTime": "'Tue Aug 8 15:40:10 2023 +0100'",
|
||||||
"lastCommitMessage": "pull made",
|
"lastCommitMessage": "Improve tinymce autosave and notification web click solved",
|
||||||
"lastCommitNumber": "5137",
|
"lastCommitNumber": "5138",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch developer\nYour branch is up to date with 'origin/developer'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/home/home.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/services/chat/room.service.ts\n\tmodified: src/app/services/native-notification.service.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: src/app/tiny-mce/tiny-mce.page.html\n\tmodified: src/app/tiny-mce/tiny-mce.page.ts\n\tmodified: src/firebase-messaging-sw.js\n\tmodified: src/main.ts",
|
"changeStatus": "On branch developer\nYour branch and 'origin/developer' have diverged,\nand have 1 and 3 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tnew file: index.html\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/models/message.model.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.page.ts\n\tmodified: src/app/pages/chat/chat.page.html\n\tmodified: src/app/pages/chat/chat.page.scss\n\tmodified: src/app/pages/chat/chat.page.ts\n\tmodified: src/app/pages/chat/edit-group/edit-group.page.scss\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.html\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/pages/events/events.page.html\n\tmodified: src/app/pages/events/events.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar/diplomas-gerar.page.ts\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/pages/publications/new-action/new-action.page.html\n\tmodified: src/app/pages/publications/new-action/new-action.page.scss\n\tmodified: src/app/pages/publications/new-action/new-action.page.ts\n\tmodified: src/app/pages/publications/publications.page.scss\n\tmodified: src/app/services/chat/message.service.ts\n\tmodified: src/app/services/chat/room.service.ts\n\tmodified: src/app/shared/agenda/edit-event/edit-event.page.ts\n\tmodified: src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts\n\tmodified: src/app/shared/chat/group-messages/group-messages.page.html\n\tmodified: src/app/shared/popover/chat-popover/chat-popover.page.ts\n\tmodified: src/app/shared/publication/new-action/new-action.page.html\n\tmodified: src/global.scss",
|
||||||
"changeAuthor": "eudes.inacio"
|
"changeAuthor": "eudes.inacio"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user