@angular/upgrade 21.0.0-next.0 → 21.0.0-next.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/fesm2022/constants.mjs +2 -2
- package/fesm2022/constants.mjs.map +1 -1
- package/fesm2022/static/testing.mjs +1 -1
- package/fesm2022/static/testing.mjs.map +1 -1
- package/fesm2022/static.mjs +1090 -6
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +7 -873
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +8 -419
- package/package.json +5 -5
- package/static/index.d.ts +318 -4
- package/static/testing/index.d.ts +1 -1
- package/angular1.d.d.ts +0 -336
- package/fesm2022/upgrade_helper.mjs +0 -1106
- package/fesm2022/upgrade_helper.mjs.map +0 -1
package/static/index.d.ts
CHANGED
|
@@ -1,13 +1,327 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { IInjectorService, IAugmentedJQuery, IDirective, IController, IScope, ILinkFn, SingleOrListOrMap, INgModelController } from '../angular1.d.js';
|
|
8
|
-
export { VERSION, getAngularJSGlobal, getAngularLib, setAngularJSGlobal, setAngularLib, angular1_d as ɵangular1 } from '../angular1.d.js';
|
|
9
7
|
import * as i0 from '@angular/core';
|
|
10
8
|
import { Type, StaticProvider, NgModuleRef, NgModuleFactory, OnInit, OnChanges, DoCheck, OnDestroy, ElementRef, Injector, SimpleChanges, NgZone, PlatformRef } from '@angular/core';
|
|
9
|
+
export { VERSION } from '../index.js';
|
|
10
|
+
|
|
11
|
+
type Ng1Token = string;
|
|
12
|
+
type Ng1Expression = string | Function;
|
|
13
|
+
interface IAnnotatedFunction extends Function {
|
|
14
|
+
$inject?: Function extends {
|
|
15
|
+
$inject?: string[];
|
|
16
|
+
} ? Ng1Token[] : ReadonlyArray<Ng1Token>;
|
|
17
|
+
}
|
|
18
|
+
type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;
|
|
19
|
+
type SingleOrListOrMap<T> = T | T[] | {
|
|
20
|
+
[key: string]: T;
|
|
21
|
+
};
|
|
22
|
+
interface IModule {
|
|
23
|
+
name: string;
|
|
24
|
+
requires: (string | IInjectable)[];
|
|
25
|
+
config(fn: IInjectable): IModule;
|
|
26
|
+
directive(selector: string, factory: IInjectable): IModule;
|
|
27
|
+
component(selector: string, component: IComponent): IModule;
|
|
28
|
+
controller(name: string, type: IInjectable): IModule;
|
|
29
|
+
factory(key: Ng1Token, factoryFn: IInjectable): IModule;
|
|
30
|
+
value(key: Ng1Token, value: any): IModule;
|
|
31
|
+
constant(token: Ng1Token, value: any): IModule;
|
|
32
|
+
run(a: IInjectable): IModule;
|
|
33
|
+
}
|
|
34
|
+
interface ICompileService {
|
|
35
|
+
(element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;
|
|
36
|
+
}
|
|
37
|
+
interface ILinkFn {
|
|
38
|
+
(scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;
|
|
39
|
+
$$slots?: {
|
|
40
|
+
[slotName: string]: ILinkFn;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface ILinkFnOptions {
|
|
44
|
+
parentBoundTranscludeFn?: Function;
|
|
45
|
+
transcludeControllers?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
futureParentElement?: Node;
|
|
49
|
+
}
|
|
50
|
+
interface IRootScopeService {
|
|
51
|
+
$new(isolate?: boolean): IScope;
|
|
52
|
+
$id: string;
|
|
53
|
+
$parent: IScope;
|
|
54
|
+
$root: IScope;
|
|
55
|
+
$watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;
|
|
56
|
+
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
57
|
+
$destroy(): any;
|
|
58
|
+
$apply(exp?: Ng1Expression): any;
|
|
59
|
+
$digest(): any;
|
|
60
|
+
$evalAsync(exp: Ng1Expression, locals?: any): void;
|
|
61
|
+
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
62
|
+
$$childTail: IScope;
|
|
63
|
+
$$childHead: IScope;
|
|
64
|
+
$$nextSibling: IScope;
|
|
65
|
+
$$phase: any;
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}
|
|
68
|
+
interface IScope extends IRootScopeService {
|
|
69
|
+
}
|
|
70
|
+
interface IAngularBootstrapConfig {
|
|
71
|
+
strictDi?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface IDirective {
|
|
74
|
+
compile?: IDirectiveCompileFn;
|
|
75
|
+
controller?: IController;
|
|
76
|
+
controllerAs?: string;
|
|
77
|
+
bindToController?: boolean | {
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
};
|
|
80
|
+
link?: IDirectiveLinkFn | IDirectivePrePost;
|
|
81
|
+
name?: string;
|
|
82
|
+
priority?: number;
|
|
83
|
+
replace?: boolean;
|
|
84
|
+
require?: DirectiveRequireProperty;
|
|
85
|
+
restrict?: string;
|
|
86
|
+
scope?: boolean | {
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
};
|
|
89
|
+
template?: string | Function;
|
|
90
|
+
templateUrl?: string | Function;
|
|
91
|
+
templateNamespace?: string;
|
|
92
|
+
terminal?: boolean;
|
|
93
|
+
transclude?: DirectiveTranscludeProperty;
|
|
94
|
+
}
|
|
95
|
+
type DirectiveRequireProperty = SingleOrListOrMap<string>;
|
|
96
|
+
type DirectiveTranscludeProperty = boolean | 'element' | {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
interface IDirectiveCompileFn {
|
|
100
|
+
(templateElement: IAugmentedJQuery, templateAttributes: IAttributes, transclude: ITranscludeFunction): IDirectivePrePost;
|
|
101
|
+
}
|
|
102
|
+
interface IDirectivePrePost {
|
|
103
|
+
pre?: IDirectiveLinkFn;
|
|
104
|
+
post?: IDirectiveLinkFn;
|
|
105
|
+
}
|
|
106
|
+
interface IDirectiveLinkFn {
|
|
107
|
+
(scope: IScope, instanceElement: IAugmentedJQuery, instanceAttributes: IAttributes, controller: any, transclude: ITranscludeFunction): void;
|
|
108
|
+
}
|
|
109
|
+
interface IComponent {
|
|
110
|
+
bindings?: {
|
|
111
|
+
[key: string]: string;
|
|
112
|
+
};
|
|
113
|
+
controller?: string | IInjectable;
|
|
114
|
+
controllerAs?: string;
|
|
115
|
+
require?: DirectiveRequireProperty;
|
|
116
|
+
template?: string | Function;
|
|
117
|
+
templateUrl?: string | Function;
|
|
118
|
+
transclude?: DirectiveTranscludeProperty;
|
|
119
|
+
}
|
|
120
|
+
interface IAttributes {
|
|
121
|
+
$observe(attr: string, fn: (v: string) => void): void;
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
}
|
|
124
|
+
interface ITranscludeFunction {
|
|
125
|
+
(scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;
|
|
126
|
+
(cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;
|
|
127
|
+
}
|
|
128
|
+
interface ICloneAttachFunction {
|
|
129
|
+
(clonedElement: IAugmentedJQuery, scope: IScope): any;
|
|
130
|
+
}
|
|
131
|
+
type IAugmentedJQuery = Node[] & {
|
|
132
|
+
on?: (name: string, fn: () => void) => void;
|
|
133
|
+
data?: (name: string, value?: any) => any;
|
|
134
|
+
text?: () => string;
|
|
135
|
+
inheritedData?: (name: string, value?: any) => any;
|
|
136
|
+
children?: () => IAugmentedJQuery;
|
|
137
|
+
contents?: () => IAugmentedJQuery;
|
|
138
|
+
parent?: () => IAugmentedJQuery;
|
|
139
|
+
empty?: () => void;
|
|
140
|
+
append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;
|
|
141
|
+
controller?: (name: string) => any;
|
|
142
|
+
isolateScope?: () => IScope;
|
|
143
|
+
injector?: () => IInjectorService;
|
|
144
|
+
triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;
|
|
145
|
+
remove?: () => void;
|
|
146
|
+
removeData?: () => void;
|
|
147
|
+
};
|
|
148
|
+
interface IProvider {
|
|
149
|
+
$get: IInjectable;
|
|
150
|
+
}
|
|
151
|
+
interface IProvideService {
|
|
152
|
+
provider(token: Ng1Token, provider: IProvider): IProvider;
|
|
153
|
+
factory(token: Ng1Token, factory: IInjectable): IProvider;
|
|
154
|
+
service(token: Ng1Token, type: IInjectable): IProvider;
|
|
155
|
+
value(token: Ng1Token, value: any): IProvider;
|
|
156
|
+
constant(token: Ng1Token, value: any): void;
|
|
157
|
+
decorator(token: Ng1Token, factory: IInjectable): void;
|
|
158
|
+
}
|
|
159
|
+
interface IParseService {
|
|
160
|
+
(expression: string): ICompiledExpression;
|
|
161
|
+
}
|
|
162
|
+
interface ICompiledExpression {
|
|
163
|
+
(context: any, locals: any): any;
|
|
164
|
+
assign?: (context: any, value: any) => any;
|
|
165
|
+
}
|
|
166
|
+
interface IHttpBackendService {
|
|
167
|
+
(method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void;
|
|
168
|
+
}
|
|
169
|
+
interface ICacheObject {
|
|
170
|
+
put<T>(key: string, value?: T): T;
|
|
171
|
+
get(key: string): any;
|
|
172
|
+
}
|
|
173
|
+
interface ITemplateCacheService extends ICacheObject {
|
|
174
|
+
}
|
|
175
|
+
type IController = string | IInjectable;
|
|
176
|
+
interface IControllerService {
|
|
177
|
+
(controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;
|
|
178
|
+
(controllerName: string, locals?: any): any;
|
|
179
|
+
}
|
|
180
|
+
interface IInjectorService {
|
|
181
|
+
get(key: string): any;
|
|
182
|
+
has(key: string): boolean;
|
|
183
|
+
}
|
|
184
|
+
interface IIntervalService {
|
|
185
|
+
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): Promise<any>;
|
|
186
|
+
cancel(promise: Promise<any>): boolean;
|
|
187
|
+
}
|
|
188
|
+
interface ITestabilityService {
|
|
189
|
+
findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
190
|
+
findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
191
|
+
getLocation(): string;
|
|
192
|
+
setLocation(url: string): void;
|
|
193
|
+
whenStable(callback: Function): void;
|
|
194
|
+
}
|
|
195
|
+
interface INgModelController {
|
|
196
|
+
$render(): void;
|
|
197
|
+
$isEmpty(value: any): boolean;
|
|
198
|
+
$setValidity(validationErrorKey: string, isValid: boolean): void;
|
|
199
|
+
$setPristine(): void;
|
|
200
|
+
$setDirty(): void;
|
|
201
|
+
$setUntouched(): void;
|
|
202
|
+
$setTouched(): void;
|
|
203
|
+
$rollbackViewValue(): void;
|
|
204
|
+
$validate(): void;
|
|
205
|
+
$commitViewValue(): void;
|
|
206
|
+
$setViewValue(value: any, trigger: string): void;
|
|
207
|
+
$viewValue: any;
|
|
208
|
+
$modelValue: any;
|
|
209
|
+
$parsers: Function[];
|
|
210
|
+
$formatters: Function[];
|
|
211
|
+
$validators: {
|
|
212
|
+
[key: string]: Function;
|
|
213
|
+
};
|
|
214
|
+
$asyncValidators: {
|
|
215
|
+
[key: string]: Function;
|
|
216
|
+
};
|
|
217
|
+
$viewChangeListeners: Function[];
|
|
218
|
+
$error: Object;
|
|
219
|
+
$pending: Object;
|
|
220
|
+
$untouched: boolean;
|
|
221
|
+
$touched: boolean;
|
|
222
|
+
$pristine: boolean;
|
|
223
|
+
$dirty: boolean;
|
|
224
|
+
$valid: boolean;
|
|
225
|
+
$invalid: boolean;
|
|
226
|
+
$name: string;
|
|
227
|
+
}
|
|
228
|
+
declare let angular: {
|
|
229
|
+
bootstrap: (e: Element, modules: (string | IInjectable)[], config?: IAngularBootstrapConfig) => IInjectorService;
|
|
230
|
+
module: (prefix: string, dependencies?: string[]) => IModule;
|
|
231
|
+
element: {
|
|
232
|
+
(e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;
|
|
233
|
+
cleanData: (nodes: Node[] | NodeList) => void;
|
|
234
|
+
};
|
|
235
|
+
injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;
|
|
236
|
+
version: {
|
|
237
|
+
major: number;
|
|
238
|
+
};
|
|
239
|
+
resumeBootstrap: () => void;
|
|
240
|
+
getTestability: (e: Element) => ITestabilityService;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated Use `setAngularJSGlobal` instead.
|
|
244
|
+
*
|
|
245
|
+
* @publicApi
|
|
246
|
+
*/
|
|
247
|
+
declare function setAngularLib(ng: any): void;
|
|
248
|
+
/**
|
|
249
|
+
* @deprecated Use `getAngularJSGlobal` instead.
|
|
250
|
+
*
|
|
251
|
+
* @publicApi
|
|
252
|
+
*/
|
|
253
|
+
declare function getAngularLib(): any;
|
|
254
|
+
/**
|
|
255
|
+
* Resets the AngularJS global.
|
|
256
|
+
*
|
|
257
|
+
* Used when AngularJS is loaded lazily, and not available on `window`.
|
|
258
|
+
*
|
|
259
|
+
* @publicApi
|
|
260
|
+
*/
|
|
261
|
+
declare function setAngularJSGlobal(ng: any): void;
|
|
262
|
+
/**
|
|
263
|
+
* Returns the current AngularJS global.
|
|
264
|
+
*
|
|
265
|
+
* @publicApi
|
|
266
|
+
*/
|
|
267
|
+
declare function getAngularJSGlobal(): any;
|
|
268
|
+
declare const bootstrap: typeof angular.bootstrap;
|
|
269
|
+
declare const module_: typeof angular.module;
|
|
270
|
+
declare const element: typeof angular.element;
|
|
271
|
+
declare const injector: typeof angular.injector;
|
|
272
|
+
declare const resumeBootstrap: typeof angular.resumeBootstrap;
|
|
273
|
+
declare const getTestability: typeof angular.getTestability;
|
|
274
|
+
|
|
275
|
+
type angular1_d_DirectiveRequireProperty = DirectiveRequireProperty;
|
|
276
|
+
type angular1_d_DirectiveTranscludeProperty = DirectiveTranscludeProperty;
|
|
277
|
+
type angular1_d_IAngularBootstrapConfig = IAngularBootstrapConfig;
|
|
278
|
+
type angular1_d_IAnnotatedFunction = IAnnotatedFunction;
|
|
279
|
+
type angular1_d_IAttributes = IAttributes;
|
|
280
|
+
type angular1_d_IAugmentedJQuery = IAugmentedJQuery;
|
|
281
|
+
type angular1_d_ICacheObject = ICacheObject;
|
|
282
|
+
type angular1_d_ICloneAttachFunction = ICloneAttachFunction;
|
|
283
|
+
type angular1_d_ICompileService = ICompileService;
|
|
284
|
+
type angular1_d_ICompiledExpression = ICompiledExpression;
|
|
285
|
+
type angular1_d_IComponent = IComponent;
|
|
286
|
+
type angular1_d_IController = IController;
|
|
287
|
+
type angular1_d_IControllerService = IControllerService;
|
|
288
|
+
type angular1_d_IDirective = IDirective;
|
|
289
|
+
type angular1_d_IDirectiveCompileFn = IDirectiveCompileFn;
|
|
290
|
+
type angular1_d_IDirectiveLinkFn = IDirectiveLinkFn;
|
|
291
|
+
type angular1_d_IDirectivePrePost = IDirectivePrePost;
|
|
292
|
+
type angular1_d_IHttpBackendService = IHttpBackendService;
|
|
293
|
+
type angular1_d_IInjectable = IInjectable;
|
|
294
|
+
type angular1_d_IInjectorService = IInjectorService;
|
|
295
|
+
type angular1_d_IIntervalService = IIntervalService;
|
|
296
|
+
type angular1_d_ILinkFn = ILinkFn;
|
|
297
|
+
type angular1_d_ILinkFnOptions = ILinkFnOptions;
|
|
298
|
+
type angular1_d_IModule = IModule;
|
|
299
|
+
type angular1_d_INgModelController = INgModelController;
|
|
300
|
+
type angular1_d_IParseService = IParseService;
|
|
301
|
+
type angular1_d_IProvideService = IProvideService;
|
|
302
|
+
type angular1_d_IProvider = IProvider;
|
|
303
|
+
type angular1_d_IRootScopeService = IRootScopeService;
|
|
304
|
+
type angular1_d_IScope = IScope;
|
|
305
|
+
type angular1_d_ITemplateCacheService = ITemplateCacheService;
|
|
306
|
+
type angular1_d_ITestabilityService = ITestabilityService;
|
|
307
|
+
type angular1_d_ITranscludeFunction = ITranscludeFunction;
|
|
308
|
+
type angular1_d_Ng1Expression = Ng1Expression;
|
|
309
|
+
type angular1_d_Ng1Token = Ng1Token;
|
|
310
|
+
type angular1_d_SingleOrListOrMap<T> = SingleOrListOrMap<T>;
|
|
311
|
+
declare const angular1_d_bootstrap: typeof bootstrap;
|
|
312
|
+
declare const angular1_d_element: typeof element;
|
|
313
|
+
declare const angular1_d_getAngularJSGlobal: typeof getAngularJSGlobal;
|
|
314
|
+
declare const angular1_d_getAngularLib: typeof getAngularLib;
|
|
315
|
+
declare const angular1_d_getTestability: typeof getTestability;
|
|
316
|
+
declare const angular1_d_injector: typeof injector;
|
|
317
|
+
declare const angular1_d_module_: typeof module_;
|
|
318
|
+
declare const angular1_d_resumeBootstrap: typeof resumeBootstrap;
|
|
319
|
+
declare const angular1_d_setAngularJSGlobal: typeof setAngularJSGlobal;
|
|
320
|
+
declare const angular1_d_setAngularLib: typeof setAngularLib;
|
|
321
|
+
declare namespace angular1_d {
|
|
322
|
+
export { angular1_d_bootstrap as bootstrap, angular1_d_element as element, angular1_d_getAngularJSGlobal as getAngularJSGlobal, angular1_d_getAngularLib as getAngularLib, angular1_d_getTestability as getTestability, angular1_d_injector as injector, angular1_d_module_ as module_, angular1_d_resumeBootstrap as resumeBootstrap, angular1_d_setAngularJSGlobal as setAngularJSGlobal, angular1_d_setAngularLib as setAngularLib };
|
|
323
|
+
export type { angular1_d_DirectiveRequireProperty as DirectiveRequireProperty, angular1_d_DirectiveTranscludeProperty as DirectiveTranscludeProperty, angular1_d_IAngularBootstrapConfig as IAngularBootstrapConfig, angular1_d_IAnnotatedFunction as IAnnotatedFunction, angular1_d_IAttributes as IAttributes, angular1_d_IAugmentedJQuery as IAugmentedJQuery, angular1_d_ICacheObject as ICacheObject, angular1_d_ICloneAttachFunction as ICloneAttachFunction, angular1_d_ICompileService as ICompileService, angular1_d_ICompiledExpression as ICompiledExpression, angular1_d_IComponent as IComponent, angular1_d_IController as IController, angular1_d_IControllerService as IControllerService, angular1_d_IDirective as IDirective, angular1_d_IDirectiveCompileFn as IDirectiveCompileFn, angular1_d_IDirectiveLinkFn as IDirectiveLinkFn, angular1_d_IDirectivePrePost as IDirectivePrePost, angular1_d_IHttpBackendService as IHttpBackendService, angular1_d_IInjectable as IInjectable, angular1_d_IInjectorService as IInjectorService, angular1_d_IIntervalService as IIntervalService, angular1_d_ILinkFn as ILinkFn, angular1_d_ILinkFnOptions as ILinkFnOptions, angular1_d_IModule as IModule, angular1_d_INgModelController as INgModelController, angular1_d_IParseService as IParseService, angular1_d_IProvideService as IProvideService, angular1_d_IProvider as IProvider, angular1_d_IRootScopeService as IRootScopeService, angular1_d_IScope as IScope, angular1_d_ITemplateCacheService as ITemplateCacheService, angular1_d_ITestabilityService as ITestabilityService, angular1_d_ITranscludeFunction as ITranscludeFunction, angular1_d_Ng1Expression as Ng1Expression, angular1_d_Ng1Token as Ng1Token, angular1_d_SingleOrListOrMap as SingleOrListOrMap };
|
|
324
|
+
}
|
|
11
325
|
|
|
12
326
|
/**
|
|
13
327
|
* @description
|
|
@@ -832,4 +1146,4 @@ declare namespace util_d {
|
|
|
832
1146
|
export type { util_d_LazyModuleRef as LazyModuleRef };
|
|
833
1147
|
}
|
|
834
1148
|
|
|
835
|
-
export { UpgradeComponent, UpgradeModule, downgradeComponent, downgradeInjectable, downgradeModule, constants_d as ɵconstants, upgrade_helper_d as ɵupgradeHelper, util_d as ɵutil };
|
|
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 };
|
package/angular1.d.d.ts
DELETED
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Angular v21.0.0-next.0
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { Version } from '@angular/core';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @module
|
|
11
|
-
* @description
|
|
12
|
-
* Entry point for all public APIs of the upgrade package.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @publicApi
|
|
17
|
-
*/
|
|
18
|
-
declare const VERSION: Version;
|
|
19
|
-
|
|
20
|
-
type Ng1Token = string;
|
|
21
|
-
type Ng1Expression = string | Function;
|
|
22
|
-
interface IAnnotatedFunction extends Function {
|
|
23
|
-
$inject?: Function extends {
|
|
24
|
-
$inject?: string[];
|
|
25
|
-
} ? Ng1Token[] : ReadonlyArray<Ng1Token>;
|
|
26
|
-
}
|
|
27
|
-
type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;
|
|
28
|
-
type SingleOrListOrMap<T> = T | T[] | {
|
|
29
|
-
[key: string]: T;
|
|
30
|
-
};
|
|
31
|
-
interface IModule {
|
|
32
|
-
name: string;
|
|
33
|
-
requires: (string | IInjectable)[];
|
|
34
|
-
config(fn: IInjectable): IModule;
|
|
35
|
-
directive(selector: string, factory: IInjectable): IModule;
|
|
36
|
-
component(selector: string, component: IComponent): IModule;
|
|
37
|
-
controller(name: string, type: IInjectable): IModule;
|
|
38
|
-
factory(key: Ng1Token, factoryFn: IInjectable): IModule;
|
|
39
|
-
value(key: Ng1Token, value: any): IModule;
|
|
40
|
-
constant(token: Ng1Token, value: any): IModule;
|
|
41
|
-
run(a: IInjectable): IModule;
|
|
42
|
-
}
|
|
43
|
-
interface ICompileService {
|
|
44
|
-
(element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;
|
|
45
|
-
}
|
|
46
|
-
interface ILinkFn {
|
|
47
|
-
(scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;
|
|
48
|
-
$$slots?: {
|
|
49
|
-
[slotName: string]: ILinkFn;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
interface ILinkFnOptions {
|
|
53
|
-
parentBoundTranscludeFn?: Function;
|
|
54
|
-
transcludeControllers?: {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
};
|
|
57
|
-
futureParentElement?: Node;
|
|
58
|
-
}
|
|
59
|
-
interface IRootScopeService {
|
|
60
|
-
$new(isolate?: boolean): IScope;
|
|
61
|
-
$id: string;
|
|
62
|
-
$parent: IScope;
|
|
63
|
-
$root: IScope;
|
|
64
|
-
$watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;
|
|
65
|
-
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
66
|
-
$destroy(): any;
|
|
67
|
-
$apply(exp?: Ng1Expression): any;
|
|
68
|
-
$digest(): any;
|
|
69
|
-
$evalAsync(exp: Ng1Expression, locals?: any): void;
|
|
70
|
-
$on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;
|
|
71
|
-
$$childTail: IScope;
|
|
72
|
-
$$childHead: IScope;
|
|
73
|
-
$$nextSibling: IScope;
|
|
74
|
-
$$phase: any;
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}
|
|
77
|
-
interface IScope extends IRootScopeService {
|
|
78
|
-
}
|
|
79
|
-
interface IAngularBootstrapConfig {
|
|
80
|
-
strictDi?: boolean;
|
|
81
|
-
}
|
|
82
|
-
interface IDirective {
|
|
83
|
-
compile?: IDirectiveCompileFn;
|
|
84
|
-
controller?: IController;
|
|
85
|
-
controllerAs?: string;
|
|
86
|
-
bindToController?: boolean | {
|
|
87
|
-
[key: string]: string;
|
|
88
|
-
};
|
|
89
|
-
link?: IDirectiveLinkFn | IDirectivePrePost;
|
|
90
|
-
name?: string;
|
|
91
|
-
priority?: number;
|
|
92
|
-
replace?: boolean;
|
|
93
|
-
require?: DirectiveRequireProperty;
|
|
94
|
-
restrict?: string;
|
|
95
|
-
scope?: boolean | {
|
|
96
|
-
[key: string]: string;
|
|
97
|
-
};
|
|
98
|
-
template?: string | Function;
|
|
99
|
-
templateUrl?: string | Function;
|
|
100
|
-
templateNamespace?: string;
|
|
101
|
-
terminal?: boolean;
|
|
102
|
-
transclude?: DirectiveTranscludeProperty;
|
|
103
|
-
}
|
|
104
|
-
type DirectiveRequireProperty = SingleOrListOrMap<string>;
|
|
105
|
-
type DirectiveTranscludeProperty = boolean | 'element' | {
|
|
106
|
-
[key: string]: string;
|
|
107
|
-
};
|
|
108
|
-
interface IDirectiveCompileFn {
|
|
109
|
-
(templateElement: IAugmentedJQuery, templateAttributes: IAttributes, transclude: ITranscludeFunction): IDirectivePrePost;
|
|
110
|
-
}
|
|
111
|
-
interface IDirectivePrePost {
|
|
112
|
-
pre?: IDirectiveLinkFn;
|
|
113
|
-
post?: IDirectiveLinkFn;
|
|
114
|
-
}
|
|
115
|
-
interface IDirectiveLinkFn {
|
|
116
|
-
(scope: IScope, instanceElement: IAugmentedJQuery, instanceAttributes: IAttributes, controller: any, transclude: ITranscludeFunction): void;
|
|
117
|
-
}
|
|
118
|
-
interface IComponent {
|
|
119
|
-
bindings?: {
|
|
120
|
-
[key: string]: string;
|
|
121
|
-
};
|
|
122
|
-
controller?: string | IInjectable;
|
|
123
|
-
controllerAs?: string;
|
|
124
|
-
require?: DirectiveRequireProperty;
|
|
125
|
-
template?: string | Function;
|
|
126
|
-
templateUrl?: string | Function;
|
|
127
|
-
transclude?: DirectiveTranscludeProperty;
|
|
128
|
-
}
|
|
129
|
-
interface IAttributes {
|
|
130
|
-
$observe(attr: string, fn: (v: string) => void): void;
|
|
131
|
-
[key: string]: any;
|
|
132
|
-
}
|
|
133
|
-
interface ITranscludeFunction {
|
|
134
|
-
(scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;
|
|
135
|
-
(cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;
|
|
136
|
-
}
|
|
137
|
-
interface ICloneAttachFunction {
|
|
138
|
-
(clonedElement: IAugmentedJQuery, scope: IScope): any;
|
|
139
|
-
}
|
|
140
|
-
type IAugmentedJQuery = Node[] & {
|
|
141
|
-
on?: (name: string, fn: () => void) => void;
|
|
142
|
-
data?: (name: string, value?: any) => any;
|
|
143
|
-
text?: () => string;
|
|
144
|
-
inheritedData?: (name: string, value?: any) => any;
|
|
145
|
-
children?: () => IAugmentedJQuery;
|
|
146
|
-
contents?: () => IAugmentedJQuery;
|
|
147
|
-
parent?: () => IAugmentedJQuery;
|
|
148
|
-
empty?: () => void;
|
|
149
|
-
append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;
|
|
150
|
-
controller?: (name: string) => any;
|
|
151
|
-
isolateScope?: () => IScope;
|
|
152
|
-
injector?: () => IInjectorService;
|
|
153
|
-
triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;
|
|
154
|
-
remove?: () => void;
|
|
155
|
-
removeData?: () => void;
|
|
156
|
-
};
|
|
157
|
-
interface IProvider {
|
|
158
|
-
$get: IInjectable;
|
|
159
|
-
}
|
|
160
|
-
interface IProvideService {
|
|
161
|
-
provider(token: Ng1Token, provider: IProvider): IProvider;
|
|
162
|
-
factory(token: Ng1Token, factory: IInjectable): IProvider;
|
|
163
|
-
service(token: Ng1Token, type: IInjectable): IProvider;
|
|
164
|
-
value(token: Ng1Token, value: any): IProvider;
|
|
165
|
-
constant(token: Ng1Token, value: any): void;
|
|
166
|
-
decorator(token: Ng1Token, factory: IInjectable): void;
|
|
167
|
-
}
|
|
168
|
-
interface IParseService {
|
|
169
|
-
(expression: string): ICompiledExpression;
|
|
170
|
-
}
|
|
171
|
-
interface ICompiledExpression {
|
|
172
|
-
(context: any, locals: any): any;
|
|
173
|
-
assign?: (context: any, value: any) => any;
|
|
174
|
-
}
|
|
175
|
-
interface IHttpBackendService {
|
|
176
|
-
(method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void;
|
|
177
|
-
}
|
|
178
|
-
interface ICacheObject {
|
|
179
|
-
put<T>(key: string, value?: T): T;
|
|
180
|
-
get(key: string): any;
|
|
181
|
-
}
|
|
182
|
-
interface ITemplateCacheService extends ICacheObject {
|
|
183
|
-
}
|
|
184
|
-
type IController = string | IInjectable;
|
|
185
|
-
interface IControllerService {
|
|
186
|
-
(controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;
|
|
187
|
-
(controllerName: string, locals?: any): any;
|
|
188
|
-
}
|
|
189
|
-
interface IInjectorService {
|
|
190
|
-
get(key: string): any;
|
|
191
|
-
has(key: string): boolean;
|
|
192
|
-
}
|
|
193
|
-
interface IIntervalService {
|
|
194
|
-
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): Promise<any>;
|
|
195
|
-
cancel(promise: Promise<any>): boolean;
|
|
196
|
-
}
|
|
197
|
-
interface ITestabilityService {
|
|
198
|
-
findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
199
|
-
findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];
|
|
200
|
-
getLocation(): string;
|
|
201
|
-
setLocation(url: string): void;
|
|
202
|
-
whenStable(callback: Function): void;
|
|
203
|
-
}
|
|
204
|
-
interface INgModelController {
|
|
205
|
-
$render(): void;
|
|
206
|
-
$isEmpty(value: any): boolean;
|
|
207
|
-
$setValidity(validationErrorKey: string, isValid: boolean): void;
|
|
208
|
-
$setPristine(): void;
|
|
209
|
-
$setDirty(): void;
|
|
210
|
-
$setUntouched(): void;
|
|
211
|
-
$setTouched(): void;
|
|
212
|
-
$rollbackViewValue(): void;
|
|
213
|
-
$validate(): void;
|
|
214
|
-
$commitViewValue(): void;
|
|
215
|
-
$setViewValue(value: any, trigger: string): void;
|
|
216
|
-
$viewValue: any;
|
|
217
|
-
$modelValue: any;
|
|
218
|
-
$parsers: Function[];
|
|
219
|
-
$formatters: Function[];
|
|
220
|
-
$validators: {
|
|
221
|
-
[key: string]: Function;
|
|
222
|
-
};
|
|
223
|
-
$asyncValidators: {
|
|
224
|
-
[key: string]: Function;
|
|
225
|
-
};
|
|
226
|
-
$viewChangeListeners: Function[];
|
|
227
|
-
$error: Object;
|
|
228
|
-
$pending: Object;
|
|
229
|
-
$untouched: boolean;
|
|
230
|
-
$touched: boolean;
|
|
231
|
-
$pristine: boolean;
|
|
232
|
-
$dirty: boolean;
|
|
233
|
-
$valid: boolean;
|
|
234
|
-
$invalid: boolean;
|
|
235
|
-
$name: string;
|
|
236
|
-
}
|
|
237
|
-
declare let angular: {
|
|
238
|
-
bootstrap: (e: Element, modules: (string | IInjectable)[], config?: IAngularBootstrapConfig) => IInjectorService;
|
|
239
|
-
module: (prefix: string, dependencies?: string[]) => IModule;
|
|
240
|
-
element: {
|
|
241
|
-
(e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;
|
|
242
|
-
cleanData: (nodes: Node[] | NodeList) => void;
|
|
243
|
-
};
|
|
244
|
-
injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;
|
|
245
|
-
version: {
|
|
246
|
-
major: number;
|
|
247
|
-
};
|
|
248
|
-
resumeBootstrap: () => void;
|
|
249
|
-
getTestability: (e: Element) => ITestabilityService;
|
|
250
|
-
};
|
|
251
|
-
/**
|
|
252
|
-
* @deprecated Use `setAngularJSGlobal` instead.
|
|
253
|
-
*
|
|
254
|
-
* @publicApi
|
|
255
|
-
*/
|
|
256
|
-
declare function setAngularLib(ng: any): void;
|
|
257
|
-
/**
|
|
258
|
-
* @deprecated Use `getAngularJSGlobal` instead.
|
|
259
|
-
*
|
|
260
|
-
* @publicApi
|
|
261
|
-
*/
|
|
262
|
-
declare function getAngularLib(): any;
|
|
263
|
-
/**
|
|
264
|
-
* Resets the AngularJS global.
|
|
265
|
-
*
|
|
266
|
-
* Used when AngularJS is loaded lazily, and not available on `window`.
|
|
267
|
-
*
|
|
268
|
-
* @publicApi
|
|
269
|
-
*/
|
|
270
|
-
declare function setAngularJSGlobal(ng: any): void;
|
|
271
|
-
/**
|
|
272
|
-
* Returns the current AngularJS global.
|
|
273
|
-
*
|
|
274
|
-
* @publicApi
|
|
275
|
-
*/
|
|
276
|
-
declare function getAngularJSGlobal(): any;
|
|
277
|
-
declare const bootstrap: typeof angular.bootstrap;
|
|
278
|
-
declare const module_: typeof angular.module;
|
|
279
|
-
declare const element: typeof angular.element;
|
|
280
|
-
declare const injector: typeof angular.injector;
|
|
281
|
-
declare const resumeBootstrap: typeof angular.resumeBootstrap;
|
|
282
|
-
declare const getTestability: typeof angular.getTestability;
|
|
283
|
-
|
|
284
|
-
type angular1_d_DirectiveRequireProperty = DirectiveRequireProperty;
|
|
285
|
-
type angular1_d_DirectiveTranscludeProperty = DirectiveTranscludeProperty;
|
|
286
|
-
type angular1_d_IAngularBootstrapConfig = IAngularBootstrapConfig;
|
|
287
|
-
type angular1_d_IAnnotatedFunction = IAnnotatedFunction;
|
|
288
|
-
type angular1_d_IAttributes = IAttributes;
|
|
289
|
-
type angular1_d_IAugmentedJQuery = IAugmentedJQuery;
|
|
290
|
-
type angular1_d_ICacheObject = ICacheObject;
|
|
291
|
-
type angular1_d_ICloneAttachFunction = ICloneAttachFunction;
|
|
292
|
-
type angular1_d_ICompileService = ICompileService;
|
|
293
|
-
type angular1_d_ICompiledExpression = ICompiledExpression;
|
|
294
|
-
type angular1_d_IComponent = IComponent;
|
|
295
|
-
type angular1_d_IController = IController;
|
|
296
|
-
type angular1_d_IControllerService = IControllerService;
|
|
297
|
-
type angular1_d_IDirective = IDirective;
|
|
298
|
-
type angular1_d_IDirectiveCompileFn = IDirectiveCompileFn;
|
|
299
|
-
type angular1_d_IDirectiveLinkFn = IDirectiveLinkFn;
|
|
300
|
-
type angular1_d_IDirectivePrePost = IDirectivePrePost;
|
|
301
|
-
type angular1_d_IHttpBackendService = IHttpBackendService;
|
|
302
|
-
type angular1_d_IInjectable = IInjectable;
|
|
303
|
-
type angular1_d_IInjectorService = IInjectorService;
|
|
304
|
-
type angular1_d_IIntervalService = IIntervalService;
|
|
305
|
-
type angular1_d_ILinkFn = ILinkFn;
|
|
306
|
-
type angular1_d_ILinkFnOptions = ILinkFnOptions;
|
|
307
|
-
type angular1_d_IModule = IModule;
|
|
308
|
-
type angular1_d_INgModelController = INgModelController;
|
|
309
|
-
type angular1_d_IParseService = IParseService;
|
|
310
|
-
type angular1_d_IProvideService = IProvideService;
|
|
311
|
-
type angular1_d_IProvider = IProvider;
|
|
312
|
-
type angular1_d_IRootScopeService = IRootScopeService;
|
|
313
|
-
type angular1_d_IScope = IScope;
|
|
314
|
-
type angular1_d_ITemplateCacheService = ITemplateCacheService;
|
|
315
|
-
type angular1_d_ITestabilityService = ITestabilityService;
|
|
316
|
-
type angular1_d_ITranscludeFunction = ITranscludeFunction;
|
|
317
|
-
type angular1_d_Ng1Expression = Ng1Expression;
|
|
318
|
-
type angular1_d_Ng1Token = Ng1Token;
|
|
319
|
-
type angular1_d_SingleOrListOrMap<T> = SingleOrListOrMap<T>;
|
|
320
|
-
declare const angular1_d_bootstrap: typeof bootstrap;
|
|
321
|
-
declare const angular1_d_element: typeof element;
|
|
322
|
-
declare const angular1_d_getAngularJSGlobal: typeof getAngularJSGlobal;
|
|
323
|
-
declare const angular1_d_getAngularLib: typeof getAngularLib;
|
|
324
|
-
declare const angular1_d_getTestability: typeof getTestability;
|
|
325
|
-
declare const angular1_d_injector: typeof injector;
|
|
326
|
-
declare const angular1_d_module_: typeof module_;
|
|
327
|
-
declare const angular1_d_resumeBootstrap: typeof resumeBootstrap;
|
|
328
|
-
declare const angular1_d_setAngularJSGlobal: typeof setAngularJSGlobal;
|
|
329
|
-
declare const angular1_d_setAngularLib: typeof setAngularLib;
|
|
330
|
-
declare namespace angular1_d {
|
|
331
|
-
export { angular1_d_bootstrap as bootstrap, angular1_d_element as element, angular1_d_getAngularJSGlobal as getAngularJSGlobal, angular1_d_getAngularLib as getAngularLib, angular1_d_getTestability as getTestability, angular1_d_injector as injector, angular1_d_module_ as module_, angular1_d_resumeBootstrap as resumeBootstrap, angular1_d_setAngularJSGlobal as setAngularJSGlobal, angular1_d_setAngularLib as setAngularLib };
|
|
332
|
-
export type { angular1_d_DirectiveRequireProperty as DirectiveRequireProperty, angular1_d_DirectiveTranscludeProperty as DirectiveTranscludeProperty, angular1_d_IAngularBootstrapConfig as IAngularBootstrapConfig, angular1_d_IAnnotatedFunction as IAnnotatedFunction, angular1_d_IAttributes as IAttributes, angular1_d_IAugmentedJQuery as IAugmentedJQuery, angular1_d_ICacheObject as ICacheObject, angular1_d_ICloneAttachFunction as ICloneAttachFunction, angular1_d_ICompileService as ICompileService, angular1_d_ICompiledExpression as ICompiledExpression, angular1_d_IComponent as IComponent, angular1_d_IController as IController, angular1_d_IControllerService as IControllerService, angular1_d_IDirective as IDirective, angular1_d_IDirectiveCompileFn as IDirectiveCompileFn, angular1_d_IDirectiveLinkFn as IDirectiveLinkFn, angular1_d_IDirectivePrePost as IDirectivePrePost, angular1_d_IHttpBackendService as IHttpBackendService, angular1_d_IInjectable as IInjectable, angular1_d_IInjectorService as IInjectorService, angular1_d_IIntervalService as IIntervalService, angular1_d_ILinkFn as ILinkFn, angular1_d_ILinkFnOptions as ILinkFnOptions, angular1_d_IModule as IModule, angular1_d_INgModelController as INgModelController, angular1_d_IParseService as IParseService, angular1_d_IProvideService as IProvideService, angular1_d_IProvider as IProvider, angular1_d_IRootScopeService as IRootScopeService, angular1_d_IScope as IScope, angular1_d_ITemplateCacheService as ITemplateCacheService, angular1_d_ITestabilityService as ITestabilityService, angular1_d_ITranscludeFunction as ITranscludeFunction, angular1_d_Ng1Expression as Ng1Expression, angular1_d_Ng1Token as Ng1Token, angular1_d_SingleOrListOrMap as SingleOrListOrMap };
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export { VERSION, angular1_d, getAngularJSGlobal, getAngularLib, setAngularJSGlobal, setAngularLib };
|
|
336
|
-
export type { IAngularBootstrapConfig, IAugmentedJQuery, IController, IDirective, IInjectorService, ILinkFn, INgModelController, IRootScopeService, IScope, SingleOrListOrMap };
|