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

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

Issue 256553002: Revert "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, 7 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 */
18 library angular.directive; 1 library angular.directive;
19 2
20 import 'package:di/di.dart'; 3 import 'package:di/di.dart';
21 import 'dart:html' as dom; 4 import 'dart:html' as dom;
22 import 'package:intl/intl.dart'; 5 import 'package:intl/intl.dart';
23 import 'package:angular/core/annotation.dart'; 6 import 'package:angular/core/module.dart';
24 import 'package:angular/core/module_internal.dart';
25 import 'package:angular/core/parser/parser.dart'; 7 import 'package:angular/core/parser/parser.dart';
26 import 'package:angular/core_dom/module_internal.dart'; 8 import 'package:angular/core_dom/module.dart';
27 import 'package:angular/utils.dart'; 9 import 'package:angular/utils.dart';
28 import 'package:angular/change_detection/watch_group.dart'; 10 import 'package:angular/change_detection/watch_group.dart';
29 import 'package:angular/change_detection/change_detection.dart'; 11 import 'package:angular/change_detection/change_detection.dart';
30 12
31 part 'a_href.dart'; 13 part 'ng_a.dart';
32 part 'ng_base_css.dart';
33 part 'ng_bind.dart'; 14 part 'ng_bind.dart';
34 part 'ng_bind_html.dart'; 15 part 'ng_bind_html.dart';
35 part 'ng_bind_template.dart'; 16 part 'ng_bind_template.dart';
36 part 'ng_class.dart'; 17 part 'ng_class.dart';
37 part 'ng_events.dart'; 18 part 'ng_events.dart';
38 part 'ng_cloak.dart'; 19 part 'ng_cloak.dart';
39 part 'ng_if.dart'; 20 part 'ng_if.dart';
40 part 'ng_include.dart'; 21 part 'ng_include.dart';
41 part 'ng_control.dart'; 22 part 'ng_control.dart';
42 part 'ng_model.dart'; 23 part 'ng_model.dart';
43 part 'ng_pluralize.dart'; 24 part 'ng_pluralize.dart';
44 part 'ng_repeat.dart'; 25 part 'ng_repeat.dart';
45 part 'ng_template.dart'; 26 part 'ng_template.dart';
46 part 'ng_show_hide.dart'; 27 part 'ng_show_hide.dart';
47 part 'ng_src_boolean.dart'; 28 part 'ng_src_boolean.dart';
48 part 'ng_style.dart'; 29 part 'ng_style.dart';
49 part 'ng_switch.dart'; 30 part 'ng_switch.dart';
50 part 'ng_non_bindable.dart'; 31 part 'ng_non_bindable.dart';
51 part 'ng_model_select.dart'; 32 part 'input_select.dart';
52 part 'ng_form.dart'; 33 part 'ng_form.dart';
53 part 'ng_model_validators.dart'; 34 part 'ng_model_validators.dart';
54 35
55 class DecoratorFormatter extends Module { 36 class NgDirectiveModule extends Module {
56 DecoratorFormatter() { 37 NgDirectiveModule() {
57 value(AHref, null); 38 value(NgADirective, null);
58 type(NgBaseCss); // The root injector should have an empty NgBaseCss 39 value(NgBindDirective, null);
59 value(NgBind, null); 40 value(NgBindTemplateDirective, null);
60 value(NgBindTemplate, null); 41 value(NgBindHtmlDirective, null);
61 value(NgBindHtml, null); 42 value(dom.NodeValidator, new dom.NodeValidatorBuilder.common());
62 factory(dom.NodeValidator, (_) => 43 value(NgClassDirective, null);
63 new dom.NodeValidatorBuilder.common()); 44 value(NgClassOddDirective, null);
64 value(NgClass, null); 45 value(NgClassEvenDirective, null);
65 value(NgClassOdd, null); 46 value(NgCloakDirective, null);
66 value(NgClassEven, null); 47 value(NgHideDirective, null);
67 value(NgCloak, null); 48 value(NgIfDirective, null);
68 value(NgHide, null); 49 value(NgUnlessDirective, null);
69 value(NgIf, null); 50 value(NgIncludeDirective, null);
70 value(NgUnless, null); 51 value(NgPluralizeDirective, null);
71 value(NgInclude, null); 52 value(NgRepeatDirective, null);
72 value(NgPluralize, null); 53 value(NgShallowRepeatDirective, null);
73 value(NgRepeat, null); 54 value(NgShowDirective, null);
74 value(NgShow, null); 55 value(InputTextLikeDirective, null);
75 value(InputTextLike, null); 56 value(InputNumberLikeDirective, null);
76 value(InputDateLike, null); 57 value(InputRadioDirective, null);
77 value(InputNumberLike, null); 58 value(InputCheckboxDirective, null);
78 value(InputRadio, null); 59 value(InputSelectDirective, null);
79 value(InputCheckbox, null); 60 value(OptionValueDirective, null);
80 value(InputSelect, null); 61 value(ContentEditableDirective, null);
81 value(OptionValue, null);
82 value(ContentEditable, null);
83 value(NgBindTypeForDateLike, null);
84 value(NgModel, null); 62 value(NgModel, null);
85 value(NgValue, null); 63 value(NgValue, new NgValue(null));
86 value(NgTrueValue, new NgTrueValue()); 64 value(NgTrueValue, new NgTrueValue(null));
87 value(NgFalseValue, new NgFalseValue()); 65 value(NgFalseValue, new NgFalseValue(null));
88 value(NgSwitch, null); 66 value(NgSwitchDirective, null);
89 value(NgSwitchWhen, null); 67 value(NgSwitchWhenDirective, null);
90 value(NgSwitchDefault, null); 68 value(NgSwitchDefaultDirective, null);
91 69
92 value(NgBooleanAttribute, null); 70 value(NgBooleanAttributeDirective, null);
93 value(NgSource, null); 71 value(NgSourceDirective, null);
94 value(NgAttribute, null); 72 value(NgAttributeDirective, null);
95 73
96 value(NgEvent, null); 74 value(NgEventDirective, null);
97 value(NgStyle, null); 75 value(NgStyleDirective, null);
98 value(NgNonBindable, null); 76 value(NgNonBindableDirective, null);
99 value(NgTemplate, null); 77 value(NgTemplateDirective, null);
100 value(NgControl, new NgNullControl()); 78 value(NgControl, new NgNullControl());
101 value(NgForm, new NgNullForm()); 79 value(NgForm, new NgNullForm());
102 80
103 value(NgModelRequiredValidator, null); 81 value(NgModelRequiredValidator, null);
104 value(NgModelUrlValidator, null); 82 value(NgModelUrlValidator, null);
105 value(NgModelEmailValidator, null); 83 value(NgModelEmailValidator, null);
106 value(NgModelNumberValidator, null); 84 value(NgModelNumberValidator, null);
107 value(NgModelMaxNumberValidator, null);
108 value(NgModelMinNumberValidator, null);
109 value(NgModelPatternValidator, null); 85 value(NgModelPatternValidator, null);
110 value(NgModelMinLengthValidator, null); 86 value(NgModelMinLengthValidator, null);
111 value(NgModelMaxLengthValidator, null); 87 value(NgModelMaxLengthValidator, null);
112 } 88 }
113 } 89 }
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