Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
500c2a3
chore(ng): update to Angular 4.0.0-beta.1
sis0k0 Jan 9, 2017
404a9d2
chore(ng): update to Angular 4.0.0-beta.2
sis0k0 Feb 14, 2017
4d30a7e
fix(page-router-outlet): manually run detect changes when navigating to
sis0k0 Feb 14, 2017
4551c3c
chore(ng): update go Angular 4.0.0-beta.3
sis0k0 Feb 16, 2017
a9795dd
fix(list-view-comp): IterableDiffer is now parameterized on <KeyedTem…
sis0k0 Feb 16, 2017
3c7fc27
revert(page-router-outlet): stop detaching when navigating away from …
sis0k0 Feb 16, 2017
bcfda03
chore(ng): update to Angular 4.0.0-beta.4
sis0k0 Feb 16, 2017
1aee282
fix(platform): import InjectionToken and ViewEncapsulation instead of…
sis0k0 Feb 16, 2017
0ed1bbc
chore(ng): update to Angular 4.0.0-beta.7
sis0k0 Feb 20, 2017
911a663
chore(ng): update to Angular 4.0.0-beta.8
sis0k0 Feb 21, 2017
3031d2f
fix(dom_adapter): update setTitle and getGlobalEventTarget to be
sis0k0 Feb 21, 2017
2e45d76
fix(animations): add onDestroy method to NativeScriptAnimationPlayer
sis0k0 Feb 21, 2017
83e629b
fix(platform): import MissingTranslationStrategy
sis0k0 Feb 21, 2017
0d5a6e3
chore(deps): update TypeScript to 2.2 and target internal-preview of
sis0k0 Feb 21, 2017
6dac9dd
chore(ng): update to Angular 4.0.0-rc.1
sis0k0 Feb 28, 2017
0275a72
refactor: rewrite private import using the ɵ prefix
sis0k0 Feb 28, 2017
c2c56b3
feat(renderer): upgrade to Angular-rc.1
sis0k0 Mar 6, 2017
b7f5da2
feat(renderer): use EmulatedRenderer to scope component styles
sis0k0 Mar 8, 2017
809bf10
feat(renderer): implement simple nextSibling method using parent's _s…
sis0k0 Mar 9, 2017
9627509
fix(renderer): stop inserting Placeholders children
sis0k0 Mar 9, 2017
333d3ac
fix(renderer): use eachChild method of parent for nextSibling()
sis0k0 Mar 10, 2017
5d8a3a3
fix(renderer): implement createComment and createText methods using
sis0k0 Mar 10, 2017
27e0995
refactor(animations): remove old animations player/driver
sis0k0 Mar 13, 2017
9672335
fix(ns-http): make defaultOptions of type RequestOptions
sis0k0 Mar 13, 2017
955b4d4
fix(renderer): remove unnecessary exported function
sis0k0 Mar 13, 2017
4ceed1a
refactor(renderer): xmlAttributes check
sis0k0 Mar 13, 2017
8f8c6eb
feat(animations): introduce NativeScriptAnimationsModule (#704)
sis0k0 Mar 20, 2017
5ba634b
refactor: lint test apps
sis0k0 Mar 21, 2017
8b48625
fix(page-router-outlet): inject current page on navigation
sis0k0 Mar 22, 2017
a146e7b
fix(page-router-outlet): load component in page before running
sis0k0 Mar 23, 2017
82646dc
fix(ns-router-link): add relativeTo navigation extra only if
sis0k0 Mar 23, 2017
ecd6e61
Revert "build: fix animations bundle on postinstall"
sis0k0 Mar 23, 2017
4b30fca
fix(tests): Use Renderer2. Update template anchor tests.
hdeshev Mar 24, 2017
be3f954
fix(renderer): support namespaced attributes (#719)
hdeshev Mar 24, 2017
973dc8d
fix(renderer): correct createElement behaviour for EmulatedRenderer (…
sis0k0 Mar 24, 2017
68cb63b
fix(animations): set nodeType 'element' to newly created views (#720)
sis0k0 Mar 27, 2017
ac54e85
fix(modules): Work around a circular import in tns-core-modules
hdeshev Mar 28, 2017
99b387e
chore(dependencies): Upgrade to Angular 4.0 official!
hdeshev Mar 28, 2017
43f923b
chore(shrinkwrap): Do not use shrinkwrap for tests anymore.
hdeshev Mar 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions nativescript-angular/animation-driver.ts

This file was deleted.

288 changes: 0 additions & 288 deletions nativescript-angular/animation-player.ts

This file was deleted.

52 changes: 52 additions & 0 deletions nativescript-angular/animations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { NgModule, Injectable, NgZone, Provider, RendererFactory2 } from "@angular/core";

import {
AnimationDriver,
ɵAnimationEngine as AnimationEngine,
ɵAnimationStyleNormalizer as AnimationStyleNormalizer,
ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer
} from "@angular/animations/browser";

import { ɵAnimationRendererFactory as AnimationRendererFactory } from "@angular/platform-browser/animations";

import { NativeScriptAnimationEngine } from "./animations/animation-engine";
import { NativeScriptAnimationDriver } from "./animations/animation-driver";
import { NativeScriptModule } from "./nativescript.module";
import { NativeScriptRendererFactory } from "./renderer";

@Injectable()
export class InjectableAnimationEngine extends NativeScriptAnimationEngine {
constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer) {
super(driver, normalizer);
}
}

export function instantiateSupportedAnimationDriver() {
return new NativeScriptAnimationDriver();
}

export function instantiateRendererFactory(
renderer: NativeScriptRendererFactory, engine: AnimationEngine, zone: NgZone) {
return new AnimationRendererFactory(renderer, engine, zone);
}

export function instanciateDefaultStyleNormalizer() {
return new WebAnimationsStyleNormalizer();
}

export const NATIVESCRIPT_ANIMATIONS_PROVIDERS: Provider[] = [
{provide: AnimationDriver, useFactory: instantiateSupportedAnimationDriver},
{provide: AnimationStyleNormalizer, useFactory: instanciateDefaultStyleNormalizer},
{provide: AnimationEngine, useClass: InjectableAnimationEngine}, {
provide: RendererFactory2,
useFactory: instantiateRendererFactory,
deps: [NativeScriptRendererFactory, AnimationEngine, NgZone]
}
];

@NgModule({
imports: [NativeScriptModule],
providers: NATIVESCRIPT_ANIMATIONS_PROVIDERS,
})
export class NativeScriptAnimationsModule {
}
Loading