@angular/upgrade 17.0.0-next.1 → 17.0.0-next.3
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/common/src/version.mjs +1 -1
- package/esm2022/src/dynamic/src/upgrade_ng1_adapter.mjs +3 -3
- package/esm2022/static/common.mjs +22 -0
- package/esm2022/static/public_api.mjs +2 -1
- package/esm2022/static/src/downgrade_module.mjs +16 -18
- package/esm2022/static/src/upgrade_component.mjs +12 -14
- package/esm2022/static/src/upgrade_module.mjs +25 -26
- package/esm2022/static/testing/src/create_angular_testing_module.mjs +9 -10
- package/esm2022/static/testing/src/create_angularjs_testing_module.mjs +6 -7
- package/fesm2022/static/testing.mjs +16 -107
- package/fesm2022/static/testing.mjs.map +1 -1
- package/fesm2022/static.mjs +311 -239
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +5 -5
- package/static/index.d.ts +553 -1
- package/static/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/upgrade",
|
|
3
|
-
"version": "17.0.0-next.
|
|
3
|
+
"version": "17.0.0-next.3",
|
|
4
4
|
"description": "Angular - the library for easing update from v1 to v2",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "17.0.0-next.
|
|
15
|
-
"@angular/compiler": "17.0.0-next.
|
|
16
|
-
"@angular/platform-browser": "17.0.0-next.
|
|
17
|
-
"@angular/platform-browser-dynamic": "17.0.0-next.
|
|
14
|
+
"@angular/core": "17.0.0-next.3",
|
|
15
|
+
"@angular/compiler": "17.0.0-next.3",
|
|
16
|
+
"@angular/platform-browser": "17.0.0-next.3",
|
|
17
|
+
"@angular/platform-browser-dynamic": "17.0.0-next.3"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/static/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21,6 +21,98 @@ import { StaticProvider } from '@angular/core';
|
|
|
21
21
|
import { Type } from '@angular/core';
|
|
22
22
|
import { Version } from '@angular/core';
|
|
23
23
|
|
|
24
|
+
declare const $$TESTABILITY = "$$testability";
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
declare const $COMPILE = "$compile";
|
|
28
|
+
|
|
29
|
+
declare const $CONTROLLER = "$controller";
|
|
30
|
+
|
|
31
|
+
declare const $DELEGATE = "$delegate";
|
|
32
|
+
|
|
33
|
+
declare const $EXCEPTION_HANDLER = "$exceptionHandler";
|
|
34
|
+
|
|
35
|
+
declare const $HTTP_BACKEND = "$httpBackend";
|
|
36
|
+
|
|
37
|
+
declare const $INJECTOR = "$injector";
|
|
38
|
+
|
|
39
|
+
declare const $INTERVAL = "$interval";
|
|
40
|
+
|
|
41
|
+
declare const $PARSE = "$parse";
|
|
42
|
+
|
|
43
|
+
declare const $PROVIDE = "$provide";
|
|
44
|
+
|
|
45
|
+
declare const $ROOT_ELEMENT = "$rootElement";
|
|
46
|
+
|
|
47
|
+
declare const $ROOT_SCOPE = "$rootScope";
|
|
48
|
+
|
|
49
|
+
declare const $SCOPE = "$scope";
|
|
50
|
+
|
|
51
|
+
declare const $TEMPLATE_CACHE = "$templateCache";
|
|
52
|
+
|
|
53
|
+
declare const $TEMPLATE_REQUEST = "$templateRequest";
|
|
54
|
+
|
|
55
|
+
declare let angular: {
|
|
56
|
+
bootstrap: (e: Element, modules: (string | IInjectable)[], config?: IAngularBootstrapConfig) => IInjectorService;
|
|
57
|
+
module: (prefix: string, dependencies?: string[]) => IModule;
|
|
58
|
+
element: {
|
|
59
|
+
(e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;
|
|
60
|
+
cleanData: (nodes: Node[] | NodeList) => void;
|
|
61
|
+
};
|
|
62
|
+
injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;
|
|
63
|
+
version: {
|
|
64
|
+
major: number;
|
|
65
|
+
};
|
|
66
|
+
resumeBootstrap: () => void;
|
|
67
|
+
getTestability: (e: Element) => ITestabilityService;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
declare const bootstrap: typeof angular.bootstrap;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Clean the jqLite/jQuery data on the element and all its descendants.
|
|
74
|
+
* Equivalent to how jqLite/jQuery invoke `cleanData()` on an Element when removed:
|
|
75
|
+
* https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/jqLite.js#L349-L355
|
|
76
|
+
* https://github.com/jquery/jquery/blob/6984d1747623dbc5e87fd6c261a5b6b1628c107c/src/manipulation.js#L182
|
|
77
|
+
*
|
|
78
|
+
* NOTE:
|
|
79
|
+
* `cleanData()` will also invoke the AngularJS `$destroy` DOM event on the element:
|
|
80
|
+
* https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/Angular.js#L1932-L1945
|
|
81
|
+
*
|
|
82
|
+
* @param node The DOM node whose data needs to be cleaned.
|
|
83
|
+
*/
|
|
84
|
+
declare function cleanData(node: Node): void;
|
|
85
|
+
|
|
86
|
+
declare const COMPILER_KEY = "$$angularCompiler";
|
|
87
|
+
|
|
88
|
+
declare function controllerKey(name: string): string;
|
|
89
|
+
|
|
90
|
+
declare class Deferred<R> {
|
|
91
|
+
promise: Promise<R>;
|
|
92
|
+
resolve: (value: R | PromiseLike<R>) => void;
|
|
93
|
+
reject: (error?: any) => void;
|
|
94
|
+
constructor();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Destroy an AngularJS app given the app `$injector`.
|
|
99
|
+
*
|
|
100
|
+
* NOTE: Destroying an app is not officially supported by AngularJS, but try to do our best by
|
|
101
|
+
* destroying `$rootScope` and clean the jqLite/jQuery data on `$rootElement` and all
|
|
102
|
+
* descendants.
|
|
103
|
+
*
|
|
104
|
+
* @param $injector The `$injector` of the AngularJS app to destroy.
|
|
105
|
+
*/
|
|
106
|
+
declare function destroyApp($injector: IInjectorService): void;
|
|
107
|
+
|
|
108
|
+
declare function directiveNormalize(name: string): string;
|
|
109
|
+
|
|
110
|
+
declare type DirectiveRequireProperty = SingleOrListOrMap<string>;
|
|
111
|
+
|
|
112
|
+
declare type DirectiveTranscludeProperty = boolean | 'element' | {
|
|
113
|
+
[key: string]: string;
|
|
114
|
+
};
|
|
115
|
+
|
|
24
116
|
/**
|
|
25
117
|
* @description
|
|
26
118
|
*
|
|
@@ -82,6 +174,8 @@ export declare function downgradeComponent(info: {
|
|
|
82
174
|
selectors?: string[];
|
|
83
175
|
}): any;
|
|
84
176
|
|
|
177
|
+
declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
|
|
178
|
+
|
|
85
179
|
|
|
86
180
|
/**
|
|
87
181
|
* @description
|
|
@@ -378,6 +472,8 @@ export declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | ((extr
|
|
|
378
472
|
*/
|
|
379
473
|
export declare function downgradeModule<T>(moduleOrBootstrapFn: NgModuleFactory<T>): string;
|
|
380
474
|
|
|
475
|
+
declare const element: typeof angular.element;
|
|
476
|
+
|
|
381
477
|
/**
|
|
382
478
|
* Returns the current AngularJS global.
|
|
383
479
|
*
|
|
@@ -392,6 +488,304 @@ export declare function getAngularJSGlobal(): any;
|
|
|
392
488
|
*/
|
|
393
489
|
export declare function getAngularLib(): any;
|
|
394
490
|
|
|
491
|
+
declare function getDowngradedModuleCount($injector: IInjectorService): number;
|
|
492
|
+
|
|
493
|
+
declare const getTestability: typeof angular.getTestability;
|
|
494
|
+
|
|
495
|
+
declare function getTypeName(type: Type<any>): string;
|
|
496
|
+
|
|
497
|
+
declare function getUpgradeAppType($injector: IInjectorService): UpgradeAppType;
|
|
498
|
+
|
|
499
|
+
declare const GROUP_PROJECTABLE_NODES_KEY = "$$angularGroupProjectableNodes";
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Glue the AngularJS `NgModelController` (if it exists) to the component
|
|
503
|
+
* (if it implements the needed subset of the `ControlValueAccessor` interface).
|
|
504
|
+
*/
|
|
505
|
+
declare function hookupNgModel(ngModel: INgModelController, component: any): void;
|
|
506
|
+
|
|
507
|
+
declare interface IAngularBootstrapConfig {
|
|
508
|
+
strictDi?: boolean;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare interface IAnnotatedFunction extends Function {
|
|
512
|
+
$inject?: Function extends {
|
|
513
|
+
$inject?: string[];
|
|
514
|
+
} ? Ng1Token[] : ReadonlyArray<Ng1Token>;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare interface IAttributes {
|
|
518
|
+
$observe(attr: string, fn: (v: string) => void): void;
|
|
519
|
+
[key: string]: any;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare type IAugmentedJQuery = Node[] & {
|
|
523
|
+
on?: (name: string, fn: () => void) => void;
|
|
524
|
+
data?: (name: string, value?: any) => any;
|
|
525
|
+
text?: () => string;
|
|
526
|
+
inheritedData?: (name: string, value?: any) => any;
|
|
527
|
+
children?: () => IAugmentedJQuery;
|
|
528
|
+
contents?: () => IAugmentedJQuery;
|
|
529
|
+
parent?: () => IAugmentedJQuery;
|
|
530
|
+
empty?: () => void;
|
|
531
|
+
append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;
|
|
532
|
+
controller?: (name: string) => any;
|
|
533
|
+
isolateScope?: () => IScope;
|
|
534
|
+
injector?: () => IInjectorService;
|
|
535
|
+
triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;
|
|
536
|
+
remove?: () => void;
|
|
537
|
+
removeData?: () => void;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
declare interface IBindingDestination {
|
|
541
|
+
[key: string]: any;
|
|
542
|
+
$onChanges?: (changes: SimpleChanges) => void;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare interface ICacheObject {
|
|
546
|
+
put<T>(key: string, value?: T): T;
|
|
547
|
+
get(key: string): any;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
declare interface ICloneAttachFunction {
|
|
551
|
+
(clonedElement: IAugmentedJQuery, scope: IScope): any;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare interface ICompiledExpression {
|
|
555
|
+
(context: any, locals: any): any;
|
|
556
|
+
assign?: (context: any, value: any) => any;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
declare interface ICompileService {
|
|
560
|
+
(element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare interface IComponent {
|
|
564
|
+
bindings?: {
|
|
565
|
+
[key: string]: string;
|
|
566
|
+
};
|
|
567
|
+
controller?: string | IInjectable;
|
|
568
|
+
controllerAs?: string;
|
|
569
|
+
require?: DirectiveRequireProperty;
|
|
570
|
+
template?: string | Function;
|
|
571
|
+
templateUrl?: string | Function;
|
|
572
|
+
transclude?: DirectiveTranscludeProperty;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare type IController = string | IInjectable;
|
|
576
|
+
|
|
577
|
+
declare interface IControllerInstance extends IBindingDestination {
|
|
578
|
+
$doCheck?: () => void;
|
|
579
|
+
$onDestroy?: () => void;
|
|
580
|
+
$onInit?: () => void;
|
|
581
|
+
$postLink?: () => void;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare interface IControllerService {
|
|
585
|
+
(controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;
|
|
586
|
+
(controllerName: string, locals?: any): any;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
declare interface IDirective {
|
|
590
|
+
compile?: IDirectiveCompileFn;
|
|
591
|
+
controller?: IController;
|
|
592
|
+
controllerAs?: string;
|
|
593
|
+
bindToController?: boolean | {
|
|
594
|
+
[key: string]: string;
|
|
595
|
+
};
|
|
596
|
+
link?: IDirectiveLinkFn | IDirectivePrePost;
|
|
597
|
+
name?: string;
|
|
598
|
+
priority?: number;
|
|
599
|
+
replace?: boolean;
|
|
600
|
+
require?: DirectiveRequireProperty;
|
|
601
|
+
restrict?: string;
|
|
602
|
+
scope?: boolean | {
|
|
603
|
+
[key: string]: string;
|
|
604
|
+
};
|
|
605
|
+
template?: string | Function;
|
|
606
|
+
templateUrl?: string | Function;
|
|
607
|
+
templateNamespace?: string;
|
|
608
|
+
terminal?: boolean;
|
|
609
|
+
transclude?: DirectiveTranscludeProperty;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare interface IDirectiveCompileFn {
|
|
613
|
+
(templateElement: IAugmentedJQuery, templateAttributes: IAttributes, transclude: ITranscludeFunction): IDirectivePrePost;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
declare interface IDirectiveLinkFn {
|
|
617
|
+
(scope: IScope, instanceElement: IAugmentedJQuery, instanceAttributes: IAttributes, controller: any, transclude: ITranscludeFunction): void;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
declare interface IDirectivePrePost {
|
|
621
|
+
pre?: IDirectiveLinkFn;
|
|
622
|
+
post?: IDirectiveLinkFn;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
declare interface IHttpBackendService {
|
|
626
|
+
(method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;
|
|
630
|
+
|
|
631
|
+
declare interface IInjectorService {
|
|
632
|
+
get(key: string): any;
|
|
633
|
+
has(key: string): boolean;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
declare interface IIntervalService {
|
|
637
|
+
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): Promise<any>;
|
|
638
|
+
cancel(promise: Promise<any>): boolean;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
declare interface ILinkFn {
|
|
642
|
+
(scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;
|
|
643
|
+
$$slots?: {
|
|
644
|
+
[slotName: string]: ILinkFn;
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare interface ILinkFnOptions {
|
|
649
|
+
parentBoundTranscludeFn?: Function;
|
|
650
|
+
transcludeControllers?: {
|
|
651
|
+
[key: string]: any;
|
|
652
|
+
};
|
|
653
|
+
futureParentElement?: Node;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare interface IModule {
|
|
657
|
+
name: string;
|
|
658
|
+
requires: (string | IInjectable)[];
|
|
659
|
+
config(fn: IInjectable): IModule;
|
|
660
|
+
directive(selector: string, factory: IInjectable): IModule;
|
|
661
|
+
component(selector: string, component: IComponent): IModule;
|
|
662
|
+
controller(name: string, type: IInjectable): IModule;
|
|
663
|
+
factory(key: Ng1Token, factoryFn: IInjectable): IModule;
|
|
664
|
+
value(key: Ng1Token, value: any): IModule;
|
|
665
|
+
constant(token: Ng1Token, value: any): IModule;
|
|
666
|
+
run(a: IInjectable): IModule;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare interface INgModelController {
|
|
670
|
+
$render(): void;
|
|
671
|
+
$isEmpty(value: any): boolean;
|
|
672
|
+
$setValidity(validationErrorKey: string, isValid: boolean): void;
|
|
673
|
+
$setPristine(): void;
|
|
674
|
+
$setDirty(): void;
|
|
675
|
+
$setUntouched(): void;
|
|
676
|
+
$setTouched(): void;
|
|
677
|
+
$rollbackViewValue(): void;
|
|
678
|
+
$validate(): void;
|
|
679
|
+
$commitViewValue(): void;
|
|
680
|
+
$setViewValue(value: any, trigger: string): void;
|
|
681
|
+
$viewValue: any;
|
|
682
|
+
$modelValue: any;
|
|
683
|
+
$parsers: Function[];
|
|
684
|
+
$formatters: Function[];
|
|
685
|
+
$validators: {
|
|
686
|
+
[key: string]: Function;
|
|
687
|
+
};
|
|
688
|
+
$asyncValidators: {
|
|
689
|
+
[key: string]: Function;
|
|
690
|
+
};
|
|
691
|
+
$viewChangeListeners: Function[];
|
|
692
|
+
$error: Object;
|
|
693
|
+
$pending: Object;
|
|
694
|
+
$untouched: boolean;
|
|
695
|
+
$touched: boolean;
|
|
696
|
+
$pristine: boolean;
|
|
697
|
+
$dirty: boolean;
|
|
698
|
+
$valid: boolean;
|
|
699
|
+
$invalid: boolean;
|
|
700
|
+
$name: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
declare const injector: typeof angular.injector;
|
|
704
|
+
|
|
705
|
+
declare const INJECTOR_KEY = "$$angularInjector";
|
|
706
|
+
|
|
707
|
+
declare interface IParseService {
|
|
708
|
+
(expression: string): ICompiledExpression;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
declare interface IProvider {
|
|
712
|
+
$get: IInjectable;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare interface IProvideService {
|
|
716
|
+
provider(token: Ng1Token, provider: IProvider): IProvider;
|
|
717
|
+
factory(token: Ng1Token, factory: IInjectable): IProvider;
|
|
718
|
+
service(token: Ng1Token, type: IInjectable): IProvider;
|
|
719
|
+
value(token: Ng1Token, value: any): IProvider;
|
|
720
|
+
constant(token: Ng1Token, value: any): void;
|
|
721
|
+
decorator(token: Ng1Token, factory: IInjectable): void;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
declare interface IRootScopeService {
|
|
725
|
+
$new(isolate?: boolean): IScope;
|
|
726
|
+
$id: string;
|
|
727
|
+
$parent: IScope;
|
|
728
|
+
$root: IScope;
|
|
729
|
+
$watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;
|
|
730
|
+
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
731
|
+
$destroy(): any;
|
|
732
|
+
$apply(exp?: Ng1Expression): any;
|
|
733
|
+
$digest(): any;
|
|
734
|
+
$evalAsync(exp: Ng1Expression, locals?: any): void;
|
|
735
|
+
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
736
|
+
$$childTail: IScope;
|
|
737
|
+
$$childHead: IScope;
|
|
738
|
+
$$nextSibling: IScope;
|
|
739
|
+
[key: string]: any;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
declare interface IScope extends IRootScopeService {
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare function isFunction(value: any): value is Function;
|
|
746
|
+
|
|
747
|
+
declare function isNgModuleType(value: any): value is Type<unknown>;
|
|
748
|
+
|
|
749
|
+
declare interface ITemplateCacheService extends ICacheObject {
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
declare interface ITestabilityService {
|
|
753
|
+
findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
754
|
+
findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
755
|
+
getLocation(): string;
|
|
756
|
+
setLocation(url: string): void;
|
|
757
|
+
whenStable(callback: Function): void;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare interface ITranscludeFunction {
|
|
761
|
+
(scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;
|
|
762
|
+
(cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
declare const LAZY_MODULE_REF = "$$angularLazyModuleRef";
|
|
766
|
+
|
|
767
|
+
declare interface LazyModuleRef {
|
|
768
|
+
injector?: Injector;
|
|
769
|
+
promise?: Promise<Injector>;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
declare const module_: typeof angular.module;
|
|
773
|
+
|
|
774
|
+
declare type Ng1Expression = string | Function;
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
declare type Ng1Token = string;
|
|
778
|
+
|
|
779
|
+
declare const NG_ZONE_KEY = "$$angularNgZone";
|
|
780
|
+
|
|
781
|
+
declare function onError(e: any): void;
|
|
782
|
+
|
|
783
|
+
declare const REQUIRE_INJECTOR: string;
|
|
784
|
+
|
|
785
|
+
declare const REQUIRE_NG_MODEL = "?ngModel";
|
|
786
|
+
|
|
787
|
+
declare const resumeBootstrap: typeof angular.resumeBootstrap;
|
|
788
|
+
|
|
395
789
|
/**
|
|
396
790
|
* Resets the AngularJS global.
|
|
397
791
|
*
|
|
@@ -408,6 +802,26 @@ export declare function setAngularJSGlobal(ng: any): void;
|
|
|
408
802
|
*/
|
|
409
803
|
export declare function setAngularLib(ng: any): void;
|
|
410
804
|
|
|
805
|
+
declare type SingleOrListOrMap<T> = T | T[] | {
|
|
806
|
+
[key: string]: T;
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Test two values for strict equality, accounting for the fact that `NaN !== NaN`.
|
|
811
|
+
*/
|
|
812
|
+
declare function strictEquals(val1: any, val2: any): boolean;
|
|
813
|
+
|
|
814
|
+
declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
|
|
815
|
+
|
|
816
|
+
declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
|
|
817
|
+
|
|
818
|
+
declare const enum UpgradeAppType {
|
|
819
|
+
None = 0,
|
|
820
|
+
Dynamic = 1,
|
|
821
|
+
Static = 2,
|
|
822
|
+
Lite = 3
|
|
823
|
+
}
|
|
824
|
+
|
|
411
825
|
/**
|
|
412
826
|
* @description
|
|
413
827
|
*
|
|
@@ -486,6 +900,28 @@ export declare class UpgradeComponent implements OnInit, OnChanges, DoCheck, OnD
|
|
|
486
900
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UpgradeComponent, never, never, {}, {}, never, never, false, never>;
|
|
487
901
|
}
|
|
488
902
|
|
|
903
|
+
declare class UpgradeHelper {
|
|
904
|
+
private name;
|
|
905
|
+
readonly $injector: IInjectorService;
|
|
906
|
+
readonly element: Element;
|
|
907
|
+
readonly $element: IAugmentedJQuery;
|
|
908
|
+
readonly directive: IDirective;
|
|
909
|
+
private readonly $compile;
|
|
910
|
+
private readonly $controller;
|
|
911
|
+
constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
|
|
912
|
+
static getDirective($injector: IInjectorService, name: string): IDirective;
|
|
913
|
+
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | Promise<string>;
|
|
914
|
+
buildController(controllerType: IController, $scope: IScope): any;
|
|
915
|
+
compileTemplate(template?: string): ILinkFn;
|
|
916
|
+
onDestroy($scope: IScope, controllerInstance?: any): void;
|
|
917
|
+
prepareTransclusion(): ILinkFn | undefined;
|
|
918
|
+
resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
|
|
919
|
+
private compileHtml;
|
|
920
|
+
private extractChildNodes;
|
|
921
|
+
private getDirectiveRequire;
|
|
922
|
+
private resolveRequire;
|
|
923
|
+
}
|
|
924
|
+
|
|
489
925
|
/**
|
|
490
926
|
* @description
|
|
491
927
|
*
|
|
@@ -651,9 +1087,125 @@ export declare class UpgradeModule {
|
|
|
651
1087
|
static ɵinj: i0.ɵɵInjectorDeclaration<UpgradeModule>;
|
|
652
1088
|
}
|
|
653
1089
|
|
|
1090
|
+
declare function validateInjectionKey($injector: IInjectorService, downgradedModule: string, injectionKey: string, attemptedAction: string): void;
|
|
1091
|
+
|
|
654
1092
|
/**
|
|
655
1093
|
* @publicApi
|
|
656
1094
|
*/
|
|
657
1095
|
export declare const VERSION: Version;
|
|
658
1096
|
|
|
1097
|
+
declare namespace ɵangular1 {
|
|
1098
|
+
export {
|
|
1099
|
+
setAngularLib,
|
|
1100
|
+
getAngularLib,
|
|
1101
|
+
setAngularJSGlobal,
|
|
1102
|
+
getAngularJSGlobal,
|
|
1103
|
+
Ng1Token,
|
|
1104
|
+
Ng1Expression,
|
|
1105
|
+
IAnnotatedFunction,
|
|
1106
|
+
IInjectable,
|
|
1107
|
+
SingleOrListOrMap,
|
|
1108
|
+
IModule,
|
|
1109
|
+
ICompileService,
|
|
1110
|
+
ILinkFn,
|
|
1111
|
+
ILinkFnOptions,
|
|
1112
|
+
IRootScopeService,
|
|
1113
|
+
IScope,
|
|
1114
|
+
IAngularBootstrapConfig,
|
|
1115
|
+
IDirective,
|
|
1116
|
+
DirectiveRequireProperty,
|
|
1117
|
+
DirectiveTranscludeProperty,
|
|
1118
|
+
IDirectiveCompileFn,
|
|
1119
|
+
IDirectivePrePost,
|
|
1120
|
+
IDirectiveLinkFn,
|
|
1121
|
+
IComponent,
|
|
1122
|
+
IAttributes,
|
|
1123
|
+
ITranscludeFunction,
|
|
1124
|
+
ICloneAttachFunction,
|
|
1125
|
+
IAugmentedJQuery,
|
|
1126
|
+
IProvider,
|
|
1127
|
+
IProvideService,
|
|
1128
|
+
IParseService,
|
|
1129
|
+
ICompiledExpression,
|
|
1130
|
+
IHttpBackendService,
|
|
1131
|
+
ICacheObject,
|
|
1132
|
+
ITemplateCacheService,
|
|
1133
|
+
IController,
|
|
1134
|
+
IControllerService,
|
|
1135
|
+
IInjectorService,
|
|
1136
|
+
IIntervalService,
|
|
1137
|
+
ITestabilityService,
|
|
1138
|
+
INgModelController,
|
|
1139
|
+
bootstrap,
|
|
1140
|
+
module_,
|
|
1141
|
+
element,
|
|
1142
|
+
injector,
|
|
1143
|
+
resumeBootstrap,
|
|
1144
|
+
getTestability
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
export { ɵangular1 }
|
|
1148
|
+
|
|
1149
|
+
declare namespace ɵconstants {
|
|
1150
|
+
export {
|
|
1151
|
+
$COMPILE,
|
|
1152
|
+
$CONTROLLER,
|
|
1153
|
+
$DELEGATE,
|
|
1154
|
+
$EXCEPTION_HANDLER,
|
|
1155
|
+
$HTTP_BACKEND,
|
|
1156
|
+
$INJECTOR,
|
|
1157
|
+
$INTERVAL,
|
|
1158
|
+
$PARSE,
|
|
1159
|
+
$PROVIDE,
|
|
1160
|
+
$ROOT_ELEMENT,
|
|
1161
|
+
$ROOT_SCOPE,
|
|
1162
|
+
$SCOPE,
|
|
1163
|
+
$TEMPLATE_CACHE,
|
|
1164
|
+
$TEMPLATE_REQUEST,
|
|
1165
|
+
$$TESTABILITY,
|
|
1166
|
+
COMPILER_KEY,
|
|
1167
|
+
DOWNGRADED_MODULE_COUNT_KEY,
|
|
1168
|
+
GROUP_PROJECTABLE_NODES_KEY,
|
|
1169
|
+
INJECTOR_KEY,
|
|
1170
|
+
LAZY_MODULE_REF,
|
|
1171
|
+
NG_ZONE_KEY,
|
|
1172
|
+
UPGRADE_APP_TYPE_KEY,
|
|
1173
|
+
REQUIRE_INJECTOR,
|
|
1174
|
+
REQUIRE_NG_MODEL,
|
|
1175
|
+
UPGRADE_MODULE_NAME
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
export { ɵconstants }
|
|
1179
|
+
|
|
1180
|
+
declare namespace ɵupgradeHelper {
|
|
1181
|
+
export {
|
|
1182
|
+
IBindingDestination,
|
|
1183
|
+
IControllerInstance,
|
|
1184
|
+
UpgradeHelper
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
export { ɵupgradeHelper }
|
|
1188
|
+
|
|
1189
|
+
declare namespace ɵutil {
|
|
1190
|
+
export {
|
|
1191
|
+
onError,
|
|
1192
|
+
cleanData,
|
|
1193
|
+
controllerKey,
|
|
1194
|
+
destroyApp,
|
|
1195
|
+
directiveNormalize,
|
|
1196
|
+
getTypeName,
|
|
1197
|
+
getDowngradedModuleCount,
|
|
1198
|
+
getUpgradeAppType,
|
|
1199
|
+
isFunction,
|
|
1200
|
+
isNgModuleType,
|
|
1201
|
+
validateInjectionKey,
|
|
1202
|
+
hookupNgModel,
|
|
1203
|
+
strictEquals,
|
|
1204
|
+
Deferred,
|
|
1205
|
+
LazyModuleRef,
|
|
1206
|
+
UpgradeAppType
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
export { ɵutil }
|
|
1210
|
+
|
|
659
1211
|
export { }
|