Matias Niemelä
d2a86872a9
fix(animations): do not throw errors when a destroyed component is animated ( #23836 )
...
PR Close #23836
2018-05-11 16:08:14 -04:00
Matias Niemelä
65211f46cf
fix(animations): retain state styling for nodes that are moved around ( #23534 )
...
PR Close #23534
2018-05-02 16:58:46 -07:00
Matias Niemelä
da9ff255dd
fix(animations): properly clean up queried element styles in safari/edge ( #23633 )
...
Prior to this patch, if an element is queried and animated for 0 seconds
(just a style() call and nothing else) then the styles applied would not
be properly cleaned up due to their camelCased nature.
PR Close #23633
2018-05-02 16:58:24 -07:00
Matias Niemelä
7be7abdebd
refactor(animations): use a const enum to avoid compilation side effects ( #23402 )
...
This patch is in response to #23401 where a non-const enum was being
compiled as an empty object when used in an animation player when
`ng build --prod` was being processed. This patch is a immediate fix
for the issue and #23400 tracks it.
Closes #23401
PR Close #23402
2018-04-17 14:03:01 -07:00
Veres Lajos
de90314304
style: typos fixed - https://github.com/vlajos/misspell-fixer ( #22975 )
...
PR Close #22975
2018-03-27 14:51:53 -04:00
Matias Niemelä
f88fba020b
fix(animations): avoid animation insertions during router back/refresh ( #21977 )
...
Closes #19712
PR Close #21977
2018-03-22 17:59:41 -04:00
Matias Niemelä
58b94e6f5e
feat(animations): expose element and params within transition matchers ( #22693 )
...
PR Close #22693
2018-03-13 09:42:24 -07:00
Matias Niemelä
b2f366b3b7
fix(animations): only use the WA-polyfill alongside AnimationBuilder ( #22143 )
...
This patch removes the need to include the Web Animations API Polyfill
(web-animations-js) as a dependency. Angular will now fallback to using
CSS Keyframes in the event that `element.animate` is no longer supported
by the browser.
In the event that an application does use `AnimationBuilder` then the
web-animations-js polyfill is required to enable programmatic,
position-based access to an animation.
Closes #17496
PR Close #22143
2018-02-22 16:07:53 -08:00
Matias Niemelä
e1bf067090
fix(animations): report correct totalTime value even during noOp animations ( #22225 )
...
This patch ensures that if the NoopAnimationsModule is used then it will
correctly report the associated `totalTime` property within the emitted
AnimationEvent instance when an animation event trigger is fired.
BREAKING CHANGE: When animation is trigged within a disabled zone, the
associated event (which an instance of AnimationEvent) will no longer
report the totalTime as 0 (it will emit the actual time of the
animation). To detect if an animation event is reporting a disabled
animation then the `event.disabled` property can be used instead.
PR Close #22225
2018-02-16 18:03:31 -08:00
Alex Rickabaugh
0a1a397cd7
fix(platform-browser): add @Injectable where it was missing ( #22005 )
...
PR Close #22005
2018-02-12 14:34:59 -08:00
Martin Probst
871ece6123
fix(animations): renaming issue with DOMAnimation. ( #21125 )
...
Closure Compiler renames all properties that are "internal" to the
program. `DOMAnimation` however is external, it is a browser API, so its
fields must not be renamed.
This change marks `DOMAnimation` as external using `declare interface`,
which will cause Closure Compiler to back off and prevent renaming of
any of its fields.
PR Close #21125
2017-12-21 09:44:37 -08:00
Matias Niemelä
13e663c232
fix(animations): ensure multi-level route leave animations are queryable ( #20787 )
...
Closes #19807
PR Close #20787
2017-12-08 13:44:01 -08:00
Yuan Gao
e544742156
refactor(core): Removed readonly getters and changed to readonly ( #19842 )
...
variables
PR Close #19842
2017-12-08 10:24:19 -08:00
Matias Niemelä
c26e1bba1d
fix(animations): ensure the web-animations driver properly handles empty keyframes ( #20648 )
...
Closes #15858
PR Close #20648
2017-12-07 17:16:02 -08:00
Matias Niemelä
10771d0bd8
fix(animations): support webkit-based vendor prefixes for prop validations ( #19055 )
...
Closes #18921
PR Close #19055
2017-12-07 17:15:53 -08:00
Matias Niemelä
c2b3792a3b
fix(animations): ensure multi-level leave animations work ( #19455 )
...
PR Close #19455
2017-11-28 18:24:41 -06:00
Matias Niemelä
b2a586cee1
fix(animations): ensure multi-level enter animations work ( #19455 )
...
PR Close #19455
2017-11-28 18:24:40 -06:00
Miško Hevery
add5953aa1
Revert "fix(animations): ensure multi-level enter animations work ( #19455 )"
...
This reverts commit dd6237ecd97123e8122dd30d6ae1d546fed599b8.
2017-11-28 15:08:44 -06:00
Miško Hevery
6b4c24020d
Revert "fix(animations): ensure multi-level leave animations work ( #19455 )"
...
This reverts commit 1366762d12e0faa857deb793255099bfe0e0f717.
2017-11-28 15:08:31 -06:00
Matias Niemelä
1366762d12
fix(animations): ensure multi-level leave animations work ( #19455 )
...
PR Close #19455
2017-11-27 16:59:47 -06:00
Matias Niemelä
dd6237ecd9
fix(animations): ensure multi-level enter animations work ( #19455 )
...
PR Close #19455
2017-11-27 16:59:46 -06:00
Matias Niemelä
0e012c9669
fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )
...
Closes #19100
PR Close #19753
2017-11-22 10:38:02 -06:00
Miško Hevery
f8658cdc38
Revert "fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )"
...
This reverts commit d47b2a6f706c42c049bf0faf1112c97ecf681c0a.
2017-11-15 17:04:22 -06:00
Matias Niemelä
d47b2a6f70
fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )
...
Closes #19100
PR Close #19753
2017-11-14 15:59:47 -08:00
Matias Niemelä
20aafff092
fix(animations): ensure final state() styles are applied within @.disabled animations ( #20267 )
...
Closes #20266
PR Close #20267
2017-11-14 11:01:11 -08:00
Bowen Ni
743651f5e8
refactor(animations): uses a loop instead Array.map() which creates and ( #19910 )
...
returns a new array that is discarded.
This pattern will become a compilation error in google3.
PR Close #19910
2017-11-10 13:47:02 -08:00
Tobias Bosch
8d735da5d8
Revert "fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )"
...
This reverts commit 5a9ed2de272912ac74ed56bfec4bdf4551f7b38e.
As it broke an internal test.
2017-10-18 09:56:59 -07:00
Matias Niemelä
5a9ed2de27
fix(animations): always fire inner trigger callbacks even if blocked by parent animations ( #19753 )
...
Closes #19100
PR Close #19753
2017-10-17 20:57:57 -07:00
Matias Niemelä
d035175cdb
fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 ) ( #19693 )
...
PR Close #19693
2017-10-16 11:13:58 -07:00
Matias Niemelä
f42d317d2f
fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 ) ( #19693 )
...
PR Close #19693
2017-10-16 11:13:58 -07:00
Chuck Jazdzewski
46992b4bda
Revert "fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 )"
...
This reverts commit 9130505b57c10dc6f4cd9b12ca47e06c4f429b74.
2017-10-11 10:51:52 -07:00
Chuck Jazdzewski
d0af45c31a
Revert "fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 )"
...
This reverts commit ac50bd678ee37c4b222baccc8412cc153a1d5a20.
2017-10-11 10:37:12 -07:00
Matias Niemelä
ac50bd678e
fix(animations): ensure inner :leave animations do not remove node when skipped ( #19532 )
...
PR Close #19532
2017-10-10 12:41:47 -07:00
Matias Niemelä
9130505b57
fix(animations): ensure animateChild() works with all inner leave animations ( #19006 ) ( #19532 )
...
Closes #18305
PR Close #19532
2017-10-10 12:41:47 -07:00
Matias Niemelä
c3a52697f5
perf(animations): reduce size of bundle by removing AST classes ( #19539 )
...
This CL refactors the animation AST code to make use of interfaces instead of classes. Given that interfaces are not persisted during runtime the removal of classes should nicely cut down on size for the animations-browser bundle.
-- before --
animations-browser.umd.js = 222kb
animations-browser.umd.min.js = 107kb
-- after --
animations-browser.umd.js = 213kb
animations-browser.umd.min.js = 102kb
PR Close #19539
2017-10-09 10:00:48 -07:00
Matias Niemelä
c4704c8abc
fix(animations): properly support boolean-based transitions and state changes ( #19279 )
...
Closes #9396
Closes #12337
PR Close #19279
2017-10-09 10:00:32 -07:00
Chuck Jazdzewski
b1ca5d4ddf
Revert "perf(animations): reduce size of bundle by removing AST classes ( #19539 )"
...
This reverts commit d5c9c5f183b1832d437a3307d2f367721f9d0136.
2017-10-06 18:16:30 -07:00
Chuck Jazdzewski
f4480d46b4
Revert "fix(animations): ensure animateChild() works with all inner leave animations ( #19532 )"
...
This reverts commit 1c77cdadaf8d1ac24751a218484a8a08c13bad18.
2017-10-06 18:15:22 -07:00
Chuck Jazdzewski
6aa7cc1d96
Revert "fix(animations): properly support boolean-based transitions and state changes ( #19279 )"
...
This reverts commit a8920eb774346d809e03d992c454de18664b1be0.
2017-10-06 18:15:08 -07:00
Matias Niemelä
a8920eb774
fix(animations): properly support boolean-based transitions and state changes ( #19279 )
...
Closes #9396
Closes #12337
PR Close #19279
2017-10-06 15:35:37 -07:00
Matias Niemelä
1c77cdadaf
fix(animations): ensure animateChild() works with all inner leave animations ( #19532 )
...
Closes #18305
PR Close #19532
2017-10-06 15:35:13 -07:00
Matias Niemelä
d5c9c5f183
perf(animations): reduce size of bundle by removing AST classes ( #19539 )
...
This CL refactors the animation AST code to make use of interfaces instead of classes. Given that interfaces are not persisted during runtime the removal of classes should nicely cut down on size for the animations-browser bundle.
-- before --
animations-browser.umd.js = 222kb
animations-browser.umd.min.js = 107kb
-- after --
animations-browser.umd.js = 213kb
animations-browser.umd.min.js = 102kb
PR Close #19539
2017-10-06 15:34:57 -07:00
Victor Berchet
6a9ce67714
Revert "refactor(core): Removed readonly getters and changed to readonly ( #19225 )"
...
This reverts commit 2b84b86fc08a4ecb3078bd8b3a1bfc7b07946b20.
2017-09-28 13:36:44 -07:00
tinayuangao
2b84b86fc0
refactor(core): Removed readonly getters and changed to readonly ( #19225 )
...
variables
2017-09-28 09:36:29 -07:00
Yuan Gao
549f2254b4
refactor(core): remove getters for packages/animations, language-service, platform-browser, router ( #19151 )
...
PR Close #19151
2017-09-20 12:38:37 -07:00
Miško Hevery
15945c8791
Revert "fix(animations): ensure animateChild() works with all inner leave animations ( #19006 )"
...
This reverts commit a95e03ae85839a89a6222e60d39ae9fe1094b35e.
2017-09-05 23:08:26 -05:00
Matias Niemelä
a95e03ae85
fix(animations): ensure animateChild() works with all inner leave animations ( #19006 )
...
Closes #18305
PR Close #19006
2017-09-05 15:33:50 -05:00
Matias Niemelä
fcadeb2079
fix(animations): do not leak DOM nodes/styling for host triggered animations ( #18853 )
...
Closes #18606
PR Close #18853
2017-08-31 18:38:27 -07:00
Matias Niemelä
409688fe17
feat(animations): report errors when invalid CSS properties are detected ( #18718 )
...
Closes #18701
PR Close #18718
2017-08-21 20:38:22 -05:00
Matias Niemelä
70628112e8
fix(animations): restore auto-style support for removed DOM nodes ( #18787 )
...
PR Close #18787
2017-08-18 23:31:10 -05:00