mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 12:35:07 +00:00
Material module imports for the apps
+ Couple fixes
This commit is contained in:
parent
863fa5cc46
commit
ab61faaba5
|
@ -8,7 +8,6 @@ import { FuseNavigationService } from '@fuse/components/navigation/navigation.se
|
||||||
|
|
||||||
import { navigation } from 'app/navigation/navigation';
|
import { navigation } from 'app/navigation/navigation';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'fuse-theme-options',
|
selector : 'fuse-theme-options',
|
||||||
templateUrl: './theme-options.component.html',
|
templateUrl: './theme-options.component.html',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatDividerModule, MatFormFieldModule, MatIconModule, MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule } from '@angular/material';
|
import { MatButtonModule, MatDividerModule, MatFormFieldModule, MatIconModule, MatOptionModule, MatRadioModule, MatSelectModule, MatSlideToggleModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseMaterialColorPickerModule } from '@fuse/components/material-color-picker/material-color-picker.module';
|
import { FuseMaterialColorPickerModule } from '@fuse/components/material-color-picker/material-color-picker.module';
|
||||||
import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-options.component';
|
import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-options.component';
|
||||||
|
@ -17,6 +17,7 @@ import { FuseThemeOptionsComponent } from '@fuse/components/theme-options/theme-
|
||||||
|
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
MatDividerModule,
|
MatDividerModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
|
|
|
@ -12,9 +12,7 @@ import { FuseMatSidenavHelperService } from '@fuse/directives/fuse-mat-sidenav/f
|
||||||
export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
matchMediaSubscription: Subscription;
|
matchMediaSubscription: Subscription;
|
||||||
|
|
||||||
@HostBinding('class.mat-is-locked-open') isLockedOpen = true;
|
@HostBinding('class.mat-is-locked-open') isLockedOpen = true;
|
||||||
|
|
||||||
@Input('fuseMatSidenavHelper') id: string;
|
@Input('fuseMatSidenavHelper') id: string;
|
||||||
@Input('mat-is-locked-open') matIsLockedOpenBreakpoint: string;
|
@Input('mat-is-locked-open') matIsLockedOpenBreakpoint: string;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { AfterViewInit, Directive, ElementRef, HostListener, OnDestroy } from '@angular/core';
|
import { AfterViewInit, Directive, ElementRef, HostListener, OnDestroy, OnInit } from '@angular/core';
|
||||||
import { Platform } from '@angular/cdk/platform';
|
import { Platform } from '@angular/cdk/platform';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
||||||
|
@ -6,11 +6,10 @@ import PerfectScrollbar from 'perfect-scrollbar';
|
||||||
|
|
||||||
import { FuseConfigService } from '@fuse/services/config.service';
|
import { FuseConfigService } from '@fuse/services/config.service';
|
||||||
|
|
||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[fusePerfectScrollbar]'
|
selector: '[fusePerfectScrollbar]'
|
||||||
})
|
})
|
||||||
export class FusePerfectScrollbarDirective implements AfterViewInit, OnDestroy
|
export class FusePerfectScrollbarDirective implements OnInit, AfterViewInit, OnDestroy
|
||||||
{
|
{
|
||||||
onConfigChanged: Subscription;
|
onConfigChanged: Subscription;
|
||||||
isDisableCustomScrollbars = false;
|
isDisableCustomScrollbars = false;
|
||||||
|
@ -23,14 +22,17 @@ export class FusePerfectScrollbarDirective implements AfterViewInit, OnDestroy
|
||||||
private fuseConfig: FuseConfigService,
|
private fuseConfig: FuseConfigService,
|
||||||
private platform: Platform
|
private platform: Platform
|
||||||
)
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit()
|
||||||
{
|
{
|
||||||
this.onConfigChanged =
|
this.onConfigChanged =
|
||||||
this.fuseConfig.onConfigChanged
|
this.fuseConfig.onConfigChanged.subscribe(
|
||||||
.subscribe(
|
(settings) => {
|
||||||
(settings) => {
|
this.isDisableCustomScrollbars = !settings.customScrollbars;
|
||||||
this.isDisableCustomScrollbars = !settings.customScrollbars;
|
}
|
||||||
}
|
);
|
||||||
);
|
|
||||||
|
|
||||||
if ( this.platform.ANDROID || this.platform.IOS )
|
if ( this.platform.ANDROID || this.platform.IOS )
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,7 +66,7 @@ const appRoutes: Routes = [
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// SharedModule,
|
// SharedModule,
|
||||||
MaterialModule,
|
// MaterialModule,
|
||||||
|
|
||||||
// Fuse Main and Shared modules
|
// Fuse Main and Shared modules
|
||||||
FuseModule.forRoot(fuseConfig),
|
FuseModule.forRoot(fuseConfig),
|
||||||
|
|
|
@ -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, MatSelectModule, MatSidenavModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
import { FuseAcademyCoursesComponent } from './courses/courses.component';
|
import { FuseAcademyCoursesComponent } from './courses/courses.component';
|
||||||
|
@ -30,14 +32,22 @@ const routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes)
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseAcademyCoursesComponent,
|
FuseAcademyCoursesComponent,
|
||||||
FuseAcademyCourseComponent
|
FuseAcademyCourseComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
|
||||||
|
FuseSharedModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
AcademyCoursesService,
|
AcademyCoursesService,
|
||||||
AcademyCourseService
|
AcademyCourseService
|
||||||
|
|
|
@ -7,13 +7,13 @@ import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path : 'dashboards/project',
|
|
||||||
loadChildren: './dashboards/project/project.module#FuseProjectDashboardModule'
|
|
||||||
},
|
|
||||||
/*{
|
|
||||||
path : 'dashboards/analytics',
|
path : 'dashboards/analytics',
|
||||||
loadChildren: './dashboards/analytics/analytics.module#FuseAnalyticsDashboardModule'
|
loadChildren: './dashboards/analytics/analytics.module#FuseAnalyticsDashboardModule'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path : 'dashboards/project',
|
||||||
|
loadChildren: './dashboards/project/project.module#FuseProjectDashboardModule'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path : 'mail',
|
path : 'mail',
|
||||||
loadChildren: './mail/mail.module#FuseMailModule'
|
loadChildren: './mail/mail.module#FuseMailModule'
|
||||||
|
@ -53,7 +53,7 @@ const routes = [
|
||||||
{
|
{
|
||||||
path : 'scrumboard',
|
path : 'scrumboard',
|
||||||
loadChildren: './scrumboard/scrumboard.module#FuseScrumboardModule'
|
loadChildren: './scrumboard/scrumboard.module#FuseScrumboardModule'
|
||||||
}*/
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
|
@ -1,10 +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 { MatButtonModule, MatDatepickerModule, MatFormFieldModule, MatIconModule, MatInputModule, MatSlideToggleModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
|
import { CalendarModule } from 'angular-calendar';
|
||||||
|
import { ColorPickerModule } from 'ngx-color-picker';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
import { FuseConfirmDialogModule } from '@fuse/components';
|
||||||
|
|
||||||
import { CalendarService } from './calendar.service';
|
import { CalendarService } from './calendar.service';
|
||||||
import { CalendarModule } from 'angular-calendar';
|
|
||||||
import { FuseCalendarComponent } from './calendar.component';
|
import { FuseCalendarComponent } from './calendar.component';
|
||||||
import { FuseCalendarEventFormDialogComponent } from './event-form/event-form.component';
|
import { FuseCalendarEventFormDialogComponent } from './event-form/event-form.component';
|
||||||
|
|
||||||
|
@ -20,15 +25,27 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes),
|
|
||||||
CalendarModule.forRoot()
|
|
||||||
],
|
|
||||||
declarations : [
|
declarations : [
|
||||||
FuseCalendarComponent,
|
FuseCalendarComponent,
|
||||||
FuseCalendarEventFormDialogComponent
|
FuseCalendarEventFormDialogComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatDatepickerModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatSlideToggleModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
|
||||||
|
CalendarModule.forRoot(),
|
||||||
|
ColorPickerModule,
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
FuseConfirmDialogModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
CalendarService
|
CalendarService
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatCardModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatRadioModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
import { FuseChatComponent } from './chat.component';
|
|
||||||
import { ChatService } from './chat.service';
|
import { ChatService } from './chat.service';
|
||||||
|
import { FuseChatComponent } from './chat.component';
|
||||||
import { FuseChatViewComponent } from './chat-view/chat-view.component';
|
import { FuseChatViewComponent } from './chat-view/chat-view.component';
|
||||||
import { FuseChatStartComponent } from './chat-start/chat-start.component';
|
import { FuseChatStartComponent } from './chat-start/chat-start.component';
|
||||||
import { FuseChatChatsSidenavComponent } from './sidenavs/left/chats/chats.component';
|
import { FuseChatChatsSidenavComponent } from './sidenavs/left/chats/chats.component';
|
||||||
|
@ -25,10 +27,6 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes)
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseChatComponent,
|
FuseChatComponent,
|
||||||
FuseChatViewComponent,
|
FuseChatViewComponent,
|
||||||
|
@ -39,6 +37,22 @@ const routes: Routes = [
|
||||||
FuseChatRightSidenavComponent,
|
FuseChatRightSidenavComponent,
|
||||||
FuseChatContactSidenavComponent
|
FuseChatContactSidenavComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCardModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatListModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatRadioModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
|
||||||
|
FuseSharedModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
ChatService
|
ChatService
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { CdkTableModule } from '@angular/cdk/table';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatCheckboxModule, MatDatepickerModule, MatFormFieldModule, MatIconModule, MatInputModule, MatMenuModule, MatRippleModule, MatSidenavModule, MatTableModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
import { FuseConfirmDialogModule } from '@fuse/components';
|
||||||
|
|
||||||
import { FuseContactsMainSidenavComponent } from './sidenavs/main/main.component';
|
import { FuseContactsMainSidenavComponent } from './sidenavs/main/main.component';
|
||||||
import { FuseContactsComponent } from './contacts.component';
|
import { FuseContactsComponent } from './contacts.component';
|
||||||
|
@ -21,10 +25,6 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes)
|
|
||||||
],
|
|
||||||
declarations : [
|
declarations : [
|
||||||
FuseContactsComponent,
|
FuseContactsComponent,
|
||||||
FuseContactsContactListComponent,
|
FuseContactsContactListComponent,
|
||||||
|
@ -32,6 +32,25 @@ const routes: Routes = [
|
||||||
FuseContactsMainSidenavComponent,
|
FuseContactsMainSidenavComponent,
|
||||||
FuseContactsContactFormDialogComponent
|
FuseContactsContactFormDialogComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
CdkTableModule,
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
|
MatDatepickerModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatRippleModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatTableModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
FuseConfirmDialogModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
ContactsService
|
ContactsService
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
import { MatFormFieldModule, MatIconModule, MatMenuModule, MatSelectModule, MatTabsModule } from '@angular/material';
|
||||||
|
|
||||||
import { AgmCoreModule } from '@agm/core';
|
import { AgmCoreModule } from '@agm/core';
|
||||||
|
import { ChartsModule } from 'ng2-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 { FuseWidgetModule } from '@fuse/components/widget/widget.module';
|
||||||
|
@ -22,18 +25,27 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes),
|
|
||||||
FuseWidgetModule,
|
|
||||||
NgxChartsModule,
|
|
||||||
AgmCoreModule.forRoot({
|
|
||||||
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
|
|
||||||
})
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseAnalyticsDashboardComponent
|
FuseAnalyticsDashboardComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatTabsModule,
|
||||||
|
|
||||||
|
AgmCoreModule.forRoot({
|
||||||
|
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
|
||||||
|
}),
|
||||||
|
ChartsModule,
|
||||||
|
NgxChartsModule,
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
FuseWidgetModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
AnalyticsDashboardService
|
AnalyticsDashboardService
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,5 +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 { CdkTableModule } from '@angular/cdk/table';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatDividerModule, MatFormFieldModule, MatIconModule, MatMenuModule, MatSelectModule, MatSidenavModule, MatTableModule, MatTabsModule } from '@angular/material';
|
||||||
|
|
||||||
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
||||||
|
|
||||||
|
@ -8,7 +11,6 @@ import { FuseWidgetModule } from '@fuse/components/widget/widget.module';
|
||||||
|
|
||||||
import { FuseProjectDashboardComponent } from './project.component';
|
import { FuseProjectDashboardComponent } from './project.component';
|
||||||
import { ProjectDashboardService } from './project.service';
|
import { ProjectDashboardService } from './project.service';
|
||||||
import { MaterialModule } from '@fuse/modules/material.module';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -21,16 +23,28 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
RouterModule.forChild(routes),
|
|
||||||
FuseSharedModule,
|
|
||||||
MaterialModule,
|
|
||||||
FuseWidgetModule,
|
|
||||||
NgxChartsModule
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseProjectDashboardComponent
|
FuseProjectDashboardComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
CdkTableModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatDividerModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatTableModule,
|
||||||
|
MatTabsModule,
|
||||||
|
|
||||||
|
NgxChartsModule,
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
FuseWidgetModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
ProjectDashboardService
|
ProjectDashboardService
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,5 +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 { CdkTableModule } from '@angular/cdk/table';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatChipsModule, MatFormFieldModule, MatIconModule, MatInputModule, MatPaginatorModule, MatSelectModule, MatSortModule, MatTableModule, MatTabsModule } from '@angular/material';
|
||||||
|
|
||||||
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
||||||
import { AgmCoreModule } from '@agm/core';
|
import { AgmCoreModule } from '@agm/core';
|
||||||
|
@ -64,15 +67,6 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes),
|
|
||||||
FuseWidgetModule,
|
|
||||||
NgxChartsModule,
|
|
||||||
AgmCoreModule.forRoot({
|
|
||||||
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
|
|
||||||
})
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseEcommerceDashboardComponent,
|
FuseEcommerceDashboardComponent,
|
||||||
FuseEcommerceProductsComponent,
|
FuseEcommerceProductsComponent,
|
||||||
|
@ -80,6 +74,29 @@ const routes: Routes = [
|
||||||
FuseEcommerceOrdersComponent,
|
FuseEcommerceOrdersComponent,
|
||||||
FuseEcommerceOrderComponent
|
FuseEcommerceOrderComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
CdkTableModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatChipsModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatPaginatorModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSortModule,
|
||||||
|
MatTableModule,
|
||||||
|
MatTabsModule,
|
||||||
|
|
||||||
|
NgxChartsModule,
|
||||||
|
AgmCoreModule.forRoot({
|
||||||
|
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
|
||||||
|
}),
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
FuseWidgetModule,
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
EcommerceDashboardService,
|
EcommerceDashboardService,
|
||||||
EcommerceProductsService,
|
EcommerceProductsService,
|
||||||
|
|
|
@ -1,5 +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 { CdkTableModule } from '@angular/cdk/table';
|
||||||
|
|
||||||
|
import { MatButtonModule, MatIconModule, MatSidenavModule, MatSlideToggleModule, MatTableModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
|
@ -21,16 +24,24 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports : [
|
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes)
|
|
||||||
],
|
|
||||||
declarations: [
|
declarations: [
|
||||||
FuseFileManagerComponent,
|
FuseFileManagerComponent,
|
||||||
FuseFileManagerFileListComponent,
|
FuseFileManagerFileListComponent,
|
||||||
FuseFileManagerMainSidenavComponent,
|
FuseFileManagerMainSidenavComponent,
|
||||||
FuseFileManagerDetailsSidenavComponent
|
FuseFileManagerDetailsSidenavComponent
|
||||||
],
|
],
|
||||||
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
CdkTableModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatSlideToggleModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatTableModule,
|
||||||
|
|
||||||
|
FuseSharedModule
|
||||||
|
],
|
||||||
providers : [
|
providers : [
|
||||||
FileManagerService
|
FileManagerService
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,8 +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 { MatButtonModule, MatCheckboxModule, MatDialogModule, MatFormFieldModule, MatIconModule, MatInputModule, MatMenuModule, MatSelectModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
|
import { MailAppStoreModule } from './store/store.module';
|
||||||
|
import * as fromGuards from './store/guards/index';
|
||||||
|
|
||||||
import { FuseMailNgrxComponent } from './mail.component';
|
import { FuseMailNgrxComponent } from './mail.component';
|
||||||
import { FuseMailNgrxMainSidenavComponent } from './sidenavs/main/main-sidenav.component';
|
import { FuseMailNgrxMainSidenavComponent } from './sidenavs/main/main-sidenav.component';
|
||||||
import { FuseMailNgrxListItemComponent } from './mail-list/mail-list-item/mail-list-item.component';
|
import { FuseMailNgrxListItemComponent } from './mail-list/mail-list-item/mail-list-item.component';
|
||||||
|
@ -10,8 +17,6 @@ import { FuseMailNgrxListComponent } from './mail-list/mail-list.component';
|
||||||
import { FuseMailNgrxDetailsComponent } from './mail-details/mail-details.component';
|
import { FuseMailNgrxDetailsComponent } from './mail-details/mail-details.component';
|
||||||
import { MailNgrxService } from './mail.service';
|
import { MailNgrxService } from './mail.service';
|
||||||
import { FuseMailNgrxComposeDialogComponent } from './dialogs/compose/compose.component';
|
import { FuseMailNgrxComposeDialogComponent } from './dialogs/compose/compose.component';
|
||||||
import * as fromGuards from './store/guards/index';
|
|
||||||
import { MailAppStoreModule } from './store/store.module';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -60,8 +65,23 @@ const routes: Routes = [
|
||||||
FuseMailNgrxComposeDialogComponent
|
FuseMailNgrxComposeDialogComponent
|
||||||
],
|
],
|
||||||
imports : [
|
imports : [
|
||||||
FuseSharedModule,
|
|
||||||
RouterModule.forChild(routes),
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
|
MatDialogModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
|
||||||
|
TranslateModule,
|
||||||
|
|
||||||
|
FuseSharedModule,
|
||||||
|
|
||||||
MailAppStoreModule
|
MailAppStoreModule
|
||||||
],
|
],
|
||||||
providers : [
|
providers : [
|
||||||
|
|
|
@ -18,21 +18,6 @@
|
||||||
|
|
||||||
<div class="time">{{mail.time}}</div>
|
<div class="time">{{mail.time}}</div>
|
||||||
|
|
||||||
<!--<div class="actions" fxLayout="row" fxLayoutAlign="start center" fxHide fxShow.gt-sm>
|
|
||||||
|
|
||||||
<button mat-button class="mat-icon-button" (click)="toggleStar($event)" aria-label="Toggle star">
|
|
||||||
<mat-icon *ngIf="mail.starred">star</mat-icon>
|
|
||||||
<mat-icon *ngIf="!mail.starred">star_outline</mat-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button mat-button class="mat-icon-button" (click)="toggleImportant($event)"
|
|
||||||
aria-label="Toggle important">
|
|
||||||
<mat-icon *ngIf="mail.important">label</mat-icon>
|
|
||||||
<mat-icon *ngIf="!mail.important">label_outline</mat-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>-->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +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 { MatButtonModule, MatCheckboxModule, MatDialogModule, MatFormFieldModule, MatIconModule, MatInputModule, MatMenuModule, MatSelectModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
|
||||||
|
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
import { MailService } from './mail.service';
|
import { MailService } from './mail.service';
|
||||||
|
@ -70,8 +74,22 @@ const routes: Routes = [
|
||||||
FuseMailComposeDialogComponent
|
FuseMailComposeDialogComponent
|
||||||
],
|
],
|
||||||
imports : [
|
imports : [
|
||||||
FuseSharedModule,
|
RouterModule.forChild(routes),
|
||||||
RouterModule.forChild(routes)
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
|
MatDialogModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
|
||||||
|
TranslateModule,
|
||||||
|
|
||||||
|
FuseSharedModule
|
||||||
],
|
],
|
||||||
providers : [
|
providers : [
|
||||||
MailService
|
MailService
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<!-- CARD LABELS -->
|
<!-- CARD LABELS -->
|
||||||
<div *ngIf="card.idLabels.length > 0"
|
<div *ngIf="card.idLabels.length > 0"
|
||||||
class="list-card-labels"
|
class="list-card-labels"
|
||||||
fxLayout="row" layout-wrap>
|
fxLayout="row" fxLayoutWrap>
|
||||||
|
|
||||||
<span class="list-card-label"
|
<span class="list-card-label"
|
||||||
[ngClass]="board.labels | getById:labelId:'color'"
|
[ngClass]="board.labels | getById:labelId:'color'"
|
||||||
|
|
|
@ -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, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatSidenavModule, MatToolbarModule, MatTooltipModule } from '@angular/material';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
import { BoardResolve, ScrumboardService } from './scrumboard.service';
|
import { BoardResolve, ScrumboardService } from './scrumboard.service';
|
||||||
|
@ -16,6 +18,8 @@ import { FuseScrumboardLabelSelectorComponent } from './board/dialogs/card/label
|
||||||
import { FuseScrumboardEditBoardNameComponent } from './board/edit-board-name/edit-board-name.component';
|
import { FuseScrumboardEditBoardNameComponent } from './board/edit-board-name/edit-board-name.component';
|
||||||
import { FuseScrumboardBoardSettingsSidenavComponent } from './board/sidenavs/settings/settings.component';
|
import { FuseScrumboardBoardSettingsSidenavComponent } from './board/sidenavs/settings/settings.component';
|
||||||
import { FuseScrumboardBoardColorSelectorComponent } from './board/sidenavs/settings/board-color-selector/board-color-selector.component';
|
import { FuseScrumboardBoardColorSelectorComponent } from './board/sidenavs/settings/board-color-selector/board-color-selector.component';
|
||||||
|
import { NgxDnDModule } from '@swimlane/ngx-dnd';
|
||||||
|
import { FuseMaterialColorPickerModule } from '@fuse/components';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -54,8 +58,27 @@ const routes: Routes = [
|
||||||
FuseScrumboardBoardColorSelectorComponent
|
FuseScrumboardBoardColorSelectorComponent
|
||||||
],
|
],
|
||||||
imports : [
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
|
MatChipsModule,
|
||||||
|
MatDatepickerModule,
|
||||||
|
MatDialogModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatListModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatProgressBarModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
MatTooltipModule,
|
||||||
|
|
||||||
|
NgxDnDModule,
|
||||||
|
|
||||||
FuseSharedModule,
|
FuseSharedModule,
|
||||||
RouterModule.forChild(routes)
|
FuseMaterialColorPickerModule
|
||||||
],
|
],
|
||||||
providers : [
|
providers : [
|
||||||
ScrumboardService,
|
ScrumboardService,
|
||||||
|
|
|
@ -1,6 +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 { MatButtonModule, MatCheckboxModule, MatDatepickerModule, MatFormFieldModule, MatIconModule, MatInputModule, MatMenuModule, MatSelectModule, MatSidenavModule } from '@angular/material';
|
||||||
|
|
||||||
|
import { NgxDnDModule } from '@swimlane/ngx-dnd';
|
||||||
|
|
||||||
import { FuseSharedModule } from '@fuse/shared.module';
|
import { FuseSharedModule } from '@fuse/shared.module';
|
||||||
|
|
||||||
import { TodoService } from './todo.service';
|
import { TodoService } from './todo.service';
|
||||||
|
@ -68,8 +72,21 @@ const routes: Routes = [
|
||||||
FuseTodoDetailsComponent
|
FuseTodoDetailsComponent
|
||||||
],
|
],
|
||||||
imports : [
|
imports : [
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
|
||||||
|
MatButtonModule,
|
||||||
|
MatCheckboxModule,
|
||||||
|
MatDatepickerModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatMenuModule,
|
||||||
|
MatSelectModule,
|
||||||
|
MatSidenavModule,
|
||||||
|
|
||||||
|
NgxDnDModule,
|
||||||
|
|
||||||
FuseSharedModule,
|
FuseSharedModule,
|
||||||
RouterModule.forChild(routes)
|
|
||||||
],
|
],
|
||||||
providers : [
|
providers : [
|
||||||
TodoService
|
TodoService
|
||||||
|
|
|
@ -45,7 +45,10 @@ fuse-sidebar {
|
||||||
}
|
}
|
||||||
|
|
||||||
fuse-navbar {
|
fuse-navbar {
|
||||||
height: 100%;
|
|
||||||
|
&:not(.top-navbar) {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-vertical {
|
.navbar-vertical {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -15,7 +15,20 @@ import { FuseNavigationService } from '@fuse/components/navigation/navigation.se
|
||||||
})
|
})
|
||||||
export class FuseNavbarComponent implements OnDestroy
|
export class FuseNavbarComponent implements OnDestroy
|
||||||
{
|
{
|
||||||
@ViewChild(FusePerfectScrollbarDirective) fusePerfectScrollbarDirective;
|
private fusePerfectScrollbar: FusePerfectScrollbarDirective;
|
||||||
|
|
||||||
|
@ViewChild(FusePerfectScrollbarDirective) set directive(theDirective: FusePerfectScrollbarDirective)
|
||||||
|
{
|
||||||
|
this.fusePerfectScrollbar = theDirective;
|
||||||
|
|
||||||
|
this.navigationServiceWatcher =
|
||||||
|
this.navigationService.onItemCollapseToggled.subscribe(() => {
|
||||||
|
this.fusePerfectScrollbarUpdateTimeout = setTimeout(() => {
|
||||||
|
this.fusePerfectScrollbar.update();
|
||||||
|
}, 310);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Input() layout;
|
@Input() layout;
|
||||||
navigation: any;
|
navigation: any;
|
||||||
navigationServiceWatcher: Subscription;
|
navigationServiceWatcher: Subscription;
|
||||||
|
@ -31,19 +44,19 @@ export class FuseNavbarComponent implements OnDestroy
|
||||||
|
|
||||||
// Default layout
|
// Default layout
|
||||||
this.layout = 'vertical';
|
this.layout = 'vertical';
|
||||||
|
|
||||||
this.navigationServiceWatcher =
|
|
||||||
this.navigationService.onItemCollapseToggled.subscribe(() => {
|
|
||||||
this.fusePerfectScrollbarUpdateTimeout = setTimeout(() => {
|
|
||||||
this.fusePerfectScrollbarDirective.update();
|
|
||||||
}, 310);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy()
|
ngOnDestroy()
|
||||||
{
|
{
|
||||||
clearTimeout(this.fusePerfectScrollbarUpdateTimeout);
|
if ( this.fusePerfectScrollbarUpdateTimeout )
|
||||||
this.navigationServiceWatcher.unsubscribe();
|
{
|
||||||
|
clearTimeout(this.fusePerfectScrollbarUpdateTimeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( this.navigationServiceWatcher )
|
||||||
|
{
|
||||||
|
this.navigationServiceWatcher.unsubscribe();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleSidebarOpened(key)
|
toggleSidebarOpened(key)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user