feat(aot) - updated aot build

feat(aot) - fixed build

fix(aot) - fixed buttons and modals providers

fix(changes ) - remove unused changes
This commit is contained in:
ESadouski 2017-01-10 11:32:26 +03:00 committed by Alexander Zhukov
parent d89d176e54
commit 4112676ae9
19 changed files with 167 additions and 66 deletions

View file

@ -57,4 +57,5 @@ export class App {
// register some loaders
BaThemePreloader.registerLoader(this._imageLoader.load(layoutPaths.images.root + 'sky-bg.jpg'));
}
}

View file

@ -19,6 +19,8 @@ export class CheckboxInputs {
class: 'col-md-4'
}];
isDisabled: boolean = false;
public checkboxPropertiesMapping = {
model: 'checked',
value: 'name',

View file

@ -6,11 +6,11 @@ import { Component } from '@angular/core';
})
export class Rating {
private _rate1:number = 3;
private _rate2:number = 4;
public _rate1:number = 3;
public _rate2:number = 4;
private _max1:number = 5;
private _max2:number = 10;
public _max1:number = 5;
public _max2:number = 10;
constructor() {
}

View file

@ -8,4 +8,6 @@ export class BasicForm {
constructor() {
}
isChecked: boolean = false;
}

View file

@ -8,4 +8,6 @@ export class HorizontalForm {
constructor() {
}
isRemember: boolean = false;
}

View file

@ -9,4 +9,6 @@ export class InlineForm {
constructor() {
}
isRemember: boolean = false;
}

View file

@ -8,25 +8,25 @@ import { ModuleWithProviders } from '@angular/core';
export const routes: Routes = [
{
path: 'login',
loadChildren: 'app/pages/login/login.module#LoginModule'
loadChildren: './pages/login/login.module#LoginModule'
},
{
path: 'register',
loadChildren: 'app/pages/register/register.module#RegisterModule'
loadChildren: './pages/register/register.module#RegisterModule'
},
{
path: 'pages',
component: Pages,
children: [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: 'dashboard', loadChildren: 'app/pages/dashboard/dashboard.module#DashboardModule' },
{ path: 'editors', loadChildren: 'app/pages/editors/editors.module#EditorsModule' },
// //{ path: 'components', loadChildren: 'app/pages/components/components.module') }
{ path: 'charts', loadChildren: 'app/pages/charts/charts.module#ChartsModule' },
{ path: 'ui', loadChildren: 'app/pages/ui/ui.module#UiModule' },
{ path: 'forms', loadChildren: 'app/pages/forms/forms.module#FormsModule' },
{ path: 'tables', loadChildren: 'app/pages/tables/tables.module#TablesModule' },
{ path: 'maps', loadChildren: 'app/pages/maps/maps.module#MapsModule' }
{ path: 'dashboard', loadChildren: './pages/dashboard/dashboard.module#DashboardModule' },
{ path: 'editors', loadChildren: './pages/editors/editors.module#EditorsModule' },
// //{ path: 'components', loadChildren: './pages/components/components.module') }
{ path: 'charts', loadChildren: './pages/charts/charts.module#ChartsModule' },
{ path: 'ui', loadChildren: './pages/ui/ui.module#UiModule' },
{ path: 'forms', loadChildren: './pages/forms/forms.module#FormsModule' },
{ path: 'tables', loadChildren: './pages/tables/tables.module#TablesModule' },
{ path: 'maps', loadChildren: './pages/maps/maps.module#MapsModule' }
]
}
];

View file

@ -18,7 +18,7 @@ export class BaAmChart {
@Input() baAmChartClass:string;
@Output() onChartReady = new EventEmitter<any>();
@ViewChild('baAmChart') private _selector:ElementRef;
@ViewChild('baAmChart') public _selector:ElementRef;
constructor (private _baAmChartThemeService:BaAmChartThemeService) {
this._loadChartsLib();

View file

@ -24,7 +24,7 @@ export class BaChartistChart {
@Input() baChartistChartClass:string;
@Output() onChartReady = new EventEmitter<any>();
@ViewChild('baChartistChart') private _selector:ElementRef;
@ViewChild('baChartistChart') public _selector:ElementRef;
private chart;
@ -33,7 +33,7 @@ export class BaChartistChart {
this.onChartReady.emit(this.chart);
}
ngOnChanges() {
ngOnChanges(changes) {
if (this.chart) {
(<any>this.chart).update(this.baChartistChartData, this.baChartistChartOptions);
}

View file

@ -13,7 +13,7 @@ export class BaFullCalendar {
@Input() baFullCalendarClass:string;
@Output() onCalendarReady = new EventEmitter<any>();
@ViewChild('baFullCalendar') private _selector:ElementRef;
@ViewChild('baFullCalendar') public _selector:ElementRef;
ngAfterViewInit() {
let calendar = jQuery(this._selector.nativeElement).fullCalendar(this.baFullCalendarConfiguration);

View file

@ -18,7 +18,7 @@ export class BaPictureUploader {
onUpload:EventEmitter<any> = new EventEmitter();
onUploadCompleted:EventEmitter<any> = new EventEmitter();
@ViewChild('fileUpload') protected _fileUpload:ElementRef;
@ViewChild('fileUpload') public _fileUpload:ElementRef;
public uploadInProgress:boolean = false;

View file

@ -1,7 +1,7 @@
<div class="picture-group" [ngClass]="{uploading: uploadInProgress}">
<div class="picture-wrapper" (click)="bringFileSelector();">
<img src="{{ picture }}" *ngIf="picture">
<img src="{{ defaultPicture }}" *ngIf="!picture && defaultPicture">
<img src="{{ defaultPicture }}" ngIf="{{!picture && defaultPicture}}">
<div class="loading" *ngIf="uploadInProgress">
<div class="spinner">