2020-10-31 16:44:19 +01:00
|
|
|
<aside id="sidebar_main">
|
2020-10-12 14:39:42 +02:00
|
|
|
<div id="sidebar_content">
|
2020-10-31 16:44:19 +01:00
|
|
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-xlarge-top">
|
2022-03-17 12:28:25 +01:00
|
|
|
<div *ngIf="items[activeIndex]" class="active" [style]="'--index: ' + activeIndex + '; --size: ' + (items[activeIndex].icon?'40px':0)"></div>
|
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"
|
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">
|
|
|
|
<icon class="menu-icon" [svg]="item.icon" [flex]="true"></icon>
|
|
|
|
</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>
|
|
|
|
<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"
|
2022-03-10 17:34:26 +01:00
|
|
|
[queryParamsHandling]="queryParamsHandling" class="uk-flex uk-flex-center uk-flex-middle uk-flex-wrap">
|
2020-11-01 16:41:02 +01:00
|
|
|
<span [class.uk-display-block]="!open" [innerHTML]="satinizeHTML(specialMenuItem.icon)"></span>
|
2022-03-10 17:34:26 +01:00
|
|
|
<span [ngClass]="specialMenuItem.customClass" class="uk-text-center"
|
|
|
|
[class.uk-margin-small-left]="open" [class.uk-margin-small-top]="!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>
|
2022-03-02 22:48:21 +01: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>
|
2022-03-02 22:48:21 +01:00
|
|
|
</div>-->
|
2019-12-23 13:52:26 +01:00
|
|
|
</aside>
|