2026-11-03 13:06:00 +06:00
|
|
|
<div class="layout-topbar"
|
|
|
|
|
[ngClass]="{
|
|
|
|
|
'banner-activeForTop': apiService.isSelService,
|
|
|
|
|
'banner-inactiveForTop': !apiService.isSelService,
|
|
|
|
|
'ss-topbar-scrolled': apiService.isSelService && isScrolled }">
|
|
|
|
|
@if (apiService.isSelService !== true) {
|
|
|
|
|
<a class="layout-menu-button" href="#" (click)="appMain.onMenuButtonClick($event)">
|
|
|
|
|
<i class="pi pi-bars"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<span class="topbar-page-name">{{apiService.selectedMenuName}}</span>
|
|
|
|
|
@if (apiService.selectedMenuName != 'Dashboard' && apiService.selectedMenuName != 'Landing Page') {
|
|
|
|
|
<a kendoTooltip
|
|
|
|
|
title="Bookmark this page"
|
|
|
|
|
class="layout-menu-button"
|
|
|
|
|
style="margin-left: 5px;"
|
|
|
|
|
(click)="onBookMark()">
|
|
|
|
|
<i [ngClass]="this.menuService?.clickedMenuItem?.isBookmarked ? 'pi pi-bookmark-fill' : 'pi pi-bookmark'"></i>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
<ul class="topbar-menu fadeInDown" [ngClass]="{'topbar-menu-visible': appMain.topbarMenuActive}">
|
|
|
|
|
@if (app.profileMode==='popup'||appMain.isHorizontal()) {
|
|
|
|
|
<li #profile class="user-profile"
|
|
|
|
|
[ngClass]="{'active-topmenuitem':appMain.activeTopbarItem === profile}">
|
|
|
|
|
<a kendoTooltip title="User" href="#" (click)="appMain.onTopbarItemClick($event,profile)">
|
|
|
|
|
<i class="topbar-icon pi pi-user"></i>
|
|
|
|
|
<span class="topbar-item-name">{{loginName}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="fadeInDown" style="width:250px;border-radius:20px;">
|
|
|
|
|
<li role="menuitem">
|
|
|
|
|
<a>
|
|
|
|
|
<i class="topbar-icon pi pi-user"></i>
|
|
|
|
|
<span>{{loginName}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
@if (!apiService.isSSO) {
|
|
|
|
|
<li role="menuitem">
|
|
|
|
|
<a href="#" [routerLink]="'/authentication/change-password'">
|
|
|
|
|
<i class="pi pi-key"></i>
|
|
|
|
|
<span>Change Password</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (this.swithtypeName != undefined) {
|
|
|
|
|
<li role="menuitem">
|
|
|
|
|
<a href="#" (click)="SwitchUser()">
|
|
|
|
|
<i class="pi pi-sign-out"></i>
|
|
|
|
|
<span>{{swithtypeName}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (!apiService.isSSO) {
|
|
|
|
|
<li role="menuitem">
|
|
|
|
|
<a href="#" (click)="logout()">
|
|
|
|
|
<i class="pi pi-sign-out"></i>
|
|
|
|
|
<span>Sign Out</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
<li #messages [ngClass]="{'active-topmenuitem':appMain.activeTopbarItem === messages}">
|
|
|
|
|
<a kendoTooltip title="Bookmark list" href="#" (click)="appMain.onTopbarItemClick($event,messages)">
|
|
|
|
|
<i class="topbar-icon pi pi-book"></i>
|
|
|
|
|
<span class="topbar-item-name">Bookmark List</span>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="fadeInDown" style="height:350px;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:#888 transparent;width:350px;border-radius:20px;">
|
|
|
|
|
@for (bookmark of this.menuService.bookMarkpages; track bookmark) {
|
|
|
|
|
<li role="menuitem" class="bookmarkItemList">
|
|
|
|
|
<a (click)="bookMarkedLinkClicked(bookmark)" [routerLink]="bookmark.link" class="bookmarktag">
|
|
|
|
|
<img style="height:20px;width:20px;" src="assets/hrm-icons/cursor2.png" />
|
|
|
|
|
<span>{{bookmark.description}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li #notifications [ngClass]="{'active-topmenuitem':appMain.activeTopbarItem === notifications}">
|
|
|
|
|
<a kendoTooltip title="Pending Jobs" href="#" (click)="appMain.onTopbarItemClick($event,notifications)">
|
|
|
|
|
<i class="topbar-icon pi pi-bell"></i>
|
|
|
|
|
<span class="topbar-item-name">Notifications</span>
|
|
|
|
|
<span class="topbar-badge">{{pendingJobCount}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="fadeInDown" style="height:350px;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:#888 transparent;width:350px;border-radius:20px;">
|
|
|
|
|
@for (pendingJob of pendingJobDTOs; track pendingJob) {
|
|
|
|
|
<li role="menuitem" style="border-bottom:1px solid #c4c4c4;">
|
|
|
|
|
<div class="grid pendingJobItemList" [ngStyle]="{'cursor': pendingJob.link ? 'pointer' : 'default'}">
|
|
|
|
|
<div class="col-2" style="display:flex;justify-content:center;align-items:center;">
|
|
|
|
|
<img style="height:20px;width:20px;" src="assets/hrm-icons/cursor2.png" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-10">
|
|
|
|
|
<a (click)="ApprovePendingJob(pendingJob)" class="pendingJobTag">
|
|
|
|
|
<span>{{pendingJob.objectDescription}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
2026-11-09 15:57:13 +06:00
|
|
|
<!-- li items float right, so this one (last in DOM) sits LEFT of the Pending Jobs icon -->
|
|
|
|
|
@if (payrollTypeName) {
|
|
|
|
|
<li class="topbar-payroll-type-item">
|
|
|
|
|
<span class="topbar-payroll-type" kendoTooltip title="Current payroll type">{{payrollTypeName}}</span>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
2026-11-03 13:06:00 +06:00
|
|
|
</ul>
|
|
|
|
|
<a class="layout-menus">
|
|
|
|
|
@if (apiService.menuItems !== null) {
|
|
|
|
|
<kendo-menu class="topbar-menu-bar" [items]="apiService.menuItems"></kendo-menu>
|
|
|
|
|
}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
@if (apiService.isSelService === true) {
|
|
|
|
|
<div class="ss-topbar-left">
|
|
|
|
|
<a href="#" class="ss-logo-link">
|
|
|
|
|
<img id="layout-topbar-logo" [src]="appMain.getImagePath()" alt="logo" class="ss-logo" />
|
|
|
|
|
</a>
|
|
|
|
|
<span class="ss-page-title">{{apiService.selectedMenuName}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<nav class="ss-topbar-center" #navBar>
|
|
|
|
|
<ul class="ss-nav-list">
|
|
|
|
|
@for (item of apiService.menuItems; track item) {
|
|
|
|
|
<li class="ss-nav-item"
|
|
|
|
|
[class.ss-nav-item--active]="activeMenu === item.menuKey"
|
|
|
|
|
(mouseenter)="openMenu(item.menuKey)"
|
|
|
|
|
(click)="$event.stopPropagation()">
|
|
|
|
|
<a class="ss-nav-link" [routerLink]="item.routerLink ? item.routerLink : null"
|
|
|
|
|
(click)="item.items ? toggleMenu($event, item.menuKey) : closeAllMenus()"
|
|
|
|
|
(click)="$event.stopPropagation()">
|
|
|
|
|
<span>{{item.label}}</span>
|
|
|
|
|
@if (item.items?.length) {
|
|
|
|
|
<svg class="ss-nav-chevron"
|
|
|
|
|
width="12" height="12" viewBox="0 0 24 24" fill="none"
|
|
|
|
|
stroke="currentColor" stroke-width="2.5"
|
|
|
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<polyline points="6 9 12 15 18 9"/>
|
|
|
|
|
</svg>
|
|
|
|
|
}
|
|
|
|
|
</a>
|
|
|
|
|
@if (item.items?.length && activeMenu === item.menuKey) {
|
|
|
|
|
<div class="ss-submenu"
|
|
|
|
|
(mouseenter)="openMenu(item.menuKey)"
|
|
|
|
|
(mouseleave)="scheduleClose()">
|
|
|
|
|
@for (sub of item.items; track sub) {
|
|
|
|
|
@if (sub.items?.length) {
|
|
|
|
|
<div class="ss-submenu-item ss-submenu-item--parent"
|
|
|
|
|
[class.ss-submenu-item--open]="activeSubMenu === sub.menuKey"
|
|
|
|
|
(mouseenter)="openSubMenu(sub.menuKey)"
|
|
|
|
|
(mouseleave)="closeSubMenu()">
|
|
|
|
|
<span class="ss-submenu-link">
|
|
|
|
|
@if (sub.icon) {
|
|
|
|
|
<i [class]="sub.icon + ' ss-sub-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{sub.label}}</span>
|
|
|
|
|
<svg class="ss-sub-chevron" width="12" height="12" viewBox="0 0 24 24"
|
|
|
|
|
fill="none" stroke="currentColor" stroke-width="2.5"
|
|
|
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<polyline points="9 18 15 12 9 6"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</span>
|
|
|
|
|
@if (activeSubMenu === sub.menuKey) {
|
|
|
|
|
<div class="ss-submenu ss-submenu--nested"
|
|
|
|
|
>
|
|
|
|
|
@for (child of sub.items; track child) {
|
|
|
|
|
<a class="ss-submenu-link"
|
|
|
|
|
[routerLink]="child.routerLink"
|
|
|
|
|
(click)="closeAllMenus()">
|
|
|
|
|
@if (child.icon) {
|
|
|
|
|
<i [class]="child.icon + ' ss-sub-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{child.label}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
@if (child.dividerAfter) {
|
|
|
|
|
<div class="ss-submenu-divider" role="separator"></div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (!sub.items?.length) {
|
|
|
|
|
<a class="ss-submenu-link ss-submenu-item"
|
|
|
|
|
[routerLink]="sub.routerLink"
|
|
|
|
|
(click)="closeAllMenus()">
|
|
|
|
|
@if (sub.icon) {
|
|
|
|
|
<i [class]="sub.icon + ' ss-sub-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{sub.label}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
@if (sub.dividerAfter) {
|
|
|
|
|
<div class="ss-submenu-divider" role="separator"></div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
<div class="ss-topbar-right">
|
|
|
|
|
<button class="ss-icon-btn ss-hamburger ss-show-sm"
|
|
|
|
|
(click)="toggleMobileMenu($event)" title="Menu">
|
|
|
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
|
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<line x1="3" y1="6" x2="21" y2="6"/>
|
|
|
|
|
<line x1="3" y1="12" x2="21" y2="12"/>
|
|
|
|
|
<line x1="3" y1="18" x2="21" y2="18"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="ss-icon-btn-wrap">
|
|
|
|
|
<button class="ss-icon-btn" kendoTooltip title="Bookmarks"
|
|
|
|
|
(click)="appMain.onTopbarItemClick($event, ssBookmarks)" #ssBookmarks>
|
|
|
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
|
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
@if (appMain.activeTopbarItem === ssBookmarks) {
|
|
|
|
|
<ul class="ss-dd ss-notif-dd fadeInDown">
|
|
|
|
|
<li class="ss-dd-header"><span class="ss-dd-title">Bookmarks</span></li>
|
|
|
|
|
@for (b of menuService.bookMarkpages; track b) {
|
|
|
|
|
<li class="ss-dd-item">
|
|
|
|
|
<div class="ss-dd-icon ss-dd-icon--bookmark">
|
|
|
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/></svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-dd-body">
|
|
|
|
|
<a [routerLink]="b.link" (click)="bookMarkedLinkClicked(b)" class="ss-dd-link">{{b.description}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (!menuService.bookMarkpages?.length) {
|
|
|
|
|
<li class="ss-dd-empty">No bookmarks yet</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-icon-btn-wrap">
|
|
|
|
|
<button class="ss-icon-btn" kendoTooltip title="Pending Approvals"
|
|
|
|
|
(click)="appMain.onTopbarItemClick($event, ssPending)" #ssPending>
|
|
|
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<path d="M5 22h14"/><path d="M5 2h14"/>
|
|
|
|
|
<path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"/>
|
|
|
|
|
<path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"/>
|
|
|
|
|
</svg>
|
|
|
|
|
@if (pendingJobCount > 0) {
|
|
|
|
|
<span class="ss-badge">{{pendingJobCount}}</span>
|
|
|
|
|
}
|
|
|
|
|
</button>
|
|
|
|
|
@if (appMain.activeTopbarItem === ssPending) {
|
|
|
|
|
<ul class="ss-dd ss-notif-dd fadeInDown" style="width:340px">
|
|
|
|
|
<li class="ss-dd-header">
|
|
|
|
|
<span class="ss-dd-title">Pending Approvals</span>
|
|
|
|
|
@if (pendingJobCount > 0) {
|
|
|
|
|
<span class="ss-dd-count">{{pendingJobCount}}</span>
|
|
|
|
|
}
|
|
|
|
|
</li>
|
|
|
|
|
@for (j of pendingJobDTOs; track j) {
|
|
|
|
|
<li class="ss-dd-item"
|
|
|
|
|
[style.cursor]="j.link ? 'pointer' : 'default'"
|
|
|
|
|
(click)="ApprovePendingJob(j)">
|
|
|
|
|
<div class="ss-dd-icon ss-dd-icon--pending">
|
|
|
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-dd-body"><div class="ss-dd-desc">{{j.objectDescription}}</div></div>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (!pendingJobDTOs?.length) {
|
|
|
|
|
<li class="ss-dd-empty">No pending approvals</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-icon-btn-wrap">
|
|
|
|
|
<button class="ss-icon-btn" kendoTooltip title="Notifications" (click)="appMain.onTopbarItemClick($event, ssNotif)" #ssNotif>
|
|
|
|
|
<span style="position:relative;display:inline-flex;">
|
|
|
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
|
|
|
|
|
<path d="M13.73 21a2 2 0 0 1-3.46 0"/>
|
|
|
|
|
</svg>
|
|
|
|
|
<span style="position:absolute;top:-3px;right:-3px;width:8px;height:8px;background:#e53935;border-radius:50%;"></span>
|
|
|
|
|
</span>
|
|
|
|
|
@if (notificationCount > 0) {
|
|
|
|
|
<span class="ss-badge">{{notificationCount}}</span>
|
|
|
|
|
}
|
|
|
|
|
</button>
|
|
|
|
|
@if (appMain.activeTopbarItem === ssNotif) {
|
|
|
|
|
<ul class="ss-dd ss-notif-dd fadeInDown">
|
|
|
|
|
<li class="ss-dd-header"><span class="ss-dd-title">Notifications</span></li>
|
|
|
|
|
@for (n of companyNotification; track n) {
|
|
|
|
|
<li class="ss-dd-item"
|
|
|
|
|
[class.ss-dd-item--new]="n.new === true"
|
|
|
|
|
[style.cursor]="n.notificationUrl ? 'pointer' : 'default'"
|
|
|
|
|
(click)="n.notificationUrl ? openNotifLink(n.notificationUrl) : null">
|
|
|
|
|
<div class="ss-dd-icon" [ngClass]="n.type===1 ? 'ss-dd-icon--news' : 'ss-dd-icon--notif'">
|
|
|
|
|
@if (n.type===1) {
|
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"/><path d="M18 14h-8"/><path d="M15 18h-5"/><path d="M10 6h8v4h-8V6z"/></svg>
|
|
|
|
|
}
|
|
|
|
|
@if (n.type!==1) {
|
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-dd-body">
|
|
|
|
|
<div class="ss-dd-desc">{{n.description}}</div>
|
|
|
|
|
@if (n.sentTime) {
|
|
|
|
|
<div class="ss-dd-time">{{getRelativeTime(n.sentTime)}}</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
@if (n.new===true) {
|
|
|
|
|
<div class="ss-dd-dot"></div>
|
|
|
|
|
}
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-icon-btn-wrap">
|
|
|
|
|
<button class="ss-icon-btn" kendoTooltip title="User"
|
|
|
|
|
(click)="appMain.onTopbarItemClick($event, ssProfile)" #ssProfile>
|
|
|
|
|
<div class="ss-avatar"><i class="pi pi-user"></i></div>
|
|
|
|
|
</button>
|
|
|
|
|
@if (appMain.activeTopbarItem === ssProfile) {
|
|
|
|
|
<ul class="ss-dd ss-user-dd fadeInDown">
|
|
|
|
|
<li class="ss-dd-header">
|
|
|
|
|
<i class="pi pi-user"></i><span>{{loginName}}</span>
|
|
|
|
|
</li>
|
|
|
|
|
@if (!apiService.isSSO) {
|
|
|
|
|
<li>
|
|
|
|
|
<a [routerLink]="'/authentication/change-password'" class="ss-dd-action">
|
|
|
|
|
<i class="pi pi-key"></i><span>Change Password</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (swithtypeName != undefined) {
|
|
|
|
|
<li>
|
|
|
|
|
<a (click)="SwitchUser()" class="ss-dd-action">
|
|
|
|
|
<i class="pi pi-sync"></i><span>{{swithtypeName}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
@if (!apiService.isSSO) {
|
|
|
|
|
<li>
|
|
|
|
|
<a (click)="logout()" class="ss-dd-action">
|
|
|
|
|
<i class="pi pi-sign-out"></i><span>Sign Out</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if (apiService.isSelService && mobileMenuOpen) {
|
|
|
|
|
<div class="ss-mob-overlay"(click)="closeMobileMenu()"></div>
|
|
|
|
|
}
|
|
|
|
|
@if (apiService.isSelService && mobileMenuOpen) {
|
|
|
|
|
<div class="ss-mob-panel"
|
|
|
|
|
(click)="$event.stopPropagation()">
|
|
|
|
|
<div class="ss-mob-panel-header">
|
|
|
|
|
<span>Menu</span>
|
|
|
|
|
<button class="ss-mob-close" (click)="closeMobileMenu()">
|
|
|
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ss-mob-panel-body">
|
|
|
|
|
@for (item of apiService.menuItems; track item) {
|
|
|
|
|
@if (item.items?.length) {
|
|
|
|
|
<div class="ss-mob-item">
|
|
|
|
|
<button class="ss-mob-link ss-mob-link--parent"
|
|
|
|
|
(click)="toggleMobSection(item.menuKey)"
|
|
|
|
|
[class.ss-mob-link--open]="mobOpenSection === item.menuKey">
|
|
|
|
|
<span>{{item.label}}</span>
|
|
|
|
|
<svg class="ss-mob-chevron" width="14" height="14" viewBox="0 0 24 24" fill="none"
|
|
|
|
|
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<polyline points="6 9 12 15 18 9"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
@if (mobOpenSection === item.menuKey) {
|
|
|
|
|
<div class="ss-mob-children">
|
|
|
|
|
@for (sub of item.items; track sub) {
|
|
|
|
|
@if (sub.items?.length) {
|
|
|
|
|
<div class="ss-mob-sub-wrap">
|
|
|
|
|
<button class="ss-mob-sublink ss-mob-sublink--parent"
|
|
|
|
|
(click)="toggleMobSubSection(sub.menuKey)"
|
|
|
|
|
[class.ss-mob-sublink--open]="mobOpenSubSection === sub.menuKey">
|
|
|
|
|
@if (sub.icon) {
|
|
|
|
|
<i [class]="sub.icon + ' ss-mob-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{sub.label}}</span>
|
|
|
|
|
<svg class="ss-mob-chevron" width="12" height="12" viewBox="0 0 24 24" fill="none"
|
|
|
|
|
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
|
<polyline points="6 9 12 15 18 9"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
@if (mobOpenSubSection === sub.menuKey) {
|
|
|
|
|
<div class="ss-mob-grandchildren">
|
|
|
|
|
@for (child of sub.items; track child) {
|
|
|
|
|
<a class="ss-mob-sublink"
|
|
|
|
|
[routerLink]="child.routerLink"
|
|
|
|
|
(click)="closeMobileMenu()">
|
|
|
|
|
@if (child.icon) {
|
|
|
|
|
<i [class]="child.icon + ' ss-mob-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{child.label}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
@if (child.dividerAfter) {
|
|
|
|
|
<div class="ss-submenu-divider" role="separator"></div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (!sub.items?.length) {
|
|
|
|
|
<a
|
|
|
|
|
class="ss-mob-sublink"
|
|
|
|
|
[routerLink]="sub.routerLink"
|
|
|
|
|
(click)="closeMobileMenu()">
|
|
|
|
|
@if (sub.icon) {
|
|
|
|
|
<i [class]="sub.icon + ' ss-mob-icon'"></i>
|
|
|
|
|
}
|
|
|
|
|
<span>{{sub.label}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
@if (sub.dividerAfter) {
|
|
|
|
|
<div class="ss-submenu-divider" role="separator"></div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@if (!item.items?.length) {
|
|
|
|
|
<a class="ss-mob-link"
|
|
|
|
|
[routerLink]="item.routerLink"
|
|
|
|
|
(click)="closeMobileMenu()">
|
|
|
|
|
<span>{{item.label}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|