@angular-wave/angular.ts 0.0.43 → 0.0.44
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/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/animations/module.js +1 -1
- package/src/exts/aria/aria.js +2 -130
- package/src/exts/aria/aria.md +145 -0
- package/src/exts/messages/messages.js +1 -1
- package/src/filters/filter.js +14 -2
- package/src/filters/filters.js +2 -2
- package/src/filters/limit-to.js +11 -4
- package/src/filters/order-by.js +0 -5
- package/src/index.js +2 -1
- package/src/injector.js +1 -1
- package/src/loader.js +60 -60
- package/src/public.js +1 -1
- package/src/router/index.js +1 -1
- package/src/router/params/param-type.js +3 -3
- package/src/router/services.spec.js +3 -3
- package/src/router/state/state-service.js +0 -8
- package/src/types.js +4 -4
- package/tsconfig.json +1 -1
- package/types/filters/filter.d.ts +2 -2
- package/types/filters/filters.d.ts +4 -4
- package/types/filters/limit-to.d.ts +2 -2
- package/types/filters/order-by.d.ts +1 -6
- package/types/public.d.ts +2 -2
- package/types/router/params/param-type.d.ts +3 -3
- package/types/router/state/state-service.d.ts +9 -15
- package/types/types.d.ts +4 -4
- package/types-back/index.d.ts +0 -24
|
@@ -127,11 +127,17 @@ export class StateService {
|
|
|
127
127
|
*/
|
|
128
128
|
state(definition: angular.Ng1StateDeclaration): this;
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* Handler for when [[transitionTo]] is called with an invalid state.
|
|
131
|
+
*
|
|
132
|
+
* Invokes the [[onInvalid]] callbacks, in natural order.
|
|
133
|
+
* Each callback's return value is checked in sequence until one of them returns an instance of TargetState.
|
|
134
|
+
* The results of the callbacks are wrapped in $q.when(), so the callbacks may return promises.
|
|
131
135
|
*
|
|
132
|
-
*
|
|
136
|
+
* If a callback returns an TargetState, then it is used as arguments to $state.transitionTo() and the result returned.
|
|
137
|
+
*
|
|
138
|
+
* @internal
|
|
133
139
|
*/
|
|
134
|
-
|
|
140
|
+
_handleInvalidTargetState(fromPath: any, toState: any): any;
|
|
135
141
|
/**
|
|
136
142
|
* Registers an Invalid State handler
|
|
137
143
|
*
|
|
@@ -157,18 +163,6 @@ export class StateService {
|
|
|
157
163
|
* @returns a function which deregisters the callback
|
|
158
164
|
*/
|
|
159
165
|
onInvalid(callback: Function): any;
|
|
160
|
-
/**
|
|
161
|
-
* Handler for when [[transitionTo]] is called with an invalid state.
|
|
162
|
-
*
|
|
163
|
-
* Invokes the [[onInvalid]] callbacks, in natural order.
|
|
164
|
-
* Each callback's return value is checked in sequence until one of them returns an instance of TargetState.
|
|
165
|
-
* The results of the callbacks are wrapped in $q.when(), so the callbacks may return promises.
|
|
166
|
-
*
|
|
167
|
-
* If a callback returns an TargetState, then it is used as arguments to $state.transitionTo() and the result returned.
|
|
168
|
-
*
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
|
-
_handleInvalidTargetState(fromPath: any, toState: any): any;
|
|
172
166
|
/**
|
|
173
167
|
* Reloads the current state
|
|
174
168
|
*
|
package/types/types.d.ts
CHANGED
|
@@ -23,21 +23,21 @@ export type DirectiveCompileFn = (templateElement: TElement, templateAttributes:
|
|
|
23
23
|
* Link function for an AngularJS directive.
|
|
24
24
|
*/
|
|
25
25
|
export type DirectiveLinkFn = (scope: TScope, instanceElement: TElement, instanceAttributes: TAttributes, controller?: TController, transclude?: TranscludeFunction) => void;
|
|
26
|
-
export type CloneAttachFunction = (clonedElement?: JQLite, scope?: Scope) => any;
|
|
26
|
+
export type CloneAttachFunction = (clonedElement?: import("./shared/jqlite/jqlite").JQLite, scope?: Scope) => any;
|
|
27
27
|
/**
|
|
28
28
|
* This corresponds to $transclude passed to controllers and to the transclude function passed to link functions.
|
|
29
29
|
* https://docs.angularjs.org/api/ng/service/$compile#-controller-
|
|
30
30
|
* http://teropa.info/blog/2015/06/09/transclusion.html
|
|
31
31
|
*/
|
|
32
32
|
export type TranscludeFunction = {
|
|
33
|
-
transcludeWithScope: (arg0: TScope, arg1: CloneAttachFunction, arg2: JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
34
|
-
transcludeWithoutScope: (arg0: CloneAttachFunction | undefined, arg1: JQLite | undefined, arg2: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
33
|
+
transcludeWithScope: (arg0: TScope, arg1: CloneAttachFunction, arg2: import("./shared/jqlite/jqlite").JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
34
|
+
transcludeWithoutScope: (arg0: CloneAttachFunction | undefined, arg1: import("./shared/jqlite/jqlite").JQLite | undefined, arg2: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
35
35
|
/**
|
|
36
36
|
* - Returns true if the specified slot contains content (i.e., one or more DOM nodes)
|
|
37
37
|
*/
|
|
38
38
|
isSlotFilled: (arg0: string) => boolean;
|
|
39
39
|
};
|
|
40
|
-
export type transcludeWithScope = (arg0: TScope, arg1: CloneAttachFunction, arg2: JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
40
|
+
export type transcludeWithScope = (arg0: TScope, arg1: CloneAttachFunction, arg2: import("./shared/jqlite/jqlite").JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
41
41
|
export type transcludeWithoutScope = (arg0: CloneAttachFunction | undefined, arg1: JQLite | undefined, arg2: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
42
42
|
/**
|
|
43
43
|
* Represents the pre and post linking functions of a directive.
|
package/types-back/index.d.ts
CHANGED
|
@@ -600,7 +600,6 @@ declare namespace angular {
|
|
|
600
600
|
* see https://docs.angularjs.org/api/ng/service/$filter
|
|
601
601
|
*/
|
|
602
602
|
interface IFilterService {
|
|
603
|
-
(name: "filter"): IFilterFilter;
|
|
604
603
|
(name: "currency"): IFilterCurrency;
|
|
605
604
|
(name: "number"): IFilterNumber;
|
|
606
605
|
(name: "date"): IFilterDate;
|
|
@@ -616,29 +615,6 @@ declare namespace angular {
|
|
|
616
615
|
<T>(name: string): T;
|
|
617
616
|
}
|
|
618
617
|
|
|
619
|
-
interface IFilterFilter {
|
|
620
|
-
<T>(
|
|
621
|
-
array: T[],
|
|
622
|
-
expression:
|
|
623
|
-
| string
|
|
624
|
-
| IFilterFilterPatternObject
|
|
625
|
-
| IFilterFilterPredicateFunc<T>,
|
|
626
|
-
comparator?: IFilterFilterComparatorFunc<T> | boolean,
|
|
627
|
-
): T[];
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
interface IFilterFilterPatternObject {
|
|
631
|
-
[name: string]: any;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
interface IFilterFilterPredicateFunc<T> {
|
|
635
|
-
(value: T, index: number, array: T[]): boolean;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
interface IFilterFilterComparatorFunc<T> {
|
|
639
|
-
(actual: T, expected: T): boolean;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
618
|
interface IFilterOrderByItem {
|
|
643
619
|
value: any;
|
|
644
620
|
type: string;
|