| 
									
										
										
										
											2015-04-10 12:45:02 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @module | 
					
						
							|  |  |  |  * @public | 
					
						
							|  |  |  |  * @description | 
					
						
							| 
									
										
										
										
											2015-04-13 21:00:52 -07:00
										 |  |  |  * Change detection enables data binding in Angular. | 
					
						
							| 
									
										
										
										
											2015-04-10 12:45:02 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-23 14:10:55 -07:00
										 |  |  | export { | 
					
						
							|  |  |  |   ASTWithSource, AST, AstTransformer, AccessMember, LiteralArray, ImplicitReceiver | 
					
						
							|  |  |  | } from './src/change_detection/parser/ast'; | 
					
						
							| 
									
										
										
										
											2015-02-05 13:08:05 -08:00
										 |  |  | export {Lexer} from './src/change_detection/parser/lexer'; | 
					
						
							|  |  |  | export {Parser} from './src/change_detection/parser/parser'; | 
					
						
							| 
									
										
										
										
											2015-03-11 21:11:39 -07:00
										 |  |  | export {Locals} | 
					
						
							|  |  |  |   from './src/change_detection/parser/locals'; | 
					
						
							| 
									
										
										
										
											2015-02-05 13:08:05 -08:00
										 |  |  | export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} | 
					
						
							|  |  |  |     from './src/change_detection/exceptions'; | 
					
						
							| 
									
										
										
										
											2015-04-09 07:28:41 -07:00
										 |  |  | export {ProtoChangeDetector, ChangeDispatcher, ChangeDetector, ChangeDetection} from './src/change_detection/interfaces'; | 
					
						
							| 
									
										
										
										
											2015-03-30 16:54:10 -07:00
										 |  |  | export {CHECK_ONCE, CHECK_ALWAYS, DETACHED, CHECKED, ON_PUSH, DEFAULT} from './src/change_detection/constants'; | 
					
						
							| 
									
										
										
										
											2015-04-09 07:57:33 -07:00
										 |  |  | export {DynamicProtoChangeDetector, JitProtoChangeDetector} | 
					
						
							| 
									
										
										
										
											2015-02-05 13:08:05 -08:00
										 |  |  |     from './src/change_detection/proto_change_detector'; | 
					
						
							| 
									
										
										
										
											2015-04-09 07:57:33 -07:00
										 |  |  | export {BindingRecord} | 
					
						
							|  |  |  |     from './src/change_detection/binding_record'; | 
					
						
							|  |  |  | export {DirectiveRecord} | 
					
						
							|  |  |  |     from './src/change_detection/directive_record'; | 
					
						
							| 
									
										
										
										
											2015-02-05 13:08:05 -08:00
										 |  |  | export {DynamicChangeDetector} | 
					
						
							|  |  |  |     from './src/change_detection/dynamic_change_detector'; | 
					
						
							| 
									
										
										
										
											2015-02-27 13:38:25 -08:00
										 |  |  | export {BindingPropagationConfig} | 
					
						
							|  |  |  |     from './src/change_detection/binding_propagation_config'; | 
					
						
							| 
									
										
										
										
											2015-02-12 14:56:41 -08:00
										 |  |  | export * from './src/change_detection/pipes/pipe_registry'; | 
					
						
							| 
									
										
										
										
											2015-03-13 17:52:27 -07:00
										 |  |  | export {uninitialized} from './src/change_detection/change_detection_util'; | 
					
						
							| 
									
										
										
										
											2015-02-12 14:56:41 -08:00
										 |  |  | export * from './src/change_detection/pipes/pipe'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-30 16:54:10 -07:00
										 |  |  | import {DynamicProtoChangeDetector, JitProtoChangeDetector} | 
					
						
							| 
									
										
										
										
											2015-02-05 13:08:05 -08:00
										 |  |  |     from './src/change_detection/proto_change_detector'; | 
					
						
							| 
									
										
										
										
											2015-02-12 14:56:41 -08:00
										 |  |  | import {PipeRegistry} from './src/change_detection/pipes/pipe_registry'; | 
					
						
							| 
									
										
										
										
											2015-03-13 16:22:01 -07:00
										 |  |  | import {IterableChangesFactory} from './src/change_detection/pipes/iterable_changes'; | 
					
						
							| 
									
										
										
										
											2015-02-24 17:39:44 +01:00
										 |  |  | import {KeyValueChangesFactory} from './src/change_detection/pipes/keyvalue_changes'; | 
					
						
							| 
									
										
										
										
											2015-02-19 17:47:25 -08:00
										 |  |  | import {NullPipeFactory} from './src/change_detection/pipes/null_pipe'; | 
					
						
							| 
									
										
										
										
											2015-03-30 16:54:10 -07:00
										 |  |  | import {DEFAULT} from './src/change_detection/constants'; | 
					
						
							|  |  |  | import {ChangeDetection, ProtoChangeDetector} from './src/change_detection/interfaces'; | 
					
						
							| 
									
										
										
										
											2015-01-21 12:05:52 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-12 14:56:41 -08:00
										 |  |  | export var defaultPipes = { | 
					
						
							| 
									
										
										
										
											2015-02-19 17:47:25 -08:00
										 |  |  |   "iterableDiff" : [ | 
					
						
							| 
									
										
										
										
											2015-03-13 16:22:01 -07:00
										 |  |  |     new IterableChangesFactory(), | 
					
						
							| 
									
										
										
										
											2015-02-19 17:47:25 -08:00
										 |  |  |     new NullPipeFactory() | 
					
						
							| 
									
										
										
										
											2015-02-24 17:39:44 +01:00
										 |  |  |   ], | 
					
						
							|  |  |  |   "keyValDiff" : [ | 
					
						
							|  |  |  |     new KeyValueChangesFactory(), | 
					
						
							|  |  |  |     new NullPipeFactory() | 
					
						
							| 
									
										
										
										
											2015-02-12 14:56:41 -08:00
										 |  |  |   ] | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-31 22:47:11 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-21 12:05:52 -08:00
										 |  |  | export class DynamicChangeDetection extends ChangeDetection { | 
					
						
							| 
									
										
										
										
											2015-02-20 10:59:14 -08:00
										 |  |  |   registry:PipeRegistry; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   constructor(registry:PipeRegistry) { | 
					
						
							|  |  |  |     super(); | 
					
						
							|  |  |  |     this.registry = registry; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-30 16:54:10 -07:00
										 |  |  |   createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT):ProtoChangeDetector{ | 
					
						
							|  |  |  |     return new DynamicProtoChangeDetector(this.registry, changeControlStrategy); | 
					
						
							| 
									
										
										
										
											2015-01-21 12:05:52 -08:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export class JitChangeDetection extends ChangeDetection { | 
					
						
							| 
									
										
										
										
											2015-02-20 10:59:14 -08:00
										 |  |  |   registry:PipeRegistry; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   constructor(registry:PipeRegistry) { | 
					
						
							|  |  |  |     super(); | 
					
						
							|  |  |  |     this.registry = registry; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-30 16:54:10 -07:00
										 |  |  |   createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT):ProtoChangeDetector{ | 
					
						
							|  |  |  |     return new JitProtoChangeDetector(this.registry, changeControlStrategy); | 
					
						
							| 
									
										
										
										
											2015-01-21 12:05:52 -08:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-20 10:59:14 -08:00
										 |  |  | var _registry = new PipeRegistry(defaultPipes); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-13 21:00:52 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Implements dynamic change detection. See: [ChangeDetection] for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @exportedAs angular2/change_detection | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2015-02-20 10:59:14 -08:00
										 |  |  | export var dynamicChangeDetection = new DynamicChangeDetection(_registry); | 
					
						
							| 
									
										
										
										
											2015-04-13 21:00:52 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Implements just-in-time change detection. See: [ChangeDetection] for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @exportedAs angular2/change_detection | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2015-02-24 17:39:44 +01:00
										 |  |  | export var jitChangeDetection = new JitChangeDetection(_registry); |