Tobias Bosch
ad3b44aef7
RendererV2 -> Renderer2 rename ( #14998 )
...
* refactor: rename `RendererV2` into `Renderer2`
BREAKING CHANGE (since 4.0 rc.1):
- rename `RendererV2` to `Renderer2`
- rename `RendererTypeV2` to `RendererType2`
- rename `RendererFactoryV2` to `RendererFactory2`
2017-03-07 16:36:12 -08:00
Tobias Bosch
3651d8d673
fix: throw for synthetic properties / listeners by default ( #14880 )
...
This allows to detect the case that the animation module is not loaded.
2017-03-06 17:15:08 -08:00
Tobias Bosch
126fda2613
perf: delete pre-view-engine core, compiler, platform-browser, etc code ( #14788 )
...
After the introduction of the view engine, we can drop a lot of code that is not used any more.
This should reduce the size of the app bundles because a lot of this code was not being properly tree-shaken by today's tools even though it was dead code.
2017-02-27 23:08:19 -08:00
Tobias Bosch
436a179552
fix(animations): properly cache renderer and namespace triggers ( #14703 )
...
- Don’t use the animation renderer if a component
used style encapsulation but no animations.
- The `AnimationRenderer` should be cached in the same
lifecycle as its delegate.
- Trigger names need to be namespaced per component type.
2017-02-24 12:10:19 -08:00
Matias Niemelä
93ddd38107
refactor(animations): make modules and bundles into plural Animations ( #14695 )
2017-02-24 09:36:58 -08:00
Tobias Bosch
4b54c0e23f
refactor(core): enable new animations dsl
...
Also deletes old tests that are not needed any
more with the new view engine.
2017-02-23 13:59:16 -08:00
Matias Niemelä
e8d2743cfb
feat(animations): noop animation module and zone fixes ( #14661 )
2017-02-23 08:51:00 -08:00
Tobias Bosch
5049a50bf6
fix(core): host bindings and host listeners for animations
...
Host bindings / listeners for animation properties should use
the renderer of the component view.
2017-02-23 08:26:47 -08:00
Matias Niemelä
830393d234
refactor(animations): support browser animation rendering ( #14578 )
2017-02-22 15:14:49 -08:00
Matias Niemelä
9211a22039
feat(animations): support function types in transitions
...
Closes #13538
Closes #13537
2017-01-06 19:29:46 -05:00
Matias Niemelä
3f67ab074a
feat(animations): expose the triggerName
within the transition event
...
Closes #13600
2017-01-06 19:29:45 -05:00
Matias Niemelä
4bae4b3bb5
feat(animations): expose the element
value within transition events
2017-01-06 19:29:45 -05:00
Matias Niemelä
21030e9a1c
fix(core): animations no longer silently exits if the element is not apart of the DOM ( #13763 )
2017-01-05 11:33:40 -08:00
Matias Niemelä
842f52e841
fix(animations): always recover from a failed animation step ( #13604 )
2016-12-21 14:14:45 -08:00
Matias Niemelä
b56474d067
fix(animations): throw errors and normalize offset beyond the range of [0,1]
...
Closes #13348
Closes #13440
2016-12-14 12:59:47 -08:00
Matias Niemelä
8395f0e138
perf(animations): always run the animation queue outside of zones
...
Related #12732
Closes #13440
2016-12-14 12:59:36 -08:00
Matias Niemelä
f0b0762f4a
fix(animations): always cleanup players after they have finished internally ( #13334 )
...
Closes #13333
Closes #13334
2016-12-09 10:45:10 -08:00
Matias Niemelä
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Matias Niemelä
f80a157b65
fix(animations): ensure web-animations are caught within the Angular zone
...
Closes #11881
Closes #11712
Closes #12355
Closes #11881
Closes #12546
Closes #12707
Closes #12774
2016-11-09 15:16:34 -08:00
Matias Niemelä
fe35bc34f6
fix(animations): allow animations to be destroyed manually ( #12719 )
...
Closes #12456
Closes #12719
2016-11-08 16:21:28 -08:00
Matias Niemelä
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
Matias Niemelä
383f23b578
fix(animations): always trigger animations after the change detection check ( #12713 )
...
This patch ensures that animations are run outside of change detection
thus allowing for start and done callbacks to modify application data
without causing a cycle loop.
Closes #12713
2016-11-04 15:15:27 -07:00
Matias Niemelä
33c8948fd3
refactor(animations): ensure animation data-structures are created only when used
...
Closes #12250
2016-10-14 15:43:41 -07:00
Victor Berchet
50c37d45dc
refactor: simplify arrow functions ( #12057 )
2016-10-04 15:57:37 -07:00
Matias Niemelä
e884f4854d
feat(animations): provide aliases for :enter and :leave transitions ( #11991 )
2016-09-30 09:15:56 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Matias Niemelä
f1b6c6efa1
refactor(animations): ensure animation input/outputs are managed within the template parser ( #11782 )
...
Closes #11782
Closes #11601
Related #11707
2016-09-24 05:37:04 +09:00
Victor Berchet
5a4e46db20
refactor(tests): simplify code ( #11485 )
2016-09-09 12:04:38 -07:00
Matias Niemelä
6a2bbffe10
fix(animations): allow group()
to be used as entry point for an animation trigger ( #11419 )
...
Closes #11312
Closes #11419
2016-09-08 12:20:07 -07:00
Matias Niemelä
c9e5b599e4
fix(animations): ensure parent animations are triggered before children ( #11201 )
2016-09-01 13:24:26 -07:00
Matias Niemelä
562c8263dc
fix(animations): ensure animation callbacks are fired for embedded views
2016-08-31 15:46:23 -07:00
Matias Niemelä
4f8f8cfc66
feat(animations): make sure animation callback reports the totalTime ( #11022 )
...
Closes #11022
2016-08-24 16:55:00 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Matias Niemelä
45e8e73670
refactor(animations): deport TCB away from animation-land forever ( #10892 )
...
* feat(animations): support animation trigger template callbacks
* refactor(animations): deport TCB away from animation-land forever
2016-08-22 17:18:25 -07:00
Matias Niemelä
3c561475c8
refactor(animations): add an onStart handler for AnimationPlayer ( #10360 )
2016-08-22 16:39:52 -07:00
Matias Niemelä
f12d51992d
fix(animations): report errors for missing host-level referenced animations ( #10650 )
...
Closes #10650
2016-08-17 08:00:49 -07:00
Julie Ralph
4c9900dc3a
refactor(testing): remove deprecated testing functions ( #10832 )
...
Remove TestComponentBuilder, addProviders, and withProviders. These
were deprecated in rc5 - see the changelog for update information.
Note - this does not actually remove the functions, but makes them
internal only. They will be removed from the codebase entirely
at a later time.
2016-08-15 21:40:37 -07:00
Matias Niemelä
e18626b7a2
fix(core): ensure ngFor only inserts/moves/removes elements when necessary ( #10287 )
...
Closes #9960
Closes #7239
Closes #9672
Closes #9454
Closes #10287
2016-08-01 11:09:52 -07:00
Tobias Bosch
d0a95e35af
refactor(testing): introduce new testing api to support ng modules
...
BREAKING CHANGE:
- deprecations:
* `withProviders`, use `TestBed.withModule` instead
* `addProviders`, use `TestBed.configureTestingModule` instead
* `TestComponentBuilder`, use `TestBed.configureTestModule` / `TestBed.override...` / `TestBed.createComponent` instead.
Closes #10354
2016-07-29 04:47:18 -07:00
Matias Niemelä
ba88db5141
fix(ngClass): do not deconstruct classes on element removal ( #10303 )
...
Prior to this fix [ngClass] would remove all dynamic classes
when destroyed. It's essential that classes are persisted such
that remove-based animations will still be stylistically correct.
This patch fixes this issue.
Closes #10008
Closes #10303
2016-07-26 15:20:27 -07:00
Victor Berchet
00aa7a76b6
chore(tests): enable lint, make it green. ( #10224 )
2016-07-21 17:12:00 -07:00
Matias Niemelä
806a25413c
feat(animations): allow animation integration support into host params
...
Closes #9044
Closes #9933
2016-07-12 14:55:36 -07:00
Matias Niemelä
79eda30f0f
refactor(animations): collect parser / lookup errors in the same place
2016-07-12 14:55:27 -07:00
Julie Ralph
9af2d8b810
fix(testing): remove deprecated testing APIs ( #9923 )
...
See https://github.com/angular/angular/blob/master/CHANGELOG.md for
prior deprecation and how to update.
2016-07-11 16:04:32 -07:00
Matias Niemelä
a05f7b2d76
refactor(animations): move MockAnimationPlayer back into core ( #9966 )
...
Closes #9966
2016-07-11 10:55:47 -07:00
Matias Niemelä
c3bdd504d0
fix(animations): ensure all child elements are rendered before running animations
...
Closes #9402
Closes #9775
Closes #9887
2016-07-08 18:18:46 -07:00
Matias Niemelä
7f4954bed6
fix(animations): change trigger binding syntax to function as a property binding []
...
Animation triggers can now be set via template bindings `[]`
BREAKING CHANGE:
animation trigger expressions within the template that are assigned as
an element attribute (e.g. `@prop`) are deprecated. Please use the
Angular2 property binding syntax (e.g. `[@prop]`) when assigning
properties.
```ts
// this is now deprecated
<div @trigger="expression"></div>
// do this instead
<div [@trigger]="expression"></div>
```
2016-07-07 14:13:06 -07:00
Matias Niemelä
f1fc1dc669
revert: fix(animations): ensure all child elements are rendered before running animations
...
This reverts commit cbe85a089306b102c8259e793d689af8e381773e.
2016-07-07 14:12:17 -07:00
Matias Niemelä
cbe85a0893
fix(animations): ensure all child elements are rendered before running animations
...
Closes #9402
Closes #9775
2016-07-07 14:10:04 -07:00