Files
doneit-web/src/app/pages/agenda/agenda.page.html
T

400 lines
16 KiB
HTML
Raw Normal View History

2021-02-24 09:14:58 +01:00
<ion-header class="ion-no-border bg-blue">
<app-header class="bg-blue"></app-header>
2020-12-15 19:37:42 +01:00
</ion-header>
2021-01-27 13:57:55 +01:00
2021-02-24 09:14:58 +01:00
<ion-content id="timeline-conteiner agenda-container" class="timeline bg-blue">
2021-01-27 13:57:55 +01:00
2021-02-24 09:14:58 +01:00
<div class="d-flex bg-blue container-wrapper">
2021-03-17 20:45:57 +01:00
<div class="calendar-timeline d-flex flex-column height-100 bg-blue">
2021-02-24 09:14:58 +01:00
<div class="calendar-wrapper">
<div class="main-content">
<!-- Toolbar -->
<ion-progress-bar class="calendar-progress-bar" type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
<div>
<!-- Calendar is here -->
<div [ngSwitch]="segment">
<div class="calendar-container" *ngSwitchCase="'Combinada'" [style.height]="calendarHeight">
<ion-row class="ion-justify-content-between calendar-tool-tip">
<ion-row class="ion-align-items-center">
<!-- Move back one screen of the slides -->
<div (click)="back()" class="arrow">
<ion-icon slot="icon-only" src="assets/images/icons-calendar-arrow-left.svg"></ion-icon>
</div>
<!-- Move forward one screen of the slides -->
<h2 class="capitaliseText">{{ viewTitle }}</h2>
<!-- <div class="drop-down">
<ion-icon slot="icon-only" class="arrow-down" src="assets/images/icons-arrow-arrow-down.svg"></ion-icon>
<div class="drop-down-container">
<ul>
<li *ngFor="let month of monthList" (click)="dropDownChangeDate(month.id)" >{{ month.name }}</li>
</ul>
</div>
</div> -->
<!-- Move forward one screen of the slides -->
<div (click)="next()" class="arrow">
<ion-icon slot="icon-only" src="assets/images/icons-calendar-arrow-right.svg"></ion-icon>
</div>
</ion-row>
<ion-row class="ion-align-items-center">
2021-03-18 20:02:44 +01:00
<ion-icon *ngIf="profile == 'mdgpr' " (click)="changeProfile()" class="right-icons d-md-none" src="assets/images/icons-profile-calendar-md.svg"></ion-icon>
<ion-icon *ngIf="profile == 'pr' " (click)="changeProfile()" class="right-icons d-md-none" src="assets/images/icons-profile-calendar-pr.svg"></ion-icon>
2021-02-24 09:14:58 +01:00
<ion-icon (click)="viewEventsToApprove()" class="right-icons" src="assets/images/icons-received-event.svg"></ion-icon>
2021-03-25 15:18:12 +01:00
<ion-icon (click)="clearContact();openAddEvent()" class="right-icons" src="assets/images/icons-add-new-event.svg" ></ion-icon>
2021-02-24 09:14:58 +01:00
</ion-row>
</ion-row>
<table class="custom-calendar-header">
<thead>
<th>S</th>
<th>T</th>
<th>Q</th>
<th>Q</th>
<th>S</th>
<th>S</th>
<th>D</th>
</thead>
</table>
<calendar
class="calendar-component"
[eventSource]="eventSource"
[calendarMode]="calendar.mode"
[currentDate]="calendar.currentDate"
(onEventSelected)="onEventSelected($event)"
(onTitleChanged)="onViewTitleChanged($event)"
(onRangeChanged)="onRangeChanged($event)"
(onCurrentDateChanged)="onCurrentChanged($event)"
queryMode="remote"
startHour="6"
endHour="20"
step="30"
startingDayMonth="1"
noEventsLabel="Sem Eventos"
allDayLabel="Todo o dia"
[monthviewDisplayEventTemplate]="template"
>
</calendar>
<!-- Adding a customized ng-template -->
<ng-template #template let-view="view" let-row="row" let-col="col">
2021-03-19 15:56:58 +01:00
<div [className]="currentDayEventDisplayBorder(view.dates, row*7+col)" class="d-flex justify-center align-center" [class.with-event]="view.dates[row*7+col].events.length">
<div class="day">
{{ view.dates[row*7+col].label }}
</div>
2021-01-28 16:18:10 +01:00
</div>
2021-02-24 09:14:58 +01:00
</ng-template>
2021-01-28 16:18:10 +01:00
</div>
2021-02-24 09:14:58 +01:00
<div class="calendar-container" *ngSwitchCase="'Pessoal'">
<ion-row>
<!-- Move back one screen of the slides -->
<ion-col size="2">
<ion-button fill="clear" (click)="back()">
<ion-icon name="arrow-back" slot="icon-only"></ion-icon>
</ion-button>
</ion-col>
<!-- The title of the calendar in the middle -->
<ion-col size="8" class="ion-text-center">
<h2 class="capitaliseText">{{ viewTitle }}</h2>
</ion-col>
<!-- Move forward one screen of the slides -->
<ion-col size="2">
<ion-button fill="clear" (click)="next()">
<ion-icon name="arrow-forward" slot="icon-only"></ion-icon>
</ion-button>
</ion-col>
</ion-row>
<table class="custom-calendar-header">
<thead>
<th>S</th>
<th>T</th>
<th>Q</th>
<th>Q</th>
<th>S</th>
<th>S</th>
<th>D</th>
</thead>
</table>
<calendar
class="calendar-component"
[eventSource]="eventSource"
[calendarMode]="calendar.mode"
[currentDate]="calendar.currentDate"
(onEventSelected)="onEventSelected($event)"
(onTitleChanged)="onViewTitleChanged($event)"
(onRangeChanged)="onRangeChanged($event)"
(onCurrentDateChanged)="onCurrentChanged($event)"
queryMode="remote"
startHour="6"
endHour="20"
step="30"
startingDayMonth="1"
noEventsLabel="Sem Eventos"
allDayLabel="Todo o dia"
[monthviewDisplayEventTemplate]="template"
>
</calendar>
<!-- (onTimeSelected)="onTimeSelected($event)" -->
2021-01-28 16:18:10 +01:00
2021-02-24 09:14:58 +01:00
<!-- Adding a customized ng-template -->
<ng-template #template let-view="view" let-row="row" let-col="col">
<div [class.with-event]="view.dates[row*7+col].events.length">
{{view.dates[row*7+col].label}}
<div class="indicator-container">
<!-- <div class="event-indicator" *ngFor="let e of view.dates[row*7+col].events"></div> -->
</div>
</div>
</ng-template>
2021-01-28 16:18:10 +01:00
2021-01-27 13:57:55 +01:00
</div>
2021-02-24 09:14:58 +01:00
<div class="calendar-container" *ngSwitchCase="'Oficial'">
<ion-row>
<!-- Move back one screen of the slides -->
<ion-col size="2">
<ion-button fill="clear" (click)="back()">
<ion-icon name="arrow-back" slot="icon-only"></ion-icon>
</ion-button>
</ion-col>
<!-- The title of the calendar in the middle -->
<ion-col size="8" class="ion-text-center">
<h2 class="capitaliseText">{{ viewTitle }}</h2>
</ion-col>
<!-- Move forward one screen of the slides -->
<ion-col size="2">
<ion-button fill="clear" (click)="next()">
<ion-icon name="arrow-forward" slot="icon-only"></ion-icon>
</ion-button>
</ion-col>
</ion-row>
<table class="custom-calendar-header">
<thead>
<th>S</th>
<th>T</th>
<th>Q</th>
<th>Q</th>
<th>S</th>
<th>S</th>
<th>D</th>
</thead>
</table>
<calendar
class="calendar-component"
[eventSource]="eventSource"
[calendarMode]="calendar.mode"
[currentDate]="calendar.currentDate"
(onEventSelected)="onEventSelected($event)"
(onTitleChanged)="onViewTitleChanged($event)"
(onRangeChanged)="onRangeChanged($event)"
(onCurrentDateChanged)="onCurrentChanged($event)"
queryMode="remote"
startHour="6"
endHour="20"
step="30"
startingDayMonth="1"
noEventsLabel="Sem Eventos"
allDayLabel="Todo o dia"
[monthviewDisplayEventTemplate]="template"
>
</calendar>
2021-01-28 16:18:10 +01:00
2021-02-24 09:14:58 +01:00
<!-- Adding a customized ng-template -->
<ng-template #template let-view="view" let-row="row" let-col="col">
<div [class.with-event]="view.dates[row*7+col].events.length">
{{view.dates[row*7+col].label}}
<div class="indicator-container">
<!-- <div class="event-indicator" *ngFor="let e of view.dates[row*7+col].events"></div> -->
</div>
</div>
</ng-template>
</div>
</div>
<div class="calendar-border">
</div>
<!-- Calendar currente date -->
2021-03-17 20:45:57 +01:00
<ion-row class="timeline-header ion-justify-content-between ion-align-items-center currente-date-timelien pb-5">
2021-02-24 09:14:58 +01:00
<ion-row class="timeline-date align-center">
<ion-icon *ngIf="showCalendar" (click)="calendarHeight='75px';showCalendar=false" class="collaps" src="assets/images/icons-collaps-up.svg" ></ion-icon>
2021-03-17 20:45:57 +01:00
<ion-icon *ngIf="!showCalendar" (click)="calendarHeight='333px';showCalendar=true" class="collaps" src="assets/images/icons-collaps-down.svg" ></ion-icon>
2021-02-24 09:14:58 +01:00
</ion-row>
<ion-row class="timeline-date align-center">
<span *ngIf="timelineIsCurrentDate()">Hoje, &nbsp;</span> {{ timelineDate }}
</ion-row>
<ion-row class="filter ion-align-items-center">
<div class="filter-name">{{timelineFilterState}}</div>
<!-- Icon -->
<ion-icon (click)="showTimelineFilterState=true" class="arrow-down" src="assets/images/icons-arrow-arrow-down.svg"></ion-icon>
<!-- List -->
<ul *ngIf="showTimelineFilterState">
<li [class.active]="timelineFilterState == 'Todos' " (click)="timelineFilter('Todos')">Todos</li>
<li [class.active]="timelineFilterState == 'Oficial' " (click)="timelineFilter('Oficial')">Oficial</li>
<li [class.active]="timelineFilterState == 'Pessoal' " (click)="timelineFilter('Pessoal')">Pessoal</li>
</ul>
</ion-row>
2021-01-28 16:18:10 +01:00
</ion-row>
2021-03-17 20:45:57 +01:00
2021-03-18 20:02:44 +01:00
<div class="pb-5 d-none d-md-flex">
2021-03-17 20:45:57 +01:00
<div class="flex-grow-1 text-grey d-flex justify-center align-center">
2021-03-26 10:44:31 +01:00
<div>Própria</div>
2021-03-17 20:45:57 +01:00
</div>
<div class="flex-grow-1 text-black">
<div class="flex-grow-1 text-grey d-flex justify-center align-center">
2021-03-26 10:44:31 +01:00
<div>Presidente da República</div>
2021-03-17 20:45:57 +01:00
</div>
</div>
</div>
2021-02-24 09:14:58 +01:00
</div>
</div>
2021-02-02 15:11:30 +01:00
2021-02-24 09:14:58 +01:00
</div>
2021-03-17 20:48:06 +01:00
<div class="timeline-wrapper flex-grow-1" >
2021-02-24 09:14:58 +01:00
<!-- Progress bar -->
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
<!-- Timeline -->
2021-03-17 20:45:57 +01:00
<div>
2021-03-18 20:02:44 +01:00
<div class="timeline-container d-flex" >
2021-03-26 15:35:23 +01:00
<div [ngSwitch]="view" class="ss-timeline timeline-mobile flex-grow-1 d-md-none" *ngIf="showTimeline">
2021-03-17 20:45:57 +01:00
<mwl-calendar-day-view
*ngSwitchCase="'day'"
[viewDate]="viewDate"
[events]="events"
2021-03-25 15:18:12 +01:00
(eventClicked)="clearContact();eventClicked($event)"
2021-03-17 20:45:57 +01:00
>
</mwl-calendar-day-view>
</div>
2021-03-24 15:10:46 +01:00
<div [ngSwitch]="view" class="fs-timeline flex-grow-1 d-none d-md-block" *ngIf="showTimelineMD">
2021-03-17 20:45:57 +01:00
<mwl-calendar-day-view
*ngSwitchCase="'day'"
[viewDate]="viewDate"
2021-03-18 20:02:44 +01:00
[events]="TimelineMD"
2021-03-25 15:18:12 +01:00
(eventClicked)="clearContact();eventClicked($event)"
2021-03-17 20:45:57 +01:00
>
</mwl-calendar-day-view>
</div>
2021-03-18 20:02:44 +01:00
2021-03-24 15:10:46 +01:00
<div [ngSwitch]="view" class="sd-timeline flex-grow-1 d-none d-md-block timeline-md" *ngIf="showTimelinePR">
2021-03-18 20:02:44 +01:00
<mwl-calendar-day-view
*ngSwitchCase="'day'"
[viewDate]="viewDate"
[events]="TimelinePR"
2021-03-25 15:18:12 +01:00
(eventClicked)="clearContact();eventClicked($event)"
2021-03-18 20:02:44 +01:00
>
</mwl-calendar-day-view>
</div>
2021-02-24 09:14:58 +01:00
</div>
2021-01-28 16:18:10 +01:00
</div>
2021-03-17 20:45:57 +01:00
2021-01-27 13:57:55 +01:00
</div>
2021-02-24 09:14:58 +01:00
</div>
2021-02-24 09:14:58 +01:00
<div class="event-details bg-blue ">
2021-02-24 11:10:51 +01:00
<div *ngIf="(
mobileComponent.showAddNewEvent == false &&
mobileComponent.showEditEvent == false &&
2021-03-25 15:18:12 +01:00
mobileComponent.showEventDetails == false &&
2021-02-26 15:29:05 +01:00
mobileComponent.showEventList == false &&
2021-03-24 15:10:46 +01:00
mobileComponent.showEventToApprove == false &&
2021-03-25 15:18:12 +01:00
mobileComponent.showAttendees == false &&
mobileComponent.showAttendeeModal == false
2021-02-24 11:10:51 +01:00
)
"
2021-03-25 15:18:12 +01:00
class="text-black nothing-to-show">
2021-02-24 11:10:51 +01:00
Nenhum evento selecionado
</div>
2021-02-24 09:14:58 +01:00
<!-- New -->
2021-02-24 10:08:50 +01:00
<app-new-event *ngIf="mobileComponent.showAddNewEvent"
2021-02-24 09:14:58 +01:00
[profile]="profile"
[selectedSegment]=segment
[selectedDate]="eventSelectedDate"
(onAddEvent)="openAddEventDismiss($event)"
2021-03-24 15:10:46 +01:00
(openAttendeesComponent)="openAttendeesComponent($event)"
2021-03-25 15:51:19 +01:00
(cloneAllmobileComponent)="cloneAllmobileComponent()"
2021-03-25 10:50:58 +01:00
[eventAttendees]="contacts"
(clearContact)="clearContact()"
2021-03-25 15:18:12 +01:00
(setContact)="setContact()"
2021-02-24 09:14:58 +01:00
></app-new-event>
<!-- Edit -->
2021-02-24 10:08:50 +01:00
<app-edit-event *ngIf="mobileComponent.showEditEvent"
2021-02-24 09:14:58 +01:00
[profile]="profile"
[selectedSegment]="segment"
[postEvent]="postEvent"
2021-03-25 10:50:58 +01:00
(cloneAllmobileComponent)="cloneAllmobileComponent()"
(clearContact)="clearContact()"
2021-03-25 15:18:12 +01:00
(openAttendeesComponent)="openAttendeesComponent($event)"
(setContact)="setContact()"
2021-02-24 09:14:58 +01:00
></app-edit-event>
2021-02-12 11:08:03 +01:00
2021-02-24 09:14:58 +01:00
<!-- View -->
2021-03-24 15:10:46 +01:00
<app-view-event *ngIf="mobileComponent.showEventDetails"
2021-02-24 09:14:58 +01:00
[profile]="profile"
[eventId]="selectedEventId"
(viewEventDetailDismiss)="viewEventDetailDismiss($event)"
2021-03-25 15:18:12 +01:00
[eventAttendees]="contacts"
2021-02-24 09:14:58 +01:00
></app-view-event>
2021-03-03 10:15:44 +01:00
2021-02-26 15:29:05 +01:00
<app-event-list [class.transparent]="mobileComponent.transparentEventList" *ngIf="mobileComponent.showEventList"
2021-03-29 17:01:11 +01:00
[profile]="profile"
2021-02-26 15:29:05 +01:00
(approveEventDismiss) = "approveEventDismiss($event)"
2021-02-24 11:10:51 +01:00
(cloneAllmobileComponent)="viewEventDetailDismiss($event)"
>
</app-event-list>
2021-03-03 10:15:44 +01:00
<app-approve-event class="d-flex flex-column" *ngIf="mobileComponent.showEventToApprove" [class.transparent]="mobileComponent.transparentEventToApprove"
2021-02-26 15:29:05 +01:00
[serialNumber] = "eventToaprove.serialNumber"
(cloneAllmobileComponent)="viewEventDetailDismiss($event)"
2021-03-25 10:50:58 +01:00
(closeEventToApprove)="closeEventToApprove()"
2021-03-03 10:15:44 +01:00
(AproveEventEditEvent)="AproveEventEditEvent($event)"
2021-03-25 15:18:12 +01:00
[eventAttendees]="contacts"
2021-02-26 15:29:05 +01:00
>
</app-approve-event>
2021-03-29 13:12:35 +01:00
2021-03-24 15:10:46 +01:00
2021-03-29 13:12:35 +01:00
<app-attendee-modal
2021-03-24 15:10:46 +01:00
class="d-flex flex-column height-100"
*ngIf="mobileComponent.showAttendees"
2021-03-25 10:50:58 +01:00
[eventAttendees]="contacts"
2021-03-24 15:10:46 +01:00
(openAttendeesComponent)="openAttendeesComponent($event)"
2021-03-29 13:12:35 +01:00
(openAddEvent)="openAddEvent()"
(GoBackEditOrAdd)="GoBackEditOrAdd()"
(setContact)="setContact($event)"
2021-03-24 15:10:46 +01:00
>
</app-attendee-modal>
2021-02-26 15:29:05 +01:00
2021-01-25 16:18:36 +01:00
</div>
2021-02-24 09:14:58 +01:00
2021-01-22 16:00:37 +01:00
</div>
2021-02-24 09:14:58 +01:00
2021-01-22 16:00:37 +01:00
</ion-content>