@angular/common 14.0.0-next.14 → 14.0.0-next.15
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/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +20 -22
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +6 -8
- package/esm2020/src/common_module.mjs +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +7 -4
- package/esm2020/src/location/location.mjs +18 -21
- package/esm2020/src/location/location_strategy.mjs +11 -8
- package/esm2020/src/location/platform_location.mjs +6 -6
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +5 -7
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +5 -5
- package/fesm2015/common.mjs +123 -118
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +9 -11
- package/fesm2015/http/testing.mjs.map +1 -1
- package/fesm2015/http.mjs +41 -43
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +11 -13
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2015/upgrade.mjs.map +1 -1
- package/fesm2020/common.mjs +123 -118
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +9 -11
- package/fesm2020/http/testing.mjs.map +1 -1
- package/fesm2020/http.mjs +41 -43
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +11 -13
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +5 -5
- package/fesm2020/upgrade.mjs.map +1 -1
- package/http/{http.d.ts → index.d.ts} +4007 -4006
- package/http/testing/{testing.d.ts → index.d.ts} +177 -176
- package/{common.d.ts → index.d.ts} +2870 -2866
- package/package.json +8 -8
- package/testing/{testing.d.ts → index.d.ts} +121 -120
- package/upgrade/{upgrade.d.ts → index.d.ts} +445 -444
- package/http/package.json +0 -10
- package/http/testing/package.json +0 -9
- package/locales/package.json +0 -4
- package/testing/package.json +0 -9
- package/upgrade/package.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.15",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"default": "./package.json"
|
|
23
23
|
},
|
|
24
24
|
".": {
|
|
25
|
-
"types": "./
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
26
|
"esm2020": "./esm2020/common.mjs",
|
|
27
27
|
"es2020": "./fesm2020/common.mjs",
|
|
28
28
|
"es2015": "./fesm2015/common.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"default": "./fesm2020/common.mjs"
|
|
31
31
|
},
|
|
32
32
|
"./http": {
|
|
33
|
-
"types": "./http/
|
|
33
|
+
"types": "./http/index.d.ts",
|
|
34
34
|
"esm2020": "./esm2020/http/http.mjs",
|
|
35
35
|
"es2020": "./fesm2020/http.mjs",
|
|
36
36
|
"es2015": "./fesm2015/http.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"default": "./fesm2020/http.mjs"
|
|
39
39
|
},
|
|
40
40
|
"./http/testing": {
|
|
41
|
-
"types": "./http/testing/
|
|
41
|
+
"types": "./http/testing/index.d.ts",
|
|
42
42
|
"esm2020": "./esm2020/http/testing/testing.mjs",
|
|
43
43
|
"es2020": "./fesm2020/http/testing.mjs",
|
|
44
44
|
"es2015": "./fesm2015/http/testing.mjs",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"default": "./fesm2020/http/testing.mjs"
|
|
47
47
|
},
|
|
48
48
|
"./testing": {
|
|
49
|
-
"types": "./testing/
|
|
49
|
+
"types": "./testing/index.d.ts",
|
|
50
50
|
"esm2020": "./esm2020/testing/testing.mjs",
|
|
51
51
|
"es2020": "./fesm2020/testing.mjs",
|
|
52
52
|
"es2015": "./fesm2015/testing.mjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"default": "./fesm2020/testing.mjs"
|
|
55
55
|
},
|
|
56
56
|
"./upgrade": {
|
|
57
|
-
"types": "./upgrade/
|
|
57
|
+
"types": "./upgrade/index.d.ts",
|
|
58
58
|
"esm2020": "./esm2020/upgrade/upgrade.mjs",
|
|
59
59
|
"es2020": "./fesm2020/upgrade.mjs",
|
|
60
60
|
"es2015": "./fesm2015/upgrade.mjs",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@angular/core": "14.0.0-next.
|
|
66
|
+
"@angular/core": "14.0.0-next.15",
|
|
67
67
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"fesm2020": "./fesm2020/common.mjs",
|
|
99
99
|
"fesm2015": "./fesm2015/common.mjs",
|
|
100
100
|
"esm2020": "./esm2020/common.mjs",
|
|
101
|
-
"typings": "./
|
|
101
|
+
"typings": "./index.d.ts",
|
|
102
102
|
"module": "./fesm2015/common.mjs",
|
|
103
103
|
"es2020": "./fesm2020/common.mjs",
|
|
104
104
|
"type": "module"
|
|
@@ -1,125 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.15
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
static
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
get
|
|
62
|
-
get
|
|
63
|
-
get
|
|
64
|
-
get
|
|
65
|
-
get
|
|
66
|
-
get
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
get
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
static
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
private
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
static
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
7
|
+
|
|
8
|
+
import * as i0 from '@angular/core';
|
|
9
|
+
import { InjectionToken } from '@angular/core';
|
|
10
|
+
import { Location as Location_2 } from '@angular/common';
|
|
11
|
+
import { LocationChangeListener } from '@angular/common';
|
|
12
|
+
import { LocationStrategy } from '@angular/common';
|
|
13
|
+
import { PlatformLocation } from '@angular/common';
|
|
14
|
+
import { SubscriptionLike } from 'rxjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Provider for mock platform location config
|
|
18
|
+
*
|
|
19
|
+
* @publicApi
|
|
20
|
+
*/
|
|
21
|
+
export declare const MOCK_PLATFORM_LOCATION_CONFIG: InjectionToken<MockPlatformLocationConfig>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A mock implementation of {@link LocationStrategy} that allows tests to fire simulated
|
|
25
|
+
* location events.
|
|
26
|
+
*
|
|
27
|
+
* @publicApi
|
|
28
|
+
*/
|
|
29
|
+
export declare class MockLocationStrategy extends LocationStrategy {
|
|
30
|
+
internalBaseHref: string;
|
|
31
|
+
internalPath: string;
|
|
32
|
+
internalTitle: string;
|
|
33
|
+
urlChanges: string[];
|
|
34
|
+
private stateChanges;
|
|
35
|
+
constructor();
|
|
36
|
+
simulatePopState(url: string): void;
|
|
37
|
+
path(includeHash?: boolean): string;
|
|
38
|
+
prepareExternalUrl(internal: string): string;
|
|
39
|
+
pushState(ctx: any, title: string, path: string, query: string): void;
|
|
40
|
+
replaceState(ctx: any, title: string, path: string, query: string): void;
|
|
41
|
+
onPopState(fn: (value: any) => void): void;
|
|
42
|
+
getBaseHref(): string;
|
|
43
|
+
back(): void;
|
|
44
|
+
forward(): void;
|
|
45
|
+
getState(): unknown;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockLocationStrategy, never>;
|
|
47
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockLocationStrategy>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Mock implementation of URL state.
|
|
52
|
+
*
|
|
53
|
+
* @publicApi
|
|
54
|
+
*/
|
|
55
|
+
export declare class MockPlatformLocation implements PlatformLocation {
|
|
56
|
+
private baseHref;
|
|
57
|
+
private hashUpdate;
|
|
58
|
+
private urlChangeIndex;
|
|
59
|
+
private urlChanges;
|
|
60
|
+
constructor(config?: MockPlatformLocationConfig);
|
|
61
|
+
get hostname(): string;
|
|
62
|
+
get protocol(): string;
|
|
63
|
+
get port(): string;
|
|
64
|
+
get pathname(): string;
|
|
65
|
+
get search(): string;
|
|
66
|
+
get hash(): string;
|
|
67
|
+
get state(): unknown;
|
|
68
|
+
getBaseHrefFromDOM(): string;
|
|
69
|
+
onPopState(fn: LocationChangeListener): VoidFunction;
|
|
70
|
+
onHashChange(fn: LocationChangeListener): VoidFunction;
|
|
71
|
+
get href(): string;
|
|
72
|
+
get url(): string;
|
|
73
|
+
private parseChanges;
|
|
74
|
+
replaceState(state: any, title: string, newUrl: string): void;
|
|
75
|
+
pushState(state: any, title: string, newUrl: string): void;
|
|
76
|
+
forward(): void;
|
|
77
|
+
back(): void;
|
|
78
|
+
historyGo(relativePosition?: number): void;
|
|
79
|
+
getState(): unknown;
|
|
80
|
+
private scheduleHashUpdate;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockPlatformLocation, [{ optional: true; }]>;
|
|
82
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockPlatformLocation>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Mock platform location config
|
|
87
|
+
*
|
|
88
|
+
* @publicApi
|
|
89
|
+
*/
|
|
90
|
+
export declare interface MockPlatformLocationConfig {
|
|
91
|
+
startUrl?: string;
|
|
92
|
+
appBaseHref?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A spy for {@link Location} that allows tests to fire simulated location events.
|
|
97
|
+
*
|
|
98
|
+
* @publicApi
|
|
99
|
+
*/
|
|
100
|
+
export declare class SpyLocation implements Location_2 {
|
|
101
|
+
urlChanges: string[];
|
|
102
|
+
private _history;
|
|
103
|
+
private _historyIndex;
|
|
104
|
+
ngOnDestroy(): void;
|
|
105
|
+
setInitialPath(url: string): void;
|
|
106
|
+
setBaseHref(url: string): void;
|
|
107
|
+
path(): string;
|
|
108
|
+
getState(): unknown;
|
|
109
|
+
isCurrentPathEqualTo(path: string, query?: string): boolean;
|
|
110
|
+
simulateUrlPop(pathname: string): void;
|
|
111
|
+
simulateHashChange(pathname: string): void;
|
|
112
|
+
prepareExternalUrl(url: string): string;
|
|
113
|
+
go(path: string, query?: string, state?: any): void;
|
|
114
|
+
replaceState(path: string, query?: string, state?: any): void;
|
|
115
|
+
forward(): void;
|
|
116
|
+
back(): void;
|
|
117
|
+
historyGo(relativePosition?: number): void;
|
|
118
|
+
onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction;
|
|
119
|
+
subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
|
|
120
|
+
normalize(url: string): string;
|
|
121
|
+
private pushHistory;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpyLocation, never>;
|
|
123
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpyLocation>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export { }
|