@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.
@@ -4,7 +4,7 @@ export class AnimateCssProvider {
4
4
  element: HTMLElement,
5
5
  initialOptions: ng.AnimationOptions,
6
6
  ) => {
7
- $$willAnimate: boolean;
7
+ _willAnimate: boolean;
8
8
  start(): any;
9
9
  end: () => void;
10
10
  })[];
@@ -1,6 +1,14 @@
1
- export function AnimateJsDriverProvider($$animationProvider: any): void;
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
- constructor($$animationProvider: any);
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
- $$registeredAnimations: any;
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
- ) => (elementParam: any, event: any, options: any) => AnimateRunner)
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
- $$prepared?: boolean;
89
- $$skipPreparationClasses?: boolean;
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
- $$willAnimate: true;
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: any,
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 blockKeyframeAnimations(
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.SCEService} $sce
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.SCEService,
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.SCEService} */
38
- _sce: ng.SCEService;
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} $$sanitizeUriProvider
6
+ * @param {import('../sanitize/sanitize-uri.js').SanitizeUriProvider} $sanitizeUriProvider
7
7
  */
8
8
  constructor(
9
9
  $provide: import("../../interface.ts").Provider,
10
- $$sanitizeUriProvider: import("../sanitize/sanitize-uri.js").SanitizeUriProvider,
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.SCEService,
133
+ $sce: ng.SceService,
134
134
  $animate: ng.AnimateService,
135
135
  ) => (
136
136
  compileNode: string | Element | Node | ChildNode | NodeList,
@@ -21,6 +21,6 @@ export class InterpolateProvider {
21
21
  endSymbol: string;
22
22
  $get: (
23
23
  | string
24
- | (($parse: ng.ParseService, $sce: ng.SCEService) => ng.InterpolateService)
24
+ | (($parse: ng.ParseService, $sce: ng.SceService) => ng.InterpolateService)
25
25
  )[];
26
26
  }
@@ -19,7 +19,7 @@ export class AriaProvider {
19
19
  config: (newConfig: any) => void;
20
20
  $get: () => {
21
21
  config(key: any): any;
22
- $$watchExpr: (
22
+ _watchExpr: (
23
23
  attrName: any,
24
24
  ariaAttr: any,
25
25
  nativeAriaNodeNamesParam: any,
@@ -37,19 +37,19 @@ declare class NgMessageCtrl {
37
37
  $attrs: ng.Attributes,
38
38
  $animate: ng.AnimateService,
39
39
  );
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;
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;
@@ -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";
@@ -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
- SCEService as TSCEService,
122
- SCEDelegateService as TSCEDelegateService,
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 SCEService = TSCEService;
189
- type SCEDelegateService = TSCEDelegateService;
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} $viewScroll
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
- $viewScroll: ng.AnchorScrollService,
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.$$state]]) which returns the corresponding [[StateObject]] object.
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
- $$state: () => this;
24
+ _state: () => this;
25
25
  /**
26
26
  * @type {ng.StateDeclaration|ng.BuiltStateDeclaration}
27
27
  */
@@ -5,6 +5,6 @@ export class AnchorScrollProvider {
5
5
  | ((
6
6
  $location: ng.LocationService,
7
7
  $rootScope: ng.Scope,
8
- ) => import("./interface.ts").AnchorScrollFunction)
8
+ ) => ng.AnchorScrollService)
9
9
  )[];
10
10
  }
@@ -1,4 +1,8 @@
1
- export interface AnchorScrollObject {
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;
@@ -96,7 +96,7 @@ export class HttpProvider {
96
96
  | string
97
97
  | ((
98
98
  $injector: ng.InjectorService,
99
- $sce: ng.SCEService,
99
+ $sce: ng.SceService,
100
100
  $cookie: ng.CookieService,
101
101
  ) => {
102
102
  (requestConfig: any): Promise<any>;
@@ -262,7 +262,7 @@ export class Location {
262
262
  * @returns {Location}
263
263
  */
264
264
  setState(state: any): Location;
265
- $$state: any;
265
+ _state: any;
266
266
  /**
267
267
  * Return the history state object
268
268
  * @returns {any}
@@ -1,4 +1,4 @@
1
- export interface SCEService {
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 SCEDelegateService {
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;
@@ -22,8 +22,8 @@ export class SceProvider {
22
22
  | string
23
23
  | ((
24
24
  $parse: ng.ParseService,
25
- $sceDelegate: ng.SCEDelegateService,
26
- ) => ng.SCEService)
25
+ $sceDelegate: ng.SceDelegateService,
26
+ ) => ng.SceService)
27
27
  )[];
28
28
  }
29
29
  export namespace SCE_CONTEXTS {