@angular/upgrade 19.2.1 → 19.2.2
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/angular1.d-DnOc0Rx9.d.ts +334 -0
- package/fesm2022/static/testing.mjs +16 -20
- package/fesm2022/static/testing.mjs.map +1 -1
- package/fesm2022/static.mjs +13 -1257
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +9 -1187
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/upgrade_helper-BOLCivYz.mjs +1242 -0
- package/fesm2022/upgrade_helper-BOLCivYz.mjs.map +1 -0
- package/index.d.ts +7 -49
- package/package.json +5 -5
- package/static/index.d.ts +198 -626
- package/static/testing/index.d.ts +42 -44
package/static/index.d.ts
CHANGED
|
@@ -1,117 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { ElementRef } from '@angular/core';
|
|
7
|
+
import { a as IInjectorService, c as IAugmentedJQuery, d as IDirective, e as IController, f as IScope, g as ILinkFn, S as SingleOrListOrMap, h as INgModelController } from '../angular1.d-DnOc0Rx9.js';
|
|
8
|
+
export { V as VERSION, i as getAngularJSGlobal, j as getAngularLib, s as setAngularJSGlobal, k as setAngularLib, l as ɵangular1 } from '../angular1.d-DnOc0Rx9.js';
|
|
10
9
|
import * as i0 from '@angular/core';
|
|
11
|
-
import { Injector } from '@angular/core';
|
|
12
|
-
import { NgModuleFactory } from '@angular/core';
|
|
13
|
-
import { NgModuleRef } from '@angular/core';
|
|
14
|
-
import { NgZone } from '@angular/core';
|
|
15
|
-
import { OnChanges } from '@angular/core';
|
|
16
|
-
import { OnDestroy } from '@angular/core';
|
|
17
|
-
import { OnInit } from '@angular/core';
|
|
18
|
-
import { PlatformRef } from '@angular/core';
|
|
19
|
-
import { SimpleChanges } from '@angular/core';
|
|
20
|
-
import { StaticProvider } from '@angular/core';
|
|
21
|
-
import { Type } from '@angular/core';
|
|
22
|
-
import { Version } from '@angular/core';
|
|
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
|
-
};
|
|
10
|
+
import { Type, StaticProvider, NgModuleRef, NgModuleFactory, OnInit, OnChanges, DoCheck, OnDestroy, ElementRef, Injector, SimpleChanges, NgZone, PlatformRef } from '@angular/core';
|
|
115
11
|
|
|
116
12
|
/**
|
|
117
13
|
* @description
|
|
@@ -161,7 +57,7 @@ declare type DirectiveTranscludeProperty = boolean | 'element' | {
|
|
|
161
57
|
*
|
|
162
58
|
* @publicApi
|
|
163
59
|
*/
|
|
164
|
-
|
|
60
|
+
declare function downgradeComponent(info: {
|
|
165
61
|
component: Type<any>;
|
|
166
62
|
downgradedModule?: string;
|
|
167
63
|
propagateDigest?: boolean;
|
|
@@ -173,9 +69,6 @@ export declare function downgradeComponent(info: {
|
|
|
173
69
|
selectors?: string[];
|
|
174
70
|
}): any;
|
|
175
71
|
|
|
176
|
-
declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
|
|
177
|
-
|
|
178
|
-
|
|
179
72
|
/**
|
|
180
73
|
* @description
|
|
181
74
|
*
|
|
@@ -236,7 +129,7 @@ declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
|
|
|
236
129
|
*
|
|
237
130
|
* @publicApi
|
|
238
131
|
*/
|
|
239
|
-
|
|
132
|
+
declare function downgradeInjectable(token: any, downgradedModule?: string): Function;
|
|
240
133
|
|
|
241
134
|
/**
|
|
242
135
|
* @description
|
|
@@ -351,8 +244,7 @@ export declare function downgradeInjectable(token: any, downgradedModule?: strin
|
|
|
351
244
|
*
|
|
352
245
|
* @publicApi
|
|
353
246
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
247
|
+
declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | ((extraProviders: StaticProvider[]) => Promise<NgModuleRef<T>>)): string;
|
|
356
248
|
/**
|
|
357
249
|
* @description
|
|
358
250
|
*
|
|
@@ -469,382 +361,7 @@ export declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | ((extr
|
|
|
469
361
|
* @deprecated Passing `NgModuleFactory` as the `downgradeModule` function argument is deprecated,
|
|
470
362
|
* please pass an NgModule class reference instead.
|
|
471
363
|
*/
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
declare const element: typeof angular.element;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Returns the current AngularJS global.
|
|
478
|
-
*
|
|
479
|
-
* @publicApi
|
|
480
|
-
*/
|
|
481
|
-
export declare function getAngularJSGlobal(): any;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* @deprecated Use `getAngularJSGlobal` instead.
|
|
485
|
-
*
|
|
486
|
-
* @publicApi
|
|
487
|
-
*/
|
|
488
|
-
export declare function getAngularLib(): any;
|
|
489
|
-
|
|
490
|
-
declare function getDowngradedModuleCount($injector: IInjectorService): number;
|
|
491
|
-
|
|
492
|
-
declare const getTestability: typeof angular.getTestability;
|
|
493
|
-
|
|
494
|
-
declare function getTypeName(type: Type<any>): string;
|
|
495
|
-
|
|
496
|
-
declare function getUpgradeAppType($injector: IInjectorService): UpgradeAppType;
|
|
497
|
-
|
|
498
|
-
declare const GROUP_PROJECTABLE_NODES_KEY = "$$angularGroupProjectableNodes";
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Glue the AngularJS `NgModelController` (if it exists) to the component
|
|
502
|
-
* (if it implements the needed subset of the `ControlValueAccessor` interface).
|
|
503
|
-
*/
|
|
504
|
-
declare function hookupNgModel(ngModel: INgModelController, component: any): void;
|
|
505
|
-
|
|
506
|
-
declare interface IAngularBootstrapConfig {
|
|
507
|
-
strictDi?: boolean;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
declare interface IAnnotatedFunction extends Function {
|
|
511
|
-
$inject?: Function extends {
|
|
512
|
-
$inject?: string[];
|
|
513
|
-
} ? Ng1Token[] : ReadonlyArray<Ng1Token>;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
declare interface IAttributes {
|
|
517
|
-
$observe(attr: string, fn: (v: string) => void): void;
|
|
518
|
-
[key: string]: any;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
declare type IAugmentedJQuery = Node[] & {
|
|
522
|
-
on?: (name: string, fn: () => void) => void;
|
|
523
|
-
data?: (name: string, value?: any) => any;
|
|
524
|
-
text?: () => string;
|
|
525
|
-
inheritedData?: (name: string, value?: any) => any;
|
|
526
|
-
children?: () => IAugmentedJQuery;
|
|
527
|
-
contents?: () => IAugmentedJQuery;
|
|
528
|
-
parent?: () => IAugmentedJQuery;
|
|
529
|
-
empty?: () => void;
|
|
530
|
-
append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;
|
|
531
|
-
controller?: (name: string) => any;
|
|
532
|
-
isolateScope?: () => IScope;
|
|
533
|
-
injector?: () => IInjectorService;
|
|
534
|
-
triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;
|
|
535
|
-
remove?: () => void;
|
|
536
|
-
removeData?: () => void;
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
declare interface IBindingDestination {
|
|
540
|
-
[key: string]: any;
|
|
541
|
-
$onChanges?: (changes: SimpleChanges) => void;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
declare interface ICacheObject {
|
|
545
|
-
put<T>(key: string, value?: T): T;
|
|
546
|
-
get(key: string): any;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
declare interface ICloneAttachFunction {
|
|
550
|
-
(clonedElement: IAugmentedJQuery, scope: IScope): any;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
declare interface ICompiledExpression {
|
|
554
|
-
(context: any, locals: any): any;
|
|
555
|
-
assign?: (context: any, value: any) => any;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
declare interface ICompileService {
|
|
559
|
-
(element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
declare interface IComponent {
|
|
563
|
-
bindings?: {
|
|
564
|
-
[key: string]: string;
|
|
565
|
-
};
|
|
566
|
-
controller?: string | IInjectable;
|
|
567
|
-
controllerAs?: string;
|
|
568
|
-
require?: DirectiveRequireProperty;
|
|
569
|
-
template?: string | Function;
|
|
570
|
-
templateUrl?: string | Function;
|
|
571
|
-
transclude?: DirectiveTranscludeProperty;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
declare type IController = string | IInjectable;
|
|
575
|
-
|
|
576
|
-
declare interface IControllerInstance extends IBindingDestination {
|
|
577
|
-
$doCheck?: () => void;
|
|
578
|
-
$onDestroy?: () => void;
|
|
579
|
-
$onInit?: () => void;
|
|
580
|
-
$postLink?: () => void;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
declare interface IControllerService {
|
|
584
|
-
(controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;
|
|
585
|
-
(controllerName: string, locals?: any): any;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
declare interface IDirective {
|
|
589
|
-
compile?: IDirectiveCompileFn;
|
|
590
|
-
controller?: IController;
|
|
591
|
-
controllerAs?: string;
|
|
592
|
-
bindToController?: boolean | {
|
|
593
|
-
[key: string]: string;
|
|
594
|
-
};
|
|
595
|
-
link?: IDirectiveLinkFn | IDirectivePrePost;
|
|
596
|
-
name?: string;
|
|
597
|
-
priority?: number;
|
|
598
|
-
replace?: boolean;
|
|
599
|
-
require?: DirectiveRequireProperty;
|
|
600
|
-
restrict?: string;
|
|
601
|
-
scope?: boolean | {
|
|
602
|
-
[key: string]: string;
|
|
603
|
-
};
|
|
604
|
-
template?: string | Function;
|
|
605
|
-
templateUrl?: string | Function;
|
|
606
|
-
templateNamespace?: string;
|
|
607
|
-
terminal?: boolean;
|
|
608
|
-
transclude?: DirectiveTranscludeProperty;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
declare interface IDirectiveCompileFn {
|
|
612
|
-
(templateElement: IAugmentedJQuery, templateAttributes: IAttributes, transclude: ITranscludeFunction): IDirectivePrePost;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
declare interface IDirectiveLinkFn {
|
|
616
|
-
(scope: IScope, instanceElement: IAugmentedJQuery, instanceAttributes: IAttributes, controller: any, transclude: ITranscludeFunction): void;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
declare interface IDirectivePrePost {
|
|
620
|
-
pre?: IDirectiveLinkFn;
|
|
621
|
-
post?: IDirectiveLinkFn;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
declare interface IHttpBackendService {
|
|
625
|
-
(method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
declare type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;
|
|
629
|
-
|
|
630
|
-
declare interface IInjectorService {
|
|
631
|
-
get(key: string): any;
|
|
632
|
-
has(key: string): boolean;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
declare interface IIntervalService {
|
|
636
|
-
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): Promise<any>;
|
|
637
|
-
cancel(promise: Promise<any>): boolean;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
declare interface ILinkFn {
|
|
641
|
-
(scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;
|
|
642
|
-
$$slots?: {
|
|
643
|
-
[slotName: string]: ILinkFn;
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
declare interface ILinkFnOptions {
|
|
648
|
-
parentBoundTranscludeFn?: Function;
|
|
649
|
-
transcludeControllers?: {
|
|
650
|
-
[key: string]: any;
|
|
651
|
-
};
|
|
652
|
-
futureParentElement?: Node;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
declare interface IModule {
|
|
656
|
-
name: string;
|
|
657
|
-
requires: (string | IInjectable)[];
|
|
658
|
-
config(fn: IInjectable): IModule;
|
|
659
|
-
directive(selector: string, factory: IInjectable): IModule;
|
|
660
|
-
component(selector: string, component: IComponent): IModule;
|
|
661
|
-
controller(name: string, type: IInjectable): IModule;
|
|
662
|
-
factory(key: Ng1Token, factoryFn: IInjectable): IModule;
|
|
663
|
-
value(key: Ng1Token, value: any): IModule;
|
|
664
|
-
constant(token: Ng1Token, value: any): IModule;
|
|
665
|
-
run(a: IInjectable): IModule;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
declare interface INgModelController {
|
|
669
|
-
$render(): void;
|
|
670
|
-
$isEmpty(value: any): boolean;
|
|
671
|
-
$setValidity(validationErrorKey: string, isValid: boolean): void;
|
|
672
|
-
$setPristine(): void;
|
|
673
|
-
$setDirty(): void;
|
|
674
|
-
$setUntouched(): void;
|
|
675
|
-
$setTouched(): void;
|
|
676
|
-
$rollbackViewValue(): void;
|
|
677
|
-
$validate(): void;
|
|
678
|
-
$commitViewValue(): void;
|
|
679
|
-
$setViewValue(value: any, trigger: string): void;
|
|
680
|
-
$viewValue: any;
|
|
681
|
-
$modelValue: any;
|
|
682
|
-
$parsers: Function[];
|
|
683
|
-
$formatters: Function[];
|
|
684
|
-
$validators: {
|
|
685
|
-
[key: string]: Function;
|
|
686
|
-
};
|
|
687
|
-
$asyncValidators: {
|
|
688
|
-
[key: string]: Function;
|
|
689
|
-
};
|
|
690
|
-
$viewChangeListeners: Function[];
|
|
691
|
-
$error: Object;
|
|
692
|
-
$pending: Object;
|
|
693
|
-
$untouched: boolean;
|
|
694
|
-
$touched: boolean;
|
|
695
|
-
$pristine: boolean;
|
|
696
|
-
$dirty: boolean;
|
|
697
|
-
$valid: boolean;
|
|
698
|
-
$invalid: boolean;
|
|
699
|
-
$name: string;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
declare const injector: typeof angular.injector;
|
|
703
|
-
|
|
704
|
-
declare const INJECTOR_KEY = "$$angularInjector";
|
|
705
|
-
|
|
706
|
-
declare interface IParseService {
|
|
707
|
-
(expression: string): ICompiledExpression;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
declare interface IProvider {
|
|
711
|
-
$get: IInjectable;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
declare interface IProvideService {
|
|
715
|
-
provider(token: Ng1Token, provider: IProvider): IProvider;
|
|
716
|
-
factory(token: Ng1Token, factory: IInjectable): IProvider;
|
|
717
|
-
service(token: Ng1Token, type: IInjectable): IProvider;
|
|
718
|
-
value(token: Ng1Token, value: any): IProvider;
|
|
719
|
-
constant(token: Ng1Token, value: any): void;
|
|
720
|
-
decorator(token: Ng1Token, factory: IInjectable): void;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
declare interface IRootScopeService {
|
|
724
|
-
$new(isolate?: boolean): IScope;
|
|
725
|
-
$id: string;
|
|
726
|
-
$parent: IScope;
|
|
727
|
-
$root: IScope;
|
|
728
|
-
$watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;
|
|
729
|
-
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
730
|
-
$destroy(): any;
|
|
731
|
-
$apply(exp?: Ng1Expression): any;
|
|
732
|
-
$digest(): any;
|
|
733
|
-
$evalAsync(exp: Ng1Expression, locals?: any): void;
|
|
734
|
-
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
735
|
-
$$childTail: IScope;
|
|
736
|
-
$$childHead: IScope;
|
|
737
|
-
$$nextSibling: IScope;
|
|
738
|
-
$$phase: any;
|
|
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
|
-
|
|
789
|
-
/**
|
|
790
|
-
* Resets the AngularJS global.
|
|
791
|
-
*
|
|
792
|
-
* Used when AngularJS is loaded lazily, and not available on `window`.
|
|
793
|
-
*
|
|
794
|
-
* @publicApi
|
|
795
|
-
*/
|
|
796
|
-
export declare function setAngularJSGlobal(ng: any): void;
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* @deprecated Use `setAngularJSGlobal` instead.
|
|
800
|
-
*
|
|
801
|
-
* @publicApi
|
|
802
|
-
*/
|
|
803
|
-
export declare function setAngularLib(ng: any): void;
|
|
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
|
-
|
|
815
|
-
/**
|
|
816
|
-
* @fileoverview
|
|
817
|
-
* While Angular only uses Trusted Types internally for the time being,
|
|
818
|
-
* references to Trusted Types could leak into our public API, which would force
|
|
819
|
-
* anyone compiling against @angular/upgrade to provide the @types/trusted-types
|
|
820
|
-
* package in their compilation unit.
|
|
821
|
-
*
|
|
822
|
-
* Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
|
|
823
|
-
* will keep Angular's public API surface free of references to Trusted Types.
|
|
824
|
-
* For internal and semi-private APIs that need to reference Trusted Types, the
|
|
825
|
-
* minimal type definitions for the Trusted Types API provided by this module
|
|
826
|
-
* should be used instead. They are marked as "declare" to prevent them from
|
|
827
|
-
* being renamed by compiler optimization.
|
|
828
|
-
*
|
|
829
|
-
* Adapted from
|
|
830
|
-
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
|
|
831
|
-
* but restricted to the API surface used within Angular, mimicking the approach
|
|
832
|
-
* in packages/core/src/util/security/trusted_type_defs.ts.
|
|
833
|
-
*/
|
|
834
|
-
declare type TrustedHTML = string & {
|
|
835
|
-
__brand__: 'TrustedHTML';
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
|
|
839
|
-
|
|
840
|
-
declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
|
|
841
|
-
|
|
842
|
-
declare const enum UpgradeAppType {
|
|
843
|
-
None = 0,
|
|
844
|
-
Dynamic = 1,
|
|
845
|
-
Static = 2,
|
|
846
|
-
Lite = 3
|
|
847
|
-
}
|
|
364
|
+
declare function downgradeModule<T>(moduleOrBootstrapFn: NgModuleFactory<T>): string;
|
|
848
365
|
|
|
849
366
|
/**
|
|
850
367
|
* @description
|
|
@@ -886,7 +403,7 @@ declare const enum UpgradeAppType {
|
|
|
886
403
|
* @publicApi
|
|
887
404
|
* @extensible
|
|
888
405
|
*/
|
|
889
|
-
|
|
406
|
+
declare class UpgradeComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
|
|
890
407
|
private helper;
|
|
891
408
|
private $element;
|
|
892
409
|
private $componentScope;
|
|
@@ -924,28 +441,6 @@ export declare class UpgradeComponent implements OnInit, OnChanges, DoCheck, OnD
|
|
|
924
441
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UpgradeComponent, never, never, {}, {}, never, never, true, never>;
|
|
925
442
|
}
|
|
926
443
|
|
|
927
|
-
declare class UpgradeHelper {
|
|
928
|
-
private name;
|
|
929
|
-
readonly $injector: IInjectorService;
|
|
930
|
-
readonly element: Element;
|
|
931
|
-
readonly $element: IAugmentedJQuery;
|
|
932
|
-
readonly directive: IDirective;
|
|
933
|
-
private readonly $compile;
|
|
934
|
-
private readonly $controller;
|
|
935
|
-
constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
|
|
936
|
-
static getDirective($injector: IInjectorService, name: string): IDirective;
|
|
937
|
-
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
|
|
938
|
-
buildController(controllerType: IController, $scope: IScope): any;
|
|
939
|
-
compileTemplate(template?: string | TrustedHTML): ILinkFn;
|
|
940
|
-
onDestroy($scope: IScope, controllerInstance?: any): void;
|
|
941
|
-
prepareTransclusion(): ILinkFn | undefined;
|
|
942
|
-
resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
|
|
943
|
-
private compileHtml;
|
|
944
|
-
private extractChildNodes;
|
|
945
|
-
private getDirectiveRequire;
|
|
946
|
-
private resolveRequire;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
444
|
/**
|
|
950
445
|
* @description
|
|
951
446
|
*
|
|
@@ -1070,7 +565,7 @@ declare class UpgradeHelper {
|
|
|
1070
565
|
*
|
|
1071
566
|
* @publicApi
|
|
1072
567
|
*/
|
|
1073
|
-
|
|
568
|
+
declare class UpgradeModule {
|
|
1074
569
|
/** The bootstrap zone for the upgrade application */
|
|
1075
570
|
ngZone: NgZone;
|
|
1076
571
|
/**
|
|
@@ -1110,125 +605,202 @@ export declare class UpgradeModule {
|
|
|
1110
605
|
static ɵinj: i0.ɵɵInjectorDeclaration<UpgradeModule>;
|
|
1111
606
|
}
|
|
1112
607
|
|
|
1113
|
-
declare
|
|
608
|
+
declare const $COMPILE = "$compile";
|
|
609
|
+
declare const $CONTROLLER = "$controller";
|
|
610
|
+
declare const $DELEGATE = "$delegate";
|
|
611
|
+
declare const $EXCEPTION_HANDLER = "$exceptionHandler";
|
|
612
|
+
declare const $HTTP_BACKEND = "$httpBackend";
|
|
613
|
+
declare const $INJECTOR = "$injector";
|
|
614
|
+
declare const $INTERVAL = "$interval";
|
|
615
|
+
declare const $PARSE = "$parse";
|
|
616
|
+
declare const $PROVIDE = "$provide";
|
|
617
|
+
declare const $ROOT_ELEMENT = "$rootElement";
|
|
618
|
+
declare const $ROOT_SCOPE = "$rootScope";
|
|
619
|
+
declare const $SCOPE = "$scope";
|
|
620
|
+
declare const $TEMPLATE_CACHE = "$templateCache";
|
|
621
|
+
declare const $TEMPLATE_REQUEST = "$templateRequest";
|
|
622
|
+
declare const $$TESTABILITY = "$$testability";
|
|
623
|
+
declare const COMPILER_KEY = "$$angularCompiler";
|
|
624
|
+
declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
|
|
625
|
+
declare const GROUP_PROJECTABLE_NODES_KEY = "$$angularGroupProjectableNodes";
|
|
626
|
+
declare const INJECTOR_KEY = "$$angularInjector";
|
|
627
|
+
declare const LAZY_MODULE_REF = "$$angularLazyModuleRef";
|
|
628
|
+
declare const NG_ZONE_KEY = "$$angularNgZone";
|
|
629
|
+
declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
|
|
630
|
+
declare const REQUIRE_INJECTOR: string;
|
|
631
|
+
declare const REQUIRE_NG_MODEL = "?ngModel";
|
|
632
|
+
declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
|
|
633
|
+
|
|
634
|
+
declare const constants_d_$$TESTABILITY: typeof $$TESTABILITY;
|
|
635
|
+
declare const constants_d_$COMPILE: typeof $COMPILE;
|
|
636
|
+
declare const constants_d_$CONTROLLER: typeof $CONTROLLER;
|
|
637
|
+
declare const constants_d_$DELEGATE: typeof $DELEGATE;
|
|
638
|
+
declare const constants_d_$EXCEPTION_HANDLER: typeof $EXCEPTION_HANDLER;
|
|
639
|
+
declare const constants_d_$HTTP_BACKEND: typeof $HTTP_BACKEND;
|
|
640
|
+
declare const constants_d_$INJECTOR: typeof $INJECTOR;
|
|
641
|
+
declare const constants_d_$INTERVAL: typeof $INTERVAL;
|
|
642
|
+
declare const constants_d_$PARSE: typeof $PARSE;
|
|
643
|
+
declare const constants_d_$PROVIDE: typeof $PROVIDE;
|
|
644
|
+
declare const constants_d_$ROOT_ELEMENT: typeof $ROOT_ELEMENT;
|
|
645
|
+
declare const constants_d_$ROOT_SCOPE: typeof $ROOT_SCOPE;
|
|
646
|
+
declare const constants_d_$SCOPE: typeof $SCOPE;
|
|
647
|
+
declare const constants_d_$TEMPLATE_CACHE: typeof $TEMPLATE_CACHE;
|
|
648
|
+
declare const constants_d_$TEMPLATE_REQUEST: typeof $TEMPLATE_REQUEST;
|
|
649
|
+
declare const constants_d_COMPILER_KEY: typeof COMPILER_KEY;
|
|
650
|
+
declare const constants_d_DOWNGRADED_MODULE_COUNT_KEY: typeof DOWNGRADED_MODULE_COUNT_KEY;
|
|
651
|
+
declare const constants_d_GROUP_PROJECTABLE_NODES_KEY: typeof GROUP_PROJECTABLE_NODES_KEY;
|
|
652
|
+
declare const constants_d_INJECTOR_KEY: typeof INJECTOR_KEY;
|
|
653
|
+
declare const constants_d_LAZY_MODULE_REF: typeof LAZY_MODULE_REF;
|
|
654
|
+
declare const constants_d_NG_ZONE_KEY: typeof NG_ZONE_KEY;
|
|
655
|
+
declare const constants_d_REQUIRE_INJECTOR: typeof REQUIRE_INJECTOR;
|
|
656
|
+
declare const constants_d_REQUIRE_NG_MODEL: typeof REQUIRE_NG_MODEL;
|
|
657
|
+
declare const constants_d_UPGRADE_APP_TYPE_KEY: typeof UPGRADE_APP_TYPE_KEY;
|
|
658
|
+
declare const constants_d_UPGRADE_MODULE_NAME: typeof UPGRADE_MODULE_NAME;
|
|
659
|
+
declare namespace constants_d {
|
|
660
|
+
export { constants_d_$$TESTABILITY as $$TESTABILITY, constants_d_$COMPILE as $COMPILE, constants_d_$CONTROLLER as $CONTROLLER, constants_d_$DELEGATE as $DELEGATE, constants_d_$EXCEPTION_HANDLER as $EXCEPTION_HANDLER, constants_d_$HTTP_BACKEND as $HTTP_BACKEND, constants_d_$INJECTOR as $INJECTOR, constants_d_$INTERVAL as $INTERVAL, constants_d_$PARSE as $PARSE, constants_d_$PROVIDE as $PROVIDE, constants_d_$ROOT_ELEMENT as $ROOT_ELEMENT, constants_d_$ROOT_SCOPE as $ROOT_SCOPE, constants_d_$SCOPE as $SCOPE, constants_d_$TEMPLATE_CACHE as $TEMPLATE_CACHE, constants_d_$TEMPLATE_REQUEST as $TEMPLATE_REQUEST, constants_d_COMPILER_KEY as COMPILER_KEY, constants_d_DOWNGRADED_MODULE_COUNT_KEY as DOWNGRADED_MODULE_COUNT_KEY, constants_d_GROUP_PROJECTABLE_NODES_KEY as GROUP_PROJECTABLE_NODES_KEY, constants_d_INJECTOR_KEY as INJECTOR_KEY, constants_d_LAZY_MODULE_REF as LAZY_MODULE_REF, constants_d_NG_ZONE_KEY as NG_ZONE_KEY, constants_d_REQUIRE_INJECTOR as REQUIRE_INJECTOR, constants_d_REQUIRE_NG_MODEL as REQUIRE_NG_MODEL, constants_d_UPGRADE_APP_TYPE_KEY as UPGRADE_APP_TYPE_KEY, constants_d_UPGRADE_MODULE_NAME as UPGRADE_MODULE_NAME };
|
|
661
|
+
}
|
|
1114
662
|
|
|
1115
663
|
/**
|
|
1116
|
-
* @
|
|
664
|
+
* @fileoverview
|
|
665
|
+
* While Angular only uses Trusted Types internally for the time being,
|
|
666
|
+
* references to Trusted Types could leak into our public API, which would force
|
|
667
|
+
* anyone compiling against @angular/upgrade to provide the @types/trusted-types
|
|
668
|
+
* package in their compilation unit.
|
|
669
|
+
*
|
|
670
|
+
* Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
|
|
671
|
+
* will keep Angular's public API surface free of references to Trusted Types.
|
|
672
|
+
* For internal and semi-private APIs that need to reference Trusted Types, the
|
|
673
|
+
* minimal type definitions for the Trusted Types API provided by this module
|
|
674
|
+
* should be used instead. They are marked as "declare" to prevent them from
|
|
675
|
+
* being renamed by compiler optimization.
|
|
676
|
+
*
|
|
677
|
+
* Adapted from
|
|
678
|
+
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
|
|
679
|
+
* but restricted to the API surface used within Angular, mimicking the approach
|
|
680
|
+
* in packages/core/src/util/security/trusted_type_defs.ts.
|
|
1117
681
|
*/
|
|
1118
|
-
|
|
682
|
+
type TrustedHTML = string & {
|
|
683
|
+
__brand__: 'TrustedHTML';
|
|
684
|
+
};
|
|
1119
685
|
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
getAngularLib,
|
|
1124
|
-
setAngularJSGlobal,
|
|
1125
|
-
getAngularJSGlobal,
|
|
1126
|
-
Ng1Token,
|
|
1127
|
-
Ng1Expression,
|
|
1128
|
-
IAnnotatedFunction,
|
|
1129
|
-
IInjectable,
|
|
1130
|
-
SingleOrListOrMap,
|
|
1131
|
-
IModule,
|
|
1132
|
-
ICompileService,
|
|
1133
|
-
ILinkFn,
|
|
1134
|
-
ILinkFnOptions,
|
|
1135
|
-
IRootScopeService,
|
|
1136
|
-
IScope,
|
|
1137
|
-
IAngularBootstrapConfig,
|
|
1138
|
-
IDirective,
|
|
1139
|
-
DirectiveRequireProperty,
|
|
1140
|
-
DirectiveTranscludeProperty,
|
|
1141
|
-
IDirectiveCompileFn,
|
|
1142
|
-
IDirectivePrePost,
|
|
1143
|
-
IDirectiveLinkFn,
|
|
1144
|
-
IComponent,
|
|
1145
|
-
IAttributes,
|
|
1146
|
-
ITranscludeFunction,
|
|
1147
|
-
ICloneAttachFunction,
|
|
1148
|
-
IAugmentedJQuery,
|
|
1149
|
-
IProvider,
|
|
1150
|
-
IProvideService,
|
|
1151
|
-
IParseService,
|
|
1152
|
-
ICompiledExpression,
|
|
1153
|
-
IHttpBackendService,
|
|
1154
|
-
ICacheObject,
|
|
1155
|
-
ITemplateCacheService,
|
|
1156
|
-
IController,
|
|
1157
|
-
IControllerService,
|
|
1158
|
-
IInjectorService,
|
|
1159
|
-
IIntervalService,
|
|
1160
|
-
ITestabilityService,
|
|
1161
|
-
INgModelController,
|
|
1162
|
-
bootstrap,
|
|
1163
|
-
module_,
|
|
1164
|
-
element,
|
|
1165
|
-
injector,
|
|
1166
|
-
resumeBootstrap,
|
|
1167
|
-
getTestability
|
|
1168
|
-
}
|
|
686
|
+
interface IBindingDestination {
|
|
687
|
+
[key: string]: any;
|
|
688
|
+
$onChanges?: (changes: SimpleChanges) => void;
|
|
1169
689
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
REQUIRE_INJECTOR,
|
|
1197
|
-
REQUIRE_NG_MODEL,
|
|
1198
|
-
UPGRADE_MODULE_NAME
|
|
1199
|
-
}
|
|
690
|
+
interface IControllerInstance extends IBindingDestination {
|
|
691
|
+
$doCheck?: () => void;
|
|
692
|
+
$onDestroy?: () => void;
|
|
693
|
+
$onInit?: () => void;
|
|
694
|
+
$postLink?: () => void;
|
|
695
|
+
}
|
|
696
|
+
declare class UpgradeHelper {
|
|
697
|
+
private name;
|
|
698
|
+
readonly $injector: IInjectorService;
|
|
699
|
+
readonly element: Element;
|
|
700
|
+
readonly $element: IAugmentedJQuery;
|
|
701
|
+
readonly directive: IDirective;
|
|
702
|
+
private readonly $compile;
|
|
703
|
+
private readonly $controller;
|
|
704
|
+
constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
|
|
705
|
+
static getDirective($injector: IInjectorService, name: string): IDirective;
|
|
706
|
+
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
|
|
707
|
+
buildController(controllerType: IController, $scope: IScope): any;
|
|
708
|
+
compileTemplate(template?: string | TrustedHTML): ILinkFn;
|
|
709
|
+
onDestroy($scope: IScope, controllerInstance?: any): void;
|
|
710
|
+
prepareTransclusion(): ILinkFn | undefined;
|
|
711
|
+
resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
|
|
712
|
+
private compileHtml;
|
|
713
|
+
private extractChildNodes;
|
|
714
|
+
private getDirectiveRequire;
|
|
715
|
+
private resolveRequire;
|
|
1200
716
|
}
|
|
1201
|
-
export { ɵconstants }
|
|
1202
717
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
718
|
+
type upgrade_helper_d_IBindingDestination = IBindingDestination;
|
|
719
|
+
type upgrade_helper_d_IControllerInstance = IControllerInstance;
|
|
720
|
+
type upgrade_helper_d_UpgradeHelper = UpgradeHelper;
|
|
721
|
+
declare const upgrade_helper_d_UpgradeHelper: typeof UpgradeHelper;
|
|
722
|
+
declare namespace upgrade_helper_d {
|
|
723
|
+
export { type upgrade_helper_d_IBindingDestination as IBindingDestination, type upgrade_helper_d_IControllerInstance as IControllerInstance, upgrade_helper_d_UpgradeHelper as UpgradeHelper };
|
|
1209
724
|
}
|
|
1210
|
-
export { ɵupgradeHelper }
|
|
1211
725
|
|
|
1212
|
-
declare
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
726
|
+
declare function onError(e: any): void;
|
|
727
|
+
/**
|
|
728
|
+
* Clean the jqLite/jQuery data on the element and all its descendants.
|
|
729
|
+
* Equivalent to how jqLite/jQuery invoke `cleanData()` on an Element when removed:
|
|
730
|
+
* https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/jqLite.js#L349-L355
|
|
731
|
+
* https://github.com/jquery/jquery/blob/6984d1747623dbc5e87fd6c261a5b6b1628c107c/src/manipulation.js#L182
|
|
732
|
+
*
|
|
733
|
+
* NOTE:
|
|
734
|
+
* `cleanData()` will also invoke the AngularJS `$destroy` DOM event on the element:
|
|
735
|
+
* https://github.com/angular/angular.js/blob/2e72ea13fa98bebf6ed4b5e3c45eaf5f990ed16f/src/Angular.js#L1932-L1945
|
|
736
|
+
*
|
|
737
|
+
* @param node The DOM node whose data needs to be cleaned.
|
|
738
|
+
*/
|
|
739
|
+
declare function cleanData(node: Node): void;
|
|
740
|
+
declare function controllerKey(name: string): string;
|
|
741
|
+
/**
|
|
742
|
+
* Destroy an AngularJS app given the app `$injector`.
|
|
743
|
+
*
|
|
744
|
+
* NOTE: Destroying an app is not officially supported by AngularJS, but try to do our best by
|
|
745
|
+
* destroying `$rootScope` and clean the jqLite/jQuery data on `$rootElement` and all
|
|
746
|
+
* descendants.
|
|
747
|
+
*
|
|
748
|
+
* @param $injector The `$injector` of the AngularJS app to destroy.
|
|
749
|
+
*/
|
|
750
|
+
declare function destroyApp($injector: IInjectorService): void;
|
|
751
|
+
declare function directiveNormalize(name: string): string;
|
|
752
|
+
declare function getTypeName(type: Type<any>): string;
|
|
753
|
+
declare function getDowngradedModuleCount($injector: IInjectorService): number;
|
|
754
|
+
declare function getUpgradeAppType($injector: IInjectorService): UpgradeAppType;
|
|
755
|
+
declare function isFunction(value: any): value is Function;
|
|
756
|
+
declare function isNgModuleType(value: any): value is Type<unknown>;
|
|
757
|
+
declare function validateInjectionKey($injector: IInjectorService, downgradedModule: string, injectionKey: string, attemptedAction: string): void;
|
|
758
|
+
declare class Deferred<R> {
|
|
759
|
+
promise: Promise<R>;
|
|
760
|
+
resolve: (value: R | PromiseLike<R>) => void;
|
|
761
|
+
reject: (error?: any) => void;
|
|
762
|
+
constructor();
|
|
1231
763
|
}
|
|
1232
|
-
|
|
764
|
+
interface LazyModuleRef {
|
|
765
|
+
injector?: Injector;
|
|
766
|
+
promise?: Promise<Injector>;
|
|
767
|
+
}
|
|
768
|
+
declare const enum UpgradeAppType {
|
|
769
|
+
None = 0,
|
|
770
|
+
Dynamic = 1,
|
|
771
|
+
Static = 2,
|
|
772
|
+
Lite = 3
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Glue the AngularJS `NgModelController` (if it exists) to the component
|
|
776
|
+
* (if it implements the needed subset of the `ControlValueAccessor` interface).
|
|
777
|
+
*/
|
|
778
|
+
declare function hookupNgModel(ngModel: INgModelController, component: any): void;
|
|
779
|
+
/**
|
|
780
|
+
* Test two values for strict equality, accounting for the fact that `NaN !== NaN`.
|
|
781
|
+
*/
|
|
782
|
+
declare function strictEquals(val1: any, val2: any): boolean;
|
|
1233
783
|
|
|
1234
|
-
|
|
784
|
+
type util_d_Deferred<R> = Deferred<R>;
|
|
785
|
+
declare const util_d_Deferred: typeof Deferred;
|
|
786
|
+
type util_d_LazyModuleRef = LazyModuleRef;
|
|
787
|
+
type util_d_UpgradeAppType = UpgradeAppType;
|
|
788
|
+
declare const util_d_UpgradeAppType: typeof UpgradeAppType;
|
|
789
|
+
declare const util_d_cleanData: typeof cleanData;
|
|
790
|
+
declare const util_d_controllerKey: typeof controllerKey;
|
|
791
|
+
declare const util_d_destroyApp: typeof destroyApp;
|
|
792
|
+
declare const util_d_directiveNormalize: typeof directiveNormalize;
|
|
793
|
+
declare const util_d_getDowngradedModuleCount: typeof getDowngradedModuleCount;
|
|
794
|
+
declare const util_d_getTypeName: typeof getTypeName;
|
|
795
|
+
declare const util_d_getUpgradeAppType: typeof getUpgradeAppType;
|
|
796
|
+
declare const util_d_hookupNgModel: typeof hookupNgModel;
|
|
797
|
+
declare const util_d_isFunction: typeof isFunction;
|
|
798
|
+
declare const util_d_isNgModuleType: typeof isNgModuleType;
|
|
799
|
+
declare const util_d_onError: typeof onError;
|
|
800
|
+
declare const util_d_strictEquals: typeof strictEquals;
|
|
801
|
+
declare const util_d_validateInjectionKey: typeof validateInjectionKey;
|
|
802
|
+
declare namespace util_d {
|
|
803
|
+
export { util_d_Deferred as Deferred, type util_d_LazyModuleRef as LazyModuleRef, 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 };
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export { UpgradeComponent, UpgradeModule, downgradeComponent, downgradeInjectable, downgradeModule, constants_d as ɵconstants, upgrade_helper_d as ɵupgradeHelper, util_d as ɵutil };
|