@angular/platform-browser 15.2.0-next.4 → 15.2.0
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/esm2020/animations/src/animation_builder.mjs +3 -3
- package/esm2020/animations/src/animation_renderer.mjs +3 -3
- package/esm2020/animations/src/module.mjs +8 -8
- package/esm2020/animations/src/providers.mjs +3 -3
- package/esm2020/src/browser/meta.mjs +3 -3
- package/esm2020/src/browser/title.mjs +3 -3
- package/esm2020/src/browser/transfer_state.mjs +7 -7
- package/esm2020/src/browser/xhr.mjs +3 -3
- package/esm2020/src/browser.mjs +7 -7
- package/esm2020/src/dom/dom_renderer.mjs +103 -48
- package/esm2020/src/dom/events/dom_events.mjs +3 -3
- package/esm2020/src/dom/events/event_manager.mjs +3 -3
- package/esm2020/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2020/src/dom/events/key_events.mjs +3 -3
- package/esm2020/src/dom/shared_styles_host.mjs +84 -46
- package/esm2020/src/platform-browser.mjs +2 -1
- package/esm2020/src/security/dom_sanitization_service.mjs +7 -7
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/browser.mjs +4 -4
- package/fesm2015/animations.mjs +18 -18
- package/fesm2015/platform-browser.mjs +234 -139
- package/fesm2015/platform-browser.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/animations.mjs +18 -18
- package/fesm2020/platform-browser.mjs +232 -139
- package/fesm2020/platform-browser.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +38 -17
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v15.2.0
|
2
|
+
* @license Angular v15.2.0
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -205,15 +205,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
205
205
|
*/
|
206
206
|
class BrowserTestingModule {
|
207
207
|
}
|
208
|
-
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0
|
209
|
-
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0
|
210
|
-
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.0
|
208
|
+
BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
209
|
+
BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
|
210
|
+
BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BrowserTestingModule, providers: [
|
211
211
|
{ provide: APP_ID, useValue: 'a' },
|
212
212
|
{ provide: NgZone, useFactory: createNgZone },
|
213
213
|
(ENABLE_MOCK_PLATFORM_LOCATION ? [{ provide: PlatformLocation, useClass: MockPlatformLocation }] :
|
214
214
|
[]),
|
215
215
|
], imports: [BrowserModule] });
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
217
217
|
type: NgModule,
|
218
218
|
args: [{
|
219
219
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v15.2.0
|
2
|
+
* @license Angular v15.2.0
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -237,12 +237,13 @@ export declare function disableDebugTools(): void;
|
|
237
237
|
*/
|
238
238
|
export declare abstract class DomSanitizer implements Sanitizer {
|
239
239
|
/**
|
240
|
-
*
|
240
|
+
* Gets a safe value from either a known safe value or a value with unknown safety.
|
241
241
|
*
|
242
|
-
* If value is
|
243
|
-
*
|
244
|
-
*
|
245
|
-
*
|
242
|
+
* If the given value is already a `SafeValue`, this method returns the unwrapped value.
|
243
|
+
* If the security context is HTML and the given value is a plain string, this method
|
244
|
+
* sanitizes the string, removing any potentially unsafe content.
|
245
|
+
* For any other security context, this method throws an error if provided
|
246
|
+
* with a plain string.
|
246
247
|
*/
|
247
248
|
abstract sanitize(context: SecurityContext, value: SafeValue | string | null): string | null;
|
248
249
|
/**
|
@@ -627,6 +628,15 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
627
628
|
*/
|
628
629
|
export declare function provideProtractorTestingSupport(): Provider[];
|
629
630
|
|
631
|
+
/**
|
632
|
+
* A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
|
633
|
+
* of destroyed components should be removed from DOM.
|
634
|
+
*
|
635
|
+
* By default, the value is set to `false`. This will be changed in the next major version.
|
636
|
+
* @publicApi
|
637
|
+
*/
|
638
|
+
export declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
|
639
|
+
|
630
640
|
/**
|
631
641
|
* Marker interface for a value that's safe to use as HTML.
|
632
642
|
*
|
@@ -813,14 +823,17 @@ export declare class ɵDomEventsPlugin extends EventManagerPlugin {
|
|
813
823
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomEventsPlugin>;
|
814
824
|
}
|
815
825
|
|
816
|
-
export declare class ɵDomRendererFactory2 implements RendererFactory2 {
|
826
|
+
export declare class ɵDomRendererFactory2 implements RendererFactory2, OnDestroy {
|
817
827
|
private eventManager;
|
818
828
|
private sharedStylesHost;
|
819
829
|
private appId;
|
830
|
+
private removeStylesOnCompDestory;
|
820
831
|
private rendererByCompId;
|
821
832
|
private defaultRenderer;
|
822
|
-
constructor(eventManager: EventManager, sharedStylesHost: ɵDomSharedStylesHost, appId: string);
|
833
|
+
constructor(eventManager: EventManager, sharedStylesHost: ɵDomSharedStylesHost, appId: string, removeStylesOnCompDestory: boolean);
|
823
834
|
createRenderer(element: any, type: RendererType2 | null): Renderer2;
|
835
|
+
private getOrCreateRenderer;
|
836
|
+
ngOnDestroy(): void;
|
824
837
|
begin(): void;
|
825
838
|
end(): void;
|
826
839
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, never>;
|
@@ -841,14 +854,17 @@ export declare class ɵDomSanitizerImpl extends DomSanitizer {
|
|
841
854
|
}
|
842
855
|
|
843
856
|
export declare class ɵDomSharedStylesHost extends ɵSharedStylesHost implements OnDestroy {
|
844
|
-
private
|
845
|
-
private
|
846
|
-
|
847
|
-
|
857
|
+
private readonly doc;
|
858
|
+
private readonly styleRef;
|
859
|
+
private hostNodes;
|
860
|
+
constructor(doc: any);
|
861
|
+
onStyleAdded(style: string): void;
|
862
|
+
onStyleRemoved(style: string): void;
|
863
|
+
ngOnDestroy(): void;
|
848
864
|
addHost(hostNode: Node): void;
|
849
865
|
removeHost(hostNode: Node): void;
|
850
|
-
|
851
|
-
|
866
|
+
private addStyleToHost;
|
867
|
+
private resetHostNodes;
|
852
868
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomSharedStylesHost, never>;
|
853
869
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomSharedStylesHost>;
|
854
870
|
}
|
@@ -946,10 +962,15 @@ export declare const ɵNAMESPACE_URIS: {
|
|
946
962
|
[ns: string]: string;
|
947
963
|
};
|
948
964
|
|
949
|
-
export declare class ɵSharedStylesHost {
|
965
|
+
export declare class ɵSharedStylesHost implements OnDestroy {
|
966
|
+
private readonly usageCount;
|
950
967
|
addStyles(styles: string[]): void;
|
951
|
-
|
952
|
-
|
968
|
+
removeStyles(styles: string[]): void;
|
969
|
+
onStyleRemoved(style: string): void;
|
970
|
+
onStyleAdded(style: string): void;
|
971
|
+
getAllStyles(): IterableIterator<string>;
|
972
|
+
private changeUsageCount;
|
973
|
+
ngOnDestroy(): void;
|
953
974
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, never>;
|
954
975
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵSharedStylesHost>;
|
955
976
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "15.2.0
|
3
|
+
"version": "15.2.0",
|
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": "15.2.0
|
15
|
-
"@angular/core": "15.2.0
|
16
|
-
"@angular/common": "15.2.0
|
14
|
+
"@angular/animations": "15.2.0",
|
15
|
+
"@angular/core": "15.2.0",
|
16
|
+
"@angular/common": "15.2.0"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED