style(imports): add spaces in imports

This commit is contained in:
Adam Bradley
2016-06-22 14:29:27 -05:00
parent 469ae82bbc
commit c7fa9490bf
55 changed files with 443 additions and 504 deletions

View File

@@ -1,9 +1,8 @@
import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, HostListener, EventEmitter, Output, Input, Renderer} from '@angular/core';
import {Tab} from './tab';
import {Ion} from '../ion';
import {Config} from '../../config/config';
import { Directive, ElementRef, EventEmitter, HostListener, Input, Output } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
import { Tab } from './tab';
/**
* @private
@@ -29,23 +28,24 @@ export class TabButton extends Ion {
private hasTitleOnly: boolean;
private hasIconOnly: boolean;
private hasBadge: boolean;
private _layout: string;
private layout: string;
@Input() tab: Tab;
@Output() ionSelect: EventEmitter<Tab> = new EventEmitter();
@Output() ionSelect: EventEmitter<Tab> = new EventEmitter<Tab>();
constructor(config: Config, elementRef: ElementRef) {
super(elementRef);
this.disHover = (config.get('hoverCSS') === false);
this._layout = config.get('tabbarLayout');
this.layout = config.get('tabbarLayout');
}
ngOnInit() {
this.tab.btn = this;
this._layout = this.tab.parent.tabbarLayout || this._layout;
this.layout = this.tab.parent.tabbarLayout || this.layout;
this.hasTitle = !!this.tab.tabTitle;
this.hasIcon = !!this.tab.tabIcon && this._layout !== 'icon-hide';
this.hasIcon = !!this.tab.tabIcon && this.layout !== 'icon-hide';
this.hasTitleOnly = (this.hasTitle && !this.hasIcon);
this.hasIconOnly = (this.hasIcon && !this.hasTitle);
this.hasBadge = !!this.tab.tabBadge;

View File

@@ -1,7 +1,7 @@
import {Directive, ElementRef} from '@angular/core';
import { Directive, ElementRef } from '@angular/core';
import {rafFrames} from '../../util/dom';
import {Tab} from './tab';
import { rafFrames } from '../../util/dom';
import { Tab } from './tab';
/**
* @private

View File

@@ -1,13 +1,13 @@
import {Component, Inject, forwardRef, ElementRef, NgZone, Renderer, ComponentResolver, ViewContainerRef, ViewChild, Type, ViewEncapsulation, ChangeDetectorRef, EventEmitter, Input, Output} from '@angular/core';
import { ChangeDetectorRef, Component, ComponentResolver, ElementRef, EventEmitter, forwardRef, Input, Inject, NgZone, Output, Renderer, ViewChild, ViewEncapsulation, ViewContainerRef } from '@angular/core';
import {App} from '../app/app';
import {Config} from '../../config/config';
import {isTrueProperty} from '../../util/util';
import {Keyboard} from '../../util/keyboard';
import {NavController, NavOptions} from '../nav/nav-controller';
import {TabButton} from './tab-button';
import {Tabs} from './tabs';
import {ViewController} from '../nav/view-controller';
import { App } from '../app/app';
import { Config } from '../../config/config';
import { isTrueProperty} from '../../util/util';
import { Keyboard} from '../../util/keyboard';
import { NavController, NavOptions} from '../nav/nav-controller';
import { TabButton} from './tab-button';
import { Tabs} from './tabs';
import { ViewController} from '../nav/view-controller';
/**
@@ -148,7 +148,7 @@ export class Tab extends NavController {
/**
* @input {Page} Set the root page for this tab.
*/
@Input() root: Type;
@Input() root: any;
/**
* @input {object} Any nav-params to pass to the root page of this tab.
@@ -215,7 +215,7 @@ export class Tab extends NavController {
/**
* @output {Tab} Method to call when the current tab is selected
*/
@Output() ionSelect: EventEmitter<Tab> = new EventEmitter();
@Output() ionSelect: EventEmitter<Tab> = new EventEmitter<Tab>();
constructor(
@Inject(forwardRef(() => Tabs)) public parent: Tabs,

View File

@@ -1,17 +1,17 @@
import {Component, ElementRef, Optional, ViewChild, ViewContainerRef, EventEmitter, Output, Input, Renderer, ViewEncapsulation} from '@angular/core';
import { Component, ElementRef, EventEmitter, Input, Output, Optional, Renderer, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';
import {App} from '../app/app';
import {Config} from '../../config/config';
import {Content} from '../content/content';
import {Ion} from '../ion';
import {isBlank, isTrueProperty} from '../../util/util';
import {nativeRaf} from '../../util/dom';
import {NavController} from '../nav/nav-controller';
import {Platform} from '../../platform/platform';
import {Tab} from './tab';
import {TabButton} from './tab-button';
import {TabHighlight} from './tab-highlight';
import {ViewController} from '../nav/view-controller';
import { App } from '../app/app';
import { Config } from '../../config/config';
import { Content } from '../content/content';
import { Ion } from '../ion';
import { isBlank, isTrueProperty } from '../../util/util';
import { nativeRaf } from '../../util/dom';
import { NavController } from '../nav/nav-controller';
import { Platform } from '../../platform/platform';
import { Tab } from './tab';
import { TabButton } from './tab-button';
import { TabHighlight } from './tab-highlight';
import { ViewController } from '../nav/view-controller';
/**
@@ -199,7 +199,7 @@ export class Tabs extends Ion {
/**
* @input {any} Expression to evaluate when the tab changes.
*/
@Output() ionChange: EventEmitter<Tab> = new EventEmitter();
@Output() ionChange: EventEmitter<Tab> = new EventEmitter<Tab>();
/**
* @private