|
8 | 8 | export { |
9 | 9 | ASTWithSource, AST, AstTransformer, AccessMember, LiteralArray, ImplicitReceiver |
10 | 10 | } from './src/change_detection/parser/ast'; |
| 11 | + |
11 | 12 | export {Lexer} from './src/change_detection/parser/lexer'; |
12 | 13 | export {Parser} from './src/change_detection/parser/parser'; |
13 | | -export {Locals} |
14 | | - from './src/change_detection/parser/locals'; |
15 | | -export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} |
16 | | - from './src/change_detection/exceptions'; |
| 14 | +export {Locals} from './src/change_detection/parser/locals'; |
| 15 | + |
| 16 | +export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} from './src/change_detection/exceptions'; |
17 | 17 | export {ProtoChangeDetector, ChangeDispatcher, ChangeDetector, ChangeDetection} from './src/change_detection/interfaces'; |
18 | 18 | export {CHECK_ONCE, CHECK_ALWAYS, DETACHED, CHECKED, ON_PUSH, DEFAULT} from './src/change_detection/constants'; |
19 | | -export {DynamicProtoChangeDetector, JitProtoChangeDetector} |
20 | | - from './src/change_detection/proto_change_detector'; |
21 | | -export {BindingRecord} |
22 | | - from './src/change_detection/binding_record'; |
23 | | -export {DirectiveRecord} |
24 | | - from './src/change_detection/directive_record'; |
25 | | -export {DynamicChangeDetector} |
26 | | - from './src/change_detection/dynamic_change_detector'; |
27 | | -export {BindingPropagationConfig} |
28 | | - from './src/change_detection/binding_propagation_config'; |
29 | | -export * from './src/change_detection/pipes/pipe_registry'; |
| 19 | +export {DynamicProtoChangeDetector, JitProtoChangeDetector} from './src/change_detection/proto_change_detector'; |
| 20 | +export {BindingRecord} from './src/change_detection/binding_record'; |
| 21 | +export {DirectiveRecord} from './src/change_detection/directive_record'; |
| 22 | +export {DynamicChangeDetector} from './src/change_detection/dynamic_change_detector'; |
| 23 | +export {BindingPropagationConfig} from './src/change_detection/binding_propagation_config'; |
| 24 | +export {PipeRegistry} from './src/change_detection/pipes/pipe_registry'; |
30 | 25 | export {uninitialized} from './src/change_detection/change_detection_util'; |
31 | | -export * from './src/change_detection/pipes/pipe'; |
32 | | - |
33 | | -import {DynamicProtoChangeDetector, JitProtoChangeDetector} |
34 | | - from './src/change_detection/proto_change_detector'; |
35 | | -import {PipeRegistry} from './src/change_detection/pipes/pipe_registry'; |
36 | | -import {IterableChangesFactory} from './src/change_detection/pipes/iterable_changes'; |
37 | | -import {KeyValueChangesFactory} from './src/change_detection/pipes/keyvalue_changes'; |
38 | | -import {NullPipeFactory} from './src/change_detection/pipes/null_pipe'; |
39 | | -import {DEFAULT} from './src/change_detection/constants'; |
40 | | -import {ChangeDetection, ProtoChangeDetector} from './src/change_detection/interfaces'; |
41 | | - |
42 | | -export var defaultPipes = { |
43 | | - "iterableDiff" : [ |
44 | | - new IterableChangesFactory(), |
45 | | - new NullPipeFactory() |
46 | | - ], |
47 | | - "keyValDiff" : [ |
48 | | - new KeyValueChangesFactory(), |
49 | | - new NullPipeFactory() |
50 | | - ] |
51 | | -}; |
52 | | - |
53 | | - |
54 | | -export class DynamicChangeDetection extends ChangeDetection { |
55 | | - registry:PipeRegistry; |
56 | | - |
57 | | - constructor(registry:PipeRegistry) { |
58 | | - super(); |
59 | | - this.registry = registry; |
60 | | - } |
61 | | - |
62 | | - createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT):ProtoChangeDetector{ |
63 | | - return new DynamicProtoChangeDetector(this.registry, changeControlStrategy); |
64 | | - } |
65 | | -} |
66 | | - |
67 | | -export class JitChangeDetection extends ChangeDetection { |
68 | | - registry:PipeRegistry; |
69 | | - |
70 | | - constructor(registry:PipeRegistry) { |
71 | | - super(); |
72 | | - this.registry = registry; |
73 | | - } |
74 | | - |
75 | | - createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT):ProtoChangeDetector{ |
76 | | - return new JitProtoChangeDetector(this.registry, changeControlStrategy); |
77 | | - } |
78 | | -} |
79 | | - |
80 | | -var _registry = new PipeRegistry(defaultPipes); |
81 | | - |
82 | | -/** |
83 | | - * Implements dynamic change detection. See: [ChangeDetection] for more details. |
84 | | - * |
85 | | - * @exportedAs angular2/change_detection |
86 | | - */ |
87 | | -export var dynamicChangeDetection = new DynamicChangeDetection(_registry); |
88 | | - |
89 | | -/** |
90 | | - * Implements just-in-time change detection. See: [ChangeDetection] for more details. |
91 | | - * |
92 | | - * @exportedAs angular2/change_detection |
93 | | - */ |
94 | | -export var jitChangeDetection = new JitChangeDetection(_registry); |
| 26 | +export {NO_CHANGE, Pipe} from './src/change_detection/pipes/pipe'; |
| 27 | +export { |
| 28 | + defaultPipes, DynamicChangeDetection, JitChangeDetection, dynamicChangeDetection, jitChangeDetection |
| 29 | +} from './src/change_detection/change_detection'; |
0 commit comments