@angular-wave/angular.ts 0.9.9 → 0.10.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 (44) hide show
  1. package/@types/angular.d.ts +2 -2
  2. package/@types/animations/animate-js.d.ts +1 -1
  3. package/@types/animations/animate-queue.d.ts +0 -1
  4. package/@types/animations/animate-swap.d.ts +2 -4
  5. package/@types/animations/animate.d.ts +2 -2
  6. package/@types/animations/raf-scheduler.d.ts +4 -4
  7. package/@types/animations/shared.d.ts +30 -2
  8. package/@types/core/compile/attributes.d.ts +5 -8
  9. package/@types/core/compile/compile.d.ts +4 -4
  10. package/@types/core/controller/controller.d.ts +1 -1
  11. package/@types/core/di/ng-module.d.ts +14 -14
  12. package/@types/core/scope/interface.d.ts +18 -0
  13. package/@types/core/scope/scope.d.ts +16 -97
  14. package/@types/directive/aria/aria.d.ts +11 -13
  15. package/@types/directive/attrs/attrs.d.ts +2 -2
  16. package/@types/directive/events/events.d.ts +0 -2
  17. package/@types/directive/http/http.d.ts +4 -22
  18. package/@types/directive/if/if.d.ts +2 -4
  19. package/@types/directive/include/include.d.ts +2 -2
  20. package/@types/directive/messages/messages.d.ts +3 -3
  21. package/@types/directive/observe/observe.d.ts +2 -5
  22. package/@types/directive/worker/worker.d.ts +15 -0
  23. package/@types/interface.d.ts +5 -5
  24. package/@types/namespace.d.ts +7 -1
  25. package/@types/router/directives/view-directive.d.ts +2 -2
  26. package/@types/router/path/path-utils.d.ts +2 -2
  27. package/@types/router/state/state-object.d.ts +6 -6
  28. package/@types/router/state/state-service.d.ts +3 -3
  29. package/@types/router/transition/hook-builder.d.ts +1 -1
  30. package/@types/router/transition/interface.d.ts +1 -12
  31. package/@types/router/transition/transition-hook.d.ts +31 -0
  32. package/@types/router/transition/transition-service.d.ts +1 -1
  33. package/@types/router/transition/transition.d.ts +2 -2
  34. package/@types/services/pubsub/pubsub.d.ts +2 -2
  35. package/@types/services/sse/interface.d.ts +27 -1
  36. package/@types/services/sse/sse.d.ts +4 -3
  37. package/@types/services/worker/interface.d.ts +12 -0
  38. package/@types/services/worker/worker.d.ts +31 -0
  39. package/@types/shared/url-utils/url-utils.d.ts +14 -14
  40. package/README.md +1 -1
  41. package/dist/angular-ts.esm.js +1317 -1032
  42. package/dist/angular-ts.umd.js +1317 -1032
  43. package/dist/angular-ts.umd.min.js +1 -1
  44. package/package.json +1 -1
@@ -118,14 +118,14 @@ export class Angular {
118
118
  * @param {string} name The name of the module to create or retrieve.
119
119
  * @param {Array.<string>} [requires] If specified then new module is being created. If
120
120
  * unspecified then the module is being retrieved for further configuration.
121
- * @param {import("./interface.js").Injectable<any>} [configFn] Optional configuration function for the module that gets
121
+ * @param {import("./interface.ts").Injectable<any>} [configFn] Optional configuration function for the module that gets
122
122
  * passed to {@link NgModule.config NgModule.config()}.
123
123
  * @returns {NgModule} A newly registered module.
124
124
  */
125
125
  module(
126
126
  name: string,
127
127
  requires?: Array<string>,
128
- configFn?: import("./interface.js").Injectable<any>,
128
+ configFn?: import("./interface.ts").Injectable<any>,
129
129
  ): NgModule;
130
130
  }
131
131
  import { getController } from "./shared/dom.js";
@@ -4,7 +4,7 @@ export class AnimateJsProvider {
4
4
  $get: (
5
5
  | string
6
6
  | ((
7
- $injector: any,
7
+ $injector: ng.InjectorService,
8
8
  $$AnimateRunner: any,
9
9
  ) => (
10
10
  element: any,
@@ -19,7 +19,6 @@ export class AnimateQueueProvider {
19
19
  off(event: any, container: any, callback: any, ...args: any[]): void;
20
20
  pin(element: any, parentElement: any): void;
21
21
  push(element: any, event: any, options: any, domOperation: any): any;
22
- enabled(element: any, bool: any, ...args: any[]): any;
23
22
  })
24
23
  )[];
25
24
  }
@@ -1,9 +1,7 @@
1
1
  /**
2
- * @returns {import('../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngAnimateSwapDirective(
5
- $animate: any,
6
- ): import("../interface.ts").Directive;
4
+ export function ngAnimateSwapDirective($animate: any): ng.Directive;
7
5
  export namespace ngAnimateSwapDirective {
8
6
  let $inject: string[];
9
7
  }
@@ -291,14 +291,14 @@ export class AnimateProvider {
291
291
  *
292
292
  * @param {Element} element - the element which will be inserted into the DOM
293
293
  * @param {Element} parent - the parent element which will append the element as a child (so long as the after element is not present)
294
- * @param {Element} after - after the sibling element after which the element will be appended
294
+ * @param {Element} [after] - after the sibling element after which the element will be appended
295
295
  * @param {AnimationOptions} [options] - an optional collection of options/styles that will be applied to the element.
296
296
  * @returns {import('./animate-runner.js').AnimateRunner} the animation runner
297
297
  */
298
298
  enter(
299
299
  element: Element,
300
300
  parent: Element,
301
- after: Element,
301
+ after?: Element,
302
302
  options?: AnimationOptions,
303
303
  ): import("./animate-runner.js").AnimateRunner;
304
304
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @typedef {import('./interface.js').RafScheduler} RafScheduler
3
- * @typedef {import('../interface.js').ServiceProvider} ServiceProvider
2
+ * @typedef {import('./interface.ts').RafScheduler} RafScheduler
3
+ * @typedef {import('../interface.ts').ServiceProvider} ServiceProvider
4
4
  */
5
5
  /**
6
6
  * Service provider that creates a requestAnimationFrame-based scheduler.
@@ -33,5 +33,5 @@ export class RafSchedulerProvider {
33
33
  */
34
34
  $get(): RafScheduler;
35
35
  }
36
- export type RafScheduler = import("./interface.js").RafScheduler;
37
- export type ServiceProvider = import("../interface.js").ServiceProvider;
36
+ export type RafScheduler = import("./interface.ts").RafScheduler;
37
+ export type ServiceProvider = import("../interface.ts").ServiceProvider;
@@ -24,8 +24,36 @@ export function applyAnimationClassesFactory(): (
24
24
  ) => void;
25
25
  export function prepareAnimationOptions(options: any): any;
26
26
  export function applyAnimationStyles(element: any, options: any): void;
27
- export function applyAnimationFromStyles(element: any, options: any): void;
28
- export function applyAnimationToStyles(element: any, options: any): void;
27
+ /**
28
+ * Applies initial animation styles to a DOM element.
29
+ *
30
+ * This function sets the element's inline styles using the properties
31
+ * defined in `options.from`, then clears the property to prevent reuse.
32
+ *
33
+ * @param {HTMLElement} element - The target DOM element to apply styles to.
34
+ * @param {{ from?: Partial<CSSStyleDeclaration> | null }} options - options containing a `from` object with CSS property–value pairs.
35
+ */
36
+ export function applyAnimationFromStyles(
37
+ element: HTMLElement,
38
+ options: {
39
+ from?: Partial<CSSStyleDeclaration> | null;
40
+ },
41
+ ): void;
42
+ /**
43
+ * Applies final animation styles to a DOM element.
44
+ *
45
+ * This function sets the element's inline styles using the properties
46
+ * defined in `options.to`, then clears the property to prevent reuse.
47
+ *
48
+ * @param {HTMLElement} element - The target DOM element to apply styles to.
49
+ * @param {{ to?: Partial<CSSStyleDeclaration> | null }} options - options containing a `from` object with CSS property–value pairs.
50
+ */
51
+ export function applyAnimationToStyles(
52
+ element: HTMLElement,
53
+ options: {
54
+ to?: Partial<CSSStyleDeclaration> | null;
55
+ },
56
+ ): void;
29
57
  export function mergeAnimationDetails(
30
58
  element: any,
31
59
  oldAnimation: any,
@@ -1,20 +1,17 @@
1
- /**
2
- * @implements {Record<string, any>}
3
- */
4
- export class Attributes implements Record<string, any> {
1
+ export class Attributes {
5
2
  static $nonscope: boolean;
6
3
  /**
7
- * @param {import('../scope/scope.js').Scope} $rootScope
4
+ * @param {ng.Scope} $rootScope
8
5
  * @param {*} $animate
9
- * @param {import("../../services/exception/exception-handler.js").ErrorHandler} $exceptionHandler
6
+ * @param {ng.ExceptionHandlerService} $exceptionHandler
10
7
  * @param {*} $sce
11
8
  * @param {import("../../shared/noderef.js").NodeRef} [nodeRef]
12
9
  * @param {Object} [attributesToCopy]
13
10
  */
14
11
  constructor(
15
- $rootScope: import("../scope/scope.js").Scope,
12
+ $rootScope: ng.Scope,
16
13
  $animate: any,
17
- $exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
14
+ $exceptionHandler: ng.ExceptionHandlerService,
18
15
  $sce: any,
19
16
  nodeRef?: import("../../shared/noderef.js").NodeRef,
20
17
  attributesToCopy?: any,
@@ -2,11 +2,11 @@ export const DirectiveSuffix: "Directive";
2
2
  export class CompileProvider {
3
3
  static $inject: string[];
4
4
  /**
5
- * @param {import('../../interface.js').Provider} $provide
5
+ * @param {import('../../interface.ts').Provider} $provide
6
6
  * @param {import('../sanitize/sanitize-uri.js').SanitizeUriProvider} $$sanitizeUriProvider
7
7
  */
8
8
  constructor(
9
- $provide: import("../../interface.js").Provider,
9
+ $provide: import("../../interface.ts").Provider,
10
10
  $$sanitizeUriProvider: import("../sanitize/sanitize-uri.js").SanitizeUriProvider,
11
11
  );
12
12
  /**
@@ -26,7 +26,7 @@ export class CompileProvider {
26
26
  /**
27
27
  * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
28
28
  * or an object map of components where the keys are the names and the values are the component definition objects.
29
- * @param {import("../../interface.js").Component} options Component definition object (a simplified
29
+ * @param {import("../../interface.ts").Component} options Component definition object (a simplified
30
30
  * {directive definition object}),
31
31
  * with the following properties (all optional):
32
32
  *
@@ -69,7 +69,7 @@ export class CompileProvider {
69
69
  */
70
70
  component: (
71
71
  name: string | any,
72
- options: import("../../interface.js").Component,
72
+ options: import("../../interface.ts").Component,
73
73
  ) => CompileProvider;
74
74
  /**
75
75
  * Retrieves or overrides the default regular expression that is used for determining trusted safe
@@ -35,7 +35,7 @@ export class ControllerProvider {
35
35
  | string
36
36
  | ((
37
37
  $injector: import("../../core/di/internal-injector.js").InjectorService,
38
- ) => import("./interface.js").ControllerService)
38
+ ) => import("./interface.ts").ControllerService)
39
39
  )[];
40
40
  /**
41
41
  * Adds an identifier to the controller instance in the given locals' scope.
@@ -22,12 +22,12 @@ export class NgModule {
22
22
  /**
23
23
  * @param {string} name - Name of the module
24
24
  * @param {Array<string>} requires - List of modules which the injector will load before the current module
25
- * @param {import("../../interface.js").Injectable<any>} [configFn]
25
+ * @param {import("../../interface.ts").Injectable<any>} [configFn]
26
26
  */
27
27
  constructor(
28
28
  name: string,
29
29
  requires: Array<string>,
30
- configFn?: import("../../interface.js").Injectable<any>,
30
+ configFn?: import("../../interface.ts").Injectable<any>,
31
31
  );
32
32
  /**
33
33
  * Name of the current module.
@@ -46,8 +46,8 @@ export class NgModule {
46
46
  invokeQueue: Array<Array<any>>;
47
47
  /** @type {!Array<Array<*>>} */
48
48
  configBlocks: Array<Array<any>>;
49
- /** @type {!Array.<import("../../interface.js").Injectable<any>>} */
50
- runBlocks: Array<import("../../interface.js").Injectable<any>>;
49
+ /** @type {!Array.<import("../../interface.ts").Injectable<any>>} */
50
+ runBlocks: Array<import("../../interface.ts").Injectable<any>>;
51
51
  services: any[];
52
52
  /**
53
53
  * @param {string} name
@@ -110,47 +110,47 @@ export class NgModule {
110
110
  ): NgModule;
111
111
  /**
112
112
  * @param {string} name
113
- * @param {import("../../interface.js").Injectable<any>} decorFn
113
+ * @param {import("../../interface.ts").Injectable<any>} decorFn
114
114
  * @returns {NgModule}
115
115
  */
116
116
  decorator(
117
117
  name: string,
118
- decorFn: import("../../interface.js").Injectable<any>,
118
+ decorFn: import("../../interface.ts").Injectable<any>,
119
119
  ): NgModule;
120
120
  /**
121
121
  * @param {string} name
122
- * @param {import("../../interface.js").Injectable<any>} directiveFactory
122
+ * @param {import("../../interface.ts").Injectable<any>} directiveFactory
123
123
  * @returns {NgModule}
124
124
  */
125
125
  directive(
126
126
  name: string,
127
- directiveFactory: import("../../interface.js").Injectable<any>,
127
+ directiveFactory: import("../../interface.ts").Injectable<any>,
128
128
  ): NgModule;
129
129
  /**
130
130
  * @param {string} name
131
- * @param {import("../../interface.js").Injectable<any>} animationFactory
131
+ * @param {import("../../interface.ts").Injectable<any>} animationFactory
132
132
  * @returns {NgModule}
133
133
  */
134
134
  animation(
135
135
  name: string,
136
- animationFactory: import("../../interface.js").Injectable<any>,
136
+ animationFactory: import("../../interface.ts").Injectable<any>,
137
137
  ): NgModule;
138
138
  /**
139
139
  * @param {string} name
140
- * @param {import("../../interface.js").Injectable<any>} filterFn
140
+ * @param {import("../../interface.ts").Injectable<any>} filterFn
141
141
  * @return {NgModule}
142
142
  */
143
143
  filter(
144
144
  name: string,
145
- filterFn: import("../../interface.js").Injectable<any>,
145
+ filterFn: import("../../interface.ts").Injectable<any>,
146
146
  ): NgModule;
147
147
  /**
148
148
  * @param {string} name
149
- * @param {import("../../interface.js").Injectable<any>} ctlFn
149
+ * @param {import("../../interface.ts").Injectable<any>} ctlFn
150
150
  * @returns {NgModule}
151
151
  */
152
152
  controller(
153
153
  name: string,
154
- ctlFn: import("../../interface.js").Injectable<any>,
154
+ ctlFn: import("../../interface.ts").Injectable<any>,
155
155
  ): NgModule;
156
156
  }
@@ -0,0 +1,18 @@
1
+ import type { CompiledExpression } from "../parse/interface.ts";
2
+ import { Scope } from "./scope.js";
3
+ export interface AsyncQueueTask {
4
+ handler: Scope;
5
+ fn: (...args: any[]) => any;
6
+ locals: Record<string, any>;
7
+ }
8
+ export type ListenerFunction = (newValue: any, originalTarget: object) => void;
9
+ export interface Listener {
10
+ originalTarget: object;
11
+ listenerFn: ListenerFunction;
12
+ watchFn: CompiledExpression;
13
+ id: number;
14
+ scopeId: number;
15
+ property: string[];
16
+ watchProp?: string;
17
+ foreignListener?: ProxyConstructor;
18
+ }
@@ -9,42 +9,17 @@ export function nextId(): number;
9
9
  * or the original value if the target is not an object.
10
10
  */
11
11
  export function createScope(target?: any, context?: Scope): Scope;
12
- /**
13
- * @typedef {Object} AsyncQueueTask
14
- * @property {Scope} handler
15
- * @property {Function} fn
16
- * @property {Object} locals
17
- */
18
12
  export const $postUpdateQueue: any[];
19
13
  export class RootScopeProvider {
20
14
  rootScope: Scope;
21
15
  $get: (
22
16
  | string
23
17
  | ((
24
- exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
25
- parse: import("../parse/interface.ts").ParseService,
18
+ exceptionHandler: ng.ExceptionHandlerService,
19
+ parse: ng.ParseService,
26
20
  ) => Scope)
27
21
  )[];
28
22
  }
29
- /**
30
- * Listener function definition.
31
- * @typedef {Object} Listener
32
- * @property {Object} originalTarget - The original target object.
33
- * @property {ListenerFunction} listenerFn - The function invoked when changes are detected.
34
- * @property {import("../parse/interface.ts").CompiledExpression} watchFn
35
- * @property {number} id - Deregistration id
36
- * @property {number} scopeId - The scope that created the Listener
37
- * @property {string[]} property
38
- * @property {string} [watchProp] - The original property to watch if different from observed key
39
- * @property {Proxy} [foreignListener]
40
- *
41
- */
42
- /**
43
- * Listener function type.
44
- * @callback ListenerFunction
45
- * @param {*} newValue - The new value of the changed property.
46
- * @param {Object} originalTarget - The original target object.
47
- */
48
23
  /**
49
24
  * Decorator for excluding objects from scope observability
50
25
  */
@@ -64,12 +39,12 @@ export class Scope {
64
39
  */
65
40
  constructor(context?: Scope, parent?: Scope);
66
41
  context: Scope;
67
- /** @type {Map<string, Array<Listener>>} Watch listeners */
68
- watchers: Map<string, Array<Listener>>;
42
+ /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners */
43
+ watchers: Map<string, Array<import("./interface.ts").Listener>>;
69
44
  /** @type {Map<String, Function[]>} Event listeners */
70
45
  $$listeners: Map<string, Function[]>;
71
- /** @type {Map<string, Array<Listener>>} Watch listeners from other proxies */
72
- foreignListeners: Map<string, Array<Listener>>;
46
+ /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
47
+ foreignListeners: Map<string, Array<import("./interface.ts").Listener>>;
73
48
  /** @type {Set<ProxyConstructor>} */
74
49
  foreignProxies: Set<ProxyConstructor>;
75
50
  /** @type {WeakMap<Object, Array<string>>} */
@@ -103,12 +78,14 @@ export class Scope {
103
78
  */
104
79
  $root: Scope;
105
80
  $parent: Scope;
106
- /** @type {AsyncQueueTask[]} */
107
- $$asyncQueue: AsyncQueueTask[];
81
+ /** @type {import('./interface.ts').AsyncQueueTask[]} */
82
+ $$asyncQueue: import("./interface.ts").AsyncQueueTask[];
108
83
  filters: any[];
109
84
  /** @type {boolean} */
110
85
  $$destroyed: boolean;
111
86
  scheduled: any[];
87
+ /** @private */
88
+ private propertyMap;
112
89
  /**
113
90
  * Intercepts and handles property assignments on the target object. If a new value is
114
91
  * an object, it will be recursively proxied.
@@ -140,56 +117,34 @@ export class Scope {
140
117
  property: string | number | symbol,
141
118
  proxy: ProxyConstructor,
142
119
  ): any;
143
- propertyMap: {
144
- $watch: any;
145
- $new: any;
146
- $newIsolate: any;
147
- $destroy: any;
148
- $eval: any;
149
- $apply: any;
150
- $postUpdate: any;
151
- $isRoot: any;
152
- $target: any;
153
- $proxy: any;
154
- $on: any;
155
- $emit: any;
156
- $broadcast: any;
157
- $transcluded: any;
158
- $handler: Scope;
159
- $parent: Scope;
160
- $root: Scope;
161
- $children: Scope[];
162
- $id: number;
163
- $merge: any;
164
- $getById: any;
165
- };
166
120
  deleteProperty(target: any, property: any): boolean;
167
121
  /**
168
122
  * Registers a watcher for a property along with a listener function. The listener
169
123
  * function is invoked when changes to that property are detected.
170
124
  *
171
125
  * @param {string} watchProp - An expression to be watched in the context of this model.
172
- * @param {ListenerFunction} [listenerFn] - A function to execute when changes are detected on watched context.
126
+ * @param {import('./interface.ts').ListenerFunction} [listenerFn] - A function to execute when changes are detected on watched context.
173
127
  * @param {boolean} [lazy] - A flag to indicate if the listener should be invoked immediately. Defaults to false.
174
128
  */
175
129
  $watch(
176
130
  watchProp: string,
177
- listenerFn?: ListenerFunction,
131
+ listenerFn?: import("./interface.ts").ListenerFunction,
178
132
  lazy?: boolean,
179
133
  ): () => void;
180
134
  $new(childInstance: any): any;
181
135
  $newIsolate(instance: any): any;
182
136
  $transcluded(parentInstance: any): any;
137
+ deregisterForeignKey(key: any, id: any): boolean;
183
138
  $eval(expr: any, locals: any): any;
184
139
  /**
185
140
  * @param {Object} newTarget
186
141
  */
187
142
  $merge(newTarget: any): void;
188
143
  /**
189
- * @param {import('../../interface.js').Expression} expr
144
+ * @param {import('../../interface.ts').Expression} expr
190
145
  * @returns {any}
191
146
  */
192
- $apply(expr: import("../../interface.js").Expression): any;
147
+ $apply(expr: import("../../interface.ts").Expression): any;
193
148
  /**
194
149
  * @param {string} name
195
150
  * @param {Function} listener
@@ -213,6 +168,7 @@ export class Scope {
213
168
  */
214
169
  $postUpdate(fn: Function): void;
215
170
  $destroy(): void;
171
+ $flushQueue(): void;
216
172
  /**
217
173
  * Searches the scope instance
218
174
  *
@@ -222,40 +178,3 @@ export class Scope {
222
178
  $getById(id: string | number): Scope | undefined;
223
179
  #private;
224
180
  }
225
- export type AsyncQueueTask = {
226
- handler: Scope;
227
- fn: Function;
228
- locals: any;
229
- };
230
- /**
231
- * Listener function definition.
232
- */
233
- export type Listener = {
234
- /**
235
- * - The original target object.
236
- */
237
- originalTarget: any;
238
- /**
239
- * - The function invoked when changes are detected.
240
- */
241
- listenerFn: ListenerFunction;
242
- watchFn: import("../parse/interface.ts").CompiledExpression;
243
- /**
244
- * - Deregistration id
245
- */
246
- id: number;
247
- /**
248
- * - The scope that created the Listener
249
- */
250
- scopeId: number;
251
- property: string[];
252
- /**
253
- * - The original property to watch if different from observed key
254
- */
255
- watchProp?: string;
256
- foreignListener?: ProxyConstructor;
257
- };
258
- /**
259
- * Listener function type.
260
- */
261
- export type ListenerFunction = (newValue: any, originalTarget: any) => any;
@@ -36,21 +36,19 @@ export namespace ngShowAriaDirective {
36
36
  let $inject_1: string[];
37
37
  export { $inject_1 as $inject };
38
38
  }
39
- export function ngMessagesAriaDirective(): {
40
- restrict: string;
41
- require: string;
42
- link(_scope: any, elem: any, attr: any): void;
43
- };
39
+ /**
40
+ * @return {ng.Directive}
41
+ */
42
+ export function ngMessagesAriaDirective(): ng.Directive;
43
+ /**
44
+ * @param $aria
45
+ * @param {ng.ParseService} $parse
46
+ * @return {ng.Directive}
47
+ */
44
48
  export function ngClickAriaDirective(
45
49
  $aria: any,
46
- $parse: any,
47
- ): {
48
- restrict: string;
49
- compile(
50
- _elem: any,
51
- attr: any,
52
- ): (scope: any, elem: Element, attr: any) => void;
53
- };
50
+ $parse: ng.ParseService,
51
+ ): ng.Directive;
54
52
  export namespace ngClickAriaDirective {
55
53
  let $inject_2: string[];
56
54
  export { $inject_2 as $inject };
@@ -1,8 +1,8 @@
1
1
  export const REGEX_STRING_REGEXP: RegExp;
2
2
  /**
3
- * @type {Record<string, import("../../interface.js").DirectiveFactory>}
3
+ * @type {Record<string, import("../../interface.ts").DirectiveFactory>}
4
4
  */
5
5
  export const ngAttributeAliasDirectives: Record<
6
6
  string,
7
- import("../../interface.js").DirectiveFactory
7
+ import("../../interface.ts").DirectiveFactory
8
8
  >;
@@ -2,7 +2,6 @@
2
2
  *
3
3
  * @param {ng.ParseService} $parse
4
4
  * @param {ng.ExceptionHandlerService} $exceptionHandler
5
- * @param {ng.WindowService} $window
6
5
  * @param {string} directiveName
7
6
  * @param {string} eventName
8
7
  * @returns {ng.Directive}
@@ -10,7 +9,6 @@
10
9
  export function createEventDirective(
11
10
  $parse: ng.ParseService,
12
11
  $exceptionHandler: ng.ExceptionHandlerService,
13
- $window: ng.WindowService,
14
12
  directiveName: string,
15
13
  eventName: string,
16
14
  ): ng.Directive;
@@ -1,29 +1,12 @@
1
- /**
2
- * @typedef {"click" | "change" | "submit"} EventType
3
- */
4
1
  /**
5
2
  * Selects DOM event to listen for based on the element type.
6
3
  *
7
4
  * @param {Element} element - The DOM element to inspect.
8
- * @returns {EventType} The name of the event to listen for.
9
- */
10
- export function getEventNameForElement(element: Element): EventType;
11
- /**
12
- * Handles DOM manipulation based on a swap strategy and server-rendered HTML.
13
- *
14
- * @param {string} html - The HTML string returned from the server.
15
- * @param {import("./interface.ts").SwapModeType} swap
16
- * @param {Element} target - The target DOM element to apply the swap to.
17
- * @param {ng.Scope} scope
18
- * @param {ng.CompileService} $compile
5
+ * @returns {"click" | "change" | "submit"} The name of the event to listen for.
19
6
  */
20
- export function handleSwapResponse(
21
- html: string,
22
- swap: import("./interface.ts").SwapModeType,
23
- target: Element,
24
- scope: ng.Scope,
25
- $compile: ng.CompileService,
26
- ): void;
7
+ export function getEventNameForElement(
8
+ element: Element,
9
+ ): "click" | "change" | "submit";
27
10
  /**
28
11
  * Creates an HTTP directive factory that supports GET, DELETE, POST, PUT.
29
12
  *
@@ -45,4 +28,3 @@ export const ngPostDirective: ng.DirectiveFactory;
45
28
  export const ngPutDirective: ng.DirectiveFactory;
46
29
  /** @type {ng.DirectiveFactory} */
47
30
  export const ngSseDirective: ng.DirectiveFactory;
48
- export type EventType = "click" | "change" | "submit";
@@ -1,10 +1,8 @@
1
1
  /**
2
2
  * @param {*} $animate
3
- * @returns {import("../../interface.ts").Directive}
3
+ * @returns {ng.Directive}
4
4
  */
5
- export function ngIfDirective(
6
- $animate: any,
7
- ): import("../../interface.ts").Directive;
5
+ export function ngIfDirective($animate: any): ng.Directive;
8
6
  export namespace ngIfDirective {
9
7
  let $inject: string[];
10
8
  }
@@ -4,14 +4,14 @@
4
4
  * @param {import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
5
5
  * @param {*} $animate
6
6
  * @param {import('../../services/exception/interface.ts').ErrorHandler} $exceptionHandler
7
- * @returns {import('../../interface.js').Directive}
7
+ * @returns {import('../../interface.ts').Directive}
8
8
  */
9
9
  export function ngIncludeDirective(
10
10
  $templateRequest: any,
11
11
  $anchorScroll: import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction,
12
12
  $animate: any,
13
13
  $exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler,
14
- ): import("../../interface.js").Directive;
14
+ ): import("../../interface.ts").Directive;
15
15
  export namespace ngIncludeDirective {
16
16
  let $inject: string[];
17
17
  }
@@ -20,13 +20,13 @@ export namespace ngMessagesIncludeDirective {
20
20
  }
21
21
  export const ngMessageDirective: (
22
22
  any: any,
23
- ) => import("../../interface.js").Directive;
23
+ ) => import("../../interface.ts").Directive;
24
24
  export const ngMessageExpDirective: (
25
25
  any: any,
26
- ) => import("../../interface.js").Directive;
26
+ ) => import("../../interface.ts").Directive;
27
27
  export const ngMessageDefaultDirective: (
28
28
  any: any,
29
- ) => import("../../interface.js").Directive;
29
+ ) => import("../../interface.ts").Directive;
30
30
  declare class NgMessageCtrl {
31
31
  /**
32
32
  * @param {Element} $element
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * @param {string} source - the name of the attribute to be observed
3
3
  * @param {string} prop - the scope property to be updated with attribute value
4
- * @returns {import("../../interface.ts").Directive}
4
+ * @returns {ng.Directive}
5
5
  */
6
- export function ngObserveDirective(
7
- source: string,
8
- prop: string,
9
- ): import("../../interface.ts").Directive;
6
+ export function ngObserveDirective(source: string, prop: string): ng.Directive;