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