@angular/platform-browser 19.2.1 → 19.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animations/async/index.d.ts +16 -25
- package/animations/index.d.ts +32 -43
- package/fesm2022/animations/async.mjs +10 -28
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +23 -41
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +120 -132
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +58 -28
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +545 -601
- package/package.json +4 -4
- package/testing/index.d.ts +21 -10
package/index.d.ts
CHANGED
@@ -1,42 +1,15 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.2.
|
2
|
+
* @license Angular v19.2.3
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
|
-
|
8
|
-
import { ApplicationConfig as ApplicationConfig_2 } from '@angular/core';
|
9
|
-
import { ApplicationRef } from '@angular/core';
|
10
|
-
import { ComponentRef } from '@angular/core';
|
11
|
-
import { DebugElement } from '@angular/core';
|
12
|
-
import { DebugNode } from '@angular/core';
|
13
|
-
import { EnvironmentProviders } from '@angular/core';
|
14
|
-
import { GetTestability } from '@angular/core';
|
15
|
-
import { HttpTransferCacheOptions } from '@angular/common/http';
|
16
7
|
import * as i0 from '@angular/core';
|
8
|
+
import { ApplicationConfig as ApplicationConfig$1, Type, ApplicationRef, StaticProvider, PlatformRef, Provider, ComponentRef, Predicate, DebugNode, DebugElement, InjectionToken, NgZone, ListenerOptions, OnDestroy, RendererFactory2, ɵTracingService as _TracingService, ɵTracingSnapshot as _TracingSnapshot, RendererType2, Renderer2, Injector, Sanitizer, SecurityContext, EnvironmentProviders, GetTestability, TestabilityRegistry, Testability, Version } from '@angular/core';
|
17
9
|
import * as i1 from '@angular/common';
|
18
|
-
import {
|
19
|
-
|
20
|
-
import {
|
21
|
-
import { NgZone } from '@angular/core';
|
22
|
-
import { OnDestroy } from '@angular/core';
|
23
|
-
import { PlatformRef } from '@angular/core';
|
24
|
-
import { Predicate } from '@angular/core';
|
25
|
-
import { Provider } from '@angular/core';
|
26
|
-
import { Renderer2 } from '@angular/core';
|
27
|
-
import { RendererFactory2 } from '@angular/core';
|
28
|
-
import { RendererType2 } from '@angular/core';
|
29
|
-
import { Sanitizer } from '@angular/core';
|
30
|
-
import { SecurityContext } from '@angular/core';
|
31
|
-
import { StaticProvider } from '@angular/core';
|
32
|
-
import { Testability } from '@angular/core';
|
33
|
-
import { TestabilityRegistry } from '@angular/core';
|
34
|
-
import { Type } from '@angular/core';
|
35
|
-
import { Version } from '@angular/core';
|
36
|
-
import { ɵDomAdapter } from '@angular/common';
|
37
|
-
import { ɵgetDOM } from '@angular/common';
|
38
|
-
import { ɵTracingService } from '@angular/core';
|
39
|
-
import { ɵTracingSnapshot } from '@angular/core';
|
10
|
+
import { ɵDomAdapter as _DomAdapter } from '@angular/common';
|
11
|
+
export { ɵgetDOM } from '@angular/common';
|
12
|
+
import { HttpTransferCacheOptions } from '@angular/common/http';
|
40
13
|
|
41
14
|
/**
|
42
15
|
* Set of config options available during the application bootstrap operation.
|
@@ -46,7 +19,7 @@ import { ɵTracingSnapshot } from '@angular/core';
|
|
46
19
|
* @deprecated
|
47
20
|
* `ApplicationConfig` has moved, please import `ApplicationConfig` from `@angular/core` instead.
|
48
21
|
*/
|
49
|
-
|
22
|
+
type ApplicationConfig = ApplicationConfig$1;
|
50
23
|
|
51
24
|
/**
|
52
25
|
* Bootstraps an instance of an Angular application and renders a standalone component as the
|
@@ -107,8 +80,41 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
107
80
|
*
|
108
81
|
* @publicApi
|
109
82
|
*/
|
110
|
-
|
111
|
-
|
83
|
+
declare function bootstrapApplication(rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef>;
|
84
|
+
/**
|
85
|
+
* Create an instance of an Angular application without bootstrapping any components. This is useful
|
86
|
+
* for the situation where one wants to decouple application environment creation (a platform and
|
87
|
+
* associated injectors) from rendering components on a screen. Components can be subsequently
|
88
|
+
* bootstrapped on the returned `ApplicationRef`.
|
89
|
+
*
|
90
|
+
* @param options Extra configuration for the application environment, see `ApplicationConfig` for
|
91
|
+
* additional info.
|
92
|
+
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
93
|
+
*
|
94
|
+
* @publicApi
|
95
|
+
*/
|
96
|
+
declare function createApplication(options?: ApplicationConfig): Promise<ApplicationRef>;
|
97
|
+
/**
|
98
|
+
* Returns a set of providers required to setup [Testability](api/core/Testability) for an
|
99
|
+
* application bootstrapped using the `bootstrapApplication` function. The set of providers is
|
100
|
+
* needed to support testing an application with Protractor (which relies on the Testability APIs
|
101
|
+
* to be present).
|
102
|
+
*
|
103
|
+
* @returns An array of providers required to setup Testability for an application and make it
|
104
|
+
* available for testing using Protractor.
|
105
|
+
*
|
106
|
+
* @publicApi
|
107
|
+
*/
|
108
|
+
declare function provideProtractorTestingSupport(): Provider[];
|
109
|
+
declare function initDomAdapter(): void;
|
110
|
+
declare const INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
|
111
|
+
/**
|
112
|
+
* A factory function that returns a `PlatformRef` instance associated with browser service
|
113
|
+
* providers.
|
114
|
+
*
|
115
|
+
* @publicApi
|
116
|
+
*/
|
117
|
+
declare const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef;
|
112
118
|
/**
|
113
119
|
* Exports required infrastructure for all Angular apps.
|
114
120
|
* Included by default in all Angular apps created with the CLI
|
@@ -118,19 +124,178 @@ export declare function bootstrapApplication(rootComponent: Type<unknown>, optio
|
|
118
124
|
*
|
119
125
|
* @publicApi
|
120
126
|
*/
|
121
|
-
|
127
|
+
declare class BrowserModule {
|
122
128
|
constructor();
|
123
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserModule, never>;
|
124
130
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserModule, never, never, [typeof i1.CommonModule, typeof i0.ApplicationModule]>;
|
125
131
|
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserModule>;
|
126
132
|
}
|
127
133
|
|
134
|
+
/**
|
135
|
+
* Represents the attributes of an HTML `<meta>` element. The element itself is
|
136
|
+
* represented by the internal `HTMLMetaElement`.
|
137
|
+
*
|
138
|
+
* @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
|
139
|
+
* @see {@link Meta}
|
140
|
+
*
|
141
|
+
* @publicApi
|
142
|
+
*/
|
143
|
+
type MetaDefinition = {
|
144
|
+
charset?: string;
|
145
|
+
content?: string;
|
146
|
+
httpEquiv?: string;
|
147
|
+
id?: string;
|
148
|
+
itemprop?: string;
|
149
|
+
name?: string;
|
150
|
+
property?: string;
|
151
|
+
scheme?: string;
|
152
|
+
url?: string;
|
153
|
+
} & {
|
154
|
+
[prop: string]: string;
|
155
|
+
};
|
156
|
+
/**
|
157
|
+
* A service for managing HTML `<meta>` tags.
|
158
|
+
*
|
159
|
+
* Properties of the `MetaDefinition` object match the attributes of the
|
160
|
+
* HTML `<meta>` tag. These tags define document metadata that is important for
|
161
|
+
* things like configuring a Content Security Policy, defining browser compatibility
|
162
|
+
* and security settings, setting HTTP Headers, defining rich content for social sharing,
|
163
|
+
* and Search Engine Optimization (SEO).
|
164
|
+
*
|
165
|
+
* To identify specific `<meta>` tags in a document, use an attribute selection
|
166
|
+
* string in the format `"tag_attribute='value string'"`.
|
167
|
+
* For example, an `attrSelector` value of `"name='description'"` matches a tag
|
168
|
+
* whose `name` attribute has the value `"description"`.
|
169
|
+
* Selectors are used with the `querySelector()` Document method,
|
170
|
+
* in the format `meta[{attrSelector}]`.
|
171
|
+
*
|
172
|
+
* @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
|
173
|
+
* @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
|
174
|
+
*
|
175
|
+
*
|
176
|
+
* @publicApi
|
177
|
+
*/
|
178
|
+
declare class Meta {
|
179
|
+
private _doc;
|
180
|
+
private _dom;
|
181
|
+
constructor(_doc: any);
|
182
|
+
/**
|
183
|
+
* Retrieves or creates a specific `<meta>` tag element in the current HTML document.
|
184
|
+
* In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
|
185
|
+
* values in the provided tag definition, and verifies that all other attribute values are equal.
|
186
|
+
* If an existing element is found, it is returned and is not modified in any way.
|
187
|
+
* @param tag The definition of a `<meta>` element to match or create.
|
188
|
+
* @param forceCreation True to create a new element without checking whether one already exists.
|
189
|
+
* @returns The existing element with the same attributes and values if found,
|
190
|
+
* the new element if no match is found, or `null` if the tag parameter is not defined.
|
191
|
+
*/
|
192
|
+
addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement | null;
|
193
|
+
/**
|
194
|
+
* Retrieves or creates a set of `<meta>` tag elements in the current HTML document.
|
195
|
+
* In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
|
196
|
+
* values in the provided tag definition, and verifies that all other attribute values are equal.
|
197
|
+
* @param tags An array of tag definitions to match or create.
|
198
|
+
* @param forceCreation True to create new elements without checking whether they already exist.
|
199
|
+
* @returns The matching elements if found, or the new elements.
|
200
|
+
*/
|
201
|
+
addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
|
202
|
+
/**
|
203
|
+
* Retrieves a `<meta>` tag element in the current HTML document.
|
204
|
+
* @param attrSelector The tag attribute and value to match against, in the format
|
205
|
+
* `"tag_attribute='value string'"`.
|
206
|
+
* @returns The matching element, if any.
|
207
|
+
*/
|
208
|
+
getTag(attrSelector: string): HTMLMetaElement | null;
|
209
|
+
/**
|
210
|
+
* Retrieves a set of `<meta>` tag elements in the current HTML document.
|
211
|
+
* @param attrSelector The tag attribute and value to match against, in the format
|
212
|
+
* `"tag_attribute='value string'"`.
|
213
|
+
* @returns The matching elements, if any.
|
214
|
+
*/
|
215
|
+
getTags(attrSelector: string): HTMLMetaElement[];
|
216
|
+
/**
|
217
|
+
* Modifies an existing `<meta>` tag element in the current HTML document.
|
218
|
+
* @param tag The tag description with which to replace the existing tag content.
|
219
|
+
* @param selector A tag attribute and value to match against, to identify
|
220
|
+
* an existing tag. A string in the format `"tag_attribute=`value string`"`.
|
221
|
+
* If not supplied, matches a tag with the same `name` or `property` attribute value as the
|
222
|
+
* replacement tag.
|
223
|
+
* @return The modified element.
|
224
|
+
*/
|
225
|
+
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null;
|
226
|
+
/**
|
227
|
+
* Removes an existing `<meta>` tag element from the current HTML document.
|
228
|
+
* @param attrSelector A tag attribute and value to match against, to identify
|
229
|
+
* an existing tag. A string in the format `"tag_attribute=`value string`"`.
|
230
|
+
*/
|
231
|
+
removeTag(attrSelector: string): void;
|
232
|
+
/**
|
233
|
+
* Removes an existing `<meta>` tag element from the current HTML document.
|
234
|
+
* @param meta The tag definition to match against to identify an existing tag.
|
235
|
+
*/
|
236
|
+
removeTagElement(meta: HTMLMetaElement): void;
|
237
|
+
private _getOrCreateElement;
|
238
|
+
private _setMetaElementAttributes;
|
239
|
+
private _parseSelector;
|
240
|
+
private _containsAttributes;
|
241
|
+
private _getMetaKeyMap;
|
242
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Meta, never>;
|
243
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Meta>;
|
244
|
+
}
|
245
|
+
|
246
|
+
/**
|
247
|
+
* A service that can be used to get and set the title of a current HTML document.
|
248
|
+
*
|
249
|
+
* Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
|
250
|
+
* it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
|
251
|
+
* (representing the `<title>` tag). Instead, this service can be used to set and get the current
|
252
|
+
* title value.
|
253
|
+
*
|
254
|
+
* @publicApi
|
255
|
+
*/
|
256
|
+
declare class Title {
|
257
|
+
private _doc;
|
258
|
+
constructor(_doc: any);
|
259
|
+
/**
|
260
|
+
* Get the title of the current HTML document.
|
261
|
+
*/
|
262
|
+
getTitle(): string;
|
263
|
+
/**
|
264
|
+
* Set the title of the current HTML document.
|
265
|
+
* @param newTitle
|
266
|
+
*/
|
267
|
+
setTitle(newTitle: string): void;
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Title, never>;
|
269
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Title>;
|
270
|
+
}
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Enabled Angular debug tools that are accessible via your browser's
|
274
|
+
* developer console.
|
275
|
+
*
|
276
|
+
* Usage:
|
277
|
+
*
|
278
|
+
* 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
|
279
|
+
* 1. Type `ng.` (usually the console will show auto-complete suggestion)
|
280
|
+
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
|
281
|
+
* then hit Enter.
|
282
|
+
*
|
283
|
+
* @publicApi
|
284
|
+
*/
|
285
|
+
declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
|
286
|
+
/**
|
287
|
+
* Disables Angular tools.
|
288
|
+
*
|
289
|
+
* @publicApi
|
290
|
+
*/
|
291
|
+
declare function disableDebugTools(): void;
|
292
|
+
|
128
293
|
/**
|
129
294
|
* Predicates for use with {@link DebugElement}'s query functions.
|
130
295
|
*
|
131
296
|
* @publicApi
|
132
297
|
*/
|
133
|
-
|
298
|
+
declare class By {
|
134
299
|
/**
|
135
300
|
* Match all nodes.
|
136
301
|
*
|
@@ -161,196 +326,154 @@ export declare class By {
|
|
161
326
|
}
|
162
327
|
|
163
328
|
/**
|
164
|
-
*
|
165
|
-
* for the situation where one wants to decouple application environment creation (a platform and
|
166
|
-
* associated injectors) from rendering components on a screen. Components can be subsequently
|
167
|
-
* bootstrapped on the returned `ApplicationRef`.
|
168
|
-
*
|
169
|
-
* @param options Extra configuration for the application environment, see `ApplicationConfig` for
|
170
|
-
* additional info.
|
171
|
-
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
329
|
+
* The injection token for plugins of the `EventManager` service.
|
172
330
|
*
|
173
331
|
* @publicApi
|
174
332
|
*/
|
175
|
-
|
176
|
-
|
333
|
+
declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
|
177
334
|
/**
|
178
|
-
*
|
335
|
+
* An injectable service that provides event management for Angular
|
336
|
+
* through a browser plug-in.
|
179
337
|
*
|
180
338
|
* @publicApi
|
181
339
|
*/
|
182
|
-
|
183
|
-
|
340
|
+
declare class EventManager {
|
341
|
+
private _zone;
|
342
|
+
private _plugins;
|
343
|
+
private _eventNameToPlugin;
|
344
|
+
/**
|
345
|
+
* Initializes an instance of the event-manager service.
|
346
|
+
*/
|
347
|
+
constructor(plugins: EventManagerPlugin[], _zone: NgZone);
|
348
|
+
/**
|
349
|
+
* Registers a handler for a specific element and event.
|
350
|
+
*
|
351
|
+
* @param element The HTML element to receive event notifications.
|
352
|
+
* @param eventName The name of the event to listen for.
|
353
|
+
* @param handler A function to call when the notification occurs. Receives the
|
354
|
+
* event object as an argument.
|
355
|
+
* @param options Options that configure how the event listener is bound.
|
356
|
+
* @returns A callback function that can be used to remove the handler.
|
357
|
+
*/
|
358
|
+
addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
|
359
|
+
/**
|
360
|
+
* Retrieves the compilation zone in which event listeners are registered.
|
361
|
+
*/
|
362
|
+
getZone(): NgZone;
|
363
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventManager, never>;
|
364
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventManager>;
|
365
|
+
}
|
184
366
|
/**
|
185
|
-
*
|
186
|
-
* values to be safe to use in the different DOM contexts.
|
187
|
-
*
|
188
|
-
* For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
|
189
|
-
* sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
|
190
|
-
* the website.
|
191
|
-
*
|
192
|
-
* In specific situations, it might be necessary to disable sanitization, for example if the
|
193
|
-
* application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
|
194
|
-
* Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
|
195
|
-
* methods, and then binding to that value from the template.
|
196
|
-
*
|
197
|
-
* These situations should be very rare, and extraordinary care must be taken to avoid creating a
|
198
|
-
* Cross Site Scripting (XSS) security bug!
|
199
|
-
*
|
200
|
-
* When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
|
201
|
-
* close as possible to the source of the value, to make it easy to verify no security bug is
|
202
|
-
* created by its use.
|
203
|
-
*
|
204
|
-
* It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
|
205
|
-
* does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
|
206
|
-
* code. The sanitizer leaves safe values intact.
|
367
|
+
* The plugin definition for the `EventManager` class
|
207
368
|
*
|
208
|
-
*
|
209
|
-
*
|
210
|
-
* into this call. Make sure any user data is appropriately escaped for this security context.
|
211
|
-
* For more detail, see the [Security Guide](https://g.co/ng/security).
|
369
|
+
* It can be used as a base class to create custom manager plugins, i.e. you can create your own
|
370
|
+
* class that extends the `EventManagerPlugin` one.
|
212
371
|
*
|
213
372
|
* @publicApi
|
214
373
|
*/
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
*
|
221
|
-
* sanitizes the string, removing any potentially unsafe content.
|
222
|
-
* For any other security context, this method throws an error if provided
|
223
|
-
* with a plain string.
|
374
|
+
declare abstract class EventManagerPlugin {
|
375
|
+
private _doc;
|
376
|
+
constructor(_doc: any);
|
377
|
+
manager: EventManager;
|
378
|
+
/**
|
379
|
+
* Should return `true` for every event name that should be supported by this plugin
|
224
380
|
*/
|
225
|
-
abstract
|
381
|
+
abstract supports(eventName: string): boolean;
|
226
382
|
/**
|
227
|
-
*
|
228
|
-
* is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will
|
229
|
-
* leave safe HTML intact, so in most situations this method should not be used.
|
230
|
-
*
|
231
|
-
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
232
|
-
* security risks!
|
383
|
+
* Implement the behaviour for the supported events
|
233
384
|
*/
|
234
|
-
abstract
|
385
|
+
abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
|
386
|
+
}
|
387
|
+
|
388
|
+
/**
|
389
|
+
* A record of usage for a specific style including all elements added to the DOM
|
390
|
+
* that contain a given style.
|
391
|
+
*/
|
392
|
+
interface UsageRecord<T> {
|
393
|
+
elements: T[];
|
394
|
+
usage: number;
|
395
|
+
}
|
396
|
+
declare class SharedStylesHost implements OnDestroy {
|
397
|
+
private readonly doc;
|
398
|
+
private readonly appId;
|
399
|
+
private readonly nonce?;
|
235
400
|
/**
|
236
|
-
*
|
237
|
-
*
|
238
|
-
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
239
|
-
* security risks!
|
401
|
+
* Provides usage information for active inline style content and associated HTML <style> elements.
|
402
|
+
* Embedded styles typically originate from the `styles` metadata of a rendered component.
|
240
403
|
*/
|
241
|
-
|
404
|
+
private readonly inline;
|
242
405
|
/**
|
243
|
-
*
|
244
|
-
*
|
245
|
-
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
246
|
-
* security risks!
|
406
|
+
* Provides usage information for active external style URLs and the associated HTML <link> elements.
|
407
|
+
* External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.
|
247
408
|
*/
|
248
|
-
|
409
|
+
private readonly external;
|
249
410
|
/**
|
250
|
-
*
|
251
|
-
* in hyperlinks or `<img src>`.
|
252
|
-
*
|
253
|
-
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
254
|
-
* security risks!
|
411
|
+
* Set of host DOM nodes that will have styles attached.
|
255
412
|
*/
|
256
|
-
|
413
|
+
private readonly hosts;
|
257
414
|
/**
|
258
|
-
*
|
259
|
-
* be used to load executable code from, like `<script src>`, or `<iframe src>`.
|
260
|
-
*
|
261
|
-
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
262
|
-
* security risks!
|
415
|
+
* Whether the application code is currently executing on a server.
|
263
416
|
*/
|
264
|
-
|
265
|
-
|
266
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DomSanitizer>;
|
267
|
-
}
|
268
|
-
|
269
|
-
/**
|
270
|
-
* Enabled Angular debug tools that are accessible via your browser's
|
271
|
-
* developer console.
|
272
|
-
*
|
273
|
-
* Usage:
|
274
|
-
*
|
275
|
-
* 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
|
276
|
-
* 1. Type `ng.` (usually the console will show auto-complete suggestion)
|
277
|
-
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
|
278
|
-
* then hit Enter.
|
279
|
-
*
|
280
|
-
* @publicApi
|
281
|
-
*/
|
282
|
-
export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
|
283
|
-
|
284
|
-
/**
|
285
|
-
* The injection token for plugins of the `EventManager` service.
|
286
|
-
*
|
287
|
-
* @publicApi
|
288
|
-
*/
|
289
|
-
export declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
|
290
|
-
|
291
|
-
/**
|
292
|
-
* An injectable service that provides event management for Angular
|
293
|
-
* through a browser plug-in.
|
294
|
-
*
|
295
|
-
* @publicApi
|
296
|
-
*/
|
297
|
-
export declare class EventManager {
|
298
|
-
private _zone;
|
299
|
-
private _plugins;
|
300
|
-
private _eventNameToPlugin;
|
417
|
+
private readonly isServer;
|
418
|
+
constructor(doc: Document, appId: string, nonce?: string | null | undefined, platformId?: object);
|
301
419
|
/**
|
302
|
-
*
|
420
|
+
* Adds embedded styles to the DOM via HTML `style` elements.
|
421
|
+
* @param styles An array of style content strings.
|
303
422
|
*/
|
304
|
-
|
423
|
+
addStyles(styles: string[], urls?: string[]): void;
|
305
424
|
/**
|
306
|
-
*
|
307
|
-
*
|
308
|
-
* @param element The HTML element to receive event notifications.
|
309
|
-
* @param eventName The name of the event to listen for.
|
310
|
-
* @param handler A function to call when the notification occurs. Receives the
|
311
|
-
* event object as an argument.
|
312
|
-
* @param options Options that configure how the event listener is bound.
|
313
|
-
* @returns A callback function that can be used to remove the handler.
|
425
|
+
* Removes embedded styles from the DOM that were added as HTML `style` elements.
|
426
|
+
* @param styles An array of style content strings.
|
314
427
|
*/
|
315
|
-
|
428
|
+
removeStyles(styles: string[], urls?: string[]): void;
|
429
|
+
protected addUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>, creator: (value: string, doc: Document) => T): void;
|
430
|
+
protected removeUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>): void;
|
431
|
+
ngOnDestroy(): void;
|
316
432
|
/**
|
317
|
-
*
|
433
|
+
* Adds a host node to the set of style hosts and adds all existing style usage to
|
434
|
+
* the newly added host node.
|
435
|
+
*
|
436
|
+
* This is currently only used for Shadow DOM encapsulation mode.
|
318
437
|
*/
|
319
|
-
|
320
|
-
|
321
|
-
|
438
|
+
addHost(hostNode: Node): void;
|
439
|
+
removeHost(hostNode: Node): void;
|
440
|
+
private addElement;
|
441
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedStylesHost, [null, null, { optional: true; }, null]>;
|
442
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SharedStylesHost>;
|
322
443
|
}
|
323
444
|
|
324
445
|
/**
|
325
|
-
*
|
326
|
-
*
|
327
|
-
* It can be used as a base class to create custom manager plugins, i.e. you can create your own
|
328
|
-
* class that extends the `EventManagerPlugin` one.
|
446
|
+
* A DI token that indicates whether styles
|
447
|
+
* of destroyed components should be removed from DOM.
|
329
448
|
*
|
449
|
+
* By default, the value is set to `true`.
|
330
450
|
* @publicApi
|
331
451
|
*/
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
452
|
+
declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
|
453
|
+
declare class DomRendererFactory2 implements RendererFactory2, OnDestroy {
|
454
|
+
private readonly eventManager;
|
455
|
+
private readonly sharedStylesHost;
|
456
|
+
private readonly appId;
|
457
|
+
private removeStylesOnCompDestroy;
|
458
|
+
private readonly doc;
|
459
|
+
readonly platformId: Object;
|
460
|
+
readonly ngZone: NgZone;
|
461
|
+
private readonly nonce;
|
462
|
+
private readonly tracingService;
|
463
|
+
private readonly rendererByCompId;
|
464
|
+
private readonly defaultRenderer;
|
465
|
+
private readonly platformIsServer;
|
466
|
+
constructor(eventManager: EventManager, sharedStylesHost: SharedStylesHost, appId: string, removeStylesOnCompDestroy: boolean, doc: Document, platformId: Object, ngZone: NgZone, nonce?: string | null, tracingService?: _TracingService<_TracingSnapshot> | null);
|
467
|
+
createRenderer(element: any, type: RendererType2 | null): Renderer2;
|
468
|
+
private getOrCreateRenderer;
|
469
|
+
ngOnDestroy(): void;
|
340
470
|
/**
|
341
|
-
*
|
471
|
+
* Used during HMR to clear any cached data about a component.
|
472
|
+
* @param componentId ID of the component that is being replaced.
|
342
473
|
*/
|
343
|
-
|
344
|
-
}
|
345
|
-
|
346
|
-
/**
|
347
|
-
* Provides DOM operations in any browser environment.
|
348
|
-
*
|
349
|
-
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
350
|
-
* can introduce XSS risks.
|
351
|
-
*/
|
352
|
-
declare abstract class GenericBrowserDomAdapter extends ɵDomAdapter {
|
353
|
-
readonly supportsDOMEvents: boolean;
|
474
|
+
protected componentReplaced(componentId: string): void;
|
475
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomRendererFactory2, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
476
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DomRendererFactory2>;
|
354
477
|
}
|
355
478
|
|
356
479
|
/**
|
@@ -360,8 +483,13 @@ declare abstract class GenericBrowserDomAdapter extends ɵDomAdapter {
|
|
360
483
|
* @ngModule HammerModule
|
361
484
|
* @publicApi
|
362
485
|
*/
|
363
|
-
|
364
|
-
|
486
|
+
declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
|
487
|
+
/**
|
488
|
+
* Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.
|
489
|
+
*
|
490
|
+
* @publicApi
|
491
|
+
*/
|
492
|
+
type HammerLoader = () => Promise<void>;
|
365
493
|
/**
|
366
494
|
* Injection token used to provide a HammerLoader to Angular.
|
367
495
|
*
|
@@ -369,14 +497,18 @@ export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
|
|
369
497
|
*
|
370
498
|
* @publicApi
|
371
499
|
*/
|
372
|
-
|
373
|
-
|
500
|
+
declare const HAMMER_LOADER: InjectionToken<HammerLoader>;
|
501
|
+
interface HammerInstance {
|
502
|
+
on(eventName: string, callback?: Function): void;
|
503
|
+
off(eventName: string, callback?: Function): void;
|
504
|
+
destroy?(): void;
|
505
|
+
}
|
374
506
|
/**
|
375
507
|
* An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
|
376
508
|
* for gesture recognition. Configures specific event recognition.
|
377
509
|
* @publicApi
|
378
510
|
*/
|
379
|
-
|
511
|
+
declare class HammerGestureConfig {
|
380
512
|
/**
|
381
513
|
* A set of supported event names for gestures to be used in Angular.
|
382
514
|
* Angular supports all built-in recognizers, as listed in
|
@@ -429,20 +561,23 @@ export declare class HammerGestureConfig {
|
|
429
561
|
static ɵfac: i0.ɵɵFactoryDeclaration<HammerGestureConfig, never>;
|
430
562
|
static ɵprov: i0.ɵɵInjectableDeclaration<HammerGestureConfig>;
|
431
563
|
}
|
432
|
-
|
433
|
-
declare interface HammerInstance {
|
434
|
-
on(eventName: string, callback?: Function): void;
|
435
|
-
off(eventName: string, callback?: Function): void;
|
436
|
-
destroy?(): void;
|
437
|
-
}
|
438
|
-
|
439
564
|
/**
|
440
|
-
*
|
565
|
+
* Event plugin that adds Hammer support to an application.
|
441
566
|
*
|
442
|
-
* @
|
567
|
+
* @ngModule HammerModule
|
443
568
|
*/
|
444
|
-
|
445
|
-
|
569
|
+
declare class HammerGesturesPlugin extends EventManagerPlugin {
|
570
|
+
private _config;
|
571
|
+
private _injector;
|
572
|
+
private loader?;
|
573
|
+
private _loaderPromise;
|
574
|
+
constructor(doc: any, _config: HammerGestureConfig, _injector: Injector, loader?: (HammerLoader | null) | undefined);
|
575
|
+
supports(eventName: string): boolean;
|
576
|
+
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
577
|
+
isCustomEvent(eventName: string): boolean;
|
578
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HammerGesturesPlugin, [null, null, null, { optional: true; }]>;
|
579
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HammerGesturesPlugin>;
|
580
|
+
}
|
446
581
|
/**
|
447
582
|
* Adds support for HammerJS.
|
448
583
|
*
|
@@ -454,318 +589,196 @@ export declare type HammerLoader = () => Promise<void>;
|
|
454
589
|
*
|
455
590
|
* @publicApi
|
456
591
|
*/
|
457
|
-
|
592
|
+
declare class HammerModule {
|
458
593
|
static ɵfac: i0.ɵɵFactoryDeclaration<HammerModule, never>;
|
459
594
|
static ɵmod: i0.ɵɵNgModuleDeclaration<HammerModule, never, never, never>;
|
460
595
|
static ɵinj: i0.ɵɵInjectorDeclaration<HammerModule>;
|
461
596
|
}
|
462
597
|
|
463
598
|
/**
|
464
|
-
*
|
599
|
+
* Marker interface for a value that's safe to use in a particular context.
|
465
600
|
*
|
466
601
|
* @publicApi
|
467
602
|
*/
|
468
|
-
|
469
|
-
ɵkind: FeatureKind;
|
470
|
-
ɵproviders: Provider[];
|
603
|
+
interface SafeValue {
|
471
604
|
}
|
472
|
-
|
473
605
|
/**
|
474
|
-
*
|
475
|
-
* @see {@link HydrationFeature}
|
606
|
+
* Marker interface for a value that's safe to use as HTML.
|
476
607
|
*
|
477
608
|
* @publicApi
|
478
609
|
*/
|
479
|
-
|
480
|
-
NoHttpTransferCache = 0,
|
481
|
-
HttpTransferCacheOptions = 1,
|
482
|
-
I18nSupport = 2,
|
483
|
-
EventReplay = 3,
|
484
|
-
IncrementalHydration = 4
|
610
|
+
interface SafeHtml extends SafeValue {
|
485
611
|
}
|
486
|
-
|
487
612
|
/**
|
488
|
-
*
|
489
|
-
*
|
490
|
-
* Properties of the `MetaDefinition` object match the attributes of the
|
491
|
-
* HTML `<meta>` tag. These tags define document metadata that is important for
|
492
|
-
* things like configuring a Content Security Policy, defining browser compatibility
|
493
|
-
* and security settings, setting HTTP Headers, defining rich content for social sharing,
|
494
|
-
* and Search Engine Optimization (SEO).
|
495
|
-
*
|
496
|
-
* To identify specific `<meta>` tags in a document, use an attribute selection
|
497
|
-
* string in the format `"tag_attribute='value string'"`.
|
498
|
-
* For example, an `attrSelector` value of `"name='description'"` matches a tag
|
499
|
-
* whose `name` attribute has the value `"description"`.
|
500
|
-
* Selectors are used with the `querySelector()` Document method,
|
501
|
-
* in the format `meta[{attrSelector}]`.
|
502
|
-
*
|
503
|
-
* @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
|
504
|
-
* @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
|
505
|
-
*
|
613
|
+
* Marker interface for a value that's safe to use as style (CSS).
|
506
614
|
*
|
507
615
|
* @publicApi
|
508
616
|
*/
|
509
|
-
|
510
|
-
private _doc;
|
511
|
-
private _dom;
|
512
|
-
constructor(_doc: any);
|
513
|
-
/**
|
514
|
-
* Retrieves or creates a specific `<meta>` tag element in the current HTML document.
|
515
|
-
* In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
|
516
|
-
* values in the provided tag definition, and verifies that all other attribute values are equal.
|
517
|
-
* If an existing element is found, it is returned and is not modified in any way.
|
518
|
-
* @param tag The definition of a `<meta>` element to match or create.
|
519
|
-
* @param forceCreation True to create a new element without checking whether one already exists.
|
520
|
-
* @returns The existing element with the same attributes and values if found,
|
521
|
-
* the new element if no match is found, or `null` if the tag parameter is not defined.
|
522
|
-
*/
|
523
|
-
addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement | null;
|
524
|
-
/**
|
525
|
-
* Retrieves or creates a set of `<meta>` tag elements in the current HTML document.
|
526
|
-
* In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
|
527
|
-
* values in the provided tag definition, and verifies that all other attribute values are equal.
|
528
|
-
* @param tags An array of tag definitions to match or create.
|
529
|
-
* @param forceCreation True to create new elements without checking whether they already exist.
|
530
|
-
* @returns The matching elements if found, or the new elements.
|
531
|
-
*/
|
532
|
-
addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
|
533
|
-
/**
|
534
|
-
* Retrieves a `<meta>` tag element in the current HTML document.
|
535
|
-
* @param attrSelector The tag attribute and value to match against, in the format
|
536
|
-
* `"tag_attribute='value string'"`.
|
537
|
-
* @returns The matching element, if any.
|
538
|
-
*/
|
539
|
-
getTag(attrSelector: string): HTMLMetaElement | null;
|
540
|
-
/**
|
541
|
-
* Retrieves a set of `<meta>` tag elements in the current HTML document.
|
542
|
-
* @param attrSelector The tag attribute and value to match against, in the format
|
543
|
-
* `"tag_attribute='value string'"`.
|
544
|
-
* @returns The matching elements, if any.
|
545
|
-
*/
|
546
|
-
getTags(attrSelector: string): HTMLMetaElement[];
|
547
|
-
/**
|
548
|
-
* Modifies an existing `<meta>` tag element in the current HTML document.
|
549
|
-
* @param tag The tag description with which to replace the existing tag content.
|
550
|
-
* @param selector A tag attribute and value to match against, to identify
|
551
|
-
* an existing tag. A string in the format `"tag_attribute=`value string`"`.
|
552
|
-
* If not supplied, matches a tag with the same `name` or `property` attribute value as the
|
553
|
-
* replacement tag.
|
554
|
-
* @return The modified element.
|
555
|
-
*/
|
556
|
-
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null;
|
557
|
-
/**
|
558
|
-
* Removes an existing `<meta>` tag element from the current HTML document.
|
559
|
-
* @param attrSelector A tag attribute and value to match against, to identify
|
560
|
-
* an existing tag. A string in the format `"tag_attribute=`value string`"`.
|
561
|
-
*/
|
562
|
-
removeTag(attrSelector: string): void;
|
563
|
-
/**
|
564
|
-
* Removes an existing `<meta>` tag element from the current HTML document.
|
565
|
-
* @param meta The tag definition to match against to identify an existing tag.
|
566
|
-
*/
|
567
|
-
removeTagElement(meta: HTMLMetaElement): void;
|
568
|
-
private _getOrCreateElement;
|
569
|
-
private _setMetaElementAttributes;
|
570
|
-
private _parseSelector;
|
571
|
-
private _containsAttributes;
|
572
|
-
private _getMetaKeyMap;
|
573
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Meta, never>;
|
574
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Meta>;
|
617
|
+
interface SafeStyle extends SafeValue {
|
575
618
|
}
|
576
|
-
|
577
619
|
/**
|
578
|
-
*
|
579
|
-
* represented by the internal `HTMLMetaElement`.
|
580
|
-
*
|
581
|
-
* @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
|
582
|
-
* @see {@link Meta}
|
620
|
+
* Marker interface for a value that's safe to use as JavaScript.
|
583
621
|
*
|
584
622
|
* @publicApi
|
585
623
|
*/
|
586
|
-
|
587
|
-
|
588
|
-
content?: string;
|
589
|
-
httpEquiv?: string;
|
590
|
-
id?: string;
|
591
|
-
itemprop?: string;
|
592
|
-
name?: string;
|
593
|
-
property?: string;
|
594
|
-
scheme?: string;
|
595
|
-
url?: string;
|
596
|
-
} & {
|
597
|
-
[prop: string]: string;
|
598
|
-
};
|
599
|
-
|
624
|
+
interface SafeScript extends SafeValue {
|
625
|
+
}
|
600
626
|
/**
|
601
|
-
*
|
602
|
-
* providers.
|
627
|
+
* Marker interface for a value that's safe to use as a URL linking to a document.
|
603
628
|
*
|
604
629
|
* @publicApi
|
605
630
|
*/
|
606
|
-
|
607
|
-
|
631
|
+
interface SafeUrl extends SafeValue {
|
632
|
+
}
|
608
633
|
/**
|
609
|
-
*
|
610
|
-
*
|
611
|
-
* By default, the function enables the recommended set of features for the optimal
|
612
|
-
* performance for most of the applications. It includes the following features:
|
613
|
-
*
|
614
|
-
* * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
|
615
|
-
* * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
|
616
|
-
* transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
|
617
|
-
* [here](guide/ssr#caching-data-when-using-httpclient).
|
618
|
-
*
|
619
|
-
* These functions allow you to disable some of the default features or enable new ones:
|
620
|
-
*
|
621
|
-
* * {@link withNoHttpTransferCache} to disable HTTP transfer cache
|
622
|
-
* * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options
|
623
|
-
* * {@link withI18nSupport} to enable hydration support for i18n blocks
|
624
|
-
* * {@link withEventReplay} to enable support for replaying user events
|
625
|
-
*
|
626
|
-
* @usageNotes
|
627
|
-
*
|
628
|
-
* Basic example of how you can enable hydration in your application when
|
629
|
-
* `bootstrapApplication` function is used:
|
630
|
-
* ```ts
|
631
|
-
* bootstrapApplication(AppComponent, {
|
632
|
-
* providers: [provideClientHydration()]
|
633
|
-
* });
|
634
|
-
* ```
|
635
|
-
*
|
636
|
-
* Alternatively if you are using NgModules, you would add `provideClientHydration`
|
637
|
-
* to your root app module's provider list.
|
638
|
-
* ```ts
|
639
|
-
* @NgModule({
|
640
|
-
* declarations: [RootCmp],
|
641
|
-
* bootstrap: [RootCmp],
|
642
|
-
* providers: [provideClientHydration()],
|
643
|
-
* })
|
644
|
-
* export class AppModule {}
|
645
|
-
* ```
|
646
|
-
*
|
647
|
-
* @see {@link withNoHttpTransferCache}
|
648
|
-
* @see {@link withHttpTransferCacheOptions}
|
649
|
-
* @see {@link withI18nSupport}
|
650
|
-
* @see {@link withEventReplay}
|
651
|
-
*
|
652
|
-
* @param features Optional features to configure additional router behaviors.
|
653
|
-
* @returns A set of providers to enable hydration.
|
634
|
+
* Marker interface for a value that's safe to use as a URL to load executable code from.
|
654
635
|
*
|
655
636
|
* @publicApi
|
656
637
|
*/
|
657
|
-
|
658
|
-
|
638
|
+
interface SafeResourceUrl extends SafeValue {
|
639
|
+
}
|
659
640
|
/**
|
660
|
-
*
|
661
|
-
*
|
662
|
-
* needed to support testing an application with Protractor (which relies on the Testability APIs
|
663
|
-
* to be present).
|
641
|
+
* DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
|
642
|
+
* values to be safe to use in the different DOM contexts.
|
664
643
|
*
|
665
|
-
*
|
666
|
-
*
|
644
|
+
* For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
|
645
|
+
* sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
|
646
|
+
* the website.
|
667
647
|
*
|
668
|
-
*
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
/**
|
673
|
-
* A DI token that indicates whether styles
|
674
|
-
* of destroyed components should be removed from DOM.
|
648
|
+
* In specific situations, it might be necessary to disable sanitization, for example if the
|
649
|
+
* application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
|
650
|
+
* Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
|
651
|
+
* methods, and then binding to that value from the template.
|
675
652
|
*
|
676
|
-
*
|
677
|
-
*
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
*
|
653
|
+
* These situations should be very rare, and extraordinary care must be taken to avoid creating a
|
654
|
+
* Cross Site Scripting (XSS) security bug!
|
655
|
+
*
|
656
|
+
* When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
|
657
|
+
* close as possible to the source of the value, to make it easy to verify no security bug is
|
658
|
+
* created by its use.
|
659
|
+
*
|
660
|
+
* It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
|
661
|
+
* does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
|
662
|
+
* code. The sanitizer leaves safe values intact.
|
663
|
+
*
|
664
|
+
* @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
|
665
|
+
* sanitization for the value passed in. Carefully check and audit all values and code paths going
|
666
|
+
* into this call. Make sure any user data is appropriately escaped for this security context.
|
667
|
+
* For more detail, see the [Security Guide](https://g.co/ng/security).
|
683
668
|
*
|
684
669
|
* @publicApi
|
685
670
|
*/
|
686
|
-
|
671
|
+
declare abstract class DomSanitizer implements Sanitizer {
|
672
|
+
/**
|
673
|
+
* Gets a safe value from either a known safe value or a value with unknown safety.
|
674
|
+
*
|
675
|
+
* If the given value is already a `SafeValue`, this method returns the unwrapped value.
|
676
|
+
* If the security context is HTML and the given value is a plain string, this method
|
677
|
+
* sanitizes the string, removing any potentially unsafe content.
|
678
|
+
* For any other security context, this method throws an error if provided
|
679
|
+
* with a plain string.
|
680
|
+
*/
|
681
|
+
abstract sanitize(context: SecurityContext, value: SafeValue | string | null): string | null;
|
682
|
+
/**
|
683
|
+
* Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML
|
684
|
+
* is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will
|
685
|
+
* leave safe HTML intact, so in most situations this method should not be used.
|
686
|
+
*
|
687
|
+
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
688
|
+
* security risks!
|
689
|
+
*/
|
690
|
+
abstract bypassSecurityTrustHtml(value: string): SafeHtml;
|
691
|
+
/**
|
692
|
+
* Bypass security and trust the given value to be safe style value (CSS).
|
693
|
+
*
|
694
|
+
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
695
|
+
* security risks!
|
696
|
+
*/
|
697
|
+
abstract bypassSecurityTrustStyle(value: string): SafeStyle;
|
698
|
+
/**
|
699
|
+
* Bypass security and trust the given value to be safe JavaScript.
|
700
|
+
*
|
701
|
+
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
702
|
+
* security risks!
|
703
|
+
*/
|
704
|
+
abstract bypassSecurityTrustScript(value: string): SafeScript;
|
705
|
+
/**
|
706
|
+
* Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used
|
707
|
+
* in hyperlinks or `<img src>`.
|
708
|
+
*
|
709
|
+
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
710
|
+
* security risks!
|
711
|
+
*/
|
712
|
+
abstract bypassSecurityTrustUrl(value: string): SafeUrl;
|
713
|
+
/**
|
714
|
+
* Bypass security and trust the given value to be a safe resource URL, i.e. a location that may
|
715
|
+
* be used to load executable code from, like `<script src>`, or `<iframe src>`.
|
716
|
+
*
|
717
|
+
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
|
718
|
+
* security risks!
|
719
|
+
*/
|
720
|
+
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
|
721
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomSanitizer, never>;
|
722
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DomSanitizer>;
|
687
723
|
}
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
724
|
+
declare class DomSanitizerImpl extends DomSanitizer {
|
725
|
+
private _doc;
|
726
|
+
constructor(_doc: any);
|
727
|
+
sanitize(ctx: SecurityContext, value: SafeValue | string | null): string | null;
|
728
|
+
bypassSecurityTrustHtml(value: string): SafeHtml;
|
729
|
+
bypassSecurityTrustStyle(value: string): SafeStyle;
|
730
|
+
bypassSecurityTrustScript(value: string): SafeScript;
|
731
|
+
bypassSecurityTrustUrl(value: string): SafeUrl;
|
732
|
+
bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
|
733
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomSanitizerImpl, never>;
|
734
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DomSanitizerImpl>;
|
695
735
|
}
|
696
736
|
|
697
737
|
/**
|
698
|
-
*
|
738
|
+
* The list of features as an enum to uniquely type each `HydrationFeature`.
|
739
|
+
* @see {@link HydrationFeature}
|
699
740
|
*
|
700
741
|
* @publicApi
|
701
742
|
*/
|
702
|
-
|
743
|
+
declare enum HydrationFeatureKind {
|
744
|
+
NoHttpTransferCache = 0,
|
745
|
+
HttpTransferCacheOptions = 1,
|
746
|
+
I18nSupport = 2,
|
747
|
+
EventReplay = 3,
|
748
|
+
IncrementalHydration = 4
|
703
749
|
}
|
704
|
-
|
705
750
|
/**
|
706
|
-
*
|
751
|
+
* Helper type to represent a Hydration feature.
|
707
752
|
*
|
708
753
|
* @publicApi
|
709
754
|
*/
|
710
|
-
|
755
|
+
interface HydrationFeature<FeatureKind extends HydrationFeatureKind> {
|
756
|
+
ɵkind: FeatureKind;
|
757
|
+
ɵproviders: Provider[];
|
711
758
|
}
|
712
|
-
|
713
759
|
/**
|
714
|
-
*
|
760
|
+
* Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
|
761
|
+
* server and other one on the browser.
|
715
762
|
*
|
716
763
|
* @publicApi
|
717
764
|
*/
|
718
|
-
|
719
|
-
}
|
720
|
-
|
765
|
+
declare function withNoHttpTransferCache(): HydrationFeature<HydrationFeatureKind.NoHttpTransferCache>;
|
721
766
|
/**
|
722
|
-
*
|
767
|
+
* The function accepts an object, which allows to configure cache parameters,
|
768
|
+
* such as which headers should be included (no headers are included by default),
|
769
|
+
* whether POST requests should be cached or a callback function to determine if a
|
770
|
+
* particular request should be cached.
|
723
771
|
*
|
724
772
|
* @publicApi
|
725
773
|
*/
|
726
|
-
|
727
|
-
}
|
728
|
-
|
774
|
+
declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
|
729
775
|
/**
|
730
|
-
*
|
731
|
-
*
|
732
|
-
* Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
|
733
|
-
* it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
|
734
|
-
* (representing the `<title>` tag). Instead, this service can be used to set and get the current
|
735
|
-
* title value.
|
776
|
+
* Enables support for hydrating i18n blocks.
|
736
777
|
*
|
778
|
+
* @developerPreview
|
737
779
|
* @publicApi
|
738
780
|
*/
|
739
|
-
|
740
|
-
private _doc;
|
741
|
-
constructor(_doc: any);
|
742
|
-
/**
|
743
|
-
* Get the title of the current HTML document.
|
744
|
-
*/
|
745
|
-
getTitle(): string;
|
746
|
-
/**
|
747
|
-
* Set the title of the current HTML document.
|
748
|
-
* @param newTitle
|
749
|
-
*/
|
750
|
-
setTitle(newTitle: string): void;
|
751
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Title, never>;
|
752
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Title>;
|
753
|
-
}
|
754
|
-
|
755
|
-
/**
|
756
|
-
* A record of usage for a specific style including all elements added to the DOM
|
757
|
-
* that contain a given style.
|
758
|
-
*/
|
759
|
-
declare interface UsageRecord<T> {
|
760
|
-
elements: T[];
|
761
|
-
usage: number;
|
762
|
-
}
|
763
|
-
|
764
|
-
/**
|
765
|
-
* @publicApi
|
766
|
-
*/
|
767
|
-
export declare const VERSION: Version;
|
768
|
-
|
781
|
+
declare function withI18nSupport(): HydrationFeature<HydrationFeatureKind.I18nSupport>;
|
769
782
|
/**
|
770
783
|
* Enables support for replaying user events (e.g. `click`s) that happened on a page
|
771
784
|
* before hydration logic has completed. Once an application is hydrated, all captured
|
@@ -783,26 +796,7 @@ export declare const VERSION: Version;
|
|
783
796
|
* @publicApi
|
784
797
|
* @see {@link provideClientHydration}
|
785
798
|
*/
|
786
|
-
|
787
|
-
|
788
|
-
/**
|
789
|
-
* The function accepts an object, which allows to configure cache parameters,
|
790
|
-
* such as which headers should be included (no headers are included by default),
|
791
|
-
* whether POST requests should be cached or a callback function to determine if a
|
792
|
-
* particular request should be cached.
|
793
|
-
*
|
794
|
-
* @publicApi
|
795
|
-
*/
|
796
|
-
export declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
|
797
|
-
|
798
|
-
/**
|
799
|
-
* Enables support for hydrating i18n blocks.
|
800
|
-
*
|
801
|
-
* @developerPreview
|
802
|
-
* @publicApi
|
803
|
-
*/
|
804
|
-
export declare function withI18nSupport(): HydrationFeature<HydrationFeatureKind.I18nSupport>;
|
805
|
-
|
799
|
+
declare function withEventReplay(): HydrationFeature<HydrationFeatureKind.EventReplay>;
|
806
800
|
/**
|
807
801
|
* Enables support for incremental hydration using the `hydrate` trigger syntax.
|
808
802
|
*
|
@@ -819,15 +813,67 @@ export declare function withI18nSupport(): HydrationFeature<HydrationFeatureKind
|
|
819
813
|
* @publicApi
|
820
814
|
* @see {@link provideClientHydration}
|
821
815
|
*/
|
822
|
-
|
823
|
-
|
816
|
+
declare function withIncrementalHydration(): HydrationFeature<HydrationFeatureKind.IncrementalHydration>;
|
824
817
|
/**
|
825
|
-
*
|
826
|
-
*
|
818
|
+
* Sets up providers necessary to enable hydration functionality for the application.
|
819
|
+
*
|
820
|
+
* By default, the function enables the recommended set of features for the optimal
|
821
|
+
* performance for most of the applications. It includes the following features:
|
822
|
+
*
|
823
|
+
* * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
|
824
|
+
* * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
|
825
|
+
* transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
|
826
|
+
* [here](guide/ssr#caching-data-when-using-httpclient).
|
827
|
+
*
|
828
|
+
* These functions allow you to disable some of the default features or enable new ones:
|
829
|
+
*
|
830
|
+
* * {@link withNoHttpTransferCache} to disable HTTP transfer cache
|
831
|
+
* * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options
|
832
|
+
* * {@link withI18nSupport} to enable hydration support for i18n blocks
|
833
|
+
* * {@link withEventReplay} to enable support for replaying user events
|
834
|
+
*
|
835
|
+
* @usageNotes
|
836
|
+
*
|
837
|
+
* Basic example of how you can enable hydration in your application when
|
838
|
+
* `bootstrapApplication` function is used:
|
839
|
+
* ```ts
|
840
|
+
* bootstrapApplication(AppComponent, {
|
841
|
+
* providers: [provideClientHydration()]
|
842
|
+
* });
|
843
|
+
* ```
|
844
|
+
*
|
845
|
+
* Alternatively if you are using NgModules, you would add `provideClientHydration`
|
846
|
+
* to your root app module's provider list.
|
847
|
+
* ```ts
|
848
|
+
* @NgModule({
|
849
|
+
* declarations: [RootCmp],
|
850
|
+
* bootstrap: [RootCmp],
|
851
|
+
* providers: [provideClientHydration()],
|
852
|
+
* })
|
853
|
+
* export class AppModule {}
|
854
|
+
* ```
|
855
|
+
*
|
856
|
+
* @see {@link withNoHttpTransferCache}
|
857
|
+
* @see {@link withHttpTransferCacheOptions}
|
858
|
+
* @see {@link withI18nSupport}
|
859
|
+
* @see {@link withEventReplay}
|
860
|
+
*
|
861
|
+
* @param features Optional features to configure additional hydration behaviors.
|
862
|
+
* @returns A set of providers to enable hydration.
|
827
863
|
*
|
828
864
|
* @publicApi
|
829
865
|
*/
|
830
|
-
|
866
|
+
declare function provideClientHydration(...features: HydrationFeature<HydrationFeatureKind>[]): EnvironmentProviders;
|
867
|
+
|
868
|
+
/**
|
869
|
+
* Provides DOM operations in any browser environment.
|
870
|
+
*
|
871
|
+
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
872
|
+
* can introduce XSS risks.
|
873
|
+
*/
|
874
|
+
declare abstract class GenericBrowserDomAdapter extends _DomAdapter {
|
875
|
+
readonly supportsDOMEvents: boolean;
|
876
|
+
}
|
831
877
|
|
832
878
|
/**
|
833
879
|
* A `DomAdapter` powered by full browser DOM APIs.
|
@@ -835,7 +881,7 @@ export declare function withNoHttpTransferCache(): HydrationFeature<HydrationFea
|
|
835
881
|
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
836
882
|
* can introduce XSS risks.
|
837
883
|
*/
|
838
|
-
|
884
|
+
declare class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
839
885
|
static makeCurrent(): void;
|
840
886
|
onAndCancel(el: Node, evt: any, listener: any, options: any): Function;
|
841
887
|
dispatchEvent(el: Node, evt: any): void;
|
@@ -853,87 +899,24 @@ export declare class ɵBrowserDomAdapter extends GenericBrowserDomAdapter {
|
|
853
899
|
getCookie(name: string): string | null;
|
854
900
|
}
|
855
901
|
|
856
|
-
|
902
|
+
declare class BrowserGetTestability implements GetTestability {
|
857
903
|
addToWindow(registry: TestabilityRegistry): void;
|
858
904
|
findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
|
859
905
|
}
|
860
906
|
|
861
|
-
|
907
|
+
declare class DomEventsPlugin extends EventManagerPlugin {
|
862
908
|
constructor(doc: any);
|
863
909
|
supports(eventName: string): boolean;
|
864
910
|
addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
|
865
911
|
removeEventListener(target: any, eventName: string, callback: Function, options?: ListenerOptions): void;
|
866
|
-
static ɵfac: i0.ɵɵFactoryDeclaration
|
867
|
-
static ɵprov: i0.ɵɵInjectableDeclaration
|
868
|
-
}
|
869
|
-
|
870
|
-
export declare class ɵDomRendererFactory2 implements RendererFactory2, OnDestroy {
|
871
|
-
private readonly eventManager;
|
872
|
-
private readonly sharedStylesHost;
|
873
|
-
private readonly appId;
|
874
|
-
private removeStylesOnCompDestroy;
|
875
|
-
private readonly doc;
|
876
|
-
readonly platformId: Object;
|
877
|
-
readonly ngZone: NgZone;
|
878
|
-
private readonly nonce;
|
879
|
-
private readonly tracingService;
|
880
|
-
private readonly rendererByCompId;
|
881
|
-
private readonly defaultRenderer;
|
882
|
-
private readonly platformIsServer;
|
883
|
-
constructor(eventManager: EventManager, sharedStylesHost: ɵSharedStylesHost, appId: string, removeStylesOnCompDestroy: boolean, doc: Document, platformId: Object, ngZone: NgZone, nonce?: string | null, tracingService?: ɵTracingService<ɵTracingSnapshot> | null);
|
884
|
-
createRenderer(element: any, type: RendererType2 | null): Renderer2;
|
885
|
-
private getOrCreateRenderer;
|
886
|
-
ngOnDestroy(): void;
|
887
|
-
/**
|
888
|
-
* Used during HMR to clear any cached data about a component.
|
889
|
-
* @param componentId ID of the component that is being replaced.
|
890
|
-
*/
|
891
|
-
protected componentReplaced(componentId: string): void;
|
892
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
893
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomRendererFactory2>;
|
894
|
-
}
|
895
|
-
|
896
|
-
export declare class ɵDomSanitizerImpl extends DomSanitizer {
|
897
|
-
private _doc;
|
898
|
-
constructor(_doc: any);
|
899
|
-
sanitize(ctx: SecurityContext, value: SafeValue | string | null): string | null;
|
900
|
-
bypassSecurityTrustHtml(value: string): SafeHtml;
|
901
|
-
bypassSecurityTrustStyle(value: string): SafeStyle;
|
902
|
-
bypassSecurityTrustScript(value: string): SafeScript;
|
903
|
-
bypassSecurityTrustUrl(value: string): SafeUrl;
|
904
|
-
bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
|
905
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomSanitizerImpl, never>;
|
906
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomSanitizerImpl>;
|
907
|
-
}
|
908
|
-
|
909
|
-
export { ɵgetDOM }
|
910
|
-
|
911
|
-
/**
|
912
|
-
* Event plugin that adds Hammer support to an application.
|
913
|
-
*
|
914
|
-
* @ngModule HammerModule
|
915
|
-
*/
|
916
|
-
export declare class ɵHammerGesturesPlugin extends EventManagerPlugin {
|
917
|
-
private _config;
|
918
|
-
private _injector;
|
919
|
-
private loader?;
|
920
|
-
private _loaderPromise;
|
921
|
-
constructor(doc: any, _config: HammerGestureConfig, _injector: Injector, loader?: (HammerLoader | null) | undefined);
|
922
|
-
supports(eventName: string): boolean;
|
923
|
-
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
924
|
-
isCustomEvent(eventName: string): boolean;
|
925
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵHammerGesturesPlugin, [null, null, null, { optional: true; }]>;
|
926
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵHammerGesturesPlugin>;
|
912
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomEventsPlugin, never>;
|
913
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DomEventsPlugin>;
|
927
914
|
}
|
928
915
|
|
929
|
-
export declare function ɵinitDomAdapter(): void;
|
930
|
-
|
931
|
-
export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
|
932
|
-
|
933
916
|
/**
|
934
917
|
* A browser plug-in that provides support for handling of key events in Angular.
|
935
918
|
*/
|
936
|
-
|
919
|
+
declare class KeyEventsPlugin extends EventManagerPlugin {
|
937
920
|
/**
|
938
921
|
* Initializes an instance of the browser plug-in.
|
939
922
|
* @param doc The document in which key events will be detected.
|
@@ -986,16 +969,15 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
|
986
969
|
* @returns A callback function.
|
987
970
|
*/
|
988
971
|
static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function;
|
989
|
-
static ɵfac: i0.ɵɵFactoryDeclaration
|
990
|
-
static ɵprov: i0.ɵɵInjectableDeclaration
|
972
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KeyEventsPlugin, never>;
|
973
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KeyEventsPlugin>;
|
991
974
|
}
|
992
975
|
|
993
|
-
|
994
976
|
/**
|
995
977
|
* The list of error codes used in runtime code of the `platform-browser` package.
|
996
978
|
* Reserved error code range: 5000-5500.
|
997
979
|
*/
|
998
|
-
|
980
|
+
declare const enum RuntimeErrorCode {
|
999
981
|
UNSUPPORTED_ZONEJS_INSTANCE = -5000,
|
1000
982
|
BROWSER_MODULE_ALREADY_LOADED = 5100,
|
1001
983
|
NO_PLUGIN_FOR_EVENT = 5101,
|
@@ -1009,53 +991,15 @@ export declare const enum ɵRuntimeErrorCode {
|
|
1009
991
|
ANIMATION_RENDERER_ASYNC_LOADING_FAILURE = 5300
|
1010
992
|
}
|
1011
993
|
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
* Provides usage information for active external style URLs and the associated HTML <link> elements.
|
1023
|
-
* External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.
|
1024
|
-
*/
|
1025
|
-
private readonly external;
|
1026
|
-
/**
|
1027
|
-
* Set of host DOM nodes that will have styles attached.
|
1028
|
-
*/
|
1029
|
-
private readonly hosts;
|
1030
|
-
/**
|
1031
|
-
* Whether the application code is currently executing on a server.
|
1032
|
-
*/
|
1033
|
-
private readonly isServer;
|
1034
|
-
constructor(doc: Document, appId: string, nonce?: string | null | undefined, platformId?: object);
|
1035
|
-
/**
|
1036
|
-
* Adds embedded styles to the DOM via HTML `style` elements.
|
1037
|
-
* @param styles An array of style content strings.
|
1038
|
-
*/
|
1039
|
-
addStyles(styles: string[], urls?: string[]): void;
|
1040
|
-
/**
|
1041
|
-
* Removes embedded styles from the DOM that were added as HTML `style` elements.
|
1042
|
-
* @param styles An array of style content strings.
|
1043
|
-
*/
|
1044
|
-
removeStyles(styles: string[], urls?: string[]): void;
|
1045
|
-
protected addUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>, creator: (value: string, doc: Document) => T): void;
|
1046
|
-
protected removeUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>): void;
|
1047
|
-
ngOnDestroy(): void;
|
1048
|
-
/**
|
1049
|
-
* Adds a host node to the set of style hosts and adds all existing style usage to
|
1050
|
-
* the newly added host node.
|
1051
|
-
*
|
1052
|
-
* This is currently only used for Shadow DOM encapsulation mode.
|
1053
|
-
*/
|
1054
|
-
addHost(hostNode: Node): void;
|
1055
|
-
removeHost(hostNode: Node): void;
|
1056
|
-
private addElement;
|
1057
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, [null, null, { optional: true; }, null]>;
|
1058
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵSharedStylesHost>;
|
1059
|
-
}
|
994
|
+
/**
|
995
|
+
* @module
|
996
|
+
* @description
|
997
|
+
* Entry point for all public APIs of the platform-browser package.
|
998
|
+
*/
|
999
|
+
|
1000
|
+
/**
|
1001
|
+
* @publicApi
|
1002
|
+
*/
|
1003
|
+
declare const VERSION: Version;
|
1060
1004
|
|
1061
|
-
export { }
|
1005
|
+
export { type ApplicationConfig, BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, type HammerLoader, HammerModule, type HydrationFeature, HydrationFeatureKind, Meta, type MetaDefinition, REMOVE_STYLES_ON_COMPONENT_DESTROY, type SafeHtml, type SafeResourceUrl, type SafeScript, type SafeStyle, type SafeUrl, type SafeValue, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withIncrementalHydration, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, RuntimeErrorCode as ɵRuntimeErrorCode, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };
|