diff --git a/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.html b/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.html similarity index 66% rename from src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.html rename to src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.html index 9c1b47a4..f79ee108 100644 --- a/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.html +++ b/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.html @@ -1,99 +1,99 @@ -
+
-

Sidenav Demo

+

Sidebar Demo

- Sidenav Item 1 + Sidebar Item 1 - Sidenav Item 2 + Sidebar Item 2 - Sidenav Item 3 + Sidebar Item 3 - Sidenav Item 4 + Sidebar Item 4 - Sidenav Item 5 + Sidebar Item 5 - Sidenav Item 6 + Sidebar Item 6 - Sidenav Item 7 + Sidebar Item 7 - Sidenav Item 8 + Sidebar Item 8 - Sidenav Item 9 + Sidebar Item 9 - Sidenav Item 10 + Sidebar Item 10 - Sidenav Item 11 + Sidebar Item 11 - Sidenav Item 12 + Sidebar Item 12 - Sidenav Item 13 + Sidebar Item 13 - Sidenav Item 14 + Sidebar Item 14 - Sidenav Item 15 + Sidebar Item 15 - Sidenav Item 16 + Sidebar Item 16
diff --git a/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.scss b/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.scss similarity index 100% rename from src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.scss rename to src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.scss diff --git a/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.ts b/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.ts new file mode 100644 index 00000000..4bd2650e --- /dev/null +++ b/src/@fuse/components/demo/demo-sidebar/demo-sidebar.component.ts @@ -0,0 +1,16 @@ +import { Component } from '@angular/core'; + +@Component({ + selector : 'fuse-demo-sidebar', + templateUrl: './demo-sidebar.component.html', + styleUrls : ['./demo-sidebar.component.scss'] +}) +export class FuseDemoSidebarComponent +{ + /** + * Constructor + */ + constructor() + { + } +} diff --git a/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.ts b/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.ts deleted file mode 100644 index 9fb575e6..00000000 --- a/src/@fuse/components/demo/demo-sidenav/demo-sidenav.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'fuse-demo-sidenav', - templateUrl: './demo-sidenav.component.html', - styleUrls : ['./demo-sidenav.component.scss'] -}) -export class FuseDemoSidenavComponent -{ - /** - * Constructor - */ - constructor() - { - } -} diff --git a/src/@fuse/components/demo/demo.module.ts b/src/@fuse/components/demo/demo.module.ts index ea5b615c..68aefeca 100644 --- a/src/@fuse/components/demo/demo.module.ts +++ b/src/@fuse/components/demo/demo.module.ts @@ -4,12 +4,12 @@ import { RouterModule } from '@angular/router'; import { MatDividerModule, MatListModule } from '@angular/material'; import { FuseDemoContentComponent } from './demo-content/demo-content.component'; -import { FuseDemoSidenavComponent } from './demo-sidenav/demo-sidenav.component'; +import { FuseDemoSidebarComponent } from './demo-sidebar/demo-sidebar.component'; @NgModule({ declarations: [ FuseDemoContentComponent, - FuseDemoSidenavComponent + FuseDemoSidebarComponent ], imports : [ RouterModule, @@ -19,7 +19,7 @@ import { FuseDemoSidenavComponent } from './demo-sidenav/demo-sidenav.component' ], exports : [ FuseDemoContentComponent, - FuseDemoSidenavComponent + FuseDemoSidebarComponent ] }) export class FuseDemoModule diff --git a/src/@fuse/scss/partials/_page-layouts.scss b/src/@fuse/scss/partials/_page-layouts.scss index ea2efb23..2d3f6d3f 100644 --- a/src/@fuse/scss/partials/_page-layouts.scss +++ b/src/@fuse/scss/partials/_page-layouts.scss @@ -153,112 +153,116 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too } } - // Left sidenav - Right sidenav - &.left-sidenav, - &.right-sidenav { + // Left / Right sidebar + &.left-sidebar, + &.right-sidebar { + flex-direction: row; - > mat-sidenav-container { + // Sidebar + > .sidebar { display: flex; + flex-direction: column; flex: 1 1 auto; - background: none; - z-index: 2; - width: 100%; + width: 240px; + min-width: 240px; + max-width: 240px; + height: auto; + z-index: 4; + overflow-y: hidden; + @include mat-elevation(7); - .sidenav { + &.locked-open { + background: none; + box-shadow: none; + + + .center { + z-index: 5; + } + + &.left-positioned { + + + .center { + margin-left: 0; + } + } + + &.right-positioned { + + + .center { + margin-right: 0; + } + } + } + + .header { + height: $carded-header-height; + min-height: $carded-header-height; + max-height: $carded-header-height; + + @include media-breakpoint-down('sm') { + height: $carded-header-height-sm; + min-height: $carded-header-height-sm; + max-height: $carded-header-height-sm; + } + } + + .content { + background: transparent; + overflow: auto; + } + } + + // Center + > .center { + display: flex; + flex-direction: column; + flex: 1 1 auto; + position: relative; + z-index: 3; + margin-left: 32px; + margin-right: 32px; + + .header { + display: flex; + height: $carded-header-height-without-toolbar; + min-height: $carded-header-height-without-toolbar; + max-height: $carded-header-height-without-toolbar; + + @include media-breakpoint-down('sm') { + height: $carded-header-height-without-toolbar-sm; + min-height: $carded-header-height-without-toolbar-sm; + max-height: $carded-header-height-without-toolbar-sm; + } + } + + .content-card { display: flex; flex-direction: column; flex: 1 1 auto; - width: 240px; - min-width: 240px; - max-width: 240px; - height: auto; - z-index: 4; - overflow-y: hidden; + overflow: hidden; @include mat-elevation(7); - &.mat-is-locked-open { - background: none; - box-shadow: none; - } + .toolbar { + display: flex; + justify-content: flex-start; + align-items: center; + flex: 1 1 auto; + border-bottom: 1px solid rgba(0, 0, 0, 0.12); + height: $carded-toolbar-height; + min-height: $carded-toolbar-height; + max-height: $carded-toolbar-height; - .header { - height: $carded-header-height; - min-height: $carded-header-height; - max-height: $carded-header-height; - - @include media-breakpoint-down('sm') { - height: $carded-header-height-sm; - min-height: $carded-header-height-sm; - max-height: $carded-header-height-sm; + .sidebar-toggle { + margin: 0 8px 0 0 !important; + padding: 0 !important; + border-radius: 0; } } .content { - background: transparent; - overflow: auto; - } - } - - > .mat-sidenav-content, - > .mat-drawer-content { - display: flex; - flex: 1 1 auto; - height: auto; - overflow: visible; - - // Center - .center { display: flex; - flex-direction: column; flex: 1 1 auto; - position: relative; - z-index: 3; - margin-left: 32px; - margin-right: 32px; - - .header { - display: flex; - height: $carded-header-height-without-toolbar; - min-height: $carded-header-height-without-toolbar; - max-height: $carded-header-height-without-toolbar; - - @include media-breakpoint-down('sm') { - height: $carded-header-height-without-toolbar-sm; - min-height: $carded-header-height-without-toolbar-sm; - max-height: $carded-header-height-without-toolbar-sm; - } - } - - .content-card { - display: flex; - flex-direction: column; - flex: 1 1 auto; - overflow: hidden; - @include mat-elevation(7); - - .toolbar { - display: flex; - justify-content: flex-start; - align-items: center; - flex: 1 1 auto; - border-bottom: 1px solid rgba(0, 0, 0, 0.12); - height: $carded-toolbar-height; - min-height: $carded-toolbar-height; - max-height: $carded-toolbar-height; - - .sidenav-toggle { - margin: 0 8px 0 0 !important; - padding: 0 !important; - border-radius: 0; - } - } - - .content { - display: flex; - flex: 1 1 auto; - overflow: auto; - } - } + overflow: auto; } } } @@ -267,21 +271,14 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too &.inner-scroll { flex: 1 1 auto; - > mat-sidenav-container { + > .center { + flex: 1 1 auto; - > .mat-sidenav-content, - > .mat-drawer-content { + .content-card { + flex: 1 1 auto; - > .center { + > .content { flex: 1 1 auto; - - .content-card { - flex: 1 1 auto; - - > .content { - flex: 1 1 auto; - } - } } } } @@ -290,52 +287,43 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too // Tabbed &.tabbed { - > mat-sidenav-container { + > .center { + width: calc(100% - 32px); + min-width: 0; - > .mat-sidenav-content, - > .mat-drawer-content { - width: calc(100% - 240px); - min-width: 0; + @include media-breakpoint-down('md') { + width: calc(100% - 64px); + } - .center { - width: calc(100% - 32px); - min-width: 0; + .header { + flex: 1 1 auto; + } - @include media-breakpoint-down('md') { - width: calc(100% - 64px); - } + .content-card { - .header { - flex: 1 1 auto; - } + .content { - .content-card { + .mat-tab-group { + overflow: hidden; - .content { + .mat-tab-header { - .mat-tab-group { + .mat-tab-label { + height: 64px; + } + } + + .mat-tab-body { + overflow: hidden; + + .mat-tab-body-content { overflow: hidden; - .mat-tab-header { - - .mat-tab-label { - height: 64px; - } - } - - .mat-tab-body { - overflow: hidden; - - .mat-tab-body-content { - overflow: hidden; - - .tab-content { - position: relative; - width: 100%; - height: 100%; - overflow: auto; - } - } + .tab-content { + position: relative; + width: 100%; + height: 100%; + overflow: auto; } } } @@ -346,48 +334,15 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too } } - // Left sidenav - &.left-sidenav { + // Right sidebar specific + &.right-sidebar { - // Sidenav - > mat-sidenav-container { - - .sidenav { - - &.mat-is-locked-open { - - ~ .mat-sidenav-content, - ~ .mat-drawer-content { - - .center { - margin-left: 0; - } - } - } - } + > .sidebar { + order: 2; } - } - // Right sidenav - &.right-sidenav { - - // Sidenav - > mat-sidenav-container { - - .sidenav { - order: 999; - - &.mat-is-locked-open { - - ~ .mat-sidenav-content, - ~ .mat-drawer-content { - - .center { - margin-right: 0; - } - } - } - } + > .center { + order: 1; } } } @@ -403,11 +358,16 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too // Fullwidth &.fullwidth { overflow: auto; + + > .content { + display: flex; + flex: 1 1 auto; + } } &.fullwidth, - &.inner-sidenav { - min-height: 100%; + &.inner-sidebar { + //min-height: 100%; > .header { height: $header-height; @@ -416,107 +376,113 @@ $carded-header-height-without-toolbar-sm: $carded-header-height-sm - $carded-too } } - // Left sidenav - Right sidenav - &.left-sidenav, - &.right-sidenav { + // Left / Right sidebar + &.left-sidebar, + &.right-sidebar { + flex-direction: row; - // Single scroll - /*&.single-scroll { + // Sidebar + > .sidebar { + width: 240px; + min-width: 240px; + max-width: 240px; + z-index: 4; + @include mat-elevation(7); - > mat-sidenav-container { - flex: 1 0 auto; + &.locked-open { + background: none; + box-shadow: none; - > .mat-sidenav-content, - > .mat-drawer-content { - flex: 1 0 auto; - max-height: none; + + .center { + z-index: 5; } - } - }*/ - // Inner Sidenav - &.inner-sidenav { + &.left-positioned { - > mat-sidenav-container { - flex: 1 1 auto; - - .sidenav { - - .sidenav-content { - height: 100%; + + .center { + margin-left: 0; } } - > .mat-sidenav-content, - > .mat-drawer-content { - display: flex; - height: auto; + &.right-positioned { - .center { - flex: 1 1 auto; - min-height: 100%; - @include mat-elevation(0); - - .content { - display: flex; - flex: 1 0 auto; - } + + .center { + margin-right: 0; } } } } - > mat-sidenav-container { + // Center + > .center { + position: relative; display: flex; flex-direction: column; flex: 1 1 auto; - background: none; - z-index: 2; - width: 100%; + overflow: auto; + z-index: 3; + @include mat-elevation(7); - .sidenav { - width: 240px; - min-width: 240px; - max-width: 240px; - z-index: 51; - @include mat-elevation(7); - - &.mat-is-locked-open { - width: 220px; - min-width: 220px; - max-width: 220px; - box-shadow: none; - background: transparent; - } - - .sidenav-content { - height: 100%; - } + .header { + height: $header-height; + min-height: $header-height; + max-height: $header-height; } - > .mat-sidenav-content, - > .mat-drawer-content { + .content { display: flex; - flex: 1 1 auto; - height: auto; - overflow: visible; - max-height: 100%; + flex: 1 0 auto; + } + } - .header { - height: $header-height; - min-height: $header-height; - max-height: $header-height; + // Inner Sidebar + &.inner-sidebar { + flex-direction: column; + overflow: hidden; + height: 100%; + + > .content { + display: flex; + + > .sidebar { + background: none; + box-shadow: none; + } + } + } + + // Inner scroll + &.inner-scroll { + flex: 1 1 auto; + + > .center { + flex: 1 1 auto; + } + } + } + + // Right sidebar specific + &.right-sidebar { + + > .sidebar { + order: 2; + } + + > .center { + order: 1; + } + + // Inner sidebar + &.inner-sidebar { + + > .content { + + > .sidebar { + order: 2; } - .center { - display: flex; - flex-direction: column; - flex: 1 1 auto; - overflow: auto; - @include mat-elevation(7); - - .content { - } + > .center { + order: 1; } } } diff --git a/src/app/main/ui/page-layouts/carded/full-width-1/full-width-1.component.html b/src/app/main/ui/page-layouts/carded/full-width-1/full-width-1.component.html index e7d2ab7e..ab1fe741 100644 --- a/src/app/main/ui/page-layouts/carded/full-width-1/full-width-1.component.html +++ b/src/app/main/ui/page-layouts/carded/full-width-1/full-width-1.component.html @@ -9,7 +9,7 @@
-

Full width with content scroll

+

Full width with content scroll

diff --git a/src/app/main/ui/page-layouts/carded/full-width-2/full-width-2.component.html b/src/app/main/ui/page-layouts/carded/full-width-2/full-width-2.component.html index c2d18241..1c0cac9b 100644 --- a/src/app/main/ui/page-layouts/carded/full-width-2/full-width-2.component.html +++ b/src/app/main/ui/page-layouts/carded/full-width-2/full-width-2.component.html @@ -9,7 +9,7 @@
-

Full width with inner scroll

+

Full width with inner scroll

diff --git a/src/app/main/ui/page-layouts/carded/full-width-tabbed-1/full-width-tabbed-1.component.html b/src/app/main/ui/page-layouts/carded/full-width-tabbed-1/full-width-tabbed-1.component.html index b659fa07..7b494058 100644 --- a/src/app/main/ui/page-layouts/carded/full-width-tabbed-1/full-width-tabbed-1.component.html +++ b/src/app/main/ui/page-layouts/carded/full-width-tabbed-1/full-width-tabbed-1.component.html @@ -9,7 +9,7 @@
-

Full width with tabs and content scroll

+

Full width with tabs and content scroll

diff --git a/src/app/main/ui/page-layouts/carded/full-width-tabbed-2/full-width-tabbed-2.component.html b/src/app/main/ui/page-layouts/carded/full-width-tabbed-2/full-width-tabbed-2.component.html index cb0db816..573e0e63 100644 --- a/src/app/main/ui/page-layouts/carded/full-width-tabbed-2/full-width-tabbed-2.component.html +++ b/src/app/main/ui/page-layouts/carded/full-width-tabbed-2/full-width-tabbed-2.component.html @@ -9,7 +9,7 @@
-

Full width with tabs and inner scroll

+

Full width with tabs and inner scroll

diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.html b/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.html new file mode 100644 index 00000000..9a21b456 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.html @@ -0,0 +1,62 @@ + diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.scss b/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.scss rename to src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.scss diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.ts b/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.ts new file mode 100644 index 00000000..a803f877 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-left-sidebar-1', + templateUrl: './left-sidebar-1.component.html', + styleUrls : ['./left-sidebar-1.component.scss'] +}) +export class CardedLeftSidebar1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.html b/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.html new file mode 100644 index 00000000..c046980f --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.html @@ -0,0 +1,62 @@ + diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.scss b/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.scss rename to src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.scss diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.ts b/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.ts new file mode 100644 index 00000000..1dac72ce --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-left-sidebar-2', + templateUrl: './left-sidebar-2.component.html', + styleUrls : ['./left-sidebar-2.component.scss'] +}) +export class CardedLeftSidebar2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.html b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.html new file mode 100644 index 00000000..2dc6e8ed --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.html @@ -0,0 +1,144 @@ + diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.scss b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.scss rename to src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.scss diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.ts b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.ts new file mode 100644 index 00000000..db5902c6 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-left-sidebar-tabbed-1', + templateUrl: './left-sidebar-tabbed-1.component.html', + styleUrls : ['./left-sidebar-tabbed-1.component.scss'] +}) +export class CardedLeftSidebarTabbed1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.html b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.html new file mode 100644 index 00000000..da617692 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.html @@ -0,0 +1,144 @@ + diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.scss b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.scss rename to src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.scss diff --git a/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.ts b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.ts new file mode 100644 index 00000000..8d4d7c2c --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-left-sidebar-tabbed-2', + templateUrl: './left-sidebar-tabbed-2.component.html', + styleUrls : ['./left-sidebar-tabbed-2.component.scss'] +}) +export class CardedLeftSidebarTabbed2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.html b/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.html deleted file mode 100644 index 75406653..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.html +++ /dev/null @@ -1,70 +0,0 @@ -
- - -
- - - - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - - -
- - -
-

Left sidenav with content scroll

-
- - - -
- - -
- - - Content toolbar -
- - - -
- - - -
- - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.ts b/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.ts deleted file mode 100644 index 1b1d69b9..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-left-sidenav-1', - templateUrl: './left-sidenav-1.component.html', - styleUrls : ['./left-sidenav-1.component.scss'] -}) -export class CardedLeftSidenav1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.html b/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.html deleted file mode 100644 index 74f053a5..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.html +++ /dev/null @@ -1,70 +0,0 @@ -
- - -
- - - - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - - -
- - -
-

Left sidenav with inner scroll

-
- - - -
- - -
- - - Content toolbar -
- - - -
- - - -
- - -
- - -
- - -
- -
\ No newline at end of file diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.ts b/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.ts deleted file mode 100644 index 6ef5d61a..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-left-sidenav-2', - templateUrl: './left-sidenav-2.component.html', - styleUrls : ['./left-sidenav-2.component.scss'] -}) -export class CardedLeftSidenav2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.html b/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.html deleted file mode 100644 index 8e56abfa..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.html +++ /dev/null @@ -1,151 +0,0 @@ -
- - -
- - - - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - - -
- - -
- -
- - - -

Left sidenav with tabs and content scroll

- -
- -
- - - -
- - -
- - - - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- -
- -
- - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.ts b/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.ts deleted file mode 100644 index eee50265..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-left-sidenav-tabbed-1', - templateUrl: './left-sidenav-tabbed-1.component.html', - styleUrls : ['./left-sidenav-tabbed-1.component.scss'] -}) -export class CardedLeftSidenavTabbed1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.html b/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.html deleted file mode 100644 index a69e51b8..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.html +++ /dev/null @@ -1,151 +0,0 @@ -
- - -
- - - - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - - -
- - -
- -
- - - -

Left sidenav with tabs and inner scroll

- -
- -
- - - -
- - -
- - - - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- -
- -
- - -
- - -
- - -
- -
\ No newline at end of file diff --git a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.ts b/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.ts deleted file mode 100644 index b3cb2bfe..00000000 --- a/src/app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-left-sidenav-tabbed-2', - templateUrl: './left-sidenav-tabbed-2.component.html', - styleUrls : ['./left-sidenav-tabbed-2.component.scss'] -}) -export class CardedLeftSidenavTabbed2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.html b/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.html new file mode 100644 index 00000000..4cb2b652 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.html @@ -0,0 +1,62 @@ + diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.scss b/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.scss rename to src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.scss diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.ts b/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.ts new file mode 100644 index 00000000..c3b9e890 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-right-sidebar-1', + templateUrl: './right-sidebar-1.component.html', + styleUrls : ['./right-sidebar-1.component.scss'] +}) +export class CardedRightSidebar1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.html b/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.html new file mode 100644 index 00000000..57fbf33d --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.html @@ -0,0 +1,62 @@ + diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.scss b/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.scss rename to src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.scss diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.ts b/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.ts new file mode 100644 index 00000000..c41c15f2 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-right-sidebar-2', + templateUrl: './right-sidebar-2.component.html', + styleUrls : ['./right-sidebar-2.component.scss'] +}) +export class CardedRightSidebar2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.html b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.html new file mode 100644 index 00000000..28de515f --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.html @@ -0,0 +1,144 @@ + diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.scss b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.scss rename to src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.scss diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.ts b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.ts new file mode 100644 index 00000000..2cb92bd5 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-right-sidebar-tabbed-1', + templateUrl: './right-sidebar-tabbed-1.component.html', + styleUrls : ['./right-sidebar-tabbed-1.component.scss'] +}) +export class CardedRightSidebarTabbed1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.html b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.html new file mode 100644 index 00000000..7c701585 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.html @@ -0,0 +1,144 @@ + diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.scss b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.scss rename to src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.scss diff --git a/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.ts b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.ts new file mode 100644 index 00000000..e564e4e8 --- /dev/null +++ b/src/app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'carded-right-sidebar-tabbed-2', + templateUrl: './right-sidebar-tabbed-2.component.html', + styleUrls : ['./right-sidebar-tabbed-2.component.scss'] +}) +export class CardedRightSidebarTabbed2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.html b/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.html deleted file mode 100644 index 501bf26c..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.html +++ /dev/null @@ -1,70 +0,0 @@ -
- - -
- - - - - -
- - -
-

Right sidenav with content scroll

-
- - - -
- - -
- - - Content toolbar -
- - - -
- - - -
- - -
- - -
- - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.ts b/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.ts deleted file mode 100644 index 7ce474ea..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-right-sidenav-1', - templateUrl: './right-sidenav-1.component.html', - styleUrls : ['./right-sidenav-1.component.scss'] -}) -export class CardedRightSidenav1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.html b/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.html deleted file mode 100644 index 355e56d6..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.html +++ /dev/null @@ -1,70 +0,0 @@ -
- - -
- - - - - -
- - -
-

Right sidenav with inner scroll

-
- - - -
- - -
- - - Content toolbar -
- - - -
- - - -
- - -
- - -
- - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.ts b/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.ts deleted file mode 100644 index 8b1c9d9c..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-right-sidenav-2', - templateUrl: './right-sidenav-2.component.html', - styleUrls : ['./right-sidenav-2.component.scss'] -}) -export class CardedRightSidenav2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.html b/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.html deleted file mode 100644 index 474144b3..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.html +++ /dev/null @@ -1,151 +0,0 @@ -
- - -
- - - - - -
- - -
- -
- - - -

Right sidenav with tabs and content scroll

- -
- -
- - - -
- - -
- - - - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- -
- -
- - -
- - -
- - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.ts b/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.ts deleted file mode 100644 index 40ae7782..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-right-sidenav-tabbed-1', - templateUrl: './right-sidenav-tabbed-1.component.html', - styleUrls : ['./right-sidenav-tabbed-1.component.scss'] -}) -export class CardedRightSidenavTabbed1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.html b/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.html deleted file mode 100644 index 9f6c2a64..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.html +++ /dev/null @@ -1,151 +0,0 @@ -
- - -
- - - - - -
- - -
- -
- - - -

Right sidenav with tabs and inner scroll

- -
- -
- - - -
- - -
- - - - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- - -
- - - -
-
- -
- -
- - -
- - -
- - - - - - -
-

Sidenav header

-
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.ts b/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.ts deleted file mode 100644 index 33f58358..00000000 --- a/src/app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'carded-right-sidenav-tabbed-2', - templateUrl: './right-sidenav-tabbed-2.component.html', - styleUrls : ['./right-sidenav-tabbed-2.component.scss'] -}) -export class CardedRightSidenavTabbed2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/page-layouts.module.ts b/src/app/main/ui/page-layouts/page-layouts.module.ts index 89295b23..159fb15b 100644 --- a/src/app/main/ui/page-layouts/page-layouts.module.ts +++ b/src/app/main/ui/page-layouts/page-layouts.module.ts @@ -9,24 +9,28 @@ import { CardedFullWidth1Component } from 'app/main/ui/page-layouts/carded/full- import { CardedFullWidth2Component } from 'app/main/ui/page-layouts/carded/full-width-2/full-width-2.component'; import { CardedFullWidthTabbed1Component } from 'app/main/ui/page-layouts/carded/full-width-tabbed-1/full-width-tabbed-1.component'; import { CardedFullWidthTabbed2Component } from 'app/main/ui/page-layouts/carded/full-width-tabbed-2/full-width-tabbed-2.component'; -import { CardedLeftSidenav1Component } from 'app/main/ui/page-layouts/carded/left-sidenav-1/left-sidenav-1.component'; -import { CardedLeftSidenav2Component } from 'app/main/ui/page-layouts/carded/left-sidenav-2/left-sidenav-2.component'; -import { CardedLeftSidenavTabbed1Component } from 'app/main/ui/page-layouts/carded/left-sidenav-tabbed-1/left-sidenav-tabbed-1.component'; -import { CardedLeftSidenavTabbed2Component } from 'app/main/ui/page-layouts/carded/left-sidenav-tabbed-2/left-sidenav-tabbed-2.component'; -import { CardedRightSidenav1Component } from 'app/main/ui/page-layouts/carded/right-sidenav-1/right-sidenav-1.component'; -import { CardedRightSidenav2Component } from 'app/main/ui/page-layouts/carded/right-sidenav-2/right-sidenav-2.component'; -import { CardedRightSidenavTabbed1Component } from 'app/main/ui/page-layouts/carded/right-sidenav-tabbed-1/right-sidenav-tabbed-1.component'; -import { CardedRightSidenavTabbed2Component } from 'app/main/ui/page-layouts/carded/right-sidenav-tabbed-2/right-sidenav-tabbed-2.component'; +import { CardedLeftSidebar1Component } from 'app/main/ui/page-layouts/carded/left-sidebar-1/left-sidebar-1.component'; +import { CardedLeftSidebar2Component } from 'app/main/ui/page-layouts/carded/left-sidebar-2/left-sidebar-2.component'; +import { CardedLeftSidebarTabbed1Component } from 'app/main/ui/page-layouts/carded/left-sidebar-tabbed-1/left-sidebar-tabbed-1.component'; +import { CardedLeftSidebarTabbed2Component } from 'app/main/ui/page-layouts/carded/left-sidebar-tabbed-2/left-sidebar-tabbed-2.component'; +import { CardedRightSidebar1Component } from 'app/main/ui/page-layouts/carded/right-sidebar-1/right-sidebar-1.component'; +import { CardedRightSidebar2Component } from 'app/main/ui/page-layouts/carded/right-sidebar-2/right-sidebar-2.component'; +import { CardedRightSidebarTabbed1Component } from 'app/main/ui/page-layouts/carded/right-sidebar-tabbed-1/right-sidebar-tabbed-1.component'; +import { CardedRightSidebarTabbed2Component } from 'app/main/ui/page-layouts/carded/right-sidebar-tabbed-2/right-sidebar-tabbed-2.component'; import { SimpleFullWidth1Component } from 'app/main/ui/page-layouts/simple/full-width-1/full-width-1.component'; -import { SimpleLeftSidenav1Component } from 'app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component'; -import { SimpleLeftSidenav2Component } from 'app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component'; -import { SimpleLeftSidenav3Component } from 'app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component'; -import { SimpleRightSidenav1Component } from 'app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component'; -import { SimpleRightSidenav2Component } from 'app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component'; -import { SimpleRightSidenav3Component } from 'app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component'; +import { SimpleLeftSidebar1Component } from 'app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component'; +import { SimpleLeftSidebar2Component } from 'app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component'; +import { SimpleLeftSidebar3Component } from 'app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component'; +import { SimpleLeftSidebar4Component } from 'app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component'; +import { SimpleRightSidebar1Component } from 'app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component'; +import { SimpleRightSidebar2Component } from 'app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component'; +import { SimpleRightSidebar3Component } from 'app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component'; +import { SimpleRightSidebar4Component } from 'app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component'; import { Tabbed1Component } from 'app/main/ui/page-layouts/simple/tabbed-1/tabbed-1.component'; import { BlankComponent } from 'app/main/ui/page-layouts/blank/blank.component'; +import { FuseSidebarModule } from '@fuse/components'; + const routes: Routes = [ { path : 'page-layouts/carded/full-width-1', @@ -45,64 +49,72 @@ const routes: Routes = [ component: CardedFullWidthTabbed2Component }, { - path : 'page-layouts/carded/left-sidenav-1', - component: CardedLeftSidenav1Component + path : 'page-layouts/carded/left-sidebar-1', + component: CardedLeftSidebar1Component }, { - path : 'page-layouts/carded/left-sidenav-tabbed-1', - component: CardedLeftSidenavTabbed1Component + path : 'page-layouts/carded/left-sidebar-tabbed-1', + component: CardedLeftSidebarTabbed1Component }, { - path : 'page-layouts/carded/left-sidenav-2', - component: CardedLeftSidenav2Component + path : 'page-layouts/carded/left-sidebar-2', + component: CardedLeftSidebar2Component }, { - path : 'page-layouts/carded/left-sidenav-tabbed-2', - component: CardedLeftSidenavTabbed2Component + path : 'page-layouts/carded/left-sidebar-tabbed-2', + component: CardedLeftSidebarTabbed2Component }, { - path : 'page-layouts/carded/right-sidenav-1', - component: CardedRightSidenav1Component + path : 'page-layouts/carded/right-sidebar-1', + component: CardedRightSidebar1Component }, { - path : 'page-layouts/carded/right-sidenav-tabbed-1', - component: CardedRightSidenavTabbed1Component + path : 'page-layouts/carded/right-sidebar-tabbed-1', + component: CardedRightSidebarTabbed1Component }, { - path : 'page-layouts/carded/right-sidenav-2', - component: CardedRightSidenav2Component + path : 'page-layouts/carded/right-sidebar-2', + component: CardedRightSidebar2Component }, { - path : 'page-layouts/carded/right-sidenav-tabbed-2', - component: CardedRightSidenavTabbed2Component + path : 'page-layouts/carded/right-sidebar-tabbed-2', + component: CardedRightSidebarTabbed2Component }, { path : 'page-layouts/simple/full-width-1', component: SimpleFullWidth1Component }, { - path : 'page-layouts/simple/left-sidenav-1', - component: SimpleLeftSidenav1Component + path : 'page-layouts/simple/left-sidebar-1', + component: SimpleLeftSidebar1Component }, { - path : 'page-layouts/simple/left-sidenav-2', - component: SimpleLeftSidenav2Component + path : 'page-layouts/simple/left-sidebar-2', + component: SimpleLeftSidebar2Component }, { - path : 'page-layouts/simple/left-sidenav-3', - component: SimpleLeftSidenav3Component + path : 'page-layouts/simple/left-sidebar-3', + component: SimpleLeftSidebar3Component }, { - path : 'page-layouts/simple/right-sidenav-1', - component: SimpleRightSidenav1Component + path : 'page-layouts/simple/left-sidebar-4', + component: SimpleLeftSidebar4Component }, { - path : 'page-layouts/simple/right-sidenav-2', - component: SimpleRightSidenav2Component + path : 'page-layouts/simple/right-sidebar-1', + component: SimpleRightSidebar1Component }, { - path : 'page-layouts/simple/right-sidenav-3', - component: SimpleRightSidenav3Component + path : 'page-layouts/simple/right-sidebar-2', + component: SimpleRightSidebar2Component + }, + { + path : 'page-layouts/simple/right-sidebar-3', + component: SimpleRightSidebar3Component + }, + { + path : 'page-layouts/simple/right-sidebar-4', + component: SimpleRightSidebar4Component }, { path : 'page-layouts/simple/tabbed-1', @@ -120,21 +132,23 @@ const routes: Routes = [ CardedFullWidth2Component, CardedFullWidthTabbed1Component, CardedFullWidthTabbed2Component, - CardedLeftSidenav1Component, - CardedLeftSidenav2Component, - CardedLeftSidenavTabbed1Component, - CardedLeftSidenavTabbed2Component, - CardedRightSidenav1Component, - CardedRightSidenav2Component, - CardedRightSidenavTabbed1Component, - CardedRightSidenavTabbed2Component, + CardedLeftSidebar1Component, + CardedLeftSidebar2Component, + CardedLeftSidebarTabbed1Component, + CardedLeftSidebarTabbed2Component, + CardedRightSidebar1Component, + CardedRightSidebar2Component, + CardedRightSidebarTabbed1Component, + CardedRightSidebarTabbed2Component, SimpleFullWidth1Component, - SimpleLeftSidenav1Component, - SimpleLeftSidenav2Component, - SimpleLeftSidenav3Component, - SimpleRightSidenav1Component, - SimpleRightSidenav2Component, - SimpleRightSidenav3Component, + SimpleLeftSidebar1Component, + SimpleLeftSidebar2Component, + SimpleLeftSidebar3Component, + SimpleLeftSidebar4Component, + SimpleRightSidebar1Component, + SimpleRightSidebar2Component, + SimpleRightSidebar3Component, + SimpleRightSidebar4Component, Tabbed1Component, BlankComponent ], @@ -146,6 +160,7 @@ const routes: Routes = [ MatSidenavModule, MatTabsModule, + FuseSidebarModule, FuseSharedModule, FuseDemoModule ] diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.html b/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.html new file mode 100644 index 00000000..df67aba7 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.html @@ -0,0 +1,40 @@ + diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.scss b/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.scss rename to src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.scss diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.ts b/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.ts new file mode 100644 index 00000000..72b8a444 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-1/left-sidebar-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-left-sidebar-1', + templateUrl: './left-sidebar-1.component.html', + styleUrls : ['./left-sidebar-1.component.scss'] +}) +export class SimpleLeftSidebar1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.html b/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.html new file mode 100644 index 00000000..976cd2f9 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.html @@ -0,0 +1,40 @@ + diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.scss b/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.scss rename to src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.scss diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.ts b/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.ts new file mode 100644 index 00000000..30b30671 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-2/left-sidebar-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-left-sidebar-2', + templateUrl: './left-sidebar-2.component.html', + styleUrls : ['./left-sidebar-2.component.scss'] +}) +export class SimpleLeftSidebar2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.html b/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.html new file mode 100644 index 00000000..1ade3a5e --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.html @@ -0,0 +1,46 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.scss b/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.scss rename to src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.scss diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.ts b/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.ts new file mode 100644 index 00000000..145c341a --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-3/left-sidebar-3.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-left-sidebar-4', + templateUrl: './left-sidebar-3.component.html', + styleUrls : ['./left-sidebar-3.component.scss'] +}) +export class SimpleLeftSidebar3Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.html b/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.html new file mode 100644 index 00000000..25d0b980 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.html @@ -0,0 +1,46 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.scss b/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.scss rename to src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.scss diff --git a/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.ts b/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.ts new file mode 100644 index 00000000..4fb5f4b3 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/left-sidebar-4/left-sidebar-4.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-left-sidebar-4', + templateUrl: './left-sidebar-4.component.html', + styleUrls : ['./left-sidebar-4.component.scss'] +}) +export class SimpleLeftSidebar4Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.html b/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.html deleted file mode 100644 index 15f928df..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - - - - - -
- - - -
- -
- - - -
- - -
- - - -
-

Left sidenav with content scroll

-
- -
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.ts b/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.ts deleted file mode 100644 index 5a1a9bfe..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-1/left-sidenav-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-left-sidenav-1', - templateUrl: './left-sidenav-1.component.html', - styleUrls : ['./left-sidenav-1.component.scss'] -}) -export class SimpleLeftSidenav1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.html b/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.html deleted file mode 100644 index 5c4b6a07..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - - - - - -
- - - -
- -
- - - -
- - -
- - - -
-

Left sidenav with inner scroll

-
- -
- - - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.ts b/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.ts deleted file mode 100644 index 3d1b0aa2..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-2/left-sidenav-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-left-sidenav-2', - templateUrl: './left-sidenav-2.component.html', - styleUrls : ['./left-sidenav-2.component.scss'] -}) -export class SimpleLeftSidenav2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.html b/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.html deleted file mode 100644 index 23434a82..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - -
- - - -
-

Left inner sidenav with inner scroll

-
- -
- - - - - - - -
- - - -
- -
- - - -
- - -
- - - -
- - -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.ts b/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.ts deleted file mode 100644 index ad6b586f..00000000 --- a/src/app/main/ui/page-layouts/simple/left-sidenav-3/left-sidenav-3.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-left-sidenav-3', - templateUrl: './left-sidenav-3.component.html', - styleUrls : ['./left-sidenav-3.component.scss'] -}) -export class SimpleLeftSidenav3Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.html b/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.html new file mode 100644 index 00000000..25f385bc --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.html @@ -0,0 +1,40 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.scss b/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.scss similarity index 100% rename from src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.scss rename to src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.scss diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.ts b/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.ts new file mode 100644 index 00000000..0d129ac2 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-1/right-sidebar-1.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-right-sidebar-1', + templateUrl: './right-sidebar-1.component.html', + styleUrls : ['./right-sidebar-1.component.scss'] +}) +export class SimpleRightSidebar1Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.html b/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.html new file mode 100644 index 00000000..aa027714 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.html @@ -0,0 +1,40 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.scss b/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.ts b/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.ts new file mode 100644 index 00000000..a5969ad8 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-2/right-sidebar-2.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-right-sidebar-2', + templateUrl: './right-sidebar-2.component.html', + styleUrls : ['./right-sidebar-2.component.scss'] +}) +export class SimpleRightSidebar2Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.html b/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.html new file mode 100644 index 00000000..38e131f1 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.html @@ -0,0 +1,46 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.scss b/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.ts b/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.ts new file mode 100644 index 00000000..bece4802 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-3/right-sidebar-3.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-right-sidebar-4', + templateUrl: './right-sidebar-3.component.html', + styleUrls : ['./right-sidebar-3.component.scss'] +}) +export class SimpleRightSidebar3Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.html b/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.html new file mode 100644 index 00000000..9fddae29 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.html @@ -0,0 +1,46 @@ + diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.scss b/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.ts b/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.ts new file mode 100644 index 00000000..3d9e9ee3 --- /dev/null +++ b/src/app/main/ui/page-layouts/simple/right-sidebar-4/right-sidebar-4.component.ts @@ -0,0 +1,36 @@ +import { Component } from '@angular/core'; + +import { FuseSidebarService } from '@fuse/components/sidebar/sidebar.service'; + +@Component({ + selector : 'simple-right-sidebar-4', + templateUrl: './right-sidebar-4.component.html', + styleUrls : ['./right-sidebar-4.component.scss'] +}) +export class SimpleRightSidebar4Component +{ + /** + * Constructor + * + * @param {FuseSidebarService} _fuseSidebarService + */ + constructor( + private _fuseSidebarService: FuseSidebarService + ) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle sidebar + * + * @param name + */ + toggleSidebar(name): void + { + this._fuseSidebarService.getSidebar(name).toggleOpen(); + } +} diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.html b/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.html deleted file mode 100644 index 6aa29f77..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - - - -
- - -
- - - -
-

Right sidenav with content scroll

-
- -
- - - -
- - - -
- - -
- - - - - -
- - - -
- -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.ts b/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.ts deleted file mode 100644 index c022174f..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-1/right-sidenav-1.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-right-sidenav-1', - templateUrl: './right-sidenav-1.component.html', - styleUrls : ['./right-sidenav-1.component.scss'] -}) -export class SimpleRightSidenav1Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.html b/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.html deleted file mode 100644 index ddc677d5..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - - - -
- - -
- - - -
-

Right sidenav with inner scroll

-
- -
- - - -
- - - -
- - -
- - - - - -
- - - -
- -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.ts b/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.ts deleted file mode 100644 index bd43f140..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-2/right-sidenav-2.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-right-sidenav-2', - templateUrl: './right-sidenav-2.component.html', - styleUrls : ['./right-sidenav-2.component.scss'] -}) -export class SimpleRightSidenav2Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.html b/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.html deleted file mode 100644 index 47d8d815..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - -
- - - -
-

Right inner sidenav with content scroll

-
- -
- - - - - -
- - -
- - - -
- - -
- - - - - -
- - - -
- -
- - -
- -
diff --git a/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.ts b/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.ts deleted file mode 100644 index 446da2de..00000000 --- a/src/app/main/ui/page-layouts/simple/right-sidenav-3/right-sidenav-3.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector : 'simple-right-sidenav-3', - templateUrl: './right-sidenav-3.component.html', - styleUrls : ['./right-sidenav-3.component.scss'] -}) -export class SimpleRightSidenav3Component -{ - /** - * Constructor - */ - constructor() - { - } - -} diff --git a/src/app/navigation/navigation.ts b/src/app/navigation/navigation.ts index 0cfa6601..d69b250f 100644 --- a/src/app/navigation/navigation.ts +++ b/src/app/navigation/navigation.ts @@ -432,52 +432,52 @@ export const navigation: FuseNavigation[] = [ url : '/ui/page-layouts/carded/full-width-tabbed-2' }, { - id : 'left-sidenav-1', - title: 'Left Sidenav #1', + id : 'left-sidebar-1', + title: 'Left Sidebar #1', type : 'item', - url : '/ui/page-layouts/carded/left-sidenav-1' + url : '/ui/page-layouts/carded/left-sidebar-1' }, { - id : 'left-sidenav-2', - title: 'Left Sidenav #2', + id : 'left-sidebar-2', + title: 'Left Sidebar #2', type : 'item', - url : '/ui/page-layouts/carded/left-sidenav-2' + url : '/ui/page-layouts/carded/left-sidebar-2' }, { - id : 'left-sidenav-tabbed-1', - title: 'Left Sidenav Tabbed #1', + id : 'left-sidebar-tabbed-1', + title: 'Left Sidebar Tabbed #1', type : 'item', - url : '/ui/page-layouts/carded/left-sidenav-tabbed-1' + url : '/ui/page-layouts/carded/left-sidebar-tabbed-1' }, { - id : 'left-sidenav-tabbed-2', - title: 'Left Sidenav Tabbed #2', + id : 'left-sidebar-tabbed-2', + title: 'Left Sidebar Tabbed #2', type : 'item', - url : '/ui/page-layouts/carded/left-sidenav-tabbed-2' + url : '/ui/page-layouts/carded/left-sidebar-tabbed-2' }, { - id : 'right-sidenav-1', - title: 'Right Sidenav #1', + id : 'right-sidebar-1', + title: 'Right Sidebar #1', type : 'item', - url : '/ui/page-layouts/carded/right-sidenav-1' + url : '/ui/page-layouts/carded/right-sidebar-1' }, { - id : 'right-sidenav-2', - title: 'Right Sidenav #2', + id : 'right-sidebar-2', + title: 'Right Sidebar #2', type : 'item', - url : '/ui/page-layouts/carded/right-sidenav-2' + url : '/ui/page-layouts/carded/right-sidebar-2' }, { - id : 'right-sidenav-tabbed-1', - title: 'Right Sidenav Tabbed #1', + id : 'right-sidebar-tabbed-1', + title: 'Right Sidebar Tabbed #1', type : 'item', - url : '/ui/page-layouts/carded/right-sidenav-tabbed-1' + url : '/ui/page-layouts/carded/right-sidebar-tabbed-1' }, { - id : 'right-sidenav-tabbed-2', - title: 'Right Sidenav Tabbed #2', + id : 'right-sidebar-tabbed-2', + title: 'Right Sidebar Tabbed #2', type : 'item', - url : '/ui/page-layouts/carded/right-sidenav-tabbed-2' + url : '/ui/page-layouts/carded/right-sidebar-tabbed-2' } ] }, @@ -486,7 +486,7 @@ export const navigation: FuseNavigation[] = [ title : 'Simple', type : 'collapsable', badge : { - title: '8', + title: '10', bg : '#525e8a', fg : '#FFFFFF' }, @@ -498,40 +498,52 @@ export const navigation: FuseNavigation[] = [ url : '/ui/page-layouts/simple/full-width-1' }, { - id : 'left-sidenav-1', - title: 'Left Sidenav #1', + id : 'left-sidebar-1', + title: 'Left Sidebar #1', type : 'item', - url : '/ui/page-layouts/simple/left-sidenav-1' + url : '/ui/page-layouts/simple/left-sidebar-1' }, { - id : 'left-sidenav-2', - title: 'Left Sidenav #2', + id : 'left-sidebar-2', + title: 'Left Sidebar #2', type : 'item', - url : '/ui/page-layouts/simple/left-sidenav-2' + url : '/ui/page-layouts/simple/left-sidebar-2' }, { - id : 'left-sidenav-3', - title: 'Left Sidenav #3', + id : 'left-sidebar-3', + title: 'Left Sidebar #3', type : 'item', - url : '/ui/page-layouts/simple/left-sidenav-3' + url : '/ui/page-layouts/simple/left-sidebar-3' }, { - id : 'right-sidenav-1', - title: 'Right Sidenav #1', + id : 'left-sidebar-4', + title: 'Left Sidebar #4', type : 'item', - url : '/ui/page-layouts/simple/right-sidenav-1' + url : '/ui/page-layouts/simple/left-sidebar-4' }, { - id : 'right-sidenav-2', - title: 'Right Sidenav #2', + id : 'right-sidebar-1', + title: 'Right Sidebar #1', type : 'item', - url : '/ui/page-layouts/simple/right-sidenav-2' + url : '/ui/page-layouts/simple/right-sidebar-1' }, { - id : 'right-sidenav-3', - title: 'Right Sidenav #3', + id : 'right-sidebar-2', + title: 'Right Sidebar #2', type : 'item', - url : '/ui/page-layouts/simple/right-sidenav-3' + url : '/ui/page-layouts/simple/right-sidebar-2' + }, + { + id : 'right-sidebar-3', + title: 'Right Sidebar #3', + type : 'item', + url : '/ui/page-layouts/simple/right-sidebar-3' + }, + { + id : 'right-sidebar-4', + title: 'Right Sidebar #4', + type : 'item', + url : '/ui/page-layouts/simple/right-sidebar-4' }, { id : 'tabbed-1', @@ -666,7 +678,7 @@ export const navigation: FuseNavigation[] = [ }, { id : 'sidenav', - title: 'Sidenav', + title: 'Sidebar', type : 'item', url : '/components/angular-material/sidenav' },