diff --git a/src/app/core/animations.ts b/src/app/core/animations.ts
index 614d7774..d6f3ff61 100644
--- a/src/app/core/animations.ts
+++ b/src/app/core/animations.ts
@@ -4,6 +4,19 @@ import { sequence, trigger, stagger, animate, style, group, query, transition, k
export class Animations
{
+ public static fadeInOut = trigger('fadeInOut', [
+ state('0', style({
+ display: 'none',
+ opacity: 0
+ })),
+ state('1', style({
+ display: 'block',
+ opacity: 1
+ })),
+ transition('1 => 0', animate('300ms ease-out')),
+ transition('0 => 1', animate('300ms ease-in'))
+ ]);
+
public static slideInOut = trigger('slideInOut', [
state('0', style({
height : '0px',
diff --git a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html
new file mode 100644
index 00000000..045e077d
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html
@@ -0,0 +1,19 @@
+
+ {{item.icon}}
+ {{item.title}}
+ keyboard_arrow_right
+
+
+
\ No newline at end of file
diff --git a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.scss b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.scss
new file mode 100644
index 00000000..32c65c8c
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.scss
@@ -0,0 +1,3 @@
+:host {
+
+}
diff --git a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.ts b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.ts
new file mode 100644
index 00000000..84954253
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.ts
@@ -0,0 +1,50 @@
+import { Component, HostBinding, HostListener, Input, OnDestroy } from '@angular/core';
+import { Animations } from '../../../../animations';
+import { FuseConfigService } from '../../../../services/config.service';
+import { Subscription } from 'rxjs/Subscription';
+
+@Component({
+ selector : 'fuse-nav-horizontal-collapse',
+ templateUrl: './nav-horizontal-collapse.component.html',
+ styleUrls : ['./nav-horizontal-collapse.component.scss'],
+ animations : [Animations.slideInOut]
+})
+export class FuseNavHorizontalCollapseComponent implements OnDestroy
+{
+ onSettingsChanged: Subscription;
+ fuseSettings: any;
+ isOpen = false;
+
+ @HostBinding('class') classes = 'nav-item nav-collapse';
+ @Input() item: any;
+
+ @HostListener('mouseenter')
+ open()
+ {
+ this.isOpen = true;
+ }
+
+ @HostListener('mouseleave')
+ close()
+ {
+ this.isOpen = false;
+ }
+
+ constructor(
+ private fuseConfig: FuseConfigService
+ )
+ {
+ this.onSettingsChanged =
+ this.fuseConfig.onSettingsChanged
+ .subscribe(
+ (newSettings) => {
+ this.fuseSettings = newSettings;
+ }
+ );
+ }
+
+ ngOnDestroy()
+ {
+ this.onSettingsChanged.unsubscribe();
+ }
+}
diff --git a/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html
new file mode 100644
index 00000000..54045a83
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html
@@ -0,0 +1,6 @@
+
+ {{item.icon}}
+ {{item.title}}
+ {{item.badge.title}}
+
\ No newline at end of file
diff --git a/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.scss b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.scss
new file mode 100644
index 00000000..32c65c8c
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.scss
@@ -0,0 +1,3 @@
+:host {
+
+}
diff --git a/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.ts b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.ts
new file mode 100644
index 00000000..8f9d0b25
--- /dev/null
+++ b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.ts
@@ -0,0 +1,12 @@
+import { Component, HostBinding, Input } from '@angular/core';
+
+@Component({
+ selector : 'fuse-nav-horizontal-item',
+ templateUrl: './nav-horizontal-item.component.html',
+ styleUrls : ['./nav-horizontal-item.component.scss']
+})
+export class FuseNavHorizontalItemComponent
+{
+ @HostBinding('class') classes = 'nav-item';
+ @Input() item: any;
+}
diff --git a/src/app/core/components/navigation/nav-subheader/nav-subheader.component.ts b/src/app/core/components/navigation/nav-subheader/nav-subheader.component.ts
deleted file mode 100644
index d2ed28b9..00000000
--- a/src/app/core/components/navigation/nav-subheader/nav-subheader.component.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Component, HostBinding, Input, OnInit } from '@angular/core';
-
-@Component({
- selector : 'fuse-nav-subheader',
- templateUrl: './nav-subheader.component.html',
- styleUrls : ['./nav-subheader.component.scss']
-})
-export class FuseNavSubheaderComponent implements OnInit
-{
- @HostBinding('class') classes = 'nav-subheader';
- @Input() item: any;
-
- constructor()
- {
- }
-
- ngOnInit()
- {
- }
-
-}
diff --git a/src/app/core/components/navigation/navigation.component.html b/src/app/core/components/navigation/navigation.component.html
index 1eb592cd..12b31aff 100644
--- a/src/app/core/components/navigation/navigation.component.html
+++ b/src/app/core/components/navigation/navigation.component.html
@@ -1,11 +1,27 @@
-
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/core/components/navigation/navigation.component.ts b/src/app/core/components/navigation/navigation.component.ts
index b4028efe..02da575c 100644
--- a/src/app/core/components/navigation/navigation.component.ts
+++ b/src/app/core/components/navigation/navigation.component.ts
@@ -1,4 +1,4 @@
-import { Component, ViewEncapsulation } from '@angular/core';
+import { Component, Input, ViewEncapsulation } from '@angular/core';
import { FuseNavigationService } from './navigation.service';
@Component({
@@ -9,11 +9,15 @@ import { FuseNavigationService } from './navigation.service';
})
export class FuseNavigationComponent
{
- navigation: any[];
+ verticalNavigation: any[];
+ horizontalNavigation: any[];
+
+ @Input('layout') layout = 'vertical';
constructor(private navigationService: FuseNavigationService)
{
- this.navigation = navigationService.getNavigation();
+ this.verticalNavigation = navigationService.getNavigation('verticalNavItems');
+ this.horizontalNavigation = navigationService.getNavigation('horizontalNavItems');
}
}
diff --git a/src/app/core/components/navigation/navigation.module.ts b/src/app/core/components/navigation/navigation.module.ts
index 3e7f2fd6..9f0bd0bf 100644
--- a/src/app/core/components/navigation/navigation.module.ts
+++ b/src/app/core/components/navigation/navigation.module.ts
@@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { SharedModule } from '../../modules/shared.module';
import { RouterModule } from '@angular/router';
-import { FuseNavSubheaderComponent } from './nav-subheader/nav-subheader.component';
import { FuseNavigationComponent } from './navigation.component';
-import { FuseNavItemComponent } from './nav-item/nav-item.component';
-import { FuseNavCollapseComponent } from './nav-collapse/nav-collapse.component';
+import { FuseNavVerticalItemComponent } from './vertical/nav-item/nav-vertical-item.component';
+import { FuseNavVerticalCollapseComponent } from './vertical/nav-collapse/nav-vertical-collapse.component';
+import { FuseNavVerticalSubheaderComponent } from './vertical/nav-subheader/nav-vertical-subheader.component';
+import { FuseNavHorizontalItemComponent } from './horizontal/nav-item/nav-horizontal-item.component';
+import { FuseNavHorizontalCollapseComponent } from './horizontal/nav-collapse/nav-horizontal-collapse.component';
@NgModule({
imports : [
@@ -16,9 +18,11 @@ import { FuseNavCollapseComponent } from './nav-collapse/nav-collapse.component'
],
declarations: [
FuseNavigationComponent,
- FuseNavSubheaderComponent,
- FuseNavItemComponent,
- FuseNavCollapseComponent
+ FuseNavVerticalSubheaderComponent,
+ FuseNavVerticalItemComponent,
+ FuseNavVerticalCollapseComponent,
+ FuseNavHorizontalItemComponent,
+ FuseNavHorizontalCollapseComponent
]
})
export class FuseNavigationModule
diff --git a/src/app/core/components/navigation/navigation.service.ts b/src/app/core/components/navigation/navigation.service.ts
index b4f9adc4..8e71d2e0 100644
--- a/src/app/core/components/navigation/navigation.service.ts
+++ b/src/app/core/components/navigation/navigation.service.ts
@@ -5,21 +5,21 @@ import { FuseNavigation } from '../../../navigation.model';
export class FuseNavigationService
{
onNavCollapseToggled = new EventEmitter();
- navigation: any[];
+ navigation: FuseNavigation;
flatNavigation: any[] = [];
constructor()
{
- this.navigation = new FuseNavigation().items;
+ this.navigation = new FuseNavigation();
}
/**
* Get navigation array
* @returns {any[]}
*/
- getNavigation()
+ getNavigation(item)
{
- return this.navigation;
+ return this.navigation[item];
}
/**
diff --git a/src/app/core/components/navigation/nav-collapse/nav-collapse.component.html b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html
similarity index 64%
rename from src/app/core/components/navigation/nav-collapse/nav-collapse.component.html
rename to src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html
index 2cc74514..ce5449a3 100644
--- a/src/app/core/components/navigation/nav-collapse/nav-collapse.component.html
+++ b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html
@@ -5,7 +5,7 @@
-
-
+
+
diff --git a/src/app/core/components/navigation/nav-collapse/nav-collapse.component.scss b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss
similarity index 100%
rename from src/app/core/components/navigation/nav-collapse/nav-collapse.component.scss
rename to src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss
diff --git a/src/app/core/components/navigation/nav-collapse/nav-collapse.component.ts b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts
similarity index 90%
rename from src/app/core/components/navigation/nav-collapse/nav-collapse.component.ts
rename to src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts
index a8c244ce..d7676cc3 100644
--- a/src/app/core/components/navigation/nav-collapse/nav-collapse.component.ts
+++ b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts
@@ -1,15 +1,15 @@
import { Component, HostBinding, Input, OnInit } from '@angular/core';
-import { FuseNavigationService } from '../navigation.service';
+import { FuseNavigationService } from '../../navigation.service';
import { NavigationEnd, Router } from '@angular/router';
-import { Animations } from '../../../animations';
+import { Animations } from '../../../../animations';
@Component({
- selector : 'fuse-nav-collapse',
- templateUrl: './nav-collapse.component.html',
- styleUrls : ['./nav-collapse.component.scss'],
+ selector : 'fuse-nav-vertical-collapse',
+ templateUrl: './nav-vertical-collapse.component.html',
+ styleUrls : ['./nav-vertical-collapse.component.scss'],
animations : [Animations.slideInOut]
})
-export class FuseNavCollapseComponent implements OnInit
+export class FuseNavVerticalCollapseComponent implements OnInit
{
@Input() item: any;
@HostBinding('class') classes = 'nav-collapse nav-item';
diff --git a/src/app/core/components/navigation/nav-item/nav-item.component.html b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html
similarity index 100%
rename from src/app/core/components/navigation/nav-item/nav-item.component.html
rename to src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html
diff --git a/src/app/core/components/navigation/nav-item/nav-item.component.scss b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.scss
similarity index 100%
rename from src/app/core/components/navigation/nav-item/nav-item.component.scss
rename to src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.scss
diff --git a/src/app/core/components/navigation/nav-item/nav-item.component.ts b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.ts
similarity index 51%
rename from src/app/core/components/navigation/nav-item/nav-item.component.ts
rename to src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.ts
index 511d6455..74e68198 100644
--- a/src/app/core/components/navigation/nav-item/nav-item.component.ts
+++ b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.ts
@@ -1,11 +1,11 @@
import { Component, HostBinding, Input, OnInit } from '@angular/core';
@Component({
- selector : 'fuse-nav-item',
- templateUrl: './nav-item.component.html',
- styleUrls : ['./nav-item.component.scss']
+ selector : 'fuse-nav-vertical-item',
+ templateUrl: './nav-vertical-item.component.html',
+ styleUrls : ['./nav-vertical-item.component.scss']
})
-export class FuseNavItemComponent implements OnInit
+export class FuseNavVerticalItemComponent implements OnInit
{
@HostBinding('class') classes = 'nav-item';
@Input() item: any;
diff --git a/src/app/core/components/navigation/nav-subheader/nav-subheader.component.html b/src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.html
similarity index 100%
rename from src/app/core/components/navigation/nav-subheader/nav-subheader.component.html
rename to src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.html
diff --git a/src/app/core/components/navigation/nav-subheader/nav-subheader.component.scss b/src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.scss
similarity index 100%
rename from src/app/core/components/navigation/nav-subheader/nav-subheader.component.scss
rename to src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.scss
diff --git a/src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.ts b/src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.ts
new file mode 100644
index 00000000..72a00643
--- /dev/null
+++ b/src/app/core/components/navigation/vertical/nav-subheader/nav-vertical-subheader.component.ts
@@ -0,0 +1,21 @@
+import { Component, HostBinding, Input, OnInit } from '@angular/core';
+
+@Component({
+ selector : 'fuse-nav-vertical-subheader',
+ templateUrl: './nav-vertical-subheader.component.html',
+ styleUrls : ['./nav-vertical-subheader.component.scss']
+})
+export class FuseNavVerticalSubheaderComponent implements OnInit
+{
+ @HostBinding('class') classes = 'nav-subheader';
+ @Input() item: any;
+
+ constructor()
+ {
+ }
+
+ ngOnInit()
+ {
+ }
+
+}
diff --git a/src/app/core/components/search-bar/search-bar.component.scss b/src/app/core/components/search-bar/search-bar.component.scss
index aac6fb90..7a737fcc 100644
--- a/src/app/core/components/search-bar/search-bar.component.scss
+++ b/src/app/core/components/search-bar/search-bar.component.scss
@@ -7,7 +7,7 @@
height: 64px;
font-size: 13px;
- @include media-breakpoint-down('xs') {
+ @include media-breakpoint-down('sm') {
height: 56px;
}
@@ -20,7 +20,7 @@
height: 64px !important;
line-height: 64px !important;
- @include media-breakpoint-down('xs') {
+ @include media-breakpoint-down('sm') {
height: 56px !important;
line-height: 56px !important;
}
@@ -30,7 +30,7 @@
width: 64px !important;
height: 64px !important;
line-height: 64px !important;
- @include media-breakpoint-down('xs') {
+ @include media-breakpoint-down('sm') {
height: 56px !important;
line-height: 56px !important;
}
diff --git a/src/app/core/components/theme-options/theme-options.component.html b/src/app/core/components/theme-options/theme-options.component.html
index 6291aba0..55d3b694 100644
--- a/src/app/core/components/theme-options/theme-options.component.html
+++ b/src/app/core/components/theme-options/theme-options.component.html
@@ -2,7 +2,9 @@
settings
-
+
+
+