Skip to content

Commit ced927a

Browse files
committed
7298865 feat(core): introduce a CSS lexer/parser
1 parent 7f718f8 commit ced927a

122 files changed

Lines changed: 7443 additions & 1526 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Fri Mar 11 00:41:29 UTC 2016
2-
cb93888bd3d1c7200b6fcb0651add96cefeff696
1+
Fri Mar 11 17:58:09 UTC 2016
2+
7298865f9d361c622e6639f736eb6ad5c6e876f7

_analyzer.dart

Lines changed: 496 additions & 488 deletions
Large diffs are not rendered by default.

lib/bootstrap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* See [bootstrap] for more information.
3-
* @deprecated
3+
*
44
*/
55
library angular2.bootstrap;
66

lib/bootstrap_static.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* See [bootstrap] for more information.
3-
* @deprecated
3+
*
44
*/
55
library angular2.bootstrap_static;
66

lib/compiler.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @module
3-
* @description
2+
*
3+
*
44
* Starting point to import all compiler APIs.
55
*/
66
library angular2.compiler;

lib/router.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @module
3-
* @description
2+
*
3+
*
44
* Maps application URLs into application states, to support deep-linking and navigation.
55
*/
66
library angular2.router;

lib/src/animate/animation.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class Animation {
3535

3636
/**
3737
* Stores the start time and starts the animation
38-
* @param element
39-
* @param data
40-
* @param browserDetails
38+
*
39+
*
40+
*
4141
*/
4242
Animation(this.element, this.data, this.browserDetails) {
4343
this.startTime = DateWrapper.toMillis(DateWrapper.now());
@@ -90,7 +90,7 @@ class Animation {
9090

9191
/**
9292
* Applies the provided styles to the element
93-
* @param styles
93+
*
9494
*/
9595
void applyStyles(Map<String, dynamic> styles) {
9696
StringMapWrapper.forEach(styles, (dynamic value, String key) {
@@ -106,7 +106,7 @@ class Animation {
106106

107107
/**
108108
* Adds the provided classes to the element
109-
* @param classes
109+
*
110110
*/
111111
void addClasses(List<String> classes) {
112112
for (var i = 0, len = classes.length; i < len; i++)
@@ -115,7 +115,7 @@ class Animation {
115115

116116
/**
117117
* Removes the provided classes from the element
118-
* @param classes
118+
*
119119
*/
120120
void removeClasses(List<String> classes) {
121121
for (var i = 0, len = classes.length; i < len; i++)
@@ -158,8 +158,8 @@ class Animation {
158158

159159
/**
160160
* Adds animation callbacks to be called upon completion
161-
* @param callback
162-
* @returns {Animation}
161+
*
162+
*
163163
*/
164164
Animation onComplete(Function callback) {
165165
if (this.completed) {
@@ -172,8 +172,8 @@ class Animation {
172172

173173
/**
174174
* Converts the duration string to the number of milliseconds
175-
* @param duration
176-
* @returns {number}
175+
*
176+
*
177177
*/
178178
num parseDurationString(String duration) {
179179
var maxValue = 0;
@@ -193,8 +193,8 @@ class Animation {
193193

194194
/**
195195
* Strips the letters from the duration string
196-
* @param str
197-
* @returns {string}
196+
*
197+
*
198198
*/
199199
String stripLetters(String str) {
200200
return StringWrapper.replaceAll(

lib/src/animate/animation_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class AnimationBuilder {
99
BrowserDetails browserDetails;
1010
/**
1111
* Used for DI
12-
* @param browserDetails
12+
*
1313
*/
1414
AnimationBuilder(this.browserDetails) {}
1515
/**
1616
* Creates a new CSS Animation
17-
* @returns {CssAnimationBuilder}
17+
*
1818
*/
1919
CssAnimationBuilder css() {
2020
return new CssAnimationBuilder(this.browserDetails);

lib/src/animate/css_animation_builder.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CssAnimationBuilder {
1414
CssAnimationBuilder(this.browserDetails) {}
1515
/**
1616
* Adds a temporary class that will be removed at the end of the animation
17-
* @param className
17+
*
1818
*/
1919
CssAnimationBuilder addAnimationClass(String className) {
2020
this.data.animationClasses.add(className);
@@ -23,7 +23,7 @@ class CssAnimationBuilder {
2323

2424
/**
2525
* Adds a class that will remain on the element after the animation has finished
26-
* @param className
26+
*
2727
*/
2828
CssAnimationBuilder addClass(String className) {
2929
this.data.classesToAdd.add(className);
@@ -32,7 +32,7 @@ class CssAnimationBuilder {
3232

3333
/**
3434
* Removes a class from the element
35-
* @param className
35+
*
3636
*/
3737
CssAnimationBuilder removeClass(String className) {
3838
this.data.classesToRemove.add(className);
@@ -41,7 +41,7 @@ class CssAnimationBuilder {
4141

4242
/**
4343
* Sets the animation duration (and overrides any defined through CSS)
44-
* @param duration
44+
*
4545
*/
4646
CssAnimationBuilder setDuration(num duration) {
4747
this.data.duration = duration;
@@ -50,7 +50,7 @@ class CssAnimationBuilder {
5050

5151
/**
5252
* Sets the animation delay (and overrides any defined through CSS)
53-
* @param delay
53+
*
5454
*/
5555
CssAnimationBuilder setDelay(num delay) {
5656
this.data.delay = delay;
@@ -59,8 +59,8 @@ class CssAnimationBuilder {
5959

6060
/**
6161
* Sets styles for both the initial state and the destination state
62-
* @param from
63-
* @param to
62+
*
63+
*
6464
*/
6565
CssAnimationBuilder setStyles(
6666
Map<String, dynamic> from, Map<String, dynamic> to) {
@@ -69,7 +69,7 @@ class CssAnimationBuilder {
6969

7070
/**
7171
* Sets the initial styles for the animation
72-
* @param from
72+
*
7373
*/
7474
CssAnimationBuilder setFromStyles(Map<String, dynamic> from) {
7575
this.data.fromStyles = from;
@@ -78,7 +78,7 @@ class CssAnimationBuilder {
7878

7979
/**
8080
* Sets the destination styles for the animation
81-
* @param to
81+
*
8282
*/
8383
CssAnimationBuilder setToStyles(Map<String, dynamic> to) {
8484
this.data.toStyles = to;
@@ -87,7 +87,7 @@ class CssAnimationBuilder {
8787

8888
/**
8989
* Starts the animation and returns a promise
90-
* @param element
90+
*
9191
*/
9292
Animation start(dynamic element) {
9393
return new Animation(element, this.data, this.browserDetails);

lib/src/common/directives.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @module
3-
* @description
2+
*
3+
*
44
* Common directives shipped with Angular.
55
*/
66
library angular2.src.common.directives;
@@ -10,5 +10,6 @@ export "directives/ng_for.dart" show NgFor;
1010
export "directives/ng_if.dart" show NgIf;
1111
export "directives/ng_style.dart" show NgStyle;
1212
export "directives/ng_switch.dart" show NgSwitch, NgSwitchWhen, NgSwitchDefault;
13+
export "directives/ng_plural.dart" show NgPlural, NgPluralCase, NgLocalization;
1314
export "directives/observable_list_diff.dart";
1415
export "directives/core_directives.dart" show CORE_DIRECTIVES;

0 commit comments

Comments
 (0)