Files
doneit-web/src/app/shared/header/header.page.html
T

168 lines
11 KiB
HTML
Raw Normal View History

2021-10-20 17:46:03 +01:00
<div class="header-container">
2021-03-01 15:45:30 +01:00
2021-11-25 15:50:41 +01:00
<div class="main-tab pb-10 ion-toolbar header-color">
2021-03-01 15:45:30 +01:00
2022-02-18 21:08:48 +01:00
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
2022-02-19 10:36:51 +01:00
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="div-search">
2021-10-20 17:46:03 +01:00
<div (click)="openSearch()">
2021-10-25 10:53:01 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-45" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-45" src='assets/images/theme/tribunal/icons-search.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
</div>
2021-08-16 15:29:06 +01:00
</div>
2022-02-24 10:53:32 +01:00
<!-- <div class="div-logo align-center justify-center">
2021-10-21 15:47:00 +01:00
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/gabinetedigital_logo.png' alt='logo'>
2021-10-27 15:10:55 +01:00
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
2022-02-24 10:53:32 +01:00
</div> -->
<div class="div-logo align-center justify-center">
<div class="logo-icon">
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/governoangola_A.png' alt='logo'>
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
</div>
2022-03-09 10:06:25 +01:00
<div *ngIf="ThemeService.currentTheme == 'gov'" class="logo-description d-flex align-center justify-content-center">
2022-02-24 10:53:32 +01:00
<div class="logo-description-content">
<p class="logo-description-text">Presidente da República</p>
<div class="add-line"></div>
<p class="logo-description-text tp-5">GABINETE DIGITAL</p>
</div>
</div>
2022-03-09 10:06:25 +01:00
<div *ngIf="ThemeService.currentTheme == 'default'" class="logo-description d-flex align-center justify-content-center">
<div class="logo-description-content">
<p class="logo-description-text color-white">Presidente da República</p>
<div class="add-line-white"></div>
<p class="logo-description-text tp-5 color-white">GABINETE DIGITAL</p>
</div>
</div>
2021-03-01 15:45:30 +01:00
</div>
2022-02-24 10:53:32 +01:00
2022-02-19 10:36:51 +01:00
<div title="Perfil" class="div-profile cursor-pointer" (click)="openProfile()">
2021-11-09 17:23:39 +01:00
<div *ngIf="this.notificationLength > 0" class="icon-badge">{{notificationLength}}</div>
2021-10-25 10:53:01 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon" src='assets/images/icons-profile.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src='assets/images/theme/gov/icons-profile.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
2021-11-10 11:32:36 +01:00
<!-- <ion-label class="profile-text">{{loggeduser.Profile}}</ion-label> -->
2021-10-20 17:46:03 +01:00
</div>
</div>
2021-07-22 10:21:51 +01:00
2021-10-20 17:46:03 +01:00
<div class="desktop mx-20">
<div class="d-flex justify-space-between align-center">
<div tab="events" class="div-logo height-fit-content">
2022-02-24 10:53:32 +01:00
<div class="logo-icon">
<img *ngIf="ThemeService.currentTheme == 'default' " src='assets/images/logo-no-bg.png' alt='logo'>
<img *ngIf="ThemeService.currentTheme == 'gov' " src='assets/images/theme/gov/governoangola_A.png' alt='logo'>
<img *ngIf="ThemeService.currentTheme == 'tribunal' " src='assets/images/theme/tribunal/tribunal-constitucional.png' alt='logo'>
</div>
<div class="logo-description d-flex align-center justify-content-center">
<div class="logo-description-content">
<p class="logo-description-text">Presidente da República</p>
<div class="add-line"></div>
<p class="logo-description-text">GABINETE DIGITAL</p>
</div>
</div>
2021-03-01 15:45:30 +01:00
</div>
2021-10-20 17:46:03 +01:00
<div class="d-flex flex-1 pr-20 pl-50">
2021-03-01 15:45:30 +01:00
2021-10-20 17:46:03 +01:00
<div class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/events')"
[class.active]="locationPathname() == '/home/events'">
2021-10-21 15:05:37 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-home-active-black.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-home-active-black.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-home-active-black.svg'></ion-icon>
2021-10-21 15:05:37 +01:00
2021-10-20 17:46:03 +01:00
<span>Início</span>
</div>
2021-03-01 15:45:30 +01:00
2022-03-28 15:46:07 +01:00
<div *ngIf="p.userPermission([permissionList.Agenda])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/agenda')"
2021-10-20 17:46:03 +01:00
[class.active]="locationPathname() == '/home/agenda'">
2021-10-21 15:05:37 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-agenda-inactive.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-agenda-inactive.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-agenda-inactive.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
<span>Agenda</span>
</div>
2021-03-01 15:45:30 +01:00
2022-03-28 15:46:07 +01:00
<div *ngIf="p.userPermission([permissionList.Gabinete])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/gabinete-digital')"
2021-10-20 17:46:03 +01:00
[class.active]="locationPathname() == '/home/gabinete-digital'">
2021-10-21 15:05:37 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-home-dk.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-home-dk.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-home-dk.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
<span>Gabinete</span>
</div>
2021-07-22 10:21:51 +01:00
2022-03-28 15:46:07 +01:00
<div *ngIf="p.userPermission([permissionList.Actions])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/publications')"
2021-10-20 17:46:03 +01:00
[class.active]="locationPathname() == '/home/publications'">
2021-10-21 15:05:37 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-a-es-inactive.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-a-es-inactive.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-a-es-inactive.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
<span>Acções</span>
</div>
2021-03-01 15:45:30 +01:00
2022-03-28 15:46:07 +01:00
<div *ngIf="p.userPermission([permissionList.Chat])" class="tab mr-20 d-flex align-center cursor-pointer" (click)="changeRoute('/home/chat')"
2021-10-20 17:46:03 +01:00
[class.active]="locationPathname() == '/home/chat'">
2021-10-21 15:05:37 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" src='assets/images/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" src='assets/images/theme/gov/icons-nav-grupos-inactive-dk-white.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
<span>Chat</span>
2021-08-16 15:29:06 +01:00
</div>
2021-10-20 17:46:03 +01:00
</div>
<div class="header-btns d-flex">
2022-02-19 10:36:51 +01:00
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="mr-20 d-flex align-center cursor-pointer">
2021-10-20 17:46:03 +01:00
<div style="padding-top: 5px;" (click)="openSearch();showSearch=true" *ngIf="!showSearch">
2022-02-19 10:36:51 +01:00
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'default' " class="font-45" src='assets/images/icons-search.svg'></ion-icon>
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'gov' " class="font-45" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-45" src='assets/images/theme/tribunal/icons-search.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
</div>
2022-02-19 10:36:51 +01:00
<button title="Fechar" class="btn-no-color" (click)="closeSearch();showSearch=false;searchSubject=''" *ngIf="showSearch">
2021-10-25 13:54:34 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="font-40" name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="font-40" name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="font-40" name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
2021-10-20 17:46:03 +01:00
</button>
<div *ngIf="showSearch">
<div class="d-flex search-input-container ml-10 justify-between" *ngIf="showSearch">
<div class="icon" (click)="basicSearch()">
<ion-icon class="icon-z" slot="end" name="search"></ion-icon>
</div>
<div class="input-text d-flex ion-align-items-center">
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' (ngModelChange)="dynamicSearch()"
class="search-input text-black" type="search" placeholder="Pesquisar"></ion-input>
</div>
<div class="icon" (click)="clearSearchInput()">
2022-02-19 10:36:51 +01:00
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'default' "name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'gov' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
<ion-icon title="Limpar" *ngIf="ThemeService.currentTheme == 'tribunal' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
2021-10-20 17:46:03 +01:00
</div>
2021-03-05 14:54:10 +01:00
</div>
</div>
2021-06-03 14:48:35 +01:00
</div>
2021-03-02 19:00:55 +01:00
2022-02-19 10:36:51 +01:00
<div title="Perfil" class="div-profile d-flex cursor-pointer" (click)="openProfile()">
2021-08-30 10:24:46 +01:00
2021-10-25 10:53:01 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="icon" src='assets/images/icons-profile.svg'></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src='assets/images/theme/gov/icons-profile.svg'></ion-icon>
2021-10-27 15:10:55 +01:00
<ion-icon *ngIf="ThemeService.currentTheme == 'tribunal' " class="icon" src='assets/images/theme/tribunal/icons-profile.svg'></ion-icon>
2021-10-20 17:46:03 +01:00
<div class="profile-text">
2021-10-25 16:07:23 +01:00
<!-- <ion-label>{{profileLabel(loggeduser.Profile)}}</ion-label> -->
2021-10-20 17:46:03 +01:00
<div *ngIf="this.notificationLength > 0 && !production" class="icon-badge"
style="right: -18px;top: -9px;">
{{notificationLength}}</div>
</div>
2021-08-30 10:24:46 +01:00
2021-10-20 17:46:03 +01:00
</div>
</div>
2021-03-01 15:45:30 +01:00
</div>
2021-10-20 17:46:03 +01:00
</div>
2021-03-01 15:45:30 +01:00
</div>
2021-10-20 17:46:03 +01:00
<div class="header-bottom-line"></div>
2022-02-16 16:53:56 +01:00
<!-- {{ RouteService.history | json }} -->
2021-10-27 15:10:55 +01:00
</div>