mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
feat(rc6): update to rc6
This commit is contained in:
parent
80a15536a5
commit
3ff5c51f1a
54 changed files with 187 additions and 193 deletions
9
.vscode/launch.json
vendored
9
.vscode/launch.json
vendored
|
|
@ -5,7 +5,12 @@
|
||||||
"name": "Launch Chrome against localhost, with sourcemaps",
|
"name": "Launch Chrome against localhost, with sourcemaps",
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "http://localhost:3000",
|
"url": "http://localhost:3000/*",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--disable-web-security",
|
||||||
|
"--user-data-dir",
|
||||||
|
"--remote-debugging-port=9222"
|
||||||
|
],
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"webRoot": "${workspaceRoot}"
|
"webRoot": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
|
|
@ -13,7 +18,7 @@
|
||||||
"name": "Attach to Chrome, with sourcemaps",
|
"name": "Attach to Chrome, with sourcemaps",
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"url": "http://localhost:3000",
|
"url": "http://localhost:3000/*",
|
||||||
"port": 9222,
|
"port": 9222,
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"webRoot": "${workspaceRoot}"
|
"webRoot": "${workspaceRoot}"
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ module.exports = webpackMerge(commonConfig, {
|
||||||
* See: https://webpack.github.io/docs/list-of-plugins.html#defineplugin
|
* See: https://webpack.github.io/docs/list-of-plugins.html#defineplugin
|
||||||
* See: https://github.com/webpack/docs/wiki/optimization#deduplication
|
* See: https://github.com/webpack/docs/wiki/optimization#deduplication
|
||||||
*/
|
*/
|
||||||
new DedupePlugin(),
|
// new DedupePlugin(), // see: https://github.com/angular/angular-cli/issues/1587
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin: DefinePlugin
|
* Plugin: DefinePlugin
|
||||||
|
|
|
||||||
42
package.json
42
package.json
|
|
@ -6,18 +6,26 @@
|
||||||
"homepage": "http://akveo.github.io/ng2-admin/",
|
"homepage": "http://akveo.github.io/ng2-admin/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angularclass/webpack-toolkit": "^1.3.3",
|
|
||||||
|
"@angular/common": "2.0.0-rc.6",
|
||||||
|
"@angular/compiler": "2.0.0-rc.6",
|
||||||
|
"@angular/core": "2.0.0-rc.6",
|
||||||
|
"@angular/forms": "^2.0.0-rc.6",
|
||||||
|
"@angular/http": "2.0.0-rc.6",
|
||||||
|
"@angular/platform-browser": "2.0.0-rc.6",
|
||||||
|
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
|
||||||
|
"@angular/platform-server": "2.0.0-rc.6",
|
||||||
|
"@angular/router": "3.0.0-rc.2",
|
||||||
|
|
||||||
"@angularclass/request-idle-callback": "^1.0.7",
|
"@angularclass/request-idle-callback": "^1.0.7",
|
||||||
|
"@angularclass/webpack-toolkit": "^1.3.3",
|
||||||
"@angularclass/conventions-loader": "^1.0.2",
|
"@angularclass/conventions-loader": "^1.0.2",
|
||||||
"@angular/http": "2.0.0-rc.5",
|
|
||||||
"@angular/common": "2.0.0-rc.5",
|
"http-server": "^0.9.0",
|
||||||
"@angular/compiler": "2.0.0-rc.5",
|
"ie-shim": "^0.1.0",
|
||||||
"@angular/core": "2.0.0-rc.5",
|
"rxjs": "5.0.0-beta.11",
|
||||||
"@angular/forms": "^0.3.0",
|
"zone.js": "~0.6.17",
|
||||||
"@angular/platform-browser": "2.0.0-rc.5",
|
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
|
|
||||||
"@angular/platform-server": "2.0.0-rc.5",
|
|
||||||
"@angular/router": "github:gdi2290/router-builds",
|
|
||||||
"amcharts3": "github:amcharts/amcharts3",
|
"amcharts3": "github:amcharts/amcharts3",
|
||||||
"ammap3": "github:amcharts/ammap3",
|
"ammap3": "github:amcharts/ammap3",
|
||||||
"animate.css": "^3.5.1",
|
"animate.css": "^3.5.1",
|
||||||
|
|
@ -33,23 +41,19 @@
|
||||||
"font-awesome-sass-loader": "^1.0.2",
|
"font-awesome-sass-loader": "^1.0.2",
|
||||||
"fullcalendar": "^2.7.2",
|
"fullcalendar": "^2.7.2",
|
||||||
"google-maps": "^3.2.1",
|
"google-maps": "^3.2.1",
|
||||||
"http-server": "^0.9.0",
|
|
||||||
"ie-shim": "^0.1.0",
|
|
||||||
"ionicons": "^2.0.1",
|
"ionicons": "^2.0.1",
|
||||||
"jquery": "^2.2.3",
|
"jquery": "^2.2.3",
|
||||||
"jquery-slimscroll": "^1.3.6",
|
"jquery-slimscroll": "^1.3.6",
|
||||||
"leaflet": "^0.7.7",
|
"leaflet": "^0.7.7",
|
||||||
"leaflet-map": "^0.2.1",
|
"leaflet-map": "^0.2.1",
|
||||||
"lodash": "^4.12.0",
|
"lodash": "^4.12.0",
|
||||||
"ng2-bootstrap": "1.1.0",
|
"ng2-bootstrap": "1.1.2",
|
||||||
"ng2-tree": "^0.0.2-7",
|
"ng2-tree": "^0.0.2-7",
|
||||||
"ng2-ckeditor": "1.0.6",
|
"ng2-ckeditor": "1.0.7",
|
||||||
"ng2-smart-table": "^0.1.6",
|
"ng2-smart-table": "^0.2.4",
|
||||||
"ng2-uploader": "0.5.14",
|
"ng2-uploader": "0.5.14",
|
||||||
"normalize.css": "^4.1.1",
|
"normalize.css": "^4.1.1",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"tether": "^1.2.4"
|
||||||
"tether": "^1.2.4",
|
|
||||||
"zone.js": "~0.6.17"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angularclass/hmr": "^1.0.1",
|
"@angularclass/hmr": "^1.0.1",
|
||||||
|
|
@ -64,7 +68,7 @@
|
||||||
"@types/lodash": "0.0.28",
|
"@types/lodash": "0.0.28",
|
||||||
"angular2-hmr": "~0.8.0",
|
"angular2-hmr": "~0.8.0",
|
||||||
"gh-pages": "^0.11.0",
|
"gh-pages": "^0.11.0",
|
||||||
"parse5": "^1.5.1",
|
"parse5": "^1.3.2",
|
||||||
"rimraf": "^2.5.2",
|
"rimraf": "^2.5.2",
|
||||||
"codelyzer": "~0.0.21",
|
"codelyzer": "~0.0.21",
|
||||||
"tslint": "^3.15.1",
|
"tslint": "^3.15.1",
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import './app.loader.ts';
|
import './app.loader.ts';
|
||||||
import { Component, ViewEncapsulation } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import { GlobalState } from './global.state';
|
import { GlobalState } from './global.state';
|
||||||
import { BaThemeConfigProvider, BaThemeConfig } from './theme';
|
|
||||||
import { BaThemeRun } from './theme/directives';
|
|
||||||
import { BaImageLoaderService, BaThemePreloader, BaThemeSpinner } from './theme/services';
|
import { BaImageLoaderService, BaThemePreloader, BaThemeSpinner } from './theme/services';
|
||||||
import { layoutPaths } from './theme/theme.constants';
|
import { layoutPaths } from './theme/theme.constants';
|
||||||
|
|
||||||
|
|
@ -12,9 +10,6 @@ import { layoutPaths } from './theme/theme.constants';
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app',
|
selector: 'app',
|
||||||
pipes: [],
|
|
||||||
directives: [BaThemeRun],
|
|
||||||
providers: [BaThemeConfigProvider, BaThemeConfig, BaImageLoaderService, BaThemeSpinner],
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('normalize.css'), require('./app.scss')],
|
styles: [require('normalize.css'), require('./app.scss')],
|
||||||
template: `
|
template: `
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
import {Component} from "@angular/core";
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
// import {ChartJs} from "./components/chartJs";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'maps',
|
selector: 'maps',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import { NgaModule } from '../../theme/nga.module';
|
||||||
import { routing } from './charts.routing';
|
import { routing } from './charts.routing';
|
||||||
import { Charts } from './charts.component';
|
import { Charts } from './charts.component';
|
||||||
import { ChartistJs } from './components/chartistJs/chartistJs.component';
|
import { ChartistJs } from './components/chartistJs/chartistJs.component';
|
||||||
|
import { ChartistJsService } from './components/chartistJs/chartistJs.service';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
@ -18,6 +19,9 @@ import { ChartistJs } from './components/chartistJs/chartistJs.component';
|
||||||
declarations: [
|
declarations: [
|
||||||
Charts,
|
Charts,
|
||||||
ChartistJs
|
ChartistJs
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
ChartistJsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class ChartsModule {}
|
export default class ChartsModule {}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import {ChartistJsService} from './chartistJs.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'chartist-js',
|
selector: 'chartist-js',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
pipes: [],
|
|
||||||
providers: [ChartistJsService],
|
|
||||||
styles: [require('chartist/dist/chartist.css'), require('./chartistJs.scss')],
|
styles: [require('chartist/dist/chartist.css'), require('./chartistJs.scss')],
|
||||||
template: require('./chartistJs.html'),
|
template: require('./chartistJs.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'components',
|
selector: 'components',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,13 @@ 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 { NgaModule } from '../../theme/nga.module';
|
import { NgaModule } from '../../theme/nga.module';
|
||||||
|
import { TreeComponent } from 'ng2-tree/index';
|
||||||
|
|
||||||
import { routing } from './components.routing';
|
import { routing } from './components.routing';
|
||||||
import { Components } from './components.component';
|
import { Components } from './components.component';
|
||||||
import { TreeView } from './components/treeView/treeView.component';
|
import { TreeView } from './components/treeView/treeView.component';
|
||||||
|
|
||||||
|
// TODO: tree component?
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
|
|
@ -17,7 +18,8 @@ import { TreeView } from './components/treeView/treeView.component';
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
Components,
|
Components,
|
||||||
TreeView
|
TreeView,
|
||||||
|
TreeComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class ComponentsModule {}
|
export default class ComponentsModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {TreeComponent, TreeModel} from 'ng2-tree';
|
import {TreeModel} from 'ng2-tree';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'tree-view',
|
selector: 'tree-view',
|
||||||
directives: [TreeComponent],
|
|
||||||
template: require('./treeView.html'),
|
template: require('./treeView.html'),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ import {CalendarService} from './calendar.service';
|
||||||
selector: 'calendar',
|
selector: 'calendar',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./calendar.scss')],
|
styles: [require('./calendar.scss')],
|
||||||
template: require('./calendar.html'),
|
template: require('./calendar.html')
|
||||||
providers: [CalendarService]
|
|
||||||
})
|
})
|
||||||
export class Calendar {
|
export class Calendar {
|
||||||
|
|
||||||
|
|
@ -26,8 +25,8 @@ export class Calendar {
|
||||||
private _onSelect(start, end):void {
|
private _onSelect(start, end):void {
|
||||||
|
|
||||||
if (this._calendar != null) {
|
if (this._calendar != null) {
|
||||||
var title = prompt('Event Title:');
|
let title = prompt('Event Title:');
|
||||||
var eventData;
|
let eventData;
|
||||||
if (title) {
|
if (title) {
|
||||||
eventData = {
|
eventData = {
|
||||||
title: title,
|
title: title,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,13 @@ import { LineChart } from './lineChart';
|
||||||
import { Feed } from './feed';
|
import { Feed } from './feed';
|
||||||
import { Todo } from './todo';
|
import { Todo } from './todo';
|
||||||
import { Calendar } from './calendar';
|
import { Calendar } from './calendar';
|
||||||
|
import { CalendarService } from './calendar/calendar.service';
|
||||||
|
import { FeedService } from './feed/feed.service';
|
||||||
|
import { LineChartService } from './lineChart/lineChart.service';
|
||||||
|
import { PieChartService } from './pieChart/pieChart.service';
|
||||||
|
import { TodoService } from './todo/todo.service';
|
||||||
|
import { TrafficChartService } from './trafficChart/trafficChart.service';
|
||||||
|
import { UsersMapService } from './usersMap/usersMap.service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
@ -32,6 +39,15 @@ import { Calendar } from './calendar';
|
||||||
Todo,
|
Todo,
|
||||||
Calendar,
|
Calendar,
|
||||||
Dashboard
|
Dashboard
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
CalendarService,
|
||||||
|
FeedService,
|
||||||
|
LineChartService,
|
||||||
|
PieChartService,
|
||||||
|
TodoService,
|
||||||
|
TrafficChartService,
|
||||||
|
UsersMapService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class DashboardModule {}
|
export default class DashboardModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {BaProfilePicturePipe, BaAppPicturePipe} from '../../../theme/pipes';
|
|
||||||
import {FeedService} from './feed.service';
|
import {FeedService} from './feed.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'feed',
|
selector: 'feed',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [FeedService],
|
|
||||||
pipes: [BaProfilePicturePipe, BaAppPicturePipe],
|
|
||||||
styles: [require('./feed.scss')],
|
styles: [require('./feed.scss')],
|
||||||
template: require('./feed.html')
|
template: require('./feed.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {LineChartService} from './lineChart.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'line-chart',
|
selector: 'line-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [LineChartService],
|
|
||||||
styles: [require('./lineChart.scss')],
|
styles: [require('./lineChart.scss')],
|
||||||
template: require('./lineChart.html')
|
template: require('./lineChart.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import './pieChart.loader.ts';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pie-chart',
|
selector: 'pie-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [PieChartService],
|
|
||||||
styles: [require('./pieChart.scss')],
|
styles: [require('./pieChart.scss')],
|
||||||
template: require('./pieChart.html')
|
template: require('./pieChart.html')
|
||||||
})
|
})
|
||||||
|
|
@ -50,7 +49,7 @@ export class PieChart {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _updatePieCharts() {
|
private _updatePieCharts() {
|
||||||
let getRandomArbitrary = (min, max) => { return Math.random() * (max - min) + min };
|
let getRandomArbitrary = (min, max) => { return Math.random() * (max - min) + min; };
|
||||||
|
|
||||||
jQuery('.pie-charts .chart').each(function(index, chart) {
|
jQuery('.pie-charts .chart').each(function(index, chart) {
|
||||||
jQuery(chart).data('easyPieChart').update(getRandomArbitrary(55, 90));
|
jQuery(chart).data('easyPieChart').update(getRandomArbitrary(55, 90));
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {BaAppPicturePipe} from '../../../theme/pipes';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'popular-app',
|
selector: 'popular-app',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
pipes: [BaAppPicturePipe],
|
|
||||||
styles: [require('./popularApp.scss')],
|
styles: [require('./popularApp.scss')],
|
||||||
template: require('./popularApp.html')
|
template: require('./popularApp.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {TodoService} from './todo.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'todo',
|
selector: 'todo',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [TodoService],
|
|
||||||
styles: [require('./todo.scss')],
|
styles: [require('./todo.scss')],
|
||||||
template: require('./todo.html')
|
template: require('./todo.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {TrafficChartService} from './trafficChart.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'traffic-chart',
|
selector: 'traffic-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [TrafficChartService],
|
|
||||||
styles: [require('./trafficChart.scss')],
|
styles: [require('./trafficChart.scss')],
|
||||||
template: require('./trafficChart.html')
|
template: require('./trafficChart.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {UsersMapService} from './usersMap.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'users-map',
|
selector: 'users-map',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [UsersMapService],
|
|
||||||
styles: [require('./usersMap.scss')],
|
styles: [require('./usersMap.scss')],
|
||||||
template: require('./usersMap.html')
|
template: require('./usersMap.html')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
import { Component, ViewEncapsulation } from '@angular/core';
|
import { Component, ViewEncapsulation } from '@angular/core';
|
||||||
import {CKEditor} from 'ng2-ckeditor';
|
|
||||||
|
|
||||||
import './ckeditor.loader.ts';
|
import './ckeditor.loader.ts';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ckeditor-component',
|
selector: 'ckeditor-component',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [CKEditor],
|
|
||||||
template: require('./ckeditor.html'),
|
template: require('./ckeditor.html'),
|
||||||
styles: [require('./ckeditor.scss')]
|
styles: [require('./ckeditor.scss')]
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { NgModule } from '@angular/core';
|
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 { CKEditorModule } from 'ng2-ckeditor';
|
||||||
import { NgaModule } from '../../theme/nga.module';
|
import { NgaModule } from '../../theme/nga.module';
|
||||||
|
|
||||||
import { routing } from './editors.routing';
|
import { routing } from './editors.routing';
|
||||||
|
|
@ -13,6 +14,7 @@ import { Ckeditor } from './components/ckeditor/ckeditor.component';
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgaModule,
|
NgaModule,
|
||||||
|
CKEditorModule,
|
||||||
routing
|
routing
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|
@ -20,4 +22,5 @@ import { Ckeditor } from './components/ckeditor/ckeditor.component';
|
||||||
Ckeditor
|
Ckeditor
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class EditorsModule {}
|
export default class EditorsModule {
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
import {StandardInputs} from './components/standardInputs';
|
|
||||||
import {ValidationInputs} from './components/validationInputs';
|
|
||||||
import {GroupInputs} from './components/groupInputs';
|
|
||||||
import {CheckboxInputs} from './components/checkboxInputs';
|
|
||||||
import {Rating} from './components/ratinginputs';
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'inputs',
|
selector: 'inputs',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [StandardInputs, ValidationInputs, GroupInputs, CheckboxInputs, Rating],
|
|
||||||
template: require('./inputs.html'),
|
template: require('./inputs.html'),
|
||||||
})
|
})
|
||||||
export class Inputs {
|
export class Inputs {
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
import {InlineForm} from './components/inlineForm';
|
|
||||||
import {BlockForm} from './components/blockForm';
|
|
||||||
import {HorizontalForm} from './components/horizontalForm';
|
|
||||||
import {BasicForm} from './components/basicForm';
|
|
||||||
import {WithoutLabelsForm} from './components/withoutLabelsForm';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'layouts',
|
selector: 'layouts',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [InlineForm, BlockForm, HorizontalForm, BasicForm, WithoutLabelsForm],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: require('./layouts.html'),
|
template: require('./layouts.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'forms',
|
selector: 'forms',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,17 @@ import { Forms } from './forms.component';
|
||||||
import { Inputs } from './components/inputs';
|
import { Inputs } from './components/inputs';
|
||||||
import { Layouts } from './components/layouts';
|
import { Layouts } from './components/layouts';
|
||||||
|
|
||||||
|
import { StandardInputs } from './components/inputs/components/standardInputs';
|
||||||
|
import { ValidationInputs } from './components/inputs/components/validationInputs';
|
||||||
|
import { GroupInputs } from './components/inputs/components/groupInputs';
|
||||||
|
import { CheckboxInputs } from './components/inputs/components/checkboxInputs';
|
||||||
|
import { Rating } from './components/inputs/components/ratinginputs';
|
||||||
|
|
||||||
|
import { InlineForm } from './components/layouts/components/inlineForm';
|
||||||
|
import { BlockForm } from './components/layouts/components/blockForm';
|
||||||
|
import { HorizontalForm } from './components/layouts/components/horizontalForm';
|
||||||
|
import { BasicForm } from './components/layouts/components/basicForm';
|
||||||
|
import { WithoutLabelsForm } from './components/layouts/components/withoutLabelsForm';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
@ -22,7 +33,18 @@ import { Layouts } from './components/layouts';
|
||||||
declarations: [
|
declarations: [
|
||||||
Layouts,
|
Layouts,
|
||||||
Inputs,
|
Inputs,
|
||||||
Forms
|
Forms,
|
||||||
|
StandardInputs,
|
||||||
|
ValidationInputs,
|
||||||
|
GroupInputs,
|
||||||
|
CheckboxInputs,
|
||||||
|
Rating,
|
||||||
|
InlineForm,
|
||||||
|
BlockForm,
|
||||||
|
HorizontalForm,
|
||||||
|
BasicForm,
|
||||||
|
WithoutLabelsForm
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class FormsModule {}
|
export default class FormsModule {
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import {FormGroup, AbstractControl, FormBuilder, Validators} from '@angular/form
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'login',
|
selector: 'login',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [],
|
|
||||||
styles: [require('./login.scss')],
|
styles: [require('./login.scss')],
|
||||||
template: require('./login.html'),
|
template: require('./login.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import {BubbleMapsService} from './bubbleMaps.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'bubble-maps',
|
selector: 'bubble-maps',
|
||||||
pipes: [],
|
|
||||||
providers: [BubbleMapsService],
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./bubbleMaps.scss')],
|
styles: [require('./bubbleMaps.scss')],
|
||||||
template: require('./bubbleMaps.html'),
|
template: require('./bubbleMaps.html'),
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ import {GoogleMapsLoader} from './googleMaps.loader';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'google-maps',
|
selector: 'google-maps',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [require('./googleMaps.scss')],
|
styles: [require('./googleMaps.scss')],
|
||||||
template: require('./googleMaps.html'),
|
template: require('./googleMaps.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import './leafletMaps.loader';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'leaflet-maps',
|
selector: 'leaflet-maps',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./leafletMaps.scss')],
|
styles: [require('./leafletMaps.scss')],
|
||||||
template: require('./leafletMaps.html')
|
template: require('./leafletMaps.html')
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import {LineMapsService} from './lineMaps.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'line-maps',
|
selector: 'line-maps',
|
||||||
pipes: [],
|
|
||||||
providers: [LineMapsService],
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./lineMaps.scss')],
|
styles: [require('./lineMaps.scss')],
|
||||||
template: require('./lineMaps.html')
|
template: require('./lineMaps.html')
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'maps',
|
selector: 'maps',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ import { BubbleMaps } from './components/bubbleMaps/bubbleMaps.component';
|
||||||
import { GoogleMaps } from './components/googleMaps/googleMaps.component';
|
import { GoogleMaps } from './components/googleMaps/googleMaps.component';
|
||||||
import { LeafletMaps } from './components/leafletMaps/leafletMaps.component';
|
import { LeafletMaps } from './components/leafletMaps/leafletMaps.component';
|
||||||
import { LineMaps } from './components/lineMaps/lineMaps.component';
|
import { LineMaps } from './components/lineMaps/lineMaps.component';
|
||||||
|
import { BubbleMapsService } from './components/bubbleMaps/bubbleMaps.service';
|
||||||
|
import { LineMapsService } from './components/lineMaps/lineMaps.service';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
@ -24,6 +26,10 @@ import { LineMaps } from './components/lineMaps/lineMaps.component';
|
||||||
GoogleMaps,
|
GoogleMaps,
|
||||||
LeafletMaps,
|
LeafletMaps,
|
||||||
LineMaps
|
LineMaps
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
BubbleMapsService,
|
||||||
|
LineMapsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class MapsModule {}
|
export default class MapsModule {}
|
||||||
|
|
|
||||||
|
|
@ -36,28 +36,28 @@ export const PAGES_MENU = [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
//{
|
||||||
path: 'components',
|
// path: 'components',
|
||||||
data: {
|
// data: {
|
||||||
menu: {
|
// menu: {
|
||||||
title: 'Components',
|
// title: 'Components',
|
||||||
icon: 'ion-gear-a',
|
// icon: 'ion-gear-a',
|
||||||
selected: false,
|
// selected: false,
|
||||||
expanded: false,
|
// expanded: false,
|
||||||
order: 250,
|
// order: 250,
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'treeview',
|
// path: 'treeview',
|
||||||
data: {
|
// data: {
|
||||||
menu: {
|
// menu: {
|
||||||
title: 'Tree View',
|
// title: 'Tree View',
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
//},
|
||||||
{
|
{
|
||||||
path: 'charts',
|
path: 'charts',
|
||||||
data: {
|
data: {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {EmailValidator, EqualPasswordsValidator} from '../../theme/validators';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'register',
|
selector: 'register',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [],
|
|
||||||
styles: [require('./register.scss')],
|
styles: [require('./register.scss')],
|
||||||
template: require('./register.html'),
|
template: require('./register.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,10 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {BasicTablesService} from './basicTables.service';
|
|
||||||
import {HoverTable} from './components/hoverTable';
|
|
||||||
import {BorderedTable} from './components/borderedTable';
|
|
||||||
import {CondensedTable} from './components/condensedTable';
|
|
||||||
import {StripedTable} from './components/stripedTable';
|
|
||||||
import {ContextualTable} from './components/contextualTable';
|
|
||||||
import {ResponsiveTable} from './components/responsiveTable';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'basic-tables',
|
selector: 'basic-tables',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [HoverTable, BorderedTable, CondensedTable, StripedTable, ContextualTable, ResponsiveTable],
|
|
||||||
styles: [require('./basicTables.scss')],
|
styles: [require('./basicTables.scss')],
|
||||||
template: require('./basicTables.html'),
|
template: require('./basicTables.html')
|
||||||
providers: [BasicTablesService]
|
|
||||||
})
|
})
|
||||||
export class BasicTables {
|
export class BasicTables {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,13 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
import {NG2_SMART_TABLE_DIRECTIVES, LocalDataSource} from 'ng2-smart-table';
|
|
||||||
import { SmartTablesService } from './smartTables.service';
|
import { SmartTablesService } from './smartTables.service';
|
||||||
|
import { LocalDataSource } from 'ng2-smart-table';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'basic-tables',
|
selector: 'basic-tables',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [NG2_SMART_TABLE_DIRECTIVES],
|
|
||||||
styles: [require('./smartTables.scss')],
|
styles: [require('./smartTables.scss')],
|
||||||
template: require('./smartTables.html'),
|
template: require('./smartTables.html')
|
||||||
providers: [SmartTablesService]
|
|
||||||
})
|
})
|
||||||
export class SmartTables {
|
export class SmartTables {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'forms',
|
selector: 'forms',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,15 @@ import { routing } from './tables.routing';
|
||||||
import { Tables } from './tables.component';
|
import { Tables } from './tables.component';
|
||||||
import { BasicTables } from './components/basicTables/basicTables.component';
|
import { BasicTables } from './components/basicTables/basicTables.component';
|
||||||
import { SmartTables } from './components/smartTables/smartTables.component';
|
import { SmartTables } from './components/smartTables/smartTables.component';
|
||||||
|
import { Ng2SmartTableModule } from 'ng2-smart-table';
|
||||||
|
import { BasicTablesService } from './components/basicTables/basicTables.service';
|
||||||
|
import { ResponsiveTable } from './components/basicTables/components/responsiveTable';
|
||||||
|
import { StripedTable } from './components/basicTables/components/stripedTable';
|
||||||
|
import { BorderedTable } from './components/basicTables/components/borderedTable';
|
||||||
|
import { HoverTable } from './components/basicTables/components/hoverTable';
|
||||||
|
import { CondensedTable } from './components/basicTables/components/condensedTable';
|
||||||
|
import { ContextualTable } from './components/basicTables/components/contextualTable';
|
||||||
|
import { SmartTablesService } from './components/smartTables/smartTables.service';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
@ -14,12 +23,23 @@ import { SmartTables } from './components/smartTables/smartTables.component';
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgaModule,
|
NgaModule,
|
||||||
|
Ng2SmartTableModule,
|
||||||
routing
|
routing
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
Tables,
|
Tables,
|
||||||
BasicTables,
|
BasicTables,
|
||||||
SmartTables
|
SmartTables,
|
||||||
|
HoverTable,
|
||||||
|
BorderedTable,
|
||||||
|
CondensedTable,
|
||||||
|
StripedTable,
|
||||||
|
ContextualTable,
|
||||||
|
ResponsiveTable
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
BasicTablesService,
|
||||||
|
SmartTablesService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class TablesModule {}
|
export default class TablesModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {FlatButtons} from './components/flatButtons';
|
|
||||||
import {RaisedButtons} from './components/raisedButtons';
|
|
||||||
import {SizedButtons} from './components/sizedButtons';
|
|
||||||
import {DisabledButtons} from './components/disabledButtons';
|
|
||||||
import {IconButtons} from './components/iconButtons';
|
|
||||||
import {LargeButtons} from './components/largeButtons';
|
|
||||||
import {DropdownButtons} from './components/dropdownButtons';
|
|
||||||
import {GroupButtons} from './components/groupButtons';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'buttons',
|
selector: 'buttons',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
directives: [
|
|
||||||
FlatButtons,
|
|
||||||
RaisedButtons,
|
|
||||||
SizedButtons,
|
|
||||||
DisabledButtons,
|
|
||||||
IconButtons,
|
|
||||||
LargeButtons,
|
|
||||||
DropdownButtons,
|
|
||||||
GroupButtons
|
|
||||||
],
|
|
||||||
styles: [require('./buttons.scss')],
|
styles: [require('./buttons.scss')],
|
||||||
template: require('./buttons.html'),
|
template: require('./buttons.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {IconsService} from './icons.service';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'icons',
|
selector: 'icons',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
providers: [IconsService],
|
|
||||||
styles: [require('./icons.scss')],
|
styles: [require('./icons.scss')],
|
||||||
template: require('./icons.html'),
|
template: require('./icons.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'typography',
|
selector: 'typography',
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: require('./typography.html'),
|
template: require('./typography.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ui',
|
selector: 'ui',
|
||||||
pipes: [],
|
|
||||||
providers: [],
|
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `<router-outlet></router-outlet>`
|
template: `<router-outlet></router-outlet>`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,16 @@ import { Grid } from './components/grid/grid.component';
|
||||||
import { Icons } from './components/icons/icons.component';
|
import { Icons } from './components/icons/icons.component';
|
||||||
import { Typography } from './components/typography/typography.component';
|
import { Typography } from './components/typography/typography.component';
|
||||||
|
|
||||||
|
import { FlatButtons } from './components/buttons/components/flatButtons';
|
||||||
|
import { RaisedButtons } from './components/buttons/components/raisedButtons';
|
||||||
|
import { SizedButtons } from './components/buttons/components/sizedButtons';
|
||||||
|
import { DisabledButtons } from './components/buttons/components/disabledButtons';
|
||||||
|
import { IconButtons } from './components/buttons/components/iconButtons';
|
||||||
|
import { LargeButtons } from './components/buttons/components/largeButtons';
|
||||||
|
import { DropdownButtons } from './components/buttons/components/dropdownButtons';
|
||||||
|
import { GroupButtons } from './components/buttons/components/groupButtons';
|
||||||
|
import { IconsService } from './components/icons/icons.service';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
@ -25,7 +35,19 @@ import { Typography } from './components/typography/typography.component';
|
||||||
Grid,
|
Grid,
|
||||||
Icons,
|
Icons,
|
||||||
Typography,
|
Typography,
|
||||||
Ui
|
Ui,
|
||||||
|
FlatButtons,
|
||||||
|
RaisedButtons,
|
||||||
|
SizedButtons,
|
||||||
|
DisabledButtons,
|
||||||
|
IconButtons,
|
||||||
|
LargeButtons,
|
||||||
|
DropdownButtons,
|
||||||
|
GroupButtons
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
IconsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class UiModule {}
|
export default class UiModule {
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import {Component, ViewEncapsulation, ViewChild, Input} from '@angular/core';
|
import {Component, ViewEncapsulation, ViewChild, Input} from '@angular/core';
|
||||||
import {BaCardBlur} from './baCardBlur.directive';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-card',
|
selector: 'ba-card',
|
||||||
styles: [require('./baCard.scss')],
|
styles: [require('./baCard.scss')],
|
||||||
directives: [BaCardBlur],
|
|
||||||
template: require('./baCard.html'),
|
template: require('./baCard.html'),
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,7 @@ import {Component, ViewEncapsulation, Input, Output, EventEmitter} from '@angula
|
||||||
import {Router, Routes, NavigationEnd} from '@angular/router';
|
import {Router, Routes, NavigationEnd} from '@angular/router';
|
||||||
import {Subscription} from 'rxjs/Rx';
|
import {Subscription} from 'rxjs/Rx';
|
||||||
|
|
||||||
import {BaSlimScroll} from '../../../theme/directives';
|
|
||||||
import {BaMenuService} from './baMenu.service';
|
import {BaMenuService} from './baMenu.service';
|
||||||
import {BaMenuItem} from './components/baMenuItem';
|
|
||||||
import {GlobalState} from '../../../global.state';
|
import {GlobalState} from '../../../global.state';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -12,8 +10,7 @@ import {GlobalState} from '../../../global.state';
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./baMenu.scss')],
|
styles: [require('./baMenu.scss')],
|
||||||
template: require('./baMenu.html'),
|
template: require('./baMenu.html'),
|
||||||
providers: [BaMenuService],
|
providers: [BaMenuService]
|
||||||
directives: [BaMenuItem, BaSlimScroll]
|
|
||||||
})
|
})
|
||||||
export class BaMenu {
|
export class BaMenu {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,7 @@ import {Component, ViewEncapsulation, Input, Output, EventEmitter} from '@angula
|
||||||
selector: 'ba-menu-item',
|
selector: 'ba-menu-item',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./baMenuItem.scss')],
|
styles: [require('./baMenuItem.scss')],
|
||||||
template: require('./baMenuItem.html'),
|
template: require('./baMenuItem.html')
|
||||||
providers: [],
|
|
||||||
directives: [BaMenuItem]
|
|
||||||
})
|
})
|
||||||
export class BaMenuItem {
|
export class BaMenuItem {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
import {BaMsgCenterService} from './baMsgCenter.service';
|
import {BaMsgCenterService} from './baMsgCenter.service';
|
||||||
import {BaProfilePicturePipe} from '../../pipes';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-msg-center',
|
selector: 'ba-msg-center',
|
||||||
providers: [BaMsgCenterService],
|
providers: [BaMsgCenterService],
|
||||||
styles: [require('./baMsgCenter.scss')],
|
styles: [require('./baMsgCenter.scss')],
|
||||||
template: require('./baMsgCenter.html'),
|
template: require('./baMsgCenter.html')
|
||||||
pipes: [BaProfilePicturePipe]
|
|
||||||
})
|
})
|
||||||
export class BaMsgCenter {
|
export class BaMsgCenter {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
import {Component, Input, Self} from '@angular/core';
|
import {Component, Input, Self} from '@angular/core';
|
||||||
import {ControlValueAccessor, NgModel} from '@angular/forms';
|
import {ControlValueAccessor, NgModel} from '@angular/forms';
|
||||||
import {BaCheckbox} from '../baCheckbox';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-multi-checkbox[ngModel]',
|
selector: 'ba-multi-checkbox[ngModel]',
|
||||||
template: require('./baMultiCheckbox.html'),
|
template: require('./baMultiCheckbox.html'),
|
||||||
directives: [BaCheckbox]
|
|
||||||
})
|
})
|
||||||
export class BaMultiCheckbox implements ControlValueAccessor {
|
export class BaMultiCheckbox implements ControlValueAccessor {
|
||||||
@Input() baMultiCheckboxClass:string;
|
@Input() baMultiCheckboxClass:string;
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,11 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {GlobalState} from '../../../global.state';
|
import {GlobalState} from '../../../global.state';
|
||||||
import {BaProfilePicturePipe} from '../../pipes';
|
|
||||||
import {BaMsgCenter} from '../../components/baMsgCenter';
|
|
||||||
import {BaScrollPosition} from '../../directives';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-page-top',
|
selector: 'ba-page-top',
|
||||||
styles: [require('./baPageTop.scss')],
|
styles: [require('./baPageTop.scss')],
|
||||||
template: require('./baPageTop.html'),
|
template: require('./baPageTop.html'),
|
||||||
directives: [BaMsgCenter, BaScrollPosition],
|
|
||||||
pipes: [BaProfilePicturePipe],
|
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class BaPageTop {
|
export class BaPageTop {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import {Component, ElementRef, HostListener, ViewEncapsulation} from '@angular/core';
|
import {Component, ElementRef, HostListener, ViewEncapsulation} from '@angular/core';
|
||||||
import {GlobalState} from '../../../global.state';
|
import {GlobalState} from '../../../global.state';
|
||||||
import {layoutSizes} from '../../../theme';
|
import {layoutSizes} from '../../../theme';
|
||||||
import {BaMenu} from '../baMenu';
|
|
||||||
import {MENU} from '../../../../app/app.menu';
|
import {MENU} from '../../../../app/app.menu';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
|
@ -9,9 +8,7 @@ import * as _ from 'lodash';
|
||||||
selector: 'ba-sidebar',
|
selector: 'ba-sidebar',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./baSidebar.scss')],
|
styles: [require('./baSidebar.scss')],
|
||||||
template: require('./baSidebar.html'),
|
template: require('./baSidebar.html')
|
||||||
providers: [],
|
|
||||||
directives: [BaMenu]
|
|
||||||
})
|
})
|
||||||
export class BaSidebar {
|
export class BaSidebar {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
export * from './baPageTop';
|
export * from './baPageTop';
|
||||||
export * from './baMsgCenter';
|
export * from './baMsgCenter';
|
||||||
export * from './baSidebar';
|
export * from './baSidebar';
|
||||||
|
export * from './baMenu/components/baMenuItem';
|
||||||
export * from './baMenu';
|
export * from './baMenu';
|
||||||
export * from './baContentTop';
|
export * from './baContentTop';
|
||||||
export * from './baCard';
|
export * from './baCard';
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ import {
|
||||||
BaCheckbox,
|
BaCheckbox,
|
||||||
BaContentTop,
|
BaContentTop,
|
||||||
BaFullCalendar,
|
BaFullCalendar,
|
||||||
|
BaMenuItem,
|
||||||
BaMenu,
|
BaMenu,
|
||||||
BaMsgCenter,
|
BaMsgCenter,
|
||||||
BaMultiCheckbox,
|
BaMultiCheckbox,
|
||||||
|
|
@ -27,6 +28,8 @@ import {
|
||||||
BaSidebar
|
BaSidebar
|
||||||
} from './components';
|
} from './components';
|
||||||
|
|
||||||
|
import { BaCardBlur } from './components/baCard/baCardBlur.directive';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BaScrollPosition,
|
BaScrollPosition,
|
||||||
BaSlimScroll,
|
BaSlimScroll,
|
||||||
|
|
@ -58,6 +61,7 @@ const NGA_COMPONENTS = [
|
||||||
BaCheckbox,
|
BaCheckbox,
|
||||||
BaContentTop,
|
BaContentTop,
|
||||||
BaFullCalendar,
|
BaFullCalendar,
|
||||||
|
BaMenuItem,
|
||||||
BaMenu,
|
BaMenu,
|
||||||
BaMsgCenter,
|
BaMsgCenter,
|
||||||
BaMultiCheckbox,
|
BaMultiCheckbox,
|
||||||
|
|
@ -69,7 +73,8 @@ const NGA_COMPONENTS = [
|
||||||
const NGA_DIRECTIVES = [
|
const NGA_DIRECTIVES = [
|
||||||
BaScrollPosition,
|
BaScrollPosition,
|
||||||
BaSlimScroll,
|
BaSlimScroll,
|
||||||
BaThemeRun
|
BaThemeRun,
|
||||||
|
BaCardBlur
|
||||||
];
|
];
|
||||||
|
|
||||||
const NGA_PIPES = [
|
const NGA_PIPES = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue