Update to version v10.0.0 and Bootstrap v5

This commit is contained in:
Sergio 2023-04-20 16:23:26 +02:00
parent 6363d5171d
commit 4ab287b797
409 changed files with 19187 additions and 38933 deletions

View file

@ -8,6 +8,7 @@
<nb-select [selected]="currentTheme" (selectedChange)="changeTheme($event)" status="primary">
<nb-option *ngFor="let theme of themes" [value]="theme.value"> {{ theme.name }}</nb-option>
</nb-select>
<ngx-layout-direction-switcher class="direction-switcher"></ngx-layout-direction-switcher>
</div>
<div class="header-container">

View file

@ -52,6 +52,11 @@
}
}
.direction-switcher {
@include nb-ltr(margin-left, 2rem);
@include nb-rtl(margin-right, 2rem);
}
@include media-breakpoint-down(sm) {
.control-item {
display: none;
@ -63,7 +68,8 @@
}
@include media-breakpoint-down(is) {
nb-select {
nb-select,
.direction-switcher {
display: none;
}
}

View file

@ -2,7 +2,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core';
import { NbMediaBreakpointsService, NbMenuService, NbSidebarService, NbThemeService } from '@nebular/theme';
import { UserData } from '../../../@core/data/users';
import { LayoutService } from '../../../@core/utils';
import { map, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
@ -44,7 +43,6 @@ export class HeaderComponent implements OnInit, OnDestroy {
private menuService: NbMenuService,
private themeService: NbThemeService,
private userService: UserData,
private layoutService: LayoutService,
private breakpointService: NbMediaBreakpointsService) {
}
@ -82,7 +80,6 @@ export class HeaderComponent implements OnInit, OnDestroy {
toggleSidebar(): boolean {
this.sidebarService.toggle(true, 'menu-sidebar');
this.layoutService.changeLayoutSize();
return false;
}