Material module imports for the pages and rest of the Fuse

+ Couple tweaks & fixes
This commit is contained in:
Sercan Yemen 2018-03-06 10:38:30 +03:00
parent 7b474e54f0
commit 82ca0329e9
43 changed files with 359 additions and 260 deletions

View File

@ -1,11 +1,11 @@
import { Component, HostBinding, Input, OnInit } from '@angular/core'; import { Component, HostBinding, Input } from '@angular/core';
@Component({ @Component({
selector : 'fuse-nav-vertical-group', selector : 'fuse-nav-vertical-group',
templateUrl: './nav-vertical-group.component.html', templateUrl: './nav-vertical-group.component.html',
styleUrls : ['./nav-vertical-group.component.scss'] styleUrls : ['./nav-vertical-group.component.scss']
}) })
export class FuseNavVerticalGroupComponent implements OnInit export class FuseNavVerticalGroupComponent
{ {
@HostBinding('class') classes = 'nav-group nav-item'; @HostBinding('class') classes = 'nav-group nav-item';
@Input() item: any; @Input() item: any;
@ -14,8 +14,4 @@ export class FuseNavVerticalGroupComponent implements OnInit
{ {
} }
ngOnInit()
{
}
} }

View File

@ -1,11 +1,11 @@
import { Component, HostBinding, Input, OnInit } from '@angular/core'; import { Component, HostBinding, Input } from '@angular/core';
@Component({ @Component({
selector : 'fuse-nav-vertical-item', selector : 'fuse-nav-vertical-item',
templateUrl: './nav-vertical-item.component.html', templateUrl: './nav-vertical-item.component.html',
styleUrls : ['./nav-vertical-item.component.scss'] styleUrls : ['./nav-vertical-item.component.scss']
}) })
export class FuseNavVerticalItemComponent implements OnInit export class FuseNavVerticalItemComponent
{ {
@HostBinding('class') classes = 'nav-item'; @HostBinding('class') classes = 'nav-item';
@Input() item: any; @Input() item: any;
@ -13,8 +13,4 @@ export class FuseNavVerticalItemComponent implements OnInit
constructor() constructor()
{ {
} }
ngOnInit()
{
}
} }

View File

@ -1,21 +1,11 @@
import { AfterViewInit, Directive, ElementRef, OnInit } from '@angular/core'; import { Directive, ElementRef } from '@angular/core';
@Directive({ @Directive({
selector: '[fuseWidgetToggle]' selector: '[fuseWidgetToggle]'
}) })
export class FuseWidgetToggleDirective implements OnInit, AfterViewInit export class FuseWidgetToggleDirective
{ {
constructor(public el: ElementRef) constructor(public el: ElementRef)
{ {
} }
ngOnInit()
{
}
ngAfterViewInit()
{
}
} }

View File

@ -1,112 +0,0 @@
import { NgModule } from '@angular/core';
import {
MatAutocompleteModule,
MatButtonModule,
MatButtonToggleModule,
MatCheckboxModule,
MatToolbarModule,
MatTooltipModule,
MatCardModule,
MatChipsModule,
MatDatepickerModule,
MatDialogModule,
MatExpansionModule,
MatFormFieldModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatNativeDateModule,
MatPaginatorModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatRippleModule,
MatSelectModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatSnackBarModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatStepperModule
} from '@angular/material';
import { CdkTableModule } from '@angular/cdk/table';
@NgModule({
imports: [
MatAutocompleteModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule,
MatDatepickerModule,
MatDialogModule,
MatExpansionModule,
MatFormFieldModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatNativeDateModule,
MatPaginatorModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatRippleModule,
MatSelectModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatSnackBarModule,
MatStepperModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
CdkTableModule
],
exports: [
MatAutocompleteModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule,
MatDatepickerModule,
MatDialogModule,
MatExpansionModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatNativeDateModule,
MatPaginatorModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatRippleModule,
MatSelectModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatSnackBarModule,
MatStepperModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
CdkTableModule
]
})
export class MaterialModule
{
}

View File

@ -1,4 +1,10 @@
// Default Fuse config /**
* Default Fuse Configuration
*
* You can edit these options to change the default options. All these options also can be changed per component
* basis. See `app/main/content/pages/authentication/login/login.component.ts` constructor method to learn more
* about changing these options per component basis.
*/
export const fuseConfig = { export const fuseConfig = {
layout : { layout : {
navigation : 'left', // 'right', 'left', 'top', 'none' navigation : 'left', // 'right', 'left', 'top', 'none'

View File

@ -1,11 +1,16 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatCheckboxModule, MatIconModule } from '@angular/material';
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseNgxDatatableComponent } from './datatable/ngx-datatable.component';
import { GoogleMapsModule } from './google-maps/google-maps.module'; import { GoogleMapsModule } from './google-maps/google-maps.module';
import { FuseNgxDatatableComponent } from './datatable/ngx-datatable.component';
const routes = [ const routes = [
{ {
path : 'datatables/ngx-datatable', path : 'datatables/ngx-datatable',
@ -14,14 +19,22 @@ const routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes),
GoogleMapsModule
],
declarations: [ declarations: [
FuseNgxDatatableComponent FuseNgxDatatableComponent
] ],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatCheckboxModule,
MatIconModule,
NgxDatatableModule,
FuseSharedModule,
GoogleMapsModule
],
}) })
export class FuseComponentsThirdPartyModule export class FuseComponentsThirdPartyModule
{ {

View File

@ -57,14 +57,11 @@
</ng-template> </ng-template>
</ngx-datatable-column> </ngx-datatable-column>
<ngx-datatable-column name="Name" prop="name"> <ngx-datatable-column name="Name" prop="name"></ngx-datatable-column>
</ngx-datatable-column>
<ngx-datatable-column name="Last Name" prop="lastName"> <ngx-datatable-column name="Last Name" prop="lastName"></ngx-datatable-column>
</ngx-datatable-column>
<ngx-datatable-column name="Company" prop="company"> <ngx-datatable-column name="Company" prop="company"></ngx-datatable-column>
</ngx-datatable-column>
</ngx-datatable> </ngx-datatable>
</div> </div>

View File

@ -14,7 +14,6 @@ export class FuseNgxDatatableComponent implements OnInit
constructor(private http: HttpClient) constructor(private http: HttpClient)
{ {
} }
ngOnInit() ngOnInit()

View File

@ -1,8 +1,12 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatIconModule } from '@angular/material';
import { AgmCoreModule } from '@agm/core'; import { AgmCoreModule } from '@agm/core';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { FuseGoogleMapsDocsComponent } from './google-maps.component'; import { FuseGoogleMapsDocsComponent } from './google-maps.component';
@ -14,16 +18,22 @@ const routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes),
AgmCoreModule.forRoot({
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
})
],
declarations: [ declarations: [
FuseGoogleMapsDocsComponent FuseGoogleMapsDocsComponent
] ],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatIconModule,
AgmCoreModule.forRoot({
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
}),
FuseSharedModule,
FuseHighlightModule
],
}) })
export class GoogleMapsModule export class GoogleMapsModule
{ {

View File

@ -1,14 +1,15 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MaterialModule } from 'app/main/content/components/angular-material/material.module';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { FuseWidgetModule } from '@fuse/components/widget/widget.module'; import { FuseWidgetModule } from '@fuse/components/widget/widget.module';
import { EXAMPLE_LIST } from './example-components'; import { EXAMPLE_LIST } from './example-components';
import { FuseExampleViewerComponent } from './example-viewer/example-viewer'; import { FuseExampleViewerComponent } from './example-viewer/example-viewer';
import { FuseAngularMaterialComponent } from './angular-material.component'; import { FuseAngularMaterialComponent } from './angular-material.component';
import { MaterialModule } from 'app/main/content/components/angular-material/material.module';
import { FuseHighlightModule } from '@fuse/components';
const routes: Routes = [ const routes: Routes = [
{ {
@ -23,19 +24,21 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
RouterModule.forChild(routes),
MaterialModule,
FuseSharedModule,
FuseWidgetModule,
FuseHighlightModule
],
entryComponents: EXAMPLE_LIST,
declarations : [ declarations : [
[...EXAMPLE_LIST], [...EXAMPLE_LIST],
FuseAngularMaterialComponent, FuseAngularMaterialComponent,
FuseExampleViewerComponent FuseExampleViewerComponent
] ],
imports : [
RouterModule.forChild(routes),
MaterialModule,
FuseSharedModule,
FuseHighlightModule,
FuseWidgetModule
],
entryComponents: EXAMPLE_LIST,
}) })
export class FuseAngularMaterialModule export class FuseAngularMaterialModule
{ {

View File

@ -1,9 +1,12 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatButtonToggleModule, MatFormFieldModule, MatIconModule, MatListModule, MatMenuModule, MatSelectModule, MatSliderModule, MatSlideToggleModule, MatTabsModule } from '@angular/material';
import { NgxChartsModule } from '@swimlane/ngx-charts'; import { NgxChartsModule } from '@swimlane/ngx-charts';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseWidgetModule } from '@fuse/components/widget/widget.module'; import { FuseCountdownModule, FuseHighlightModule, FuseMaterialColorPickerModule, FuseWidgetModule } from '@fuse/components';
import { FuseAngularMaterialModule } from './angular-material/angular-material.module'; import { FuseAngularMaterialModule } from './angular-material/angular-material.module';
import { FuseCardsDocsComponent } from './cards/cards.component'; import { FuseCardsDocsComponent } from './cards/cards.component';
@ -56,13 +59,6 @@ const routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes),
FuseWidgetModule,
FuseAngularMaterialModule,
NgxChartsModule
],
declarations: [ declarations: [
FuseCardsDocsComponent, FuseCardsDocsComponent,
FuseCountdownDocsComponent, FuseCountdownDocsComponent,
@ -73,6 +69,28 @@ const routes = [
FuseSearchBarDocsComponent, FuseSearchBarDocsComponent,
FuseShortcutsDocsComponent, FuseShortcutsDocsComponent,
FuseWidgetDocsComponent FuseWidgetDocsComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatButtonToggleModule,
MatFormFieldModule,
MatIconModule,
MatListModule,
MatMenuModule,
MatSelectModule,
MatSlideToggleModule,
MatTabsModule,
NgxChartsModule,
FuseSharedModule,
FuseCountdownModule,
FuseHighlightModule,
FuseMaterialColorPickerModule,
FuseWidgetModule,
FuseAngularMaterialModule
] ]
}) })
export class FuseComponentsModule export class FuseComponentsModule

View File

@ -1,4 +1,4 @@
import { Component, HostBinding, OnInit, OnDestroy } from '@angular/core'; import { Component, HostBinding, OnDestroy } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { Subscription } from 'rxjs/Subscription'; import { Subscription } from 'rxjs/Subscription';
@ -14,7 +14,7 @@ import { FuseConfigService } from '@fuse/services/config.service';
styleUrls : ['./content.component.scss'], styleUrls : ['./content.component.scss'],
animations : fuseAnimations animations : fuseAnimations
}) })
export class FuseContentComponent implements OnInit, OnDestroy export class FuseContentComponent implements OnDestroy
{ {
onConfigChanged: Subscription; onConfigChanged: Subscription;
fuseSettings: any; fuseSettings: any;
@ -64,11 +64,6 @@ export class FuseContentComponent implements OnInit, OnDestroy
); );
} }
ngOnInit()
{
}
ngOnDestroy() ngOnDestroy()
{ {
this.onConfigChanged.unsubscribe(); this.onConfigChanged.unsubscribe();

View File

@ -11,6 +11,7 @@ import { FuseContentComponent } from 'app/main/content/content.component';
], ],
imports : [ imports : [
RouterModule, RouterModule,
FuseSharedModule, FuseSharedModule,
], ],
exports: [ exports: [

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseForgotPassword2Component } from './forgot-password-2.component'; import { FuseForgotPassword2Component } from './forgot-password-2.component';
@ -17,8 +19,13 @@ const routes = [
FuseForgotPassword2Component FuseForgotPassword2Component
], ],
imports : [ imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule, FuseSharedModule,
RouterModule.forChild(routes)
] ]
}) })
export class ForgotPassword2Module export class ForgotPassword2Module

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseForgotPasswordComponent } from './forgot-password.component'; import { FuseForgotPasswordComponent } from './forgot-password.component';
@ -17,8 +19,13 @@ const routes = [
FuseForgotPasswordComponent FuseForgotPasswordComponent
], ],
imports : [ imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule, FuseSharedModule,
RouterModule.forChild(routes)
] ]
}) })
export class ForgotPasswordModule export class ForgotPasswordModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseLockComponent } from './lock.component'; import { FuseLockComponent } from './lock.component';
@ -17,8 +19,14 @@ const routes = [
FuseLockComponent FuseLockComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class LockModule export class LockModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatCheckboxModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseLogin2Component } from './login-2.component'; import { FuseLogin2Component } from './login-2.component';
@ -17,8 +19,14 @@ const routes = [
FuseLogin2Component FuseLogin2Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class Login2Module export class Login2Module

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatCheckboxModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseLoginComponent } from './login.component'; import { FuseLoginComponent } from './login.component';
@ -17,8 +19,14 @@ const routes = [
FuseLoginComponent FuseLoginComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class LoginModule export class LoginModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatIconModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseMailConfirmComponent } from './mail-confirm.component'; import { FuseMailConfirmComponent } from './mail-confirm.component';
@ -17,8 +19,11 @@ const routes = [
FuseMailConfirmComponent FuseMailConfirmComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatIconModule,
FuseSharedModule
] ]
}) })
export class MailConfirmModule export class MailConfirmModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatCheckboxModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseRegister2Component } from './register-2.component'; import { FuseRegister2Component } from './register-2.component';
@ -17,8 +19,14 @@ const routes = [
FuseRegister2Component FuseRegister2Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class Register2Module export class Register2Module

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatCheckboxModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseRegisterComponent } from './register.component'; import { FuseRegisterComponent } from './register.component';
@ -17,8 +19,14 @@ const routes = [
FuseRegisterComponent FuseRegisterComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class RegisterModule export class RegisterModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseResetPassword2Component } from './reset-password-2.component'; import { FuseResetPassword2Component } from './reset-password-2.component';
@ -17,8 +19,13 @@ const routes = [
FuseResetPassword2Component FuseResetPassword2Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class ResetPassword2Module export class ResetPassword2Module

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseResetPasswordComponent } from './reset-password.component'; import { FuseResetPasswordComponent } from './reset-password.component';
@ -17,8 +19,13 @@ const routes = [
FuseResetPasswordComponent FuseResetPasswordComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule
] ]
}) })
export class ResetPasswordModule export class ResetPasswordModule

View File

@ -1,7 +1,10 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatInputModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseCountdownModule } from '@fuse/components';
import { FuseComingSoonComponent } from './coming-soon.component'; import { FuseComingSoonComponent } from './coming-soon.component';
@ -17,8 +20,14 @@ const routes = [
FuseComingSoonComponent FuseComingSoonComponent
], ],
imports : [ imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatFormFieldModule,
MatInputModule,
FuseSharedModule, FuseSharedModule,
RouterModule.forChild(routes) FuseCountdownModule
] ]
}) })
export class ComingSoonModule export class ComingSoonModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatIconModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseError404Component } from './error-404.component'; import { FuseError404Component } from './error-404.component';
@ -17,8 +19,11 @@ const routes = [
FuseError404Component FuseError404Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatIconModule,
FuseSharedModule
] ]
}) })
export class Error404Module export class Error404Module

View File

@ -17,8 +17,9 @@ const routes = [
FuseError500Component FuseError500Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
FuseSharedModule
] ]
}) })
export class Error500Module export class Error500Module

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatExpansionModule, MatIconModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FaqService } from './faq.service'; import { FaqService } from './faq.service';
@ -21,8 +23,12 @@ const routes = [
FuseFaqComponent FuseFaqComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatExpansionModule,
MatIconModule,
FuseSharedModule
], ],
providers : [ providers : [
FaqService FaqService

View File

@ -21,8 +21,9 @@ const routes = [
FuseInvoiceCompactComponent FuseInvoiceCompactComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
FuseSharedModule
], ],
providers : [ providers : [
InvoiceService InvoiceService

View File

@ -21,8 +21,9 @@ const routes = [
FuseInvoiceModernComponent FuseInvoiceModernComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
FuseSharedModule
], ],
providers : [ providers : [
InvoiceService InvoiceService

View File

@ -11,10 +11,7 @@
</div> </div>
<div mat-dialog-actions class="m-0 p-16" fxLayout="row" fxLayoutAlign="end center"> <div mat-dialog-actions class="m-0 p-16" fxLayout="row" fxLayoutAlign="end center">
<button mat-button <button mat-button (click)="dialogRef.close()" class="mat-accent" aria-label="Close">
(click)="dialogRef.close()"
class="mat-accent"
aria-label="Close">
CLOSE CLOSE
</button> </button>
</div> </div>

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatDialogModule, MatIconModule, MatListModule, MatToolbarModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { KnowledgeBaseService } from './knowledge-base.service'; import { KnowledgeBaseService } from './knowledge-base.service';
@ -23,8 +25,15 @@ const routes = [
FuseKnowledgeBaseArticleComponent FuseKnowledgeBaseArticleComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatDialogModule,
MatIconModule,
MatListModule,
MatToolbarModule,
FuseSharedModule
], ],
providers : [ providers : [
KnowledgeBaseService KnowledgeBaseService

View File

@ -17,8 +17,9 @@ const routes = [
FuseMaintenanceComponent FuseMaintenanceComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
FuseSharedModule
] ]
}) })
export class MaintenanceModule export class MaintenanceModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatDividerModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FusePricingStyle1Component } from './style-1/style-1.component'; import { FusePricingStyle1Component } from './style-1/style-1.component';
@ -29,8 +31,12 @@ const routes = [
FusePricingStyle3Component FusePricingStyle3Component
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatDividerModule,
FuseSharedModule
] ]
}) })
export class PricingModule export class PricingModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatButtonModule, MatDividerModule, MatIconModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { ProfileService } from './profile.service'; import { ProfileService } from './profile.service';
@ -27,8 +29,14 @@ const routes = [
FuseProfilePhotosVideosComponent FuseProfilePhotosVideosComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes)
MatButtonModule,
MatDividerModule,
MatIconModule,
MatTabsModule,
FuseSharedModule
], ],
providers : [ providers : [
ProfileService ProfileService

View File

@ -27,6 +27,7 @@
</div> </div>
<button mat-raised-button color="accent" class="post-button" aria-label="POST">POST</button> <button mat-raised-button color="accent" class="post-button" aria-label="POST">POST</button>
</footer> </footer>
</div> </div>

View File

@ -1,5 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { CdkTableModule } from '@angular/cdk/table';
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatTableModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
@ -25,8 +28,17 @@ const routes = [
FuseSearchTableComponent FuseSearchTableComponent
], ],
imports : [ imports : [
FuseSharedModule, RouterModule.forChild(routes),
RouterModule.forChild(routes) CdkTableModule,
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatTableModule,
MatTabsModule,
FuseSharedModule
], ],
providers : [ providers : [
SearchService SearchService

View File

@ -1,7 +1,10 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MatIconModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { FuseConfigServiceDocsComponent } from './config/config.component'; import { FuseConfigServiceDocsComponent } from './config/config.component';
import { FuseSplashScreenServiceDocsComponent } from './splash-screen/splash-screen.component'; import { FuseSplashScreenServiceDocsComponent } from './splash-screen/splash-screen.component';
@ -18,14 +21,18 @@ const routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes)
],
declarations: [ declarations: [
FuseConfigServiceDocsComponent, FuseConfigServiceDocsComponent,
FuseSplashScreenServiceDocsComponent FuseSplashScreenServiceDocsComponent
] ],
imports : [
RouterModule.forChild(routes),
MatIconModule,
FuseSharedModule,
FuseHighlightModule
],
}) })
export class FuseServicesModule export class FuseServicesModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatButtonModule, MatIconModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseDemoModule } from '@fuse/components/demo/demo.module'; import { FuseDemoModule } from '@fuse/components/demo/demo.module';
@ -14,13 +16,18 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes),
FuseDemoModule
],
declarations: [ declarations: [
FuseColorsComponent FuseColorsComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatIconModule,
MatTabsModule,
FuseSharedModule,
FuseDemoModule
] ]
}) })
export class UIColorsModule export class UIColorsModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatSelectModule, MatStepperModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseFormsComponent } from './forms.component'; import { FuseFormsComponent } from './forms.component';
@ -13,12 +15,20 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes)
],
declarations: [ declarations: [
FuseFormsComponent FuseFormsComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatSelectModule,
MatStepperModule,
FuseSharedModule,
] ]
}) })
export class UIFormsModule export class UIFormsModule

View File

@ -1,7 +1,10 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatIconModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { FuseHelperClassesComponent } from './helper-classes.component'; import { FuseHelperClassesComponent } from './helper-classes.component';
import { FuseHelperClassesPaddingMarginComponent } from './tabs/padding-margin/padding-margin.component'; import { FuseHelperClassesPaddingMarginComponent } from './tabs/padding-margin/padding-margin.component';
@ -15,15 +18,20 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes)
],
declarations: [ declarations: [
FuseHelperClassesComponent, FuseHelperClassesComponent,
FuseHelperClassesPaddingMarginComponent, FuseHelperClassesPaddingMarginComponent,
FuseHelperClassesWidthHeightComponent FuseHelperClassesWidthHeightComponent
] ],
imports : [
RouterModule.forChild(routes),
MatIconModule,
MatTabsModule,
FuseSharedModule,
FuseHighlightModule,
],
}) })
export class UIHelperClassesModule export class UIHelperClassesModule
{ {

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatButtonModule, MatFormFieldModule, MatIconModule, MatInputModule, MatProgressSpinnerModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseIconsComponent } from './icons.component'; import { FuseIconsComponent } from './icons.component';
@ -13,12 +15,19 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes)
],
declarations: [ declarations: [
FuseIconsComponent FuseIconsComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatProgressSpinnerModule,
FuseSharedModule
] ]
}) })
export class UIIconsModule export class UIIconsModule

View File

@ -1,6 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatButtonModule, MatIconModule, MatSidenavModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseDemoModule } from '@fuse/components/demo/demo.module'; import { FuseDemoModule } from '@fuse/components/demo/demo.module';
@ -104,11 +106,6 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes),
FuseDemoModule
],
declarations: [ declarations: [
FuseCardedFullWidthComponent, FuseCardedFullWidthComponent,
FuseCardedFullWidth2Component, FuseCardedFullWidth2Component,
@ -129,6 +126,17 @@ const routes: Routes = [
FuseSimpleRightSidenav3Component, FuseSimpleRightSidenav3Component,
FuseTabbedComponent, FuseTabbedComponent,
FuseBlankComponent FuseBlankComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatIconModule,
MatSidenavModule,
MatTabsModule,
FuseSharedModule,
FuseDemoModule
] ]
}) })
export class UIPageLayoutsModule export class UIPageLayoutsModule

View File

@ -1,7 +1,10 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { MatIconModule, MatTabsModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module'; import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { FuseTypographyComponent } from './typography.component'; import { FuseTypographyComponent } from './typography.component';
import { FuseTypographyHeadingsComponent } from './tabs/headings/headings.component'; import { FuseTypographyHeadingsComponent } from './tabs/headings/headings.component';
@ -17,16 +20,21 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports : [
FuseSharedModule,
RouterModule.forChild(routes)
],
declarations: [ declarations: [
FuseTypographyComponent, FuseTypographyComponent,
FuseTypographyHeadingsComponent, FuseTypographyHeadingsComponent,
FuseTypographyInlineTextElementsComponent, FuseTypographyInlineTextElementsComponent,
FuseTypographyBlockquotesListsComponent, FuseTypographyBlockquotesListsComponent,
FuseTypographyHelpersComponent FuseTypographyHelpersComponent
],
imports : [
RouterModule.forChild(routes),
MatIconModule,
MatTabsModule,
FuseSharedModule,
FuseHighlightModule
] ]
}) })
export class UITypographyModule export class UITypographyModule