123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038 |
- import { ApplicationConfig as ApplicationConfig_2 } from '@angular/core';
- import { ApplicationRef } from '@angular/core';
- import { ComponentRef } from '@angular/core';
- import { DebugElement } from '@angular/core';
- import { DebugNode } from '@angular/core';
- import { EnvironmentProviders } from '@angular/core';
- import { GetTestability } from '@angular/core';
- import * as i0 from '@angular/core';
- import * as i1 from '@angular/common';
- import { InjectionToken } from '@angular/core';
- import { makeStateKey as makeStateKey_2 } from '@angular/core';
- import { ModuleWithProviders } from '@angular/core';
- import { NgZone } from '@angular/core';
- import { OnDestroy } from '@angular/core';
- import { PlatformRef } from '@angular/core';
- import { Predicate } from '@angular/core';
- import { Provider } from '@angular/core';
- import { Renderer2 } from '@angular/core';
- import { RendererFactory2 } from '@angular/core';
- import { RendererType2 } from '@angular/core';
- import { Sanitizer } from '@angular/core';
- import { SecurityContext } from '@angular/core';
- import { StateKey as StateKey_2 } from '@angular/core';
- import { StaticProvider } from '@angular/core';
- import { Testability } from '@angular/core';
- import { TestabilityRegistry } from '@angular/core';
- import { TransferState as TransferState_2 } from '@angular/core';
- import { Type } from '@angular/core';
- import { Version } from '@angular/core';
- import { ɵConsole } from '@angular/core';
- import { ɵDomAdapter } from '@angular/common';
- import { ɵgetDOM } from '@angular/common';
- export declare type ApplicationConfig = ApplicationConfig_2;
- export declare function bootstrapApplication(rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef>;
- export declare class BrowserModule {
- constructor(providersAlreadyPresent: boolean | null);
-
- static withServerTransition(params: {
- appId: string;
- }): ModuleWithProviders<BrowserModule>;
- static ɵfac: i0.ɵɵFactoryDeclaration<BrowserModule, [{ optional: true; skipSelf: true; }]>;
- static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserModule, never, never, [typeof i1.CommonModule, typeof i0.ApplicationModule]>;
- static ɵinj: i0.ɵɵInjectorDeclaration<BrowserModule>;
- }
- export declare class By {
-
- static all(): Predicate<DebugNode>;
-
- static css(selector: string): Predicate<DebugElement>;
-
- static directive(type: Type<any>): Predicate<DebugNode>;
- }
- export declare function createApplication(options?: ApplicationConfig): Promise<ApplicationRef>;
- export declare function disableDebugTools(): void;
- export declare abstract class DomSanitizer implements Sanitizer {
-
- abstract sanitize(context: SecurityContext, value: SafeValue | string | null): string | null;
-
- abstract bypassSecurityTrustHtml(value: string): SafeHtml;
-
- abstract bypassSecurityTrustStyle(value: string): SafeStyle;
-
- abstract bypassSecurityTrustScript(value: string): SafeScript;
-
- abstract bypassSecurityTrustUrl(value: string): SafeUrl;
-
- abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
- static ɵfac: i0.ɵɵFactoryDeclaration<DomSanitizer, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<DomSanitizer>;
- }
- export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
- export declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
- export declare class EventManager {
- private _zone;
- private _plugins;
- private _eventNameToPlugin;
-
- constructor(plugins: EventManagerPlugin[], _zone: NgZone);
-
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
-
- getZone(): NgZone;
- static ɵfac: i0.ɵɵFactoryDeclaration<EventManager, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<EventManager>;
- }
- declare abstract class EventManagerPlugin {
- private _doc;
- constructor(_doc: any);
- manager: EventManager;
- abstract supports(eventName: string): boolean;
- abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
- }
- declare abstract class GenericBrowserDomAdapter extends ɵDomAdapter {
- readonly supportsDOMEvents: boolean;
- }
- export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
- export declare const HAMMER_LOADER: InjectionToken<HammerLoader>;
- export declare class HammerGestureConfig {
-
- events: string[];
-
- overrides: {
- [key: string]: Object;
- };
-
- options?: {
- cssProps?: any;
- domEvents?: boolean;
- enable?: boolean | ((manager: any) => boolean);
- preset?: any[];
- touchAction?: string;
- recognizers?: any[];
- inputClass?: any;
- inputTarget?: EventTarget;
- };
- /**
- * Creates a [HammerJS Manager](https:
- * and attaches it to a given HTML element.
- * @param element The element that will recognize gestures.
- * @returns A HammerJS event-manager object.
- */
- buildHammer(element: HTMLElement): HammerInstance;
- static ɵfac: i0.ɵɵFactoryDeclaration<HammerGestureConfig, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<HammerGestureConfig>;
- }
- declare interface HammerInstance {
- on(eventName: string, callback?: Function): void;
- off(eventName: string, callback?: Function): void;
- destroy?(): void;
- }
- export declare type HammerLoader = () => Promise<void>;
- export declare class HammerModule {
- static ɵfac: i0.ɵɵFactoryDeclaration<HammerModule, never>;
- static ɵmod: i0.ɵɵNgModuleDeclaration<HammerModule, never, never, never>;
- static ɵinj: i0.ɵɵInjectorDeclaration<HammerModule>;
- }
- export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKind> {
- ɵkind: FeatureKind;
- ɵproviders: Provider[];
- }
- export declare const enum HydrationFeatureKind {
- NoDomReuseFeature = 0,
- NoHttpTransferCache = 1
- }
- export declare const makeStateKey: typeof makeStateKey_2;
- export declare class Meta {
- private _doc;
- private _dom;
- constructor(_doc: any);
-
- addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement | null;
-
- addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
-
- getTag(attrSelector: string): HTMLMetaElement | null;
-
- getTags(attrSelector: string): HTMLMetaElement[];
-
- updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null;
-
- removeTag(attrSelector: string): void;
-
- removeTagElement(meta: HTMLMetaElement): void;
- private _getOrCreateElement;
- private _setMetaElementAttributes;
- private _parseSelector;
- private _containsAttributes;
- private _getMetaKeyMap;
- static ɵfac: i0.ɵɵFactoryDeclaration<Meta, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<Meta>;
- }
- export declare type MetaDefinition = {
- charset?: string;
- content?: string;
- httpEquiv?: string;
- id?: string;
- itemprop?: string;
- name?: string;
- property?: string;
- scheme?: string;
- url?: string;
- } & {
- [prop: string]: string;
- };
- export declare const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef;
- export declare function provideClientHydration(...features: HydrationFeature<HydrationFeatureKind>[]): EnvironmentProviders;
- export declare function provideProtractorTestingSupport(): Provider[];
- export declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
- export declare interface SafeHtml extends SafeValue {
- }
- export declare interface SafeResourceUrl extends SafeValue {
- }
- export declare interface SafeScript extends SafeValue {
- }
- export declare interface SafeStyle extends SafeValue {
- }
- export declare interface SafeUrl extends SafeValue {
- }
- export declare interface SafeValue {
- }
- export declare type StateKey<T> = StateKey_2<T>;
- export declare class Title {
- private _doc;
- constructor(_doc: any);
-
- getTitle(): string;
-
- setTitle(newTitle: string): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<Title, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<Title>;
- }
- export declare type TransferState = TransferState_2;
- export declare const TransferState: {
- new (): TransferState_2;
- };
- export declare const VERSION: Version;
- export declare function withNoDomReuse(): HydrationFeature<HydrationFeatureKind.NoDomReuseFeature>;
- export declare function withNoHttpTransferCache(): HydrationFeature<HydrationFeatureKind.NoHttpTransferCache>;
- export declare class ɵBrowserDomAdapter extends GenericBrowserDomAdapter {
- static makeCurrent(): void;
- onAndCancel(el: Node, evt: any, listener: any): Function;
- dispatchEvent(el: Node, evt: any): void;
- remove(node: Node): void;
- createElement(tagName: string, doc?: Document): HTMLElement;
- createHtmlDocument(): Document;
- getDefaultDocument(): Document;
- isElementNode(node: Node): boolean;
- isShadowRoot(node: any): boolean;
-
- getGlobalEventTarget(doc: Document, target: string): EventTarget | null;
- getBaseHref(doc: Document): string | null;
- resetBaseElement(): void;
- getUserAgent(): string;
- getCookie(name: string): string | null;
- }
- export declare class ɵBrowserGetTestability implements GetTestability {
- addToWindow(registry: TestabilityRegistry): void;
- findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
- }
- export declare class ɵDomEventsPlugin extends EventManagerPlugin {
- constructor(doc: any);
- supports(eventName: string): boolean;
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
- removeEventListener(target: any, eventName: string, callback: Function): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomEventsPlugin, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomEventsPlugin>;
- }
- export declare class ɵDomRendererFactory2 implements RendererFactory2, OnDestroy {
- private readonly eventManager;
- private readonly sharedStylesHost;
- private readonly appId;
- private removeStylesOnCompDestroy;
- private readonly doc;
- readonly platformId: Object;
- readonly ngZone: NgZone;
- private readonly nonce;
- private readonly rendererByCompId;
- private readonly defaultRenderer;
- private readonly platformIsServer;
- constructor(eventManager: EventManager, sharedStylesHost: ɵSharedStylesHost, appId: string, removeStylesOnCompDestroy: boolean, doc: Document, platformId: Object, ngZone: NgZone, nonce?: string | null);
- createRenderer(element: any, type: RendererType2 | null): Renderer2;
- private getOrCreateRenderer;
- ngOnDestroy(): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomRendererFactory2>;
- }
- export declare class ɵDomSanitizerImpl extends DomSanitizer {
- private _doc;
- constructor(_doc: any);
- sanitize(ctx: SecurityContext, value: SafeValue | string | null): string | null;
- bypassSecurityTrustHtml(value: string): SafeHtml;
- bypassSecurityTrustStyle(value: string): SafeStyle;
- bypassSecurityTrustScript(value: string): SafeScript;
- bypassSecurityTrustUrl(value: string): SafeUrl;
- bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomSanitizerImpl, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomSanitizerImpl>;
- }
- export { ɵgetDOM }
- export declare class ɵHammerGesturesPlugin extends EventManagerPlugin {
- private _config;
- private console;
- private loader?;
- private _loaderPromise;
- constructor(doc: any, _config: HammerGestureConfig, console: ɵConsole, loader?: HammerLoader | null | undefined);
- supports(eventName: string): boolean;
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
- isCustomEvent(eventName: string): boolean;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵHammerGesturesPlugin, [null, null, null, { optional: true; }]>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵHammerGesturesPlugin>;
- }
- export declare function ɵinitDomAdapter(): void;
- export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
- export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
-
- constructor(doc: any);
-
- supports(eventName: string): boolean;
-
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
-
- static parseEventName(eventName: string): {
- fullKey: string;
- domEventName: string;
- } | null;
-
- static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean;
-
- static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵKeyEventsPlugin, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵKeyEventsPlugin>;
- }
- export declare class ɵSharedStylesHost implements OnDestroy {
- private readonly doc;
- private readonly appId;
- private nonce?;
- readonly platformId: object;
- private readonly styleRef;
- private readonly hostNodes;
- private readonly styleNodesInDOM;
- private readonly platformIsServer;
- constructor(doc: Document, appId: string, nonce?: string | null | undefined, platformId?: object);
- addStyles(styles: string[]): void;
- removeStyles(styles: string[]): void;
- ngOnDestroy(): void;
- addHost(hostNode: Node): void;
- removeHost(hostNode: Node): void;
- private getAllStyles;
- private onStyleAdded;
- private onStyleRemoved;
- private collectServerRenderedStyles;
- private changeUsageCount;
- private getStyleElement;
- private addStyleToHost;
- private resetHostNodes;
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, [null, null, { optional: true; }, null]>;
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵSharedStylesHost>;
- }
- export { }
|