@angular-wave/angular.ts 0.0.38 → 0.0.39

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 (151) hide show
  1. package/Makefile +6 -5
  2. package/dist/angular-ts.esm.js +2 -1
  3. package/dist/angular-ts.umd.js +1 -1
  4. package/package.json +2 -4
  5. package/rollup.config.js +5 -1
  6. package/src/core/scope/scope.js +4 -7
  7. package/src/index.js +307 -1
  8. package/src/loader.js +13 -6
  9. package/src/public.js +7 -2
  10. package/src/src.test.js +10 -0
  11. package/tsconfig.json +1 -1
  12. package/tsconfig.types.json +11 -0
  13. package/types/animations/animate-cache.d.ts +7 -7
  14. package/types/animations/animate-children-directive.d.ts +3 -6
  15. package/types/animations/animate-swap.d.ts +7 -16
  16. package/types/animations/animation.d.ts +2 -11
  17. package/types/animations/raf-scheduler.d.ts +3 -3
  18. package/types/animations/shared.d.ts +8 -23
  19. package/types/core/{animate-css.d.ts → animate/animate-css.d.ts} +2 -8
  20. package/types/core/{cache.d.ts → cache/cache.d.ts} +5 -5
  21. package/types/core/compile/compile.d.ts +173 -0
  22. package/types/core/controller/controller.d.ts +32 -0
  23. package/types/core/exception-handler.d.ts +1 -1
  24. package/types/core/filter/filter.d.ts +9 -0
  25. package/types/core/{interpolate.d.ts → interpolate/interpolate.d.ts} +23 -39
  26. package/types/core/interval/interval-factory.d.ts +4 -0
  27. package/types/core/{interval.d.ts → interval/interval.d.ts} +1 -1
  28. package/types/core/location/location.d.ts +209 -0
  29. package/types/core/pubsub/pubsub.d.ts +156 -0
  30. package/types/core/q/q.d.ts +31 -0
  31. package/types/core/sanitize/sanitize-uri.d.ts +53 -0
  32. package/types/core/{sce.d.ts → sce/sce.d.ts} +80 -86
  33. package/types/core/scope/scope.d.ts +727 -0
  34. package/types/core/task-tracker-factory.d.ts +29 -29
  35. package/types/core/timeout/timeout.d.ts +20 -0
  36. package/types/core/{urlUtils.d.ts → url-utils/url-utils.d.ts} +2 -7
  37. package/types/directive/{bind.d.ts → bind/bind.d.ts} +4 -10
  38. package/types/directive/{class.d.ts → class/class.d.ts} +12 -21
  39. package/types/directive/controller/controller.d.ts +6 -0
  40. package/types/directive/events/events.d.ts +5 -0
  41. package/types/directive/form/form.d.ts +200 -0
  42. package/types/directive/if/if.d.ts +8 -0
  43. package/types/directive/include/include.d.ts +14 -0
  44. package/types/directive/{input.d.ts → input/input.d.ts} +20 -69
  45. package/types/directive/{model.d.ts → model/model.d.ts} +256 -279
  46. package/types/directive/options/options.d.ts +9 -0
  47. package/types/directive/ref/ref.d.ts +5 -0
  48. package/types/directive/repeat/repeat.d.ts +8 -0
  49. package/types/directive/{script.d.ts → script/script.d.ts} +5 -8
  50. package/types/directive/{show-hide.d.ts → show-hide/show-hide.d.ts} +10 -16
  51. package/types/directive/switch/switch.d.ts +17 -0
  52. package/types/directive/transclude/transclude.d.ts +4 -0
  53. package/types/directive/{validators.d.ts → validators/validators.d.ts} +20 -35
  54. package/types/filters/filters.d.ts +10 -16
  55. package/types/filters/order-by.d.ts +2 -4
  56. package/types/index.d.ts +117 -0
  57. package/types/injector.d.ts +12 -0
  58. package/types/public.d.ts +5 -0
  59. package/types/router/common/coreservices.d.ts +2 -2
  60. package/types/router/common/glob.d.ts +9 -9
  61. package/types/router/common/queue.d.ts +13 -13
  62. package/types/router/common/trace.d.ts +43 -43
  63. package/types/router/directives/view-directive.d.ts +13 -32
  64. package/types/router/globals.d.ts +20 -20
  65. package/types/router/hooks/lazy-load.d.ts +2 -11
  66. package/types/router/hooks/redirect-to.d.ts +1 -4
  67. package/types/router/hooks/url.d.ts +1 -5
  68. package/types/router/hooks/views.d.ts +1 -4
  69. package/types/router/params/param-factory.d.ts +5 -5
  70. package/types/router/params/param-type.d.ts +35 -35
  71. package/types/router/params/param-types.d.ts +11 -11
  72. package/types/router/params/param.d.ts +38 -38
  73. package/types/router/params/state-params.d.ts +10 -10
  74. package/types/router/path/path-node.d.ts +34 -34
  75. package/types/router/path/path-utils.d.ts +73 -77
  76. package/types/router/resolve/resolvable.d.ts +32 -32
  77. package/types/router/resolve/resolve-context.d.ts +84 -84
  78. package/types/router/services.d.ts +4 -9
  79. package/types/router/state/state-builder.d.ts +27 -27
  80. package/types/router/state/state-matcher.d.ts +5 -5
  81. package/types/router/state/state-object.d.ts +58 -58
  82. package/types/router/state/state-queue-manager.d.ts +10 -16
  83. package/types/router/state/state-registry.d.ts +100 -107
  84. package/types/router/state/state-service.d.ts +411 -411
  85. package/types/router/state/target-state.d.ts +64 -69
  86. package/types/router/state/views.d.ts +31 -37
  87. package/types/router/state-filters.d.ts +7 -7
  88. package/types/router/state-provider.d.ts +105 -105
  89. package/types/router/template-factory.d.ts +83 -112
  90. package/types/router/transition/hook-builder.d.ts +25 -25
  91. package/types/router/transition/hook-registry.d.ts +68 -83
  92. package/types/router/transition/interface.d.ts +7 -7
  93. package/types/router/transition/reject-factory.d.ts +34 -34
  94. package/types/router/transition/transition-event-type.d.ts +9 -18
  95. package/types/router/transition/transition-hook.d.ts +77 -82
  96. package/types/router/transition/transition-service.d.ts +82 -99
  97. package/types/router/transition/transition.d.ts +369 -377
  98. package/types/router/url/url-config.d.ts +84 -84
  99. package/types/router/url/url-matcher.d.ts +115 -119
  100. package/types/router/url/url-rule.d.ts +114 -124
  101. package/types/router/url/url-rules.d.ts +217 -217
  102. package/types/router/url/url-service.d.ts +264 -269
  103. package/types/router/view/view.d.ts +114 -117
  104. package/types/router/view-scroll.d.ts +2 -2
  105. package/types/services/anchor-scroll.d.ts +2 -8
  106. package/types/services/browser.d.ts +122 -130
  107. package/types/services/cache-factory.d.ts +25 -25
  108. package/types/services/cookie-reader.d.ts +2 -2
  109. package/types/services/document.d.ts +2 -2
  110. package/types/services/http/http.d.ts +145 -0
  111. package/types/services/{http-backend.d.ts → http-backend/http-backend.d.ts} +3 -35
  112. package/types/services/log.d.ts +49 -49
  113. package/types/services/template-request.d.ts +44 -53
  114. package/types/shared/common.d.ts +4 -19
  115. package/types/{constants.d.ts → shared/constants.d.ts} +6 -6
  116. package/types/shared/hof.d.ts +1 -1
  117. package/types/{jqLite.d.ts → shared/jqlite/jqlite.d.ts} +11 -11
  118. package/types/shared/test-utils.d.ts +11 -0
  119. package/types/shared/utils.d.ts +7 -24
  120. package/types-back/global.d.ts +3 -1
  121. package/types-back/index.d.ts +2 -221
  122. package/types/core/compile.d.ts +0 -206
  123. package/types/core/controller.d.ts +0 -42
  124. package/types/core/filter.d.ts +0 -9
  125. package/types/core/interval-factory.d.ts +0 -21
  126. package/types/core/location.d.ts +0 -234
  127. package/types/core/pubsub.d.ts +0 -164
  128. package/types/core/q.d.ts +0 -33
  129. package/types/core/root-scope.d.ts +0 -754
  130. package/types/core/sanitize-uri.d.ts +0 -57
  131. package/types/core/timeout.d.ts +0 -31
  132. package/types/directive/controller.d.ts +0 -6
  133. package/types/directive/events.d.ts +0 -12
  134. package/types/directive/form.d.ts +0 -230
  135. package/types/directive/if.d.ts +0 -17
  136. package/types/directive/include.d.ts +0 -33
  137. package/types/directive/options.d.ts +0 -16
  138. package/types/directive/ref.d.ts +0 -11
  139. package/types/directive/repeat.d.ts +0 -23
  140. package/types/directive/switch.d.ts +0 -23
  141. package/types/directive/transclude.d.ts +0 -15
  142. package/types/services/http.d.ts +0 -157
  143. /package/types/directive/{attrs.d.ts → attrs/attrs.d.ts} +0 -0
  144. /package/types/directive/{change.d.ts → change/change.d.ts} +0 -0
  145. /package/types/directive/{cloak.d.ts → cloak/cloak.d.ts} +0 -0
  146. /package/types/directive/{init.d.ts → init/init.d.ts} +0 -0
  147. /package/types/directive/{list.d.ts → list/list.d.ts} +0 -0
  148. /package/types/directive/{non-bindable.d.ts → non-bindable/non-bindable.d.ts} +0 -0
  149. /package/types/directive/{style.d.ts → style/style.d.ts} +0 -0
  150. /package/types/exts/{aria.d.ts → aria/aria.d.ts} +0 -0
  151. /package/types/exts/{messages.d.ts → messages/messages.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @returns {angular.IDirective}
3
+ */
4
+ export function ngSwitchWhenDirective(): angular.IDirective;
5
+ /**
6
+ * @returns {angular.IDirective}
7
+ */
8
+ export function ngSwitchDefaultDirective(): angular.IDirective;
9
+ export const ngSwitchDirective: (string | (($animate: any) => {
10
+ require: string;
11
+ controller: (string | {
12
+ new (): {
13
+ cases: {};
14
+ };
15
+ })[];
16
+ link(scope: any, _element: any, attr: any, ngSwitchController: any): void;
17
+ }))[];
@@ -0,0 +1,4 @@
1
+ export const ngTranscludeDirective: (string | (($compile: any) => {
2
+ restrict: string;
3
+ compile: (tElement: any) => ($scope: any, $element: any, $attrs: any, controller: any, $transclude: any) => void;
4
+ }))[];
@@ -25,14 +25,11 @@
25
25
  * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
26
26
  *
27
27
  */
28
- export const requiredDirective: (
29
- | string
30
- | (($parse: any) => {
31
- restrict: string;
32
- require: string;
33
- link(scope: any, elm: any, attr: any, ctrl: any): void;
34
- })
35
- )[];
28
+ export const requiredDirective: (string | (($parse: any) => {
29
+ restrict: string;
30
+ require: string;
31
+ link(scope: any, elm: any, attr: any, ctrl: any): void;
32
+ }))[];
36
33
  /**
37
34
  * @ngdoc directive
38
35
  * @name ngPattern
@@ -76,17 +73,11 @@ export const requiredDirective: (
76
73
  * </ol>
77
74
  * </div>
78
75
  */
79
- export const patternDirective: (
80
- | string
81
- | (($parse: any) => {
82
- restrict: string;
83
- require: string;
84
- compile: (
85
- tElm: any,
86
- tAttr: any,
87
- ) => (scope: any, elm: any, attr: any, ctrl: any) => void;
88
- })
89
- )[];
76
+ export const patternDirective: (string | (($parse: any) => {
77
+ restrict: string;
78
+ require: string;
79
+ compile: (tElm: any, tAttr: any) => (scope: any, elm: any, attr: any, ctrl: any) => void;
80
+ }))[];
90
81
  /**
91
82
  * @ngdoc directive
92
83
  * @name ngMaxlength
@@ -121,14 +112,11 @@ export const patternDirective: (
121
112
  * </div>
122
113
  *
123
114
  */
124
- export const maxlengthDirective: (
125
- | string
126
- | (($parse: any) => {
127
- restrict: string;
128
- require: string;
129
- link(scope: any, elm: any, attr: any, ctrl: any): void;
130
- })
131
- )[];
115
+ export const maxlengthDirective: (string | (($parse: any) => {
116
+ restrict: string;
117
+ require: string;
118
+ link(scope: any, elm: any, attr: any, ctrl: any): void;
119
+ }))[];
132
120
  /**
133
121
  * @ngdoc directive
134
122
  * @name ngMinlength
@@ -163,11 +151,8 @@ export const maxlengthDirective: (
163
151
  * </div>
164
152
  *
165
153
  */
166
- export const minlengthDirective: (
167
- | string
168
- | (($parse: any) => {
169
- restrict: string;
170
- require: string;
171
- link(scope: any, elm: any, attr: any, ctrl: any): void;
172
- })
173
- )[];
154
+ export const minlengthDirective: (string | (($parse: any) => {
155
+ restrict: string;
156
+ require: string;
157
+ link(scope: any, elm: any, attr: any, ctrl: any): void;
158
+ }))[];
@@ -16,22 +16,16 @@
16
16
  * @param {[type]} fractionSize The size of the fractional part of the number
17
17
  * @return {string} The number formatted as a string
18
18
  */
19
- export function formatNumber(
20
- number: number,
21
- pattern: {
22
- minFrac;
23
- maxFrac;
24
- gSize;
25
- lgSize;
26
- negPre;
27
- posPre;
28
- negSuf;
29
- posSuf;
30
- },
31
- groupSep: string,
32
- decimalSep: string,
33
- fractionSize: [type],
34
- ): string;
19
+ export function formatNumber(number: number, pattern: {
20
+ minFrac: any;
21
+ maxFrac: any;
22
+ gSize: any;
23
+ lgSize: any;
24
+ negPre: any;
25
+ posPre: any;
26
+ negSuf: any;
27
+ posSuf: any;
28
+ }, groupSep: string, decimalSep: string, fractionSize: [type]): string;
35
29
  /**
36
30
  * @returns {angular.IFilterJson}
37
31
  */
@@ -3,9 +3,7 @@
3
3
  * @param {angular.IParseService} $parse
4
4
  * @returns
5
5
  */
6
- export function orderByFilter(
7
- $parse: angular.IParseService,
8
- ): (array: any, sortPredicate: any, reverseOrder: any, compareFn: any) => any;
6
+ export function orderByFilter($parse: angular.IParseService): (array: any, sortPredicate: any, reverseOrder: any, compareFn: any) => any;
9
7
  export namespace orderByFilter {
10
- let $inject: string[];
8
+ let $inject: string[];
11
9
  }
@@ -0,0 +1,117 @@
1
+ export namespace angular {
2
+ type BootstrapConfig = any;
3
+ type Injectable<T> = Function | Array<string | Function>;
4
+ type ComponentOptions = any;
5
+ type ControllerConstructor = Function;
6
+ type OnChangesObject = any;
7
+ type ChangesObject = any;
8
+ type Controller = any;
9
+ type Attributes = {
10
+ [x: string]: any;
11
+ };
12
+ /**
13
+ * Compile function for an AngularJS directive.
14
+ */
15
+ type DirectiveCompileFn<TScope, TElement, TAttributes, TController> = (templateElement: TElement, templateAttributes: TAttributes, transclude: ITranscludeFunction) => any;
16
+ /**
17
+ * Link function for an AngularJS directive.
18
+ */
19
+ type DirectiveLinkFn<TScope, TElement, TAttributes, TController> = (scope: TScope, instanceElement: TElement, instanceAttributes: TAttributes, controller?: TController, transclude?: ITranscludeFunction) => void;
20
+ /**
21
+ * Represents the pre and post linking functions of a directive.
22
+ */
23
+ type DirectivePrePost<TScope, TElement, TAttributes, TController> = {
24
+ /**
25
+ * The pre-linking function of the directive.
26
+ */
27
+ pre?: angular.DirectiveLinkFn<TScope, TElement, TAttributes, TController> | undefined;
28
+ /**
29
+ * The post-linking function of the directive.
30
+ */
31
+ post?: angular.DirectiveLinkFn<TScope, TElement, TAttributes, TController> | undefined;
32
+ };
33
+ type Module = any;
34
+ }
35
+ export type TScope = import("./core/scope/scope").Scope;
36
+ export type TElement = import("./shared/jqlite/jqlite").JQLite;
37
+ export type TAttributes = angular.Attributes;
38
+ export type IDirectiveController = angular.Controller | angular.Controller[] | {
39
+ [key: string]: angular.Controller;
40
+ };
41
+ /**
42
+ * Directive definition object.
43
+ */
44
+ export type IDirective<TScope, TElement, TAttributes, TController> = {
45
+ /**
46
+ * Compile function for the directive.
47
+ */
48
+ compile?: angular.DirectiveCompileFn<TScope, TElement, TAttributes, TController> | undefined;
49
+ /**
50
+ * Controller constructor or name.
51
+ */
52
+ controller?: string | angular.Injectable<angular.ControllerConstructor> | undefined;
53
+ /**
54
+ * Controller alias.
55
+ */
56
+ controllerAs?: string | undefined;
57
+ /**
58
+ * Bindings to controller.
59
+ */
60
+ bindToController?: boolean | {
61
+ [boundProperty: string]: string;
62
+ } | undefined;
63
+ /**
64
+ * Link function.
65
+ */
66
+ link?: angular.DirectiveLinkFn<TScope, TElement, TAttributes, TController> | angular.DirectivePrePost<TScope, TElement, TAttributes, TController> | undefined;
67
+ /**
68
+ * Multi-element directive flag.
69
+ */
70
+ multiElement?: boolean | undefined;
71
+ /**
72
+ * Directive priority.
73
+ */
74
+ priority?: number | undefined;
75
+ /**
76
+ * Deprecated: Replace flag.
77
+ */
78
+ replace?: boolean | undefined;
79
+ /**
80
+ * Required controllers.
81
+ */
82
+ require?: string | string[] | {
83
+ [controller: string]: string;
84
+ } | undefined;
85
+ /**
86
+ * Restriction mode.
87
+ */
88
+ restrict?: string | undefined;
89
+ /**
90
+ * Scope options.
91
+ */
92
+ scope?: boolean | {
93
+ [boundProperty: string]: string;
94
+ } | undefined;
95
+ /**
96
+ * HTML template.
97
+ */
98
+ template?: string | ((tElement: TElement, tAttrs: TAttributes) => string) | undefined;
99
+ /**
100
+ * Template namespace.
101
+ */
102
+ templateNamespace?: string | undefined;
103
+ /**
104
+ * HTML template URL.
105
+ */
106
+ templateUrl?: string | ((tElement: TElement, tAttrs: TAttributes) => string) | undefined;
107
+ /**
108
+ * Transclusion options.
109
+ */
110
+ transclude?: boolean | "element" | {
111
+ [slot: string]: string;
112
+ } | undefined;
113
+ };
114
+ /**
115
+ * Factory function for creating directives.
116
+ */
117
+ export type IDirectiveFactory<TScope, TElement, TAttributes, TController> = (...args: any[]) => IDirective<TScope, TElement, TAttributes, TController> | angular.DirectiveLinkFn<TScope, TElement, TAttributes, TController>;
@@ -0,0 +1,12 @@
1
+ export function createInjector(modulesToLoad: any, strictDi: any): {
2
+ invoke: (fn: any, self: any, locals: any, serviceName: any) => any;
3
+ instantiate: (Type: any, locals: any, serviceName: any) => any;
4
+ get: (serviceName: any, caller: any) => any;
5
+ annotate: typeof annotate;
6
+ has: (name: any) => any;
7
+ };
8
+ export namespace createInjector {
9
+ export { annotate as $$annotate };
10
+ }
11
+ declare function annotate(fn: any, strictDi: any, name: any): any;
12
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Initializes `ng`, `animate`, `message`, `aria` and `router` modules.
3
+ * @returns {import('./index').angular.Module} `ng`module
4
+ */
5
+ export function publishExternalAPI(): import("./index").angular.Module;
@@ -1,4 +1,4 @@
1
1
  export namespace services {
2
- let $q: any;
3
- let $injector: any;
2
+ let $q: any;
3
+ let $injector: any;
4
4
  }
@@ -48,13 +48,13 @@
48
48
  * @packageDocumentation
49
49
  */
50
50
  export class Glob {
51
- /** Returns true if the string has glob-like characters in it */
52
- static is(text: any): boolean;
53
- /** Returns a glob from the string, or null if the string isn't Glob-like */
54
- static fromString(text: any): Glob;
55
- constructor(text: any);
56
- text: any;
57
- glob: any;
58
- regexp: RegExp;
59
- matches(name: any): boolean;
51
+ /** Returns true if the string has glob-like characters in it */
52
+ static is(text: any): boolean;
53
+ /** Returns a glob from the string, or null if the string isn't Glob-like */
54
+ static fromString(text: any): Glob;
55
+ constructor(text: any);
56
+ text: any;
57
+ glob: any;
58
+ regexp: RegExp;
59
+ matches(name: any): boolean;
60
60
  }
@@ -1,15 +1,15 @@
1
1
  export class Queue {
2
- constructor(_items?: any[], _limit?: any);
3
- _items: any[];
4
- _limit: any;
5
- _evictListeners: any[];
6
- onEvict: any;
7
- enqueue(item: any): any;
8
- evict(): any;
9
- dequeue(): any;
10
- clear(): any[];
11
- size(): number;
12
- remove(item: any): any;
13
- peekTail(): any;
14
- peekHead(): any;
2
+ constructor(_items?: any[], _limit?: any);
3
+ _items: any[];
4
+ _limit: any;
5
+ _evictListeners: any[];
6
+ onEvict: any;
7
+ enqueue(item: any): any;
8
+ evict(): any;
9
+ dequeue(): any;
10
+ clear(): any[];
11
+ size(): number;
12
+ remove(item: any): any;
13
+ peekTail(): any;
14
+ peekHead(): any;
15
15
  }
@@ -2,49 +2,49 @@
2
2
  * Prints ng-router Transition trace information to the console.
3
3
  */
4
4
  export class Trace {
5
- _enabled: {};
6
- approximateDigests: number;
7
- _set(enabled: any, categories: any): void;
8
- enable(...categories: any[]): void;
9
- disable(...categories: any[]): void;
10
- /**
11
- * Retrieves the enabled stateus of a [[Category]]
12
- *
13
- * ```js
14
- * trace.enabled("VIEWCONFIG"); // true or false
15
- * ```
16
- *
17
- * @returns boolean true if the category is enabled
18
- */
19
- enabled(category: any): boolean;
20
- /** @internal called by ui-router code */
21
- traceTransitionStart(trans: any): void;
22
- /** @internal called by ui-router code */
23
- traceTransitionIgnored(trans: any): void;
24
- /** @internal called by ui-router code */
25
- traceHookInvocation(step: any, trans: any, options: any): void;
26
- /** @internal called by ui-router code */
27
- traceHookResult(hookResult: any, trans: any): void;
28
- /** @internal called by ui-router code */
29
- traceResolvePath(path: any, when: any, trans: any): void;
30
- /** @internal called by ui-router code */
31
- traceResolvableResolved(resolvable: any, trans: any): void;
32
- /** @internal called by ui-router code */
33
- traceError(reason: any, trans: any): void;
34
- /** @internal called by ui-router code */
35
- traceSuccess(finalState: any, trans: any): void;
36
- /** @internal called by ui-router code */
37
- traceUIViewEvent(event: any, viewData: any, extra?: string): void;
38
- /** @internal called by ui-router code */
39
- traceUIViewConfigUpdated(viewData: any, context: any): void;
40
- /** @internal called by ui-router code */
41
- traceUIViewFill(viewData: any, html: any): void;
42
- /** @internal called by ui-router code */
43
- traceViewSync(pairs: any): void;
44
- /** @internal called by ui-router code */
45
- traceViewServiceEvent(event: any, viewConfig: any): void;
46
- /** @internal called by ui-router code */
47
- traceViewServiceUIViewEvent(event: any, viewData: any): void;
5
+ _enabled: {};
6
+ approximateDigests: number;
7
+ _set(enabled: any, categories: any): void;
8
+ enable(...categories: any[]): void;
9
+ disable(...categories: any[]): void;
10
+ /**
11
+ * Retrieves the enabled stateus of a [[Category]]
12
+ *
13
+ * ```js
14
+ * trace.enabled("VIEWCONFIG"); // true or false
15
+ * ```
16
+ *
17
+ * @returns boolean true if the category is enabled
18
+ */
19
+ enabled(category: any): boolean;
20
+ /** @internal called by ui-router code */
21
+ traceTransitionStart(trans: any): void;
22
+ /** @internal called by ui-router code */
23
+ traceTransitionIgnored(trans: any): void;
24
+ /** @internal called by ui-router code */
25
+ traceHookInvocation(step: any, trans: any, options: any): void;
26
+ /** @internal called by ui-router code */
27
+ traceHookResult(hookResult: any, trans: any): void;
28
+ /** @internal called by ui-router code */
29
+ traceResolvePath(path: any, when: any, trans: any): void;
30
+ /** @internal called by ui-router code */
31
+ traceResolvableResolved(resolvable: any, trans: any): void;
32
+ /** @internal called by ui-router code */
33
+ traceError(reason: any, trans: any): void;
34
+ /** @internal called by ui-router code */
35
+ traceSuccess(finalState: any, trans: any): void;
36
+ /** @internal called by ui-router code */
37
+ traceUIViewEvent(event: any, viewData: any, extra?: string): void;
38
+ /** @internal called by ui-router code */
39
+ traceUIViewConfigUpdated(viewData: any, context: any): void;
40
+ /** @internal called by ui-router code */
41
+ traceUIViewFill(viewData: any, html: any): void;
42
+ /** @internal called by ui-router code */
43
+ traceViewSync(pairs: any): void;
44
+ /** @internal called by ui-router code */
45
+ traceViewServiceEvent(event: any, viewConfig: any): void;
46
+ /** @internal called by ui-router code */
47
+ traceViewServiceUIViewEvent(event: any, viewData: any): void;
48
48
  }
49
49
  /**
50
50
  * The [[Trace]] singleton
@@ -1,16 +1,10 @@
1
- export function $ViewDirectiveFill(
2
- $compile: any,
3
- $controller: any,
4
- $transitions: any,
5
- $view: any,
6
- $q: any,
7
- ): {
8
- restrict: string;
9
- priority: number;
10
- compile: (tElement: any) => (scope: any, $element: any) => void;
1
+ export function $ViewDirectiveFill($compile: any, $controller: any, $transitions: any, $view: any, $q: any): {
2
+ restrict: string;
3
+ priority: number;
4
+ compile: (tElement: any) => (scope: any, $element: any) => void;
11
5
  };
12
6
  export namespace $ViewDirectiveFill {
13
- let $inject: string[];
7
+ let $inject: string[];
14
8
  }
15
9
  /**
16
10
  * `ui-view`: A viewport directive which is filled in by a view from the active state.
@@ -137,24 +131,11 @@ export namespace $ViewDirectiveFill {
137
131
  * });
138
132
  * ```
139
133
  */
140
- export let ngView: (
141
- | string
142
- | ((
143
- $view: any,
144
- $animate: any,
145
- $ngViewScroll: any,
146
- $interpolate: any,
147
- $q: any,
148
- ) => {
149
- count: number;
150
- restrict: string;
151
- terminal: boolean;
152
- priority: number;
153
- transclude: string;
154
- compile: (
155
- tElement: any,
156
- tAttrs: any,
157
- $transclude: any,
158
- ) => (scope: any, $element: any, attrs: any) => void;
159
- })
160
- )[];
134
+ export let ngView: (string | (($view: any, $animate: any, $ngViewScroll: any, $interpolate: any, $q: any) => {
135
+ count: number;
136
+ restrict: string;
137
+ terminal: boolean;
138
+ priority: number;
139
+ transclude: string;
140
+ compile: (tElement: any, tAttrs: any, $transclude: any) => (scope: any, $element: any, attrs: any) => void;
141
+ }))[];
@@ -5,26 +5,26 @@
5
5
  * params, current transition, etc.
6
6
  */
7
7
  export class UIRouterGlobals {
8
- /**
9
- * Current parameter values
10
- *
11
- * The parameter values from the latest successful transition
12
- * @type {StateParams}
13
- */
14
- params: StateParams;
15
- /**
16
- * @type {Number}
17
- */
18
- lastStartedTransitionId: number;
19
- /**
20
- * @type {Queue}
21
- */
22
- transitionHistory: Queue;
23
- /**
24
- * @type {Queue}
25
- */
26
- successfulTransitions: Queue;
27
- $get: (() => this)[];
8
+ /**
9
+ * Current parameter values
10
+ *
11
+ * The parameter values from the latest successful transition
12
+ * @type {StateParams}
13
+ */
14
+ params: StateParams;
15
+ /**
16
+ * @type {Number}
17
+ */
18
+ lastStartedTransitionId: number;
19
+ /**
20
+ * @type {Queue}
21
+ */
22
+ transitionHistory: Queue;
23
+ /**
24
+ * @type {Queue}
25
+ */
26
+ successfulTransitions: Queue;
27
+ $get: (() => this)[];
28
28
  }
29
29
  import { StateParams } from "./params/state-params";
30
30
  import { Queue } from "./common/queue";
@@ -22,12 +22,7 @@
22
22
  *
23
23
  * See [[StateDeclaration.lazyLoad]]
24
24
  */
25
- export function registerLazyLoadHook(
26
- transitionService: any,
27
- stateService: any,
28
- urlService: any,
29
- stateRegistry: any,
30
- ): any;
25
+ export function registerLazyLoadHook(transitionService: any, stateService: any, urlService: any, stateRegistry: any): any;
31
26
  /**
32
27
  * Invokes a state's lazy load function
33
28
  *
@@ -35,8 +30,4 @@ export function registerLazyLoadHook(
35
30
  * @param state the state to lazy load
36
31
  * @returns A promise for the lazy load result
37
32
  */
38
- export function lazyLoadState(
39
- transition: any,
40
- state: any,
41
- stateRegistry: any,
42
- ): any;
33
+ export function lazyLoadState(transition: any, state: any, stateRegistry: any): any;
@@ -1,4 +1 @@
1
- export function registerRedirectToHook(
2
- transitionService: any,
3
- stateService: any,
4
- ): void;
1
+ export function registerRedirectToHook(transitionService: any, stateService: any): void;
@@ -1,5 +1 @@
1
- export function registerUpdateUrl(
2
- transitionService: any,
3
- stateService: any,
4
- urlService: any,
5
- ): void;
1
+ export function registerUpdateUrl(transitionService: any, stateService: any, urlService: any): void;
@@ -1,5 +1,2 @@
1
1
  export function registerLoadEnteringViews(transitionService: any): any;
2
- export function registerActivateViews(
3
- transitionService: any,
4
- viewService: any,
5
- ): void;
2
+ export function registerActivateViews(transitionService: any, viewService: any): void;
@@ -1,8 +1,8 @@
1
1
  export class ParamFactory {
2
- constructor(urlServiceConfig: any);
3
- urlServiceConfig: any;
4
- fromConfig(id: any, type: any, state: any): Param;
5
- fromPath(id: any, type: any, state: any): Param;
6
- fromSearch(id: any, type: any, state: any): Param;
2
+ constructor(urlServiceConfig: any);
3
+ urlServiceConfig: any;
4
+ fromConfig(id: any, type: any, state: any): Param;
5
+ fromPath(id: any, type: any, state: any): Param;
6
+ fromSearch(id: any, type: any, state: any): Param;
7
7
  }
8
8
  import { Param } from "../params/param";