refactor animation imports

This commit is contained in:
József Farkas
2017-06-17 13:49:54 +02:00
parent bd7add80cf
commit baa48f2a72
6 changed files with 14 additions and 47 deletions

View File

@@ -1,18 +1,7 @@
import { import {
ChangeDetectionStrategy, Component, ChangeDetectionStrategy, Input, Output, EventEmitter, OnChanges, SimpleChanges
Component,
EventEmitter,
Input,
OnChanges,
Output,
SimpleChanges,
animate,
keyframes,
state,
style,
transition,
trigger
} from '@angular/core'; } from '@angular/core';
import { animate, keyframes, state, style, transition, trigger } from '@angular/animations';
import { Layer } from '../../../config-serializer/config-items/Layer'; import { Layer } from '../../../config-serializer/config-items/Layer';

View File

@@ -1,17 +1,5 @@
import { import { Component, Input, Output, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
Component, import { animate, state, style, transition, trigger } from '@angular/animations';
EventEmitter,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
animate,
state,
style,
transition,
trigger
} from '@angular/core';
import { KeyModifiers } from '../../../config-serializer/config-items/KeyModifiers'; import { KeyModifiers } from '../../../config-serializer/config-items/KeyModifiers';
import { import {
@@ -32,7 +20,7 @@ import { MapperService } from '../../../services/mapper.service';
state('inactive', style({ state('inactive', style({
height: '0px' height: '0px'
})), })),
state('active', style({ state('active', style({
height: '*' height: '*'
})), })),
transition('inactive <=> active', animate('500ms ease-out')) transition('inactive <=> active', animate('500ms ease-out'))
@@ -152,7 +140,7 @@ export class MacroItemComponent implements OnInit, OnChanges {
} }
if (action.hasScancode()) { if (action.hasScancode()) {
const scancode: string = (this.mapper.scanCodeToText(action.scancode) || [ 'Unknown' ]).join(' '); const scancode: string = (this.mapper.scanCodeToText(action.scancode) || ['Unknown']).join(' ');
if (scancode) { if (scancode) {
this.title += scancode; this.title += scancode;
} }

View File

@@ -1,17 +1,5 @@
import { import { Component, EventEmitter, Input, Output, QueryList, ViewChildren, forwardRef } from '@angular/core';
Component, import { animate, state, style, transition, trigger } from '@angular/animations';
EventEmitter,
Input,
Output,
QueryList,
ViewChildren,
animate,
forwardRef,
state,
style,
transition,
trigger
} from '@angular/core';
import { DragulaService } from 'ng2-dragula/ng2-dragula'; import { DragulaService } from 'ng2-dragula/ng2-dragula';

View File

@@ -1,7 +1,7 @@
import { import {
Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, Output, SimpleChanges, ViewChild, Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, Output, SimpleChanges, ViewChild
animate, keyframes, state, style, transition, trigger
} from '@angular/core'; } from '@angular/core';
import { animate, keyframes, state, style, transition, trigger } from '@angular/animations';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';

View File

@@ -1,4 +1,5 @@
import { Component, Renderer, animate, state, style, transition, trigger } from '@angular/core'; import { Component, Renderer } from '@angular/core';
import { animate, state, style, transition, trigger } from '@angular/animations';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';

View File

@@ -1,7 +1,8 @@
import { import {
Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, Renderer, Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, Renderer,
SimpleChange, animate, group, state, style, transition, trigger SimpleChange
} from '@angular/core'; } from '@angular/core';
import { animate, group, state, style, transition, trigger } from '@angular/animations';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';