diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index fd8455b..dca82ce 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,12 +1,12 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; -import { DeclarationHostComponent } from './components/cds-declaration/declaration-host.component'; +import { HomeComponent } from './components/home/home.component'; import { NotFoundComponent } from './components/error-routing/not-found.component'; import { HeaderComponent } from './components/cds-declaration/header/header.component'; export const routes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, - { path: 'home', component: DeclarationHostComponent, data: { text: 'Home' } }, + { path: 'home', component: HomeComponent, data: { text: 'Home' } }, { path: 'declarations', component: HeaderComponent, data: { text: 'Declarations' } }, { path: '**', component: NotFoundComponent } // must always be last ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fd5cc3c..48f86a7 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -7,18 +7,21 @@ import { IgniteComponent } from './components/navdrawer/ignite.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FormsModule } from '@angular/forms'; import { HeaderComponent } from './components/cds-declaration/header/header.component'; -import { DeclarationHostComponent } from './components/cds-declaration/declaration-host.component'; -import { Routes, RouterModule } from '@angular/router'; +import { HomeComponent } from './components/home/home.component'; import { NotFoundComponent } from './components/error-routing/not-found.component'; -import { ExpandingComponent } from './components/controls/expanding/expanding.component'; +import { ExpandingComponent } from './components/cds-declaration/header/header-controls/expanding-header-control/expanding.component'; +import { SettingsComponent } from './components/settings/settings.component'; +import { DeclarationTypeComponent } from './components/cds-declaration/header/declaration-type/declaration-type.component'; @NgModule({ declarations: [ AppComponent, IgniteComponent, HeaderComponent, - DeclarationHostComponent, + HomeComponent, NotFoundComponent, - ExpandingComponent + ExpandingComponent, + SettingsComponent, + DeclarationTypeComponent ], imports: [ BrowserModule, diff --git a/src/app/components/cds-declaration/declaration-host.component.ts b/src/app/components/cds-declaration/declaration-host.component.ts deleted file mode 100644 index 72d7cfe..0000000 --- a/src/app/components/cds-declaration/declaration-host.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-declaration-host', - templateUrl: './declaration-host.component.html', - styleUrls: ['./declaration-host.component.scss'] -}) -export class DeclarationHostComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } - -} diff --git a/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.html b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.html new file mode 100644 index 0000000..fe0e394 --- /dev/null +++ b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.html @@ -0,0 +1 @@ +

declaration-type works!

diff --git a/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.scss b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.scss new file mode 100644 index 0000000..05a01d7 --- /dev/null +++ b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.scss @@ -0,0 +1,3 @@ +p { + margin-top: 0px; +} diff --git a/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.ts b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.ts new file mode 100644 index 0000000..014aa5b --- /dev/null +++ b/src/app/components/cds-declaration/header/declaration-type/declaration-type.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-declaration-type', + templateUrl: './declaration-type.component.html', + styleUrls: ['./declaration-type.component.scss'] +}) +export class DeclarationTypeComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/components/controls/expanding/expanding.component.html b/src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.html similarity index 87% rename from src/app/components/controls/expanding/expanding.component.html rename to src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.html index 0631e53..ca23cd8 100644 --- a/src/app/components/controls/expanding/expanding.component.html +++ b/src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.html @@ -8,8 +8,6 @@ -

- The body of the expansion panel. -

+
diff --git a/src/app/components/controls/expanding/expanding.component.scss b/src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.scss similarity index 100% rename from src/app/components/controls/expanding/expanding.component.scss rename to src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.scss diff --git a/src/app/components/controls/expanding/expanding.component.ts b/src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.ts similarity index 100% rename from src/app/components/controls/expanding/expanding.component.ts rename to src/app/components/cds-declaration/header/header-controls/expanding-header-control/expanding.component.ts diff --git a/src/app/components/cds-declaration/declaration-host.component.html b/src/app/components/home/home.component.html similarity index 100% rename from src/app/components/cds-declaration/declaration-host.component.html rename to src/app/components/home/home.component.html diff --git a/src/app/components/cds-declaration/declaration-host.component.scss b/src/app/components/home/home.component.scss similarity index 100% rename from src/app/components/cds-declaration/declaration-host.component.scss rename to src/app/components/home/home.component.scss diff --git a/src/app/components/home/home.component.ts b/src/app/components/home/home.component.ts new file mode 100644 index 0000000..f56c8c1 --- /dev/null +++ b/src/app/components/home/home.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-home', + templateUrl: './home.component.html', + styleUrls: ['./home.component.scss'] +}) +export class HomeComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/components/settings/settings.component.html b/src/app/components/settings/settings.component.html new file mode 100644 index 0000000..ad1c963 --- /dev/null +++ b/src/app/components/settings/settings.component.html @@ -0,0 +1,41 @@ +
+ + menu + + +
+
Mode
+
+ + Pin + +
+
+ + Mini variant + +
+
+
+
Touch gestures
+
+ + Enable gestures + +

+ Swipe or drag from the edge area to open or to close. + Unpin and try it out on a mobile device. +

+
+
+
+
Position
+
+ {{item}} +

+ Unpin to try it out. +

+
+
+
diff --git a/src/app/components/settings/settings.component.scss b/src/app/components/settings/settings.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/settings/settings.component.ts b/src/app/components/settings/settings.component.ts new file mode 100644 index 0000000..618fc1f --- /dev/null +++ b/src/app/components/settings/settings.component.ts @@ -0,0 +1,25 @@ +import { Component, OnInit, ViewChild } from '@angular/core'; +import { IgxNavigationDrawerComponent } from 'igniteui-angular'; + +@Component({ + selector: 'app-settings', + templateUrl: './settings.component.html', + styleUrls: ['./settings.component.scss'] +}) +export class SettingsComponent implements OnInit { + + constructor() { } + + @ViewChild(IgxNavigationDrawerComponent, { static: true }) + public drawer: IgxNavigationDrawerComponent; + + public drawerState = { + miniTemplate: false, + open: true, + pin: true + }; + + ngOnInit() { + } + +}