@angular-wave/angular.ts 0.13.0 → 0.14.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 +1 -1
- package/@types/animations/animation.d.ts +1 -1
- package/@types/core/compile/attributes.d.ts +1 -1
- package/@types/core/di/ng-module/ng-module.d.ts +14 -29
- package/@types/core/filter/filter.d.ts +12 -13
- package/@types/core/scope/interface.d.ts +1 -1
- package/@types/core/scope/scope.d.ts +9 -10
- package/@types/directive/aria/aria.d.ts +3 -3
- package/@types/directive/class/class.d.ts +3 -3
- package/@types/directive/events/events.d.ts +2 -2
- package/@types/directive/form/form.d.ts +12 -2
- package/@types/directive/input/input.d.ts +2 -2
- package/@types/directive/messages/messages.d.ts +1 -1
- package/@types/directive/model/model.d.ts +12 -6
- package/@types/directive/model-options/model-options.d.ts +4 -1
- package/@types/directive/select/select.d.ts +1 -1
- package/@types/directive/style/style.d.ts +2 -2
- package/@types/directive/worker/interface.d.ts +2 -0
- package/@types/directive/worker/worker.d.ts +2 -0
- package/@types/filters/interface.d.ts +7 -1
- package/@types/interface.d.ts +3 -33
- package/@types/namespace.d.ts +35 -10
- package/@types/router/common/trace.d.ts +1 -0
- package/@types/router/directives/view-directive.d.ts +2 -2
- package/@types/router/transition/transition.d.ts +0 -1
- package/@types/router/url/url-config.d.ts +1 -1
- package/@types/router/url/url-rule.d.ts +0 -10
- package/@types/router/url/url-service.d.ts +2 -2
- package/@types/router/view/view.d.ts +0 -16
- package/@types/services/anchor-scroll/anchor-scroll.d.ts +1 -1
- package/@types/services/cookie/cookie.d.ts +2 -0
- package/@types/services/exception/exception.d.ts +1 -1
- package/@types/services/exception/interface.d.ts +2 -1
- package/@types/services/http/http.d.ts +10 -2
- package/@types/services/location/location.d.ts +10 -6
- package/@types/services/pubsub/pubsub.d.ts +2 -1
- package/@types/services/rest/rest.d.ts +4 -8
- package/@types/services/sce/sce.d.ts +1 -1
- package/@types/shared/common.d.ts +1 -1
- package/@types/shared/dom.d.ts +2 -2
- package/@types/shared/hof.d.ts +2 -2
- package/@types/shared/interface.d.ts +1 -0
- package/@types/shared/noderef.d.ts +1 -0
- package/@types/shared/strings.d.ts +6 -8
- package/@types/shared/utils.d.ts +70 -25
- package/LICENSE +1 -0
- package/dist/angular-ts.esm.js +9108 -5782
- package/dist/angular-ts.umd.js +9109 -5783
- package/dist/angular-ts.umd.min.js +1 -1
- package/package.json +1 -6
package/@types/angular.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export class Angular {
|
|
|
129
129
|
modules?: Array<string | any>,
|
|
130
130
|
config?: import("./interface.ts").AngularBootstrapConfig,
|
|
131
131
|
): ng.InjectorService;
|
|
132
|
-
$rootScope:
|
|
132
|
+
$rootScope: ng.Scope;
|
|
133
133
|
$injector: import("./interface.ts").InjectorService;
|
|
134
134
|
/**
|
|
135
135
|
* @param {any[]} modules
|
|
@@ -8,7 +8,7 @@ export class AnimationProvider {
|
|
|
8
8
|
$injector: ng.InjectorService,
|
|
9
9
|
$$rAFScheduler: import("./raf-scheduler.js").RafScheduler,
|
|
10
10
|
$$animateCache: any,
|
|
11
|
-
) => (
|
|
11
|
+
) => (elementParam: any, event: any, options: any) => AnimateRunner)
|
|
12
12
|
)[];
|
|
13
13
|
}
|
|
14
14
|
import { AnimateRunner } from "./runner/animate-runner.js";
|
|
@@ -16,7 +16,7 @@ export class Attributes {
|
|
|
16
16
|
nodeRef?: import("../../shared/noderef.js").NodeRef,
|
|
17
17
|
attributesToCopy?: any,
|
|
18
18
|
);
|
|
19
|
-
$rootScope:
|
|
19
|
+
$rootScope: ng.RootScopeService;
|
|
20
20
|
$animate: import("../../interface.ts").AnimateService;
|
|
21
21
|
$exceptionHandler: import("../../interface.ts").ExceptionHandler;
|
|
22
22
|
$sce: any;
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
/** @private */
|
|
2
|
-
export const INJECTOR_LITERAL: "$injector";
|
|
3
|
-
/** @private */
|
|
4
|
-
export const COMPILE_LITERAL: "$compileProvider";
|
|
5
|
-
/** @private */
|
|
6
|
-
export const ANIMATION_LITERAL: "$animateProvider";
|
|
7
|
-
/** @private */
|
|
8
|
-
export const FILTER_LITERAL: "$filterProvider";
|
|
9
|
-
/** @private */
|
|
10
|
-
export const CONTROLLER_LITERAL: "$controllerProvider";
|
|
11
1
|
/**
|
|
12
2
|
* Modules are collections of application configuration information for components:
|
|
13
3
|
* controllers, directives, filters, etc. They provide recipes for the injector
|
|
14
4
|
* to do the actual instantiation. A module itself has no behaviour but only state.
|
|
15
5
|
* A such, it acts as a data structure between the Angular instance and the injector service.
|
|
16
|
-
*
|
|
17
|
-
* Since this is an internal structure that is exposed only via the Angular instance,
|
|
18
|
-
* it contains no validation of the items it receives. It is up to the instantiator on
|
|
19
|
-
* modules to do the actual validation.
|
|
20
6
|
*/
|
|
21
7
|
export class NgModule {
|
|
22
8
|
/**
|
|
@@ -49,20 +35,19 @@ export class NgModule {
|
|
|
49
35
|
/** @type {!Array.<ng.Injectable<any>>} */
|
|
50
36
|
runBlocks: Array<ng.Injectable<any>>;
|
|
51
37
|
services: any[];
|
|
52
|
-
wasmModules: any[];
|
|
53
38
|
restDefinitions: any[];
|
|
54
39
|
/**
|
|
55
40
|
* @param {string} name
|
|
56
|
-
* @param {any} object
|
|
41
|
+
* @param {any} object - Allows undefined
|
|
57
42
|
* @returns {NgModule}
|
|
58
43
|
*/
|
|
59
44
|
value(name: string, object: any): NgModule;
|
|
60
45
|
/**
|
|
61
46
|
* @param {string} name
|
|
62
|
-
* @param {
|
|
47
|
+
* @param {Object|string|number} object
|
|
63
48
|
* @returns {NgModule}
|
|
64
49
|
*/
|
|
65
|
-
constant(name: string, object: any): NgModule;
|
|
50
|
+
constant(name: string, object: any | string | number): NgModule;
|
|
66
51
|
/**
|
|
67
52
|
*
|
|
68
53
|
* @param {ng.Injectable<any>} configFn
|
|
@@ -118,16 +103,22 @@ export class NgModule {
|
|
|
118
103
|
animation(name: string, animationFactory: ng.Injectable<any>): NgModule;
|
|
119
104
|
/**
|
|
120
105
|
* @param {string} name
|
|
121
|
-
* @param {ng.
|
|
106
|
+
* @param {ng.FilterFactory} filterFn
|
|
122
107
|
* @return {NgModule}
|
|
123
108
|
*/
|
|
124
|
-
filter(name: string, filterFn: ng.
|
|
109
|
+
filter(name: string, filterFn: ng.FilterFactory): NgModule;
|
|
125
110
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
111
|
+
* The $controller service is used by Angular to create new controllers.
|
|
112
|
+
* This provider allows controller registration via the register method.
|
|
113
|
+
*
|
|
114
|
+
* @param {string} name Controller name
|
|
115
|
+
* @param {ng.Injectable<ng.ControllerConstructor>} ctlFn Controller constructor fn (optionally decorated with DI annotations in the array notation)
|
|
128
116
|
* @returns {NgModule}
|
|
129
117
|
*/
|
|
130
|
-
controller(
|
|
118
|
+
controller(
|
|
119
|
+
name: string,
|
|
120
|
+
ctlFn: ng.Injectable<ng.ControllerConstructor>,
|
|
121
|
+
): NgModule;
|
|
131
122
|
/**
|
|
132
123
|
* Register a named WebAssembly module that will be instantiated via $provide.
|
|
133
124
|
*
|
|
@@ -172,12 +163,6 @@ export class NgModule {
|
|
|
172
163
|
scriptPath: string | URL,
|
|
173
164
|
config?: ng.WorkerConfig,
|
|
174
165
|
): NgModule;
|
|
175
|
-
/**
|
|
176
|
-
* @param {string} name
|
|
177
|
-
* @param {Function} ctor
|
|
178
|
-
* @returns {NgModule}
|
|
179
|
-
*/
|
|
180
|
-
session(name: string, ctor: Function): NgModule;
|
|
181
166
|
/**
|
|
182
167
|
* @param {string} name
|
|
183
168
|
* @param {Function} ctor
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* $filterProvider - $filter - provider in module ng
|
|
3
|
+
*
|
|
4
|
+
* Filters are just functions which transform input to an output. However filters need to be Dependency Injected. To achieve this a filter definition consists of a factory function which is annotated with dependencies and is responsible for creating a filter function.
|
|
5
|
+
* @extends {ng.ServiceProvider}
|
|
6
|
+
*/
|
|
1
7
|
export class FilterProvider {
|
|
2
8
|
static $inject: string[];
|
|
3
9
|
/**
|
|
@@ -6,18 +12,11 @@ export class FilterProvider {
|
|
|
6
12
|
constructor($provide: ng.ProvideService);
|
|
7
13
|
$provide: import("../../interface.ts").Provider;
|
|
8
14
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param {
|
|
11
|
-
* @
|
|
15
|
+
* Register a filter a config phase;
|
|
16
|
+
* @param {string} name
|
|
17
|
+
* @param {ng.FilterFactory} factory
|
|
18
|
+
* @return {ng.FilterProvider}
|
|
12
19
|
*/
|
|
13
|
-
register(
|
|
14
|
-
|
|
15
|
-
factory?: ng.FilterService,
|
|
16
|
-
): import("../../interface.ts").Provider;
|
|
17
|
-
$get: (
|
|
18
|
-
| string
|
|
19
|
-
| ((
|
|
20
|
-
$injector: import("../../core/di/internal-injector.js").InjectorService,
|
|
21
|
-
) => ng.FilterService)
|
|
22
|
-
)[];
|
|
20
|
+
register(name: string, factory: ng.FilterFactory): ng.FilterProvider;
|
|
21
|
+
$get: (string | (($injector: ng.InjectorService) => ng.FilterService))[];
|
|
23
22
|
}
|
|
@@ -7,7 +7,7 @@ export interface AsyncQueueTask {
|
|
|
7
7
|
}
|
|
8
8
|
export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
|
|
9
9
|
export interface Listener {
|
|
10
|
-
originalTarget:
|
|
10
|
+
originalTarget: any;
|
|
11
11
|
listenerFn: ListenerFn;
|
|
12
12
|
watchFn: CompiledExpression;
|
|
13
13
|
id: number;
|
|
@@ -10,10 +10,16 @@ export function nextId(): number;
|
|
|
10
10
|
*/
|
|
11
11
|
export function createScope(target?: any, context?: Scope): Scope;
|
|
12
12
|
/**
|
|
13
|
+
* @ignore
|
|
14
|
+
* Checks if a target should be excluded from scope observability
|
|
13
15
|
* @param {any} target
|
|
14
16
|
* @returns {boolean}
|
|
15
17
|
*/
|
|
16
|
-
export function
|
|
18
|
+
export function isNonScope(target: any): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Decorator for excluding objects from scope observability
|
|
21
|
+
*/
|
|
22
|
+
export const NONSCOPE: "$nonscope";
|
|
17
23
|
export const $postUpdateQueue: any[];
|
|
18
24
|
export let rootScope: any;
|
|
19
25
|
export class RootScopeProvider {
|
|
@@ -26,10 +32,6 @@ export class RootScopeProvider {
|
|
|
26
32
|
) => Scope)
|
|
27
33
|
)[];
|
|
28
34
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Decorator for excluding objects from scope observability
|
|
31
|
-
*/
|
|
32
|
-
export const NONSCOPE: "$nonscope";
|
|
33
35
|
/**
|
|
34
36
|
* Scope class for the Proxy. It intercepts operations like property access (get)
|
|
35
37
|
* and property setting (set), and adds support for deep change tracking and
|
|
@@ -84,8 +86,6 @@ export class Scope {
|
|
|
84
86
|
*/
|
|
85
87
|
$root: Scope;
|
|
86
88
|
$parent: Scope;
|
|
87
|
-
/** @type {import('./interface.ts').AsyncQueueTask[]} */
|
|
88
|
-
$$asyncQueue: import("./interface.ts").AsyncQueueTask[];
|
|
89
89
|
filters: any[];
|
|
90
90
|
/** @type {boolean} */
|
|
91
91
|
$$destroyed: boolean;
|
|
@@ -141,17 +141,16 @@ export class Scope {
|
|
|
141
141
|
$new(childInstance: any): any;
|
|
142
142
|
$newIsolate(instance: any): any;
|
|
143
143
|
$transcluded(parentInstance: any): any;
|
|
144
|
-
deregisterForeignKey(key: any, id: any): boolean;
|
|
145
144
|
$eval(expr: any, locals: any): any;
|
|
146
145
|
/**
|
|
147
146
|
* @param {Object} newTarget
|
|
148
147
|
*/
|
|
149
148
|
$merge(newTarget: any): void;
|
|
150
149
|
/**
|
|
151
|
-
* @param {
|
|
150
|
+
* @param {ng.Expression} expr
|
|
152
151
|
* @returns {any}
|
|
153
152
|
*/
|
|
154
|
-
$apply(expr:
|
|
153
|
+
$apply(expr: ng.Expression): any;
|
|
155
154
|
/**
|
|
156
155
|
* @param {string} name
|
|
157
156
|
* @param {Function} listener
|
|
@@ -22,7 +22,7 @@ export class AriaProvider {
|
|
|
22
22
|
$$watchExpr: (
|
|
23
23
|
attrName: any,
|
|
24
24
|
ariaAttr: any,
|
|
25
|
-
|
|
25
|
+
nativeAriaNodeNamesParam: any,
|
|
26
26
|
negate: any,
|
|
27
27
|
) => (scope: any, elem: any, attr: any) => void;
|
|
28
28
|
};
|
|
@@ -83,10 +83,10 @@ export function ngModelAriaDirective($aria: any): {
|
|
|
83
83
|
require: string;
|
|
84
84
|
priority: number;
|
|
85
85
|
compile(
|
|
86
|
-
|
|
86
|
+
_: any,
|
|
87
87
|
attr: any,
|
|
88
88
|
): {
|
|
89
|
-
post(
|
|
89
|
+
post(_: any, elem: any, attrPost: any, ngModel: any): void;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
export namespace ngModelAriaDirective {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const ngClassDirective:
|
|
2
|
-
export const ngClassOddDirective:
|
|
3
|
-
export const ngClassEvenDirective:
|
|
1
|
+
export const ngClassDirective: ng.DirectiveFactory;
|
|
2
|
+
export const ngClassOddDirective: ng.DirectiveFactory;
|
|
3
|
+
export const ngClassEvenDirective: ng.DirectiveFactory;
|
|
@@ -29,6 +29,6 @@ export function createWindowEventDirective(
|
|
|
29
29
|
eventName: string,
|
|
30
30
|
): ng.Directive;
|
|
31
31
|
/**
|
|
32
|
-
* @type {Record<string, ng.
|
|
32
|
+
* @type {Record<string, ng.Injectable<any>>}
|
|
33
33
|
*/
|
|
34
|
-
export const ngEventDirectives: Record<string, ng.
|
|
34
|
+
export const ngEventDirectives: Record<string, ng.Injectable<any>>;
|
|
@@ -243,7 +243,12 @@ export const formDirective: (
|
|
|
243
243
|
formElement: any,
|
|
244
244
|
attr: any,
|
|
245
245
|
) => {
|
|
246
|
-
pre: (
|
|
246
|
+
pre: (
|
|
247
|
+
scope: any,
|
|
248
|
+
formElementParam: any,
|
|
249
|
+
attrParam: any,
|
|
250
|
+
ctrls: any,
|
|
251
|
+
) => void;
|
|
247
252
|
};
|
|
248
253
|
})
|
|
249
254
|
)[];
|
|
@@ -258,7 +263,12 @@ export const ngFormDirective: (
|
|
|
258
263
|
formElement: any,
|
|
259
264
|
attr: any,
|
|
260
265
|
) => {
|
|
261
|
-
pre: (
|
|
266
|
+
pre: (
|
|
267
|
+
scope: any,
|
|
268
|
+
formElementParam: any,
|
|
269
|
+
attrParam: any,
|
|
270
|
+
ctrls: any,
|
|
271
|
+
) => void;
|
|
262
272
|
};
|
|
263
273
|
})
|
|
264
274
|
)[];
|
|
@@ -45,12 +45,12 @@ export function rangeInputType(
|
|
|
45
45
|
ctrl: any,
|
|
46
46
|
): void;
|
|
47
47
|
/**
|
|
48
|
-
* @param {ng.
|
|
48
|
+
* @param {ng.FilterFactory} $filter
|
|
49
49
|
* @param {ng.ParseService} $parse
|
|
50
50
|
* @returns {ng.Directive}
|
|
51
51
|
*/
|
|
52
52
|
export function inputDirective(
|
|
53
|
-
$filter: ng.
|
|
53
|
+
$filter: ng.FilterFactory,
|
|
54
54
|
$parse: ng.ParseService,
|
|
55
55
|
): ng.Directive;
|
|
56
56
|
export namespace inputDirective {
|
|
@@ -37,7 +37,7 @@ declare class NgMessageCtrl {
|
|
|
37
37
|
$animate: ng.AnimateService,
|
|
38
38
|
);
|
|
39
39
|
$element: Element;
|
|
40
|
-
$scope:
|
|
40
|
+
$scope: ng.Scope;
|
|
41
41
|
$attrs: ng.Attributes;
|
|
42
42
|
$animate: import("../../interface.ts").AnimateService;
|
|
43
43
|
latestKey: number;
|
|
@@ -5,7 +5,7 @@ export function ngModelDirective(): {
|
|
|
5
5
|
priority: number;
|
|
6
6
|
compile: (element: Element) => {
|
|
7
7
|
pre: (scope: any, _element: any, attr: any, ctrls: any) => void;
|
|
8
|
-
post: (scope: any,
|
|
8
|
+
post: (scope: any, elementPost: any, _attr: any, ctrls: any) => void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export const ngModelMinErr: (arg0: string, ...arg1: any[]) => Error;
|
|
@@ -72,11 +72,17 @@ export class NgModelController {
|
|
|
72
72
|
$modelValue: any;
|
|
73
73
|
/** @type {any} */
|
|
74
74
|
$$rawModelValue: any;
|
|
75
|
-
|
|
76
|
-
$
|
|
77
|
-
|
|
78
|
-
$
|
|
79
|
-
|
|
75
|
+
/** @type {any} */
|
|
76
|
+
$validators: any;
|
|
77
|
+
/** @type {any} */
|
|
78
|
+
$asyncValidators: any;
|
|
79
|
+
/** @type {Array<any>} */
|
|
80
|
+
$parsers: Array<any>;
|
|
81
|
+
/** @type {Array<any>} */
|
|
82
|
+
$formatters: Array<any>;
|
|
83
|
+
/** @type {Array<any>} */
|
|
84
|
+
$viewChangeListeners: Array<any>;
|
|
85
|
+
/** @type {boolean} */
|
|
80
86
|
$untouched: boolean;
|
|
81
87
|
/** @type {boolean} */
|
|
82
88
|
$touched: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns {ng.Directive}
|
|
3
|
+
*/
|
|
4
|
+
export function ngModelOptionsDirective(): ng.Directive;
|
|
1
5
|
export const defaultModelOptions: ModelOptions;
|
|
2
|
-
export function ngModelOptionsDirective(): import("../../interface.ts").Directive;
|
|
3
6
|
export type ModelOptionsConfig = {
|
|
4
7
|
/**
|
|
5
8
|
* - A string specifying which events the input should be bound to. Multiple events can be set using a space-delimited list. The special event 'default' matches the default events belonging to the control.
|
|
@@ -8,7 +8,7 @@ export function optionDirective($interpolate: any): {
|
|
|
8
8
|
compile(
|
|
9
9
|
element: any,
|
|
10
10
|
attr: any,
|
|
11
|
-
): (scope: any,
|
|
11
|
+
): (scope: any, elemParam: any, attrParam: any) => void;
|
|
12
12
|
};
|
|
13
13
|
export namespace optionDirective {
|
|
14
14
|
let $inject: string[];
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param {ng.ParseService} $parse
|
|
5
5
|
* @param {ng.LogService} $log
|
|
6
|
+
* @param {ng.ExceptionHandlerService} $exceptionHandler
|
|
6
7
|
* @returns {ng.Directive}
|
|
7
8
|
*/
|
|
8
9
|
export function ngWorkerDirective(
|
|
9
10
|
$parse: ng.ParseService,
|
|
10
11
|
$log: ng.LogService,
|
|
12
|
+
$exceptionHandler: ng.ExceptionHandlerService,
|
|
11
13
|
): ng.Directive;
|
|
12
14
|
export namespace ngWorkerDirective {
|
|
13
15
|
let $inject: string[];
|
|
@@ -5,4 +5,10 @@ export type FilterFn = (input: any, ...args: any[]) => any;
|
|
|
5
5
|
/**
|
|
6
6
|
* A filter factory function that returns a FilterFn.
|
|
7
7
|
*/
|
|
8
|
-
export type FilterFactory = (...args: any[]) => FilterFn
|
|
8
|
+
export type FilterFactory = (...args: any[]) => FilterFn & {
|
|
9
|
+
$$moduleName: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A filter service for retrieving filters functions
|
|
13
|
+
*/
|
|
14
|
+
export type FilterService = (name: string) => FilterFn;
|
package/@types/interface.d.ts
CHANGED
|
@@ -15,8 +15,11 @@ export * from "./services/cookie/interface.ts";
|
|
|
15
15
|
export * from "./services/exception/exception.ts";
|
|
16
16
|
export * from "./services/exception/interface.ts";
|
|
17
17
|
export * from "./core/parse/interface.ts";
|
|
18
|
+
export * from "./filters/interface.ts";
|
|
19
|
+
export * from "./core/filter/filter.js";
|
|
18
20
|
import { Attributes } from "./core/compile/attributes.js";
|
|
19
21
|
import { Scope } from "./core/scope/scope.js";
|
|
22
|
+
import { NgModelController } from "./directive/model/model.js";
|
|
20
23
|
/**
|
|
21
24
|
* Configuration options for the AngularTS bootstrap process.
|
|
22
25
|
*
|
|
@@ -450,39 +453,6 @@ export interface NgModelOptions {
|
|
|
450
453
|
/** Whether to remove trailing :00 seconds */
|
|
451
454
|
timeStripZeroSeconds?: boolean;
|
|
452
455
|
}
|
|
453
|
-
/**
|
|
454
|
-
* Controller API for ngModel directive.
|
|
455
|
-
*/
|
|
456
|
-
export interface NgModelController {
|
|
457
|
-
/** Updates the view when the model changes */
|
|
458
|
-
$render(): void;
|
|
459
|
-
/** Sets the validity state of the control */
|
|
460
|
-
$setValidity(validationErrorKey: string, isValid: boolean): void;
|
|
461
|
-
/** Updates the model value */
|
|
462
|
-
$setViewValue(value: any, trigger?: string): void;
|
|
463
|
-
/** Marks the control as pristine */
|
|
464
|
-
$setPristine(): void;
|
|
465
|
-
/** Marks the control as dirty */
|
|
466
|
-
$setDirty(): void;
|
|
467
|
-
/** Re-validates the model */
|
|
468
|
-
$validate(): void;
|
|
469
|
-
/** Marks the control as touched */
|
|
470
|
-
$setTouched(): void;
|
|
471
|
-
/** Marks the control as untouched */
|
|
472
|
-
$setUntouched(): void;
|
|
473
|
-
/** Rolls back to previous view value */
|
|
474
|
-
$rollbackViewValue(): void;
|
|
475
|
-
/** Commits the current view value to the model */
|
|
476
|
-
$commitViewValue(): void;
|
|
477
|
-
/** Processes view-to-model transformations */
|
|
478
|
-
$processModelValue(): void;
|
|
479
|
-
/** Determines if value is considered empty */
|
|
480
|
-
$isEmpty(value: any): boolean;
|
|
481
|
-
/** Overrides the model options dynamically */
|
|
482
|
-
$overrideModelOptions(options: NgModelOptions): void;
|
|
483
|
-
/** Current value shown in the view */
|
|
484
|
-
$viewValue: any;
|
|
485
|
-
}
|
|
486
456
|
export interface RootElementService extends Element {}
|
|
487
457
|
/**
|
|
488
458
|
* The minimal local definitions required by $controller(ctrl, locals) calls.
|
package/@types/namespace.d.ts
CHANGED
|
@@ -20,8 +20,10 @@ import { HttpParamSerializer as THttpParamSerializer } from "./services/http/int
|
|
|
20
20
|
import { HttpParamSerializerProvider as THttpParamSerializerProvider } from "./services/http/http.js";
|
|
21
21
|
import {
|
|
22
22
|
FilterFactory as TFilterFactory,
|
|
23
|
+
FilterService as TFilterService,
|
|
23
24
|
FilterFn as TFilterFn,
|
|
24
25
|
} from "./filters/interface.ts";
|
|
26
|
+
import { FilterProvider as TFilterProvider } from "./core/filter/filter.js";
|
|
25
27
|
import { InterpolateService as TInterpolateService } from "./core/interpolate/interface.ts";
|
|
26
28
|
import { InterpolateProvider as TInterpolateProvider } from "./core/interpolate/interpolate.js";
|
|
27
29
|
import {
|
|
@@ -38,15 +40,21 @@ import {
|
|
|
38
40
|
import {
|
|
39
41
|
Directive as TDirective,
|
|
40
42
|
DirectiveFactory as TDirectiveFactory,
|
|
43
|
+
AnnotatedDirectiveFactory as TAnnotatedDirectiveFactory,
|
|
41
44
|
Component as TComponent,
|
|
42
45
|
Controller as TController,
|
|
46
|
+
ControllerConstructor as TControllerConstructor,
|
|
43
47
|
Injectable as TInjectable,
|
|
48
|
+
Expression as TExpression,
|
|
44
49
|
} from "./interface.ts";
|
|
45
50
|
import {
|
|
46
51
|
SseService as TSseService,
|
|
47
52
|
SseConfig as TSseConfig,
|
|
48
53
|
} from "./services/sse/interface.ts";
|
|
49
|
-
import type {
|
|
54
|
+
import type {
|
|
55
|
+
ErrorHandlingConfig as TErrorHandlingConfig,
|
|
56
|
+
Validator as TValidator,
|
|
57
|
+
} from "./shared/interface.ts";
|
|
50
58
|
import {
|
|
51
59
|
BoundTranscludeFn as TBoundTranscludeFn,
|
|
52
60
|
CompileFn as TCompileFn,
|
|
@@ -80,6 +88,7 @@ import {
|
|
|
80
88
|
} from "./services/rest/interface.ts";
|
|
81
89
|
import { RestService as TRestService } from "./services/rest/rest.js";
|
|
82
90
|
import { ServiceProvider as TServiceProvider } from "./interface.ts";
|
|
91
|
+
import { NgModelController as TNgModelController } from "./directive/model/model.js";
|
|
83
92
|
declare global {
|
|
84
93
|
interface Function {
|
|
85
94
|
$inject?: readonly string[] | undefined;
|
|
@@ -91,18 +100,23 @@ declare global {
|
|
|
91
100
|
type Angular = TAngular;
|
|
92
101
|
type Attributes = TAttributes & Record<string, any>;
|
|
93
102
|
type Directive<TController = any> = TDirective<TController>;
|
|
94
|
-
type DirectiveFactory = TDirectiveFactory;
|
|
95
|
-
type
|
|
103
|
+
type DirectiveFactory = TDirectiveFactory & Function;
|
|
104
|
+
type AnnotatedDirectiveFactory = TAnnotatedDirectiveFactory;
|
|
105
|
+
type Component = TComponent & Record<string, any>;
|
|
96
106
|
type Controller = TController;
|
|
97
|
-
type Scope = TScope
|
|
107
|
+
type Scope = TScope & Record<string, any>;
|
|
98
108
|
type NgModule = TNgModule;
|
|
99
109
|
type PubSubProvider = TPubSubProvider;
|
|
100
|
-
type FilterFn = TFilterFn;
|
|
101
110
|
type CompositeLinkFn = TCompositeLinkFn;
|
|
102
|
-
type PublicLinkFn = TPublicLinkFn
|
|
111
|
+
type PublicLinkFn = TPublicLinkFn & {
|
|
112
|
+
pre: any;
|
|
113
|
+
post: any;
|
|
114
|
+
};
|
|
103
115
|
type NodeLinkFn = TNodeLinkFn;
|
|
104
116
|
type NodeLinkFnCtx = TNodeLinkFnCtx;
|
|
105
|
-
type TranscludeFn = TTranscludeFn
|
|
117
|
+
type TranscludeFn = TTranscludeFn & {
|
|
118
|
+
$$slots: any;
|
|
119
|
+
};
|
|
106
120
|
type BoundTranscludeFn = TBoundTranscludeFn;
|
|
107
121
|
type LinkFnMapping = TLinkFnMapping;
|
|
108
122
|
type AnchorScrollProvider = TAnchorScrollProvider;
|
|
@@ -110,13 +124,18 @@ declare global {
|
|
|
110
124
|
type HttpParamSerializerProvider = THttpParamSerializerProvider;
|
|
111
125
|
type SceProvider = TSceProvider;
|
|
112
126
|
type SceDelegateProvider = TSceDelegateProvider;
|
|
127
|
+
type FilterProvider = TFilterProvider;
|
|
113
128
|
type AnchorScrollService = TAnchorScrollService;
|
|
114
129
|
type AnimateService = TAnimateService;
|
|
115
130
|
type CompileService = TCompileFn;
|
|
116
131
|
type ControllerService = TControllerService;
|
|
117
132
|
type CookieService = TCookieService;
|
|
118
133
|
type ExceptionHandlerService = TExceptionHandler;
|
|
119
|
-
type
|
|
134
|
+
type FilterFn = TFilterFn;
|
|
135
|
+
type FilterFactory = TFilterFactory & {
|
|
136
|
+
$$moduleName: string;
|
|
137
|
+
};
|
|
138
|
+
type FilterService = TFilterService;
|
|
120
139
|
type HttpParamSerializerSerService = THttpParamSerializer;
|
|
121
140
|
type HttpService = THttpService;
|
|
122
141
|
type InterpolateService = TInterpolateService;
|
|
@@ -127,7 +146,7 @@ declare global {
|
|
|
127
146
|
type ProvideService = TProvideService;
|
|
128
147
|
type PubSubService = TPubSub;
|
|
129
148
|
type RootElementService = Element;
|
|
130
|
-
type RootScopeService = TScope
|
|
149
|
+
type RootScopeService = TScope & Record<string, any>;
|
|
131
150
|
type StateService = TStateProvider;
|
|
132
151
|
type SseService = TSseService;
|
|
133
152
|
type SseConfig = TSseConfig;
|
|
@@ -144,15 +163,21 @@ declare global {
|
|
|
144
163
|
T extends
|
|
145
164
|
| ((...args: any[]) => any)
|
|
146
165
|
| (abstract new (...args: any[]) => any),
|
|
147
|
-
> = TInjectable<T
|
|
166
|
+
> = TInjectable<T> & {
|
|
167
|
+
$$moduleName: string;
|
|
168
|
+
};
|
|
148
169
|
type StorageBackend = TStorageBackend;
|
|
149
170
|
type StorageType = TStorageType;
|
|
150
171
|
type StreamConnectionConfig = TStreamConnectionConfig;
|
|
151
172
|
type CookieOptions = TCookieOptions;
|
|
173
|
+
type ControllerConstructor = TControllerConstructor;
|
|
152
174
|
type CookieStoreOptions = TCookieStoreOptions;
|
|
153
175
|
type RestService<T, ID> = TRestService<T, ID>;
|
|
154
176
|
type RestDefinition<T> = TRestDefinition<T>;
|
|
155
177
|
type EntityClass<T> = TEntityClass<T>;
|
|
156
178
|
type ServiceProvider = TServiceProvider;
|
|
179
|
+
type Expression = TExpression;
|
|
180
|
+
type NgModelController = TNgModelController;
|
|
181
|
+
type Validator = TValidator;
|
|
157
182
|
}
|
|
158
183
|
}
|
|
@@ -4,7 +4,7 @@ export function $ViewDirectiveFill(
|
|
|
4
4
|
$transitions: any,
|
|
5
5
|
): {
|
|
6
6
|
priority: number;
|
|
7
|
-
compile
|
|
7
|
+
compile(tElement: any): (scope: any, $element: any) => void;
|
|
8
8
|
};
|
|
9
9
|
export namespace $ViewDirectiveFill {
|
|
10
10
|
let $inject: string[];
|
|
@@ -135,4 +135,4 @@ export namespace $ViewDirectiveFill {
|
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
137
|
/** @type {import("../../interface.ts").AnnotatedDirectiveFactory} */
|
|
138
|
-
export
|
|
138
|
+
export const ngView: import("../../interface.ts").AnnotatedDirectiveFactory;
|
|
@@ -20,7 +20,7 @@ export class UrlConfigProvider {
|
|
|
20
20
|
_isStrictMode: boolean;
|
|
21
21
|
/** @type {boolean} */
|
|
22
22
|
_defaultSquashPolicy: boolean;
|
|
23
|
-
$get: (
|
|
23
|
+
$get: () => this;
|
|
24
24
|
/**
|
|
25
25
|
* Defines whether URL matching should be case sensitive (the default behavior), or not.
|
|
26
26
|
*
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a [[UrlRule]]
|
|
3
|
-
*
|
|
4
|
-
* Creates a [[UrlRule]] from a:
|
|
5
|
-
*
|
|
6
|
-
* - `string`
|
|
7
|
-
* - [[UrlMatcher]]
|
|
8
|
-
* - `RegExp`
|
|
9
|
-
* - [[StateObject]]
|
|
10
|
-
*/
|
|
11
1
|
export class UrlRuleFactory {
|
|
12
2
|
/**
|
|
13
3
|
* @param {import('../url/url-service.js').UrlService} urlService
|
|
@@ -231,11 +231,11 @@ export class UrlService {
|
|
|
231
231
|
/**
|
|
232
232
|
* Creates a [[UrlMatcher]] for the specified pattern.
|
|
233
233
|
*
|
|
234
|
-
* @param
|
|
234
|
+
* @param urlPattern The URL pattern.
|
|
235
235
|
* @param config The config object hash.
|
|
236
236
|
* @returns The UrlMatcher.
|
|
237
237
|
*/
|
|
238
|
-
compile(
|
|
238
|
+
compile(urlPattern: any, config: any): UrlMatcher;
|
|
239
239
|
/**
|
|
240
240
|
* Returns true if the specified object is a [[UrlMatcher]], or false otherwise.
|
|
241
241
|
*
|