@angular-wave/angular.ts 0.18.0 → 0.19.0
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/@types/angular.d.ts +18 -6
- package/@types/animations/animate-css-driver.d.ts +2 -2
- package/@types/animations/animate-js-driver.d.ts +11 -1
- package/@types/animations/animate-js.d.ts +10 -2
- package/@types/animations/animate-swap.d.ts +4 -1
- package/@types/animations/animate.d.ts +11 -5
- package/@types/animations/animation.d.ts +7 -0
- package/@types/animations/css/animate-css.d.ts +16 -0
- package/@types/animations/interface.d.ts +308 -19
- package/@types/animations/queue/animate-queue.d.ts +16 -7
- package/@types/animations/queue/interface.d.ts +14 -7
- package/@types/core/compile/attributes.d.ts +1 -1
- package/@types/core/compile/compile.d.ts +25 -15
- package/@types/core/compile/interface.d.ts +209 -34
- package/@types/core/controller/controller.d.ts +30 -38
- package/@types/core/controller/interface.d.ts +12 -3
- package/@types/core/parse/interface.d.ts +2 -2
- package/@types/core/parse/interpreter.d.ts +110 -58
- package/@types/core/scope/interface.d.ts +6 -0
- package/@types/core/scope/scope.d.ts +2 -1
- package/@types/directive/aria/aria.d.ts +66 -26
- package/@types/directive/aria/interface.d.ts +9 -0
- package/@types/directive/class/class.d.ts +31 -0
- package/@types/directive/form/form.d.ts +54 -18
- package/@types/directive/input/input.d.ts +59 -18
- package/@types/directive/input/interface.d.ts +10 -0
- package/@types/directive/messages/messages.d.ts +63 -12
- package/@types/directive/model/interface.d.ts +19 -0
- package/@types/directive/model/model.d.ts +70 -33
- package/@types/directive/model-options/model-options.d.ts +1 -23
- package/@types/directive/repeat/repeat.d.ts +2 -3
- package/@types/directive/validators/validators.d.ts +1 -5
- package/@types/directive/worker/interface.d.ts +9 -0
- package/@types/docs.d.ts +24 -0
- package/@types/filters/json.d.ts +4 -0
- package/@types/interface.d.ts +22 -69
- package/@types/namespace.d.ts +66 -40
- package/@types/router/common/trace.d.ts +150 -42
- package/@types/router/directives/state-directives.d.ts +4 -4
- package/@types/router/directives/view-directive.d.ts +2 -5
- package/@types/router/hooks/core-resolvables.d.ts +11 -2
- package/@types/router/hooks/ignored-transition.d.ts +3 -1
- package/@types/router/hooks/invalid-transition.d.ts +3 -1
- package/@types/router/hooks/lazy-load.d.ts +17 -13
- package/@types/router/hooks/on-enter-exit-retain.d.ts +9 -3
- package/@types/router/hooks/redirect-to.d.ts +3 -3
- package/@types/router/hooks/resolve.d.ts +11 -3
- package/@types/router/hooks/views.d.ts +6 -4
- package/@types/router/params/interface.d.ts +3 -2
- package/@types/router/params/param-factory.d.ts +24 -3
- package/@types/router/params/param-type.d.ts +47 -11
- package/@types/router/params/param-types.d.ts +52 -0
- package/@types/router/params/param.d.ts +52 -28
- package/@types/router/params/state-params.d.ts +5 -3
- package/@types/router/path/interface.d.ts +3 -0
- package/@types/router/path/path-node.d.ts +34 -14
- package/@types/router/path/path-utils.d.ts +75 -25
- package/@types/router/resolve/resolvable.d.ts +34 -7
- package/@types/router/resolve/resolve-context.d.ts +52 -34
- package/@types/router/router.d.ts +10 -12
- package/@types/router/state/interface.d.ts +194 -31
- package/@types/router/state/state-builder.d.ts +29 -29
- package/@types/router/state/state-matcher.d.ts +29 -11
- package/@types/router/state/state-object.d.ts +67 -21
- package/@types/router/state/state-queue-manager.d.ts +19 -10
- package/@types/router/state/state-registry.d.ts +80 -28
- package/@types/router/state/state-service.d.ts +182 -123
- package/@types/router/state/target-state.d.ts +36 -27
- package/@types/router/state/views.d.ts +48 -19
- package/@types/router/template-factory.d.ts +8 -15
- package/@types/router/transition/hook-builder.d.ts +17 -6
- package/@types/router/transition/hook-registry.d.ts +80 -46
- package/@types/router/transition/interface.d.ts +138 -118
- package/@types/router/transition/reject-factory.d.ts +58 -22
- package/@types/router/transition/transition-event-type.d.ts +19 -8
- package/@types/router/transition/transition-hook.d.ts +50 -29
- package/@types/router/transition/transition-service.d.ts +186 -30
- package/@types/router/transition/transition.d.ts +201 -70
- package/@types/router/url/interface.d.ts +140 -0
- package/@types/router/url/url-config.d.ts +19 -16
- package/@types/router/url/url-matcher.d.ts +66 -46
- package/@types/router/url/url-rule.d.ts +58 -35
- package/@types/router/url/url-rules.d.ts +38 -28
- package/@types/router/url/url-service.d.ts +68 -41
- package/@types/router/view/interface.d.ts +10 -30
- package/@types/router/view/view.d.ts +35 -21
- package/@types/services/anchor-scroll/interface.d.ts +1 -1
- package/@types/services/http/http.d.ts +19 -22
- package/@types/services/http/interface.d.ts +11 -23
- package/@types/services/location/interface.d.ts +1 -4
- package/@types/services/location/location.d.ts +13 -13
- package/@types/services/sce/sce.d.ts +14 -8
- package/@types/services/template-request/template-request.d.ts +21 -4
- package/@types/shared/common.d.ts +5 -32
- package/@types/shared/dom.d.ts +10 -5
- package/@types/shared/interface.d.ts +4 -0
- package/@types/shared/utils.d.ts +17 -6
- package/dist/angular-ts.esm.js +6424 -2850
- package/dist/angular-ts.umd.js +6424 -2850
- package/dist/angular-ts.umd.min.js +1 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -1
- package/package.json +1 -2
- package/@types/animations/animate-css.d.ts +0 -11
- package/@types/filters/filters.d.ts +0 -38
- package/@types/router/hooks/update-globals.d.ts +0 -1
- package/@types/router/hooks/url.d.ts +0 -5
package/@types/namespace.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ import {
|
|
|
21
21
|
HttpParamSerializer as THttpParamSerializer,
|
|
22
22
|
HttpProviderDefaults as THttpProviderDefaults,
|
|
23
23
|
RequestShortcutConfig as TRequestShortcutConfig,
|
|
24
|
+
HttpResponseStatus as THttpResponseStatus,
|
|
25
|
+
HttpMethod as THttpMethod,
|
|
26
|
+
RequestConfig as TRequestConfig,
|
|
27
|
+
HttpPromise as THttpPromise,
|
|
28
|
+
HttpResponse as THttpResponse,
|
|
24
29
|
} from "./services/http/interface.ts";
|
|
25
30
|
import { HttpParamSerializerProvider as THttpParamSerializerProvider } from "./services/http/http.js";
|
|
26
31
|
import {
|
|
@@ -29,7 +34,10 @@ import {
|
|
|
29
34
|
FilterFn as TFilterFn,
|
|
30
35
|
} from "./filters/interface.ts";
|
|
31
36
|
import { FilterProvider as TFilterProvider } from "./core/filter/filter.js";
|
|
32
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
InterpolateService as TInterpolateService,
|
|
39
|
+
InterpolationFunction as TInterpolationFunction,
|
|
40
|
+
} from "./core/interpolate/interface.ts";
|
|
33
41
|
import { InterpolateProvider as TInterpolateProvider } from "./core/interpolate/interpolate.js";
|
|
34
42
|
import {
|
|
35
43
|
SceProvider as TSceProvider,
|
|
@@ -53,6 +61,7 @@ import {
|
|
|
53
61
|
Injectable as TInjectable,
|
|
54
62
|
Expression as TExpression,
|
|
55
63
|
PublicInjectionTokens,
|
|
64
|
+
InvocationDetail as TInvocationDetail,
|
|
56
65
|
} from "./interface.ts";
|
|
57
66
|
import {
|
|
58
67
|
SseService as TSseService,
|
|
@@ -81,6 +90,7 @@ import { Location as TLocationService } from "./services/location/location.js";
|
|
|
81
90
|
import {
|
|
82
91
|
AnimateService as TAnimateService,
|
|
83
92
|
AnimationOptions as TAnimationOptions,
|
|
93
|
+
AnimateCssService as TAnimateCssService,
|
|
84
94
|
} from "./animations/interface.ts";
|
|
85
95
|
import {
|
|
86
96
|
StorageBackend as TStorageBackend,
|
|
@@ -111,7 +121,6 @@ import {
|
|
|
111
121
|
} from "./router/state/interface.ts";
|
|
112
122
|
import { StateObject as TStateObject } from "./router/state/state-object.js";
|
|
113
123
|
import { StateRegistryProvider as TStateRegistryProvider } from "./router/state/state-registry.js";
|
|
114
|
-
import { HookRegistry } from "./router/transition/interface.ts";
|
|
115
124
|
import {
|
|
116
125
|
SceService as TSceService,
|
|
117
126
|
SceDelegateService as TSceDelegateService,
|
|
@@ -121,6 +130,11 @@ import {
|
|
|
121
130
|
WebSocketService as TWebSocketService,
|
|
122
131
|
} from "./services/websocket/interface.ts";
|
|
123
132
|
import { AnimateRunner as TAnimateRunner } from "./animations/runner/animate-runner.js";
|
|
133
|
+
import { Transition as TTransition } from "./router/transition/transition.js";
|
|
134
|
+
import { TemplateFactoryProvider as TTemplateFactoryProvider } from "./router/template-factory.js";
|
|
135
|
+
import { TransitionService as TTransitionService } from "./router/transition/interface.ts";
|
|
136
|
+
import { UrlConfigProvider as TUrlConfigProvider } from "./router/url/url-config.js";
|
|
137
|
+
import { AriaService as TAriaService } from "./directive/aria/interface.ts";
|
|
124
138
|
declare global {
|
|
125
139
|
interface Function {
|
|
126
140
|
$inject?: readonly string[] | undefined;
|
|
@@ -131,22 +145,22 @@ declare global {
|
|
|
131
145
|
}
|
|
132
146
|
export namespace ng {
|
|
133
147
|
type Angular = TAngular;
|
|
134
|
-
type Attributes = TAttributes & Record<string, string>;
|
|
135
|
-
type Directive<TController = any> = TDirective<TController>;
|
|
136
|
-
type DirectiveFactory = TDirectiveFactory;
|
|
137
148
|
type AnnotatedDirectiveFactory = TAnnotatedDirectiveFactory;
|
|
149
|
+
type Attributes = TAttributes & Record<string, string>;
|
|
150
|
+
type BoundTranscludeFn = TBoundTranscludeFn;
|
|
138
151
|
type Component = TComponent & Record<string, any>;
|
|
152
|
+
type CompositeLinkFn = TCompositeLinkFn;
|
|
139
153
|
type Controller = TController;
|
|
140
|
-
type
|
|
154
|
+
type Directive<TController = any> = TDirective<TController>;
|
|
155
|
+
type DirectiveFactory = TDirectiveFactory;
|
|
156
|
+
type LinkFnMapping = TLinkFnMapping;
|
|
141
157
|
type NgModule = TNgModule;
|
|
142
|
-
type PubSubProvider = TPubSubProvider;
|
|
143
|
-
type CompositeLinkFn = TCompositeLinkFn;
|
|
144
|
-
type PublicLinkFn = TPublicLinkFn;
|
|
145
158
|
type NodeLinkFn = TNodeLinkFn;
|
|
146
159
|
type NodeLinkFnCtx = TNodeLinkFnCtx;
|
|
160
|
+
type PublicLinkFn = TPublicLinkFn;
|
|
161
|
+
type PubSubProvider = TPubSubProvider;
|
|
162
|
+
type Scope = TScope & Record<string, any>;
|
|
147
163
|
type TranscludeFn = TTranscludeFn;
|
|
148
|
-
type BoundTranscludeFn = TBoundTranscludeFn;
|
|
149
|
-
type LinkFnMapping = TLinkFnMapping;
|
|
150
164
|
type AnchorScrollProvider = TAnchorScrollProvider;
|
|
151
165
|
type AnimateProvider = TAnimateProvider;
|
|
152
166
|
type FilterProvider = TFilterProvider;
|
|
@@ -154,13 +168,18 @@ declare global {
|
|
|
154
168
|
type HttpParamSerializerProvider = THttpParamSerializerProvider;
|
|
155
169
|
type InterpolateProvider = TInterpolateProvider;
|
|
156
170
|
type LocationProvider = TLocationProvider;
|
|
157
|
-
type SceProvider = TSceProvider;
|
|
158
171
|
type SceDelegateProvider = TSceDelegateProvider;
|
|
172
|
+
type SceProvider = TSceProvider;
|
|
159
173
|
type TransitionProvider = TTransitionProvider;
|
|
174
|
+
type TransitionService = TTransitionService;
|
|
160
175
|
type RouterProvider = TRouterProvider;
|
|
176
|
+
type TemplateFactoryProvider = TTemplateFactoryProvider;
|
|
177
|
+
type UrlConfigProvider = TUrlConfigProvider;
|
|
161
178
|
type AnchorScrollService = TAnchorScrollService;
|
|
162
179
|
type AnimateService = TAnimateService;
|
|
180
|
+
type AnimateCssService = TAnimateCssService;
|
|
163
181
|
type AnimateRunner = TAnimateRunner;
|
|
182
|
+
type AriaService = TAriaService;
|
|
164
183
|
type CompileService = TCompileFn;
|
|
165
184
|
type ControllerService = TControllerService;
|
|
166
185
|
type CookieService = TCookieService;
|
|
@@ -170,8 +189,8 @@ declare global {
|
|
|
170
189
|
type FilterService = TFilterService;
|
|
171
190
|
type HttpParamSerializerSerService = THttpParamSerializer;
|
|
172
191
|
type HttpService = THttpService;
|
|
173
|
-
type InterpolateService = TInterpolateService;
|
|
174
192
|
type InjectorService = TInjectorService;
|
|
193
|
+
type InterpolateService = TInterpolateService;
|
|
175
194
|
type LocationService = TLocationService;
|
|
176
195
|
type LogService = TLogService;
|
|
177
196
|
type ParseService = TParseService;
|
|
@@ -186,49 +205,56 @@ declare global {
|
|
|
186
205
|
type SceDelegateService = TSceDelegateService;
|
|
187
206
|
type SseService = TSseService;
|
|
188
207
|
type SseConfig = TSseConfig;
|
|
189
|
-
type TransitionService = TransitionProvider & HookRegistry;
|
|
190
208
|
type TemplateCacheService = Map<string, string>;
|
|
191
209
|
type TemplateRequestService = TTemplateRequestService;
|
|
192
210
|
type UrlService = TUrlService;
|
|
193
211
|
type ViewService = TViewService;
|
|
212
|
+
type AngularService = Angular;
|
|
213
|
+
type AnnotatedFactory<T extends (...args: any[]) => any> =
|
|
214
|
+
TAnnotatedFactory<T>;
|
|
194
215
|
type AnimationOptions = TAnimationOptions;
|
|
195
|
-
type
|
|
196
|
-
type
|
|
197
|
-
type
|
|
216
|
+
type BuiltStateDeclaration = TBuiltStateDeclaration;
|
|
217
|
+
type ControllerConstructor = TControllerConstructor;
|
|
218
|
+
type CookieOptions = TCookieOptions;
|
|
219
|
+
type CookieStoreOptions = TCookieStoreOptions;
|
|
198
220
|
type DocumentService = Document;
|
|
199
|
-
type
|
|
200
|
-
type
|
|
201
|
-
type
|
|
202
|
-
type
|
|
221
|
+
type EntityClass<T> = TEntityClass<T>;
|
|
222
|
+
type ErrorHandlingConfig = TErrorHandlingConfig;
|
|
223
|
+
type Expression = TExpression;
|
|
224
|
+
type HttpMethod = THttpMethod;
|
|
225
|
+
type HttpPromise<T> = THttpPromise<T>;
|
|
226
|
+
type HttpProviderDefaults = THttpProviderDefaults;
|
|
227
|
+
type HttpResponse<T> = THttpResponse<T>;
|
|
228
|
+
type HttpResponseStatus = THttpResponseStatus;
|
|
203
229
|
type Injectable<
|
|
204
230
|
T extends
|
|
205
231
|
| ((...args: any[]) => any)
|
|
206
232
|
| (abstract new (...args: any[]) => any),
|
|
207
233
|
> = TInjectable<T>;
|
|
208
|
-
type
|
|
209
|
-
|
|
234
|
+
type InjectionTokens = typeof PublicInjectionTokens;
|
|
235
|
+
type InterpolationFunction = TInterpolationFunction;
|
|
236
|
+
type InvocationDetail = TInvocationDetail;
|
|
237
|
+
type Listener = TListener;
|
|
238
|
+
type ListenerFn = TListenerFn;
|
|
239
|
+
type NgModelController = TNgModelController;
|
|
240
|
+
type ProviderCache = TProviderCache;
|
|
241
|
+
type RequestConfig = TRequestConfig;
|
|
242
|
+
type RequestShortcutConfig = TRequestShortcutConfig;
|
|
243
|
+
type RestDefinition<T> = TRestDefinition<T>;
|
|
244
|
+
type RestService<T, ID> = TRestService<T, ID>;
|
|
245
|
+
type ScopeEvent = TScopeEvent;
|
|
246
|
+
type ServiceProvider = TServiceProvider;
|
|
247
|
+
type StateDeclaration = TStateDeclaration;
|
|
248
|
+
type StateObject = TStateObject & Record<string, any>;
|
|
210
249
|
type StorageBackend = TStorageBackend;
|
|
211
250
|
type StorageType = TStorageType;
|
|
212
251
|
type StreamConnectionConfig = TStreamConnectionConfig;
|
|
213
|
-
type
|
|
214
|
-
type ControllerConstructor = TControllerConstructor;
|
|
215
|
-
type CookieStoreOptions = TCookieStoreOptions;
|
|
216
|
-
type RestService<T, ID> = TRestService<T, ID>;
|
|
217
|
-
type RestDefinition<T> = TRestDefinition<T>;
|
|
218
|
-
type EntityClass<T> = TEntityClass<T>;
|
|
219
|
-
type ServiceProvider = TServiceProvider;
|
|
220
|
-
type Expression = TExpression;
|
|
221
|
-
type NgModelController = TNgModelController;
|
|
252
|
+
type Transition = TTransition;
|
|
222
253
|
type Validator = TValidator;
|
|
223
|
-
type StateDeclaration = TStateDeclaration;
|
|
224
|
-
type BuiltStateDeclaration = TBuiltStateDeclaration;
|
|
225
|
-
type StateObject = TStateObject;
|
|
226
|
-
type InjectionTokens = typeof PublicInjectionTokens;
|
|
227
|
-
type ScopeEvent = TScopeEvent;
|
|
228
|
-
type RequestShortcutConfig = TRequestShortcutConfig;
|
|
229
|
-
type HttpProviderDefaults = THttpProviderDefaults;
|
|
230
|
-
type ProviderCache = TProviderCache;
|
|
231
254
|
type WebSocketConfig = TWebSocketConfig;
|
|
232
255
|
type WebSocketService = TWebSocketService;
|
|
256
|
+
type WindowService = Window;
|
|
257
|
+
type WorkerConfig = TWorkerConfig;
|
|
258
|
+
type WorkerConnection = TWorkerConnection;
|
|
233
259
|
}
|
|
234
260
|
}
|
|
@@ -1,59 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Trace categories Enum
|
|
3
|
+
*
|
|
4
|
+
* Enable or disable a category using [[Trace.enable]] or [[Trace.disable]]
|
|
5
|
+
*
|
|
6
|
+
* `trace.enable(Category.TRANSITION)`
|
|
7
|
+
*
|
|
8
|
+
* These can also be provided using a matching string, or position ordinal
|
|
9
|
+
*
|
|
10
|
+
* `trace.enable("TRANSITION")`
|
|
11
|
+
*
|
|
12
|
+
* `trace.enable(1)`
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @type {Record<string, string>}
|
|
16
|
+
*/
|
|
17
|
+
export const Category: Record<string, string>;
|
|
9
18
|
/**
|
|
10
19
|
* Prints ng-router Transition trace information to the console.
|
|
11
20
|
*/
|
|
12
21
|
export class Trace {
|
|
13
|
-
|
|
22
|
+
/** @type {Record<string, boolean> } */
|
|
23
|
+
_enabled: Record<string, boolean>;
|
|
14
24
|
approximateDigests: number;
|
|
15
25
|
$logger: any;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
/**
|
|
27
|
+
* @param {boolean} enabled
|
|
28
|
+
* @param {string[]} categories
|
|
29
|
+
*/
|
|
30
|
+
_set(enabled: boolean, categories: string[]): void;
|
|
31
|
+
/**
|
|
32
|
+
* @param {string[]} categories
|
|
33
|
+
*/
|
|
34
|
+
enable(...categories: string[]): void;
|
|
35
|
+
/**
|
|
36
|
+
* @param {string[]} categories
|
|
37
|
+
*/
|
|
38
|
+
disable(...categories: string[]): void;
|
|
19
39
|
/**
|
|
20
40
|
* Retrieves the enabled stateus of a [[Category]]
|
|
21
41
|
*
|
|
22
42
|
* ```js
|
|
23
43
|
* trace.enabled("VIEWCONFIG"); // true or false
|
|
24
44
|
* ```
|
|
25
|
-
*
|
|
26
|
-
* @returns boolean true if the category is enabled
|
|
45
|
+
* @param {string} category
|
|
46
|
+
* @returns {boolean} true if the category is enabled
|
|
27
47
|
*/
|
|
28
|
-
enabled(category:
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
traceUIViewFill(viewData: any, html: any): void;
|
|
51
|
-
/** @internal called by ng-router code */
|
|
52
|
-
traceViewSync(pairs: any): void;
|
|
53
|
-
/** @internal called by ng-router code */
|
|
54
|
-
traceViewServiceEvent(event: any, viewConfig: any): void;
|
|
48
|
+
enabled(category: string): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @internal called by ng-router code
|
|
51
|
+
* @param {ng.Transition} trans
|
|
52
|
+
*/
|
|
53
|
+
traceTransitionStart(trans: ng.Transition): void;
|
|
54
|
+
/**
|
|
55
|
+
* @internal called by ng-router code
|
|
56
|
+
* @param {ng.Transition} trans
|
|
57
|
+
*/
|
|
58
|
+
traceTransitionIgnored(trans: ng.Transition): void;
|
|
59
|
+
/**
|
|
60
|
+
* @internal called by ng-router code
|
|
61
|
+
* @param {import("../transition/transition-hook.js").TransitionHook} step
|
|
62
|
+
* @param {ng.Transition} trans
|
|
63
|
+
* @param {import("../transition/interface.ts").TransitionHookOptions} options
|
|
64
|
+
*/
|
|
65
|
+
traceHookInvocation(
|
|
66
|
+
step: import("../transition/transition-hook.js").TransitionHook,
|
|
67
|
+
trans: ng.Transition,
|
|
68
|
+
options: import("../transition/interface.ts").TransitionHookOptions,
|
|
69
|
+
): void;
|
|
55
70
|
/** @internal called by ng-router code */
|
|
56
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @param {HookResult} hookResult
|
|
73
|
+
* @param {ng.Transition} trans
|
|
74
|
+
*/
|
|
75
|
+
traceHookResult(hookResult: HookResult, trans: ng.Transition): void;
|
|
76
|
+
/**
|
|
77
|
+
* @internal called by ng-router code
|
|
78
|
+
* @param {import("../path/path-node.js").PathNode[]} path
|
|
79
|
+
* @param {import("../resolve/interface.ts").PolicyWhen} when
|
|
80
|
+
* @param {ng.Transition} trans
|
|
81
|
+
*/
|
|
82
|
+
traceResolvePath(
|
|
83
|
+
path: import("../path/path-node.js").PathNode[],
|
|
84
|
+
when: import("../resolve/interface.ts").PolicyWhen,
|
|
85
|
+
trans: ng.Transition,
|
|
86
|
+
): void;
|
|
87
|
+
/**
|
|
88
|
+
* @internal called by ng-router code
|
|
89
|
+
* @param {import("../resolve/resolvable.js").Resolvable} resolvable
|
|
90
|
+
* @param {ng.Transition} trans
|
|
91
|
+
*/
|
|
92
|
+
traceResolvableResolved(
|
|
93
|
+
resolvable: import("../resolve/resolvable.js").Resolvable,
|
|
94
|
+
trans: ng.Transition,
|
|
95
|
+
): void;
|
|
96
|
+
/**
|
|
97
|
+
* @internal called by ng-router code
|
|
98
|
+
* @param {any} reason
|
|
99
|
+
* @param {ng.Transition} trans
|
|
100
|
+
*/
|
|
101
|
+
traceError(reason: any, trans: ng.Transition): void;
|
|
102
|
+
/**
|
|
103
|
+
* @internal called by ng-router code
|
|
104
|
+
* @param {import("../state/state-object.js").StateObject} finalState
|
|
105
|
+
* @param {ng.Transition} trans
|
|
106
|
+
*/
|
|
107
|
+
traceSuccess(
|
|
108
|
+
finalState: import("../state/state-object.js").StateObject,
|
|
109
|
+
trans: ng.Transition,
|
|
110
|
+
): void;
|
|
111
|
+
/**
|
|
112
|
+
* @internal called by ng-router code
|
|
113
|
+
* @param {string} event
|
|
114
|
+
* @param {import("../view/interface.ts").ActiveUIView} viewData
|
|
115
|
+
*/
|
|
116
|
+
traceUIViewEvent(
|
|
117
|
+
event: string,
|
|
118
|
+
viewData: import("../view/interface.ts").ActiveUIView,
|
|
119
|
+
extra?: string,
|
|
120
|
+
): void;
|
|
121
|
+
/**
|
|
122
|
+
* @internal called by ng-router code
|
|
123
|
+
* @param {import("../view/interface.ts").ActiveUIView} viewData
|
|
124
|
+
* @param {import("../view/interface.ts").ViewContext | undefined} context
|
|
125
|
+
*/
|
|
126
|
+
traceUIViewConfigUpdated(
|
|
127
|
+
viewData: import("../view/interface.ts").ActiveUIView,
|
|
128
|
+
context: import("../view/interface.ts").ViewContext | undefined,
|
|
129
|
+
): void;
|
|
130
|
+
/**
|
|
131
|
+
* @internal called by ng-router code
|
|
132
|
+
* @param {import("../view/interface.ts").ActiveUIView} viewData
|
|
133
|
+
* @param {string} html
|
|
134
|
+
*/
|
|
135
|
+
traceUIViewFill(
|
|
136
|
+
viewData: import("../view/interface.ts").ActiveUIView,
|
|
137
|
+
html: string,
|
|
138
|
+
): void;
|
|
139
|
+
/**
|
|
140
|
+
* @internal called by ng-router code
|
|
141
|
+
* @param {import("../view/interface.ts").ViewTuple[]} pairs
|
|
142
|
+
*/
|
|
143
|
+
traceViewSync(pairs: import("../view/interface.ts").ViewTuple[]): void;
|
|
144
|
+
/**
|
|
145
|
+
* @internal called by ng-router code
|
|
146
|
+
* @param {string} event
|
|
147
|
+
* @param {import("../view/view.js").ViewConfig} viewConfig
|
|
148
|
+
*/
|
|
149
|
+
traceViewServiceEvent(
|
|
150
|
+
event: string,
|
|
151
|
+
viewConfig: import("../view/view.js").ViewConfig,
|
|
152
|
+
): void;
|
|
153
|
+
/**
|
|
154
|
+
* @internal called by ng-router code
|
|
155
|
+
* @param {string} event
|
|
156
|
+
* @param {import("../view/interface.ts").ActiveUIView} viewData
|
|
157
|
+
*/
|
|
158
|
+
traceViewServiceUIViewEvent(
|
|
159
|
+
event: string,
|
|
160
|
+
viewData: import("../view/interface.ts").ActiveUIView,
|
|
161
|
+
): void;
|
|
57
162
|
}
|
|
58
163
|
/**
|
|
59
164
|
* The [[Trace]] singleton
|
|
@@ -65,3 +170,6 @@ export class Trace {
|
|
|
65
170
|
* ```
|
|
66
171
|
*/
|
|
67
172
|
export const trace: Trace;
|
|
173
|
+
export type HookResult = import("../transition/interface.ts").HookResult;
|
|
174
|
+
export type TransitionHook =
|
|
175
|
+
import("../transition/transition-hook.js").TransitionHook;
|
|
@@ -31,16 +31,16 @@ export namespace $StateRefDynamicDirective {
|
|
|
31
31
|
* @param {ng.StateService} $state
|
|
32
32
|
* @param {ng.RouterService} $router
|
|
33
33
|
* @param {ng.InterpolateService} $interpolate
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
34
|
+
* @param {ng.StateRegistryService} $stateRegistry
|
|
35
|
+
* @param {ng.TransitionService} $transitions
|
|
36
36
|
* @returns {ng.Directive}
|
|
37
37
|
*/
|
|
38
38
|
export function $StateRefActiveDirective(
|
|
39
39
|
$state: ng.StateService,
|
|
40
40
|
$router: ng.RouterService,
|
|
41
41
|
$interpolate: ng.InterpolateService,
|
|
42
|
-
$stateRegistry:
|
|
43
|
-
$transitions:
|
|
42
|
+
$stateRegistry: ng.StateRegistryService,
|
|
43
|
+
$transitions: ng.TransitionService,
|
|
44
44
|
): ng.Directive;
|
|
45
45
|
export namespace $StateRefActiveDirective {
|
|
46
46
|
let $inject_2: string[];
|
|
@@ -18,16 +18,13 @@ export namespace $ViewDirective {
|
|
|
18
18
|
* @param {ng.CompileService} $compile
|
|
19
19
|
* @param {ng.ControllerService} $controller
|
|
20
20
|
* @param {ng.TransitionService} $transitions
|
|
21
|
-
* @
|
|
21
|
+
* @return {ng.Directive}
|
|
22
22
|
*/
|
|
23
23
|
export function $ViewDirectiveFill(
|
|
24
24
|
$compile: ng.CompileService,
|
|
25
25
|
$controller: ng.ControllerService,
|
|
26
26
|
$transitions: ng.TransitionService,
|
|
27
|
-
):
|
|
28
|
-
priority: number;
|
|
29
|
-
compile(tElement: any): (scope: any, $element: any) => void;
|
|
30
|
-
};
|
|
27
|
+
): ng.Directive;
|
|
31
28
|
export namespace $ViewDirectiveFill {
|
|
32
29
|
let $inject_1: string[];
|
|
33
30
|
export { $inject_1 as $inject };
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {ng.TransitionService} transitionService
|
|
3
|
+
*/
|
|
4
|
+
export function registerAddCoreResolvables(
|
|
5
|
+
transitionService: ng.TransitionService,
|
|
6
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param {ng.Transition} trans
|
|
10
|
+
*/
|
|
11
|
+
export function treeChangesCleanup(trans: ng.Transition): void;
|
|
@@ -21,22 +21,26 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* See [[StateDeclaration.lazyLoad]]
|
|
24
|
+
* @param {ng.TransitionService} transitionService
|
|
25
|
+
* @param {ng.StateService} [stateService]
|
|
26
|
+
* @param {ng.UrlService} [urlService]
|
|
27
|
+
* @param {ng.StateRegistryService | undefined} [stateRegistry]
|
|
24
28
|
*/
|
|
25
29
|
export function registerLazyLoadHook(
|
|
26
|
-
transitionService:
|
|
27
|
-
stateService
|
|
28
|
-
urlService
|
|
29
|
-
stateRegistry
|
|
30
|
-
):
|
|
30
|
+
transitionService: ng.TransitionService,
|
|
31
|
+
stateService?: ng.StateService,
|
|
32
|
+
urlService?: ng.UrlService,
|
|
33
|
+
stateRegistry?: ng.StateRegistryService | undefined,
|
|
34
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
31
35
|
/**
|
|
32
36
|
* Invokes a state's lazy load function
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @
|
|
37
|
+
* @param {ng.Transition} transition a Transition context
|
|
38
|
+
* @param {import("../state/interface.ts").StateDeclaration} state the state to lazy load
|
|
39
|
+
* @param {ng.StateRegistryService | undefined} [stateRegistry]
|
|
40
|
+
* @return {Promise<import("../state/interface.ts").LazyLoadResult | undefined>} a promise for the lazy load result
|
|
37
41
|
*/
|
|
38
42
|
export function lazyLoadState(
|
|
39
|
-
transition:
|
|
40
|
-
state:
|
|
41
|
-
stateRegistry
|
|
42
|
-
):
|
|
43
|
+
transition: ng.Transition,
|
|
44
|
+
state: import("../state/interface.ts").StateDeclaration,
|
|
45
|
+
stateRegistry?: ng.StateRegistryService | undefined,
|
|
46
|
+
): Promise<import("../state/interface.ts").LazyLoadResult | undefined>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export function registerOnExitHook(
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export function registerOnExitHook(
|
|
2
|
+
transitionService: ng.TransitionService,
|
|
3
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
4
|
+
export function registerOnRetainHook(
|
|
5
|
+
transitionService: ng.TransitionService,
|
|
6
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
7
|
+
export function registerOnEnterHook(
|
|
8
|
+
transitionService: ng.TransitionService,
|
|
9
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function registerRedirectToHook(
|
|
2
|
-
transitionService:
|
|
3
|
-
stateService:
|
|
4
|
-
):
|
|
2
|
+
transitionService: ng.TransitionService,
|
|
3
|
+
stateService: ng.StateService,
|
|
4
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/** @typedef {import("../transition/interface.ts").TreeChanges} TreeChanges */
|
|
1
2
|
export const RESOLVE_HOOK_PRIORITY: 1000;
|
|
2
|
-
export function registerEagerResolvePath(
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export function registerEagerResolvePath(
|
|
4
|
+
transitionService: ng.TransitionService,
|
|
5
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
6
|
+
export function registerLazyResolveState(
|
|
7
|
+
transitionService: ng.TransitionService,
|
|
8
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
9
|
+
export function registerResolveRemaining(
|
|
10
|
+
transitionService: ng.TransitionService,
|
|
11
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
12
|
+
export type TreeChanges = import("../transition/interface.ts").TreeChanges;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function registerLoadEnteringViews(
|
|
1
|
+
export function registerLoadEnteringViews(
|
|
2
|
+
transitionService: ng.TransitionService,
|
|
3
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
2
4
|
export function registerActivateViews(
|
|
3
|
-
transitionService:
|
|
4
|
-
viewService:
|
|
5
|
-
):
|
|
5
|
+
transitionService: ng.TransitionService,
|
|
6
|
+
viewService: ng.ViewService,
|
|
7
|
+
): import("../transition/interface.ts").DeregisterFn;
|
|
@@ -24,7 +24,7 @@ export interface RawParams {
|
|
|
24
24
|
* #### Example:
|
|
25
25
|
* ```js
|
|
26
26
|
* var mystate = {
|
|
27
|
-
* template: '<div
|
|
27
|
+
* template: '<div ng-view/>',
|
|
28
28
|
* controller: function() {}
|
|
29
29
|
* url: '/mystate/:start?{count:int}',
|
|
30
30
|
* params: {
|
|
@@ -306,6 +306,7 @@ export interface ParamDeclaration {
|
|
|
306
306
|
* Default: `true`
|
|
307
307
|
*/
|
|
308
308
|
inherit?: boolean;
|
|
309
|
+
_fn?: any;
|
|
309
310
|
}
|
|
310
311
|
/**
|
|
311
312
|
* String replacement
|
|
@@ -328,7 +329,7 @@ export interface Replace {
|
|
|
328
329
|
*
|
|
329
330
|
* Used instead of the [[from]] value.
|
|
330
331
|
*/
|
|
331
|
-
to: string;
|
|
332
|
+
to: string | undefined;
|
|
332
333
|
}
|
|
333
334
|
/**
|
|
334
335
|
* Describes a custom [[ParamType]]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @typedef {import("./param-type.js").ParamType} ParamType */
|
|
1
2
|
export class ParamFactory {
|
|
2
3
|
/**
|
|
3
4
|
* @param {import("../url/url-config.js").UrlConfigProvider} urlServiceConfig
|
|
@@ -9,8 +10,28 @@ export class ParamFactory {
|
|
|
9
10
|
* @type {import("../url/url-config.js").UrlConfigProvider}
|
|
10
11
|
*/
|
|
11
12
|
urlServiceConfig: import("../url/url-config.js").UrlConfigProvider;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} id
|
|
15
|
+
* @param {ParamType | null} type
|
|
16
|
+
* @param {ng.StateDeclaration} state
|
|
17
|
+
*/
|
|
18
|
+
fromConfig(
|
|
19
|
+
id: string,
|
|
20
|
+
type: ParamType | null,
|
|
21
|
+
state: ng.StateDeclaration,
|
|
22
|
+
): Param;
|
|
23
|
+
/**
|
|
24
|
+
* @param {string} id
|
|
25
|
+
* @param {ParamType} type
|
|
26
|
+
* @param {ng.StateDeclaration} state
|
|
27
|
+
*/
|
|
28
|
+
fromPath(id: string, type: ParamType, state: ng.StateDeclaration): Param;
|
|
29
|
+
/**
|
|
30
|
+
* @param {string} id
|
|
31
|
+
* @param {ParamType} type
|
|
32
|
+
* @param {ng.StateDeclaration} state
|
|
33
|
+
*/
|
|
34
|
+
fromSearch(id: string, type: ParamType, state: ng.StateDeclaration): Param;
|
|
15
35
|
}
|
|
36
|
+
export type ParamType = import("./param-type.js").ParamType;
|
|
16
37
|
import { Param } from "./param.js";
|