@angular-wave/angular.ts 0.17.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 +21 -3
- 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 +8 -2
- package/@types/animations/css/animate-css.d.ts +16 -0
- package/@types/animations/interface.d.ts +315 -21
- package/@types/animations/queue/animate-queue.d.ts +17 -8
- package/@types/animations/queue/interface.d.ts +14 -7
- package/@types/animations/shared.d.ts +1 -1
- package/@types/core/compile/attributes.d.ts +5 -5
- package/@types/core/compile/compile.d.ts +28 -18
- 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/interpolate/interpolate.d.ts +1 -1
- 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 +67 -27
- 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 +73 -22
- 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 -70
- package/@types/namespace.d.ts +73 -53
- 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 +4 -7
- 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 +68 -22
- 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/anchor-scroll.d.ts +1 -1
- package/@types/services/anchor-scroll/interface.d.ts +5 -8
- package/@types/services/http/http.d.ts +20 -23
- 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 +14 -14
- package/@types/services/sce/interface.d.ts +2 -2
- package/@types/services/sce/sce.d.ts +16 -10
- 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 +6643 -3107
- package/dist/angular-ts.umd.js +6643 -3107
- 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/router/scroll/interface.d.ts +0 -3
- package/@types/router/scroll/view-scroll.d.ts +0 -8
package/@types/namespace.d.ts
CHANGED
|
@@ -11,11 +11,7 @@ import {
|
|
|
11
11
|
import { NgModule as TNgModule } from "./core/di/ng-module/ng-module.js";
|
|
12
12
|
import { InjectorService as TInjectorService } from "./core/di/internal-injector.js";
|
|
13
13
|
import { AnchorScrollProvider as TAnchorScrollProvider } from "./services/anchor-scroll/anchor-scroll.js";
|
|
14
|
-
import {
|
|
15
|
-
AnchorScrollFunction as TAnchorScrollFunction,
|
|
16
|
-
AnchorScrollService as TAnchorScrollService,
|
|
17
|
-
AnchorScrollObject as TAnchorScrollObject,
|
|
18
|
-
} from "./services/anchor-scroll/interface.ts";
|
|
14
|
+
import { AnchorScrollService as TAnchorScrollService } from "./services/anchor-scroll/interface.ts";
|
|
19
15
|
import { ControllerService as TControllerService } from "./core/controller/interface.ts";
|
|
20
16
|
import { ExceptionHandler as TExceptionHandler } from "./services/exception/interface.ts";
|
|
21
17
|
import { ExceptionHandlerProvider as TExceptionHandlerProvider } from "./services/exception/exception.js";
|
|
@@ -25,6 +21,11 @@ import {
|
|
|
25
21
|
HttpParamSerializer as THttpParamSerializer,
|
|
26
22
|
HttpProviderDefaults as THttpProviderDefaults,
|
|
27
23
|
RequestShortcutConfig as TRequestShortcutConfig,
|
|
24
|
+
HttpResponseStatus as THttpResponseStatus,
|
|
25
|
+
HttpMethod as THttpMethod,
|
|
26
|
+
RequestConfig as TRequestConfig,
|
|
27
|
+
HttpPromise as THttpPromise,
|
|
28
|
+
HttpResponse as THttpResponse,
|
|
28
29
|
} from "./services/http/interface.ts";
|
|
29
30
|
import { HttpParamSerializerProvider as THttpParamSerializerProvider } from "./services/http/http.js";
|
|
30
31
|
import {
|
|
@@ -33,7 +34,10 @@ import {
|
|
|
33
34
|
FilterFn as TFilterFn,
|
|
34
35
|
} from "./filters/interface.ts";
|
|
35
36
|
import { FilterProvider as TFilterProvider } from "./core/filter/filter.js";
|
|
36
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
InterpolateService as TInterpolateService,
|
|
39
|
+
InterpolationFunction as TInterpolationFunction,
|
|
40
|
+
} from "./core/interpolate/interface.ts";
|
|
37
41
|
import { InterpolateProvider as TInterpolateProvider } from "./core/interpolate/interpolate.js";
|
|
38
42
|
import {
|
|
39
43
|
SceProvider as TSceProvider,
|
|
@@ -57,6 +61,7 @@ import {
|
|
|
57
61
|
Injectable as TInjectable,
|
|
58
62
|
Expression as TExpression,
|
|
59
63
|
PublicInjectionTokens,
|
|
64
|
+
InvocationDetail as TInvocationDetail,
|
|
60
65
|
} from "./interface.ts";
|
|
61
66
|
import {
|
|
62
67
|
SseService as TSseService,
|
|
@@ -85,6 +90,7 @@ import { Location as TLocationService } from "./services/location/location.js";
|
|
|
85
90
|
import {
|
|
86
91
|
AnimateService as TAnimateService,
|
|
87
92
|
AnimationOptions as TAnimationOptions,
|
|
93
|
+
AnimateCssService as TAnimateCssService,
|
|
88
94
|
} from "./animations/interface.ts";
|
|
89
95
|
import {
|
|
90
96
|
StorageBackend as TStorageBackend,
|
|
@@ -115,16 +121,20 @@ import {
|
|
|
115
121
|
} from "./router/state/interface.ts";
|
|
116
122
|
import { StateObject as TStateObject } from "./router/state/state-object.js";
|
|
117
123
|
import { StateRegistryProvider as TStateRegistryProvider } from "./router/state/state-registry.js";
|
|
118
|
-
import { ViewScrollService as TViewScrollService } from "./router/scroll/interface.ts";
|
|
119
|
-
import { HookRegistry } from "./router/transition/interface.ts";
|
|
120
124
|
import {
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
SceService as TSceService,
|
|
126
|
+
SceDelegateService as TSceDelegateService,
|
|
123
127
|
} from "./services/sce/interface.ts";
|
|
124
128
|
import {
|
|
125
129
|
WebSocketConfig as TWebSocketConfig,
|
|
126
130
|
WebSocketService as TWebSocketService,
|
|
127
131
|
} from "./services/websocket/interface.ts";
|
|
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";
|
|
128
138
|
declare global {
|
|
129
139
|
interface Function {
|
|
130
140
|
$inject?: readonly string[] | undefined;
|
|
@@ -135,22 +145,22 @@ declare global {
|
|
|
135
145
|
}
|
|
136
146
|
export namespace ng {
|
|
137
147
|
type Angular = TAngular;
|
|
138
|
-
type Attributes = TAttributes & Record<string, string>;
|
|
139
|
-
type Directive<TController = any> = TDirective<TController>;
|
|
140
|
-
type DirectiveFactory = TDirectiveFactory;
|
|
141
148
|
type AnnotatedDirectiveFactory = TAnnotatedDirectiveFactory;
|
|
149
|
+
type Attributes = TAttributes & Record<string, string>;
|
|
150
|
+
type BoundTranscludeFn = TBoundTranscludeFn;
|
|
142
151
|
type Component = TComponent & Record<string, any>;
|
|
152
|
+
type CompositeLinkFn = TCompositeLinkFn;
|
|
143
153
|
type Controller = TController;
|
|
144
|
-
type
|
|
154
|
+
type Directive<TController = any> = TDirective<TController>;
|
|
155
|
+
type DirectiveFactory = TDirectiveFactory;
|
|
156
|
+
type LinkFnMapping = TLinkFnMapping;
|
|
145
157
|
type NgModule = TNgModule;
|
|
146
|
-
type PubSubProvider = TPubSubProvider;
|
|
147
|
-
type CompositeLinkFn = TCompositeLinkFn;
|
|
148
|
-
type PublicLinkFn = TPublicLinkFn;
|
|
149
158
|
type NodeLinkFn = TNodeLinkFn;
|
|
150
159
|
type NodeLinkFnCtx = TNodeLinkFnCtx;
|
|
160
|
+
type PublicLinkFn = TPublicLinkFn;
|
|
161
|
+
type PubSubProvider = TPubSubProvider;
|
|
162
|
+
type Scope = TScope & Record<string, any>;
|
|
151
163
|
type TranscludeFn = TTranscludeFn;
|
|
152
|
-
type BoundTranscludeFn = TBoundTranscludeFn;
|
|
153
|
-
type LinkFnMapping = TLinkFnMapping;
|
|
154
164
|
type AnchorScrollProvider = TAnchorScrollProvider;
|
|
155
165
|
type AnimateProvider = TAnimateProvider;
|
|
156
166
|
type FilterProvider = TFilterProvider;
|
|
@@ -158,12 +168,18 @@ declare global {
|
|
|
158
168
|
type HttpParamSerializerProvider = THttpParamSerializerProvider;
|
|
159
169
|
type InterpolateProvider = TInterpolateProvider;
|
|
160
170
|
type LocationProvider = TLocationProvider;
|
|
161
|
-
type SceProvider = TSceProvider;
|
|
162
171
|
type SceDelegateProvider = TSceDelegateProvider;
|
|
172
|
+
type SceProvider = TSceProvider;
|
|
163
173
|
type TransitionProvider = TTransitionProvider;
|
|
174
|
+
type TransitionService = TTransitionService;
|
|
164
175
|
type RouterProvider = TRouterProvider;
|
|
176
|
+
type TemplateFactoryProvider = TTemplateFactoryProvider;
|
|
177
|
+
type UrlConfigProvider = TUrlConfigProvider;
|
|
165
178
|
type AnchorScrollService = TAnchorScrollService;
|
|
166
179
|
type AnimateService = TAnimateService;
|
|
180
|
+
type AnimateCssService = TAnimateCssService;
|
|
181
|
+
type AnimateRunner = TAnimateRunner;
|
|
182
|
+
type AriaService = TAriaService;
|
|
167
183
|
type CompileService = TCompileFn;
|
|
168
184
|
type ControllerService = TControllerService;
|
|
169
185
|
type CookieService = TCookieService;
|
|
@@ -173,8 +189,8 @@ declare global {
|
|
|
173
189
|
type FilterService = TFilterService;
|
|
174
190
|
type HttpParamSerializerSerService = THttpParamSerializer;
|
|
175
191
|
type HttpService = THttpService;
|
|
176
|
-
type InterpolateService = TInterpolateService;
|
|
177
192
|
type InjectorService = TInjectorService;
|
|
193
|
+
type InterpolateService = TInterpolateService;
|
|
178
194
|
type LocationService = TLocationService;
|
|
179
195
|
type LogService = TLogService;
|
|
180
196
|
type ParseService = TParseService;
|
|
@@ -185,56 +201,60 @@ declare global {
|
|
|
185
201
|
type RouterService = TRouterProvider;
|
|
186
202
|
type StateService = TStateProvider;
|
|
187
203
|
type StateRegistryService = TStateRegistryProvider;
|
|
188
|
-
type
|
|
189
|
-
type
|
|
204
|
+
type SceService = TSceService;
|
|
205
|
+
type SceDelegateService = TSceDelegateService;
|
|
190
206
|
type SseService = TSseService;
|
|
191
207
|
type SseConfig = TSseConfig;
|
|
192
|
-
type TransitionService = TransitionProvider & HookRegistry;
|
|
193
208
|
type TemplateCacheService = Map<string, string>;
|
|
194
209
|
type TemplateRequestService = TTemplateRequestService;
|
|
195
210
|
type UrlService = TUrlService;
|
|
196
211
|
type ViewService = TViewService;
|
|
197
|
-
type
|
|
212
|
+
type AngularService = Angular;
|
|
213
|
+
type AnnotatedFactory<T extends (...args: any[]) => any> =
|
|
214
|
+
TAnnotatedFactory<T>;
|
|
198
215
|
type AnimationOptions = TAnimationOptions;
|
|
199
|
-
type
|
|
200
|
-
type
|
|
201
|
-
type
|
|
216
|
+
type BuiltStateDeclaration = TBuiltStateDeclaration;
|
|
217
|
+
type ControllerConstructor = TControllerConstructor;
|
|
218
|
+
type CookieOptions = TCookieOptions;
|
|
219
|
+
type CookieStoreOptions = TCookieStoreOptions;
|
|
202
220
|
type DocumentService = Document;
|
|
203
|
-
type
|
|
204
|
-
type
|
|
205
|
-
type
|
|
206
|
-
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;
|
|
207
229
|
type Injectable<
|
|
208
230
|
T extends
|
|
209
231
|
| ((...args: any[]) => any)
|
|
210
232
|
| (abstract new (...args: any[]) => any),
|
|
211
233
|
> = TInjectable<T>;
|
|
212
|
-
type
|
|
213
|
-
|
|
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>;
|
|
214
249
|
type StorageBackend = TStorageBackend;
|
|
215
250
|
type StorageType = TStorageType;
|
|
216
251
|
type StreamConnectionConfig = TStreamConnectionConfig;
|
|
217
|
-
type
|
|
218
|
-
type ControllerConstructor = TControllerConstructor;
|
|
219
|
-
type CookieStoreOptions = TCookieStoreOptions;
|
|
220
|
-
type RestService<T, ID> = TRestService<T, ID>;
|
|
221
|
-
type RestDefinition<T> = TRestDefinition<T>;
|
|
222
|
-
type EntityClass<T> = TEntityClass<T>;
|
|
223
|
-
type ServiceProvider = TServiceProvider;
|
|
224
|
-
type Expression = TExpression;
|
|
225
|
-
type NgModelController = TNgModelController;
|
|
252
|
+
type Transition = TTransition;
|
|
226
253
|
type Validator = TValidator;
|
|
227
|
-
type StateDeclaration = TStateDeclaration;
|
|
228
|
-
type BuiltStateDeclaration = TBuiltStateDeclaration;
|
|
229
|
-
type StateObject = TStateObject;
|
|
230
|
-
type AnchorScrollFunction = TAnchorScrollFunction;
|
|
231
|
-
type AnchorScrollObject = TAnchorScrollObject;
|
|
232
|
-
type InjectionTokens = typeof PublicInjectionTokens;
|
|
233
|
-
type ScopeEvent = TScopeEvent;
|
|
234
|
-
type RequestShortcutConfig = TRequestShortcutConfig;
|
|
235
|
-
type HttpProviderDefaults = THttpProviderDefaults;
|
|
236
|
-
type ProviderCache = TProviderCache;
|
|
237
254
|
type WebSocketConfig = TWebSocketConfig;
|
|
238
255
|
type WebSocketService = TWebSocketService;
|
|
256
|
+
type WindowService = Window;
|
|
257
|
+
type WorkerConfig = TWorkerConfig;
|
|
258
|
+
type WorkerConnection = TWorkerConnection;
|
|
239
259
|
}
|
|
240
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[];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {ng.ViewService} $view
|
|
3
3
|
* @param {ng.AnimateService} $animate
|
|
4
|
-
* @param {ng.AnchorScrollService} $
|
|
4
|
+
* @param {ng.AnchorScrollService} $anchorScroll
|
|
5
5
|
* @param {ng.InterpolateService} $interpolate
|
|
6
6
|
* @returns {ng.Directive}
|
|
7
7
|
*/
|
|
8
8
|
export function $ViewDirective(
|
|
9
9
|
$view: ng.ViewService,
|
|
10
10
|
$animate: ng.AnimateService,
|
|
11
|
-
$
|
|
11
|
+
$anchorScroll: ng.AnchorScrollService,
|
|
12
12
|
$interpolate: ng.InterpolateService,
|
|
13
13
|
): ng.Directive;
|
|
14
14
|
export namespace $ViewDirective {
|
|
@@ -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]]
|