refactor: rewrite private export using the ɵ prefix
This commit is contained in:
@ -6,9 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AnimationPlayer} from '@angular/core';
|
||||
|
||||
import {AnimationKeyframe, AnimationStyles, NoOpAnimationPlayer} from '../private_import_core';
|
||||
import {AnimationPlayer, ɵAnimationKeyframe as AnimationKeyframe, ɵAnimationStyles as AnimationStyles, ɵNoOpAnimationPlayer as NoOpAnimationPlayer} from '@angular/core';
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
|
@ -9,7 +9,6 @@
|
||||
import * as core from '@angular/core';
|
||||
|
||||
import {StringMapWrapper} from '../../facade/collection';
|
||||
import {DebugDomRootRenderer} from '../../private_import_core';
|
||||
import {getDOM} from '../dom_adapter';
|
||||
import {DomRendererFactoryV2, DomRootRenderer} from '../dom_renderer';
|
||||
|
||||
@ -51,7 +50,7 @@ function _createRootRenderer(rootRenderer: any, extraTokens: NgProbeToken[]) {
|
||||
getDOM().setGlobalVar(
|
||||
CORE_TOKENS_GLOBAL_NAME,
|
||||
StringMapWrapper.merge(CORE_TOKENS, _ngProbeTokensToMap(extraTokens || [])));
|
||||
return new DebugDomRootRenderer(rootRenderer);
|
||||
return new core.ɵDebugDomRootRenderer(rootRenderer);
|
||||
}
|
||||
|
||||
function _ngProbeTokensToMap(tokens: NgProbeToken[]): {[name: string]: any} {
|
||||
@ -71,4 +70,4 @@ export const ELEMENT_PROBE_PROVIDERS: core.Provider[] = [
|
||||
[core.NgProbeToken, new core.Optional()],
|
||||
],
|
||||
},
|
||||
];
|
||||
];
|
||||
|
@ -6,10 +6,9 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {APP_ID, Inject, Injectable, RenderComponentType, Renderer, RendererFactoryV2, RendererTypeV2, RendererV2, RootRenderer, ViewEncapsulation} from '@angular/core';
|
||||
import {APP_ID, ComponentRenderTypeV2, Inject, Injectable, RenderComponentType, Renderer, RendererFactoryV2, RendererV2, RootRenderer, ViewEncapsulation, ɵAnimationKeyframe as AnimationKeyframe, ɵAnimationPlayer as AnimationPlayer, ɵAnimationStyles as AnimationStyles, ɵDirectRenderer as DirectRenderer, ɵNoOpAnimationPlayer as NoOpAnimationPlayer, ɵRenderDebugInfo as RenderDebugInfo} from '@angular/core';
|
||||
|
||||
import {isPresent, stringify} from '../facade/lang';
|
||||
import {AnimationKeyframe, AnimationPlayer, AnimationStyles, DirectRenderer, NoOpAnimationPlayer, RenderDebugInfo} from '../private_import_core';
|
||||
|
||||
import {AnimationDriver} from './animation_driver';
|
||||
import {DOCUMENT} from './dom_tokens';
|
||||
@ -541,4 +540,4 @@ class ShadowDomRenderer extends DefaultDomRendererV2 {
|
||||
parentNode(node: any): any {
|
||||
return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AnimationPlayer} from '@angular/core';
|
||||
import {AnimationPlayer, ɵAnimationKeyframe as AnimationKeyframe, ɵAnimationStyles as AnimationStyles} from '@angular/core';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {AnimationKeyframe, AnimationStyles} from '../private_import_core';
|
||||
|
||||
import {AnimationDriver} from './animation_driver';
|
||||
import {WebAnimationsPlayer} from './web_animations_player';
|
||||
|
@ -6,11 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AUTO_STYLE} from '@angular/core';
|
||||
|
||||
import {AUTO_STYLE, ɵAnimationPlayer as AnimationPlayer} from '@angular/core';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {AnimationPlayer} from '../private_import_core';
|
||||
|
||||
import {getDOM} from './dom_adapter';
|
||||
import {DomAnimatePlayer} from './dom_animate_player';
|
||||
|
||||
|
@ -6,79 +6,15 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
|
||||
import * as browser from './browser';
|
||||
import * as browserDomAdapter from './browser/browser_adapter';
|
||||
import * as location from './browser/location/browser_platform_location';
|
||||
import * as testability from './browser/testability';
|
||||
import * as ng_probe from './dom/debug/ng_probe';
|
||||
import * as dom_adapter from './dom/dom_adapter';
|
||||
import * as dom_renderer from './dom/dom_renderer';
|
||||
import * as dom_events from './dom/events/dom_events';
|
||||
import * as hammer_gesture from './dom/events/hammer_gestures';
|
||||
import * as key_events from './dom/events/key_events';
|
||||
import * as shared_styles_host from './dom/shared_styles_host';
|
||||
import {WebAnimationsDriver} from './dom/web_animations_driver';
|
||||
|
||||
export const __platform_browser_private__: {
|
||||
_BrowserPlatformLocation?: location.BrowserPlatformLocation,
|
||||
BrowserPlatformLocation: typeof location.BrowserPlatformLocation,
|
||||
_DomAdapter?: dom_adapter.DomAdapter,
|
||||
DomAdapter: typeof dom_adapter.DomAdapter,
|
||||
_BrowserDomAdapter?: browserDomAdapter.BrowserDomAdapter,
|
||||
BrowserDomAdapter: typeof browserDomAdapter.BrowserDomAdapter,
|
||||
_BrowserGetTestability?: testability.BrowserGetTestability,
|
||||
BrowserGetTestability: typeof testability.BrowserGetTestability,
|
||||
getDOM: typeof dom_adapter.getDOM,
|
||||
setRootDomAdapter: typeof dom_adapter.setRootDomAdapter,
|
||||
_DomRootRenderer?: dom_renderer.DomRootRenderer,
|
||||
DomRootRenderer: typeof dom_renderer.DomRootRenderer,
|
||||
DomRootRenderer_: typeof dom_renderer.DomRootRenderer_,
|
||||
DomRendererFactoryV2: typeof dom_renderer.DomRendererFactoryV2,
|
||||
NAMESPACE_URIS: typeof dom_renderer.NAMESPACE_URIS,
|
||||
shimContentAttribute: typeof dom_renderer.shimContentAttribute,
|
||||
shimHostAttribute: typeof dom_renderer.shimHostAttribute,
|
||||
flattenStyles: typeof dom_renderer.flattenStyles,
|
||||
splitNamespace: typeof dom_renderer.splitNamespace,
|
||||
isNamespaced: typeof dom_renderer.isNamespaced,
|
||||
_DomSharedStylesHost?: shared_styles_host.DomSharedStylesHost,
|
||||
DomSharedStylesHost: typeof shared_styles_host.DomSharedStylesHost,
|
||||
_SharedStylesHost?: shared_styles_host.SharedStylesHost,
|
||||
SharedStylesHost: typeof shared_styles_host.SharedStylesHost,
|
||||
ELEMENT_PROBE_PROVIDERS: typeof ng_probe.ELEMENT_PROBE_PROVIDERS,
|
||||
_DomEventsPlugin?: dom_events.DomEventsPlugin,
|
||||
DomEventsPlugin: typeof dom_events.DomEventsPlugin, _KeyEventsPlugin?: key_events.KeyEventsPlugin,
|
||||
KeyEventsPlugin: typeof key_events.KeyEventsPlugin,
|
||||
_HammerGesturesPlugin?: hammer_gesture.HammerGesturesPlugin,
|
||||
HammerGesturesPlugin: typeof hammer_gesture.HammerGesturesPlugin,
|
||||
initDomAdapter: typeof browser.initDomAdapter,
|
||||
INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof browser.INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
||||
BROWSER_SANITIZATION_PROVIDERS: typeof browser.BROWSER_SANITIZATION_PROVIDERS,
|
||||
WebAnimationsDriver: typeof WebAnimationsDriver
|
||||
} = {
|
||||
BrowserPlatformLocation: location.BrowserPlatformLocation,
|
||||
DomAdapter: dom_adapter.DomAdapter,
|
||||
BrowserDomAdapter: browserDomAdapter.BrowserDomAdapter,
|
||||
BrowserGetTestability: testability.BrowserGetTestability,
|
||||
getDOM: dom_adapter.getDOM,
|
||||
setRootDomAdapter: dom_adapter.setRootDomAdapter,
|
||||
DomRootRenderer_: dom_renderer.DomRootRenderer_,
|
||||
DomRootRenderer: dom_renderer.DomRootRenderer,
|
||||
DomRendererFactoryV2: dom_renderer.DomRendererFactoryV2,
|
||||
NAMESPACE_URIS: dom_renderer.NAMESPACE_URIS,
|
||||
shimContentAttribute: dom_renderer.shimContentAttribute,
|
||||
shimHostAttribute: dom_renderer.shimHostAttribute,
|
||||
flattenStyles: dom_renderer.flattenStyles,
|
||||
splitNamespace: dom_renderer.splitNamespace,
|
||||
isNamespaced: dom_renderer.isNamespaced,
|
||||
DomSharedStylesHost: shared_styles_host.DomSharedStylesHost,
|
||||
SharedStylesHost: shared_styles_host.SharedStylesHost,
|
||||
ELEMENT_PROBE_PROVIDERS: ng_probe.ELEMENT_PROBE_PROVIDERS,
|
||||
DomEventsPlugin: dom_events.DomEventsPlugin,
|
||||
KeyEventsPlugin: key_events.KeyEventsPlugin,
|
||||
HammerGesturesPlugin: hammer_gesture.HammerGesturesPlugin,
|
||||
initDomAdapter: browser.initDomAdapter,
|
||||
INTERNAL_BROWSER_PLATFORM_PROVIDERS: browser.INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
||||
BROWSER_SANITIZATION_PROVIDERS: browser.BROWSER_SANITIZATION_PROVIDERS,
|
||||
WebAnimationsDriver: WebAnimationsDriver
|
||||
};
|
||||
export {BROWSER_SANITIZATION_PROVIDERS as ɵBROWSER_SANITIZATION_PROVIDERS, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, initDomAdapter as ɵinitDomAdapter} from './browser';
|
||||
export {BrowserDomAdapter as ɵBrowserDomAdapter} from './browser/browser_adapter';
|
||||
export {BrowserPlatformLocation as ɵBrowserPlatformLocation} from './browser/location/browser_platform_location';
|
||||
export {BrowserGetTestability as ɵBrowserGetTestability} from './browser/testability';
|
||||
export {ELEMENT_PROBE_PROVIDERS as ɵELEMENT_PROBE_PROVIDERS} from './dom/debug/ng_probe';
|
||||
export {DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, setRootDomAdapter as ɵsetRootDomAdapter} from './dom/dom_adapter';
|
||||
export {DomRendererFactoryV2 as ɵDomRendererFactoryV2, DomRootRenderer as ɵDomRootRenderer, DomRootRenderer_ as ɵDomRootRenderer_, NAMESPACE_URIS as ɵNAMESPACE_URIS, flattenStyles as ɵflattenStyles, isNamespaced as ɵisNamespaced, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, splitNamespace as ɵsplitNamespace} from './dom/dom_renderer';
|
||||
export {DomEventsPlugin as ɵDomEventsPlugin} from './dom/events/dom_events';
|
||||
export {HammerGesturesPlugin as ɵHammerGesturesPlugin} from './dom/events/hammer_gestures';
|
||||
export {KeyEventsPlugin as ɵKeyEventsPlugin} from './dom/events/key_events';
|
||||
export {DomSharedStylesHost as ɵDomSharedStylesHost, SharedStylesHost as ɵSharedStylesHost} from './dom/shared_styles_host';
|
||||
export {WebAnimationsDriver as ɵWebAnimationsDriver} from './dom/web_animations_driver';
|
||||
|
@ -1,39 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {__core_private__ as r} from '@angular/core';
|
||||
|
||||
export type RenderDebugInfo = typeof r._RenderDebugInfo;
|
||||
export const RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export type DirectRenderer = typeof r._DirectRenderer;
|
||||
|
||||
export const ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
|
||||
export type DebugDomRootRenderer = typeof r._DebugDomRootRenderer;
|
||||
export const DebugDomRootRenderer: typeof r.DebugDomRootRenderer = r.DebugDomRootRenderer;
|
||||
|
||||
export const reflector: typeof r.reflector = r.reflector;
|
||||
|
||||
export type NoOpAnimationPlayer = typeof r._NoOpAnimationPlayer;
|
||||
export const NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = typeof r._AnimationPlayer;
|
||||
export const AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = typeof r._AnimationSequencePlayer;
|
||||
export const AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = typeof r._AnimationGroupPlayer;
|
||||
export const AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = typeof r._AnimationKeyframe;
|
||||
export const AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = typeof r._AnimationStyles;
|
||||
export const AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export const prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
r.prepareFinalAnimationStyles;
|
||||
export const balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
r.balanceAnimationKeyframes;
|
||||
export const clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export const collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
Reference in New Issue
Block a user