This commit is contained in:
ivan gomes
2021-11-16 16:00:14 +01:00
parent 24c07e3dea
commit 0bc7bfa21d
501 changed files with 7317 additions and 4966 deletions
+4 -3
View File
@@ -9,12 +9,13 @@
</div>
<div *ngIf="hideThisFeature" class="ion-item-container-no-border">
<ion-label class="attach-wrapper d-flex align-center" (click)="getDoc()">
<ion-label class="attach-wrapper d-flex align-center cursor-pointer" (click)="getDoc()">
<button class="btn-no-color">
<div class="attach-icon">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document pl-10">
<div class="attach-document pl-10 ">
<ion-label>Anexar Documentos</ion-label>
</div>
</button>
+1 -2
View File
@@ -60,7 +60,6 @@ float: left;
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
}
.list-people-title{
/* font-size: 13px; */
@@ -68,7 +67,7 @@ float: left;
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
+2
View File
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { AnimationController, ModalController, NavParams } from '@ionic/angular';
import { SearchList } from 'src/app/models/search-document';
import { SearchPage } from 'src/app/pages/search/search.page';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-add-note',
@@ -18,6 +19,7 @@ export class AddNotePage implements OnInit {
private modalController: ModalController,
private animationController: AnimationController,
private navParams: NavParams,
public ThemeService: ThemeService
) {
this.note = '';
this.hideThisFeature = this.navParams.get('showAttachmentBtn');
@@ -1,7 +1,8 @@
<ion-content class="container">
<div class="arrow-right">
<button class="btn-no-color" (click)="close()">
<ion-icon slot="end" class="arrow-right-icon" src='assets/images/icons-arrow-arrow-right.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" class="arrow-right-icon" src='assets/images/icons-arrow-arrow-right.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" class="arrow-right-icon" src='assets/images/theme/gov/icons-calendar-arrow-right.svg'></ion-icon>
</button>
</div>
<div class="buttons">
@@ -39,7 +39,7 @@
width: 100% !important;
}
.btn-cancel:hover{
background-color: #42b9fe;
background-color: var(--button-hover);
color: #fff !important;
}
.mobile-only{
@@ -9,6 +9,7 @@ import { ChatService } from 'src/app/services/chat.service';
import { FileLoaderService } from 'src/app/services/file/file-loader.service';
import { FileToBase64Service } from 'src/app/services/file/file-to-base64.service';
import { environment } from 'src/environments/environment';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-chat-options-features',
@@ -32,6 +33,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
private fileLoaderService: FileLoaderService,
private fileToBase64Service: FileToBase64Service,
private chatService: ChatService,
public ThemeService: ThemeService
) {
this.members = this.navParams.get('members');
@@ -91,7 +91,7 @@
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
</div>
<div class="ion-input-class-no-height" [class.input-error]="Form?.get('participantes')?.invalid && validateFrom ">
<div class="ion-input-class-no-height cursor-pointer" (click)="addParticipants();" [class.input-error]="Form?.get('participantes')?.invalid && validateFrom ">
<div class="list-people">
<ion-item lines="none">
<ion-list>
@@ -100,8 +100,9 @@
</ion-list>
</ion-item>
</div>
<div class="add-people" (click)="addParticipants();">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<div class="add-people" >
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
@@ -112,7 +113,7 @@
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon>
</div>
<div class="ion-input-class-no-height">
<div class="ion-input-class-no-height cursor-pointer" (click)="addParticipantsCc();">
<div class="list-people">
<ion-item lines="none">
<ion-list>
@@ -121,17 +122,19 @@
</ion-list>
</ion-item>
</div>
<div class="add-people" (click)="addParticipantsCc();">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<div class="add-people" >
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
</div>
<div class="ion-item-container-no-border" (click)="getDoc()">
<div class="ion-item-container-no-border cursor-pointer" (click)="getDoc()">
<ion-label class="d-flex align-center">
<div class="attach-icon d-flex align-center">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document pl-10">
<ion-label>Anexar Documentos</ion-label>
@@ -68,7 +68,8 @@
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
height: 45px;
display: flex;
}
.list-people-title{
/* font-size: 13px; */
@@ -76,7 +77,7 @@
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
}
.attach-title-item{
@@ -20,6 +20,8 @@ import { PermissionService } from 'src/app/services/worker/permission.service';
import { DespachoService } from 'src/app/Rules/despacho.service';
import { PedidoService } from 'src/app/Rules/pedido.service'
import { fullTask } from 'src/app/models/dailyworktask.model';
import { ThemeService } from 'src/app/services/theme.service'
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
parse: {
@@ -97,7 +99,8 @@ export class CreateProcessPage implements OnInit {
private toastService: ToastService,
public p: PermissionService,
private despachoService: DespachoService,
private pedidoService: PedidoService
private pedidoService: PedidoService,
public ThemeService: ThemeService
) {
this.loggeduser = userAuth.ValidatedUser;
this.task = this.navParams.get('task');
@@ -288,7 +291,7 @@ export class CreateProcessPage implements OnInit {
this.modalController.dismiss();
} catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
loader.remove()
@@ -316,10 +319,10 @@ export class CreateProcessPage implements OnInit {
}
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer enviado');
this.toastService._successMessage('Pedido de Parecer enviado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
loader.remove()
}
@@ -341,10 +344,10 @@ export class CreateProcessPage implements OnInit {
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
}
finally {
loader.remove()
@@ -373,16 +376,16 @@ export class CreateProcessPage implements OnInit {
await this.despachoService.CompleteTask({serialNumber: this.task.serialNumber}).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Despacho criado');
this.toastService._successMessage('Despacho criado');
} catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
//loader.remove();
}
}
else{
this.validateField = true;
this.toastService.badRequest('Por favor adicione uma descrição');
this.toastService._badRequest('Por favor adicione uma descrição');
}
loader.remove();
break;
@@ -408,10 +411,10 @@ export class CreateProcessPage implements OnInit {
}
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Parecer criado');
this.toastService._successMessage('Pedido de Parecer criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
loader.remove()
}
@@ -433,10 +436,10 @@ export class CreateProcessPage implements OnInit {
await this.pedidoService.taskCompleteDeferimento({serialNumber:this.task.serialNumber}).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Pedido de Deferimento criado');
this.toastService._successMessage('Pedido de Deferimento criado');
}
catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
loader.remove()
}
@@ -491,9 +494,9 @@ export class CreateProcessPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage(message);
this.toastService._successMessage(message);
} catch (error) {
this.toastService.badRequest('Processo não efectuado');
this.toastService._badRequest('Processo não efectuado');
} finally {
loader.remove()
}
@@ -15,9 +15,10 @@
</div>
</div>
<div class="ion-item-container-no-border" >
<ion-label (click)="getDoc()" class="d-flex align-center">
<ion-label (click)="getDoc()" class="d-flex align-center cursor-pointer">
<div class="attach-icon d-flex align-center">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document pl-10">
<ion-label>Anexar Documentos</ion-label>
@@ -72,7 +72,8 @@
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
height: 45px;
display: flex;
}
.list-people-title{
/* font-size: 13px; */
@@ -80,7 +81,7 @@
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
@@ -4,6 +4,7 @@ import { SearchList } from 'src/app/models/search-document';
import { SearchPage } from 'src/app/pages/search/search.page';
import { ProcessesService } from 'src/app/services/processes.service';
import { ToastService } from 'src/app/services/toast.service';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-dar-parecer',
@@ -22,6 +23,7 @@ export class DarParecerPage implements OnInit {
private navParams: NavParams,
private animationController: AnimationController,
private toastService: ToastService,
public ThemeService: ThemeService
) {
this.serialNumber = this.navParams.get('serialNumber');
this.instanceId = this.navParams.get('ProcessInstanceID');
@@ -67,9 +69,9 @@ export class DarParecerPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise();
this.modalController.dismiss();
this.toastService.successMessage('Parecer enviado');
this.toastService._successMessage('Parecer enviado');
} catch (error) {
this.toastService.badRequest("Parecer não solicitado");
this.toastService._badRequest("Parecer não solicitado");
} finally {
loader.remove()
}
+7 -6
View File
@@ -1,13 +1,12 @@
<ion-content>
<div class="main-content d-flex height-100">
<div class="content d-flex flex-column width-100">
<div class="header-content pb-20">
<div class="header-title">
<label>Delegar</label>
</div>
</div>
<div class="overflow-y-auto">
<div>
<div class="container-div">
<div class="ion-item-class-2">
@@ -24,7 +23,8 @@
</ion-item>
</div>
<div class="add-people" (click)="addParticipants()">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
@@ -42,9 +42,10 @@
</div>
<div *ngIf="hideThisFeature" class="ion-item-container-no-border">
<ion-label (click)="getDoc()">
<ion-label (click)="getDoc()" class="cursor-pointer">
<div class="attach-icon">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document">
<ion-label>Anexar Documentos</ion-label>
@@ -52,7 +53,7 @@
</ion-label>
</div>
<div class="content width-100 overflow-y-auto height-100">
<div *ngIf="hideThisFeature" class="content width-100 overflow-y-auto height-100">
<div class="list">
<ion-list *ngFor="let document of documents; let i = index">
<ion-item>
+3 -2
View File
@@ -69,7 +69,8 @@
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
height: 45px;
display: flex;
}
.list-people-title{
/* font-size: 13px; */
@@ -77,7 +78,7 @@
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
+8 -5
View File
@@ -13,6 +13,8 @@ import { ToastService } from 'src/app/services/toast.service';
import { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';
import { SearchList } from 'src/app/models/search-document';
import { SearchPage } from 'src/app/pages/search/search.page';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-delegar',
@@ -52,6 +54,7 @@ export class DelegarPage implements OnInit {
private alertService: AlertService,
private animationController: AnimationController,
private toastService: ToastService,
public ThemeService: ThemeService
) {
this.task = this.navParams.get('task');
this.postData = new Event();
@@ -85,16 +88,16 @@ export class DelegarPage implements OnInit {
async saveTask() {
if(this.taskParticipants.length < 1){
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
}
else if(this.taskParticipants.length > 1){
this.toastService.badRequest("Selecione apenas um destinatário");
this.toastService._badRequest("Selecione apenas um destinatário");
}
else {
let body = {
"SerialNumber": this.task.SerialNumber,
"DispatchDocId": this.task.DocId,
"FolderID": this.task.FolderId,
"FolderID": this.task.FolderId || this.task.FolderID,
"Subject": this.task.Folio,
"Comment": this.note,
"DelegatedUserEmail": this.taskParticipants[0].EmailAddress,
@@ -106,11 +109,11 @@ export class DelegarPage implements OnInit {
this.processes.DelegateTask(body).subscribe(res=>{
console.log(res);
this.toastService.successMessage('Processo delegado')
this.toastService._successMessage('Processo delegado')
this.close();
},
(error)=>{
this.toastService.badRequest("Processo não delegado")
this.toastService._badRequest("Processo não delegado")
},
()=>{
loader.remove()
@@ -9,7 +9,9 @@
<ion-label class="title">{{LoadedDocument.Assunto}}</ion-label>
</div>
<div class="div-icon" (click)="openOptions()">
<ion-icon class="font-25 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-25 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-25 cursor-pointer" src="assets/images/theme/gov/icons-menu.svg"></ion-icon>
<!-- <ion-icon class="font-25 cursor-pointer" src="assets/images/theme/gov/icons-menu.svg"></ion-icon> -->
</div>
</div>
</div>
@@ -130,7 +130,7 @@ ion-button{
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
@@ -11,6 +11,8 @@ import { PermissionService } from 'src/app/services/worker/permission.service';
import { SearchedDocumentOptionsPage } from 'src/app/shared/popover/searched-document-options/searched-document-options.page';
import { Location } from '@angular/common';
import { ViewDocumentPage } from '../view-document/view-document.page';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-document-detail',
@@ -45,6 +47,7 @@ export class DocumentDetailPage implements OnInit {
public p: PermissionService,
private popoverController: PopoverController,
private location: Location,
public ThemeService: ThemeService
) {
this.docId = this.navParams.get('docId');
this.applicationId = this.navParams.get('applicationId');
@@ -276,7 +276,8 @@
</ion-item>
</div>
<div class="add-people" >
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
@@ -297,7 +298,8 @@
</ion-item>
</div>
<div class="add-people" >
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
@@ -316,8 +318,9 @@
<div class="ion-item-container-no-border cursor-pointer" (click)="getDoc()">
<ion-label>
<div class="attach-icon">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
<div class="attach-icon cursor-pointer">
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-attach-doc.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document">
<ion-label>Anexar Documentos</ion-label>
@@ -66,7 +66,8 @@
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
height: 45px;
display: flex;
}
.list-people-title{
/* font-size: 13px; */
@@ -74,7 +75,7 @@
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
@@ -17,6 +17,8 @@ import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-pick
import { EventsService } from 'src/app/services/events.service';
import { EventService } from 'src/app/services/rules/event.service';
import { EventPipe } from 'src/app/pipes/event.pipe';
import { ThemeService } from 'src/app/services/theme.service'
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
parse: {
@@ -96,7 +98,8 @@ export class DocumentSetUpMeetingPage implements OnInit {
authService: AuthService,
private toastService: ToastService,
private calendarService: EventsService,
private eventService: EventService
private eventService: EventService,
public ThemeService: ThemeService
) {
this.loggeduser = authService.ValidatedUser;
this.document = this.navParams.get('document')
@@ -221,11 +224,11 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {
laoder.remove()
this.toastService.successMessage('Reunião criada')
this.toastService._successMessage('Reunião criada')
this.modalController.dismiss()
}, (error) => {
laoder.remove()
this.toastService.badRequest('Não foi possível marcar a reunião');
this.toastService._badRequest('Não foi possível marcar a reunião');
}, ()=>{
laoder.remove()
});
@@ -3,7 +3,8 @@
<div class="d-flex px-20 pt-20">
<div class="cursor-pointer" (click)="close()">
<ion-icon class="font-35" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-35" src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-35" src="assets/images/theme/gov/icons-calendar-arrow-left.svg"></ion-icon>
</div>
<div class="font-25">{{ fileName }}</div>
@@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { ModalController, NavParams } from '@ionic/angular';
import { ProcessesService } from 'src/app/services/processes.service';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
@@ -19,7 +20,8 @@ export class DocumentViewerPage implements OnInit {
constructor(
private modalController: ModalController,
private navParams: NavParams,
private processes: ProcessesService) {
public processes: ProcessesService,
public ThemeService: ThemeService) {
this.task = this.navParams.get('task') || null;
this.DocId = this.navParams.get('DocId');
+5 -13
View File
@@ -14,7 +14,7 @@
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
</div>
<div class="ion-input-class-no-height">
<div class="ion-input-class-no-height cursor-pointer" (click)="addParticipants()">
<div class="list-people">
<ion-item lines="none">
<ion-list>
@@ -23,8 +23,9 @@
</ion-list>
</ion-item>
</div>
<div class="add-people" (click)="addParticipants()">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<div class="add-people" >
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
</div>
@@ -41,16 +42,7 @@
</div>
</div>
<div hidden class="ion-item-container-no-border">
<ion-label>
<div class="attach-icon">
<ion-icon src="assets/images/icons-attach-doc.svg"></ion-icon>
</div>
<div class="attach-document">
<ion-label>Anexar Documentos</ion-label>
</div>
</ion-label>
</div>
<div *ngIf="loadedAttachments">
<ion-item>
+3 -2
View File
@@ -69,7 +69,8 @@
float: right;
overflow: auto;
font-size: 25px;
padding: 10px;
height: 45px;
display: flex;
}
.list-people-title{
/* font-size: 13px; */
@@ -77,7 +78,7 @@
}
.attach-document{
font-size: 15px;
color: #0d89d1;
color: var(--title-text-color);
margin: 5px 5px 5px 10px;
padding: 5px;
float: left;
+6 -3
View File
@@ -15,6 +15,8 @@ import { ToastService } from 'src/app/services/toast.service';
import { SearchList } from 'src/app/models/search-document';
import { SearchPage } from 'src/app/pages/search/search.page';
import { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-forward',
@@ -53,6 +55,7 @@ export class ForwardPage implements OnInit {
private alertService: AlertService,
private animationController: AnimationController,
private toastService: ToastService,
public ThemeService: ThemeService
) {
this.task = this.navParams.get('task');
this.postData = new Event();
@@ -121,7 +124,7 @@ export class ForwardPage implements OnInit {
}
if(this.taskParticipants.length < 1){
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
}
else {
@@ -147,11 +150,11 @@ export class ForwardPage implements OnInit {
console.log(body);
this.processes.CompleteParecerPrTask(body).subscribe(res=>{
console.log(res);
this.toastService.successMessage('Processo delegado');
this.toastService._successMessage('Processo delegado');
this.goBack();
},
(error)=>{
this.toastService.badRequest("Processo não delegado")
this.toastService._badRequest("Processo não delegado")
});
}
}
@@ -7,7 +7,9 @@
</div>
</div>
<div class="btn-close d-flex cursor-pointer" (click)="close()">
<ion-icon class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
</div>
</div>
<div class="profile-content overflow-y-auto width-100 height-100">
@@ -21,9 +23,11 @@
</div> -->
</div>
<div >
<div>
<div class="d-flex align-center">
<ion-icon class="profile-pic" src="assets/images/icons-default-profile.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="profile-pic" src="assets/images/icons-default-profile.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="profile-pic" src="assets/images/theme/gov/icons-profile.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="profile-pic" src="assets/images/theme/gov/icons-profile.svg"></ion-icon>
</div>
</div>
@@ -33,7 +37,7 @@
<div class="container-div width-100">
<div class="ion-item-class-2">
<div class="ion-icon-class">
<ion-icon slot="start" name="person"></ion-icon>
<ion-icon slot="start" name="person" class="ion-icon-class-theme"></ion-icon>
</div>
<div class="ion-input-class">
<ion-input disabled placeholder="Nome" [(ngModel)]="SessionStore.user.FullName"></ion-input>
@@ -44,22 +48,47 @@
<div class="container-div width-100">
<div class="ion-item-class-2">
<div class="ion-icon-class">
<ion-icon slot="start" name="mail"></ion-icon>
<ion-icon slot="start" name="mail" class="ion-icon-class-theme"></ion-icon>
</div>
<div class="ion-input-class">
<ion-input disabled placeholder="Email" [(ngModel)]="SessionStore.user.Email"></ion-input>
</div>
</div>
</div>
<div class="profile-title d-flex justify-space-between align-center width-100">
<div class="d-flex align-center">
<div>Tema</div>
</div>
</div>
<div class="profile-title d-flex justify-space-between align-center width-100">
<div class="d-flex align-center">
<div class="btn-close d-flex cursor-pointer" (click)="changeTheme('gov')">
<img style="width: 40px;" src="assets/images/theme/gov/governoangola_A.png">
</div>
<div class="btn-close d-flex cursor-pointer pr-10" (click)="changeTheme('default')" >
<img style="width: 40px;" src="assets/images/logo-removebg-preview.png"/>
</div>
<div hidden class="btn-close d-flex cursor-pointer pr-10" (click)="changeTheme('tribunal')" >
<img style="width: 40px;" src="assets/images/theme/tribunal/tribunal-constitucional-logo.png"/>
</div>
</div>
</div>
</div>
<div class="login-preference width-100" *ngIf="!platform.is('desktop') && !platform.is('mobileweb')">
<div class="preference">Preferência Login</div>
<ion-row>
<ion-col class="align-center d-flex">
<div class="d-flex align-center" (click)="LoginPreferenceMethod('Pin')">
<ion-checkbox [checked]="SessionStore.user.LoginPreference=='Pin' " class="checkBox" ></ion-checkbox>
<div class="d-flex align-center" (click)="LoginPreferenceMethod('Pin')">
<ion-checkbox [checked]="SessionStore.user.LoginPreference=='Pin' " class="checkBox"></ion-checkbox>
PIN
</div>
</ion-col>
@@ -77,15 +106,15 @@
<div class="d-flex justify-space-between">
<ion-buttons slot="start" (click)="close()">
<button class="btn-cancel" fill="clear" color="#061b52" >
<button class="btn-cancel" fill="clear" color="#061b52">
<ion-label>Cancelar</ion-label>
</button>
</ion-buttons>
<ion-buttons slot="end" (click)="close()">
<button class="btn-ok" fill="clear" color="#fff" >
<ion-label>Gravar</ion-label>
</button>
</ion-buttons>
</ion-buttons>
<ion-buttons slot="end" (click)="close()">
<button class="btn-ok" fill="clear" color="#fff">
<ion-label>Gravar</ion-label>
</button>
</ion-buttons>
</div>
</ion-footer>
@@ -40,7 +40,7 @@
}
.profile-info{
margin-top: 20px;
color: #fff;
color: black;
font-family: Roboto;
font-size: 13px;
@@ -78,6 +78,7 @@
padding-right: 10px;
float: left;
background-color: transparent;
color: var(--profile-text-color);
}
}
}
@@ -95,6 +96,10 @@
border-color: transparent !important;
}
.ion-icon-class-theme {
color: var(--profile-text-color) ;
}
.login-preference{
margin-top: 15px;
float: left;
@@ -1,10 +1,11 @@
import { Component, OnInit } from '@angular/core';
import { AnimationController, ModalController } from '@ionic/angular';
import { AnimationController, ModalController,Platform } from '@ionic/angular';
import { FingerprintPage } from 'src/app/shared/fingerprint/fingerprint.page';
import { PinPage } from 'src/app/shared/pin/pin.page';
import { SessionStore } from 'src/app/store/session.service';
import { environment } from 'src/environments/environment';
import { Platform } from '@ionic/angular';
import { BackgroundService } from 'src/app/services/background.service';
import { ThemeService } from 'src/app/services/theme.service';
@Component({
selector: 'app-edit-profile',
@@ -19,6 +20,8 @@ export class EditProfilePage implements OnInit {
constructor(private modalController:ModalController,
private animationController: AnimationController,
public platform: Platform,
private backgroundservice: BackgroundService,
public ThemeService: ThemeService
) {}
ngOnInit() {}
@@ -113,5 +116,9 @@ export class EditProfilePage implements OnInit {
}
changeTheme(name) {
this.ThemeService.setTheme(name)
}
}
+4 -3
View File
@@ -6,7 +6,8 @@
</div>
</div>
<div class="btn-close d-flex cursor-pointer" (click)="close()">
<ion-icon class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
</div>
</div>
</ion-header>
@@ -55,8 +56,8 @@
</div>
<div class="approve-event-detail">
<p *ngIf = "item.Service == 'agenda'">{{item.Location}}</p>
<h3 id="profile-title">{{item.alert}}</h3>
<p *ngIf = "item.Service != 'agenda'">{{item.desc}}</p>
<h3 id="profile-title">{{item.title}}</h3>
<p id="profile-title" *ngIf = "item.Service != 'agenda'">{{item.body}}</p>
</div>
<!-- <div class="notification-label-MD-official" *ngIf = "item.Service == 'agenda' && item.TypeAgenda == 'official' && item.Role == '100000011'" ></div>
<div class="notification-label-MD-pessoal" *ngIf = "item.Service == 'agenda' && item.TypeAgenda == 'pessoal' && item.Role == '100000011'" ></div>
+35 -35
View File
@@ -1,55 +1,58 @@
.profile-header{
.profile-header {
margin: 0 em(20px);
// background-color: #0782c9;
padding: 20px 20px;
border: 0!important;
border: 0 !important;
.div-logo{
.div-logo {
background: transparent;
width: calc(100% - 40px) !important;
justify-content: center;
display: flex;
float: left;
.logo{
.logo {
width: 140px;
.img{
.img {
width: 100%;
margin: 0px auto;
}
}
}
}
.btn-close{
.btn-close {
float: right !important;
}
.profile-content{
padding: 20px 20px;
.profile-content {
padding: 20px 20px;
//color: var(--profile-text-color) !important;
}
.icon{
font-size: 40px;
.icon {
font-size: 40px;
}
.profile-title{
.profile-title {
font-weight: 300;
font-size: 20px !important;
margin-bottom: 40px !important;
color: var(--profile-text-color) !important;
}
.line{
.line {
width: 100% !important;
margin-top: 15px;
border-top: 1px solid #d8d8d8;
color: var(--profile-title-color-RoleDescription) !important;
}
.btn-delete{
background:#ffe0e0 !important;
.btn-delete {
background: #ffe0e0 !important;
width: 40% !important;
margin-left: 0 !important;
}
.btn-cancel{
.btn-cancel {
width: 40% !important;
margin-right: 0 !important;
}
@@ -58,14 +61,13 @@
width: 100% !important;
}
ion-list{
ion-list {
background-color: transparent !important;
}
.notifications-content{
.notifications-content {
padding: 0px 20px;
.item{
.item {
border-radius: 15px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
border: solid 1px #e9e9e9;
@@ -76,37 +78,38 @@ ion-list{
color: #000;
overflow: hidden;
.notification-item{
.notification-item {
width: fit-content;
float: left;
margin-right: 10px;
padding: 0 !important;
overflow: auto;
}
.notification-icon{
.notification-icon {
font-size: 35px !important;
}
.approve-event-time{
.approve-event-time {
width: fit-content !important;
float: left;
}
.approve-event-detail{
.approve-event-detail {
width: calc(100% - 115px) !important;
float: left;
#profile-title{
#profile-title {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.notification-label-MD-official{
.notification-label-MD-official {
float: right;
width: 5px;
height: 100%;
border-radius: 0% 100% 100% 0%;
background-color: #ffb703;
}
.notification-label-MD-pessoal{
.notification-label-MD-pessoal {
float: right;
width: 5px;
height: 100%;
@@ -114,21 +117,19 @@ ion-list{
background-color: #ff0303;
}
.item-conten{
.item-conten {
border-right: 5px solid var(--notificationtypeagenda);
border-radius: 5px;
}
.notification-label-PR-official{
.notification-label-PR-official {
float: right;
width: 5px;
height: 100%;
border-radius: 0% 100% 100% 0%;
background-color: #03d838;
}
.notification-label-PR-pessoal{
.notification-label-PR-pessoal {
float: right;
width: 5px;
height: 100%;
@@ -136,8 +137,7 @@ ion-list{
background-color: #8b0ae0;
}
}
}
.item-inner{
.item-inner {
padding: 0 !important;
}
+55 -67
View File
@@ -1,17 +1,15 @@
///<reference path="../../../../plugins/cordova-plugin-mfp/typings/worklight.d.ts" />
///<reference path="../../../../plugins/cordova-plugin-mfp-jsonstore/typings/jsonstore.d.ts" />
import { Component, OnInit, NgZone } from '@angular/core';
import { Router, NavigationExtras } from '@angular/router';
import { AnimationController, ModalController,Platform } from '@ionic/angular';
import { AnimationController, ModalController, Platform } from '@ionic/angular';
import { LoginUserRespose } from 'src/app/models/user.model';
import { AuthService } from 'src/app/services/auth.service';
import { LocalstoreService } from 'src/app/store/localstore.service';
import { EditProfilePage } from './edit-profile/edit-profile.page';
import { JsonStore } from '../../services/jsonStore.service';
import { StorageService } from '../../services/storage.service';
import { NotificationsService } from '../../services/notifications.service';
import { SessionStore } from 'src/app/store/session.service';
import { EventTrigger } from '../../services/eventTrigger.service';
import { ThemeService } from 'src/app/services/theme.service'
@Component({
selector: 'app-profile',
@@ -30,7 +28,7 @@ export class ProfilePage implements OnInit {
typeagenda2: "pessoal";
pr: "100000014";
md: "100000011";
date:"60:20";
date: "60:20";
location: "Gabinete";
constructor(private modalController: ModalController,
@@ -38,13 +36,12 @@ export class ProfilePage implements OnInit {
private animationController: AnimationController,
private router: Router,
private localstoreService: LocalstoreService,
private jsonstore: JsonStore,
private storageservice: StorageService,
private zone: NgZone,
private notificationservice: NotificationsService,
private platform: Platform,
private notificationsService: NotificationsService,
private eventtrigger: EventTrigger
private eventtrigger: EventTrigger,
public ThemeService: ThemeService
) {
this.loggeduser = authService.ValidatedUser;
@@ -61,14 +58,14 @@ export class ProfilePage implements OnInit {
this.getNotificationData();
}
this.notificationsService.registerCallback(
'any',
() => {
setTimeout(()=>{
this.getNotificationData();
}, 100)
}
)
/* this.notificationsService.registerCallback(
'any',
() => {
setTimeout(()=>{
this.getNotificationData();
}, 100)
}
) */
}
@@ -79,58 +76,49 @@ export class ProfilePage implements OnInit {
notImplemented() { }
asyncNotification(){}
asyncNotification() { }
async getNotificationData() {
this.storageservice.get("Notifications").then((value) => {
console.log("Init get store", value)
/* var data = JSON.parse(value); */
console.log("Init store parse", value)
if(typeof(value) == 'string') {
value = JSON.parse(value)
console.log("CSDfdvdf",value)
}
this.DataArray = []
value.forEach((element,i) => {
console.log("ARaaAA", element)
value.forEach((element, i) => {
let notificationObject;
if(element.payload){
var payload = JSON.parse(element.payload)
if (element.data) {
console.log("ARaaAA", element)
notificationObject = {
index: i,
alert: element.alert,
Service: payload.Service,
Object: payload.Object,
IdObject: payload.IdObject,
FolderId: payload.FolderId,
desc: payload.desc,
dateInit: this.getFormatedTime(payload.dateInit),
dateEnd: this.getFormatedTime(payload.dateEnd),
Location: payload.Location,
TypeAgenda: payload.TypeAgenda,
Role: payload.Role,
Status: payload.Status
title: element.title,
Service: element.data.Service,
Object: element.data.Object,
IdObject: element.data.IdObject,
FolderId: element.data.FolderId,
body: element.body,
dateInit: this.getFormatedTime(element.data.dateInit),
dateEnd: this.getFormatedTime(element.data.dateEnd),
Location: element.data.Location,
TypeAgenda: element.data.TypeAgenda,
Role: element.data.Role,
Status: element.data.Status
}
} else {
notificationObject = {
index: i,
alert: element.alert,
Service: element.Service,
Object: element.Object,
IdObject: element.IdObject,
FolderId: element.FolderId,
desc: element.desc,
dateInit: element.dateInit,
dateEnd: element.dateEnd,
IdObject: element.IdObject,
Location: element.Location,
TypeAgenda: element.TypeAgenda,
Object: element.Object,
Role: element.Role,
Status: element.Status
Service: element.Service,
Status: element.Status,
TypeAgenda: element.TypeAgenda,
body: element.body,
dateEnd: element.dateEnd,
dateInit: element.dateInit,
index: element.index,
title: element.title
}
}
this.DataArray.push(notificationObject)
});
@@ -144,20 +132,20 @@ export class ProfilePage implements OnInit {
}
getFormatedTime(dateString){
getFormatedTime(dateString) {
var date = new Date(dateString);
var hours = date.getHours() > 12 ? date.getHours() - 12 : date.getHours();
var hours = date.getHours() /* > 12 ? date.getHours() - 12 : date.getHours() */;
var am_pm = date.getHours() >= 12 ? "pm" : "am";
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
let time = hours + ":" + minutes /* + " " + am_pm */;
console.log('Formate',time)
console.log('Formate', time)
return time;
}
}
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
if (Service === "agenda" && IdObject.length > 10) {
console.log("Id Lenght",IdObject.length)
console.log("Id Lenght", IdObject.length)
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
}
else if (Service === "gabinete-digital" && Object === "expediente") {
@@ -165,8 +153,8 @@ export class ProfilePage implements OnInit {
}
else if (Service === "agenda" && Object === "event-list") {
//this.zone.run(() => this.router.navigate(['/home/gabinete-digital/event-list/approve-event',IdObject, 'agenda']));
this.zone.run(() =>this.router.navigate(['/home/agenda/event-list/approve-event',IdObject, 'agenda']));
this.zone.run(() => this.router.navigate(['/home/agenda/event-list/approve-event', IdObject, 'agenda']));
} else if (Service === "gabinete-digital" && Object === "despachos") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos', IdObject, 'gabinete-digital'], { replaceUrl: true }));
@@ -181,7 +169,7 @@ export class ProfilePage implements OnInit {
}
else if (Service === "gabinete-digital" && Object === "despachos-pr") {
this.zone.run(() =>this.router.navigate(['/home/gabinete-digital/despachos-pr',IdObject,'gabinete-digital']));
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/despachos-pr', IdObject, 'gabinete-digital']));
}
else if (Service === "accoes" && Object === "accao") {
this.zone.run(() => this.router.navigate(['/home/publications', IdObject]));
@@ -193,8 +181,8 @@ export class ProfilePage implements OnInit {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas', IdObject, 'gabinete-digital']));
}
else if (Service === "gabinete-digital" && Object === "diplomas-assinar") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas-assinar',IdObject,'gabinete-digital']));
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/diplomas-assinar', IdObject, 'gabinete-digital']));
}
else if (Service === "gabinete-digital" && Object === "expedientes-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expedientes-pr', IdObject, 'gabinete-digital']));
@@ -210,13 +198,13 @@ export class ProfilePage implements OnInit {
}
deleteNotification(index){
deleteNotification(index) {
console.log("Delete notification first stata", this.notificationdata)
this.notificationdata = this.notificationdata.filter(item=>item.index !=index );
this.storageservice.store("Notifications",JSON.stringify(this.notificationdata)).then(() =>{
this.storageservice.get("Notifications").then((value) =>{
console.log("notfication state", value, )
this.notificationdata = this.notificationdata.filter(item => item.index != index);
this.storageservice.store("Notifications", JSON.stringify(this.notificationdata)).then(() => {
this.storageservice.get("Notifications").then((value) => {
console.log("notfication state", value,)
});
});
console.log("Delete notification last stata", this.notificationdata)
@@ -2,7 +2,7 @@
<ion-toolbar class="d-flex">
<div class="d-flex align-items-center px-20 pt-20 font-25">
<div class="left cursor-pointer" (click)="close()">
<fa-icon icon="chevron-left" class="menu-icon"></fa-icon>
<fa-icon icon="chevron-left" class="menu-icon font-awesome-1"></fa-icon>
</div>
<div class="middle add-ellipsis">
@@ -10,7 +10,7 @@
</div>
<div class="right cursor-pointer" (click)="openOptions()">
<fa-icon icon="ellipsis-v" class="menu-icon"></fa-icon>
<fa-icon icon="ellipsis-v" class="menu-icon font-awesome-1"></fa-icon>
</div>
</div>