@angular/platform-browser 17.0.0-next.1 → 17.0.0-next.2
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/index.d.ts +1 -1
- package/esm2022/animations/src/animation_builder.mjs +3 -3
- package/esm2022/animations/src/animation_renderer.mjs +3 -3
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +3 -3
- package/esm2022/src/browser/meta.mjs +3 -3
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +4 -4
- package/esm2022/src/dom/dom_renderer.mjs +6 -6
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +14 -5
- package/esm2022/src/dom/events/hammer_gestures.mjs +12 -12
- package/esm2022/src/dom/events/key_events.mjs +5 -12
- package/esm2022/src/dom/shared_styles_host.mjs +3 -3
- package/esm2022/src/platform-browser.mjs +2 -2
- package/esm2022/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/fesm2022/animations.mjs +18 -18
- package/fesm2022/platform-browser.mjs +61 -59
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +19 -6
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v17.0.0-next.
|
2
|
+
* @license Angular v17.0.0-next.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -26,15 +26,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
26
26
|
* @publicApi
|
27
27
|
*/
|
28
28
|
class BrowserTestingModule {
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
30
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
31
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, providers: [
|
32
32
|
{ provide: APP_ID, useValue: 'a' },
|
33
33
|
provideZoneChangeDetection(),
|
34
34
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
35
35
|
], imports: [BrowserModule] }); }
|
36
36
|
}
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
38
38
|
type: NgModule,
|
39
39
|
args: [{
|
40
40
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v17.0.0-next.
|
2
|
+
* @license Angular v17.0.0-next.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -295,7 +295,7 @@ export declare abstract class DomSanitizer implements Sanitizer {
|
|
295
295
|
export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
|
296
296
|
|
297
297
|
/**
|
298
|
-
* The injection token for the
|
298
|
+
* The injection token for plugins of the `EventManager` service.
|
299
299
|
*
|
300
300
|
* @publicApi
|
301
301
|
*/
|
@@ -333,11 +333,25 @@ export declare class EventManager {
|
|
333
333
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventManager>;
|
334
334
|
}
|
335
335
|
|
336
|
-
|
336
|
+
/**
|
337
|
+
* The plugin definition for the `EventManager` class
|
338
|
+
*
|
339
|
+
* It can be used as a base class to create custom manager plugins, i.e. you can create your own
|
340
|
+
* class that extends the `EventManagerPlugin` one.
|
341
|
+
*
|
342
|
+
* @publicApi
|
343
|
+
*/
|
344
|
+
export declare abstract class EventManagerPlugin {
|
337
345
|
private _doc;
|
338
346
|
constructor(_doc: any);
|
339
347
|
manager: EventManager;
|
348
|
+
/**
|
349
|
+
* Should return `true` for every event name that should be supported by this plugin
|
350
|
+
*/
|
340
351
|
abstract supports(eventName: string): boolean;
|
352
|
+
/**
|
353
|
+
* Implement the behaviour for the supported events
|
354
|
+
*/
|
341
355
|
abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
342
356
|
}
|
343
357
|
|
@@ -446,7 +460,7 @@ export declare type HammerLoader = () => Promise<void>;
|
|
446
460
|
* HammerJS to detect gesture events.
|
447
461
|
*
|
448
462
|
* Note that applications still need to include the HammerJS script itself. This module
|
449
|
-
* simply sets up the coordination layer between HammerJS and Angular's EventManager
|
463
|
+
* simply sets up the coordination layer between HammerJS and Angular's `EventManager`.
|
450
464
|
*
|
451
465
|
* @publicApi
|
452
466
|
*/
|
@@ -673,7 +687,7 @@ export declare function provideProtractorTestingSupport(): Provider[];
|
|
673
687
|
* A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
|
674
688
|
* of destroyed components should be removed from DOM.
|
675
689
|
*
|
676
|
-
* By default, the value is set to `
|
690
|
+
* By default, the value is set to `true`.
|
677
691
|
* @publicApi
|
678
692
|
*/
|
679
693
|
export declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
|
@@ -937,7 +951,6 @@ export declare function ɵinitDomAdapter(): void;
|
|
937
951
|
export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
|
938
952
|
|
939
953
|
/**
|
940
|
-
* @publicApi
|
941
954
|
* A browser plug-in that provides support for handling of key events in Angular.
|
942
955
|
*/
|
943
956
|
export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "17.0.0-next.
|
3
|
+
"version": "17.0.0-next.2",
|
4
4
|
"description": "Angular - library for using Angular in a web browser",
|
5
5
|
"author": "angular",
|
6
6
|
"license": "MIT",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
"tslib": "^2.3.0"
|
12
12
|
},
|
13
13
|
"peerDependencies": {
|
14
|
-
"@angular/animations": "17.0.0-next.
|
15
|
-
"@angular/core": "17.0.0-next.
|
16
|
-
"@angular/common": "17.0.0-next.
|
14
|
+
"@angular/animations": "17.0.0-next.2",
|
15
|
+
"@angular/core": "17.0.0-next.2",
|
16
|
+
"@angular/common": "17.0.0-next.2"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED