2021-06-03 11:52:33 +01:00
< ion-header class = "ion-no-border" >
< ion-toolbar class = "header-toolbar" >
< div class = "main-header" >
< div class = "title-content" >
< div class = "middle" >
2023-02-09 11:25:57 +01:00
< ion-label class = "title" > Novo Evento< / ion-label > < br >
< i style = "margin-top: -3px; font-size: 15px;" > Campos marcados com * são obrigatórios< / i >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
2021-06-23 15:39:45 +01:00
< ion-progress-bar class = "calendar-progress-bar" type = "indeterminate" * ngIf = "showLoader" > < / ion-progress-bar >
2021-06-03 11:52:33 +01:00
< / div >
2021-06-03 11:44:32 +01:00
< / ion-toolbar >
< / ion-header >
< ion-content >
2021-06-03 11:52:33 +01:00
< div class = "main-content" >
2021-06-16 15:58:44 +01:00
2021-07-01 14:54:54 +01:00
< div class = "ion-item-container" [ class . input-error ] = " Form ? . get ( ' Subject ' ) ? . invalid & & validateFrom " >
2022-01-20 14:51:34 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" type = "text" placeholder = "Assunto*" [ ( ngModel ) ] = " postEvent . Subject " > < / ion-input >
2021-06-03 11:52:33 +01:00
< / div >
2021-06-28 11:16:21 +01:00
< div * ngIf = "Form && validateFrom" >
< div * ngIf = "Form.get('Subject').invalid " class = "input-errror-message" >
< div * ngIf = "Form.get('Subject').errors?.required" >
2023-02-13 18:57:15 +01:00
2021-06-28 11:16:21 +01:00
< / div >
< div * ngIf = "Form.get('Subject').errors?.minlength" >
O campo deve ter pelo menos 4 caracteres.
< / div >
< / div >
< / div >
2022-05-12 16:54:11 +01:00
< div class = "container-div" ( click ) = " changeAgenda ( ) " >
2021-12-21 15:46:26 +01:00
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class flex-grow-1 justify-center align-center material-inputs " [ class . input-error ] = " Form ? . get ( ' CalendarName ' ) ? . invalid & & validateFrom " >
< mat-form-field appearance = "none" class = "width-100" color = "ion-color-secondary" placeholder = "Selecione agenda" >
2022-05-12 16:54:11 +01:00
< mat-select [ ( value ) ] = " CalendarName " ( selectionChange ) = " changeAgenda ( ) " >
2023-02-09 17:03:26 +01:00
<!-- <mat - option *ngFor="let calendars of _eventService.calendarNamesAry; let i = index" value="{{calendars}}">
2023-03-22 15:31:01 +01:00
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Presidente da República'"> {{ environment.agendaPR}} </div>
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
2023-02-09 17:03:26 +01:00
<div *ngIf="calendars != 'Meu calendario' && calendars != 'Ministro e Director do Gabinete do PR' && calendars != 'Presidente da República'"> Agenda do {{calendars}} </div>
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div> -->
< mat-option * ngFor = "let calendars of eventService.calendarNamesAry" value = "{{calendars.Fullname || calendars}}" >
2023-03-22 15:31:01 +01:00
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > {{ environment.agendaPR}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > {{ environment.agendaVP}} < / div >
2023-02-10 20:16:10 +01:00
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'" > Agenda do {{calendars.Fullname}} < / div >
2023-02-09 17:03:26 +01:00
< div * ngIf = "calendars == 'Meu calendario'" > Minha agenda < / div >
2021-12-21 15:46:26 +01:00
< / mat-option >
2022-01-20 14:51:34 +01:00
2021-12-21 15:46:26 +01:00
< / mat-select >
< / mat-form-field >
< / div >
< / div >
< / div >
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-location.svg" > < / ion-icon >
< / div >
2021-06-28 11:16:21 +01:00
2021-07-01 14:54:54 +01:00
< div class = "ion-input-class flex-grow-1 width-100" [ class . input-error ] = " Form ? . get ( ' Location ' ) ? . invalid & & validateFrom " >
2023-05-26 14:23:37 +01:00
< ion-input autocomplete = "on" autocorrect = "on" spellcheck = "true" type = "text" placeholder = "Localização*" [ ( ngModel ) ] = " postEvent . Location " > < / ion-input >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< / div >
2021-07-12 14:32:43 +01:00
2022-05-12 16:54:11 +01:00
< div class = "container-div" >
2021-06-03 11:52:33 +01:00
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
2021-07-14 09:46:03 +01:00
< div class = "ion-input-class flex-grow-1 justify-center align-center material-inputs " [ class . input-error ] = " Form ? . get ( ' CalendarName ' ) ? . invalid & & validateFrom " >
2021-06-21 14:29:49 +01:00
2021-06-28 11:16:21 +01:00
< mat-form-field appearance = "none" class = "width-100" color = "ion-color-secondary" placeholder = "Selecione agenda" >
2021-06-23 15:39:45 +01:00
< mat-select [ ( value ) ] = " postEvent . CalendarName " >
2022-05-12 16:54:11 +01:00
< mat-option * ngFor = "let calendars of CalendarNamesOptions" value = "{{calendars}}" >
2022-12-16 00:33:13 +01:00
Calendário {{ calendars }}
2021-06-21 14:29:49 +01:00
< / mat-option >
2022-05-12 16:54:11 +01:00
2021-06-21 14:29:49 +01:00
< / mat-select >
< / mat-form-field >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
2021-06-03 11:44:32 +01:00
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
2021-06-21 13:59:45 +01:00
< ion-icon slot = "start" src = "assets/images/icons-description.svg" > < / ion-icon >
2021-06-03 11:52:33 +01:00
< / div >
2021-07-12 14:32:43 +01:00
< div class = "ion-input-class flex-grow-1 justify-center align-center material-inputs" >
2021-06-21 14:29:49 +01:00
2021-06-28 11:16:21 +01:00
< mat-form-field appearance = "none" class = "width-100" placeholder = "Sample Type" required >
2021-06-23 15:39:45 +01:00
<!-- <input matInput type="text" > -->
2021-07-15 08:53:54 +01:00
< mat-select [ ( value ) ] = " postEvent . Category " >
2021-06-21 14:29:49 +01:00
< mat-option value = "Reunião" >
Reunião
< / mat-option >
< mat-option value = "Viagem" >
Viagem
< / mat-option >
< mat-option value = "Conferência" >
Conferência
< / mat-option >
< mat-option value = "Encontro" >
Encontro
< / mat-option >
< / mat-select >
< / mat-form-field >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
2021-12-09 18:53:23 +01:00
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
2021-12-09 18:53:23 +01:00
< div class = "ion-item-class-2 d-flex" >
2021-06-03 11:52:33 +01:00
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
2021-06-28 11:16:21 +01:00
2022-12-15 17:54:01 +01:00
< div class = "ion-input-class flex-grow-1 justify-center align-center material-inputs materia-top" >
2021-06-23 15:39:45 +01:00
2022-07-14 16:35:42 +01:00
< mat-form-field appearance = "none" class = "date-hour-picker" >
2021-07-12 14:32:43 +01:00
< input matInput [ ngxMatDatetimePicker ] = " picker1 "
2022-07-14 16:35:42 +01:00
placeholder = "Data Inicio*"
2021-07-14 09:46:03 +01:00
[ ( ngModel ) ] = " postEvent . StartDate "
2021-06-23 15:39:45 +01:00
[ disabled ] = " disabled "
>
2023-02-06 16:30:11 +01:00
< mat-datepicker-toggle id = "new-inicio" matSuffix [ for ] = " picker1 " > < / mat-datepicker-toggle >
2022-12-15 17:54:01 +01:00
< ngx-mat-datetime-picker # picker1
2021-07-12 14:32:43 +01:00
[ showSpinners ] = " showSpinners "
2021-06-23 15:39:45 +01:00
[ showSeconds ] = " showSeconds "
2021-07-12 14:32:43 +01:00
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
2021-06-23 15:39:45 +01:00
[ stepSecond ] = " stepSecond "
[ touchUi ] = " touchUi "
2021-06-24 15:42:59 +01:00
>
2021-06-21 14:29:49 +01:00
< / ngx-mat-datetime-picker >
< / mat-form-field >
2021-06-17 13:58:56 +01:00
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
2021-07-12 14:32:43 +01:00
<!--
2021-06-28 11:16:21 +01:00
[className]="Form?.get('Subject')?.invalid ? 'input - error ion - input - class flex - grow - 1' : 'ion - input - class ion - input - class flex - grow - 1' "
-->
2021-12-09 18:53:23 +01:00
< div ( click ) = " openFim ( ) " class = "ion-input-class flex-grow-1 justify-center align-center materia-top" [ class . input-error ] = " Form ? . get ( ' Date ' ) ? . invalid & & validateFrom " >
2021-06-23 15:39:45 +01:00
2022-07-14 16:35:42 +01:00
< mat-form-field appearance = "none" class = "date-hour-picker" >
2021-07-12 14:32:43 +01:00
< input matInput [ ngxMatDatetimePicker ] = " fim "
2022-07-14 16:35:42 +01:00
placeholder = "Data de fim*"
2021-07-14 09:46:03 +01:00
[ ( ngModel ) ] = " postEvent . EndDate "
2021-06-23 15:39:45 +01:00
[ disabled ] = " disabled "
2022-12-15 17:54:01 +01:00
[ min ] = " postEvent . StartDate "
2021-06-23 15:39:45 +01:00
>
2023-02-06 16:30:11 +01:00
< mat-datepicker-toggle id = "new-fim" matSuffix [ for ] = " fim " > < / mat-datepicker-toggle >
2021-07-12 14:32:43 +01:00
< ngx-mat-datetime-picker # fim
[ showSpinners ] = " showSpinners "
2021-06-23 15:39:45 +01:00
[ showSeconds ] = " showSeconds "
2021-07-12 14:32:43 +01:00
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
2021-06-23 15:39:45 +01:00
[ stepSecond ] = " stepSecond "
2021-06-24 15:42:59 +01:00
>
2021-06-21 14:29:49 +01:00
< / ngx-mat-datetime-picker >
< / mat-form-field >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2022-12-16 18:16:19 +01:00
<!-- <div class="container - div width - 100">
2021-06-03 11:52:33 +01:00
<div class="ion - item - class - 2 d - flex">
<div class="ion - icon - class">
<ion - icon slot="start" src="assets/images/icons - refresh.svg"></ion - icon>
</div>
2021-07-14 09:46:03 +01:00
<div class="ion - input - class flex - grow - 1" [class.input - error]="Form?.get('dateOccurrence')?.invalid && validateFrom ">
2021-06-21 14:29:49 +01:00
2021-06-28 11:16:21 +01:00
<mat - form - field appearance="none" floatLabel="never" class="width - 100" value="false" interface="action - sheet" required>
2021-07-12 14:32:43 +01:00
<mat - select placeholder="Selecione repetição*"
[(ngModel)]="postEvent.EventRecurrence.Type"
(ngModelChange)="onSelectedRecurringChanged($event)">
2021-08-25 11:51:02 +01:00
<mat - option
2022-05-12 16:54:11 +01:00
*ngFor="let recurring of recurringTypes" value="{{recurring.Code}}"
2021-07-12 14:32:43 +01:00
>
2022-06-06 15:28:27 +01:00
{{recurring.Description}}
2021-08-25 11:51:02 +01:00
</mat - option>
2021-06-21 14:29:49 +01:00
</mat - select>
</mat - form - field>
2021-06-03 11:52:33 +01:00
</div>
</div>
2022-12-16 18:16:19 +01:00
</div> -->
2021-07-12 14:32:43 +01:00
2021-07-12 15:48:25 +01:00
< div * ngIf = "postEvent.EventRecurrence.Type != '-1'" class = "container-div width-100" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-calendar.svg" > < / ion-icon >
< / div >
< div ( click ) = " openLastOccurrence ( ) " class = "ion-input-class flex-grow-1" >
< mat-form-field class = "date-hour-picker" >
< input matInput [ ngxMatDatetimePicker ] = " occurrrence "
placeholder = "Choose a date"
2021-08-25 15:23:30 +01:00
[ ( ngModel ) ] = " postEvent . EventRecurrence . LastOccurrence "
2021-07-12 15:48:25 +01:00
[ disabled ] = " disabled "
2022-07-06 09:12:57 +01:00
[ min ] = " postEvent . EndDate "
2021-07-12 15:48:25 +01:00
>
< mat-datepicker-toggle id = "last-occurrence" matSuffix [ for ] = " occurrrence " > < / mat-datepicker-toggle >
< ngx-mat-datetime-picker # occurrrence
[ showSpinners ] = " showSpinners "
[ showSeconds ] = " showSeconds "
[ stepHour ] = " stepHour " [ stepMinute ] = " stepMinute "
[ stepSecond ] = " stepSecond "
[ touchUi ] = " touchUi "
>
< / ngx-mat-datetime-picker >
< / mat-form-field >
< / div >
< / div >
< / div >
2021-07-01 14:54:54 +01:00
2021-07-12 15:48:25 +01:00
< div class = "container-div width-100" >
2021-06-03 11:52:33 +01:00
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-person.svg" > < / ion-icon >
< / div >
2021-10-27 14:42:10 +01:00
< div class = "ion-input-class-no-height flex-grow-1 cursor-pointer" ( click ) = " addParticipants ( ) " [ class . input-error ] = " Form ? . get ( ' participantes ' ) ? . invalid & & validateFrom " >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< div class = "list-people" >
< ion-item lines = "none" >
< ion-list >
2021-06-25 10:52:02 +01:00
< ion-label * ngIf = "taskParticipants.length ==0" class = "list-people-title" > Adicionar intervenientes*< / ion-label >
2021-06-03 11:52:33 +01:00
< ion-label * ngFor = "let participant of taskParticipants" > {{participant.Name}}< / ion-label >
< / ion-list >
< / ion-item >
< / div >
2021-10-27 14:42:10 +01:00
< div class = "add-people cursor-pointer" >
2021-10-22 15:43:57 +01:00
< 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 >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " slot = "start" src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg" > < / ion-icon >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-people-cc.svg" > < / ion-icon >
< / div >
2021-10-27 14:42:10 +01:00
< div class = "ion-input-class-no-height flex-grow-1 cursor-pointer" [ class . input-error ] = " Form ? . get ( ' participantes ' ) ? . invalid & & validateFrom " ( click ) = " addParticipantsCc ( ) " >
2021-06-03 11:52:33 +01:00
< div class = "list-people" >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< ion-item lines = "none" >
< ion-list >
< ion-label * ngIf = "taskParticipantsCc.length ==0" class = "list-people-title" > Com conhecimento< / ion-label >
< ion-label * ngFor = "let participant of taskParticipantsCc" > {{participant.Name}}< / ion-label >
< / ion-list >
< / ion-item >
< / div >
2021-10-27 14:42:10 +01:00
< div class = "add-people cursor-pointer" >
2021-10-22 15:43:57 +01:00
< 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 >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " slot = "start" src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg" > < / ion-icon >
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< div class = "container-div" >
< div class = "ion-item-class-2 d-flex" >
< div class = "ion-icon-class" >
< ion-icon slot = "start" src = "assets/images/icons-description.svg" > < / ion-icon >
< / div >
< div class = "ion-input-class-no-height flex-grow-1" >
2021-07-12 14:32:43 +01:00
2023-02-17 15:23:43 +01:00
< ion-textarea class = "heigh-200" autocomplete = "on" autocorrect = "on" spellcheck = "true" [ ( ngModel ) ] = " postEvent . Body . Text " placeholder = "Detalhes" autoGrow = "true" > < / ion-textarea >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< / div >
< / div >
< / div >
2021-07-12 14:32:43 +01:00
2021-06-03 11:52:33 +01:00
< div class = "ion-item-container-no-border cursor-pointer" ( click ) = " getDoc ( ) " >
< ion-label >
< div class = "attach-icon" >
2021-10-26 17:22:21 +01:00
< 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 >
2022-10-20 15:45:10 +01:00
< ion-icon * ngIf = "ThemeService.currentTheme == 'doneIt' " src = "assets/images/theme/{{ThemeService.currentTheme}}/icons-attach-doc.svg" > < / ion-icon >
2021-06-03 11:52:33 +01:00
< / div >
< div class = "attach-document" >
< ion-label > Adicionar documentos< / ion-label >
2021-07-12 14:32:43 +01:00
< / div >
2021-06-03 11:52:33 +01:00
< / ion-label >
< / div >
2021-07-12 14:32:43 +01:00
< div class = "list " * ngFor = "let document of documents; let i = index" >
2021-06-03 11:52:33 +01:00
< ion-list >
< ion-item >
< ion-label >
2021-07-12 14:32:43 +01:00
< p class = "d-flex ion-justify-content-between" >
< span class = "attach-title-item" > {{document.Assunto}}< / span >
< span class = "app-name" > {{document.appName}}< / span >
2021-06-03 11:52:33 +01:00
< span class = "close-button text-black cursor-pointer" ( click ) = " removeAttachment ( i ) " >
< ion-icon class = "font-20" src = "assets/images/icons-delete-25.svg" > < / ion-icon >
< / span >
2021-07-12 14:32:43 +01:00
< / p >
2021-08-16 10:28:27 +01:00
< p > < span class = "span-left" > {{document.EntidadeOrganicaNome}}< / span > < span class = "span-right" > {{document.Data | date: 'dd-MM-yyyy HH:mm'}} < / span > < / p >
2021-06-03 11:52:33 +01:00
< / ion-label >
< / ion-item >
< / ion-list >
2021-07-12 14:32:43 +01:00
< / div >
< / div >
2021-06-03 11:44:32 +01:00
< / ion-content >
2023-03-16 11:45:59 +01:00
< ion-footer class = "ion-no-border" >
< ion-toolbar class = "footer-toolbar" >
2021-06-03 11:52:33 +01:00
< ion-buttons slot = "start" >
2021-08-24 14:37:09 +01:00
< button class = "btn-cancel" fill = "clear" color = "#061b52" ( click ) = " close ( ) " >
2021-06-03 11:52:33 +01:00
< ion-label > Cancelar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2021-06-03 11:52:33 +01:00
< / ion-buttons >
< ion-title > < / ion-title >
< ion-buttons slot = "end" >
2021-08-24 14:37:09 +01:00
< button class = "btn-ok" fill = "clear" color = "#fff" ( click ) = " save ( ) " >
2023-02-27 09:34:36 +01:00
< ion-label > Gravar< / ion-label >
2021-08-24 14:37:09 +01:00
< / button >
2021-06-03 11:52:33 +01:00
< / ion-buttons >
< / ion-toolbar >
2021-07-12 14:32:43 +01:00
< / ion-footer >