@angular/core 17.2.3 → 17.3.0-next.1
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/esm2022/src/application/application_ref.mjs +7 -7
- package/esm2022/src/di/host_attribute_token.mjs +40 -0
- package/esm2022/src/di/index.mjs +2 -1
- package/esm2022/src/di/injector_compatibility.mjs +3 -1
- package/esm2022/src/is_internal.mjs +15 -0
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +56 -8
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +65 -1
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +2 -2
- package/schematics/migrations/block-template-entities/bundle.js.map +1 -1
- package/schematics/ng-generate/control-flow-migration/bundle.js +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +2460 -28
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.
|
|
2
|
+
* @license Angular v17.3.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4314,6 +4314,33 @@ export declare interface Host {
|
|
|
4314
4314
|
*/
|
|
4315
4315
|
export declare const Host: HostDecorator;
|
|
4316
4316
|
|
|
4317
|
+
/**
|
|
4318
|
+
* Creates a token that can be used to inject static attributes of the host node.
|
|
4319
|
+
*
|
|
4320
|
+
* @usageNotes
|
|
4321
|
+
* ### Injecting an attribute that is known to exist
|
|
4322
|
+
* ```typescript
|
|
4323
|
+
* @Directive()
|
|
4324
|
+
* class MyDir {
|
|
4325
|
+
* attr: string = inject(new HostAttributeToken('some-attr'));
|
|
4326
|
+
* }
|
|
4327
|
+
* ```
|
|
4328
|
+
*
|
|
4329
|
+
* ### Optionally injecting an attribute
|
|
4330
|
+
* ```typescript
|
|
4331
|
+
* @Directive()
|
|
4332
|
+
* class MyDir {
|
|
4333
|
+
* attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});
|
|
4334
|
+
* }
|
|
4335
|
+
* ```
|
|
4336
|
+
* @publicApi
|
|
4337
|
+
*/
|
|
4338
|
+
export declare class HostAttributeToken {
|
|
4339
|
+
private attributeName;
|
|
4340
|
+
constructor(attributeName: string);
|
|
4341
|
+
toString(): string;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4317
4344
|
/**
|
|
4318
4345
|
* Type of the HostBinding metadata.
|
|
4319
4346
|
*
|
|
@@ -5018,6 +5045,37 @@ export declare function inject<T>(token: ProviderToken<T>, options: InjectOption
|
|
|
5018
5045
|
*/
|
|
5019
5046
|
export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions): T | null;
|
|
5020
5047
|
|
|
5048
|
+
/**
|
|
5049
|
+
* @param token A token that represents a static attribute on the host node that should be injected.
|
|
5050
|
+
* @returns Value of the attribute if it exists.
|
|
5051
|
+
* @throws If called outside of a supported context or the attribute does not exist.
|
|
5052
|
+
*
|
|
5053
|
+
* @publicApi
|
|
5054
|
+
*/
|
|
5055
|
+
export declare function inject(token: HostAttributeToken): string;
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* @param token A token that represents a static attribute on the host node that should be injected.
|
|
5059
|
+
* @returns Value of the attribute if it exists, otherwise `null`.
|
|
5060
|
+
* @throws If called outside of a supported context.
|
|
5061
|
+
*
|
|
5062
|
+
* @publicApi
|
|
5063
|
+
*/
|
|
5064
|
+
export declare function inject(token: HostAttributeToken, options: {
|
|
5065
|
+
optional: true;
|
|
5066
|
+
}): string | null;
|
|
5067
|
+
|
|
5068
|
+
/**
|
|
5069
|
+
* @param token A token that represents a static attribute on the host node that should be injected.
|
|
5070
|
+
* @returns Value of the attribute if it exists.
|
|
5071
|
+
* @throws If called outside of a supported context or the attribute does not exist.
|
|
5072
|
+
*
|
|
5073
|
+
* @publicApi
|
|
5074
|
+
*/
|
|
5075
|
+
export declare function inject(token: HostAttributeToken, options: {
|
|
5076
|
+
optional: false;
|
|
5077
|
+
}): string;
|
|
5078
|
+
|
|
5021
5079
|
/**
|
|
5022
5080
|
* Type of the Injectable metadata.
|
|
5023
5081
|
*
|
|
@@ -15026,6 +15084,12 @@ export declare function ɵɵinject<T>(token: ProviderToken<T>): T;
|
|
|
15026
15084
|
|
|
15027
15085
|
export declare function ɵɵinject<T>(token: ProviderToken<T>, flags?: InjectFlags): T | null;
|
|
15028
15086
|
|
|
15087
|
+
export declare function ɵɵinject(token: HostAttributeToken): string;
|
|
15088
|
+
|
|
15089
|
+
export declare function ɵɵinject(token: HostAttributeToken, flags?: InjectFlags): string | null;
|
|
15090
|
+
|
|
15091
|
+
export declare function ɵɵinject<T>(token: ProviderToken<T> | HostAttributeToken, flags?: InjectFlags): string | null;
|
|
15092
|
+
|
|
15029
15093
|
/**
|
|
15030
15094
|
* Information about how a type or `InjectionToken` interfaces with the DI system.
|
|
15031
15095
|
*
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -25489,7 +25489,7 @@ var ResourceLoader = class {
|
|
|
25489
25489
|
};
|
|
25490
25490
|
|
|
25491
25491
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25492
|
-
var SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT =
|
|
25492
|
+
var SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT = true;
|
|
25493
25493
|
var CompilerFacadeImpl = class {
|
|
25494
25494
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25495
25495
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -26070,7 +26070,7 @@ function publishFacade(global) {
|
|
|
26070
26070
|
}
|
|
26071
26071
|
|
|
26072
26072
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26073
|
-
var VERSION2 = new Version("17.
|
|
26073
|
+
var VERSION2 = new Version("17.3.0-next.1");
|
|
26074
26074
|
|
|
26075
26075
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26076
26076
|
var _VisitorMode;
|