@angular-wave/angular.ts 0.16.1 → 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.
Files changed (51) hide show
  1. package/@types/angular.d.ts +4 -0
  2. package/@types/animations/animate-css-driver.d.ts +10 -2
  3. package/@types/animations/animate-css.d.ts +8 -14
  4. package/@types/animations/animate-js-driver.d.ts +10 -2
  5. package/@types/animations/animate.d.ts +1 -1
  6. package/@types/animations/animation.d.ts +2 -5
  7. package/@types/animations/cache/animate-cache.d.ts +99 -0
  8. package/@types/animations/cache/interface.d.ts +17 -0
  9. package/@types/animations/interface.d.ts +22 -20
  10. package/@types/animations/queue/animate-queue.d.ts +1 -1
  11. package/@types/animations/raf/raf-scheduler.d.ts +37 -0
  12. package/@types/animations/shared.d.ts +1 -1
  13. package/@types/core/compile/attributes.d.ts +4 -4
  14. package/@types/core/compile/compile.d.ts +3 -3
  15. package/@types/core/compile/interface.d.ts +36 -5
  16. package/@types/core/interpolate/interface.d.ts +7 -1
  17. package/@types/core/interpolate/interpolate.d.ts +1 -1
  18. package/@types/core/scope/interface.d.ts +14 -4
  19. package/@types/core/scope/scope.d.ts +58 -22
  20. package/@types/directive/aria/aria.d.ts +1 -1
  21. package/@types/directive/form/form.d.ts +16 -4
  22. package/@types/directive/messages/messages.d.ts +13 -13
  23. package/@types/directive/model/model.d.ts +6 -4
  24. package/@types/filters/order-by.d.ts +13 -0
  25. package/@types/interface.d.ts +3 -4
  26. package/@types/namespace.d.ts +7 -13
  27. package/@types/router/directives/view-directive.d.ts +2 -2
  28. package/@types/router/path/path-node.d.ts +1 -1
  29. package/@types/router/resolve/resolve-context.d.ts +1 -1
  30. package/@types/router/state/state-object.d.ts +2 -2
  31. package/@types/router/transition/hook-registry.d.ts +1 -1
  32. package/@types/router/url/url-matcher.d.ts +1 -1
  33. package/@types/services/anchor-scroll/anchor-scroll.d.ts +1 -1
  34. package/@types/services/anchor-scroll/interface.d.ts +5 -8
  35. package/@types/services/http/http.d.ts +1 -1
  36. package/@types/services/location/location.d.ts +1 -1
  37. package/@types/services/sce/interface.d.ts +3 -6
  38. package/@types/services/sce/sce.d.ts +7 -2
  39. package/@types/shared/common.d.ts +100 -39
  40. package/@types/shared/node.d.ts +5 -5
  41. package/@types/shared/strings.d.ts +2 -2
  42. package/dist/angular-ts.esm.js +1584 -1181
  43. package/dist/angular-ts.umd.js +1584 -1181
  44. package/dist/angular-ts.umd.min.js +1 -1
  45. package/dist/angular-ts.umd.min.js.gz +0 -0
  46. package/dist/angular-ts.umd.min.js.map +1 -1
  47. package/package.json +1 -1
  48. package/@types/animations/animate-cache.d.ts +0 -94
  49. package/@types/animations/raf-scheduler.d.ts +0 -35
  50. package/@types/router/scroll/interface.d.ts +0 -3
  51. package/@types/router/scroll/view-scroll.d.ts +0 -8
@@ -46,9 +46,8 @@ export class Scope {
46
46
  * @param {Scope} [parent] - Custom parent.
47
47
  */
48
48
  constructor(context?: Scope, parent?: Scope);
49
- context: Scope;
50
- /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners */
51
- watchers: Map<string, Array<import("./interface.ts").Listener>>;
49
+ /** @ignore @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners */
50
+ _watchers: Map<string, Array<import("./interface.ts").Listener>>;
52
51
  /** @private @type {Map<String, Function[]>} Event listeners */
53
52
  private _listeners;
54
53
  /** @private @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
@@ -59,25 +58,26 @@ export class Scope {
59
58
  private _objectListeners;
60
59
  /** @type {Proxy<Scope>} Current proxy being operated on */
61
60
  $proxy: ProxyConstructor;
62
- /** @type {Scope} The actual proxy */
61
+ /** @type {Scope} This is the reference to the Scope object with acts as the actual proxy */
63
62
  $handler: Scope;
64
63
  /** @type {*} Current target being called on */
65
64
  $target: any;
66
- /** @type {*} Value wrapped by the proxy */
67
- $value: any;
68
65
  /**
69
- * @type {Scope[]}
66
+ * @ignore @type {Scope[]}
70
67
  */
71
- $children: Scope[];
68
+ _children: Scope[];
72
69
  /**
73
70
  * @type {number} Unique model ID (monotonically increasing) useful for debugging.
74
71
  */
75
72
  $id: number;
76
73
  /**
77
- * @type {Scope}
74
+ * @type {ng.RootScopeService}
78
75
  */
79
- $root: Scope;
80
- $parent: Scope;
76
+ $root: ng.RootScopeService;
77
+ /**
78
+ * @type {Scope | undefined}
79
+ */
80
+ $parent: Scope | undefined;
81
81
  /** @ignore @type {boolean} */
82
82
  _destroyed: boolean;
83
83
  /** @private @type {import("./interface.ts").Listener[]} A list of scheduled Event listeners */
@@ -90,14 +90,14 @@ export class Scope {
90
90
  * Intercepts and handles property assignments on the target object. If a new value is
91
91
  * an object, it will be recursively proxied.
92
92
  *
93
- * @param {Object} target - The target object.
93
+ * @param {Object & Record<string, any>} target - The target object.
94
94
  * @param {string} property - The name of the property being set.
95
95
  * @param {*} value - The new value being assigned to the property.
96
96
  * @param {Proxy<Scope>} proxy - The proxy intercepting property access
97
97
  * @returns {boolean} - Returns true to indicate success of the operation.
98
98
  */
99
99
  set(
100
- target: any,
100
+ target: any & Record<string, any>,
101
101
  property: string,
102
102
  value: any,
103
103
  proxy: ProxyConstructor,
@@ -107,17 +107,21 @@ export class Scope {
107
107
  * properties (`watch` and `sync`) and binds their methods. For other properties,
108
108
  * it returns the value directly.
109
109
  *
110
- * @param {Object} target - The target object.
110
+ * @param {Object & Record<string, any>} target - The target object.
111
111
  * @param {string|number|symbol} property - The name of the property being accessed.
112
112
  * @param {Proxy<Scope>} proxy - The proxy object being invoked
113
113
  * @returns {*} - The value of the property or a method if accessing `watch` or `sync`.
114
114
  */
115
115
  get(
116
- target: any,
116
+ target: any & Record<string, any>,
117
117
  property: string | number | symbol,
118
118
  proxy: ProxyConstructor,
119
119
  ): any;
120
- deleteProperty(target: any, property: any): boolean;
120
+ /**
121
+ * @param {Object & Record<string, any>} target - The target object.
122
+ * @param {string} property - The name of the property being deleted
123
+ */
124
+ deleteProperty(target: any & Record<string, any>, property: string): boolean;
121
125
  /**
122
126
  * Registers a watcher for a property along with a listener function. The listener
123
127
  * function is invoked when changes to that property are detected.
@@ -131,10 +135,42 @@ export class Scope {
131
135
  listenerFn?: ng.ListenerFn,
132
136
  lazy?: boolean,
133
137
  ): () => void;
134
- $new(childInstance: any): any;
135
- $newIsolate(instance: any): any;
136
- $transcluded(parentInstance: any): any;
137
- $eval(expr: any, locals: any): any;
138
+ /**
139
+ * @param {ng.Scope} [childInstance]
140
+ * @returns {Proxy<ng.Scope> & ng.Scope}
141
+ */
142
+ $new(childInstance?: ng.Scope): ProxyConstructor & ng.Scope;
143
+ /**
144
+ * @param {ng.Scope} [instance]
145
+ * @returns {Proxy<ng.Scope> & ng.Scope}
146
+ */
147
+ $newIsolate(instance?: ng.Scope): ProxyConstructor & ng.Scope;
148
+ /**
149
+ * @param {ng.Scope} parentInstance
150
+ * @returns {Proxy<ng.Scope> & ng.Scope}
151
+ */
152
+ $transcluded(parentInstance: ng.Scope): ProxyConstructor & ng.Scope;
153
+ /**
154
+ * @param {string} key
155
+ * @param {import("./interface.ts").Listener} listener
156
+ */
157
+ _registerForeignKey(
158
+ key: string,
159
+ listener: import("./interface.ts").Listener,
160
+ ): void;
161
+ /**
162
+ * @param {string} key
163
+ * @param {number} id
164
+ */
165
+ _deregisterForeignKey(key: string, id: number): boolean;
166
+ /**
167
+ * Evaluates an Angular expression in the context of this scope.
168
+ *
169
+ * @param {string} expr - Angular expression to evaluate
170
+ * @param {Record<string, any>} [locals] - Optional local variables
171
+ * @returns {any}
172
+ */
173
+ $eval(expr: string, locals?: Record<string, any>): any;
138
174
  /**
139
175
  * @param {Object} newTarget
140
176
  */
@@ -153,9 +189,9 @@ export class Scope {
153
189
  /**
154
190
  * @param {string} name
155
191
  * @param {...any} args
156
- * @returns {void}
192
+ * @returns {ng.ScopeEvent | undefined}
157
193
  */
158
- $emit(name: string, ...args: any[]): void;
194
+ $emit(name: string, ...args: any[]): ng.ScopeEvent | undefined;
159
195
  /**
160
196
  * @param {string} name
161
197
  * @param {...any} args
@@ -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,
@@ -1,4 +1,14 @@
1
1
  export function setupValidity(instance: any): void;
2
+ /**
3
+ * @param {FormController|ng.NgModelController} ctrl
4
+ * @param {string} className
5
+ * @param {boolean} switchValue
6
+ */
7
+ export function cachedToggleClass(
8
+ ctrl: FormController | ng.NgModelController,
9
+ className: string,
10
+ switchValue: boolean,
11
+ ): void;
2
12
  /**
3
13
  * @type {{
4
14
  * $nonscope: boolean,
@@ -74,21 +84,23 @@ export class FormController {
74
84
  static $nonscope: boolean;
75
85
  static $inject: string[];
76
86
  /**
77
- * @param {Element} $element
87
+ * @param {HTMLFormElement} $element
78
88
  * @param {ng.Attributes} $attrs
79
89
  * @param {ng.Scope} $scope
80
90
  * @param {ng.AnimateService} $animate
81
91
  * @param {ng.InterpolateService} $interpolate
82
92
  */
83
93
  constructor(
84
- $element: Element,
94
+ $element: HTMLFormElement,
85
95
  $attrs: ng.Attributes,
86
96
  $scope: ng.Scope,
87
97
  $animate: ng.AnimateService,
88
98
  $interpolate: ng.InterpolateService,
89
99
  );
100
+ /** @type {boolean} */
101
+ _isAnimated: boolean;
90
102
  _controls: any[];
91
- $name: string;
103
+ $name: any;
92
104
  /**
93
105
  * @property {boolean} $dirty True if user has already interacted with the form.
94
106
  */
@@ -102,7 +114,7 @@ export class FormController {
102
114
  $submitted: boolean;
103
115
  /** @type {FormController|Object} */
104
116
  _parentForm: FormController | any;
105
- _element: Element;
117
+ _element: HTMLFormElement;
106
118
  _animate: import("../../animations/interface.ts").AnimateService;
107
119
  $error: {};
108
120
  _success: {};
@@ -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;
@@ -52,7 +52,7 @@ export class NgModelController {
52
52
  * @param {ng.Scope} $scope
53
53
  * @param {ng.ExceptionHandlerService} $exceptionHandler
54
54
  * @param {ng.Attributes} $attr
55
- * @param {Element} $element
55
+ * @param {HTMLElement} $element
56
56
  * @param {ng.ParseService} $parse
57
57
  * @param {ng.AnimateService} $animate
58
58
  * @param {ng.InterpolateService} $interpolate
@@ -61,11 +61,13 @@ export class NgModelController {
61
61
  $scope: ng.Scope,
62
62
  $exceptionHandler: ng.ExceptionHandlerService,
63
63
  $attr: ng.Attributes,
64
- $element: Element,
64
+ $element: HTMLElement,
65
65
  $parse: ng.ParseService,
66
66
  $animate: ng.AnimateService,
67
67
  $interpolate: ng.InterpolateService,
68
68
  );
69
+ /** @type {boolean} */
70
+ _isAnimated: boolean;
69
71
  /** @type {any} The actual value from the control's view */
70
72
  $viewValue: any;
71
73
  /** @type {any} The value in the model that the control is bound to. */
@@ -97,7 +99,7 @@ export class NgModelController {
97
99
  $error: {};
98
100
  _success: {};
99
101
  $pending: any;
100
- $name: string;
102
+ $name: any;
101
103
  _parentForm: {
102
104
  $nonscope: boolean;
103
105
  $addControl: Function;
@@ -144,7 +146,7 @@ export class NgModelController {
144
146
  /** @type {ng.Scope} */
145
147
  _scope: ng.Scope;
146
148
  _attr: ng.Attributes;
147
- _element: Element;
149
+ _element: HTMLElement;
148
150
  _animate: import("../../animations/interface.ts").AnimateService;
149
151
  _parse: import("../../core/parse/interface.ts").ParseService;
150
152
  _exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
@@ -6,3 +6,16 @@ export function orderByFilter($parse: ng.ParseService): ng.FilterFn;
6
6
  export namespace orderByFilter {
7
7
  let $inject: string[];
8
8
  }
9
+ export type ComparisonObject = {
10
+ value: any;
11
+ tieBreaker: {
12
+ value: number;
13
+ type: string;
14
+ index: number;
15
+ };
16
+ predicateValues: Array<{
17
+ value: any;
18
+ type: string;
19
+ index: number;
20
+ }>;
21
+ };
@@ -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";
@@ -65,7 +64,7 @@ export interface AngularBootstrapConfig {
65
64
  * This helps find bugs that would break under minified code.
66
65
  * Defaults to `false`.
67
66
  */
68
- strictDi?: boolean;
67
+ strictDi: boolean;
69
68
  }
70
69
  /**
71
70
  * A JavaScript expression represented as a string, typically used in interpolation bindings.
@@ -474,7 +473,7 @@ export interface TemplateLinkingFunction {
474
473
  ): Element;
475
474
  }
476
475
  export interface TemplateLinkingFunctionOptions {
477
- parentBoundTranscludeFn?: TranscludeFunctionObject | undefined;
476
+ _parentBoundTranscludeFn?: TranscludeFunctionObject | undefined;
478
477
  transcludeControllers?:
479
478
  | {
480
479
  [controller: string]: {
@@ -482,7 +481,7 @@ export interface TemplateLinkingFunctionOptions {
482
481
  };
483
482
  }
484
483
  | undefined;
485
- futureParentElement?: Element | undefined;
484
+ _futureParentElement?: Element | undefined;
486
485
  }
487
486
  /**
488
487
  * Configuration for ngModel behavior.
@@ -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 {
@@ -16,7 +16,7 @@ export class PathNode {
16
16
  /** Sets [[paramValues]] for the node, from the values of an object hash */
17
17
  applyRawParams(params: any): this;
18
18
  /** Gets a specific [[Param]] metadata that belongs to the node */
19
- parameter(name: any): undefined;
19
+ parameter(name: any): any;
20
20
  /**
21
21
  * @returns true if the state and parameter values for another PathNode are
22
22
  * equal to the state and param values for this PathNode
@@ -80,7 +80,7 @@ export class ResolveContext {
80
80
  * @returns {Promise<any>|any}
81
81
  */
82
82
  resolvePath(when: string, trans: any): Promise<any> | any;
83
- findNode(resolvable: any): undefined;
83
+ findNode(resolvable: any): any;
84
84
  /**
85
85
  * Gets the async dependencies of a Resolvable
86
86
  *
@@ -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
  */
@@ -93,7 +93,7 @@ export class RegisteredHook {
93
93
  * retained: true,
94
94
  * }
95
95
  */
96
- _getDefaultMatchCriteria(): any;
96
+ _getDefaultMatchCriteria(): boolean[] | Record<string, boolean>;
97
97
  /**
98
98
  * Gets matching nodes as [[IMatchingNodes]]
99
99
  *
@@ -51,7 +51,7 @@
51
51
  */
52
52
  export class UrlMatcher {
53
53
  /** @internal Given a matcher, return an array with the matcher's path segments and path params, in order */
54
- static pathSegmentsAndParams(matcher: any): any;
54
+ static pathSegmentsAndParams(matcher: any): any[];
55
55
  /** @internal Given a matcher, return an array with the matcher's query params */
56
56
  static queryParams(matcher: any): any;
57
57
  /**
@@ -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;
@@ -8,26 +8,23 @@ export interface SCEService {
8
8
  getTrusted(type: string, mayBeTrusted: any): any;
9
9
  getTrustedCss(value: any): any;
10
10
  getTrustedHtml(value: any): any;
11
- getTrustedJs(value: any): any;
12
11
  getTrustedResourceUrl(value: any): any;
13
12
  getTrustedUrl(value: any): any;
14
13
  getTrustedMediaUrl(value: any): any;
15
14
  parse(type: string, expression: string): (context: any, locals: any) => any;
16
15
  parseAsCss(expression: string): (context: any, locals: any) => any;
17
16
  parseAsHtml(expression: string): (context: any, locals: any) => any;
18
- parseAsJs(expression: string): (context: any, locals: any) => any;
19
17
  parseAsResourceUrl(expression: string): (context: any, locals: any) => any;
20
18
  parseAsUrl(expression: string): (context: any, locals: any) => any;
21
19
  trustAs(type: string, value: any): any;
22
20
  trustAsHtml(value: any): any;
23
- trustAsJs(value: any): any;
24
21
  trustAsResourceUrl(value: any): any;
25
22
  trustAsUrl(value: any): any;
26
23
  isEnabled(): boolean;
27
24
  valueOf(value?: any): any;
28
25
  }
29
- export interface SCEDelegateService {
26
+ export interface SceDelegateService {
30
27
  getTrusted(type: string, mayBeTrusted: any): any;
31
28
  trustAs(type: string, value: any): any;
32
- valueOf(value: any): any;
29
+ valueOf(value?: any): any;
33
30
  }
@@ -18,7 +18,13 @@ export class SceProvider {
18
18
  * Enables/disables SCE and returns the current value.
19
19
  */
20
20
  enabled: (value?: boolean | undefined, ...args: any[]) => boolean;
21
- $get: (string | (($parse: ng.ParseService, $sceDelegate: any) => any))[];
21
+ $get: (
22
+ | string
23
+ | ((
24
+ $parse: ng.ParseService,
25
+ $sceDelegate: ng.SceDelegateService,
26
+ ) => ng.SceService)
27
+ )[];
22
28
  }
23
29
  export namespace SCE_CONTEXTS {
24
30
  let HTML: string;
@@ -26,7 +32,6 @@ export namespace SCE_CONTEXTS {
26
32
  let MEDIA_URL: string;
27
33
  let URL: string;
28
34
  let RESOURCE_URL: string;
29
- let JS: string;
30
35
  }
31
36
  /**
32
37
  * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict