@angular/core 16.0.0 → 16.0.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_ref.mjs +60 -55
- package/esm2022/src/di/injectable.mjs +2 -1
- package/esm2022/src/di/metadata.mjs +6 -5
- package/esm2022/src/di/metadata_attr.mjs +2 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +2 -2
- package/esm2022/src/hydration/skip_hydration.mjs +12 -1
- package/esm2022/src/hydration/utils.mjs +9 -3
- package/esm2022/src/linker/element_ref.mjs +1 -1
- package/esm2022/src/linker/view_container_ref.mjs +16 -6
- package/esm2022/src/metadata/di.mjs +5 -4
- package/esm2022/src/metadata/directives.mjs +7 -7
- package/esm2022/src/metadata/ng_module.mjs +2 -1
- package/esm2022/src/render/api.mjs +1 -1
- package/esm2022/src/render3/definition.mjs +6 -3
- package/esm2022/src/render3/instructions/element_validation.mjs +2 -2
- package/esm2022/src/render3/instructions/shared.mjs +7 -3
- package/esm2022/src/render3/interfaces/document.mjs +6 -4
- package/esm2022/src/render3/interfaces/node.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +7 -1
- package/esm2022/src/transfer_state.mjs +8 -7
- package/esm2022/src/util/assert.mjs +2 -5
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +4 -4
- package/fesm2022/core.mjs +181 -133
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +112 -71
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +36 -30
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +415 -361
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.
|
|
2
|
+
* @license Angular v16.0.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -572,6 +572,7 @@ export declare interface Attribute {
|
|
|
572
572
|
/**
|
|
573
573
|
* Attribute decorator and metadata.
|
|
574
574
|
*
|
|
575
|
+
* @Annotation
|
|
575
576
|
* @publicApi
|
|
576
577
|
*/
|
|
577
578
|
export declare const Attribute: AttributeDecorator;
|
|
@@ -1061,7 +1062,7 @@ export declare interface Component extends Directive {
|
|
|
1061
1062
|
/**
|
|
1062
1063
|
* Component decorator and metadata.
|
|
1063
1064
|
*
|
|
1064
|
-
|
|
1065
|
+
* @Annotation
|
|
1065
1066
|
* @publicApi
|
|
1066
1067
|
*/
|
|
1067
1068
|
export declare const Component: ComponentDecorator;
|
|
@@ -1207,6 +1208,7 @@ export declare interface ComponentDecorator {
|
|
|
1207
1208
|
* To preserve sequences of whitespace characters, use the
|
|
1208
1209
|
* `ngPreserveWhitespaces` attribute.
|
|
1209
1210
|
*
|
|
1211
|
+
* @Annotation
|
|
1210
1212
|
*/
|
|
1211
1213
|
(obj: Component): TypeDecorator;
|
|
1212
1214
|
/**
|
|
@@ -1573,7 +1575,7 @@ export declare type ContentChild = Query;
|
|
|
1573
1575
|
* ContentChild decorator and metadata.
|
|
1574
1576
|
*
|
|
1575
1577
|
*
|
|
1576
|
-
|
|
1578
|
+
* @Annotation
|
|
1577
1579
|
*
|
|
1578
1580
|
* @publicApi
|
|
1579
1581
|
*/
|
|
@@ -1633,6 +1635,7 @@ export declare interface ContentChildDecorator {
|
|
|
1633
1635
|
*
|
|
1634
1636
|
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
|
|
1635
1637
|
*
|
|
1638
|
+
* @Annotation
|
|
1636
1639
|
*/
|
|
1637
1640
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
1638
1641
|
descendants?: boolean;
|
|
@@ -1650,6 +1653,7 @@ export declare interface ContentChildDecorator {
|
|
|
1650
1653
|
* Type of the ContentChildren metadata.
|
|
1651
1654
|
*
|
|
1652
1655
|
*
|
|
1656
|
+
* @Annotation
|
|
1653
1657
|
* @publicApi
|
|
1654
1658
|
*/
|
|
1655
1659
|
export declare type ContentChildren = Query;
|
|
@@ -1658,6 +1662,7 @@ export declare type ContentChildren = Query;
|
|
|
1658
1662
|
* ContentChildren decorator and metadata.
|
|
1659
1663
|
*
|
|
1660
1664
|
*
|
|
1665
|
+
* @Annotation
|
|
1661
1666
|
* @publicApi
|
|
1662
1667
|
*/
|
|
1663
1668
|
export declare const ContentChildren: ContentChildrenDecorator;
|
|
@@ -1728,6 +1733,7 @@ export declare interface ContentChildrenDecorator {
|
|
|
1728
1733
|
*
|
|
1729
1734
|
* {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
|
|
1730
1735
|
*
|
|
1736
|
+
* @Annotation
|
|
1731
1737
|
*/
|
|
1732
1738
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
1733
1739
|
descendants?: boolean;
|
|
@@ -2363,6 +2369,7 @@ export declare abstract class DestroyRef {
|
|
|
2363
2369
|
/**
|
|
2364
2370
|
* Directive decorator and metadata.
|
|
2365
2371
|
*
|
|
2372
|
+
* @Annotation
|
|
2366
2373
|
* @publicApi
|
|
2367
2374
|
*/
|
|
2368
2375
|
export declare interface Directive {
|
|
@@ -2541,6 +2548,7 @@ export declare interface Directive {
|
|
|
2541
2548
|
* }
|
|
2542
2549
|
* ```
|
|
2543
2550
|
*
|
|
2551
|
+
* @Annotation
|
|
2544
2552
|
*/
|
|
2545
2553
|
queries?: {
|
|
2546
2554
|
[key: string]: any;
|
|
@@ -2690,6 +2698,7 @@ export declare interface DirectiveDecorator {
|
|
|
2690
2698
|
* accessible for components outside of the NgModule.
|
|
2691
2699
|
*
|
|
2692
2700
|
*
|
|
2701
|
+
* @Annotation
|
|
2693
2702
|
*/
|
|
2694
2703
|
(obj?: Directive): TypeDecorator;
|
|
2695
2704
|
/**
|
|
@@ -2999,25 +3008,14 @@ declare interface ELEMENT_MARKER {
|
|
|
2999
3008
|
*/
|
|
3000
3009
|
export declare class ElementRef<T = any> {
|
|
3001
3010
|
/**
|
|
3002
|
-
* The underlying native element or `null` if direct access to native elements is not supported
|
|
3003
|
-
* (e.g. when the application runs in a web worker).
|
|
3004
|
-
*
|
|
3005
3011
|
* <div class="callout is-critical">
|
|
3006
3012
|
* <header>Use with caution</header>
|
|
3007
3013
|
* <p>
|
|
3008
3014
|
* Use this API as the last resort when direct access to DOM is needed. Use templating and
|
|
3009
3015
|
* data-binding provided by Angular instead. Alternatively you can take a look at {@link
|
|
3010
|
-
* Renderer2}
|
|
3011
|
-
* which provides API that can safely be used even when direct access to native elements is not
|
|
3012
|
-
* supported.
|
|
3013
|
-
* </p>
|
|
3014
|
-
* <p>
|
|
3015
|
-
* Relying on direct DOM access creates tight coupling between your application and rendering
|
|
3016
|
-
* layers which will make it impossible to separate the two and deploy your application into a
|
|
3017
|
-
* web worker.
|
|
3016
|
+
* Renderer2} which provides an API that can be safely used.
|
|
3018
3017
|
* </p>
|
|
3019
3018
|
* </div>
|
|
3020
|
-
*
|
|
3021
3019
|
*/
|
|
3022
3020
|
nativeElement: T;
|
|
3023
3021
|
constructor(nativeElement: T);
|
|
@@ -3546,7 +3544,7 @@ export declare interface Host {
|
|
|
3546
3544
|
/**
|
|
3547
3545
|
* Host decorator and metadata.
|
|
3548
3546
|
*
|
|
3549
|
-
|
|
3547
|
+
* @Annotation
|
|
3550
3548
|
* @publicApi
|
|
3551
3549
|
*/
|
|
3552
3550
|
export declare const Host: HostDecorator;
|
|
@@ -3564,7 +3562,7 @@ export declare interface HostBinding {
|
|
|
3564
3562
|
}
|
|
3565
3563
|
|
|
3566
3564
|
/**
|
|
3567
|
-
|
|
3565
|
+
* @Annotation
|
|
3568
3566
|
* @publicApi
|
|
3569
3567
|
*/
|
|
3570
3568
|
export declare const HostBinding: HostBindingDecorator;
|
|
@@ -3810,7 +3808,7 @@ export declare interface HostListener {
|
|
|
3810
3808
|
* The global target names that can be used to prefix an event name are
|
|
3811
3809
|
* `document:`, `window:` and `body:`.
|
|
3812
3810
|
*
|
|
3813
|
-
|
|
3811
|
+
* @Annotation
|
|
3814
3812
|
* @publicApi
|
|
3815
3813
|
*/
|
|
3816
3814
|
export declare const HostListener: HostListenerDecorator;
|
|
@@ -4171,6 +4169,7 @@ export declare interface Inject {
|
|
|
4171
4169
|
/**
|
|
4172
4170
|
* Inject decorator and metadata.
|
|
4173
4171
|
*
|
|
4172
|
+
* @Annotation
|
|
4174
4173
|
* @publicApi
|
|
4175
4174
|
*/
|
|
4176
4175
|
export declare const Inject: InjectDecorator;
|
|
@@ -4254,6 +4253,7 @@ export declare interface Injectable {
|
|
|
4254
4253
|
/**
|
|
4255
4254
|
* Injectable decorator and metadata.
|
|
4256
4255
|
*
|
|
4256
|
+
* @Annotation
|
|
4257
4257
|
* @publicApi
|
|
4258
4258
|
*/
|
|
4259
4259
|
export declare const Injectable: InjectableDecorator;
|
|
@@ -4600,7 +4600,7 @@ export declare interface Input {
|
|
|
4600
4600
|
}
|
|
4601
4601
|
|
|
4602
4602
|
/**
|
|
4603
|
-
|
|
4603
|
+
* @Annotation
|
|
4604
4604
|
* @publicApi
|
|
4605
4605
|
*/
|
|
4606
4606
|
export declare const Input: InputDecorator;
|
|
@@ -5760,6 +5760,7 @@ export declare interface NgModule {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
|
|
5762
5762
|
/**
|
|
5763
|
+
* @Annotation
|
|
5763
5764
|
*/
|
|
5764
5765
|
export declare const NgModule: NgModuleDecorator;
|
|
5765
5766
|
|
|
@@ -6158,7 +6159,7 @@ export declare interface Optional {
|
|
|
6158
6159
|
/**
|
|
6159
6160
|
* Optional decorator and metadata.
|
|
6160
6161
|
*
|
|
6161
|
-
|
|
6162
|
+
* @Annotation
|
|
6162
6163
|
* @publicApi
|
|
6163
6164
|
*/
|
|
6164
6165
|
export declare const Optional: OptionalDecorator;
|
|
@@ -6203,7 +6204,7 @@ export declare interface Output {
|
|
|
6203
6204
|
}
|
|
6204
6205
|
|
|
6205
6206
|
/**
|
|
6206
|
-
|
|
6207
|
+
* @Annotation
|
|
6207
6208
|
* @publicApi
|
|
6208
6209
|
*/
|
|
6209
6210
|
export declare const Output: OutputDecorator;
|
|
@@ -6277,7 +6278,7 @@ export declare interface Pipe {
|
|
|
6277
6278
|
}
|
|
6278
6279
|
|
|
6279
6280
|
/**
|
|
6280
|
-
|
|
6281
|
+
* @Annotation
|
|
6281
6282
|
* @publicApi
|
|
6282
6283
|
*/
|
|
6283
6284
|
export declare const Pipe: PipeDecorator;
|
|
@@ -7250,7 +7251,6 @@ export declare abstract class Renderer2 {
|
|
|
7250
7251
|
* in the host element's DOM.
|
|
7251
7252
|
* @param node The child node to query.
|
|
7252
7253
|
* @returns The parent node, or null if there is no parent.
|
|
7253
|
-
* For WebWorkers, always returns true.
|
|
7254
7254
|
* This is because the check is synchronous,
|
|
7255
7255
|
* and the caller can't rely on checking for null.
|
|
7256
7256
|
*/
|
|
@@ -7259,7 +7259,6 @@ export declare abstract class Renderer2 {
|
|
|
7259
7259
|
* Implement this callback to get the next sibling node of a given node
|
|
7260
7260
|
* in the host element's DOM.
|
|
7261
7261
|
* @returns The sibling node, or null if there is no sibling.
|
|
7262
|
-
* For WebWorkers, always returns a value.
|
|
7263
7262
|
* This is because the check is synchronous,
|
|
7264
7263
|
* and the caller can't rely on checking for null.
|
|
7265
7264
|
*/
|
|
@@ -7520,6 +7519,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7520
7519
|
PROVIDER_IN_WRONG_CONTEXT = 207,
|
|
7521
7520
|
MISSING_INJECTION_TOKEN = 208,
|
|
7522
7521
|
INVALID_MULTI_PROVIDER = -209,
|
|
7522
|
+
MISSING_DOCUMENT = 210,
|
|
7523
7523
|
MULTIPLE_COMPONENTS_MATCH = -300,
|
|
7524
7524
|
EXPORT_NOT_FOUND = -301,
|
|
7525
7525
|
PIPE_NOT_FOUND = -302,
|
|
@@ -7639,7 +7639,7 @@ export declare interface Self {
|
|
|
7639
7639
|
/**
|
|
7640
7640
|
* Self decorator and metadata.
|
|
7641
7641
|
*
|
|
7642
|
-
|
|
7642
|
+
* @Annotation
|
|
7643
7643
|
* @publicApi
|
|
7644
7644
|
*/
|
|
7645
7645
|
export declare const Self: SelfDecorator;
|
|
@@ -7834,7 +7834,7 @@ export declare interface SkipSelf {
|
|
|
7834
7834
|
/**
|
|
7835
7835
|
* `SkipSelf` decorator and metadata.
|
|
7836
7836
|
*
|
|
7837
|
-
|
|
7837
|
+
* @Annotation
|
|
7838
7838
|
* @publicApi
|
|
7839
7839
|
*/
|
|
7840
7840
|
export declare const SkipSelf: SkipSelfDecorator;
|
|
@@ -8706,7 +8706,7 @@ declare const enum TNodeFlags {
|
|
|
8706
8706
|
hasClassInput = 8,
|
|
8707
8707
|
/** Bit #5 - This bit is set if the node has any "style" inputs */
|
|
8708
8708
|
hasStyleInput = 16,
|
|
8709
|
-
/** Bit #6 This bit is set if the node has been detached by i18n */
|
|
8709
|
+
/** Bit #6 - This bit is set if the node has been detached by i18n */
|
|
8710
8710
|
isDetached = 32,
|
|
8711
8711
|
/**
|
|
8712
8712
|
* Bit #7 - This bit is set if the node has directives with host bindings.
|
|
@@ -8714,7 +8714,11 @@ declare const enum TNodeFlags {
|
|
|
8714
8714
|
* This flags allows us to guard host-binding logic and invoke it only on nodes
|
|
8715
8715
|
* that actually have directives with host bindings.
|
|
8716
8716
|
*/
|
|
8717
|
-
hasHostBindings = 64
|
|
8717
|
+
hasHostBindings = 64,
|
|
8718
|
+
/**
|
|
8719
|
+
* Bit #8 - This bit is set if the node is a located inside skip hydration block.
|
|
8720
|
+
*/
|
|
8721
|
+
inSkipHydrationBlock = 128
|
|
8718
8722
|
}
|
|
8719
8723
|
|
|
8720
8724
|
/**
|
|
@@ -9658,7 +9662,7 @@ export declare type ViewChild = Query;
|
|
|
9658
9662
|
/**
|
|
9659
9663
|
* ViewChild decorator and metadata.
|
|
9660
9664
|
*
|
|
9661
|
-
|
|
9665
|
+
* @Annotation
|
|
9662
9666
|
* @publicApi
|
|
9663
9667
|
*/
|
|
9664
9668
|
export declare const ViewChild: ViewChildDecorator;
|
|
@@ -9713,6 +9717,7 @@ export declare interface ViewChildDecorator {
|
|
|
9713
9717
|
*
|
|
9714
9718
|
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
|
|
9715
9719
|
*
|
|
9720
|
+
* @Annotation
|
|
9716
9721
|
*/
|
|
9717
9722
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
9718
9723
|
read?: any;
|
|
@@ -9734,7 +9739,7 @@ export declare type ViewChildren = Query;
|
|
|
9734
9739
|
/**
|
|
9735
9740
|
* ViewChildren decorator and metadata.
|
|
9736
9741
|
*
|
|
9737
|
-
|
|
9742
|
+
* @Annotation
|
|
9738
9743
|
* @publicApi
|
|
9739
9744
|
*/
|
|
9740
9745
|
export declare const ViewChildren: ViewChildrenDecorator;
|
|
@@ -9796,6 +9801,7 @@ export declare interface ViewChildrenDecorator {
|
|
|
9796
9801
|
*
|
|
9797
9802
|
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
|
|
9798
9803
|
*
|
|
9804
|
+
* @Annotation
|
|
9799
9805
|
*/
|
|
9800
9806
|
(selector: ProviderToken<unknown> | Function | string, opts?: {
|
|
9801
9807
|
read?: any;
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// bazel-out/
|
|
63
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
|
|
64
64
|
var guard_and_resolve_interfaces_exports = {};
|
|
65
65
|
__export(guard_and_resolve_interfaces_exports, {
|
|
66
66
|
default: () => guard_and_resolve_interfaces_default
|
|
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
|
|
|
69
69
|
var import_schematics = require("@angular-devkit/schematics");
|
|
70
70
|
var import_path3 = require("path");
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
73
73
|
var import_core = require("@angular-devkit/core");
|
|
74
74
|
function getProjectTsConfigPaths(tree) {
|
|
75
75
|
return __async(this, null, function* () {
|
|
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
153
153
|
var import_path = require("path");
|
|
154
154
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
155
155
|
|
|
156
|
-
// bazel-out/
|
|
156
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
157
157
|
var path = __toESM(require("path"), 1);
|
|
158
158
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
159
159
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
170
170
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
// bazel-out/
|
|
173
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
174
174
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
175
175
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
176
176
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
203
203
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
// bazel-out/
|
|
206
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
|
|
207
207
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
210
210
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
211
211
|
|
|
212
|
-
// bazel-out/
|
|
212
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
213
213
|
var import_path2 = require("path");
|
|
214
214
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
215
215
|
var ImportManager = class {
|
|
@@ -393,7 +393,7 @@ ${text}`;
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// bazel-out/
|
|
396
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
397
397
|
var ChangeTracker = class {
|
|
398
398
|
constructor(_printer, _importRemapper) {
|
|
399
399
|
__publicField(this, "_printer");
|
|
@@ -449,7 +449,7 @@ function normalizePath(path2) {
|
|
|
449
449
|
return path2.replace(/\\/g, "/");
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
// bazel-out/
|
|
452
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
453
453
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
454
454
|
function getImportOfIdentifier(typeChecker, node) {
|
|
455
455
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
// bazel-out/
|
|
524
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
525
525
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
526
526
|
function closestNode(node, predicate) {
|
|
527
527
|
let current = node.parent;
|
|
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
|
|
|
534
534
|
return null;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
// bazel-out/
|
|
537
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
|
|
538
538
|
var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
|
|
539
539
|
var routerModule = "@angular/router";
|
|
540
540
|
function migrateFile(sourceFile, typeChecker, rewriteFn) {
|
|
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
|
|
|
647
647
|
import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
// bazel-out/
|
|
650
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
|
|
651
651
|
function guard_and_resolve_interfaces_default() {
|
|
652
652
|
return (tree) => __async(this, null, function* () {
|
|
653
653
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
60
60
|
var remove_module_id_exports = {};
|
|
61
61
|
__export(remove_module_id_exports, {
|
|
62
62
|
default: () => remove_module_id_default
|
|
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
|
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
68
68
|
|
|
69
|
-
// bazel-out/
|
|
69
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
70
70
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
71
71
|
|
|
72
|
-
// bazel-out/
|
|
72
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
73
73
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
76
76
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
77
77
|
function getImportOfIdentifier(typeChecker, node) {
|
|
78
78
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// bazel-out/
|
|
97
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
98
98
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
99
99
|
if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
|
|
100
100
|
return null;
|
|
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
103
103
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// bazel-out/
|
|
106
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
107
107
|
function getAngularDecorators(typeChecker, decorators) {
|
|
108
108
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
109
109
|
node,
|
|
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// bazel-out/
|
|
116
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
|
|
117
117
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
118
118
|
function unwrapExpression(node) {
|
|
119
119
|
if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
|
|
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
|
|
127
127
|
function extractAngularClassMetadata(typeChecker, node) {
|
|
128
128
|
const decorators = import_typescript4.default.getDecorators(node);
|
|
129
129
|
if (!decorators || !decorators.length) {
|
|
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// bazel-out/
|
|
153
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
154
154
|
var import_core = require("@angular-devkit/core");
|
|
155
155
|
function getProjectTsConfigPaths(tree) {
|
|
156
156
|
return __async(this, null, function* () {
|
|
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
// bazel-out/
|
|
233
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
234
234
|
var import_path = require("path");
|
|
235
235
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
238
238
|
var path = __toESM(require("path"), 1);
|
|
239
239
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
240
240
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
251
251
|
return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// bazel-out/
|
|
254
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
255
255
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
256
256
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
257
257
|
return import_typescript6.default.createProgram(rootNames, options, host);
|
|
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
284
284
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
// bazel-out/
|
|
287
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
|
|
288
288
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
289
289
|
function getPropertyNameText(node) {
|
|
290
290
|
if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
|
|
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
|
|
|
293
293
|
return null;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
// bazel-out/
|
|
296
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
|
|
297
297
|
function remove_module_id_default() {
|
|
298
298
|
return (tree) => __async(this, null, function* () {
|
|
299
299
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|