cleanup: move DomAdapter from angular2/core into angular2/platform/common_dom
BREAKING CHANGE Before import {DomAdapter} from 'angular2/core'; After import {DomAdapter} from 'angular2/platform/common_dom'; Closes #5370
This commit is contained in:
parent
4d59985b74
commit
3c8fa8c50d
|
@ -13,4 +13,5 @@ export 'package:angular2/lifecycle_hooks.dart';
|
|||
export 'package:angular2/src/core/application_tokens.dart'
|
||||
hide APP_COMPONENT_REF_PROMISE, APP_ID_RANDOM_PROVIDER;
|
||||
export 'package:angular2/src/platform/dom/dom_tokens.dart';
|
||||
export 'package:angular2/src/platform/dom/dom_adapter.dart';
|
||||
export 'package:angular2/compiler.dart' show UrlResolver, AppRootUrl;
|
|
@ -3,5 +3,6 @@ export * from './core';
|
|||
export * from './profile';
|
||||
export * from './lifecycle_hooks';
|
||||
export * from './platform/browser';
|
||||
export * from './src/platform/dom/dom_adapter';
|
||||
export * from './upgrade';
|
||||
export {UrlResolver, AppRootUrl} from './compiler';
|
||||
|
|
|
@ -29,5 +29,4 @@ export * from './src/core/change_detection';
|
|||
export * from './src/core/platform_directives_and_pipes';
|
||||
export * from './src/core/platform_common_providers';
|
||||
export * from './src/core/application_common_providers';
|
||||
export * from './src/core/reflection/reflection';
|
||||
export * from './src/core/dom/dom_adapter';
|
||||
export * from './src/core/reflection/reflection';
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* This is a set of classes and objects that can be used both in the browser and on the server.
|
||||
*/
|
||||
export {DOM, setRootDomAdapter, DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
export {DomRenderer} from 'angular2/src/platform/dom/dom_renderer';
|
||||
export {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
export {SharedStylesHost, DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
import {Math} from 'angular2/src/facade/math';
|
||||
import {camelCaseToDashCase} from 'angular2/src/platform/dom/util';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {BrowserDetails} from './browser_details';
|
||||
import {CssAnimationOptions} from './css_animation_options';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {Math} from 'angular2/src/facade/math';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
@Injectable()
|
||||
export class BrowserDetails {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {AppRootUrl} from "angular2/src/compiler/app_root_url";
|
||||
import {DOM} from "angular2/src/core/dom/dom_adapter";
|
||||
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
||||
import {Injectable} from "angular2/src/core/di";
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {isPresent, isBlank} from 'angular2/src/facade/lang';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {ElementSchemaRegistry} from './element_schema_registry';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {Type, isBlank, isPresent, assertionsEnabled} from 'angular2/src/facade/lang';
|
||||
import {Type, isBlank, isPresent, assertionsEnabled, print} from 'angular2/src/facade/lang';
|
||||
import {provide, Provider, Injector, OpaqueToken} from 'angular2/src/core/di';
|
||||
import {
|
||||
APP_COMPONENT_REF_PROMISE,
|
||||
|
@ -26,7 +26,6 @@ import {
|
|||
ExceptionHandler,
|
||||
unimplemented
|
||||
} from 'angular2/src/facade/exceptions';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {internalView} from 'angular2/src/core/linker/view_ref';
|
||||
import {wtfLeave, wtfCreateScope, WtfScopeFn} from './profile/profile';
|
||||
import {ChangeDetectorRef} from 'angular2/src/core/change_detection/change_detector_ref';
|
||||
|
@ -248,7 +247,7 @@ export class PlatformRef_ extends PlatformRef {
|
|||
if (isPresent(exceptionHandler)) {
|
||||
exceptionHandler.call(e, e.stack);
|
||||
} else {
|
||||
DOM.logError(e);
|
||||
print(e.toString());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
@Deprecated('import this from "package:angular2/platform/common_dom.dart"')
|
||||
library angular2.dom_adapter_reexport;
|
||||
|
||||
export 'package:angular2/src/platform/dom/dom_adapter.dart';
|
|
@ -1,7 +1,7 @@
|
|||
library angular.core.facade.dom;
|
||||
|
||||
import 'dart:html';
|
||||
import 'package:angular2/core.dart' show setRootDomAdapter;
|
||||
import 'package:angular2/platform/common_dom.dart' show setRootDomAdapter;
|
||||
import 'generic_browser_adapter.dart' show GenericBrowserDomAdapter;
|
||||
import 'package:angular2/src/facade/browser.dart';
|
||||
import 'dart:js' as js;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {MapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {isBlank, isPresent, global, setValueOnPath, DateWrapper} from 'angular2/src/facade/lang';
|
||||
import {setRootDomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {setRootDomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {GenericBrowserDomAdapter} from './generic_browser_adapter';
|
||||
|
||||
var _attrToPropMap = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {Type, isPresent, isBlank} from 'angular2/src/facade/lang';
|
||||
import {Predicate} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {DebugElement} from 'angular2/core';
|
||||
|
||||
export class By {
|
||||
|
|
|
@ -3,7 +3,7 @@ import {MapWrapper, Map, ListWrapper} from 'angular2/src/facade/collection';
|
|||
import {Injectable, provide, Provider} from 'angular2/src/core/di';
|
||||
import {AppViewListener} from 'angular2/src/core/linker/view_listener';
|
||||
import {AppView} from 'angular2/src/core/linker/view';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Renderer} from 'angular2/src/core/render/api';
|
||||
import {DebugElement, DebugElement_} from 'angular2/src/core/debug/debug_element';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {isPresent, isFunction, Type} from 'angular2/src/facade/lang';
|
||||
import {DomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {DomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
|
||||
export class Rectangle {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
library testability.browser_testability;
|
||||
|
||||
import 'package:angular2/core.dart';
|
||||
import 'package:angular2/platform/common_dom.dart';
|
||||
|
||||
import 'dart:html';
|
||||
import 'dart:js' as js;
|
||||
|
|
|
@ -3,7 +3,7 @@ import {CONST, CONST_EXPR, global, isPresent} from 'angular2/src/facade/lang';
|
|||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {PromiseWrapper, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {
|
||||
Injectable,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
/**
|
||||
* A service that can be used to get and set the title of a current HTML document.
|
||||
|
|
|
@ -17,8 +17,7 @@ import {
|
|||
import {COMMON_DIRECTIVES, COMMON_PIPES, FORM_PROVIDERS} from "angular2/common";
|
||||
import {Renderer} from 'angular2/render';
|
||||
import {Testability} from 'angular2/src/core/testability/testability';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
||||
import {KeyEventsPlugin} from 'angular2/src/platform/dom/events/key_events';
|
||||
import {HammerGesturesPlugin} from 'angular2/src/platform/dom/events/hammer_gestures';
|
||||
|
|
|
@ -42,7 +42,7 @@ import {camelCaseToDashCase} from './util';
|
|||
import {ViewEncapsulation} from 'angular2/src/core/metadata';
|
||||
|
||||
// TODO move it once DomAdapter is moved
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
const NAMESPACE_URIS =
|
||||
CONST_EXPR({'xlink': 'http://www.w3.org/1999/xlink', 'svg': 'http://www.w3.org/2000/svg'});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Injectable, EventManagerPlugin, EventManager} from 'angular2/core';
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Inject, Injectable} from 'angular2/src/core/di';
|
||||
import {SetWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOCUMENT} from './dom_tokens';
|
||||
|
|
|
@ -3,7 +3,7 @@ library angular2.dom.abstractHtmlAdapter;
|
|||
import 'package:html/parser.dart' as parser;
|
||||
import 'package:html/dom.dart';
|
||||
|
||||
import 'package:angular2/core.dart';
|
||||
import 'package:angular2/platform/common_dom.dart';
|
||||
import 'package:angular2/src/compiler/xhr.dart';
|
||||
|
||||
const _attrToPropMap = const {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
library angular2.dom.htmlAdapter;
|
||||
|
||||
import 'abstract_html_adapter.dart';
|
||||
import 'package:angular2/core.dart' show setRootDomAdapter;
|
||||
import 'package:angular2/platform/common_dom.dart';
|
||||
import 'dart:io';
|
||||
|
||||
class Html5LibDomAdapter extends AbstractHtml5LibAdapter {
|
||||
|
|
|
@ -4,7 +4,7 @@ var serializer = new parse5.Serializer(parse5.TreeAdapters.htmlparser2);
|
|||
var treeAdapter = parser.treeAdapter;
|
||||
|
||||
import {MapWrapper, ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DomAdapter, setRootDomAdapter} from 'angular2/core';
|
||||
import {DomAdapter, setRootDomAdapter} from 'angular2/platform/common_dom';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
library angular2.dom.webWorkerAdapter;
|
||||
|
||||
import 'abstract_html_adapter.dart';
|
||||
import 'package:angular2/core.dart' show setRootDomAdapter;
|
||||
import 'package:angular2/platform/common_dom.dart';
|
||||
|
||||
class WebWorkerDomAdapter extends AbstractHtml5LibAdapter {
|
||||
static void makeCurrent() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Injectable} from 'angular2/angular2';
|
||||
import {LocationStrategy, normalizeQueryParams} from './location_strategy';
|
||||
import {EventListener, History, Location} from 'angular2/src/facade/browser';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Injectable, Inject} from 'angular2/angular2';
|
||||
import {EventListener, History, Location} from 'angular2/src/facade/browser';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'dart:async';
|
|||
|
||||
import 'package:guinness/guinness.dart' as gns;
|
||||
|
||||
import 'package:angular2/src/core/dom/dom_adapter.dart' show DOM;
|
||||
import 'package:angular2/src/platform/dom/dom_adapter.dart' show DOM;
|
||||
|
||||
Expect expect(actual, [matcher]) {
|
||||
final expect = new Expect(actual);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
import {el} from './utils';
|
||||
|
||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {DebugElement, DebugElement_} from 'angular2/src/core/debug/debug_element';
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component
|
|||
import {XHR} from 'angular2/src/compiler/xhr';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {EventManager, EVENT_MANAGER_PLUGINS} from 'angular2/core';
|
||||
import {MockDirectiveResolver} from 'angular2/src/mock/directive_resolver_mock';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {global, isFunction, Math} from 'angular2/src/facade/lang';
|
||||
import {NgZoneZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {isPresent, isString, RegExpWrapper, StringWrapper, RegExp} from 'angular2/src/facade/lang';
|
||||
|
||||
export class Log {
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ApplicationRef} from 'angular2/src/core/application_ref';
|
|||
import {ComponentRef, ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {isPresent, NumberWrapper} from 'angular2/src/facade/lang';
|
||||
import {performance, window} from 'angular2/src/facade/browser';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
/**
|
||||
* Entry point for all Angular debug tools. This object corresponds to the `ng`
|
||||
|
|
|
@ -20,7 +20,7 @@ import {APP_ID_RANDOM_PROVIDER} from 'angular2/src/core/application_tokens';
|
|||
import {ElementSchemaRegistry} from 'angular2/src/compiler/schema/element_schema_registry';
|
||||
import {DomElementSchemaRegistry} from 'angular2/src/compiler/schema/dom_element_schema_registry';
|
||||
import {SharedStylesHost, DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {AppViewManager, AppViewManager_} from 'angular2/src/core/linker/view_manager';
|
||||
import {AppViewManagerUtils} from 'angular2/src/core/linker/view_manager_utils';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {el, describe, it, iit, expect, inject, SpyObject} from 'angular2/testing_internal';
|
||||
import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
describe("AnimationBuilder", () => {
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {Component, View} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
|
|
@ -18,7 +18,7 @@ import {StringMapWrapper} from 'angular2/src/facade/collection';
|
|||
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {NgStyle} from 'angular2/src/common/directives/ng_style';
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
it,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Component, Directive, View} from 'angular2/core';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
|
||||
|
|
|
@ -18,8 +18,7 @@ import {
|
|||
browserDetection
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {Input, Provider, forwardRef} from 'angular2/core';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {
|
||||
Control,
|
||||
ControlGroup,
|
||||
|
@ -34,6 +33,7 @@ import {
|
|||
Validators,
|
||||
Validator
|
||||
} from 'angular2/common';
|
||||
import {Input, Provider, forwardRef} from 'angular2/core';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
PromiseWrapper,
|
||||
TimerWrapper
|
||||
} from 'angular2/src/facade/async';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
describe("AsyncPipe", () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {SelectorMatcher} from 'angular2/src/compiler/selector';
|
||||
import {CssSelector} from 'angular2/src/compiler/selector';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
TestComponentBuilder
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
stringifyElement
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
describe('dom adapter', () => {
|
||||
|
|
|
@ -24,7 +24,7 @@ import {Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
|||
import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {ComponentFixture_} from "angular2/src/testing/test_component_builder";
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
} from 'angular2/testing_internal';
|
||||
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {
|
||||
Type,
|
||||
isPresent,
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
tick
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {AppViewListener} from 'angular2/src/core/linker/view_listener';
|
||||
|
||||
import {
|
||||
|
|
|
@ -14,7 +14,7 @@ import {MapWrapper, ListWrapper, iterateListLike} from 'angular2/src/facade/coll
|
|||
import {IS_DART, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {QueryList} from 'angular2/src/core/linker/query_list';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
interface _JsQueryList {
|
||||
filter(c: any): any;
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
} from 'angular2/testing_internal';
|
||||
|
||||
// import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
// import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
// import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
// import {DomTestbed, TestRootView, elRef} from './dom_testbed';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import {EventManager, EventManagerPlugin} from 'angular2/core';
|
|||
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
var domEventPlugin;
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
proxy
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
RenderComponentTemplate
|
||||
} from 'angular2/src/core/render/api';
|
||||
import {SpyRenderEventDispatcher} from '../spies';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {ViewEncapsulation} from 'angular2/src/core/metadata';
|
||||
|
||||
function beginElement(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
||||
|
|
|
@ -12,7 +12,7 @@ import 'package:angular2/src/core/linker/proto_view_factory.dart';
|
|||
import 'package:angular2/src/core/linker/view_pool.dart';
|
||||
import 'package:angular2/src/core/linker/view_listener.dart';
|
||||
import 'package:angular2/src/core/linker/element_injector.dart';
|
||||
import 'package:angular2/src/core/dom/dom_adapter.dart';
|
||||
import 'package:angular2/src/platform/dom/dom_adapter.dart';
|
||||
import 'package:angular2/testing_internal.dart';
|
||||
|
||||
@proxy
|
||||
|
|
|
@ -14,7 +14,7 @@ import {AppViewManager} from 'angular2/src/core/linker/view_manager';
|
|||
import {AppViewPool} from 'angular2/src/core/linker/view_pool';
|
||||
import {AppViewListener} from 'angular2/src/core/linker/view_listener';
|
||||
import {ProtoViewFactory} from 'angular2/src/core/linker/proto_view_factory';
|
||||
import {DomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {ClientMessageBroker} from 'angular2/src/web_workers/shared/client_message_broker';
|
||||
|
||||
import {
|
||||
|
|
|
@ -17,7 +17,7 @@ import {bootstrap} from 'angular2/platform/browser';
|
|||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {Component, Directive, View, OnDestroy, platform} from 'angular2/core';
|
||||
import {BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {provide, Inject, Injector, PLATFORM_INITIALIZER, APP_INITIALIZER} from 'angular2/core';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
} from 'angular2/testing_internal';
|
||||
import {SpyElementRef, SpyDomAdapter} from '../../core/spies';
|
||||
|
||||
import {DOM, DomAdapter} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM, DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {Ruler, Rectangle} from 'angular2/src/platform/browser/ruler';
|
||||
import {createRectangle} from './rectangle_mock';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {ddescribe, describe, it, iit, xit, expect, afterEach} from 'angular2/testing_internal';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Title} from 'angular2/platform/browser';
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {Component, Directive, View} from 'angular2/src/core/metadata';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {provide, ViewChild, AfterViewInit} from 'angular2/core';
|
||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
import {RouteConfig, Route, Redirect, AuxRoute} from 'angular2/src/router/route_config_decorator';
|
||||
|
|
|
@ -38,7 +38,7 @@ import {
|
|||
} from 'angular2/router';
|
||||
import {RootRouter} from 'angular2/src/router/router';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
describe('router-link directive', function() {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {Component, Directive, View} from 'angular2/src/core/metadata';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {provide} from 'angular2/core';
|
||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
|
|
|
@ -31,7 +31,7 @@ import {
|
|||
ComponentInstruction
|
||||
} from 'angular2/router';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {ComponentInstruction_} from 'angular2/src/router/instruction';
|
||||
import {PathRecognizer} from 'angular2/src/router/path_recognizer';
|
||||
import {SyncRouteHandler} from 'angular2/src/router/sync_route_handler';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
containsRegexp
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {RegExpWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
import {getComponentInfo, parseFields} from 'angular2/src/upgrade/metadata';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
if (!DOM.supportsDOMEvents()) return;
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
xdescribe,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
import {Component, Class, Inject, EventEmitter, ApplicationRef, provide} from 'angular2/angular2';
|
||||
import {UpgradeAdapter} from 'angular2/upgrade';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
beforeEachBindings,
|
||||
TestComponentBuilder
|
||||
} from "angular2/testing_internal";
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {
|
||||
bind,
|
||||
provide,
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
|
||||
import {ObservableWrapper, Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {isPresent, Type} from 'angular2/src/facade/lang';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {MouseEvent, KeyboardEvent} from 'angular2/src/facade/browser';
|
||||
import {KeyCodes} from 'angular2_material/src/core/key_codes';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DateWrapper, Type, print, isPresent} from 'angular2/src/facade/lang';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {window, document, gc} from 'angular2/src/facade/browser';
|
||||
import {
|
||||
getIntParameter,
|
||||
|
|
|
@ -3,7 +3,7 @@ import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
|||
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {ScrollAreaComponent} from './scroll_area';
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {document} from 'angular2/src/facade/browser';
|
||||
|
||||
import {Component, Directive, View} from 'angular2/angular2';
|
||||
|
|
|
@ -14,7 +14,7 @@ import {ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
|||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
||||
import {ReflectionCapabilities} from 'angular2/src/core/reflection/reflection_capabilities';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {window, document, gc} from 'angular2/src/facade/browser';
|
||||
import {
|
||||
getIntParameter,
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {window, document, gc} from 'angular2/src/facade/browser';
|
||||
import {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {print} from 'angular2/src/facade/lang';
|
||||
import {UrlResolver} from 'angular2/src/compiler/url_resolver';
|
||||
import {isPresent, isBlank, RegExpWrapper, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {Injectable} from 'angular2/core';
|
||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||
|
||||
|
|
Loading…
Reference in New Issue