mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: make provider factories docs-private (#5878)
This commit is contained in:
@@ -77,11 +77,13 @@ export class LiveAnnouncer implements OnDestroy {
|
||||
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function LIVE_ANNOUNCER_PROVIDER_FACTORY(
|
||||
parentDispatcher: LiveAnnouncer, liveElement: any, platform: Platform) {
|
||||
return parentDispatcher || new LiveAnnouncer(liveElement, platform);
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const LIVE_ANNOUNCER_PROVIDER = {
|
||||
// If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one.
|
||||
provide: LiveAnnouncer,
|
||||
|
||||
@@ -53,10 +53,12 @@ export class Directionality {
|
||||
}
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function DIRECTIONALITY_PROVIDER_FACTORY(parentDirectionality, _document) {
|
||||
return parentDirectionality || new Directionality(_document);
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const DIRECTIONALITY_PROVIDER = {
|
||||
// If there is already a Directionality available, use that. Otherwise, provide a new one.
|
||||
provide: Directionality,
|
||||
|
||||
@@ -50,11 +50,13 @@ export class UniqueSelectionDispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function UNIQUE_SELECTION_DISPATCHER_PROVIDER_FACTORY(
|
||||
parentDispatcher: UniqueSelectionDispatcher) {
|
||||
return parentDispatcher || new UniqueSelectionDispatcher();
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const UNIQUE_SELECTION_DISPATCHER_PROVIDER = {
|
||||
// If there is already a dispatcher available, use that. Otherwise, provide a new one.
|
||||
provide: UniqueSelectionDispatcher,
|
||||
|
||||
@@ -63,10 +63,12 @@ export class OverlayContainer {
|
||||
}
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer: OverlayContainer) {
|
||||
return parentContainer || new OverlayContainer();
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const OVERLAY_CONTAINER_PROVIDER = {
|
||||
// If there is already an OverlayContainer available, use that. Otherwise, provide a new one.
|
||||
provide: OverlayContainer,
|
||||
|
||||
@@ -90,11 +90,13 @@ export class ViewportRuler {
|
||||
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function VIEWPORT_RULER_PROVIDER_FACTORY(parentRuler: ViewportRuler,
|
||||
scrollDispatcher: ScrollDispatcher) {
|
||||
return parentRuler || new ViewportRuler(scrollDispatcher);
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const VIEWPORT_RULER_PROVIDER = {
|
||||
// If there is already a ViewportRuler available, use that. Otherwise, provide a new one.
|
||||
provide: ViewportRuler,
|
||||
|
||||
@@ -143,11 +143,13 @@ export class ScrollDispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function SCROLL_DISPATCHER_PROVIDER_FACTORY(
|
||||
parentDispatcher: ScrollDispatcher, ngZone: NgZone, platform: Platform) {
|
||||
return parentDispatcher || new ScrollDispatcher(ngZone, platform);
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const SCROLL_DISPATCHER_PROVIDER = {
|
||||
// If there is already a ScrollDispatcher available, use that. Otherwise, provide a new one.
|
||||
provide: ScrollDispatcher,
|
||||
|
||||
@@ -334,13 +334,13 @@ export class CdkMonitorFocus implements OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** @docs-private */
|
||||
export function FOCUS_ORIGIN_MONITOR_PROVIDER_FACTORY(
|
||||
parentDispatcher: FocusOriginMonitor, ngZone: NgZone, platform: Platform) {
|
||||
return parentDispatcher || new FocusOriginMonitor(ngZone, platform);
|
||||
}
|
||||
|
||||
|
||||
/** @docs-private */
|
||||
export const FOCUS_ORIGIN_MONITOR_PROVIDER = {
|
||||
// If there is already a FocusOriginMonitor available, use that. Otherwise, provide a new one.
|
||||
provide: FocusOriginMonitor,
|
||||
|
||||
@@ -473,11 +473,13 @@ export class MdIconRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export function ICON_REGISTRY_PROVIDER_FACTORY(
|
||||
parentRegistry: MdIconRegistry, http: Http, sanitizer: DomSanitizer) {
|
||||
return parentRegistry || new MdIconRegistry(http, sanitizer);
|
||||
}
|
||||
|
||||
/** @docs-private */
|
||||
export const ICON_REGISTRY_PROVIDER = {
|
||||
// If there is already an MdIconRegistry available, use that. Otherwise, provide a new one.
|
||||
provide: MdIconRegistry,
|
||||
|
||||
Reference in New Issue
Block a user