Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: third_party/pkg/angular/lib/directive/module.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /**
2 *
3 * Directives for [angular.dart](#angular/angular), a web framework for Dart. A directive attaches
4 * a specified behavior to a DOM element.
5 *
6 * This library is included as part of [angular.dart](#angular/angular). It prov ides all of
7 * the core Directives available in Angular. You can extend Angular by writing y our own directives
8 * and providing them as part of a custom library.
9 *
10 * Directives consist of a class specifying the behavior, and a directive annota tion (such as a
11 * [Decorator] or a [Component]) that describes when the behavior should be appl ied.
12 *
13 * For example:
14 *
15 * <span ng-show="ctrl.isVisible">this text is conditionally visible</span>
16 *
17 */
1 library angular.directive; 18 library angular.directive;
2 19
3 import 'package:di/di.dart'; 20 import 'package:di/di.dart';
4 import 'dart:html' as dom; 21 import 'dart:html' as dom;
5 import 'package:intl/intl.dart'; 22 import 'package:intl/intl.dart';
6 import 'package:angular/core/module.dart'; 23 import 'package:angular/core/annotation.dart';
24 import 'package:angular/core/module_internal.dart';
7 import 'package:angular/core/parser/parser.dart'; 25 import 'package:angular/core/parser/parser.dart';
8 import 'package:angular/core_dom/module.dart'; 26 import 'package:angular/core_dom/module_internal.dart';
9 import 'package:angular/utils.dart'; 27 import 'package:angular/utils.dart';
10 import 'package:angular/change_detection/watch_group.dart'; 28 import 'package:angular/change_detection/watch_group.dart';
11 import 'package:angular/change_detection/change_detection.dart'; 29 import 'package:angular/change_detection/change_detection.dart';
12 30
13 part 'ng_a.dart'; 31 part 'a_href.dart';
32 part 'ng_base_css.dart';
14 part 'ng_bind.dart'; 33 part 'ng_bind.dart';
15 part 'ng_bind_html.dart'; 34 part 'ng_bind_html.dart';
16 part 'ng_bind_template.dart'; 35 part 'ng_bind_template.dart';
17 part 'ng_class.dart'; 36 part 'ng_class.dart';
18 part 'ng_events.dart'; 37 part 'ng_events.dart';
19 part 'ng_cloak.dart'; 38 part 'ng_cloak.dart';
20 part 'ng_if.dart'; 39 part 'ng_if.dart';
21 part 'ng_include.dart'; 40 part 'ng_include.dart';
22 part 'ng_control.dart'; 41 part 'ng_control.dart';
23 part 'ng_model.dart'; 42 part 'ng_model.dart';
24 part 'ng_pluralize.dart'; 43 part 'ng_pluralize.dart';
25 part 'ng_repeat.dart'; 44 part 'ng_repeat.dart';
26 part 'ng_template.dart'; 45 part 'ng_template.dart';
27 part 'ng_show_hide.dart'; 46 part 'ng_show_hide.dart';
28 part 'ng_src_boolean.dart'; 47 part 'ng_src_boolean.dart';
29 part 'ng_style.dart'; 48 part 'ng_style.dart';
30 part 'ng_switch.dart'; 49 part 'ng_switch.dart';
31 part 'ng_non_bindable.dart'; 50 part 'ng_non_bindable.dart';
32 part 'input_select.dart'; 51 part 'ng_model_select.dart';
33 part 'ng_form.dart'; 52 part 'ng_form.dart';
34 part 'ng_model_validators.dart'; 53 part 'ng_model_validators.dart';
35 54
36 class NgDirectiveModule extends Module { 55 class DecoratorFormatter extends Module {
37 NgDirectiveModule() { 56 DecoratorFormatter() {
38 value(NgADirective, null); 57 value(AHref, null);
39 value(NgBindDirective, null); 58 type(NgBaseCss); // The root injector should have an empty NgBaseCss
40 value(NgBindTemplateDirective, null); 59 value(NgBind, null);
41 value(NgBindHtmlDirective, null); 60 value(NgBindTemplate, null);
42 value(dom.NodeValidator, new dom.NodeValidatorBuilder.common()); 61 value(NgBindHtml, null);
43 value(NgClassDirective, null); 62 factory(dom.NodeValidator, (_) =>
44 value(NgClassOddDirective, null); 63 new dom.NodeValidatorBuilder.common());
45 value(NgClassEvenDirective, null); 64 value(NgClass, null);
46 value(NgCloakDirective, null); 65 value(NgClassOdd, null);
47 value(NgHideDirective, null); 66 value(NgClassEven, null);
48 value(NgIfDirective, null); 67 value(NgCloak, null);
49 value(NgUnlessDirective, null); 68 value(NgHide, null);
50 value(NgIncludeDirective, null); 69 value(NgIf, null);
51 value(NgPluralizeDirective, null); 70 value(NgUnless, null);
52 value(NgRepeatDirective, null); 71 value(NgInclude, null);
53 value(NgShallowRepeatDirective, null); 72 value(NgPluralize, null);
54 value(NgShowDirective, null); 73 value(NgRepeat, null);
55 value(InputTextLikeDirective, null); 74 value(NgShow, null);
56 value(InputNumberLikeDirective, null); 75 value(InputTextLike, null);
57 value(InputRadioDirective, null); 76 value(InputDateLike, null);
58 value(InputCheckboxDirective, null); 77 value(InputNumberLike, null);
59 value(InputSelectDirective, null); 78 value(InputRadio, null);
60 value(OptionValueDirective, null); 79 value(InputCheckbox, null);
61 value(ContentEditableDirective, null); 80 value(InputSelect, null);
81 value(OptionValue, null);
82 value(ContentEditable, null);
83 value(NgBindTypeForDateLike, null);
62 value(NgModel, null); 84 value(NgModel, null);
63 value(NgValue, new NgValue(null)); 85 value(NgValue, null);
64 value(NgTrueValue, new NgTrueValue(null)); 86 value(NgTrueValue, new NgTrueValue());
65 value(NgFalseValue, new NgFalseValue(null)); 87 value(NgFalseValue, new NgFalseValue());
66 value(NgSwitchDirective, null); 88 value(NgSwitch, null);
67 value(NgSwitchWhenDirective, null); 89 value(NgSwitchWhen, null);
68 value(NgSwitchDefaultDirective, null); 90 value(NgSwitchDefault, null);
69 91
70 value(NgBooleanAttributeDirective, null); 92 value(NgBooleanAttribute, null);
71 value(NgSourceDirective, null); 93 value(NgSource, null);
72 value(NgAttributeDirective, null); 94 value(NgAttribute, null);
73 95
74 value(NgEventDirective, null); 96 value(NgEvent, null);
75 value(NgStyleDirective, null); 97 value(NgStyle, null);
76 value(NgNonBindableDirective, null); 98 value(NgNonBindable, null);
77 value(NgTemplateDirective, null); 99 value(NgTemplate, null);
78 value(NgControl, new NgNullControl()); 100 value(NgControl, new NgNullControl());
79 value(NgForm, new NgNullForm()); 101 value(NgForm, new NgNullForm());
80 102
81 value(NgModelRequiredValidator, null); 103 value(NgModelRequiredValidator, null);
82 value(NgModelUrlValidator, null); 104 value(NgModelUrlValidator, null);
83 value(NgModelEmailValidator, null); 105 value(NgModelEmailValidator, null);
84 value(NgModelNumberValidator, null); 106 value(NgModelNumberValidator, null);
107 value(NgModelMaxNumberValidator, null);
108 value(NgModelMinNumberValidator, null);
85 value(NgModelPatternValidator, null); 109 value(NgModelPatternValidator, null);
86 value(NgModelMinLengthValidator, null); 110 value(NgModelMinLengthValidator, null);
87 value(NgModelMaxLengthValidator, null); 111 value(NgModelMaxLengthValidator, null);
88 } 112 }
89 } 113 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/directive/input_select.dart ('k') | third_party/pkg/angular/lib/directive/ng_a.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698