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