library angular2.src.core.metadata; import 'package:angular2/src/facade/collection.dart' show List; import 'package:angular2/src/core/change_detection/change_detection.dart'; import './metadata/di.dart'; import './metadata/directives.dart'; import './metadata/view.dart'; import './metadata/animations.dart' show AnimationEntryMetadata; export './metadata/di.dart'; export './metadata/directives.dart'; export './metadata/view.dart' hide VIEW_ENCAPSULATION_VALUES; export './metadata/lifecycle_hooks.dart' show AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnChanges, OnDestroy, OnInit, DoCheck; /** * See: [DirectiveMetadata] for docs. * @stable */ class Directive extends DirectiveMetadata { const Directive( {String selector, List inputs, List outputs, @Deprecated('Use `inputs` or `@Input` instead') List properties, @Deprecated('Use `outputs` or `@Output` instead') List events, Map host, List providers, String exportAs, Map queries}) : super( selector: selector, inputs: inputs, outputs: outputs, properties: properties, events: events, host: host, providers: providers, exportAs: exportAs, queries: queries); } /** * See: [ComponentMetadata] for docs. * @stable */ class Component extends ComponentMetadata { const Component( {String selector, List inputs, List outputs, @Deprecated('Use `inputs` or `@Input` instead') List properties, @Deprecated('Use `outputs` or `@Output` instead') List events, Map host, List providers, String exportAs, String moduleId, Map queries, List viewProviders, ChangeDetectionStrategy changeDetection, String templateUrl, String template, dynamic directives, dynamic pipes, ViewEncapsulation encapsulation, List styles, List styleUrls, List animations}) : super( selector: selector, inputs: inputs, outputs: outputs, properties: properties, events: events, host: host, providers: providers, exportAs: exportAs, moduleId: moduleId, viewProviders: viewProviders, queries: queries, changeDetection: changeDetection, templateUrl: templateUrl, template: template, directives: directives, pipes: pipes, encapsulation: encapsulation, styles: styles, styleUrls: styleUrls, animations: animations); } /** * See: [ViewMetadata] for docs. * @deprecated */ class View extends ViewMetadata { const View( {String templateUrl, String template, dynamic directives, dynamic pipes, ViewEncapsulation encapsulation, List styles, List styleUrls, List animations}) : super( templateUrl: templateUrl, template: template, directives: directives, pipes: pipes, encapsulation: encapsulation, styles: styles, styleUrls: styleUrls, animations: animations); } /** * See: [PipeMetadata] for docs. * @stable */ class Pipe extends PipeMetadata { const Pipe({name, pure}) : super(name: name, pure: pure); } /** * See: [AttributeMetadata] for docs. * @stable */ class Attribute extends AttributeMetadata { const Attribute(String attributeName) : super(attributeName); } /** * See: [QueryMetadata] for docs. * @deprecated Use ContentChildren/ContentChild instead */ class Query extends QueryMetadata { const Query(dynamic /*Type | string*/ selector, {bool descendants: false, dynamic read: null}) : super(selector, descendants: descendants, read: read); } /** * See: [ContentChildrenMetadata] for docs. * @stable */ class ContentChildren extends ContentChildrenMetadata { const ContentChildren(dynamic /*Type | string*/ selector, {bool descendants: false, dynamic read: null}) : super(selector, descendants: descendants, read: read); } /** * See: [ContentChildMetadata] for docs. * @stable */ class ContentChild extends ContentChildMetadata { const ContentChild(dynamic /*Type | string*/ selector, {dynamic read: null}) : super(selector, read: read); } /** * See: [ViewQueryMetadata] for docs. * @deprecated Use ViewChildren/ViewChild instead */ class ViewQuery extends ViewQueryMetadata { const ViewQuery(dynamic /*Type | string*/ selector, {dynamic read: null}) : super(selector, descendants: true, read: read); } /** * See: [ViewChildrenMetadata] for docs. * @stable */ class ViewChildren extends ViewChildrenMetadata { const ViewChildren(dynamic /*Type | string*/ selector, {dynamic read: null}) : super(selector, read: read); } /** * See: [ViewChildMetadata] for docs. * @stable */ class ViewChild extends ViewChildMetadata { const ViewChild(dynamic /*Type | string*/ selector, {dynamic read: null}) : super(selector, read: read); } /** * See: [InputMetadata] for docs. * @stable */ class Input extends InputMetadata { const Input([String bindingPropertyName]) : super(bindingPropertyName); } /** * See: [OutputMetadata] for docs. * @stable */ class Output extends OutputMetadata { const Output([String bindingPropertyName]) : super(bindingPropertyName); } /** * See: [HostBindingMetadata] for docs. * @stable */ class HostBinding extends HostBindingMetadata { const HostBinding([String hostPropertyName]) : super(hostPropertyName); } /** * See: [HostListenerMetadata] for docs. * @stable */ class HostListener extends HostListenerMetadata { const HostListener(String eventName, [List args]) : super(eventName, args); }