@angular/core 15.0.0-next.6 → 15.0.0-rc.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/esm2020/src/di/provider_collection.mjs +1 -2
- package/esm2020/src/di/r3_injector.mjs +1 -3
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/render3/features/host_directives_feature.mjs +6 -7
- package/esm2020/src/render3/ng_module_ref.mjs +1 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +7 -12
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +7 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +7 -12
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +7 -12
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +1 -12
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-
|
|
2
|
+
* @license Angular v15.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -6839,7 +6839,6 @@ function makeEnvironmentProviders(providers) {
|
|
|
6839
6839
|
*
|
|
6840
6840
|
* @returns Collected providers from the specified list of types.
|
|
6841
6841
|
* @publicApi
|
|
6842
|
-
* @developerPreview
|
|
6843
6842
|
*/
|
|
6844
6843
|
function importProvidersFrom(...sources) {
|
|
6845
6844
|
return {
|
|
@@ -7095,8 +7094,6 @@ function getNullInjector() {
|
|
|
7095
7094
|
/**
|
|
7096
7095
|
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
7097
7096
|
* component tree.
|
|
7098
|
-
*
|
|
7099
|
-
* @developerPreview
|
|
7100
7097
|
*/
|
|
7101
7098
|
class EnvironmentInjector {
|
|
7102
7099
|
}
|
|
@@ -7684,7 +7681,7 @@ class Version {
|
|
|
7684
7681
|
/**
|
|
7685
7682
|
* @publicApi
|
|
7686
7683
|
*/
|
|
7687
|
-
const VERSION = new Version('15.0.0-
|
|
7684
|
+
const VERSION = new Version('15.0.0-rc.0');
|
|
7688
7685
|
|
|
7689
7686
|
/**
|
|
7690
7687
|
* @license
|
|
@@ -14872,7 +14869,6 @@ function patchDeclaredInputs(declaredInputs, exposedInputs) {
|
|
|
14872
14869
|
* @param matchedDefs Directives that have been matched so far.
|
|
14873
14870
|
*/
|
|
14874
14871
|
function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
|
|
14875
|
-
// TODO(crisbeto): implement more of these checks in the compiler.
|
|
14876
14872
|
const type = hostDirectiveConfig.directive;
|
|
14877
14873
|
if (directiveDef === null) {
|
|
14878
14874
|
if (getComponentDef$1(type) !== null) {
|
|
@@ -14895,17 +14891,17 @@ function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
|
|
|
14895
14891
|
* Checks that the host directive inputs/outputs configuration is valid.
|
|
14896
14892
|
* @param bindingType Kind of binding that is being validated. Used in the error message.
|
|
14897
14893
|
* @param def Definition of the host directive that is being validated against.
|
|
14898
|
-
* @param
|
|
14894
|
+
* @param hostDirectiveBindings Host directive mapping object that shold be validated.
|
|
14899
14895
|
*/
|
|
14900
|
-
function validateMappings(bindingType, def,
|
|
14896
|
+
function validateMappings(bindingType, def, hostDirectiveBindings) {
|
|
14901
14897
|
const className = def.type.name;
|
|
14902
14898
|
const bindings = bindingType === 'input' ? def.inputs : def.outputs;
|
|
14903
|
-
for (const publicName in
|
|
14904
|
-
if (
|
|
14899
|
+
for (const publicName in hostDirectiveBindings) {
|
|
14900
|
+
if (hostDirectiveBindings.hasOwnProperty(publicName)) {
|
|
14905
14901
|
if (!bindings.hasOwnProperty(publicName)) {
|
|
14906
14902
|
throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);
|
|
14907
14903
|
}
|
|
14908
|
-
const remappedPublicName =
|
|
14904
|
+
const remappedPublicName = hostDirectiveBindings[publicName];
|
|
14909
14905
|
if (bindings.hasOwnProperty(remappedPublicName) &&
|
|
14910
14906
|
bindings[remappedPublicName] !== publicName) {
|
|
14911
14907
|
throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);
|
|
@@ -22280,7 +22276,6 @@ class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
|
|
|
22280
22276
|
* messages.
|
|
22281
22277
|
*
|
|
22282
22278
|
* @publicApi
|
|
22283
|
-
* @developerPreview
|
|
22284
22279
|
*/
|
|
22285
22280
|
function createEnvironmentInjector(providers, parent, debugName = null) {
|
|
22286
22281
|
const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);
|