2020-10-31 16:44:19 +01:00
|
|
|
<aside id="sidebar_main">
|
2020-10-12 14:39:42 +02:00
|
|
|
<div id="sidebar_content">
|
2022-08-05 13:59:08 +02:00
|
|
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top" style="min-height: 30vh">
|
2022-06-16 16:54:50 +02:00
|
|
|
<ul class="uk-list uk-nav uk-nav-default" 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"
|
2022-03-03 16:44:59 +01:00
|
|
|
[title]="item.title"
|
2022-03-02 22:48:21 +01:00
|
|
|
[queryParams]=item.params [queryParamsHandling]="queryParamsHandling">
|
2022-03-17 12:28:25 +01:00
|
|
|
<div class="uk-flex uk-flex-middle uk-flex-center">
|
2022-03-02 22:48:21 +01:00
|
|
|
<div *ngIf="item.icon" class="uk-width-auto">
|
2022-04-07 00:09:49 +02:00
|
|
|
<icon class="menu-icon" [customClass]="item.icon.class" [name]="item.icon.name" [svg]="item.icon.svg" [flex]="true"></icon>
|
2022-03-02 22:48:21 +01:00
|
|
|
</div>
|
2022-03-17 12:28:25 +01:00
|
|
|
<span *ngIf="open || !item.icon" [class.uk-text-small]="!open" class="uk-width-expand uk-text-truncate uk-margin-small-left">{{item.title}}</span>
|
2020-10-31 16:44:19 +01:00
|
|
|
</div>
|
2019-12-23 13:52:26 +01:00
|
|
|
</a>
|
2020-10-31 16:44:19 +01:00
|
|
|
</li>
|
|
|
|
</ng-template>
|
2020-06-04 13:21:32 +02:00
|
|
|
</ul>
|
2020-10-31 16:44:19 +01:00
|
|
|
</div>
|
2022-08-05 13:59:08 +02:00
|
|
|
<ng-template [ngIf]="specialMenuItem">
|
|
|
|
<div class="menu_section uk-margin-xlarge-top">
|
|
|
|
<ul class="uk-list uk-nav uk-nav-default" uk-nav>
|
|
|
|
<li [class.uk-active]="isTheActiveUrl(specialMenuItem.route)">
|
|
|
|
<a [routerLink]="specialMenuItem.route" [queryParams]="specialMenuItem.params"
|
|
|
|
[queryParamsHandling]="queryParamsHandling">
|
|
|
|
<div class="uk-flex uk-flex-middle uk-flex-center">
|
|
|
|
<div *ngIf="specialMenuItem.icon" class="uk-width-auto">
|
|
|
|
<icon class="menu-icon" [customClass]="specialMenuItem.icon.class" [name]="specialMenuItem.icon.name" ratio="1.2" [svg]="specialMenuItem.icon.svg" [flex]="true"></icon>
|
|
|
|
</div>
|
|
|
|
<span *ngIf="open || !specialMenuItem.icon" [class.uk-text-small]="!open" class="uk-width-expand uk-text-truncate uk-margin-small-left">{{specialMenuItem.title}}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
2019-12-23 13:52:26 +01:00
|
|
|
</div>
|
|
|
|
</aside>
|