@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
@@ -4,113 +4,106 @@
4
4
  * This API is found at `$stateRegistry` ([[UIRouter.stateRegistry]])
5
5
  */
6
6
  export class StateRegistry {
7
- static $inject: string[];
8
- constructor(
9
- urlService: any,
10
- stateService: any,
11
- globals: any,
12
- viewService: any,
13
- );
14
- states: {};
15
- urlService: any;
16
- urlServiceRules: any;
17
- $injector: any;
18
- listeners: any[];
19
- matcher: StateMatcher;
20
- builder: StateBuilder;
21
- stateQueue: StateQueueManager;
22
- $get: (string | (($injector: any) => this))[];
23
- /**
24
- * This is a [[StateBuilder.builder]] function for angular1 `onEnter`, `onExit`,
25
- * `onRetain` callback hooks on a [[Ng1StateDeclaration]].
26
- *
27
- * When the [[StateBuilder]] builds a [[StateObject]] object from a raw [[StateDeclaration]], this builder
28
- * ensures that those hooks are injectable for @uirouter/angularjs (ng1).
29
- *
30
- * @internalapi
31
- */
32
- getStateHookBuilder(
33
- hookName: any,
34
- ): (stateObject: any) => (trans: any, state: any) => any;
35
- _registerRoot(): void;
36
- _root: import("./state-object").StateObject;
37
- /**
38
- * Listen for a State Registry events
39
- *
40
- * Adds a callback that is invoked when states are registered or deregistered with the StateRegistry.
41
- *
42
- * #### Example:
43
- * ```js
44
- * let allStates = registry.get();
45
- *
46
- * // Later, invoke deregisterFn() to remove the listener
47
- * let deregisterFn = registry.onStatesChanged((event, states) => {
48
- * switch(event) {
49
- * case: 'registered':
50
- * states.forEach(state => allStates.push(state));
51
- * break;
52
- * case: 'deregistered':
53
- * states.forEach(state => {
54
- * let idx = allStates.indexOf(state);
55
- * if (idx !== -1) allStates.splice(idx, 1);
56
- * });
57
- * break;
58
- * }
59
- * });
60
- * ```
61
- *
62
- * @param listener a callback function invoked when the registered states changes.
63
- * The function receives two parameters, `event` and `state`.
64
- * See [[StateRegistryListener]]
65
- * @return a function that deregisters the listener
66
- */
67
- onStatesChanged(listener: any): any;
68
- /**
69
- * Gets the implicit root state
70
- *
71
- * Gets the root of the state tree.
72
- * The root state is implicitly created by ng-router.
73
- * Note: this returns the internal [[StateObject]] representation, not a [[StateDeclaration]]
74
- *
75
- * @return the root [[StateObject]]
76
- */
77
- root(): import("./state-object").StateObject;
78
- /**
79
- * Adds a state to the registry
80
- *
81
- * Registers a [[StateDeclaration]] or queues it for registration.
82
- *
83
- * Note: a state will be queued if the state's parent isn't yet registered.
84
- *
85
- * @param stateDefinition the definition of the state to register.
86
- * @returns the internal [[StateObject]] object.
87
- * If the state was successfully registered, then the object is fully built (See: [[StateBuilder]]).
88
- * If the state was only queued, then the object is not fully built.
89
- */
90
- register(stateDefinition: any): import("./state-object").StateObject;
91
- _deregisterTree(state: any): any[];
92
- /**
93
- * Removes a state from the registry
94
- *
95
- * This removes a state from the registry.
96
- * If the state has children, they are are also removed from the registry.
97
- *
98
- * @param stateOrName the state's name or object representation
99
- * @returns {StateObject[]} a list of removed states
100
- */
101
- deregister(stateOrName: any): StateObject[];
102
- get(stateOrName: any, base: any, ...args: any[]): any;
103
- /**
104
- * Registers a [[BuilderFunction]] for a specific [[StateObject]] property (e.g., `parent`, `url`, or `path`).
105
- * More than one BuilderFunction can be registered for a given property.
106
- *
107
- * The BuilderFunction(s) will be used to define the property on any subsequently built [[StateObject]] objects.
108
- *
109
- * @param property The name of the State property being registered for.
110
- * @param builderFunction The BuilderFunction which will be used to build the State property
111
- * @returns a function which deregisters the BuilderFunction
112
- */
113
- decorator(property: any, builderFunction: any): any;
7
+ static $inject: string[];
8
+ constructor(urlService: any, stateService: any, globals: any, viewService: any);
9
+ states: {};
10
+ urlService: any;
11
+ urlServiceRules: any;
12
+ $injector: any;
13
+ listeners: any[];
14
+ matcher: StateMatcher;
15
+ builder: StateBuilder;
16
+ stateQueue: StateQueueManager;
17
+ $get: (string | (($injector: any) => this))[];
18
+ /**
19
+ * This is a [[StateBuilder.builder]] function for angular1 `onEnter`, `onExit`,
20
+ * `onRetain` callback hooks on a [[Ng1StateDeclaration]].
21
+ *
22
+ * When the [[StateBuilder]] builds a [[StateObject]] object from a raw [[StateDeclaration]], this builder
23
+ * ensures that those hooks are injectable for @uirouter/angularjs (ng1).
24
+ *
25
+ * @internalapi
26
+ */
27
+ getStateHookBuilder(hookName: any): (stateObject: any) => (trans: any, state: any) => any;
28
+ _registerRoot(): void;
29
+ _root: import("./state-object").StateObject;
30
+ /**
31
+ * Listen for a State Registry events
32
+ *
33
+ * Adds a callback that is invoked when states are registered or deregistered with the StateRegistry.
34
+ *
35
+ * #### Example:
36
+ * ```js
37
+ * let allStates = registry.get();
38
+ *
39
+ * // Later, invoke deregisterFn() to remove the listener
40
+ * let deregisterFn = registry.onStatesChanged((event, states) => {
41
+ * switch(event) {
42
+ * case: 'registered':
43
+ * states.forEach(state => allStates.push(state));
44
+ * break;
45
+ * case: 'deregistered':
46
+ * states.forEach(state => {
47
+ * let idx = allStates.indexOf(state);
48
+ * if (idx !== -1) allStates.splice(idx, 1);
49
+ * });
50
+ * break;
51
+ * }
52
+ * });
53
+ * ```
54
+ *
55
+ * @param listener a callback function invoked when the registered states changes.
56
+ * The function receives two parameters, `event` and `state`.
57
+ * See [[StateRegistryListener]]
58
+ * @return a function that deregisters the listener
59
+ */
60
+ onStatesChanged(listener: any): any;
61
+ /**
62
+ * Gets the implicit root state
63
+ *
64
+ * Gets the root of the state tree.
65
+ * The root state is implicitly created by ng-router.
66
+ * Note: this returns the internal [[StateObject]] representation, not a [[StateDeclaration]]
67
+ *
68
+ * @return the root [[StateObject]]
69
+ */
70
+ root(): import("./state-object").StateObject;
71
+ /**
72
+ * Adds a state to the registry
73
+ *
74
+ * Registers a [[StateDeclaration]] or queues it for registration.
75
+ *
76
+ * Note: a state will be queued if the state's parent isn't yet registered.
77
+ *
78
+ * @param stateDefinition the definition of the state to register.
79
+ * @returns the internal [[StateObject]] object.
80
+ * If the state was successfully registered, then the object is fully built (See: [[StateBuilder]]).
81
+ * If the state was only queued, then the object is not fully built.
82
+ */
83
+ register(stateDefinition: any): import("./state-object").StateObject;
84
+ _deregisterTree(state: any): any[];
85
+ /**
86
+ * Removes a state from the registry
87
+ *
88
+ * This removes a state from the registry.
89
+ * If the state has children, they are are also removed from the registry.
90
+ *
91
+ * @param stateOrName the state's name or object representation
92
+ * @returns {StateObject[]} a list of removed states
93
+ */
94
+ deregister(stateOrName: any): StateObject[];
95
+ get(stateOrName: any, base: any, ...args: any[]): any;
96
+ /**
97
+ * Registers a [[BuilderFunction]] for a specific [[StateObject]] property (e.g., `parent`, `url`, or `path`).
98
+ * More than one BuilderFunction can be registered for a given property.
99
+ *
100
+ * The BuilderFunction(s) will be used to define the property on any subsequently built [[StateObject]] objects.
101
+ *
102
+ * @param property The name of the State property being registered for.
103
+ * @param builderFunction The BuilderFunction which will be used to build the State property
104
+ * @returns a function which deregisters the BuilderFunction
105
+ */
106
+ decorator(property: any, builderFunction: any): any;
114
107
  }
115
108
  export function getLocals(ctx: any): any;
116
109
  import { StateMatcher } from "./state-matcher";