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-11-04 15:35:10 +01:00
|
|
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-large-top" style="min-height: 30vh">
|
|
|
|
<ul #nav class="uk-list uk-nav uk-nav-default uk-nav-parent-icon" uk-nav="duration: 400">
|
2022-10-24 16:32:07 +02:00
|
|
|
<ng-template ngFor [ngForOf]="items" let-item>
|
2020-10-31 16:44:19 +01:00
|
|
|
<li [class.uk-active]="isTheActiveMenuItem(item)"
|
2022-11-03 14:50:51 +01:00
|
|
|
[class.uk-parent]="item.items.length > 0">
|
2022-11-04 15:35:10 +01:00
|
|
|
<a [routerLink]="getItemRoute(item)" [title]="item.title"
|
2022-11-03 14:50:51 +01:00
|
|
|
[queryParams]="item.route?item.params:null" [queryParamsHandling]="item.route?queryParamsHandling:null">
|
2022-03-17 12:28:25 +01:00
|
|
|
<div class="uk-flex uk-flex-middle uk-flex-center">
|
2022-10-24 16:32:07 +02:00
|
|
|
<div *ngIf="item.icon && (item.icon.svg || item.icon.name)" class="uk-width-auto">
|
2022-11-04 15:35:10 +01:00
|
|
|
<icon class="menu-icon" [customClass]="item.icon.class" [name]="item.icon.name" ratio="0.9" [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>
|
2022-11-03 14:50:51 +01:00
|
|
|
<span *ngIf="item.items?.length > 0"></span>
|
2020-10-31 16:44:19 +01:00
|
|
|
</div>
|
2019-12-23 13:52:26 +01:00
|
|
|
</a>
|
2022-12-23 16:36:35 +01:00
|
|
|
<ul *ngIf="item.items?.length > 0 && (isBrowser || isTheActiveMenuItem(item))" class="uk-nav-sub">
|
2022-11-03 14:50:51 +01:00
|
|
|
<li *ngFor="let subItem of item.items"
|
|
|
|
[class.uk-active]="isTheActiveMenuItem(item, subItem)">
|
|
|
|
<a [routerLink]="subItem.route?subItem.route:null" [queryParams]="subItem.route?subItem.params:null"
|
2022-11-04 15:35:10 +01:00
|
|
|
[queryParamsHandling]="subItem.route?queryParamsHandling:null" [title]="subItem.title">
|
2022-11-03 14:50:51 +01:00
|
|
|
<span class="uk-text-truncate">{{subItem.title}}</span></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
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>
|