Victor Berchet
e5c9bbcbdd
fix(compiler): fix decoding surrogate pairs ( #15154 )
2017-03-16 15:37:25 -07:00
Igor Minar
3804ad1d23
revert: build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
This reverts commit 1c112ae66e .
First failed build (one commit after the change being reverted): https://travis-ci.org/angular/angular/jobs/202414385#L2511
2017-02-17 12:15:49 -08:00
Miško Hevery
f0575e014c
fix(compiler): REVERT allow absolute style urls ( #14365 )
...
This reverts commit 6b9aa2ca3d .
2017-02-16 14:51:01 -08:00
Alex Eagle
1c112ae66e
build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
PR Close #14369
2017-02-16 13:47:10 -08:00
Dzmitry Shylovich
193a0ae4a0
fix(compiler): allow absolute style urls ( #14365 )
...
Closes #4974
PR Close #14365
2017-02-16 13:46:42 -08:00
mgechev
059085b943
docs(compiler): incorrect method reference ( #14314 )
...
PR Close #14314
2017-02-08 20:23:36 -08:00
Chuck Jazdzewski
9779f397b7
test(compiler): add integration like tests to compiler unit tests ( #14157 )
...
Closes PR #14157
PR Close #14157
2017-02-08 20:08:20 -08:00
Chuck Jazdzewski
a5b4af0fdd
fix(language-service): do not crash when Angular cannot be located ( #14123 )
...
Fixes #14122
PR Close #14123
2017-02-02 19:18:07 -08:00
Victor Berchet
8d4aa82c04
fix(i18n): parse ICU messages while normalizing templates ( #14153 )
...
Fixes:
- Inject the i18n specific HtmlParser into the directive normalizer,
- Parse ICU messages while normalizing templates,
- Normalize (visit) the content of ICU messages.
🎄 🎁 🎅
2017-01-31 21:00:32 -08:00
Misko Hevery
14e97516cb
refactor(abstract): Use abstract keyword where possible to decrease file size. ( #14112 )
...
PR Close : #14112
2017-01-27 12:52:12 -08:00
Victor Berchet
bc47a8cc74
refactor(compiler): add ability to get the context around a ParseLocation ( #14113 )
2017-01-27 12:55:54 -06:00
Bowen Ni
777ba46837
refactor(compiler): improve error messages in aot compiler ( #14017 )
...
Previously aot compiler prints stack traces when it fails to resolve.
New behavior: aot compiler outputs the error message.
Example: https://gist.github.com/bowenni/a7fe81d916e8cd4a06b0e133436f40fb
PR Close #14017
2017-01-27 12:53:43 -06:00
Victor Berchet
f3d55068a8
fix(compiler): allow empty translations for attributes ( #14085 )
...
fixes #13897
2017-01-27 12:53:13 -06:00
Alex Rickabaugh
315606e02c
style(compiler): run format
2017-01-25 13:21:04 -08:00
Victor Berchet
6e36bb7b20
docs(compiler): add comment to warn about regexp changes ( #14106 )
...
ref #14082
2017-01-25 11:50:55 -08:00
Victor Berchet
bd2eecb4de
fix(compiler): fix regexp to support firefox 31 ( #14082 )
...
fixes #14029
closes #13900
2017-01-25 11:44:09 -08:00
Alex Rickabaugh
3d351a4f5f
fixup: remove message.id check from this branch
2017-01-25 11:43:16 -08:00
Victor Berchet
5492fada21
fix(compiler): [i18n] XMB/XTB placeholder names can contain only A-Z, 0-9, _n
...
There are restrictions on the character set that can be used for xmb and xtb
placeholder names.
However because changing the placeholder names would change the message IDs it
is not possible to add those restrictions to the names used internally. Then we
have to map internal name to public names when generating an xmb file and back
when translating using an xtb file.
Note for implementors of `Serializer`:
- When writing a file, the implementor should take care of converting the
internal names to public names while visiting the message nodes - this is
required because the original nodes are needed to compute the message ID.
- When reading a file, the implementor does not need to take care of the mapping
back to internal names as this is handled in the `I18nToHtmlVisitor` used by the
`TranslationBundle`.
fixes b/34339636
2017-01-25 10:35:03 -08:00
Matias Niemelä
261fd16780
fix(animations): fix internal jscompiler issue and AOT quoting ( #13798 )
...
CL #143630929
PR Close #13798
2017-01-18 18:20:47 -06:00
Victor Berchet
d7f2a3c71b
fix(i18n): translate attributes inside elements marked for translation
2017-01-10 17:15:42 -08:00
Victor Berchet
83d0ff6d13
refactor(Compiler): misc cleanup
2017-01-10 16:50:20 -08:00
Chuck Jazdzewski
5e9d3dba3a
fix(compiler): avoid evaluating arguments to unknown decorators
...
Fixes #13605
2017-01-09 18:06:11 -05:00
Victor Berchet
7dc12b93fe
fix(Compiler): fix template binding parsing (*directive="-...")
...
fixes #13800
2017-01-09 16:50:14 -05:00
Victor Berchet
f47a71689c
refactor: remove unused imports
2017-01-06 11:00:11 -08:00
Tobias Bosch
1cd73c7a79
fix(compiler): query <template> elements before their children. ( #13677 )
...
Fixes #13118
Closes #13167
2017-01-05 21:20:56 -08:00
Victor Berchet
29ffdfdffe
fix(Compiler): allow "." in attribute selectors ( #13653 )
...
fixes #13645
2017-01-05 21:14:54 -08:00
Victor Berchet
dab15c79dd
chore(tslint): update tslint to 4.x ( #13603 )
2017-01-05 21:14:28 -08:00
Matias Niemelä
6a5e46cedd
fix(animations): always quote string map key values in AOT code ( #13602 )
2016-12-21 09:49:03 -08:00
Dzmitry Shylovich
6316e5df71
fix(compiler): ignore @import in comments ( #13368 )
...
* refactor(compiler): clean up style url resolver
* fix(compiler): ignore @import in css comments
Closes #12196
2016-12-21 09:49:03 -08:00
Chuck Jazdzewski
070f9d0644
refactor: formatting fixes
2016-12-19 17:18:33 -08:00
Victor Berchet
de4ace77fe
feat(compiler-cli): private i18n API for the CLI ( #13536 )
...
Also change the Extractor API to align with the Codegen API (internal APIs)
2016-12-19 17:09:41 -08:00
Victor Berchet
9b87bb6d7f
fix(compiler): do not lex }} when interpolation is disabled ( #13531 )
...
* doc(compiler): fix the ICU expander API docs
* test(compiler): add lexer and parser specs
* fix(compiler): do not lex `}}` when interpolation is disabled
fix #13525
2016-12-19 17:09:40 -08:00
Victor Berchet
3f178410c3
fix(i18n): add a default example to xmb placeholders ( #13507 )
...
Otherwise the TC would not be able to load the message
2016-12-19 17:09:40 -08:00
Chuck Jazdzewski
355c537883
refactor(compiler): format update ( #13506 )
2016-12-19 17:09:39 -08:00
Bowen Ni
f277303ca3
refactor(compiler): don't print stack trace on template parse errors ( #13390 )
2016-12-19 17:09:39 -08:00
Tobias Bosch
1f0f429f2a
refactor(compiler): store metadata of top level symbols also in summaries ( #13289 )
...
This allows a build using summaries to not need .metadata.json files at all
any more.
Part of #12787
2016-12-19 17:09:39 -08:00
Chuck Jazdzewski
b9b557cdb0
fix(compiler): update to metadata version 3 ( #13464 )
...
This change retracts support for metadata version 2.
The collector used to produce version 2 metadata was incomplete
and can cause the AOT compiler to fail to resolve symbols or
produce other spurious errors.
All libraries compiled and published with 2.3.0 ngc will need
to be recompiled and updated with this change.
2016-12-14 18:08:48 -08:00
Victor Berchet
a72a002a8d
refactor: format & lint
2016-12-14 18:08:43 -08:00
Victor Berchet
1c279b3264
fix(compiler): fix simplify a reference without a name
...
closes #13470
2016-12-14 18:08:32 -08:00
Alex Rickabaugh
6aeaca3fb4
fix(compiler): resolver should merge host bindings and listeners ( #13474 )
...
fixes #13327
2016-12-14 18:07:41 -08:00
Eudes Petonnet-Vincent
86c50983d7
fix(upgrade): fix downgrade content projection and injector inheritance
...
- Full support for content projection in downgraded Angular 2
components. In particular, this enables multi-slot projection and
other features on <ng-content>.
- Correctly wire up hierarchical injectors for downgraded Angular 2
components: downgraded components inherit the injector of the first
other downgraded Angular 2 component they find up the DOM tree.
Closes #6629 , #7727 , #8729 , #9643 , #9649 , #12675
2016-12-14 17:56:20 -08:00
Peter Bacon Darwin
111523677c
refactor(compiler/template_parser): export createElementCssSelector
...
This is needed in `ngUpgrade`.
2016-12-14 17:56:06 -08:00
Miško Hevery
4d6ac9d414
fix(core): detectChanges() doesn't work on detached instance
...
Closes #13426
Closes #13472
2016-12-14 17:55:38 -08:00
Matias Niemelä
6557bc34f6
fix(animations): throw errors and normalize offset beyond the range of [0,1]
...
Closes #13348
Closes #13440
2016-12-14 17:55:34 -08:00
Matias Niemelä
e2622add07
perf(animations): always run the animation queue outside of zones
...
Related #12732
Closes #13440
2016-12-14 17:55:27 -08:00
Chuck Jazdzewski
ecfad467a1
fix(compiler): emit quoted object literal keys if the source is quoted
...
feat(tsc-wrapped): recored when to quote a object literal key
Collecting quoted literals is off by default as it introduces
a breaking change in the .metadata.json file. A follow-up commit
will address this.
Fixes #13249
Closes #13356
2016-12-14 17:55:22 -08:00
Victor Berchet
5918133784
Revert "fix(compiler): xmb <ph> tags should not self close ( #13413 )"
...
This reverts commit 4b3d135193 .
closes #13463
2016-12-14 17:55:18 -08:00
Victor Berchet
700bce9ec1
Revert "test(i18n): fix a typo in the reference xmb ( #13441 )"
...
This reverts commit a8d237581d .
2016-12-14 17:55:14 -08:00
Victor Berchet
94b7031fe9
refactor: format & lint
2016-12-14 17:51:48 -08:00
Hans
c8a9b70890
fix(compiler): generated CSS files suffixed with ngstyle. ( #13353 )
...
Mirrors factories which ends in `ngfactory`.
Closes #13141 .
2016-12-14 17:50:29 -08:00