@angular-wave/angular.ts 0.17.0 → 0.18.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/animations/animate-css.d.ts +1 -1
- package/@types/animations/animate-js-driver.d.ts +10 -2
- package/@types/animations/animate.d.ts +1 -1
- package/@types/animations/animation.d.ts +1 -2
- package/@types/animations/interface.d.ts +8 -3
- package/@types/animations/queue/animate-queue.d.ts +1 -1
- package/@types/animations/shared.d.ts +1 -1
- package/@types/core/compile/attributes.d.ts +4 -4
- package/@types/core/compile/compile.d.ts +3 -3
- package/@types/core/interpolate/interpolate.d.ts +1 -1
- package/@types/directive/aria/aria.d.ts +1 -1
- package/@types/directive/messages/messages.d.ts +13 -13
- package/@types/interface.d.ts +0 -1
- package/@types/namespace.d.ts +7 -13
- package/@types/router/directives/view-directive.d.ts +2 -2
- package/@types/router/state/state-object.d.ts +2 -2
- 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 +1 -1
- package/@types/services/location/location.d.ts +1 -1
- package/@types/services/sce/interface.d.ts +2 -2
- package/@types/services/sce/sce.d.ts +2 -2
- package/dist/angular-ts.esm.js +250 -288
- package/dist/angular-ts.umd.js +250 -288
- 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 -1
- package/@types/router/scroll/interface.d.ts +0 -3
- package/@types/router/scroll/view-scroll.d.ts +0 -8
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {import("./animation.js").AnimationProvider} $$animationProvider
|
|
3
|
+
*/
|
|
4
|
+
export function AnimateJsDriverProvider(
|
|
5
|
+
$$animationProvider: import("./animation.js").AnimationProvider,
|
|
6
|
+
): void;
|
|
2
7
|
export class AnimateJsDriverProvider {
|
|
3
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @param {import("./animation.js").AnimationProvider} $$animationProvider
|
|
10
|
+
*/
|
|
11
|
+
constructor($$animationProvider: import("./animation.js").AnimationProvider);
|
|
4
12
|
$get: (string | (($$animateJs: any) => (animationDetails: any) => any))[];
|
|
5
13
|
}
|
|
6
14
|
export namespace AnimateJsDriverProvider {
|
|
@@ -3,7 +3,7 @@ export function AnimateProvider($provide: ng.ProvideService): void;
|
|
|
3
3
|
export class AnimateProvider {
|
|
4
4
|
/** @param {ng.ProvideService} $provide */
|
|
5
5
|
constructor($provide: ng.ProvideService);
|
|
6
|
-
|
|
6
|
+
_registeredAnimations: any;
|
|
7
7
|
/**
|
|
8
8
|
* Registers a new injectable animation factory function. The factory function produces the
|
|
9
9
|
* animation object which contains callback functions for each event that is expected to be
|
|
@@ -6,7 +6,6 @@ export class AnimationProvider {
|
|
|
6
6
|
| ((
|
|
7
7
|
$rootScope: ng.RootScopeService,
|
|
8
8
|
$injector: ng.InjectorService,
|
|
9
|
-
) => (
|
|
9
|
+
) => import("./interface.ts").AnimationService)
|
|
10
10
|
)[];
|
|
11
11
|
}
|
|
12
|
-
import { AnimateRunner } from "./runner/animate-runner.js";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { AnimateRunner } from "./runner/animate-runner.js";
|
|
2
2
|
import { QueuePhase } from "./queue/interface.ts";
|
|
3
|
+
export type AnimationService = (
|
|
4
|
+
element: HTMLElement,
|
|
5
|
+
event: string,
|
|
6
|
+
options?: any,
|
|
7
|
+
) => AnimateRunner;
|
|
3
8
|
export interface AnimationHost {
|
|
4
9
|
/** Pause animation. */
|
|
5
10
|
pause?: () => void;
|
|
@@ -85,8 +90,8 @@ export interface AnimationOptions {
|
|
|
85
90
|
domOperation?: () => void;
|
|
86
91
|
onDone?: () => void;
|
|
87
92
|
_domOperationFired?: boolean;
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
_prepared?: boolean;
|
|
94
|
+
_skipPreparationClasses?: boolean;
|
|
90
95
|
cleanupStyles?: boolean;
|
|
91
96
|
preparationClasses?: string;
|
|
92
97
|
activeClasses?: string;
|
|
@@ -103,7 +108,7 @@ export interface AnimationOptions {
|
|
|
103
108
|
applyClassesEarly?: boolean;
|
|
104
109
|
}
|
|
105
110
|
export interface AnimateJsRunner {
|
|
106
|
-
|
|
111
|
+
_willAnimate: true;
|
|
107
112
|
start: () => AnimateRunner;
|
|
108
113
|
end: () => AnimateRunner;
|
|
109
114
|
}
|
|
@@ -11,7 +11,7 @@ export class AnimateQueueProvider {
|
|
|
11
11
|
| ((
|
|
12
12
|
$rootScope: ng.RootScopeService,
|
|
13
13
|
$injector: ng.InjectorService,
|
|
14
|
-
$$animation:
|
|
14
|
+
$$animation: import("../interface.ts").AnimationService,
|
|
15
15
|
) => import("../queue/interface.ts").AnimateQueueService)
|
|
16
16
|
)[];
|
|
17
17
|
}
|
|
@@ -118,7 +118,7 @@ export function clearGeneratedClasses(
|
|
|
118
118
|
* @param {boolean} applyBlock
|
|
119
119
|
* @returns {string[]}
|
|
120
120
|
*/
|
|
121
|
-
export function
|
|
121
|
+
export function _blockKeyframeAnimations(
|
|
122
122
|
node: HTMLElement,
|
|
123
123
|
applyBlock: boolean,
|
|
124
124
|
): string[];
|
|
@@ -19,14 +19,14 @@ export class Attributes {
|
|
|
19
19
|
*
|
|
20
20
|
* @param {ng.AnimateService} $animate
|
|
21
21
|
* @param {ng.ExceptionHandlerService} $exceptionHandler
|
|
22
|
-
* @param {ng.
|
|
22
|
+
* @param {ng.SceService} $sce
|
|
23
23
|
* @param {import("../../shared/noderef.js").NodeRef} [nodeRef]
|
|
24
24
|
* @param {Object & Record<string, any>} [attributesToCopy]
|
|
25
25
|
*/
|
|
26
26
|
constructor(
|
|
27
27
|
$animate: ng.AnimateService,
|
|
28
28
|
$exceptionHandler: ng.ExceptionHandlerService,
|
|
29
|
-
$sce: ng.
|
|
29
|
+
$sce: ng.SceService,
|
|
30
30
|
nodeRef?: import("../../shared/noderef.js").NodeRef,
|
|
31
31
|
attributesToCopy?: any & Record<string, any>,
|
|
32
32
|
);
|
|
@@ -34,8 +34,8 @@ export class Attributes {
|
|
|
34
34
|
_animate: ng.AnimateService;
|
|
35
35
|
/** @type {ng.ExceptionHandlerService} */
|
|
36
36
|
_exceptionHandler: ng.ExceptionHandlerService;
|
|
37
|
-
/** @type {ng.
|
|
38
|
-
_sce: ng.
|
|
37
|
+
/** @type {ng.SceService} */
|
|
38
|
+
_sce: ng.SceService;
|
|
39
39
|
/**
|
|
40
40
|
* A map of DOM element attribute names to the normalized name. This is needed
|
|
41
41
|
* to do reverse lookup from normalized name back to actual name.
|
|
@@ -3,11 +3,11 @@ export class CompileProvider {
|
|
|
3
3
|
static $inject: string[];
|
|
4
4
|
/**
|
|
5
5
|
* @param {import('../../interface.ts').Provider} $provide
|
|
6
|
-
* @param {import('../sanitize/sanitize-uri.js').SanitizeUriProvider}
|
|
6
|
+
* @param {import('../sanitize/sanitize-uri.js').SanitizeUriProvider} $sanitizeUriProvider
|
|
7
7
|
*/
|
|
8
8
|
constructor(
|
|
9
9
|
$provide: import("../../interface.ts").Provider,
|
|
10
|
-
|
|
10
|
+
$sanitizeUriProvider: import("../sanitize/sanitize-uri.js").SanitizeUriProvider,
|
|
11
11
|
);
|
|
12
12
|
/**
|
|
13
13
|
* Register a new directive with the compiler.
|
|
@@ -130,7 +130,7 @@ export class CompileProvider {
|
|
|
130
130
|
$templateRequest: ng.TemplateRequestService,
|
|
131
131
|
$parse: ng.ParseService,
|
|
132
132
|
$controller: any,
|
|
133
|
-
$sce: ng.
|
|
133
|
+
$sce: ng.SceService,
|
|
134
134
|
$animate: ng.AnimateService,
|
|
135
135
|
) => (
|
|
136
136
|
compileNode: string | Element | Node | ChildNode | NodeList,
|
|
@@ -37,19 +37,19 @@ declare class NgMessageCtrl {
|
|
|
37
37
|
$attrs: ng.Attributes,
|
|
38
38
|
$animate: ng.AnimateService,
|
|
39
39
|
);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
_element: Element;
|
|
41
|
+
_scope: ng.Scope;
|
|
42
|
+
_attrs: ng.Attributes;
|
|
43
|
+
_animate: import("../../animations/interface.ts").AnimateService;
|
|
44
|
+
_latestKey: number;
|
|
45
|
+
_nextAttachId: number;
|
|
46
|
+
_messages: {};
|
|
47
|
+
_renderLater: boolean;
|
|
48
|
+
_cachedCollection: {};
|
|
49
|
+
_head: any;
|
|
50
|
+
_default: any;
|
|
51
|
+
_getAttachId(): number;
|
|
52
|
+
_render(collection?: {}): void;
|
|
53
53
|
reRender(): void;
|
|
54
54
|
register(comment: any, messageCtrl: any, isDefault: any): void;
|
|
55
55
|
deregister(comment: any, isDefault: any): void;
|
package/@types/interface.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export declare const PublicInjectionTokens: {
|
|
|
25
25
|
readonly $interpolate: "$interpolate";
|
|
26
26
|
readonly $location: "$location";
|
|
27
27
|
readonly $log: "$log";
|
|
28
|
-
readonly $viewScroll: "$viewScroll";
|
|
29
28
|
readonly $parse: "$parse";
|
|
30
29
|
readonly $rest: "$rest";
|
|
31
30
|
readonly $rootScope: "$rootScope";
|
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";
|
|
@@ -115,16 +111,16 @@ import {
|
|
|
115
111
|
} from "./router/state/interface.ts";
|
|
116
112
|
import { StateObject as TStateObject } from "./router/state/state-object.js";
|
|
117
113
|
import { StateRegistryProvider as TStateRegistryProvider } from "./router/state/state-registry.js";
|
|
118
|
-
import { ViewScrollService as TViewScrollService } from "./router/scroll/interface.ts";
|
|
119
114
|
import { HookRegistry } from "./router/transition/interface.ts";
|
|
120
115
|
import {
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
SceService as TSceService,
|
|
117
|
+
SceDelegateService as TSceDelegateService,
|
|
123
118
|
} from "./services/sce/interface.ts";
|
|
124
119
|
import {
|
|
125
120
|
WebSocketConfig as TWebSocketConfig,
|
|
126
121
|
WebSocketService as TWebSocketService,
|
|
127
122
|
} from "./services/websocket/interface.ts";
|
|
123
|
+
import { AnimateRunner as TAnimateRunner } from "./animations/runner/animate-runner.js";
|
|
128
124
|
declare global {
|
|
129
125
|
interface Function {
|
|
130
126
|
$inject?: readonly string[] | undefined;
|
|
@@ -164,6 +160,7 @@ declare global {
|
|
|
164
160
|
type RouterProvider = TRouterProvider;
|
|
165
161
|
type AnchorScrollService = TAnchorScrollService;
|
|
166
162
|
type AnimateService = TAnimateService;
|
|
163
|
+
type AnimateRunner = TAnimateRunner;
|
|
167
164
|
type CompileService = TCompileFn;
|
|
168
165
|
type ControllerService = TControllerService;
|
|
169
166
|
type CookieService = TCookieService;
|
|
@@ -185,8 +182,8 @@ declare global {
|
|
|
185
182
|
type RouterService = TRouterProvider;
|
|
186
183
|
type StateService = TStateProvider;
|
|
187
184
|
type StateRegistryService = TStateRegistryProvider;
|
|
188
|
-
type
|
|
189
|
-
type
|
|
185
|
+
type SceService = TSceService;
|
|
186
|
+
type SceDelegateService = TSceDelegateService;
|
|
190
187
|
type SseService = TSseService;
|
|
191
188
|
type SseConfig = TSseConfig;
|
|
192
189
|
type TransitionService = TransitionProvider & HookRegistry;
|
|
@@ -194,7 +191,6 @@ declare global {
|
|
|
194
191
|
type TemplateRequestService = TTemplateRequestService;
|
|
195
192
|
type UrlService = TUrlService;
|
|
196
193
|
type ViewService = TViewService;
|
|
197
|
-
type ViewScrollService = TViewScrollService;
|
|
198
194
|
type AnimationOptions = TAnimationOptions;
|
|
199
195
|
type ErrorHandlingConfig = TErrorHandlingConfig;
|
|
200
196
|
type ListenerFn = TListenerFn;
|
|
@@ -227,8 +223,6 @@ declare global {
|
|
|
227
223
|
type StateDeclaration = TStateDeclaration;
|
|
228
224
|
type BuiltStateDeclaration = TBuiltStateDeclaration;
|
|
229
225
|
type StateObject = TStateObject;
|
|
230
|
-
type AnchorScrollFunction = TAnchorScrollFunction;
|
|
231
|
-
type AnchorScrollObject = TAnchorScrollObject;
|
|
232
226
|
type InjectionTokens = typeof PublicInjectionTokens;
|
|
233
227
|
type ScopeEvent = TScopeEvent;
|
|
234
228
|
type RequestShortcutConfig = TRequestShortcutConfig;
|
|
@@ -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 {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Instances of this class are created when a [[StateDeclaration]] is registered with the [[StateRegistry]].
|
|
5
5
|
*
|
|
6
|
-
* A registered [[StateDeclaration]] is augmented with a getter ([[StateDeclaration
|
|
6
|
+
* A registered [[StateDeclaration]] is augmented with a getter ([[StateDeclaration._state]]) which returns the corresponding [[StateObject]] object.
|
|
7
7
|
*
|
|
8
8
|
* This class prototypally inherits from the corresponding [[StateDeclaration]].
|
|
9
9
|
* Each of its own properties (i.e., `hasOwnProperty`) are built using builders from the [[StateBuilder]].
|
|
@@ -21,7 +21,7 @@ export class StateObject {
|
|
|
21
21
|
params: any;
|
|
22
22
|
url: any;
|
|
23
23
|
includes: any;
|
|
24
|
-
|
|
24
|
+
_state: () => this;
|
|
25
25
|
/**
|
|
26
26
|
* @type {ng.StateDeclaration|ng.BuiltStateDeclaration}
|
|
27
27
|
*/
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface AnchorScrollService {
|
|
2
|
+
/**
|
|
3
|
+
* Invoke anchor scrolling.
|
|
4
|
+
*/
|
|
5
|
+
(hash?: string | number): void;
|
|
2
6
|
/**
|
|
3
7
|
* Vertical scroll offset.
|
|
4
8
|
* Can be a number, a function returning a number,
|
|
@@ -6,10 +10,3 @@ export interface AnchorScrollObject {
|
|
|
6
10
|
*/
|
|
7
11
|
yOffset?: number | (() => number) | Element;
|
|
8
12
|
}
|
|
9
|
-
export type AnchorScrollFunction = (hash?: string) => void;
|
|
10
|
-
/**
|
|
11
|
-
* AngularJS $anchorScroll service
|
|
12
|
-
*
|
|
13
|
-
* Callable as a function and also exposes properties.
|
|
14
|
-
*/
|
|
15
|
-
export type AnchorScrollService = AnchorScrollFunction | AnchorScrollObject;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface SceService {
|
|
2
2
|
HTML: string;
|
|
3
3
|
CSS: string;
|
|
4
4
|
JS: string;
|
|
@@ -23,7 +23,7 @@ export interface SCEService {
|
|
|
23
23
|
isEnabled(): boolean;
|
|
24
24
|
valueOf(value?: any): any;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface SceDelegateService {
|
|
27
27
|
getTrusted(type: string, mayBeTrusted: any): any;
|
|
28
28
|
trustAs(type: string, value: any): any;
|
|
29
29
|
valueOf(value?: any): any;
|