chore(API): cleaned up top level imports (render)
This commit is contained in:
parent
c83a3f3372
commit
329a6e00dc
|
@ -8,23 +8,10 @@ export {commonBootstrap as bootstrap} from 'angular2/src/core/application_common
|
|||
// to resolve imports very very very slowly. See also a similar notice in
|
||||
// bootstrap.ts
|
||||
export * from './annotations';
|
||||
export * from './core';
|
||||
export * from './change_detection';
|
||||
export * from './core';
|
||||
export * from './di';
|
||||
export * from './forms';
|
||||
export * from './directives';
|
||||
export * from './http';
|
||||
export {
|
||||
RenderEventDispatcher,
|
||||
Renderer,
|
||||
RenderElementRef,
|
||||
RenderViewRef,
|
||||
RenderProtoViewRef,
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/render/api';
|
||||
export {
|
||||
DomRenderer,
|
||||
DOCUMENT_TOKEN,
|
||||
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
|
||||
} from 'angular2/src/render/dom/dom_renderer';
|
||||
export * from './forms';
|
||||
export * from './render';
|
||||
|
|
|
@ -1,21 +1,8 @@
|
|||
export * from './annotations';
|
||||
export * from './core';
|
||||
export * from './change_detection';
|
||||
export * from './core';
|
||||
export * from './di';
|
||||
export * from './forms';
|
||||
export * from './directives';
|
||||
export * from './http';
|
||||
export {
|
||||
RenderEventDispatcher,
|
||||
Renderer,
|
||||
RenderElementRef,
|
||||
RenderViewRef,
|
||||
RenderProtoViewRef,
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/render/api';
|
||||
export {
|
||||
DomRenderer,
|
||||
DOCUMENT_TOKEN,
|
||||
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
|
||||
} from 'angular2/src/render/dom/dom_renderer';
|
||||
export * from './forms';
|
||||
export * from './render';
|
||||
|
|
|
@ -7,46 +7,11 @@ export {bootstrap} from 'angular2/src/core/application';
|
|||
// angular2_exports.ts. Re-exporting from angular2_exports.ts causes systemjs
|
||||
// to resolve imports very very very slowly. See also a similar notice in
|
||||
// angular2.ts
|
||||
export * from 'angular2/annotations';
|
||||
export * from 'angular2/core';
|
||||
|
||||
export {
|
||||
DehydratedException,
|
||||
ExpressionChangedAfterItHasBeenChecked,
|
||||
ChangeDetectionError,
|
||||
|
||||
ON_PUSH,
|
||||
DEFAULT,
|
||||
|
||||
ChangeDetectorRef,
|
||||
|
||||
Pipes,
|
||||
WrappedValue,
|
||||
Pipe,
|
||||
PipeFactory,
|
||||
NullPipe,
|
||||
NullPipeFactory,
|
||||
defaultPipes,
|
||||
BasePipe,
|
||||
|
||||
Locals
|
||||
} from './change_detection';
|
||||
|
||||
export * from './annotations';
|
||||
export * from './change_detection';
|
||||
export * from './core';
|
||||
export * from './di';
|
||||
export * from './forms';
|
||||
export * from './directives';
|
||||
export * from './http';
|
||||
export {
|
||||
RenderEventDispatcher,
|
||||
Renderer,
|
||||
RenderElementRef,
|
||||
RenderViewRef,
|
||||
RenderProtoViewRef,
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/render/api';
|
||||
export {
|
||||
DomRenderer,
|
||||
DOCUMENT_TOKEN,
|
||||
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
|
||||
} from 'angular2/src/render/dom/dom_renderer';
|
||||
export * from './forms';
|
||||
export * from './render';
|
||||
|
|
|
@ -23,14 +23,5 @@ export {
|
|||
PipeFactory,
|
||||
BasePipe,
|
||||
NullPipe,
|
||||
NullPipeFactory,
|
||||
|
||||
ChangeDetector,
|
||||
ChangeDispatcher,
|
||||
ChangeDetection,
|
||||
ChangeDetectorDefinition,
|
||||
DynamicChangeDetection,
|
||||
JitChangeDetection,
|
||||
PreGeneratedChangeDetection,
|
||||
preGeneratedProtoDetectors
|
||||
NullPipeFactory
|
||||
} from 'angular2/src/change_detection/change_detection';
|
||||
|
|
|
@ -4,9 +4,15 @@
|
|||
* This module provides advanced support for extending dom strategy.
|
||||
*/
|
||||
|
||||
export * from './src/render/dom/compiler/view_loader';
|
||||
export * from './src/render/dom/shadow_dom/shadow_dom_strategy';
|
||||
export * from './src/render/dom/shadow_dom/native_shadow_dom_strategy';
|
||||
export * from './src/render/dom/shadow_dom/emulated_scoped_shadow_dom_strategy';
|
||||
export * from './src/render/dom/shadow_dom/emulated_unscoped_shadow_dom_strategy';
|
||||
export * from './src/render/api';
|
||||
export {
|
||||
RenderEventDispatcher,
|
||||
Renderer,
|
||||
RenderElementRef,
|
||||
RenderViewRef,
|
||||
RenderProtoViewRef,
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments,
|
||||
DomRenderer,
|
||||
DOCUMENT_TOKEN,
|
||||
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
|
||||
} from './src/render/render';
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
PreGeneratedChangeDetection,
|
||||
Pipes,
|
||||
defaultPipes
|
||||
} from 'angular2/change_detection';
|
||||
} from 'angular2/src/change_detection/change_detection';
|
||||
import {ExceptionHandler} from './exception_handler';
|
||||
import {ViewLoader} from 'angular2/src/render/dom/compiler/view_loader';
|
||||
import {StyleUrlResolver} from 'angular2/src/render/dom/compiler/style_url_resolver';
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @module
|
||||
* @description
|
||||
* This module provides advanced support for extending dom strategy.
|
||||
*/
|
||||
|
||||
export * from './dom/compiler/view_loader';
|
||||
export * from './dom/dom_renderer';
|
||||
export * from './dom/shadow_dom/shadow_dom_strategy';
|
||||
export * from './dom/shadow_dom/native_shadow_dom_strategy';
|
||||
export * from './dom/shadow_dom/emulated_scoped_shadow_dom_strategy';
|
||||
export * from './dom/shadow_dom/emulated_unscoped_shadow_dom_strategy';
|
||||
export * from './api';
|
|
@ -1,6 +1,6 @@
|
|||
library test_lib.spies;
|
||||
|
||||
import 'package:angular2/change_detection.dart';
|
||||
import 'package:angular2/src/change_detection/change_detection.dart';
|
||||
import 'package:angular2/di.dart';
|
||||
import './test_lib.dart';
|
||||
|
||||
|
@ -32,4 +32,4 @@ class SpyDependencyProvider extends SpyObject implements DependencyProvider {
|
|||
@proxy
|
||||
class SpyChangeDetectorRef extends SpyObject implements ChangeDetectorRef {
|
||||
noSuchMethod(m) => super.noSuchMethod(m);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
ViewType
|
||||
} from "angular2/src/render/api";
|
||||
import {WorkerElementRef} from 'angular2/src/web-workers/shared/api';
|
||||
import {AST, ASTWithSource} from "angular2/change_detection";
|
||||
import {AST, ASTWithSource} from 'angular2/src/change_detection/change_detection';
|
||||
import {Parser} from "angular2/src/change_detection/parser/parser";
|
||||
import {Injectable} from "angular2/di";
|
||||
import {RenderProtoViewRefStore} from 'angular2/src/web-workers/shared/render_proto_view_ref_store';
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
PreGeneratedChangeDetection,
|
||||
Pipes,
|
||||
defaultPipes
|
||||
} from 'angular2/change_detection';
|
||||
} from 'angular2/src/change_detection/change_detection';
|
||||
import {EventManager, DomEventsPlugin} from 'angular2/src/render/dom/events/event_manager';
|
||||
import {Compiler, CompilerCache} from 'angular2/src/core/compiler/compiler';
|
||||
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
Pipes,
|
||||
defaultPipes,
|
||||
PreGeneratedChangeDetection
|
||||
} from 'angular2/change_detection';
|
||||
} from 'angular2/src/change_detection/change_detection';
|
||||
import {StyleUrlResolver} from 'angular2/src/render/dom/compiler/style_url_resolver';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
|
|
|
@ -36,7 +36,7 @@ import {
|
|||
TemplateRef,
|
||||
bind
|
||||
} from 'angular2/angular2';
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/render';
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/src/render/render';
|
||||
|
||||
export function main() {
|
||||
describe('projection', () => {
|
||||
|
|
|
@ -34,7 +34,11 @@ import {
|
|||
import {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
import {Component} from 'angular2/annotations';
|
||||
import {AppViewManagerUtils} from 'angular2/src/core/compiler/view_manager_utils';
|
||||
import {RenderProtoViewMergeMapping, ViewType, RenderViewWithFragments} from 'angular2/render';
|
||||
import {
|
||||
RenderProtoViewMergeMapping,
|
||||
ViewType,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/render/render';
|
||||
|
||||
export function main() {
|
||||
// TODO(tbosch): add more tests here!
|
||||
|
|
|
@ -20,7 +20,7 @@ import {DomTestbed, TestRootView, elRef} from './dom_testbed';
|
|||
|
||||
import {ViewDefinition, DirectiveMetadata, RenderViewRef} from 'angular2/src/render/api';
|
||||
import {DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES} from 'angular2/src/render/dom/dom_renderer';
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/render';
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/src/render/render';
|
||||
import {bind} from 'angular2/di';
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -29,7 +29,7 @@ import {DOM} from 'angular2/src/dom/dom_adapter';
|
|||
import {cloneAndQueryProtoView} from 'angular2/src/render/dom/util';
|
||||
import {resolveInternalDomProtoView} from 'angular2/src/render/dom/view/proto_view';
|
||||
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/render';
|
||||
import {ShadowDomStrategy, NativeShadowDomStrategy} from 'angular2/src/render/render';
|
||||
|
||||
export function main() {
|
||||
describe('ProtoViewMerger integration test', () => {
|
||||
|
|
Loading…
Reference in New Issue