@angular/upgrade 21.2.1 → 22.0.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -112,5 +112,5 @@ var constants = /*#__PURE__*/Object.freeze({
112
112
  UPGRADE_MODULE_NAME: UPGRADE_MODULE_NAME
113
113
  });
114
114
 
115
- export { $$TESTABILITY, $COMPILE, $CONTROLLER, $DELEGATE, $HTTP_BACKEND, $INJECTOR, $INTERVAL, $PARSE, $PROVIDE, $ROOT_ELEMENT, $ROOT_SCOPE, $SCOPE, $TEMPLATE_CACHE, DOWNGRADED_MODULE_COUNT_KEY, INJECTOR_KEY, LAZY_MODULE_REF, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME, angular1, bootstrap, constants, element, getAngularJSGlobal, getAngularLib, injector, module_, setAngularJSGlobal, setAngularLib };
115
+ export { $$TESTABILITY, $COMPILE, $CONTROLLER, $DELEGATE, $HTTP_BACKEND, $INJECTOR, $INTERVAL, $PARSE, $PROVIDE, $ROOT_ELEMENT, $ROOT_SCOPE, $SCOPE, $TEMPLATE_CACHE, DOWNGRADED_MODULE_COUNT_KEY, INJECTOR_KEY, LAZY_MODULE_REF, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME, angular1, bootstrap, constants, element, getAngularJSGlobal, injector, module_, setAngularJSGlobal };
116
116
  //# sourceMappingURL=_constants-chunk.mjs.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -20,7 +20,7 @@ class AngularTestingModule {
20
20
  }
21
21
  static ɵfac = i0.ɵɵngDeclareFactory({
22
22
  minVersion: "12.0.0",
23
- version: "21.2.1",
23
+ version: "22.0.0-next.1",
24
24
  ngImport: i0,
25
25
  type: AngularTestingModule,
26
26
  deps: [{
@@ -30,13 +30,13 @@ class AngularTestingModule {
30
30
  });
31
31
  static ɵmod = i0.ɵɵngDeclareNgModule({
32
32
  minVersion: "14.0.0",
33
- version: "21.2.1",
33
+ version: "22.0.0-next.1",
34
34
  ngImport: i0,
35
35
  type: AngularTestingModule
36
36
  });
37
37
  static ɵinj = i0.ɵɵngDeclareInjector({
38
38
  minVersion: "12.0.0",
39
- version: "21.2.1",
39
+ version: "22.0.0-next.1",
40
40
  ngImport: i0,
41
41
  type: AngularTestingModule,
42
42
  providers: [{
@@ -47,7 +47,7 @@ class AngularTestingModule {
47
47
  }
48
48
  i0.ɵɵngDeclareClassMetadata({
49
49
  minVersion: "12.0.0",
50
- version: "21.2.1",
50
+ version: "22.0.0-next.1",
51
51
  ngImport: i0,
52
52
  type: AngularTestingModule,
53
53
  decorators: [{
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { element, $ROOT_ELEMENT, $ROOT_SCOPE, DOWNGRADED_MODULE_COUNT_KEY, UPGRADE_APP_TYPE_KEY, $SCOPE, $COMPILE, $INJECTOR, $PARSE, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, LAZY_MODULE_REF, INJECTOR_KEY, $CONTROLLER, $TEMPLATE_CACHE, $HTTP_BACKEND, module_, $PROVIDE, UPGRADE_MODULE_NAME, $$TESTABILITY, $DELEGATE, $INTERVAL, bootstrap } from './_constants-chunk.mjs';
8
- export { getAngularJSGlobal, getAngularLib, setAngularJSGlobal, setAngularLib, angular1 as ɵangular1, constants as ɵconstants } from './_constants-chunk.mjs';
8
+ export { getAngularJSGlobal, setAngularJSGlobal, angular1 as ɵangular1, constants as ɵconstants } from './_constants-chunk.mjs';
9
9
  import * as i0 from '@angular/core';
10
10
  import { ɵNG_MOD_DEF as _NG_MOD_DEF, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, ɵSIGNAL as _SIGNAL, NgZone, ComponentFactoryResolver, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as _NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, PlatformRef, ɵinternalProvideZoneChangeDetection as _internalProvideZoneChangeDetection, EventEmitter, Directive, ɵNoopNgZone as _NoopNgZone, NgModule } from '@angular/core';
11
11
  export { VERSION } from './upgrade.mjs';
@@ -1008,7 +1008,7 @@ class UpgradeComponent {
1008
1008
  }
1009
1009
  static ɵfac = i0.ɵɵngDeclareFactory({
1010
1010
  minVersion: "12.0.0",
1011
- version: "21.2.1",
1011
+ version: "22.0.0-next.1",
1012
1012
  ngImport: i0,
1013
1013
  type: UpgradeComponent,
1014
1014
  deps: "invalid",
@@ -1016,7 +1016,7 @@ class UpgradeComponent {
1016
1016
  });
1017
1017
  static ɵdir = i0.ɵɵngDeclareDirective({
1018
1018
  minVersion: "14.0.0",
1019
- version: "21.2.1",
1019
+ version: "22.0.0-next.1",
1020
1020
  type: UpgradeComponent,
1021
1021
  isStandalone: true,
1022
1022
  usesOnChanges: true,
@@ -1025,7 +1025,7 @@ class UpgradeComponent {
1025
1025
  }
1026
1026
  i0.ɵɵngDeclareClassMetadata({
1027
1027
  minVersion: "12.0.0",
1028
- version: "21.2.1",
1028
+ version: "22.0.0-next.1",
1029
1029
  ngImport: i0,
1030
1030
  type: UpgradeComponent,
1031
1031
  decorators: [{
@@ -1139,7 +1139,7 @@ class UpgradeModule {
1139
1139
  }
1140
1140
  static ɵfac = i0.ɵɵngDeclareFactory({
1141
1141
  minVersion: "12.0.0",
1142
- version: "21.2.1",
1142
+ version: "22.0.0-next.1",
1143
1143
  ngImport: i0,
1144
1144
  type: UpgradeModule,
1145
1145
  deps: [{
@@ -1153,13 +1153,13 @@ class UpgradeModule {
1153
1153
  });
1154
1154
  static ɵmod = i0.ɵɵngDeclareNgModule({
1155
1155
  minVersion: "14.0.0",
1156
- version: "21.2.1",
1156
+ version: "22.0.0-next.1",
1157
1157
  ngImport: i0,
1158
1158
  type: UpgradeModule
1159
1159
  });
1160
1160
  static ɵinj = i0.ɵɵngDeclareInjector({
1161
1161
  minVersion: "12.0.0",
1162
- version: "21.2.1",
1162
+ version: "22.0.0-next.1",
1163
1163
  ngImport: i0,
1164
1164
  type: UpgradeModule,
1165
1165
  providers: [angular1Providers, _internalProvideZoneChangeDetection({})]
@@ -1167,7 +1167,7 @@ class UpgradeModule {
1167
1167
  }
1168
1168
  i0.ɵɵngDeclareClassMetadata({
1169
1169
  minVersion: "12.0.0",
1170
- version: "21.2.1",
1170
+ version: "22.0.0-next.1",
1171
1171
  ngImport: i0,
1172
1172
  type: UpgradeModule,
1173
1173
  decorators: [{
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { Version } from '@angular/core';
8
8
 
9
- const VERSION = /* @__PURE__ */new Version('21.2.1');
9
+ const VERSION = /* @__PURE__ */new Version('22.0.0-next.1');
10
10
 
11
11
  export { VERSION };
12
12
  //# sourceMappingURL=upgrade.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the upgrade package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('21.2.1');\n"],"names":["VERSION","Version"],"mappings":";;;;;;;;AAmBO,MAAMA,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"upgrade.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the upgrade package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('22.0.0-next.1');\n"],"names":["VERSION","Version"],"mappings":";;;;;;;;AAmBO,MAAMA,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@angular/upgrade",
3
- "version": "21.2.1",
3
+ "version": "22.0.0-next.1",
4
4
  "description": "Angular - the library for easing update from v1 to v2",
5
5
  "author": "angular",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
8
+ "node": "^22.22.0 || >=24.13.1"
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "21.2.1",
15
- "@angular/compiler": "21.2.1",
16
- "@angular/platform-browser": "21.2.1",
17
- "@angular/platform-browser-dynamic": "21.2.1"
14
+ "@angular/core": "22.0.0-next.1",
15
+ "@angular/compiler": "22.0.0-next.1",
16
+ "@angular/platform-browser": "22.0.0-next.1",
17
+ "@angular/platform-browser-dynamic": "22.0.0-next.1"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/types/static.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { Type, StaticProvider, NgModuleRef, NgModuleFactory, OnInit, OnChanges, DoCheck, OnDestroy, ElementRef, Injector, SimpleChanges, NgZone, PlatformRef } from '@angular/core';
8
+ import { Type, SimpleChanges, Injector, ElementRef, StaticProvider, NgModuleRef, NgModuleFactory, OnInit, OnChanges, DoCheck, OnDestroy, NgZone, PlatformRef } from '@angular/core';
9
9
  export { VERSION } from './upgrade.js';
10
10
 
11
11
  type Ng1Token = string;
@@ -445,6 +445,232 @@ declare function downgradeComponent(info: {
445
445
  */
446
446
  declare function downgradeInjectable(token: any, downgradedModule?: string): Function;
447
447
 
448
+ declare const $COMPILE = "$compile";
449
+ declare const $CONTROLLER = "$controller";
450
+ declare const $DELEGATE = "$delegate";
451
+ declare const $EXCEPTION_HANDLER = "$exceptionHandler";
452
+ declare const $HTTP_BACKEND = "$httpBackend";
453
+ declare const $INJECTOR = "$injector";
454
+ declare const $INTERVAL = "$interval";
455
+ declare const $PARSE = "$parse";
456
+ declare const $PROVIDE = "$provide";
457
+ declare const $ROOT_ELEMENT = "$rootElement";
458
+ declare const $ROOT_SCOPE = "$rootScope";
459
+ declare const $SCOPE = "$scope";
460
+ declare const $TEMPLATE_CACHE = "$templateCache";
461
+ declare const $TEMPLATE_REQUEST = "$templateRequest";
462
+ declare const $$TESTABILITY = "$$testability";
463
+ declare const COMPILER_KEY = "$$angularCompiler";
464
+ declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
465
+ declare const GROUP_PROJECTABLE_NODES_KEY = "$$angularGroupProjectableNodes";
466
+ declare const INJECTOR_KEY = "$$angularInjector";
467
+ declare const LAZY_MODULE_REF = "$$angularLazyModuleRef";
468
+ declare const NG_ZONE_KEY = "$$angularNgZone";
469
+ declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
470
+ declare const REQUIRE_INJECTOR: string;
471
+ declare const REQUIRE_NG_MODEL = "?ngModel";
472
+ declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
473
+
474
+ declare const constants_d_$$TESTABILITY: typeof $$TESTABILITY;
475
+ declare const constants_d_$COMPILE: typeof $COMPILE;
476
+ declare const constants_d_$CONTROLLER: typeof $CONTROLLER;
477
+ declare const constants_d_$DELEGATE: typeof $DELEGATE;
478
+ declare const constants_d_$EXCEPTION_HANDLER: typeof $EXCEPTION_HANDLER;
479
+ declare const constants_d_$HTTP_BACKEND: typeof $HTTP_BACKEND;
480
+ declare const constants_d_$INJECTOR: typeof $INJECTOR;
481
+ declare const constants_d_$INTERVAL: typeof $INTERVAL;
482
+ declare const constants_d_$PARSE: typeof $PARSE;
483
+ declare const constants_d_$PROVIDE: typeof $PROVIDE;
484
+ declare const constants_d_$ROOT_ELEMENT: typeof $ROOT_ELEMENT;
485
+ declare const constants_d_$ROOT_SCOPE: typeof $ROOT_SCOPE;
486
+ declare const constants_d_$SCOPE: typeof $SCOPE;
487
+ declare const constants_d_$TEMPLATE_CACHE: typeof $TEMPLATE_CACHE;
488
+ declare const constants_d_$TEMPLATE_REQUEST: typeof $TEMPLATE_REQUEST;
489
+ declare const constants_d_COMPILER_KEY: typeof COMPILER_KEY;
490
+ declare const constants_d_DOWNGRADED_MODULE_COUNT_KEY: typeof DOWNGRADED_MODULE_COUNT_KEY;
491
+ declare const constants_d_GROUP_PROJECTABLE_NODES_KEY: typeof GROUP_PROJECTABLE_NODES_KEY;
492
+ declare const constants_d_INJECTOR_KEY: typeof INJECTOR_KEY;
493
+ declare const constants_d_LAZY_MODULE_REF: typeof LAZY_MODULE_REF;
494
+ declare const constants_d_NG_ZONE_KEY: typeof NG_ZONE_KEY;
495
+ declare const constants_d_REQUIRE_INJECTOR: typeof REQUIRE_INJECTOR;
496
+ declare const constants_d_REQUIRE_NG_MODEL: typeof REQUIRE_NG_MODEL;
497
+ declare const constants_d_UPGRADE_APP_TYPE_KEY: typeof UPGRADE_APP_TYPE_KEY;
498
+ declare const constants_d_UPGRADE_MODULE_NAME: typeof UPGRADE_MODULE_NAME;
499
+ declare namespace constants_d {
500
+ export {
501
+ constants_d_$$TESTABILITY as $$TESTABILITY,
502
+ constants_d_$COMPILE as $COMPILE,
503
+ constants_d_$CONTROLLER as $CONTROLLER,
504
+ constants_d_$DELEGATE as $DELEGATE,
505
+ constants_d_$EXCEPTION_HANDLER as $EXCEPTION_HANDLER,
506
+ constants_d_$HTTP_BACKEND as $HTTP_BACKEND,
507
+ constants_d_$INJECTOR as $INJECTOR,
508
+ constants_d_$INTERVAL as $INTERVAL,
509
+ constants_d_$PARSE as $PARSE,
510
+ constants_d_$PROVIDE as $PROVIDE,
511
+ constants_d_$ROOT_ELEMENT as $ROOT_ELEMENT,
512
+ constants_d_$ROOT_SCOPE as $ROOT_SCOPE,
513
+ constants_d_$SCOPE as $SCOPE,
514
+ constants_d_$TEMPLATE_CACHE as $TEMPLATE_CACHE,
515
+ constants_d_$TEMPLATE_REQUEST as $TEMPLATE_REQUEST,
516
+ constants_d_COMPILER_KEY as COMPILER_KEY,
517
+ constants_d_DOWNGRADED_MODULE_COUNT_KEY as DOWNGRADED_MODULE_COUNT_KEY,
518
+ constants_d_GROUP_PROJECTABLE_NODES_KEY as GROUP_PROJECTABLE_NODES_KEY,
519
+ constants_d_INJECTOR_KEY as INJECTOR_KEY,
520
+ constants_d_LAZY_MODULE_REF as LAZY_MODULE_REF,
521
+ constants_d_NG_ZONE_KEY as NG_ZONE_KEY,
522
+ constants_d_REQUIRE_INJECTOR as REQUIRE_INJECTOR,
523
+ constants_d_REQUIRE_NG_MODEL as REQUIRE_NG_MODEL,
524
+ constants_d_UPGRADE_APP_TYPE_KEY as UPGRADE_APP_TYPE_KEY,
525
+ constants_d_UPGRADE_MODULE_NAME as UPGRADE_MODULE_NAME,
526
+ };
527
+ }
528
+
529
+ /**
530
+ * @fileoverview
531
+ * While Angular only uses Trusted Types internally for the time being,
532
+ * references to Trusted Types could leak into our public API, which would force
533
+ * anyone compiling against @angular/upgrade to provide the @types/trusted-types
534
+ * package in their compilation unit.
535
+ *
536
+ * Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
537
+ * will keep Angular's public API surface free of references to Trusted Types.
538
+ * For internal and semi-private APIs that need to reference Trusted Types, the
539
+ * minimal type definitions for the Trusted Types API provided by this module
540
+ * should be used instead. They are marked as "declare" to prevent them from
541
+ * being renamed by compiler optimization.
542
+ *
543
+ * Adapted from
544
+ * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
545
+ * but restricted to the API surface used within Angular, mimicking the approach
546
+ * in packages/core/src/util/security/trusted_type_defs.ts.
547
+ */
548
+ type TrustedHTML = string & {
549
+ __brand__: 'TrustedHTML';
550
+ };
551
+
552
+ interface IBindingDestination {
553
+ [key: string]: any;
554
+ $onChanges?: (changes: SimpleChanges) => void;
555
+ }
556
+ interface IControllerInstance extends IBindingDestination {
557
+ $doCheck?: () => void;
558
+ $onDestroy?: () => void;
559
+ $onInit?: () => void;
560
+ $postLink?: () => void;
561
+ }
562
+ declare class UpgradeHelper {
563
+ private name;
564
+ readonly $injector: IInjectorService;
565
+ readonly element: Element;
566
+ readonly $element: IAugmentedJQuery;
567
+ readonly directive: IDirective;
568
+ private readonly $compile;
569
+ private readonly $controller;
570
+ constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
571
+ static getDirective($injector: IInjectorService, name: string): IDirective;
572
+ static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
573
+ buildController(controllerType: IController, $scope: IScope): any;
574
+ compileTemplate(template?: string | TrustedHTML): ILinkFn;
575
+ onDestroy($scope: IScope, controllerInstance?: any): void;
576
+ prepareTransclusion(): ILinkFn | undefined;
577
+ resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
578
+ private compileHtml;
579
+ private extractChildNodes;
580
+ private getDirectiveRequire;
581
+ private resolveRequire;
582
+ }
583
+
584
+ type upgrade_helper_d_IBindingDestination = IBindingDestination;
585
+ type upgrade_helper_d_IControllerInstance = IControllerInstance;
586
+ type upgrade_helper_d_UpgradeHelper = UpgradeHelper;
587
+ declare const upgrade_helper_d_UpgradeHelper: typeof UpgradeHelper;
588
+ declare namespace upgrade_helper_d {
589
+ export { upgrade_helper_d_UpgradeHelper as UpgradeHelper };
590
+ export type { upgrade_helper_d_IBindingDestination as IBindingDestination, upgrade_helper_d_IControllerInstance as IControllerInstance };
591
+ }
592
+
593
+ declare function onError(e: any): void;
594
+ /**
595
+ * Clean the jqLite/jQuery data on the element and all its descendants.
596
+ * Equivalent to how jqLite/jQuery invoke `cleanData()` on an Element when removed:
597
+ * https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/jqLite.js#L349-L355
598
+ * https://github.com/jquery/jquery/blob/6984d1747623dbc5e87fd6c261a5b6b1628c107c/src/manipulation.js#L182
599
+ *
600
+ * NOTE:
601
+ * `cleanData()` will also invoke the AngularJS `$destroy` DOM event on the element:
602
+ * https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/Angular.js#L1932-L1945
603
+ *
604
+ * @param node The DOM node whose data needs to be cleaned.
605
+ */
606
+ declare function cleanData(node: Node): void;
607
+ declare function controllerKey(name: string): string;
608
+ /**
609
+ * Destroy an AngularJS app given the app `$injector`.
610
+ *
611
+ * NOTE: Destroying an app is not officially supported by AngularJS, but try to do our best by
612
+ * destroying `$rootScope` and clean the jqLite/jQuery data on `$rootElement` and all
613
+ * descendants.
614
+ *
615
+ * @param $injector The `$injector` of the AngularJS app to destroy.
616
+ */
617
+ declare function destroyApp($injector: IInjectorService): void;
618
+ declare function directiveNormalize(name: string): string;
619
+ declare function getTypeName(type: Type<any>): string;
620
+ declare function getDowngradedModuleCount($injector: IInjectorService): number;
621
+ declare function getUpgradeAppType($injector: IInjectorService): UpgradeAppType;
622
+ declare function isFunction(value: any): value is Function;
623
+ declare function isNgModuleType(value: any): value is Type<unknown>;
624
+ declare function validateInjectionKey($injector: IInjectorService, downgradedModule: string, injectionKey: string, attemptedAction: string): void;
625
+ declare class Deferred<R> {
626
+ promise: Promise<R>;
627
+ resolve: (value: R | PromiseLike<R>) => void;
628
+ reject: (error?: any) => void;
629
+ constructor();
630
+ }
631
+ interface LazyModuleRef {
632
+ injector?: Injector;
633
+ promise?: Promise<Injector>;
634
+ }
635
+ declare const enum UpgradeAppType {
636
+ None = 0,
637
+ Dynamic = 1,
638
+ Static = 2,
639
+ Lite = 3
640
+ }
641
+ /**
642
+ * Glue the AngularJS `NgModelController` (if it exists) to the component
643
+ * (if it implements the needed subset of the `ControlValueAccessor` interface).
644
+ */
645
+ declare function hookupNgModel(ngModel: INgModelController, component: any): void;
646
+ /**
647
+ * Test two values for strict equality, accounting for the fact that `NaN !== NaN`.
648
+ */
649
+ declare function strictEquals(val1: any, val2: any): boolean;
650
+
651
+ type util_d_Deferred<R> = Deferred<R>;
652
+ declare const util_d_Deferred: typeof Deferred;
653
+ type util_d_LazyModuleRef = LazyModuleRef;
654
+ type util_d_UpgradeAppType = UpgradeAppType;
655
+ declare const util_d_UpgradeAppType: typeof UpgradeAppType;
656
+ declare const util_d_cleanData: typeof cleanData;
657
+ declare const util_d_controllerKey: typeof controllerKey;
658
+ declare const util_d_destroyApp: typeof destroyApp;
659
+ declare const util_d_directiveNormalize: typeof directiveNormalize;
660
+ declare const util_d_getDowngradedModuleCount: typeof getDowngradedModuleCount;
661
+ declare const util_d_getTypeName: typeof getTypeName;
662
+ declare const util_d_getUpgradeAppType: typeof getUpgradeAppType;
663
+ declare const util_d_hookupNgModel: typeof hookupNgModel;
664
+ declare const util_d_isFunction: typeof isFunction;
665
+ declare const util_d_isNgModuleType: typeof isNgModuleType;
666
+ declare const util_d_onError: typeof onError;
667
+ declare const util_d_strictEquals: typeof strictEquals;
668
+ declare const util_d_validateInjectionKey: typeof validateInjectionKey;
669
+ declare namespace util_d {
670
+ export { util_d_Deferred as Deferred, util_d_UpgradeAppType as UpgradeAppType, util_d_cleanData as cleanData, util_d_controllerKey as controllerKey, util_d_destroyApp as destroyApp, util_d_directiveNormalize as directiveNormalize, util_d_getDowngradedModuleCount as getDowngradedModuleCount, util_d_getTypeName as getTypeName, util_d_getUpgradeAppType as getUpgradeAppType, util_d_hookupNgModel as hookupNgModel, util_d_isFunction as isFunction, util_d_isNgModuleType as isNgModuleType, util_d_onError as onError, util_d_strictEquals as strictEquals, util_d_validateInjectionKey as validateInjectionKey };
671
+ export type { util_d_LazyModuleRef as LazyModuleRef };
672
+ }
673
+
448
674
  /**
449
675
  * @description
450
676
  *
@@ -920,230 +1146,4 @@ declare class UpgradeModule {
920
1146
  static ɵinj: i0.ɵɵInjectorDeclaration<UpgradeModule>;
921
1147
  }
922
1148
 
923
- declare const $COMPILE = "$compile";
924
- declare const $CONTROLLER = "$controller";
925
- declare const $DELEGATE = "$delegate";
926
- declare const $EXCEPTION_HANDLER = "$exceptionHandler";
927
- declare const $HTTP_BACKEND = "$httpBackend";
928
- declare const $INJECTOR = "$injector";
929
- declare const $INTERVAL = "$interval";
930
- declare const $PARSE = "$parse";
931
- declare const $PROVIDE = "$provide";
932
- declare const $ROOT_ELEMENT = "$rootElement";
933
- declare const $ROOT_SCOPE = "$rootScope";
934
- declare const $SCOPE = "$scope";
935
- declare const $TEMPLATE_CACHE = "$templateCache";
936
- declare const $TEMPLATE_REQUEST = "$templateRequest";
937
- declare const $$TESTABILITY = "$$testability";
938
- declare const COMPILER_KEY = "$$angularCompiler";
939
- declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
940
- declare const GROUP_PROJECTABLE_NODES_KEY = "$$angularGroupProjectableNodes";
941
- declare const INJECTOR_KEY = "$$angularInjector";
942
- declare const LAZY_MODULE_REF = "$$angularLazyModuleRef";
943
- declare const NG_ZONE_KEY = "$$angularNgZone";
944
- declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
945
- declare const REQUIRE_INJECTOR: string;
946
- declare const REQUIRE_NG_MODEL = "?ngModel";
947
- declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
948
-
949
- declare const constants_d_$$TESTABILITY: typeof $$TESTABILITY;
950
- declare const constants_d_$COMPILE: typeof $COMPILE;
951
- declare const constants_d_$CONTROLLER: typeof $CONTROLLER;
952
- declare const constants_d_$DELEGATE: typeof $DELEGATE;
953
- declare const constants_d_$EXCEPTION_HANDLER: typeof $EXCEPTION_HANDLER;
954
- declare const constants_d_$HTTP_BACKEND: typeof $HTTP_BACKEND;
955
- declare const constants_d_$INJECTOR: typeof $INJECTOR;
956
- declare const constants_d_$INTERVAL: typeof $INTERVAL;
957
- declare const constants_d_$PARSE: typeof $PARSE;
958
- declare const constants_d_$PROVIDE: typeof $PROVIDE;
959
- declare const constants_d_$ROOT_ELEMENT: typeof $ROOT_ELEMENT;
960
- declare const constants_d_$ROOT_SCOPE: typeof $ROOT_SCOPE;
961
- declare const constants_d_$SCOPE: typeof $SCOPE;
962
- declare const constants_d_$TEMPLATE_CACHE: typeof $TEMPLATE_CACHE;
963
- declare const constants_d_$TEMPLATE_REQUEST: typeof $TEMPLATE_REQUEST;
964
- declare const constants_d_COMPILER_KEY: typeof COMPILER_KEY;
965
- declare const constants_d_DOWNGRADED_MODULE_COUNT_KEY: typeof DOWNGRADED_MODULE_COUNT_KEY;
966
- declare const constants_d_GROUP_PROJECTABLE_NODES_KEY: typeof GROUP_PROJECTABLE_NODES_KEY;
967
- declare const constants_d_INJECTOR_KEY: typeof INJECTOR_KEY;
968
- declare const constants_d_LAZY_MODULE_REF: typeof LAZY_MODULE_REF;
969
- declare const constants_d_NG_ZONE_KEY: typeof NG_ZONE_KEY;
970
- declare const constants_d_REQUIRE_INJECTOR: typeof REQUIRE_INJECTOR;
971
- declare const constants_d_REQUIRE_NG_MODEL: typeof REQUIRE_NG_MODEL;
972
- declare const constants_d_UPGRADE_APP_TYPE_KEY: typeof UPGRADE_APP_TYPE_KEY;
973
- declare const constants_d_UPGRADE_MODULE_NAME: typeof UPGRADE_MODULE_NAME;
974
- declare namespace constants_d {
975
- export {
976
- constants_d_$$TESTABILITY as $$TESTABILITY,
977
- constants_d_$COMPILE as $COMPILE,
978
- constants_d_$CONTROLLER as $CONTROLLER,
979
- constants_d_$DELEGATE as $DELEGATE,
980
- constants_d_$EXCEPTION_HANDLER as $EXCEPTION_HANDLER,
981
- constants_d_$HTTP_BACKEND as $HTTP_BACKEND,
982
- constants_d_$INJECTOR as $INJECTOR,
983
- constants_d_$INTERVAL as $INTERVAL,
984
- constants_d_$PARSE as $PARSE,
985
- constants_d_$PROVIDE as $PROVIDE,
986
- constants_d_$ROOT_ELEMENT as $ROOT_ELEMENT,
987
- constants_d_$ROOT_SCOPE as $ROOT_SCOPE,
988
- constants_d_$SCOPE as $SCOPE,
989
- constants_d_$TEMPLATE_CACHE as $TEMPLATE_CACHE,
990
- constants_d_$TEMPLATE_REQUEST as $TEMPLATE_REQUEST,
991
- constants_d_COMPILER_KEY as COMPILER_KEY,
992
- constants_d_DOWNGRADED_MODULE_COUNT_KEY as DOWNGRADED_MODULE_COUNT_KEY,
993
- constants_d_GROUP_PROJECTABLE_NODES_KEY as GROUP_PROJECTABLE_NODES_KEY,
994
- constants_d_INJECTOR_KEY as INJECTOR_KEY,
995
- constants_d_LAZY_MODULE_REF as LAZY_MODULE_REF,
996
- constants_d_NG_ZONE_KEY as NG_ZONE_KEY,
997
- constants_d_REQUIRE_INJECTOR as REQUIRE_INJECTOR,
998
- constants_d_REQUIRE_NG_MODEL as REQUIRE_NG_MODEL,
999
- constants_d_UPGRADE_APP_TYPE_KEY as UPGRADE_APP_TYPE_KEY,
1000
- constants_d_UPGRADE_MODULE_NAME as UPGRADE_MODULE_NAME,
1001
- };
1002
- }
1003
-
1004
- /**
1005
- * @fileoverview
1006
- * While Angular only uses Trusted Types internally for the time being,
1007
- * references to Trusted Types could leak into our public API, which would force
1008
- * anyone compiling against @angular/upgrade to provide the @types/trusted-types
1009
- * package in their compilation unit.
1010
- *
1011
- * Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
1012
- * will keep Angular's public API surface free of references to Trusted Types.
1013
- * For internal and semi-private APIs that need to reference Trusted Types, the
1014
- * minimal type definitions for the Trusted Types API provided by this module
1015
- * should be used instead. They are marked as "declare" to prevent them from
1016
- * being renamed by compiler optimization.
1017
- *
1018
- * Adapted from
1019
- * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
1020
- * but restricted to the API surface used within Angular, mimicking the approach
1021
- * in packages/core/src/util/security/trusted_type_defs.ts.
1022
- */
1023
- type TrustedHTML = string & {
1024
- __brand__: 'TrustedHTML';
1025
- };
1026
-
1027
- interface IBindingDestination {
1028
- [key: string]: any;
1029
- $onChanges?: (changes: SimpleChanges) => void;
1030
- }
1031
- interface IControllerInstance extends IBindingDestination {
1032
- $doCheck?: () => void;
1033
- $onDestroy?: () => void;
1034
- $onInit?: () => void;
1035
- $postLink?: () => void;
1036
- }
1037
- declare class UpgradeHelper {
1038
- private name;
1039
- readonly $injector: IInjectorService;
1040
- readonly element: Element;
1041
- readonly $element: IAugmentedJQuery;
1042
- readonly directive: IDirective;
1043
- private readonly $compile;
1044
- private readonly $controller;
1045
- constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
1046
- static getDirective($injector: IInjectorService, name: string): IDirective;
1047
- static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
1048
- buildController(controllerType: IController, $scope: IScope): any;
1049
- compileTemplate(template?: string | TrustedHTML): ILinkFn;
1050
- onDestroy($scope: IScope, controllerInstance?: any): void;
1051
- prepareTransclusion(): ILinkFn | undefined;
1052
- resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
1053
- private compileHtml;
1054
- private extractChildNodes;
1055
- private getDirectiveRequire;
1056
- private resolveRequire;
1057
- }
1058
-
1059
- type upgrade_helper_d_IBindingDestination = IBindingDestination;
1060
- type upgrade_helper_d_IControllerInstance = IControllerInstance;
1061
- type upgrade_helper_d_UpgradeHelper = UpgradeHelper;
1062
- declare const upgrade_helper_d_UpgradeHelper: typeof UpgradeHelper;
1063
- declare namespace upgrade_helper_d {
1064
- export { upgrade_helper_d_UpgradeHelper as UpgradeHelper };
1065
- export type { upgrade_helper_d_IBindingDestination as IBindingDestination, upgrade_helper_d_IControllerInstance as IControllerInstance };
1066
- }
1067
-
1068
- declare function onError(e: any): void;
1069
- /**
1070
- * Clean the jqLite/jQuery data on the element and all its descendants.
1071
- * Equivalent to how jqLite/jQuery invoke `cleanData()` on an Element when removed:
1072
- * https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/jqLite.js#L349-L355
1073
- * https://github.com/jquery/jquery/blob/6984d1747623dbc5e87fd6c261a5b6b1628c107c/src/manipulation.js#L182
1074
- *
1075
- * NOTE:
1076
- * `cleanData()` will also invoke the AngularJS `$destroy` DOM event on the element:
1077
- * https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/Angular.js#L1932-L1945
1078
- *
1079
- * @param node The DOM node whose data needs to be cleaned.
1080
- */
1081
- declare function cleanData(node: Node): void;
1082
- declare function controllerKey(name: string): string;
1083
- /**
1084
- * Destroy an AngularJS app given the app `$injector`.
1085
- *
1086
- * NOTE: Destroying an app is not officially supported by AngularJS, but try to do our best by
1087
- * destroying `$rootScope` and clean the jqLite/jQuery data on `$rootElement` and all
1088
- * descendants.
1089
- *
1090
- * @param $injector The `$injector` of the AngularJS app to destroy.
1091
- */
1092
- declare function destroyApp($injector: IInjectorService): void;
1093
- declare function directiveNormalize(name: string): string;
1094
- declare function getTypeName(type: Type<any>): string;
1095
- declare function getDowngradedModuleCount($injector: IInjectorService): number;
1096
- declare function getUpgradeAppType($injector: IInjectorService): UpgradeAppType;
1097
- declare function isFunction(value: any): value is Function;
1098
- declare function isNgModuleType(value: any): value is Type<unknown>;
1099
- declare function validateInjectionKey($injector: IInjectorService, downgradedModule: string, injectionKey: string, attemptedAction: string): void;
1100
- declare class Deferred<R> {
1101
- promise: Promise<R>;
1102
- resolve: (value: R | PromiseLike<R>) => void;
1103
- reject: (error?: any) => void;
1104
- constructor();
1105
- }
1106
- interface LazyModuleRef {
1107
- injector?: Injector;
1108
- promise?: Promise<Injector>;
1109
- }
1110
- declare const enum UpgradeAppType {
1111
- None = 0,
1112
- Dynamic = 1,
1113
- Static = 2,
1114
- Lite = 3
1115
- }
1116
- /**
1117
- * Glue the AngularJS `NgModelController` (if it exists) to the component
1118
- * (if it implements the needed subset of the `ControlValueAccessor` interface).
1119
- */
1120
- declare function hookupNgModel(ngModel: INgModelController, component: any): void;
1121
- /**
1122
- * Test two values for strict equality, accounting for the fact that `NaN !== NaN`.
1123
- */
1124
- declare function strictEquals(val1: any, val2: any): boolean;
1125
-
1126
- type util_d_Deferred<R> = Deferred<R>;
1127
- declare const util_d_Deferred: typeof Deferred;
1128
- type util_d_LazyModuleRef = LazyModuleRef;
1129
- type util_d_UpgradeAppType = UpgradeAppType;
1130
- declare const util_d_UpgradeAppType: typeof UpgradeAppType;
1131
- declare const util_d_cleanData: typeof cleanData;
1132
- declare const util_d_controllerKey: typeof controllerKey;
1133
- declare const util_d_destroyApp: typeof destroyApp;
1134
- declare const util_d_directiveNormalize: typeof directiveNormalize;
1135
- declare const util_d_getDowngradedModuleCount: typeof getDowngradedModuleCount;
1136
- declare const util_d_getTypeName: typeof getTypeName;
1137
- declare const util_d_getUpgradeAppType: typeof getUpgradeAppType;
1138
- declare const util_d_hookupNgModel: typeof hookupNgModel;
1139
- declare const util_d_isFunction: typeof isFunction;
1140
- declare const util_d_isNgModuleType: typeof isNgModuleType;
1141
- declare const util_d_onError: typeof onError;
1142
- declare const util_d_strictEquals: typeof strictEquals;
1143
- declare const util_d_validateInjectionKey: typeof validateInjectionKey;
1144
- declare namespace util_d {
1145
- export { util_d_Deferred as Deferred, util_d_UpgradeAppType as UpgradeAppType, util_d_cleanData as cleanData, util_d_controllerKey as controllerKey, util_d_destroyApp as destroyApp, util_d_directiveNormalize as directiveNormalize, util_d_getDowngradedModuleCount as getDowngradedModuleCount, util_d_getTypeName as getTypeName, util_d_getUpgradeAppType as getUpgradeAppType, util_d_hookupNgModel as hookupNgModel, util_d_isFunction as isFunction, util_d_isNgModuleType as isNgModuleType, util_d_onError as onError, util_d_strictEquals as strictEquals, util_d_validateInjectionKey as validateInjectionKey };
1146
- export type { util_d_LazyModuleRef as LazyModuleRef };
1147
- }
1148
-
1149
- export { UpgradeComponent, UpgradeModule, downgradeComponent, downgradeInjectable, downgradeModule, getAngularJSGlobal, getAngularLib, setAngularJSGlobal, setAngularLib, angular1_d as ɵangular1, constants_d as ɵconstants, upgrade_helper_d as ɵupgradeHelper, util_d as ɵutil };
1149
+ export { UpgradeComponent, UpgradeModule, downgradeComponent, downgradeInjectable, downgradeModule, getAngularJSGlobal, setAngularJSGlobal, angular1_d as ɵangular1, constants_d as ɵconstants, upgrade_helper_d as ɵupgradeHelper, util_d as ɵutil };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.1
2
+ * @license Angular v22.0.0-next.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */