Skip to content

Commit

Permalink
feat(animations): introduce animation support for angular2
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko committed Apr 12, 2016
1 parent 83b8f59 commit 2423ee4
Show file tree
Hide file tree
Showing 73 changed files with 3,438 additions and 676 deletions.
6 changes: 1 addition & 5 deletions modules/angular2/animate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export {Animation} from './src/animate/animation';
export {AnimationBuilder} from './src/animate/animation_builder';
export {BrowserDetails} from './src/animate/browser_details';
export {CssAnimationBuilder} from './src/animate/css_animation_builder';
export {CssAnimationOptions} from './src/animate/css_animation_options';
export * from 'angular2/src/core/metadata/animations';
1 change: 0 additions & 1 deletion modules/angular2/animate/testing.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
export * from 'angular2/src/mock/animation_builder_mock';
5 changes: 1 addition & 4 deletions modules/angular2/platform/testing/browser_static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
import {BROWSER_APP_COMMON_PROVIDERS} from 'angular2/src/platform/browser_common';
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';

import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
import {MockAnimationBuilder} from 'angular2/src/mock/animation_builder_mock';
import {MockDirectiveResolver} from 'angular2/src/mock/directive_resolver_mock';
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
import {MockLocationStrategy} from 'angular2/src/mock/mock_location_strategy';
Expand Down Expand Up @@ -54,8 +52,7 @@ export const ADDITIONAL_TEST_BROWSER_PROVIDERS: Array<any /*Type | Provider | an
Log,
TestComponentBuilder,
new Provider(NgZone, {useClass: MockNgZone}),
new Provider(LocationStrategy, {useClass: MockLocationStrategy}),
new Provider(AnimationBuilder, {useClass: MockAnimationBuilder}),
new Provider(LocationStrategy, {useClass: MockLocationStrategy})
]);

/**
Expand Down
11 changes: 7 additions & 4 deletions modules/angular2/platform/testing/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {
} from 'angular2/core';
import {Parse5DomAdapter} from 'angular2/src/platform/server/parse5_adapter';

import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
import {MockAnimationBuilder} from 'angular2/src/mock/animation_builder_mock';
import {MockDirectiveResolver} from 'angular2/src/mock/directive_resolver_mock';
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
import {MockLocationStrategy} from 'angular2/src/mock/mock_location_strategy';
Expand All @@ -30,6 +28,10 @@ import {RootRenderer} from 'angular2/src/core/render/api';
import {DomRootRenderer, DomRootRenderer_} from 'angular2/src/platform/dom/dom_renderer';
import {DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';

import {AnimationDriver, NoOpAnimationDriver} from 'angular2/src/core/render/animation_driver';
import {AnimationCompiler} from 'angular2/src/core/animation/animation_compiler';
import {RuntimeAnimationCompiler} from 'angular2/src/compiler/animation/runtime_animation_compiler';

import {
EventManager,
EVENT_MANAGER_PLUGINS,
Expand Down Expand Up @@ -74,6 +76,8 @@ export const TEST_SERVER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | an
new Provider(DOCUMENT, {useFactory: appDoc}),
new Provider(DomRootRenderer, {useClass: DomRootRenderer_}),
new Provider(RootRenderer, {useExisting: DomRootRenderer}),
new Provider(AnimationDriver, {useClass: NoOpAnimationDriver}),
new Provider(AnimationCompiler, {useClass: RuntimeAnimationCompiler}),
EventManager,
new Provider(EVENT_MANAGER_PLUGINS, {useClass: DomEventsPlugin, multi: true}),
new Provider(XHR, {useClass: XHR}),
Expand All @@ -85,6 +89,5 @@ export const TEST_SERVER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | an
Log,
TestComponentBuilder,
new Provider(NgZone, {useClass: MockNgZone}),
new Provider(LocationStrategy, {useClass: MockLocationStrategy}),
new Provider(AnimationBuilder, {useClass: MockAnimationBuilder}),
new Provider(LocationStrategy, {useClass: MockLocationStrategy})
]);
200 changes: 0 additions & 200 deletions modules/angular2/src/animate/animation.ts

This file was deleted.

19 changes: 0 additions & 19 deletions modules/angular2/src/animate/animation_builder.ts

This file was deleted.

55 changes: 0 additions & 55 deletions modules/angular2/src/animate/browser_details.ts

This file was deleted.

0 comments on commit 2423ee4

Please sign in to comment.