Victor Berchet
c69fff15c9
fix(core): fix re-insertions in the iterable differ ( #17891 )
...
fixes #17852
2017-07-06 12:11:47 -07:00
Matias Niemelä
105e920b69
fix(animations): properly handle cancelled animation style application
2017-07-06 10:18:12 -07:00
Matias Niemelä
858dea98e5
fix(animations): properly cleanup query artificats when animation construction fails
2017-07-06 10:18:12 -07:00
Jason Aden
b479ed9407
perf(core): refactor NgZone, decrease size by 1.2Kb ( #17773 )
...
- Remove getters
- Hide private methods for better property renaming
```
497893 May 31 11:26 core.umd.js
718073 May 31 11:26 core.umd.js.map
217108 May 31 11:26 core.umd.min.js
575092 May 31 11:26 core.umd.min.js.map
```
```
495594 May 31 11:28 core.umd.js
716943 May 31 11:28 core.umd.js.map
215826 May 31 11:28 core.umd.min.js
574401 May 31 11:28 core.umd.min.js.map
```
diff: 1,282
2017-07-01 10:29:56 -07:00
Matias Niemelä
af14b1e384
test(animations): add proper tests to check multiple combinations of :enter/:leave animation queries
2017-06-28 18:18:10 -07:00
Matias Niemelä
40f77cb563
fix(animations): properly collect :enter nodes that exist within multi-level DOM trees
...
Closes #17632
2017-06-28 18:18:10 -07:00
Matias Niemelä
d699c354db
fix(animations): do not remove container nodes when children are queried by a parent animation
...
Closes #17746
2017-06-27 11:00:17 -07:00
Matias Niemelä
34f3832af9
fix(animations): do not delay style() values before a stagger() runs
...
Closes #17412
2017-06-27 11:00:06 -07:00
Pawel Kozlowski
009651e14f
refactor(core): remove toString() method from DefaultKeyValueDiffer
...
toString() from DefaultKeyValueDiffer is only used in tests and should not
be part of the production code. toString() methods from differs add
~ 0.3KB (min+gzip) to the production bundle size.
2017-06-20 12:55:20 -07:00
Matias Niemelä
6ca46929fa
fix(animations): properly collect :enter nodes in a partially updated collection
...
This PR fixes an issue where `query(':enter')` will only collect elements up until it an element that is found that isn't apart of the `:enter` query.
Closes #17440
2017-06-12 15:26:46 -07:00
Matias Niemelä
185075d870
fix(animations): compute removal node height correctly
2017-06-12 12:18:26 -07:00
Matias Niemelä
451257a2fd
fix(animations): do not treat a 0 animation state as void
2017-06-12 12:18:15 -07:00
Matias Niemelä
068133ec85
fix(animations): do not retain deleted nodes during an non-removal animation ( #17153 )
...
Closes #17086
2017-06-01 14:02:41 -07:00
Matias Niemelä
665e7071fa
fix(animations): always change to desired animation state even if no transition fires ( #17025 )
...
Fixes #16947
2017-05-31 15:36:41 -07:00
Matias Niemelä
d108479d84
fix(animations): use a lightweight renderer for non-animation components ( #17003 )
...
This reverts commit c0981b8e13 .
2017-05-26 14:39:42 -06:00
Chuck Jazdzewski
c0981b8e13
Revert "fix(animations): use a lightweight renderer for non-animation components ( #17003 )"
...
This reverts commit 3ab86bd661 .
2017-05-26 08:55:23 -07:00
Matias Niemelä
3ab86bd661
fix(animations): use a lightweight renderer for non-animation components ( #17003 )
2017-05-25 18:54:35 -06:00
Tobias Bosch
a80ac0a8d3
fix(core): make decorators closure safe ( #16905 )
...
This is required as e.g. `token` from `@Inject` is
accessed in string form via makeParamDecorator
but as a property in the `ReflectiveInjector`.
Closes #16889 as this is a more general fix.
2017-05-23 11:52:40 -06:00
Julie Ralph
85d4c4b82e
feat(core): update zone.js to 0.8.10 and expose the flush method ( #16860 )
...
`flush()` can now be used from within fakeAsync tests to simulate moving
time forward until all macrotask events have been cleared from the
event queue.
2017-05-22 12:19:21 -06:00
Matias Niemelä
f1a9e3c1bb
feat(animations): introduce routeable animation support
2017-05-19 13:45:22 -07:00
Matias Niemelä
6cb93c1fac
fix(animations): only require one flushMicrotasks call when testing animations
2017-05-19 10:45:20 -07:00
Matias Niemelä
54a6e4ff9e
refactor(animations): make animation testing work with fixture.whenRenderingDone
2017-05-16 17:39:57 -07:00
Matias Niemelä
8a6eb1ac78
refactor(animations): single animation engine code pass
2017-05-16 17:39:57 -07:00
Matias Niemelä
16c8167886
feat(animations): introduce a wave of new animation features
2017-05-16 17:39:57 -07:00
vikerman
c805082648
fix(platform-server): wait for async app initializers to complete before removing server side styles ( #16712 )
...
This fixes a flicker when transitioning from server rendered page to client rendered page in lazy loaded routes by waiting for the lazy loaded route to finish loading, assuming initialNavigation on the route is set to 'enabled'.
Fixes #15716
2017-05-16 15:14:55 -07:00
Chuck Jazdzewski
9a7f5d580f
ci: update build to use TypeScript 2.3.2 ( #16707 )
2017-05-16 13:29:38 -07:00
Tobias Bosch
39b92f7e54
feat: introduce TestBed.overrideProvider ( #16725 )
...
This allows to overwrite all providers for a token, not matter
where they were defined.
This can be used to test JIT and AOT’ed code in the same way.
Design doc: https://docs.google.com/document/d/1VmTkz0EbEVSWfEEWEvQ5sXyQXSCvtMOw4t7pKU-jOwc/edit?usp=sharing
2017-05-15 13:12:10 -07:00
Matias Niemelä
38c524d655
feat(core): introduce fixture.whenRenderingDone for testing ( #16732 )
2017-05-12 13:49:16 -07:00
Tobias Bosch
ce1d7c4a6e
refactor: use view engine also for NgModuleFactorys ( #16658 )
...
* refactor(core): provide error message in stack for reflective DI
Fixes #16355
* fix(compiler): make AOT work with `noUnusedParameters`
Fixes #15532
* refactor: use view engine also for `NgModuleFactory`s
This is a prerequisite for being able to mock providers
in AOTed code later on.
2017-05-11 10:26:02 -07:00
Tobias Bosch
f0f65443c6
fix(core): detach projected views when a parent view is destroyed ( #16592 )
...
This also clarifies via a test
that we only update projected views when the view is created or destroyed,
but not when it is attached/detached/moved.
Fixes #15578
PR Close #16592
2017-05-08 17:49:02 -05:00