2020-10-31 16:44:19 +01:00
|
|
|
<aside id="sidebar_main">
|
2020-10-12 14:39:42 +02:00
|
|
|
<div id="sidebar_content">
|
2021-03-23 18:22:29 +01:00
|
|
|
<a *ngIf="showHeader" class="sidebar_main_header uk-text-center" target="_blank" [class.cursor-default]="!headerUrl" [attr.href]="(headerUrl)?headerUrl:null">
|
2020-10-31 16:44:19 +01:00
|
|
|
<img *ngIf="properties.environment =='beta' || properties.environment =='development'" class="badge"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
|
|
|
[alt]="properties.environment">
|
2020-12-16 15:57:56 +01:00
|
|
|
<div class="logo" [class.portal-logo]="!headerLogoUrl">
|
2021-03-04 13:45:01 +01:00
|
|
|
<img *ngIf="headerLogoUrl" [src]="headerLogoUrl | urlPrefix">
|
2020-12-16 15:57:56 +01:00
|
|
|
<div *ngIf="logoLabel" class="logo-label uk-position-bottom-right">{{logoLabel}}</div>
|
|
|
|
</div>
|
2020-12-01 16:43:12 +01:00
|
|
|
<div *ngIf="headerName" class="uk-disabled uk-text-muted uk-margin-small-left uk-margin-small-right" [class.uk-text-center]="!open" [ngClass]="open?('uk-text-' + headerPosition):''">{{headerName}}</div>
|
2020-10-31 16:44:19 +01:00
|
|
|
</a>
|
|
|
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top">
|
2020-12-21 15:09:23 +01:00
|
|
|
<ul class="uk-list uk-nav-parent-icon" uk-nav>
|
2020-10-31 16:44:19 +01:00
|
|
|
<ng-template ngFor [ngForOf]="items" let-item let-i="index">
|
|
|
|
<li [class.uk-active]="isTheActiveMenuItem(item)"
|
2020-12-18 16:09:38 +01:00
|
|
|
[class.uk-open]="isTheActiveMenuItem(item)"
|
|
|
|
[class.uk-parent]="item.items.length > 1">
|
2021-02-24 15:35:02 +01:00
|
|
|
<a *ngIf="item.items.length <= 1" [routerLink]="(item.route)?item.route:null"
|
2020-10-31 16:44:19 +01:00
|
|
|
[queryParams]=item.params [queryParamsHandling]="queryParamsHandling" class="uk-text-center">
|
|
|
|
<div *ngIf="item.icon && !open" class="uk-margin-auto">
|
|
|
|
<span [innerHTML]="satinizeHTML(item.icon)"></span>
|
|
|
|
</div>
|
2020-11-04 12:09:21 +01:00
|
|
|
<!-- <div *ngIf="!item.icon && !open" class="uk-margin-auto"><i
|
|
|
|
class="material-icons">donut_large</i></div>-->
|
2020-10-31 16:44:19 +01:00
|
|
|
<span [class.uk-text-small]="!open">{{item.title}}</span>
|
2019-12-23 13:52:26 +01:00
|
|
|
</a>
|
2020-10-31 16:44:19 +01:00
|
|
|
<ng-template [ngIf]="item.items.length > 1">
|
2020-12-18 16:09:38 +01:00
|
|
|
<a (click)="item.open = !item.open" class=" uk-parent uk-text-center">
|
2020-10-31 16:44:19 +01:00
|
|
|
<div *ngIf="item.icon && !open" class="menu_icon "><i class="material-icons">{{item.icon}}</i></div>
|
|
|
|
<span [class.uk-text-small]="!open">{{item.title}}</span>
|
|
|
|
|
|
|
|
</a>
|
2020-12-18 16:09:38 +01:00
|
|
|
<ul [class.uk-hidden]="!open" class="uk-nav-sub uk-text-center">
|
2020-10-31 16:44:19 +01:00
|
|
|
<ng-template ngFor [ngForOf]="item.items" let-subItem let-j="index">
|
|
|
|
<li *ngIf="subItem.route" [class.uk-active]="isTheActiveMenuItem(item, subItem)">
|
2021-02-24 15:35:02 +01:00
|
|
|
<a [routerLink]="subItem.route"
|
2020-10-31 16:44:19 +01:00
|
|
|
[queryParams]=subItem.params [queryParamsHandling]="queryParamsHandling">
|
|
|
|
<div *ngIf="subItem.icon"><i class="material-icons">{{subItem.icon}}</i></div>
|
|
|
|
<span>{{subItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
|
|
|
</ng-template>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
2020-06-04 13:21:32 +02:00
|
|
|
</ul>
|
2020-10-31 16:44:19 +01:00
|
|
|
</div>
|
|
|
|
<ng-template [ngIf]="specialMenuItem">
|
|
|
|
<div class="special_section uk-margin-large-top">
|
|
|
|
<ul class="uk-list">
|
|
|
|
<li [class.uk-active]="isTheActiveUrl(specialMenuItem.route)">
|
2020-11-27 11:42:30 +01:00
|
|
|
<a [routerLink]="specialMenuItem.route" [queryParams]="specialMenuItem.params"
|
|
|
|
[queryParamsHandling]="queryParamsHandling" class="uk-text-center">
|
2020-11-01 16:41:02 +01:00
|
|
|
<span [class.uk-display-block]="!open" [innerHTML]="satinizeHTML(specialMenuItem.icon)"></span>
|
2020-10-31 16:44:19 +01:00
|
|
|
<span [ngClass]="specialMenuItem.customClass"
|
2020-11-01 16:41:02 +01:00
|
|
|
[class.uk-margin-small-left]="open"
|
2020-10-31 16:44:19 +01:00
|
|
|
[class.uk-text-small]="!open">{{specialMenuItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-06-04 13:21:32 +02:00
|
|
|
</ng-template>
|
2019-12-23 13:52:26 +01:00
|
|
|
</div>
|
2020-10-12 14:39:42 +02:00
|
|
|
<div *ngIf="!isSmallScreen" id="sidebar_switcher_toggle" class="clickable "
|
2020-10-31 16:44:19 +01:00
|
|
|
(click)="toggleOpen($event)">
|
|
|
|
<span class="uk-position-center" *ngIf="!open" uk-icon="icon:chevron-right; ratio: 1.5"></span>
|
|
|
|
<span class="uk-position-center" *ngIf="open" uk-icon="icon: chevron-left; ratio:1.5"></span>
|
2020-10-12 14:39:42 +02:00
|
|
|
</div>
|
2019-12-23 13:52:26 +01:00
|
|
|
</aside>
|