2021-03-11 15:44:19 +01:00
|
|
|
<ion-header class="ion-no-border">
|
2020-12-16 15:07:28 +01:00
|
|
|
<app-header></app-header>
|
|
|
|
|
</ion-header>
|
2020-11-30 16:08:29 +01:00
|
|
|
|
|
|
|
|
<ion-content>
|
2021-07-29 16:49:07 +01:00
|
|
|
<div class="d-md-none" *ngIf="hideRefreshBtn">
|
|
|
|
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
|
|
|
<ion-refresher-content>
|
|
|
|
|
</ion-refresher-content>
|
|
|
|
|
</ion-refresher>
|
|
|
|
|
</div>
|
2021-03-11 15:44:19 +01:00
|
|
|
|
|
|
|
|
<!-- Main container -->
|
2021-03-30 15:35:22 +01:00
|
|
|
<div class="main-content d-flex height-100 background-white overflow-hidden border-t-radius ">
|
2021-03-12 11:37:26 +01:00
|
|
|
<!-- Left -->
|
2021-06-30 11:00:59 +01:00
|
|
|
<div class="aside-left app-default-padding d-flex flex-grow-1 flex-column width-30 ">
|
2021-03-11 15:44:19 +01:00
|
|
|
<!-- Header -->
|
2021-07-16 22:50:08 +01:00
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
|
|
|
<ion-toolbar >
|
2021-07-22 14:36:29 +01:00
|
|
|
|
2021-07-16 22:50:08 +01:00
|
|
|
<div class="main-header">
|
2021-07-22 14:36:29 +01:00
|
|
|
|
2021-07-08 13:41:27 +01:00
|
|
|
<div class="title-content width-100 d-flex justify-space-between">
|
2021-04-14 15:27:50 +01:00
|
|
|
<div class="div-title flex-grow-1">
|
|
|
|
|
<ion-label class="title ">Acções Presidenciais</ion-label>
|
2021-03-11 15:44:19 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="div-icon">
|
2021-04-08 16:35:10 +01:00
|
|
|
<button class="btn-no-color" (click)="AddPublicationFolder()">
|
2021-04-08 16:26:54 +01:00
|
|
|
<ion-icon slot="icon-only" src='assets/images/icons-add.svg'></ion-icon>
|
|
|
|
|
</button>
|
2021-07-29 16:29:12 +01:00
|
|
|
<button *ngIf="hideRefreshBtn" class="btn-no-color" (click)="refreshing()">
|
2021-04-08 16:35:10 +01:00
|
|
|
<ion-icon slot="icon-only" class="title-icon" name="reload-circle" title="Actualizar"></ion-icon>
|
|
|
|
|
</button>
|
2021-03-11 15:44:19 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-07-16 22:50:08 +01:00
|
|
|
</ion-toolbar>
|
2021-03-11 15:44:19 +01:00
|
|
|
<!-- Content -->
|
2021-07-22 14:36:29 +01:00
|
|
|
|
2021-06-30 11:00:59 +01:00
|
|
|
<div class="aside overflow-y-auto d-flex flex-wrap width-100">
|
2021-07-07 15:46:09 +01:00
|
|
|
<!-- <ion-list class="width-100"> -->
|
2021-08-20 19:13:58 +01:00
|
|
|
<ion-item-sliding disabled="{{showSlidingOptions}}" class="item width-100 cursor-pointer"
|
2021-07-21 19:08:31 +01:00
|
|
|
*ngFor="let viagem of publicationTravelFolderService.list">
|
2021-07-08 09:13:57 +01:00
|
|
|
<ion-item lines="none"
|
2021-09-01 17:32:11 +01:00
|
|
|
class="item-hover width-100 d-flex ion-no-border ion-no-margin ion-no-padding">
|
|
|
|
|
<div (click)="goToPublicationsList(viagem.ProcessId)" class="item-icon item-hover cursor-pointer">
|
2021-07-07 15:46:09 +01:00
|
|
|
<ion-icon slot="end" src='assets/images/icons-plane-active.svg'></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div (click)="goToPublicationsList(viagem.ProcessId)" class="item-content flex-grow-1 cursor-pointer">
|
2021-07-22 14:36:29 +01:00
|
|
|
<p class="item-content-date my-5">De {{getDate(viagem.DateBegin)}} a {{getDate(viagem.DateEnd)}}</p>
|
2021-07-07 15:46:09 +01:00
|
|
|
<p class="item-content-title my-10">{{viagem.Description}}</p>
|
|
|
|
|
<p class="item-content-detail my-5">{{viagem.Detail}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div (click)="openOptions(viagem.ProcessId)" class="item-options d-none cursor-pointer" autoHide="false">
|
|
|
|
|
<ion-icon src="assets/images/icons-menu.svg"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
<ion-item-options class="members-options" side="end">
|
2021-07-22 14:36:29 +01:00
|
|
|
<ion-item-option class="edit-option" (click)="editAction(viagem.ProcessId)">
|
2021-07-07 16:34:01 +01:00
|
|
|
<button class="btn-no-color">
|
|
|
|
|
<ion-icon class="edit" slot="end" src="assets/images/icons-edit.svg" ></ion-icon>
|
2021-07-22 14:36:29 +01:00
|
|
|
</button>
|
2021-07-07 17:02:19 +01:00
|
|
|
</ion-item-option>
|
2021-07-22 14:36:29 +01:00
|
|
|
<ion-item-option class="delete-option" (click)="deleteAction(viagem.ProcessId)">
|
2021-07-07 15:46:09 +01:00
|
|
|
<button class="btn-no-color">
|
|
|
|
|
<ion-icon class="delete" name="trash-sharp"></ion-icon>
|
2021-07-22 14:36:29 +01:00
|
|
|
</button>
|
2021-07-07 15:46:09 +01:00
|
|
|
</ion-item-option>
|
|
|
|
|
</ion-item-options>
|
|
|
|
|
</ion-item-sliding>
|
|
|
|
|
<!-- </ion-list> -->
|
2021-07-22 14:36:29 +01:00
|
|
|
<!-- <div class="item width-100 d-flex"
|
2021-06-30 15:01:07 +01:00
|
|
|
*ngFor="let viagem of publicationsTravelFolderList">
|
|
|
|
|
<div (click)="goToPublicationsList(viagem.ProcessId)" class="item-icon cursor-pointer">
|
|
|
|
|
<ion-icon slot="end" src='assets/images/icons-plane-active.svg'></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div (click)="goToPublicationsList(viagem.ProcessId)" class="item-content flex-grow-1 cursor-pointer">
|
|
|
|
|
<p class="item-content-date my-5">De {{viagem.DateBegin}} a {{viagem.DateEnd}}</p>
|
|
|
|
|
<p class="item-content-title my-10">{{viagem.Description}}</p>
|
|
|
|
|
<p class="item-content-detail my-5">{{viagem.Detail}}</p>
|
|
|
|
|
</div>
|
2021-06-30 15:48:37 +01:00
|
|
|
<div (click)="openOptions(viagem.ProcessId)" class="item-options d-none cursor-pointer" autoHide="false">
|
2021-06-30 15:01:07 +01:00
|
|
|
<ion-icon src="assets/images/icons-menu.svg"></ion-icon>
|
|
|
|
|
</div>
|
2021-07-07 15:46:09 +01:00
|
|
|
</div> -->
|
2021-07-08 09:49:18 +01:00
|
|
|
<ion-item-sliding disabled="{{showSlidingOptions}}" class="item width-100"
|
2021-07-21 19:08:31 +01:00
|
|
|
*ngFor="let evento of publicationEventFolderStorage.list"
|
|
|
|
|
>
|
2021-07-08 09:13:57 +01:00
|
|
|
<ion-item lines="none"
|
2021-09-01 17:32:11 +01:00
|
|
|
class="item-hover width-100 d-flex ion-no-border ion-no-margin ion-no-padding"
|
2021-07-22 14:49:55 +01:00
|
|
|
(click)="goToPublicationsList(evento.ProcessId)">
|
2021-07-07 15:46:09 +01:00
|
|
|
<div class="item-icon2">
|
|
|
|
|
<ion-icon slot="end" src='assets/images/icons-nav-actions.svg'></ion-icon>
|
|
|
|
|
</div>
|
2021-09-01 17:32:11 +01:00
|
|
|
<div class="item-content item-hover flex-grow-1">
|
2021-07-07 15:46:09 +01:00
|
|
|
<ion-label>
|
2021-07-22 14:56:04 +01:00
|
|
|
<p class="item-content-date">{{getDate(evento.DateBegin)}}</p>
|
2021-07-07 15:46:09 +01:00
|
|
|
<p class="item-content-title">{{evento.Description}}</p>
|
|
|
|
|
</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
<div (click)="openOptions(evento.ProcessId)" class="item-options d-none cursor-pointer" autoHide="false">
|
|
|
|
|
<ion-icon src="assets/images/icons-menu.svg"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-item>
|
|
|
|
|
<ion-item-options class="members-options" side="end">
|
2021-07-22 14:36:29 +01:00
|
|
|
<ion-item-option class="edit-option" (click)="editAction(evento.ProcessId)">
|
2021-07-07 17:02:19 +01:00
|
|
|
<button class="btn-no-color">
|
|
|
|
|
<ion-icon class="edit" slot="end" src="assets/images/icons-edit.svg" ></ion-icon>
|
2021-07-22 14:36:29 +01:00
|
|
|
</button>
|
2021-07-07 17:02:19 +01:00
|
|
|
</ion-item-option>
|
2021-07-22 14:36:29 +01:00
|
|
|
<ion-item-option class="delete-option" (click)="deleteAction(evento.ProcessId)">
|
2021-07-07 17:02:19 +01:00
|
|
|
<button class="btn-no-color">
|
|
|
|
|
<ion-icon class="delete" name="trash-sharp"></ion-icon>
|
2021-07-22 14:36:29 +01:00
|
|
|
</button>
|
2021-07-07 17:02:19 +01:00
|
|
|
</ion-item-option>
|
2021-07-07 15:46:09 +01:00
|
|
|
</ion-item-options>
|
|
|
|
|
</ion-item-sliding>
|
|
|
|
|
<!-- <div class="item width-100 d-flex"
|
2021-03-15 16:47:16 +01:00
|
|
|
*ngFor="let evento of publicationsEventFolderList"
|
|
|
|
|
(click)="viewPublications(evento)">
|
2021-03-11 15:44:19 +01:00
|
|
|
<div class="item-icon2">
|
|
|
|
|
<ion-icon slot="end" src='assets/images/icons-nav-actions.svg'></ion-icon>
|
|
|
|
|
</div>
|
2021-06-30 15:01:07 +01:00
|
|
|
<div class="item-content flex-grow-1">
|
2021-03-11 15:44:19 +01:00
|
|
|
<ion-label>
|
|
|
|
|
<p class="item-content-date">{{evento.DateBegin}}</p>
|
|
|
|
|
<p class="item-content-title">{{evento.Description}}</p>
|
|
|
|
|
</ion-label>
|
|
|
|
|
</div>
|
2021-06-30 15:48:37 +01:00
|
|
|
<div (click)="openOptions(evento.ProcessId)" class="item-options d-none cursor-pointer" autoHide="false">
|
2021-06-30 15:01:07 +01:00
|
|
|
<ion-icon src="assets/images/icons-menu.svg"></ion-icon>
|
|
|
|
|
</div>
|
2021-07-07 15:46:09 +01:00
|
|
|
</div> -->
|
2021-07-22 14:36:29 +01:00
|
|
|
</div>
|
2020-11-30 16:08:29 +01:00
|
|
|
</div>
|
2021-03-11 15:44:19 +01:00
|
|
|
|
2021-03-12 11:37:26 +01:00
|
|
|
<!-- Right -->
|
2021-05-05 16:08:38 +01:00
|
|
|
<div class="content content-right d-none flex-grow-1 flex-column ">
|
2021-03-16 14:35:52 +01:00
|
|
|
|
2021-07-22 14:36:29 +01:00
|
|
|
<div class="width-100 height-100 d-flex align-center justify-center"
|
2021-03-16 14:35:52 +01:00
|
|
|
*ngIf="(
|
|
|
|
|
desktopComponent.showViewPublication == false &&
|
|
|
|
|
desktopComponent.showAddNewPublication == false &&
|
|
|
|
|
desktopComponent.showPublicationDetail == false &&
|
2021-06-30 16:26:35 +01:00
|
|
|
desktopComponent.showAddActions == false &&
|
|
|
|
|
desktopComponent.showEditActions == false
|
2021-03-30 15:35:22 +01:00
|
|
|
)"><div>Nenhuma ação presidencial selecionada</div></div>
|
2021-07-22 14:36:29 +01:00
|
|
|
|
2021-03-15 12:06:06 +01:00
|
|
|
<!-- View Publication -->
|
2021-07-22 14:36:29 +01:00
|
|
|
<app-view-publications
|
2021-03-12 14:38:55 +01:00
|
|
|
*ngIf="desktopComponent.showViewPublication"
|
|
|
|
|
[folderId]="folderId"
|
2021-03-16 14:35:52 +01:00
|
|
|
class="height-100 d-flex flex-column overflow-hidden flex-grow-1"
|
2021-03-15 12:06:06 +01:00
|
|
|
(addNewPublication)="addNewPublication($event)"
|
2021-03-15 16:47:16 +01:00
|
|
|
(openPublicationDetails)="openPublicationDetails($event)"
|
2021-06-03 14:56:53 +01:00
|
|
|
(goBacktoPublicationDetails)="goBacktoPublicationDetails()"
|
|
|
|
|
(goBackToViewPublications)="goBackToViewPublications()"
|
2021-03-17 09:01:24 +01:00
|
|
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
2021-07-13 16:53:11 +01:00
|
|
|
(getActions)="getActions()"
|
2021-03-12 14:38:55 +01:00
|
|
|
>
|
|
|
|
|
</app-view-publications>
|
|
|
|
|
|
2021-07-22 14:36:29 +01:00
|
|
|
<app-new-publication
|
2021-03-17 09:01:24 +01:00
|
|
|
*ngIf="desktopComponent.showAddNewPublication"
|
2021-03-16 14:35:52 +01:00
|
|
|
class="height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
|
2021-03-15 12:06:06 +01:00
|
|
|
[folderId]="folderId"
|
|
|
|
|
[publicationType]="publicationType"
|
2021-04-08 11:38:36 +01:00
|
|
|
[publicationId]="publicationId"
|
2021-07-22 14:36:29 +01:00
|
|
|
|
2021-03-15 16:47:16 +01:00
|
|
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
2021-06-03 14:56:53 +01:00
|
|
|
(goBacktoPublicationDetails)="goBacktoPublicationDetails()"
|
|
|
|
|
(goBackToViewPublications)="goBackToViewPublications()"
|
2021-07-13 16:53:11 +01:00
|
|
|
(getActions)="getActions()"
|
2021-03-15 12:06:06 +01:00
|
|
|
>
|
|
|
|
|
</app-new-publication>
|
|
|
|
|
|
2021-03-15 16:47:16 +01:00
|
|
|
<app-publication-detail-shared
|
|
|
|
|
*ngIf="desktopComponent.showPublicationDetail"
|
2021-03-16 14:35:52 +01:00
|
|
|
class="height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
|
2021-03-15 16:47:16 +01:00
|
|
|
[publicationId]="publicationId"
|
2021-04-06 10:51:32 +01:00
|
|
|
[folderId]="folderId"
|
2021-03-16 14:35:52 +01:00
|
|
|
(addNewPublication)="addNewPublication($event)"
|
|
|
|
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
2021-06-03 14:56:53 +01:00
|
|
|
(goBacktoPublicationDetails)="goBacktoPublicationDetails()"
|
|
|
|
|
(goBackToViewPublications)="goBackToViewPublications()"
|
2021-07-13 16:53:11 +01:00
|
|
|
(getActions)="getActions()"
|
2021-03-15 16:47:16 +01:00
|
|
|
></app-publication-detail-shared>
|
|
|
|
|
|
2021-03-16 12:14:46 +01:00
|
|
|
<app-new-action
|
|
|
|
|
*ngIf="desktopComponent.showAddActions"
|
2021-03-16 14:35:52 +01:00
|
|
|
class="height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
|
2021-03-16 12:14:46 +01:00
|
|
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
2021-07-13 16:53:11 +01:00
|
|
|
(getActions)="getActions()"
|
2021-03-16 12:14:46 +01:00
|
|
|
></app-new-action>
|
2021-06-30 16:15:54 +01:00
|
|
|
|
2021-06-30 16:18:48 +01:00
|
|
|
<app-edit-action
|
|
|
|
|
*ngIf="desktopComponent.showEditActions"
|
2021-07-01 09:36:17 +01:00
|
|
|
[folderId]="folderId"
|
2021-06-30 16:18:48 +01:00
|
|
|
class="height-100 d-flex flex-column overflow-hidden background-white flex-grow-1"
|
|
|
|
|
(closeDesktopComponent)="closeDesktopComponent($event)"
|
2021-07-01 14:30:44 +01:00
|
|
|
(updateDesktopComponent)="updateDesktopComponent($event)"
|
2021-07-13 16:53:11 +01:00
|
|
|
(getActions)="getActions()"
|
2021-06-30 16:18:48 +01:00
|
|
|
>
|
2021-06-30 16:12:47 +01:00
|
|
|
</app-edit-action>
|
|
|
|
|
|
2020-11-30 16:08:29 +01:00
|
|
|
</div>
|
2021-03-11 15:44:19 +01:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-07-22 14:36:29 +01:00
|
|
|
</ion-content>
|