@angular-wave/angular.ts 0.7.0-beta.0 → 0.7.0-beta.1

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 (881) hide show
  1. package/.husky/pre-commit +2 -0
  2. package/@types/animations/animate-children-directive.d.ts +4 -2
  3. package/@types/animations/animate-swap.d.ts +2 -2
  4. package/@types/animations/animate.d.ts +1 -1
  5. package/@types/animations/interface.d.ts +17 -0
  6. package/@types/animations/raf-scheduler.d.ts +29 -16
  7. package/@types/core/compile/attributes.d.ts +1 -1
  8. package/@types/core/compile/compile.d.ts +22 -15
  9. package/@types/core/controller/controller.d.ts +1 -1
  10. package/@types/core/di/internal-injector.d.ts +10 -6
  11. package/@types/core/di/ng-module.d.ts +3 -3
  12. package/@types/core/error-handler.d.ts +7 -0
  13. package/@types/core/exception-handler.d.ts +5 -10
  14. package/@types/core/filter/filter.d.ts +20 -4
  15. package/@types/core/interpolate/interpolate.d.ts +3 -3
  16. package/@types/core/location/location.d.ts +1 -1
  17. package/@types/core/parse/interface.d.ts +79 -0
  18. package/@types/core/parse/interpreter.d.ts +19 -8
  19. package/@types/core/parse/parse.d.ts +2 -94
  20. package/@types/core/parse/parser/parser.d.ts +2 -2
  21. package/@types/core/sanitize/interface.d.ts +10 -0
  22. package/@types/core/sanitize/sanitize-uri.d.ts +31 -44
  23. package/@types/core/sce/sce.d.ts +109 -32
  24. package/@types/core/scope/scope.d.ts +3 -3
  25. package/@types/directive/bind/bind.d.ts +6 -6
  26. package/@types/directive/channel/channel.d.ts +2 -2
  27. package/@types/directive/class/class.d.ts +3 -3
  28. package/@types/directive/cloak/cloak.d.ts +2 -2
  29. package/@types/directive/controller/controller.d.ts +2 -2
  30. package/@types/directive/events/events.d.ts +4 -4
  31. package/@types/directive/form/form.d.ts +1 -1
  32. package/@types/directive/if/if.d.ts +2 -2
  33. package/@types/directive/include/include.d.ts +2 -2
  34. package/@types/directive/init/init.d.ts +2 -2
  35. package/@types/directive/input/input.d.ts +4 -4
  36. package/@types/directive/model/model.d.ts +10 -10
  37. package/@types/directive/model-options/model-options.d.ts +1 -1
  38. package/@types/directive/non-bindable/non-bindable.d.ts +2 -2
  39. package/@types/directive/observe/observe.d.ts +2 -2
  40. package/@types/directive/options/options.d.ts +1 -1
  41. package/@types/directive/repeat/repeat.d.ts +2 -2
  42. package/@types/directive/script/script.d.ts +2 -2
  43. package/@types/directive/select/select.d.ts +2 -2
  44. package/@types/directive/setter/setter.d.ts +6 -3
  45. package/@types/directive/show-hide/show-hide.d.ts +4 -4
  46. package/@types/directive/style/style.d.ts +2 -2
  47. package/@types/directive/switch/switch.d.ts +6 -6
  48. package/@types/directive/transclude/transclude.d.ts +3 -1
  49. package/@types/directive/validators/validators.d.ts +14 -14
  50. package/@types/filters/filter.d.ts +2 -7
  51. package/@types/filters/filters.d.ts +2 -2
  52. package/@types/filters/limit-to.d.ts +2 -6
  53. package/@types/filters/order-by.d.ts +4 -3
  54. package/@types/interface.d.ts +302 -0
  55. package/@types/loader.d.ts +15 -18
  56. package/@types/public.d.ts +6 -7
  57. package/@types/router/common/glob.d.ts +25 -8
  58. package/@types/router/common/queue.d.ts +62 -13
  59. package/@types/router/common/trace.d.ts +8 -14
  60. package/@types/router/directives/state-directives.d.ts +11 -10
  61. package/@types/router/directives/view-directive.d.ts +3 -3
  62. package/@types/router/globals.d.ts +25 -7
  63. package/@types/router/params/interface.d.ts +606 -0
  64. package/@types/router/resolve/interface.d.ts +200 -0
  65. package/@types/router/state/interface.d.ts +983 -0
  66. package/@types/router/state/state-object.d.ts +13 -3
  67. package/@types/router/state/state-registry.d.ts +18 -4
  68. package/@types/router/state/state-service.d.ts +18 -10
  69. package/@types/router/state/views.d.ts +14 -8
  70. package/@types/router/state-filters.d.ts +8 -4
  71. package/@types/router/template-factory.d.ts +4 -4
  72. package/@types/router/transition/interface.d.ts +876 -11
  73. package/@types/router/transition/transition-service.d.ts +3 -3
  74. package/@types/router/transition/transition.d.ts +25 -15
  75. package/@types/router/view/interface.d.ts +44 -0
  76. package/@types/router/view/view.d.ts +17 -5
  77. package/@types/shared/interface.d.ts +6 -0
  78. package/@types/shared/utils.d.ts +18 -33
  79. package/CHANGELOG.md +38 -38
  80. package/CODE_OF_CONDUCT.md +1 -1
  81. package/CONTRIBUTING.md +9 -9
  82. package/DEVELOPERS.md +30 -30
  83. package/Makefile +1 -1
  84. package/README.md +20 -20
  85. package/RELEASE.md +3 -3
  86. package/SECURITY.md +1 -1
  87. package/TRIAGING.md +3 -3
  88. package/dist/angular-ts.esm.js +3853 -3514
  89. package/dist/angular-ts.umd.js +3854 -3514
  90. package/dist/angular-ts.umd.min.js +1 -1
  91. package/index.html +2 -11
  92. package/package.json +3 -3
  93. package/src/angular.spec.js +1 -99
  94. package/src/animations/animate-children-directive.js +2 -2
  95. package/src/animations/animate-css.md +1 -1
  96. package/src/animations/animate-queue.js +1 -1
  97. package/src/animations/animate-swap.js +20 -17
  98. package/src/animations/animate.js +1 -1
  99. package/src/animations/animate.md +8 -8
  100. package/src/animations/animation.js +1 -0
  101. package/src/animations/interface.ts +19 -0
  102. package/src/animations/raf-scheduler.js +70 -54
  103. package/src/animations/raf-scheduler.spec.js +6 -0
  104. package/src/core/compile/attributes.js +13 -15
  105. package/src/core/compile/compile.js +2737 -2631
  106. package/src/core/compile/compile.md +13 -13
  107. package/src/core/compile/compile.spec.js +8 -108
  108. package/src/core/controller/controller.js +1 -1
  109. package/src/core/di/injector.js +34 -6
  110. package/src/core/di/injector.md +6 -6
  111. package/src/core/di/internal-injector.js +19 -21
  112. package/src/core/di/ng-module.js +4 -3
  113. package/src/core/error-handler.ts +7 -0
  114. package/src/core/exception-handler.js +4 -9
  115. package/src/core/filter/filter.js +12 -3
  116. package/src/core/filter/filter.md +5 -5
  117. package/src/core/interpolate/interpolate.js +6 -6
  118. package/src/core/interpolate/interpolate.spec.js +1 -1
  119. package/src/core/location/location.js +3 -3
  120. package/src/core/parse/ast/ast.js +2 -2
  121. package/src/core/parse/interface.ts +84 -0
  122. package/src/core/parse/interpreter.js +33 -28
  123. package/src/core/parse/parse.js +8 -55
  124. package/src/core/parse/parse.md +6 -6
  125. package/src/core/parse/parser/parser.js +1 -1
  126. package/src/core/sanitize/interface.ts +10 -0
  127. package/src/core/sanitize/sanitize-uri.js +46 -56
  128. package/src/core/sanitize/sanitize-uri.spec.js +1 -1
  129. package/src/core/sce/sce.js +378 -301
  130. package/src/core/sce/sce.md +13 -13
  131. package/src/core/scope/scope.js +8 -6
  132. package/src/directive/aria/aria.js +9 -11
  133. package/src/directive/attrs/attrs.md +7 -7
  134. package/src/directive/bind/bind.js +5 -5
  135. package/src/directive/bind/bind.md +3 -3
  136. package/src/directive/channel/channel.js +1 -1
  137. package/src/directive/class/class.js +1 -1
  138. package/src/directive/cloak/cloak.js +1 -1
  139. package/src/directive/cloak/cloak.md +1 -1
  140. package/src/directive/controller/controller.js +1 -1
  141. package/src/directive/controller/controller.md +2 -2
  142. package/src/directive/events/events.js +3 -3
  143. package/src/directive/events/events.md +2 -2
  144. package/src/directive/form/form.js +5 -5
  145. package/src/directive/if/if.js +1 -1
  146. package/src/directive/include/include.js +1 -1
  147. package/src/directive/include/include.md +2 -2
  148. package/src/directive/init/init.js +1 -1
  149. package/src/directive/input/input.js +7 -7
  150. package/src/directive/input/input.md +54 -54
  151. package/src/directive/messages/messages.js +2 -2
  152. package/src/directive/messages/messages.md +2 -2
  153. package/src/directive/model/model.js +3 -3
  154. package/src/directive/model-options/model-options.js +3 -3
  155. package/src/directive/model-options/model-options.md +1 -1
  156. package/src/directive/non-bindable/non-bindable.js +1 -1
  157. package/src/directive/non-bindable/non-bindable.md +1 -1
  158. package/src/directive/observe/observe.js +1 -1
  159. package/src/directive/options/options.js +3 -5
  160. package/src/directive/options/options.md +1 -1
  161. package/src/directive/ref/ref.js +9 -4
  162. package/src/directive/repeat/repeat.js +7 -8
  163. package/src/directive/repeat/repeat.md +3 -3
  164. package/src/directive/script/script.js +3 -3
  165. package/src/directive/select/select.js +2 -2
  166. package/src/directive/select/select.md +3 -3
  167. package/src/directive/setter/setter.js +8 -6
  168. package/src/directive/show-hide/show-hide.js +2 -2
  169. package/src/directive/show-hide/show-hide.md +4 -4
  170. package/src/directive/style/style.js +2 -2
  171. package/src/directive/switch/switch.js +6 -6
  172. package/src/directive/transclude/transclude.js +2 -2
  173. package/src/directive/validators/validators.js +37 -36
  174. package/src/filters/filter.js +1 -1
  175. package/src/filters/filters.js +1 -1
  176. package/src/filters/limit-to.js +1 -1
  177. package/src/filters/order-by.js +3 -0
  178. package/src/filters/order-by.md +1 -1
  179. package/src/interface.ts +329 -0
  180. package/src/loader.js +20 -19
  181. package/src/loader.md +7 -7
  182. package/src/public.js +5 -7
  183. package/src/router/common/{glob.html → common.html} +1 -0
  184. package/src/router/common/{glob.test.js → common.test.js} +1 -1
  185. package/src/router/common/glob.js +29 -7
  186. package/src/router/common/glob.spec.js +31 -1
  187. package/src/router/common/queue.js +69 -14
  188. package/src/router/common/queue.spec.js +80 -0
  189. package/src/router/common/trace.js +21 -15
  190. package/src/router/directives/component-example.html +37 -0
  191. package/src/router/directives/state-directives.js +13 -12
  192. package/src/router/directives/state-directives.spec.js +51 -46
  193. package/src/router/directives/view-directive.js +6 -6
  194. package/src/router/directives/view-directive.spec.js +1 -1
  195. package/src/router/globals.js +24 -5
  196. package/src/router/hooks/update-globals.js +2 -0
  197. package/src/router/params/interface.ts +626 -0
  198. package/src/router/params/param-types.js +2 -2
  199. package/src/router/resolve/interface.ts +208 -0
  200. package/src/router/resolve/resolvable.js +2 -2
  201. package/src/router/state/interface.ts +1007 -0
  202. package/src/router/state/state-builder.js +2 -2
  203. package/src/router/state/state-object.js +19 -5
  204. package/src/router/state/state-queue-manager.js +3 -5
  205. package/src/router/state/state-registry.js +14 -3
  206. package/src/router/state/state-service.js +14 -8
  207. package/src/router/state/views.js +9 -4
  208. package/src/router/state-filters.js +6 -0
  209. package/src/router/template-factory.js +2 -2
  210. package/src/router/transition/interface.ts +922 -0
  211. package/src/router/transition/transition-service.js +1 -1
  212. package/src/router/transition/transition.js +17 -7
  213. package/src/router/url/url-matcher.js +2 -2
  214. package/src/router/view/interface.ts +51 -0
  215. package/src/router/view/view.js +17 -10
  216. package/src/router/view/view.spec.js +2 -2
  217. package/src/services/http/http.md +8 -8
  218. package/src/services/log.md +1 -1
  219. package/src/services/template-request.js +1 -1
  220. package/src/shared/dom.js +2 -2
  221. package/src/shared/interface.ts +6 -0
  222. package/src/shared/utils.js +22 -37
  223. package/tsconfig.json +2 -1
  224. package/tsconfig.types.json +1 -0
  225. package/typedoc/assets/hierarchy.js +1 -1
  226. package/typedoc/assets/navigation.js +1 -1
  227. package/typedoc/assets/search.js +1 -1
  228. package/typedoc/classes/animations_animate-cache.AnimateCacheProvider.html +6 -6
  229. package/typedoc/classes/animations_animate-css-driver.AnimateCssDriverProvider.html +10 -10
  230. package/typedoc/classes/animations_animate-css.AnimateCssProvider.html +10 -10
  231. package/typedoc/classes/animations_animate-js-driver.AnimateJsDriverProvider.html +10 -10
  232. package/typedoc/classes/animations_animate-js.AnimateJsProvider.html +10 -10
  233. package/typedoc/classes/animations_animate-queue.AnimateQueueProvider.html +12 -12
  234. package/typedoc/classes/animations_animate-runner.AnimateAsyncRunFactoryProvider.html +6 -6
  235. package/typedoc/classes/animations_animate-runner.AnimateRunner.html +48 -48
  236. package/typedoc/classes/animations_animate-runner.AnimateRunnerFactoryProvider.html +6 -6
  237. package/typedoc/classes/animations_animate.AnimateProvider.html +18 -18
  238. package/typedoc/classes/animations_animation.AnimationProvider.html +12 -12
  239. package/typedoc/classes/animations_raf-scheduler.RafSchedulerProvider.html +323 -52
  240. package/typedoc/classes/core_cache_cache-factory.TemplateCacheProvider.html +4 -4
  241. package/typedoc/classes/core_compile_attributes.Attributes.html +43 -43
  242. package/typedoc/classes/core_compile_compile.CompileProvider.html +51 -43
  243. package/typedoc/classes/core_controller_controller.ControllerProvider.html +13 -13
  244. package/typedoc/classes/core_di_internal-injector.InjectorService.html +34 -32
  245. package/typedoc/classes/core_di_internal-injector.ProviderInjector.html +25 -25
  246. package/typedoc/classes/core_di_ng-module.NgModule.html +50 -50
  247. package/typedoc/classes/core_exception-handler.ExceptionHandlerProvider.html +17 -17
  248. package/typedoc/classes/core_filter_filter.FilterProvider.html +156 -21
  249. package/typedoc/classes/core_interpolate_interpolate.InterpolateProvider.html +22 -22
  250. package/typedoc/classes/core_location_location.Location.html +76 -76
  251. package/typedoc/classes/core_location_location.LocationHashbangUrl.html +78 -78
  252. package/typedoc/classes/core_location_location.LocationHtml5Url.html +78 -78
  253. package/typedoc/classes/core_location_location.LocationProvider.html +20 -20
  254. package/typedoc/classes/core_parse_ast_ast.AST.html +64 -64
  255. package/typedoc/classes/core_parse_interpreter.ASTInterpreter.html +112 -78
  256. package/typedoc/classes/core_parse_lexer_lexer.Lexer.html +42 -42
  257. package/typedoc/classes/core_parse_parse.ParseProvider.html +13 -14
  258. package/typedoc/classes/core_parse_parser_parser.Parser.html +14 -14
  259. package/typedoc/classes/core_pubsub_pubsub.PubSub.html +26 -26
  260. package/typedoc/classes/core_sanitize_sanitize-uri.SanitizeUriProvider.html +205 -319
  261. package/typedoc/classes/core_sce_sce.SceDelegateProvider.html +18 -85
  262. package/typedoc/classes/core_sce_sce.SceProvider.html +8 -8
  263. package/typedoc/classes/core_scope_scope.RootScopeProvider.html +10 -10
  264. package/typedoc/classes/core_scope_scope.Scope.html +110 -193
  265. package/typedoc/classes/core_task-tracker-factory.TaskTracker.html +14 -14
  266. package/typedoc/classes/core_task-tracker-factory.TaskTrackerFactoryProvider.html +4 -4
  267. package/typedoc/classes/directive_aria_aria.AriaProvider.html +8 -8
  268. package/typedoc/classes/directive_form_form.FormController.html +85 -85
  269. package/typedoc/classes/directive_model_model.NgModelController.html +213 -213
  270. package/typedoc/classes/loader.Angular.html +58 -62
  271. package/typedoc/classes/router_common_glob.Glob.html +208 -101
  272. package/typedoc/classes/router_common_queue.Queue.html +279 -68
  273. package/typedoc/classes/router_common_trace.Trace.html +44 -44
  274. package/typedoc/classes/router_globals.RouterGlobals.html +937 -0
  275. package/typedoc/classes/router_params_param-factory.ParamFactory.html +12 -12
  276. package/typedoc/classes/router_params_param-type.ParamType.html +26 -26
  277. package/typedoc/classes/router_params_param-types.ParamTypes.html +16 -16
  278. package/typedoc/classes/router_params_param.Param.html +46 -46
  279. package/typedoc/classes/router_params_state-params.StateParams.html +6 -6
  280. package/typedoc/classes/router_path_path-node.PathNode.html +34 -34
  281. package/typedoc/classes/router_path_path-utils.PathUtils.html +22 -22
  282. package/typedoc/classes/router_resolve_resolvable.Resolvable.html +54 -54
  283. package/typedoc/classes/router_resolve_resolve-context.ResolveContext.html +26 -26
  284. package/typedoc/classes/router_state-provider.StateProvider.html +14 -14
  285. package/typedoc/classes/router_state_state-builder.StateBuilder.html +18 -18
  286. package/typedoc/classes/router_state_state-matcher.StateMatcher.html +12 -12
  287. package/typedoc/classes/router_state_state-object.StateObject.html +202 -45
  288. package/typedoc/classes/router_state_state-queue-manager.StateQueueManager.html +22 -22
  289. package/typedoc/classes/router_state_state-registry.StateRegistryProvider.html +76 -133
  290. package/typedoc/classes/router_state_state-service.StateProvider.html +120 -72
  291. package/typedoc/classes/router_state_target-state.TargetState.html +46 -46
  292. package/typedoc/classes/{router_state_views.Ng1ViewConfig.html → router_state_views.ViewConfig.html} +83 -51
  293. package/typedoc/classes/router_template-factory.TemplateFactoryProvider.html +36 -62
  294. package/typedoc/classes/router_transition_hook-builder.HookBuilder.html +21 -14
  295. package/typedoc/classes/router_transition_hook-registry.RegisteredHook.html +36 -36
  296. package/typedoc/classes/router_transition_reject-factory.Rejection.html +32 -32
  297. package/typedoc/classes/router_transition_transition-event-type.TransitionEventType.html +20 -20
  298. package/typedoc/classes/router_transition_transition-hook.TransitionHook.html +54 -54
  299. package/typedoc/classes/router_transition_transition-service.TransitionProvider.html +48 -48
  300. package/typedoc/classes/router_transition_transition.Transition.html +597 -145
  301. package/typedoc/classes/router_url_url-config.UrlConfigProvider.html +28 -28
  302. package/typedoc/classes/router_url_url-matcher.UrlMatcher.html +50 -50
  303. package/typedoc/classes/router_url_url-rule.BaseUrlRule.html +16 -16
  304. package/typedoc/classes/router_url_url-rule.UrlRuleFactory.html +22 -22
  305. package/typedoc/classes/router_url_url-rules.UrlRules.html +42 -42
  306. package/typedoc/classes/router_url_url-service.UrlService.html +68 -68
  307. package/typedoc/classes/router_view-scroll.ViewScrollProvider.html +12 -12
  308. package/typedoc/classes/router_view_view.ViewService.html +228 -212
  309. package/typedoc/classes/services_anchor-scroll.AnchorScrollProvider.html +12 -12
  310. package/typedoc/classes/services_browser.Browser.html +54 -54
  311. package/typedoc/classes/services_browser.BrowserProvider.html +4 -4
  312. package/typedoc/classes/services_http-backend_http-backend.HttpBackendProvider.html +6 -6
  313. package/typedoc/classes/services_http_http.HttpParamSerializerProvider.html +6 -6
  314. package/typedoc/classes/services_http_http.HttpProvider.html +14 -14
  315. package/typedoc/classes/services_log.LogProvider.html +16 -16
  316. package/typedoc/classes/services_template-request.TemplateRequestProvider.html +12 -12
  317. package/typedoc/classes/shared_noderef.NodeRef.html +60 -60
  318. package/typedoc/enums/core_parse_ast-type.ASTType.html +38 -38
  319. package/typedoc/enums/router_common_trace.Category.html +568 -0
  320. package/typedoc/enums/router_transition_interface.TransitionHookPhase.html +18 -33
  321. package/typedoc/{interfaces/types.ServiceProviderClass.html → enums/router_transition_interface.TransitionHookScope.html} +75 -44
  322. package/typedoc/enums/router_transition_reject-factory.RejectType.html +14 -14
  323. package/typedoc/functions/animations_animate-cache.animateCache.html +14 -14
  324. package/typedoc/functions/animations_animate-children-directive.__AnimateChildrenDirective.html +6 -6
  325. package/typedoc/functions/animations_animate-swap.ngAnimateSwapDirective.html +6 -6
  326. package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +2 -2
  327. package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +2 -2
  328. package/typedoc/functions/animations_shared.applyAnimationStyles.html +2 -2
  329. package/typedoc/functions/animations_shared.applyAnimationToStyles.html +2 -2
  330. package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +2 -2
  331. package/typedoc/functions/animations_shared.applyInlineStyle.html +2 -2
  332. package/typedoc/functions/animations_shared.assertArg.html +2 -2
  333. package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +2 -2
  334. package/typedoc/functions/animations_shared.clearGeneratedClasses.html +2 -2
  335. package/typedoc/functions/animations_shared.concatWithSpace.html +2 -2
  336. package/typedoc/functions/animations_shared.extractElementNode.html +2 -2
  337. package/typedoc/functions/animations_shared.mergeAnimationDetails.html +2 -2
  338. package/typedoc/functions/animations_shared.mergeClasses.html +2 -2
  339. package/typedoc/functions/animations_shared.packageStyles.html +2 -2
  340. package/typedoc/functions/animations_shared.pendClasses.html +2 -2
  341. package/typedoc/functions/animations_shared.prepareAnimationOptions.html +2 -2
  342. package/typedoc/functions/animations_shared.removeFromArray.html +2 -2
  343. package/typedoc/functions/animations_shared.resolveElementClasses.html +2 -2
  344. package/typedoc/functions/animations_shared.stripCommentsFromElement.html +2 -2
  345. package/typedoc/functions/core_controller_controller.identifierForController.html +2 -2
  346. package/typedoc/functions/core_di_injector.annotate.html +2 -2
  347. package/typedoc/functions/core_di_injector.createInjector.html +2 -2
  348. package/typedoc/functions/core_location_location.serverBase.html +2 -2
  349. package/typedoc/functions/core_location_location.stripBaseUrl.html +2 -2
  350. package/typedoc/functions/core_location_location.stripFile.html +2 -2
  351. package/typedoc/functions/core_location_location.stripHash.html +2 -2
  352. package/typedoc/functions/core_parse_interpreter.isAssignable.html +2 -2
  353. package/typedoc/functions/core_parse_parse.constantWatchDelegate.html +2 -2
  354. package/typedoc/functions/core_sce_sce.adjustMatcher.html +2 -2
  355. package/typedoc/functions/core_sce_sce.escapeForRegexp.html +2 -2
  356. package/typedoc/functions/core_scope_scope.createScope.html +2 -2
  357. package/typedoc/functions/core_scope_scope.nextId.html +2 -2
  358. package/typedoc/functions/core_url-utils_url-utils.getBaseUrl.html +2 -2
  359. package/typedoc/functions/core_url-utils_url-utils.urlIsAllowedOriginFactory.html +2 -2
  360. package/typedoc/functions/core_url-utils_url-utils.urlIsSameOrigin.html +2 -2
  361. package/typedoc/functions/core_url-utils_url-utils.urlIsSameOriginAsBaseUrl.html +2 -2
  362. package/typedoc/functions/core_url-utils_url-utils.urlResolve.html +2 -2
  363. package/typedoc/functions/core_url-utils_url-utils.urlsAreSameOrigin.html +2 -2
  364. package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +4 -4
  365. package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +4 -4
  366. package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +4 -4
  367. package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +4 -4
  368. package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +4 -4
  369. package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +2 -2
  370. package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +4 -4
  371. package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +4 -4
  372. package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +4 -4
  373. package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +4 -4
  374. package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +4 -4
  375. package/typedoc/functions/directive_bind_bind.ngBindDirective.html +4 -4
  376. package/typedoc/functions/directive_bind_bind.ngBindHtmlDirective.html +6 -6
  377. package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +4 -4
  378. package/typedoc/functions/directive_channel_channel.ngChannelDirective.html +4 -4
  379. package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +4 -4
  380. package/typedoc/functions/directive_controller_controller.ngControllerDirective.html +4 -4
  381. package/typedoc/functions/directive_events_events.createEventDirective.html +8 -8
  382. package/typedoc/functions/directive_form_form.setupValidity.html +2 -2
  383. package/typedoc/functions/directive_if_if.ngIfDirective.html +6 -6
  384. package/typedoc/functions/directive_include_include.ngIncludeDirective.html +4 -4
  385. package/typedoc/functions/directive_include_include.ngIncludeFillContentDirective.html +6 -6
  386. package/typedoc/functions/directive_init_init.ngInitDirective.html +4 -4
  387. package/typedoc/functions/directive_input_input.badInputChecker.html +2 -2
  388. package/typedoc/functions/directive_input_input.countDecimals.html +2 -2
  389. package/typedoc/functions/directive_input_input.createDateInputType.html +2 -2
  390. package/typedoc/functions/directive_input_input.createDateParser.html +2 -2
  391. package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +4 -4
  392. package/typedoc/functions/directive_input_input.inputDirective.html +4 -4
  393. package/typedoc/functions/directive_input_input.isNumberInteger.html +2 -2
  394. package/typedoc/functions/directive_input_input.isValidForStep.html +2 -2
  395. package/typedoc/functions/directive_input_input.ngValueDirective.html +4 -4
  396. package/typedoc/functions/directive_input_input.numberFormatterParser.html +2 -2
  397. package/typedoc/functions/directive_input_input.numberInputType.html +2 -2
  398. package/typedoc/functions/directive_input_input.rangeInputType.html +2 -2
  399. package/typedoc/functions/directive_input_input.weekParser.html +2 -2
  400. package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +4 -4
  401. package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +4 -4
  402. package/typedoc/functions/directive_model-options_model-options.ngModelOptionsDirective.html +4 -4
  403. package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -2
  404. package/typedoc/functions/directive_non-bindable_non-bindable.ngNonBindableDirective.html +4 -4
  405. package/typedoc/functions/directive_observe_observe.ngObserveDirective.html +4 -4
  406. package/typedoc/functions/directive_ref_ref.ngRefDirective.html +4 -4
  407. package/typedoc/functions/directive_repeat_repeat.ngRepeatDirective.html +6 -6
  408. package/typedoc/functions/directive_script_script.scriptDirective.html +6 -6
  409. package/typedoc/functions/directive_select_select.optionDirective.html +4 -4
  410. package/typedoc/functions/directive_select_select.selectDirective.html +4 -4
  411. package/typedoc/functions/directive_setter_setter.ngSetterDirective.html +34 -8
  412. package/typedoc/functions/directive_show-hide_show-hide.ngHideDirective.html +6 -6
  413. package/typedoc/functions/directive_show-hide_show-hide.ngShowDirective.html +6 -6
  414. package/typedoc/functions/directive_style_style.ngStyleDirective.html +4 -4
  415. package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +4 -4
  416. package/typedoc/functions/directive_switch_switch.ngSwitchDirective.html +6 -6
  417. package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +4 -4
  418. package/typedoc/functions/filters_filter.filterFilter.html +11 -76
  419. package/typedoc/functions/filters_filters.formatNumber.html +2 -2
  420. package/typedoc/functions/filters_filters.jsonFilter.html +12 -24
  421. package/typedoc/functions/filters_limit-to.limitToFilter.html +11 -90
  422. package/typedoc/functions/filters_order-by.orderByFilter.html +18 -55
  423. package/typedoc/functions/public.publishExternalAPI.html +8 -8
  424. package/typedoc/functions/router_common_glob.hasGlobs.html +306 -0
  425. package/typedoc/functions/router_directives_state-directives._StateRefActiveDirective.html +15 -8
  426. package/typedoc/functions/router_directives_state-directives._StateRefDirective.html +4 -4
  427. package/typedoc/functions/router_directives_state-directives._StateRefDynamicDirective.html +17 -77
  428. package/typedoc/functions/router_directives_view-directive._ViewDirectiveFill.html +4 -4
  429. package/typedoc/functions/router_hooks_core-resolvables.registerAddCoreResolvables.html +2 -2
  430. package/typedoc/functions/router_hooks_core-resolvables.treeChangesCleanup.html +2 -2
  431. package/typedoc/functions/router_hooks_ignored-transition.registerIgnoredTransitionHook.html +2 -2
  432. package/typedoc/functions/router_hooks_invalid-transition.registerInvalidTransitionHook.html +2 -2
  433. package/typedoc/functions/router_hooks_lazy-load.lazyLoadState.html +2 -2
  434. package/typedoc/functions/router_hooks_lazy-load.registerLazyLoadHook.html +2 -2
  435. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnEnterHook.html +2 -2
  436. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnExitHook.html +2 -2
  437. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnRetainHook.html +2 -2
  438. package/typedoc/functions/router_hooks_redirect-to.registerRedirectToHook.html +2 -2
  439. package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +2 -2
  440. package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +2 -2
  441. package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +2 -2
  442. package/typedoc/functions/router_hooks_update-globals.registerUpdateGlobalState.html +2 -2
  443. package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +2 -2
  444. package/typedoc/functions/router_hooks_views.registerActivateViews.html +2 -2
  445. package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +2 -2
  446. package/typedoc/functions/router_path_path-utils.makeTargetState.html +2 -2
  447. package/typedoc/functions/router_state-filters._IncludedByStateFilter.html +18 -40
  448. package/typedoc/functions/router_state-filters._IsStateFilter.html +15 -34
  449. package/typedoc/functions/router_state_state-builder.resolvablesBuilder.html +2 -2
  450. package/typedoc/functions/router_state_state-registry.getLocals.html +2 -2
  451. package/typedoc/functions/{router_state_views.getNg1ViewConfigFactory.html → router_state_views.getViewConfigFactory.html} +13 -15
  452. package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +2 -2
  453. package/typedoc/functions/router_transition_hook-registry.makeEvent.html +2 -2
  454. package/typedoc/functions/router_transition_hook-registry.matchState.html +2 -2
  455. package/typedoc/functions/services_browser.trimEmptyHash.html +2 -2
  456. package/typedoc/functions/services_cookie-reader.getCookies.html +2 -2
  457. package/typedoc/functions/services_http-backend_http-backend.createHttpBackend.html +2 -2
  458. package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +2 -2
  459. package/typedoc/functions/shared_common._removeFrom.html +2 -2
  460. package/typedoc/functions/shared_common.allTrueR.html +2 -2
  461. package/typedoc/functions/shared_common.ancestors.html +2 -2
  462. package/typedoc/functions/shared_common.anyTrueR.html +2 -2
  463. package/typedoc/functions/shared_common.applyPairs.html +2 -2
  464. package/typedoc/functions/shared_common.arrayTuples.html +2 -2
  465. package/typedoc/functions/shared_common.assertFn.html +2 -2
  466. package/typedoc/functions/shared_common.copy.html +2 -2
  467. package/typedoc/functions/shared_common.createProxyFunctions.html +2 -2
  468. package/typedoc/functions/shared_common.defaults.html +2 -2
  469. package/typedoc/functions/shared_common.deregAll.html +2 -2
  470. package/typedoc/functions/shared_common.equals.html +2 -2
  471. package/typedoc/functions/shared_common.filter.html +2 -2
  472. package/typedoc/functions/shared_common.find.html +2 -2
  473. package/typedoc/functions/shared_common.flatten.html +2 -2
  474. package/typedoc/functions/shared_common.flattenR.html +2 -2
  475. package/typedoc/functions/shared_common.inherit.html +2 -2
  476. package/typedoc/functions/shared_common.map.html +2 -2
  477. package/typedoc/functions/shared_common.omit.html +2 -2
  478. package/typedoc/functions/shared_common.pairs.html +2 -2
  479. package/typedoc/functions/shared_common.pick.html +2 -2
  480. package/typedoc/functions/shared_common.pushR.html +2 -2
  481. package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +2 -2
  482. package/typedoc/functions/shared_common.silentRejection.html +2 -2
  483. package/typedoc/functions/shared_common.tail.html +2 -2
  484. package/typedoc/functions/shared_common.uniqR.html +2 -2
  485. package/typedoc/functions/shared_common.unnest.html +2 -2
  486. package/typedoc/functions/shared_common.unnestR.html +2 -2
  487. package/typedoc/functions/shared_dom.appendNodesToElement.html +2 -2
  488. package/typedoc/functions/shared_dom.buildFragment.html +2 -2
  489. package/typedoc/functions/shared_dom.cleanElementData.html +2 -2
  490. package/typedoc/functions/shared_dom.createElementFromHTML.html +2 -2
  491. package/typedoc/functions/shared_dom.createNodelistFromHTML.html +2 -2
  492. package/typedoc/functions/shared_dom.dealoc.html +2 -2
  493. package/typedoc/functions/shared_dom.deleteCacheData.html +2 -2
  494. package/typedoc/functions/shared_dom.domInsert.html +2 -2
  495. package/typedoc/functions/shared_dom.emptyElement.html +2 -2
  496. package/typedoc/functions/shared_dom.getBlockNodes.html +2 -2
  497. package/typedoc/functions/shared_dom.getBooleanAttrName.html +2 -2
  498. package/typedoc/functions/shared_dom.getCacheData.html +2 -2
  499. package/typedoc/functions/shared_dom.getController.html +2 -2
  500. package/typedoc/functions/shared_dom.getExpando.html +2 -2
  501. package/typedoc/functions/shared_dom.getInheritedData.html +2 -2
  502. package/typedoc/functions/shared_dom.getInjector.html +2 -2
  503. package/typedoc/functions/shared_dom.getIsolateScope.html +2 -2
  504. package/typedoc/functions/shared_dom.getOrSetCacheData.html +2 -2
  505. package/typedoc/functions/shared_dom.getScope.html +2 -2
  506. package/typedoc/functions/shared_dom.isRoot.html +2 -2
  507. package/typedoc/functions/shared_dom.isTextNode.html +2 -2
  508. package/typedoc/functions/shared_dom.kebabToCamel.html +2 -2
  509. package/typedoc/functions/shared_dom.parseHtml.html +2 -2
  510. package/typedoc/functions/shared_dom.removeElement.html +2 -2
  511. package/typedoc/functions/shared_dom.removeElementData.html +2 -2
  512. package/typedoc/functions/shared_dom.setCacheData.html +2 -2
  513. package/typedoc/functions/shared_dom.setInheritedData.html +2 -2
  514. package/typedoc/functions/shared_dom.setIsolateScope.html +2 -2
  515. package/typedoc/functions/shared_dom.setScope.html +2 -2
  516. package/typedoc/functions/shared_dom.snakeToCamel.html +2 -2
  517. package/typedoc/functions/shared_dom.startingTag.html +2 -2
  518. package/typedoc/functions/shared_hof.all.html +2 -2
  519. package/typedoc/functions/shared_hof.compose.html +2 -2
  520. package/typedoc/functions/shared_hof.curry.html +2 -2
  521. package/typedoc/functions/shared_hof.is.html +2 -2
  522. package/typedoc/functions/shared_hof.or.html +2 -2
  523. package/typedoc/functions/shared_hof.parse.html +2 -2
  524. package/typedoc/functions/shared_hof.pattern.html +2 -2
  525. package/typedoc/functions/shared_hof.pipe.html +2 -2
  526. package/typedoc/functions/shared_hof.val.html +2 -2
  527. package/typedoc/functions/shared_predicates.isInjectable.html +2 -2
  528. package/typedoc/functions/shared_predicates.isPromise.html +2 -2
  529. package/typedoc/functions/shared_strings.beforeAfterSubstr.html +2 -2
  530. package/typedoc/functions/shared_strings.fnToString.html +2 -2
  531. package/typedoc/functions/shared_strings.functionToString.html +2 -2
  532. package/typedoc/functions/shared_strings.joinNeighborsR.html +2 -2
  533. package/typedoc/functions/shared_strings.kebobString.html +2 -2
  534. package/typedoc/functions/shared_strings.maxLength.html +2 -2
  535. package/typedoc/functions/shared_strings.padString.html +2 -2
  536. package/typedoc/functions/shared_strings.splitOnDelim.html +2 -2
  537. package/typedoc/functions/shared_strings.stringify.html +2 -2
  538. package/typedoc/functions/shared_strings.stripLastPathElement.html +2 -2
  539. package/typedoc/functions/shared_strings.trimHashVal.html +2 -2
  540. package/typedoc/functions/shared_test-utils.bootstrap.html +2 -2
  541. package/typedoc/functions/shared_test-utils.browserTrigger.html +2 -2
  542. package/typedoc/functions/shared_test-utils.wait.html +2 -2
  543. package/typedoc/functions/shared_utils.addDateMinutes.html +2 -2
  544. package/typedoc/functions/shared_utils.arrayRemove.html +2 -2
  545. package/typedoc/functions/shared_utils.assert.html +2 -2
  546. package/typedoc/functions/shared_utils.assertArg.html +2 -2
  547. package/typedoc/functions/shared_utils.assertArgFn.html +2 -2
  548. package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +2 -2
  549. package/typedoc/functions/shared_utils.baseExtend.html +2 -2
  550. package/typedoc/functions/shared_utils.bind.html +2 -2
  551. package/typedoc/functions/shared_utils.concat.html +2 -2
  552. package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +2 -2
  553. package/typedoc/functions/shared_utils.csp.html +2 -2
  554. package/typedoc/functions/shared_utils.directiveNormalize.html +2 -2
  555. package/typedoc/functions/shared_utils.encodeUriQuery.html +2 -2
  556. package/typedoc/functions/shared_utils.encodeUriSegment.html +2 -2
  557. package/typedoc/functions/shared_utils.equals.html +2 -2
  558. package/typedoc/functions/shared_utils.errorHandlingConfig.html +2 -2
  559. package/typedoc/functions/shared_utils.extend.html +3 -3
  560. package/typedoc/functions/shared_utils.fromJson.html +2 -2
  561. package/typedoc/functions/shared_utils.getNgAttribute.html +2 -2
  562. package/typedoc/functions/shared_utils.getNodeName.html +2 -2
  563. package/typedoc/functions/shared_utils.hasAnimate.html +2 -2
  564. package/typedoc/functions/shared_utils.hasCustomToString.html +2 -2
  565. package/typedoc/functions/{shared_utils.merge.html → shared_utils.hasOwn.html} +44 -91
  566. package/typedoc/functions/shared_utils.hashKey.html +2 -2
  567. package/typedoc/functions/shared_utils.includes.html +2 -2
  568. package/typedoc/functions/shared_utils.inherit.html +2 -2
  569. package/typedoc/functions/shared_utils.isArrayBuffer.html +2 -2
  570. package/typedoc/functions/shared_utils.isArrayLike.html +2 -2
  571. package/typedoc/functions/shared_utils.isBlankObject.html +2 -2
  572. package/typedoc/functions/shared_utils.isBlob.html +2 -2
  573. package/typedoc/functions/shared_utils.isBoolean.html +2 -2
  574. package/typedoc/functions/shared_utils.isDate.html +2 -2
  575. package/typedoc/functions/shared_utils.isDefined.html +2 -2
  576. package/typedoc/functions/shared_utils.isElement.html +2 -2
  577. package/typedoc/functions/shared_utils.isError.html +2 -2
  578. package/typedoc/functions/shared_utils.isFile.html +2 -2
  579. package/typedoc/functions/shared_utils.isFormData.html +2 -2
  580. package/typedoc/functions/shared_utils.isFunction.html +2 -2
  581. package/typedoc/functions/shared_utils.isNull.html +2 -2
  582. package/typedoc/functions/shared_utils.isNullOrUndefined.html +2 -2
  583. package/typedoc/functions/shared_utils.isNumber.html +2 -2
  584. package/typedoc/functions/shared_utils.isNumberNaN.html +2 -2
  585. package/typedoc/functions/shared_utils.isObject.html +2 -2
  586. package/typedoc/functions/shared_utils.isObjectEmpty.html +2 -2
  587. package/typedoc/functions/shared_utils.isPromiseLike.html +2 -2
  588. package/typedoc/functions/shared_utils.isProxy.html +2 -2
  589. package/typedoc/functions/shared_utils.isRegExp.html +2 -2
  590. package/typedoc/functions/shared_utils.isScope.html +2 -2
  591. package/typedoc/functions/shared_utils.isString.html +2 -2
  592. package/typedoc/functions/shared_utils.isTypedArray.html +2 -2
  593. package/typedoc/functions/shared_utils.isUndefined.html +2 -2
  594. package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +2 -2
  595. package/typedoc/functions/shared_utils.isWindow.html +2 -2
  596. package/typedoc/functions/shared_utils.lowercase.html +2 -2
  597. package/typedoc/functions/shared_utils.mergeClasses.html +2 -2
  598. package/typedoc/functions/shared_utils.minErr.html +3 -3
  599. package/typedoc/functions/shared_utils.nextUid.html +2 -2
  600. package/typedoc/functions/shared_utils.parseKeyValue.html +2 -2
  601. package/typedoc/functions/shared_utils.replaceInline.html +2 -2
  602. package/typedoc/functions/shared_utils.setHashKey.html +2 -2
  603. package/typedoc/functions/shared_utils.shallowCopy.html +2 -2
  604. package/typedoc/functions/shared_utils.simpleCompare.html +2 -2
  605. package/typedoc/functions/shared_utils.sliceArgs.html +2 -2
  606. package/typedoc/functions/shared_utils.snakeCase.html +2 -2
  607. package/typedoc/functions/shared_utils.stringify.html +2 -2
  608. package/typedoc/functions/shared_utils.timezoneToOffset.html +2 -2
  609. package/typedoc/functions/shared_utils.toDebugString.html +2 -2
  610. package/typedoc/functions/shared_utils.toInt.html +2 -2
  611. package/typedoc/functions/shared_utils.toJson.html +3 -3
  612. package/typedoc/functions/shared_utils.toKeyValue.html +2 -2
  613. package/typedoc/functions/shared_utils.trim.html +2 -2
  614. package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +2 -2
  615. package/typedoc/functions/shared_utils.uppercase.html +2 -2
  616. package/typedoc/hierarchy.html +3 -3
  617. package/typedoc/index.html +24 -24
  618. package/typedoc/interfaces/animations_animate.AnimationOptions.html +10 -10
  619. package/typedoc/interfaces/{types.OnChangesObject.html → animations_raf-scheduler.ServiceProvider.html} +38 -35
  620. package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +8 -8
  621. package/typedoc/interfaces/core_compile_compile.LinkFnMapping.html +24 -24
  622. package/typedoc/interfaces/core_compile_compile.NodeLinkFnCtx.html +676 -0
  623. package/typedoc/interfaces/core_compile_compile.SimpleChange.html +6 -6
  624. package/typedoc/interfaces/core_location_location.DefaultPorts.html +8 -8
  625. package/typedoc/interfaces/core_location_location.Html5Mode.html +8 -8
  626. package/typedoc/interfaces/core_parse_ast_ast.Token.html +14 -14
  627. package/typedoc/interfaces/{core_parse_parse.CompiledExpressionHandlerMap.html → core_parse_interface.CompiledExpressionHandlerMap.html} +30 -14
  628. package/typedoc/interfaces/{core_parse_parse.CompiledExpressionProps.html → core_parse_interface.CompiledExpressionProps.html} +204 -50
  629. package/typedoc/interfaces/core_parse_lexer_lexer.LexerOptions.html +6 -6
  630. package/typedoc/interfaces/core_parse_parser_parser.ParsedAST.html +4 -4
  631. package/typedoc/interfaces/core_sanitize_interface.SanitizerFn.html +319 -0
  632. package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +8 -8
  633. package/typedoc/interfaces/core_scope_scope.Listener.html +20 -20
  634. package/typedoc/interfaces/directive_model-options_model-options.ModelOptionsConfig.html +12 -12
  635. package/typedoc/interfaces/{types.ChangesObject.html → interface.ChangesObject.html} +35 -71
  636. package/typedoc/interfaces/interface.ComponentOptions.html +803 -0
  637. package/typedoc/interfaces/{types.Controller.html → interface.Controller.html} +27 -58
  638. package/typedoc/interfaces/{types.Directive.html → interface.Directive.html} +200 -163
  639. package/typedoc/interfaces/{types.DirectivePrePost.html → interface.DirectivePrePost.html} +20 -19
  640. package/typedoc/interfaces/interface.NgModelController.html +1530 -0
  641. package/typedoc/interfaces/{types.NgModelOptions.html → interface.NgModelOptions.html} +44 -26
  642. package/typedoc/interfaces/interface.Provider.html +1136 -0
  643. package/typedoc/interfaces/interface.TranscludeFunctionObject.html +770 -0
  644. package/typedoc/interfaces/loader.AngularBootstrapConfig.html +4 -4
  645. package/typedoc/interfaces/router_params_interface.ParamDeclaration.html +1324 -0
  646. package/typedoc/interfaces/router_params_interface.ParamTypeDefinition.html +1375 -0
  647. package/typedoc/{types/animations_raf-scheduler.RafSchedulerFunction.html → interfaces/router_params_interface.RawParams.html} +56 -13
  648. package/typedoc/interfaces/router_params_interface.Replace.html +465 -0
  649. package/typedoc/interfaces/router_resolve_interface.CustomAsyncPolicy.html +305 -0
  650. package/typedoc/interfaces/router_resolve_interface.ProviderLike.html +660 -0
  651. package/typedoc/interfaces/router_resolve_interface.ResolvableLiteral.html +670 -0
  652. package/typedoc/interfaces/router_resolve_interface.ResolvePolicy.html +674 -0
  653. package/typedoc/interfaces/router_state_interface.HrefOptions.html +588 -0
  654. package/typedoc/interfaces/{types.Annotated.html → router_state_interface.LazyLoadResult.html} +45 -24
  655. package/typedoc/interfaces/router_state_interface.StateDeclaration.html +2662 -0
  656. package/typedoc/interfaces/router_state_interface.TargetStateDef.html +515 -0
  657. package/typedoc/interfaces/router_state_interface.TransitionPromise.html +1241 -0
  658. package/typedoc/interfaces/router_state_interface.ViewDeclaration.html +1678 -0
  659. package/typedoc/interfaces/router_template-factory.BindingTuple.html +6 -6
  660. package/typedoc/interfaces/router_transition_interface.HookMatchCriteria.html +788 -0
  661. package/typedoc/interfaces/router_transition_interface.HookRegOptions.html +529 -0
  662. package/typedoc/interfaces/router_transition_interface.IHookRegistry.html +3093 -0
  663. package/typedoc/interfaces/router_transition_interface.IMatchingNodes.html +663 -0
  664. package/typedoc/interfaces/{animations_raf-scheduler.RafSchedulerObject.html → router_transition_interface.PathType.html} +76 -28
  665. package/typedoc/interfaces/{types.TranscludeFunctionObject.html → router_transition_interface.PathTypes.html} +199 -164
  666. package/typedoc/{types/core_parse_parse.CompiledExpressionFunction.html → interfaces/router_transition_interface.RegisteredHooks.html} +28 -14
  667. package/typedoc/interfaces/router_transition_interface.TransitionCreateHookFn.html +330 -0
  668. package/typedoc/interfaces/router_transition_interface.TransitionHookFn.html +366 -0
  669. package/typedoc/interfaces/router_transition_interface.TransitionHookOptions.html +718 -0
  670. package/typedoc/interfaces/router_transition_interface.TransitionOptions.html +1231 -0
  671. package/typedoc/interfaces/router_transition_interface.TransitionStateHookFn.html +388 -0
  672. package/typedoc/interfaces/router_transition_interface.TreeChanges.html +849 -0
  673. package/typedoc/interfaces/router_view_interface.ActiveUIView.html +700 -0
  674. package/typedoc/{classes/router_globals.UIRouterGlobals.html → interfaces/router_view_interface.ViewConfig.html} +235 -226
  675. package/typedoc/interfaces/router_view_interface.ViewContext.html +455 -0
  676. package/typedoc/interfaces/services_anchor-scroll.AnchorScrollObject.html +4 -4
  677. package/typedoc/interfaces/services_log.LogService.html +14 -14
  678. package/typedoc/{types/types.Injectable.html → interfaces/shared_interface.TypedMap.html} +24 -22
  679. package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +6 -6
  680. package/typedoc/media/CONTRIBUTING.md +9 -9
  681. package/typedoc/media/DEVELOPERS.md +30 -30
  682. package/typedoc/modules/animations_interface.html +325 -0
  683. package/typedoc/modules/animations_raf-scheduler.html +15 -45
  684. package/typedoc/modules/core_compile_compile.html +27 -0
  685. package/typedoc/modules/core_error-handler.html +325 -0
  686. package/typedoc/modules/core_exception-handler.html +48 -12
  687. package/typedoc/modules/core_parse_ast_ast.html +0 -62
  688. package/typedoc/modules/core_parse_interface.html +473 -0
  689. package/typedoc/modules/core_parse_parse.html +0 -213
  690. package/typedoc/modules/core_sanitize_interface.html +323 -0
  691. package/typedoc/modules/core_sanitize_sanitize-uri.html +64 -0
  692. package/typedoc/modules/core_sce_sce.html +1 -1
  693. package/typedoc/modules/{types.html → interface.html} +106 -414
  694. package/typedoc/modules/router_common_glob.html +62 -181
  695. package/typedoc/modules/router_common_trace.html +65 -27
  696. package/typedoc/modules/router_globals.html +70 -6
  697. package/typedoc/modules/router_params_interface.html +405 -0
  698. package/typedoc/modules/router_resolve_interface.html +524 -0
  699. package/typedoc/modules/router_state_interface.html +609 -0
  700. package/typedoc/modules/router_state_state-object.html +64 -0
  701. package/typedoc/modules/router_state_state-registry.html +64 -0
  702. package/typedoc/modules/router_state_views.html +12 -14
  703. package/typedoc/modules/router_transition_interface.html +553 -14
  704. package/typedoc/modules/router_transition_transition.html +64 -0
  705. package/typedoc/modules/router_view_interface.html +376 -0
  706. package/typedoc/modules/shared_interface.html +439 -0
  707. package/typedoc/modules/shared_utils.html +26 -26
  708. package/typedoc/modules.html +267 -23
  709. package/typedoc/types/animations_animate.AnimationMethod.html +2 -2
  710. package/typedoc/types/animations_interface.RafScheduler.html +638 -0
  711. package/typedoc/types/core_cache_cache-factory.TemplateCache.html +2 -2
  712. package/typedoc/types/core_compile_compile.ApplyDirectivesToNodeFn.html +2 -2
  713. package/typedoc/types/core_compile_compile.BoundTranscludeFn.html +2 -2
  714. package/typedoc/types/core_compile_compile.CompileFn.html +2 -2
  715. package/typedoc/types/core_compile_compile.CompileNodesFn.html +2 -2
  716. package/typedoc/types/core_compile_compile.CompositeLinkFn.html +2 -2
  717. package/typedoc/types/core_compile_compile.NodeLinkFn.html +4 -34
  718. package/typedoc/types/core_compile_compile.PublicLinkFn.html +11 -2
  719. package/typedoc/types/core_compile_compile.TranscludeFn.html +2 -2
  720. package/typedoc/types/{core_exception-handler.ErrorHandler.html → core_error-handler.ErrorHandler.html} +8 -5
  721. package/typedoc/types/core_exception-handler.LogService.html +2 -2
  722. package/typedoc/types/core_parse_ast_ast-node.ASTNode.html +52 -52
  723. package/typedoc/types/{core_parse_parse.CompiledExpression.html → core_parse_interface.CompiledExpression.html} +13 -5
  724. package/typedoc/types/core_parse_interface.CompiledExpressionFunction.html +360 -0
  725. package/typedoc/types/core_parse_interface.ParseService.html +487 -0
  726. package/typedoc/types/core_parse_interpreter.DecoratedASTNode.html +2 -2
  727. package/typedoc/types/core_scope_scope.ListenerFunction.html +2 -2
  728. package/typedoc/types/core_url-utils_url-utils.HttpProtocol.html +2 -2
  729. package/typedoc/types/interface.AnnotatedFactory.html +288 -0
  730. package/typedoc/types/{types.CloneAttachFunction.html → interface.CloneAttachFunction.html} +6 -11
  731. package/typedoc/types/interface.ControllerConstructor.html +329 -0
  732. package/typedoc/types/interface.DirectiveCompileFn.html +420 -0
  733. package/typedoc/types/{types.DirectiveController.html → interface.DirectiveController.html} +9 -6
  734. package/typedoc/types/{types.DirectiveFactory.html → interface.DirectiveFactory.html} +12 -9
  735. package/typedoc/types/{types.DirectiveLinkFn.html → interface.DirectiveLinkFn.html} +60 -52
  736. package/typedoc/types/{types.Expression.html → interface.Expression.html} +14 -3
  737. package/typedoc/types/interface.FilterFactory.html +324 -0
  738. package/typedoc/types/interface.FilterFn.html +328 -0
  739. package/typedoc/types/{types.TAttributes.html → interface.Injectable.html} +15 -10
  740. package/typedoc/types/interface.InjectableFactory.html +323 -0
  741. package/typedoc/types/{types.Attributes.html → interface.OnChangesObject.html} +15 -9
  742. package/typedoc/types/{types.TController.html → interface.TController.html} +8 -5
  743. package/typedoc/types/{types.AnnotatedFunction.html → router_resolve_interface.PolicyAsync.html} +17 -15
  744. package/typedoc/types/{types.ServiceProvider.html → router_resolve_interface.PolicyWhen.html} +13 -10
  745. package/typedoc/{variables/router_transition_interface.TransitionHookScope.html → types/router_state_interface.RedirectToResult.html} +40 -38
  746. package/typedoc/types/router_state_interface.ResolveTypes.html +281 -0
  747. package/typedoc/types/{animations_raf-scheduler.RafScheduler.html → router_state_interface.StateOrName.html} +16 -15
  748. package/typedoc/types/router_state_interface._StateDeclaration.html +288 -0
  749. package/typedoc/types/router_transition_interface.HookFn.html +281 -0
  750. package/typedoc/{variables/router_common_trace.Category.html → types/router_transition_interface.HookMatchCriterion.html} +23 -19
  751. package/typedoc/types/router_transition_interface.HookResult.html +324 -0
  752. package/typedoc/types/{types.DirectiveCompileFn.html → router_transition_interface.IHookRegistration.html} +53 -53
  753. package/typedoc/{variables/core_parse_ast_ast.literals.html → types/router_transition_interface.IStateMatch.html} +27 -13
  754. package/typedoc/types/services_anchor-scroll.AnchorScrollFunction.html +2 -2
  755. package/typedoc/types/services_anchor-scroll.AnchorScrollService.html +2 -2
  756. package/typedoc/types/services_browser.UrlChangeListener.html +2 -2
  757. package/typedoc/types/services_log.LogCall.html +2 -2
  758. package/typedoc/types/shared_interface.Mapper.html +351 -0
  759. package/typedoc/types/shared_interface.Predicate.html +319 -0
  760. package/typedoc/types/shared_interface.PredicateBinary.html +344 -0
  761. package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +2 -2
  762. package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +2 -2
  763. package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +2 -2
  764. package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +2 -2
  765. package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +2 -2
  766. package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +2 -2
  767. package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +2 -2
  768. package/typedoc/variables/animations_shared.ANIMATION_PROP.html +2 -2
  769. package/typedoc/variables/animations_shared.CSS_PREFIX.html +2 -2
  770. package/typedoc/variables/animations_shared.DELAY_KEY.html +2 -2
  771. package/typedoc/variables/animations_shared.DURATION_KEY.html +2 -2
  772. package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +2 -2
  773. package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +2 -2
  774. package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +2 -2
  775. package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +2 -2
  776. package/typedoc/variables/animations_shared.PROPERTY_KEY.html +2 -2
  777. package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +2 -2
  778. package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +2 -2
  779. package/typedoc/variables/animations_shared.TIMING_KEY.html +2 -2
  780. package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +2 -2
  781. package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +2 -2
  782. package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +2 -2
  783. package/typedoc/variables/animations_shared.TRANSITION_PROP.html +2 -2
  784. package/typedoc/variables/animations_shared.ngMinErr.html +2 -2
  785. package/typedoc/variables/core_cache_cache.Cache.html +2 -2
  786. package/typedoc/variables/core_cache_cache.EXPANDO.html +2 -2
  787. package/typedoc/variables/core_cache_cache.ISOLATE_SCOPE_KEY.html +2 -2
  788. package/typedoc/variables/core_cache_cache.SCOPE_KEY.html +2 -2
  789. package/typedoc/variables/core_compile_compile.DirectiveSuffix.html +2 -2
  790. package/typedoc/variables/core_di_injector.path.html +2 -2
  791. package/typedoc/variables/core_di_ng-module.ANIMATION_LITERAL.html +2 -2
  792. package/typedoc/variables/core_di_ng-module.COMPILE_LITERAL.html +2 -2
  793. package/typedoc/variables/core_di_ng-module.CONTROLLER_LITERAL.html +2 -2
  794. package/typedoc/variables/core_di_ng-module.FILTER_LITERAL.html +2 -2
  795. package/typedoc/variables/core_di_ng-module.INJECTOR_LITERAL.html +2 -2
  796. package/typedoc/variables/core_di_ng-module.PROVIDE_LITERAL.html +2 -2
  797. package/typedoc/variables/core_parse_interpreter.PURITY_ABSOLUTE.html +2 -2
  798. package/typedoc/variables/core_parse_interpreter.PURITY_RELATIVE.html +2 -2
  799. package/typedoc/variables/core_pubsub_pubsub.EventBus.html +2 -2
  800. package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +2 -2
  801. package/typedoc/variables/core_scope_scope.NONSCOPE.html +2 -2
  802. package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +2 -2
  803. package/typedoc/variables/core_scope_scope._postUpdateQueue.html +2 -2
  804. package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +2 -2
  805. package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +2 -2
  806. package/typedoc/variables/directive_class_class.ngClassDirective.html +5 -5
  807. package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +5 -5
  808. package/typedoc/variables/directive_class_class.ngClassOddDirective.html +5 -5
  809. package/typedoc/variables/directive_events_events.ngEventDirectives.html +2 -2
  810. package/typedoc/variables/directive_form_form.PENDING_CLASS.html +2 -2
  811. package/typedoc/variables/directive_form_form.formDirective.html +2 -2
  812. package/typedoc/variables/directive_form_form.ngFormDirective.html +2 -2
  813. package/typedoc/variables/directive_form_form.nullFormCtrl.html +2 -2
  814. package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +2 -2
  815. package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +2 -2
  816. package/typedoc/variables/directive_input_input.URL_REGEXP.html +2 -2
  817. package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +2 -2
  818. package/typedoc/variables/directive_messages_messages.ngMessageDefaultDirective.html +2 -2
  819. package/typedoc/variables/directive_messages_messages.ngMessageDirective.html +2 -2
  820. package/typedoc/variables/directive_messages_messages.ngMessageExpDirective.html +2 -2
  821. package/typedoc/variables/directive_model-options_model-options.defaultModelOptions.html +2 -2
  822. package/typedoc/variables/directive_model_model.ngModelMinErr.html +2 -2
  823. package/typedoc/variables/directive_options_options.ngOptionsDirective.html +6 -6
  824. package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +6 -6
  825. package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +12 -12
  826. package/typedoc/variables/directive_validators_validators.minlengthDirective.html +4 -4
  827. package/typedoc/variables/directive_validators_validators.patternDirective.html +12 -12
  828. package/typedoc/variables/directive_validators_validators.requiredDirective.html +12 -12
  829. package/typedoc/variables/index.angular.html +2 -2
  830. package/typedoc/variables/public.VERSION.html +3 -7
  831. package/typedoc/variables/router_common_trace.trace.html +2 -2
  832. package/typedoc/variables/router_directives_view-directive.ngView.html +7 -7
  833. package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +2 -2
  834. package/typedoc/variables/router_params_param.DefType.html +2 -2
  835. package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +2 -2
  836. package/typedoc/variables/router_resolve_resolve-context.resolvePolicies.html +2 -2
  837. package/typedoc/variables/router_transition_transition-service.defaultTransOpts.html +2 -2
  838. package/typedoc/variables/services_log.LogService.html +4 -4
  839. package/typedoc/variables/shared_common.assertMap.html +2 -2
  840. package/typedoc/variables/shared_common.assertPredicate.html +2 -2
  841. package/typedoc/variables/shared_common.pushTo.html +2 -2
  842. package/typedoc/variables/shared_common.removeFrom.html +2 -2
  843. package/typedoc/variables/shared_constants.ALIASED_ATTR.html +2 -2
  844. package/typedoc/variables/shared_constants.DIRTY_CLASS.html +2 -2
  845. package/typedoc/variables/shared_constants.EMPTY_CLASS.html +2 -2
  846. package/typedoc/variables/shared_constants.INVALID_CLASS.html +2 -2
  847. package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +2 -2
  848. package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +2 -2
  849. package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +2 -2
  850. package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +2 -2
  851. package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +2 -2
  852. package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +2 -2
  853. package/typedoc/variables/shared_constants.VALID_CLASS.html +2 -2
  854. package/typedoc/variables/shared_dom.BOOLEAN_ATTR.html +2 -2
  855. package/typedoc/variables/shared_hof.propEq.html +2 -2
  856. package/typedoc/variables/shared_strings.hostRegex.html +2 -2
  857. package/typedoc/variables/shared_strings.splitEqual.html +2 -2
  858. package/typedoc/variables/shared_strings.splitHash.html +2 -2
  859. package/typedoc/variables/shared_strings.splitQuery.html +2 -2
  860. package/typedoc/variables/shared_utils.isProxySymbol.html +2 -2
  861. package/typedoc/variables/shared_utils.ngAttrPrefixes.html +2 -2
  862. package/@types/directive/change/change.d.ts +0 -4
  863. package/@types/types.d.ts +0 -595
  864. package/src/types.js +0 -427
  865. package/typedoc/interfaces/types.FormController.html +0 -1541
  866. package/typedoc/interfaces/types.Module.html +0 -1566
  867. package/typedoc/interfaces/types.NgModelController.html +0 -2088
  868. package/typedoc/types/core_parse_parse.ParseService.html +0 -266
  869. package/typedoc/types/types.AsyncModelValidators.html +0 -266
  870. package/typedoc/types/types.BootstrapConfig.html +0 -262
  871. package/typedoc/types/types.ComponentOptions.html +0 -262
  872. package/typedoc/types/types.ControllerConstructor.html +0 -262
  873. package/typedoc/types/types.FilterFactory.html +0 -262
  874. package/typedoc/types/types.FilterFunction.html +0 -262
  875. package/typedoc/types/types.ModelValidators.html +0 -266
  876. package/typedoc/types/types.ServiceProviderFactory.html +0 -262
  877. package/typedoc/types/types.TElement.html +0 -262
  878. package/typedoc/types/types.TScope.html +0 -266
  879. package/typedoc/types/types.TranscludeFunction.html +0 -262
  880. package/typedoc/types/types.transcludeWithScope.html +0 -262
  881. package/typedoc/types/types.transcludeWithoutScope.html +0 -262
@@ -0,0 +1,922 @@
1
+ import { StateDeclaration } from "../state/interface.ts";
2
+ import { PredicateBinary } from "../../shared/interface.ts";
3
+ import { Transition } from "./transition.js";
4
+ import { StateObject } from "../state/state-object.js";
5
+ import { PathNode } from "../path/path-node.js";
6
+ import { TargetState } from "../state/target-state.js";
7
+ import { RegisteredHook } from "./hook-registry.js";
8
+
9
+ /**
10
+ * The TransitionOptions object can be used to change the behavior of a transition.
11
+ *
12
+ * It is passed as the third argument to [[StateService.go]], [[StateService.transitionTo]].
13
+ * It can also be used with a `uiSref`.
14
+ */
15
+ export interface TransitionOptions {
16
+ /**
17
+ * This option changes how the Transition interacts with the browser's location bar (URL).
18
+ *
19
+ * - If `true`, it will update the url in the location bar.
20
+ * - If `false`, it will not update the url in the location bar.
21
+ * - If it is the string `"replace"`, it will update the url and also replace the last history record.
22
+ *
23
+ * @default `true`
24
+ */
25
+ location?: boolean | "replace";
26
+
27
+ /**
28
+ * When transitioning to relative path (e.g '`^`'), this option defines which state to be relative from.
29
+ * @default `$state.current`
30
+ */
31
+ relative?: string | StateDeclaration | StateObject;
32
+
33
+ /**
34
+ * This option sets whether or not the transition's parameter values should be inherited from
35
+ * the current parameter values.
36
+ *
37
+ * - If `true`, it will inherit parameter values from the current parameter values.
38
+ * - If `false`, only the parameters which are provided to `transitionTo` will be used.
39
+ *
40
+ * @default `true`
41
+ */
42
+ inherit?: boolean;
43
+
44
+ /**
45
+ * @deprecated
46
+ */
47
+ notify?: boolean;
48
+
49
+ /**
50
+ * This option may be used to force states which are currently active to reload.
51
+ *
52
+ * During a normal transition, a state is "retained" if:
53
+ * - It was previously active
54
+ * - The state's parameter values have not changed
55
+ * - All the parent states' parameter values have not changed
56
+ *
57
+ * Forcing a reload of a state will cause it to be exited and entered, which will:
58
+ * - Refetch that state's resolve data
59
+ * - Exit the state (onExit hook)
60
+ * - Re-enter the state (onEnter hook)
61
+ * - Re-render the views (controllers and templates)
62
+ *
63
+ * - When `true`, the destination state (and all parent states) will be reloaded.
64
+ * - When it is a string and is the name of a state, or when it is a State object,
65
+ * that state and any children states will be reloaded.
66
+ *
67
+ * @default `false`
68
+ */
69
+ reload?: boolean | string | StateDeclaration | StateObject;
70
+ /**
71
+ * You can define your own Transition Options inside this property and use them, e.g., from a Transition Hook
72
+ */
73
+ custom?: any;
74
+ /**
75
+ * This option may be used to cancel the active transition (if one is active) in favour of the this one.
76
+ * This is the default behaviour or ui-router.
77
+ *
78
+ *
79
+ * - When `true`, the active transition will be canceled and new transition will begin.
80
+ * - when `false`, the transition will be canceled if a transition is already running. This can be useful in cases where
81
+ * you only want to navigate to a different state if you are not already navigating somewhere.
82
+ *
83
+ * @default `true`
84
+ */
85
+ supercede?: boolean;
86
+ /** @internal */
87
+ reloadState?: StateObject;
88
+ /** @internal
89
+ * If this transition is a redirect, this property should be the original Transition (which was redirected to this one)
90
+ */
91
+ redirectedFrom?: Transition;
92
+ /** @internal */
93
+ current?: () => Transition;
94
+ /** @internal */
95
+ source?: "sref" | "url" | "redirect" | "otherwise" | "unknown";
96
+ }
97
+
98
+ export interface TransitionHookOptions {
99
+ current?: () => Transition; // path?
100
+ transition?: Transition;
101
+ hookType?: string;
102
+ target?: any;
103
+ traceData?: any;
104
+ bind?: any;
105
+ stateHook?: boolean;
106
+ }
107
+
108
+ /**
109
+ * TreeChanges encapsulates the various Paths that are involved in a Transition.
110
+ *
111
+ * Get a TreeChanges object using [[Transition.treeChanges]]
112
+ *
113
+ * A UI-Router Transition is from one Path in a State Tree to another Path. For a given Transition,
114
+ * this object stores the "to" and "from" paths, as well as subsets of those: the "retained",
115
+ * "exiting" and "entering" paths.
116
+ *
117
+ * Each path in TreeChanges is an array of [[PathNode]] objects. Each PathNode in the array corresponds to a portion
118
+ * of a nested state.
119
+ *
120
+ * For example, if you had a nested state named `foo.bar.baz`, it would have three
121
+ * portions, `foo, bar, baz`. If you transitioned **to** `foo.bar.baz` and inspected the [[TreeChanges.to]]
122
+ * Path, you would find a node in the array for each portion: `foo`, `bar`, and `baz`.
123
+ *
124
+ * ---
125
+ *
126
+ * @todo show visual state tree
127
+ */
128
+ export interface TreeChanges {
129
+ /** @nodoc */
130
+ [key: string]: PathNode[] | undefined;
131
+
132
+ /** The path of nodes in the state tree that the transition is coming *from* */
133
+ from: PathNode[];
134
+
135
+ /** The path of nodes in the state tree that the transition is going *to* */
136
+ to: PathNode[];
137
+
138
+ /**
139
+ * The path of active nodes that the transition is retaining.
140
+ *
141
+ * These nodes are neither exited, nor entered.
142
+ * Before and after the transition is successful, these nodes are active.
143
+ */
144
+ retained: PathNode[];
145
+
146
+ /**
147
+ * The path of active nodes that the transition is retaining with updated "to params" applied.
148
+ *
149
+ * These nodes are neither exited, nor entered.
150
+ * Before and after the transition is successful, these nodes are active.
151
+ *
152
+ * This is a shallow copy of [[retained]], but with new (dynamic) parameter values from [[to]] applied.
153
+ */
154
+ retainedWithToParams: PathNode[];
155
+
156
+ /**
157
+ * The path of previously active nodes that the transition is exiting.
158
+ *
159
+ * After the Transition is successful, these nodes are no longer active.
160
+ *
161
+ * Note that a state that is being reloaded (due to parameter values changing, or `reload: true`) may be in both the
162
+ * `exiting` and `entering` paths.
163
+ */
164
+ exiting: PathNode[];
165
+
166
+ /**
167
+ * The path of nodes that the transition is entering.
168
+ *
169
+ * After the Transition is successful, these nodes will be active.
170
+ * Because they are entering, they have their resolves fetched, `onEnter` hooks run, and their views
171
+ * (component(s) or controller(s)+template(s)) refreshed.
172
+ *
173
+ * Note that a state that is reloaded (due to parameter values changing, or `reload: true`) may be in both the
174
+ * `exiting` and `entering` paths.
175
+ */
176
+ entering: PathNode[];
177
+ }
178
+
179
+ export type IHookRegistration = (
180
+ matchCriteria: HookMatchCriteria,
181
+ callback: HookFn,
182
+ options?: HookRegOptions,
183
+ ) => Function;
184
+
185
+ /**
186
+ * The signature for Transition Hooks.
187
+ *
188
+ * Transition hooks are callback functions that hook into the lifecycle of transitions.
189
+ * As a transition runs, it reaches certain lifecycle events.
190
+ * As each event occurs, the hooks which are registered for the event are called (in priority order).
191
+ *
192
+ * A transition hook may alter a Transition by returning a [[HookResult]].
193
+ *
194
+ * #### See:
195
+ *
196
+ * - [[IHookRegistry.onBefore]]
197
+ * - [[IHookRegistry.onStart]]
198
+ * - [[IHookRegistry.onFinish]]
199
+ * - [[IHookRegistry.onSuccess]]
200
+ * - [[IHookRegistry.onError]]
201
+ *
202
+ * @param transition the current [[Transition]]
203
+ * @param injector (for ng1 or ng2 only) the injector service
204
+ *
205
+ * @returns a [[HookResult]] which may alter the transition
206
+ *
207
+ */
208
+ export interface TransitionHookFn {
209
+ (transition: Transition): HookResult;
210
+ }
211
+
212
+ /**
213
+ * The signature for State Transition Hooks.
214
+ *
215
+ * State hooks are registered as onEnter/onRetain/onExit in state declarations.
216
+ * State hooks can additionally be injected with $transitions and $states for
217
+ * the current [[Transition]] and [[StateObject]] in the transition.
218
+ *
219
+ * Transition State Hooks are callback functions that hook into the lifecycle events of specific states during a transition.
220
+ * As a transition runs, it may exit some states, retain (keep) states, and enter states.
221
+ * As each lifecycle event occurs, the hooks which are registered for the event and that state are called (in priority order).
222
+ *
223
+ * #### See also:
224
+ *
225
+ * - [[IHookRegistry.onExit]]
226
+ * - [[IHookRegistry.onRetain]]
227
+ * - [[IHookRegistry.onEnter]]
228
+ *
229
+ * #### Example:
230
+ * ```js
231
+ * onEnter: function() { console.log('Entering'); }
232
+ * ```
233
+ *
234
+ * Not minification-safe
235
+ * ```js
236
+ * onRetain: function($state$) { console.log('Retained ' + $state$.name); }
237
+ * ```
238
+ *
239
+ * Annotated for minification-safety
240
+ * ```js
241
+ * onExit: [ '$transition$', '$state', function($transition$, $state) {
242
+ * // always redirect to 'foo' state when being exited
243
+ * if ($transition$.to().name !== 'foo') {
244
+ * return $state.target('foo');
245
+ * }
246
+ * } ]
247
+ * ```
248
+ *
249
+ * @returns an optional [[HookResult]] which may alter the transition
250
+ */
251
+ export interface TransitionStateHookFn {
252
+ (...injectables: any[]): HookResult;
253
+ }
254
+
255
+ /**
256
+ * The signature for Transition onCreate Hooks.
257
+ *
258
+ * Transition onCreate Hooks are callbacks that allow customization or preprocessing of
259
+ * a Transition before it is returned from [[TransitionService.create]]
260
+ *
261
+ * @param transition the [[Transition]] that was just created
262
+ * @return a [[Transition]] which will then be returned from [[TransitionService.create]]
263
+ */
264
+ export interface TransitionCreateHookFn {
265
+ (transition: Transition): void;
266
+ }
267
+
268
+ export type HookFn =
269
+ | TransitionHookFn
270
+ | TransitionStateHookFn
271
+ | TransitionCreateHookFn;
272
+
273
+ /**
274
+ * The return value of a [[TransitionHookFn]] or [[TransitionStateHookFn]]
275
+ *
276
+ * When returned from a [[TransitionHookFn]] or [[TransitionStateHookFn]], these values alter the running [[Transition]]:
277
+ *
278
+ * - `false`: the transition will be cancelled.
279
+ * - [[TargetState]]: the transition will be redirected to the new target state (see: [[StateService.target]])
280
+ * - `Promise`: the transition will wait for the promise to resolve or reject
281
+ * - If the promise is rejected (or resolves to `false`), the transition will be cancelled
282
+ * - If the promise resolves to a [[TargetState]], the transition will be redirected
283
+ * - If the promise resolves to anything else, the transition will resume
284
+ * - Anything else: the transition will resume
285
+ */
286
+ export type HookResult =
287
+ | boolean
288
+ | TargetState
289
+ | void
290
+ | Promise<boolean | TargetState | void>;
291
+
292
+ /**
293
+ * These options may be provided when registering a Transition Hook (such as `onStart`)
294
+ */
295
+ export interface HookRegOptions {
296
+ /**
297
+ * Sets the priority of the registered hook
298
+ *
299
+ * Hooks of the same type (onBefore, onStart, etc) are invoked in priority order. A hook with a higher priority
300
+ * is invoked before a hook with a lower priority.
301
+ *
302
+ * The default hook priority is 0
303
+ */
304
+ priority?: number;
305
+
306
+ /**
307
+ * Specifies what `this` is bound to during hook invocation.
308
+ */
309
+ bind?: any;
310
+
311
+ /**
312
+ * Limits the number of times that the hook will be invoked.
313
+ * Once the hook has been invoked this many times, it is automatically deregistered.
314
+ */
315
+ invokeLimit?: number;
316
+ }
317
+
318
+ /**
319
+ * This interface specifies the api for registering Transition Hooks. Both the
320
+ * [[TransitionService]] and also the [[Transition]] object itself implement this interface.
321
+ * Note: the Transition object only allows hooks to be registered before the Transition is started.
322
+ */
323
+ export interface IHookRegistry {
324
+ /** @internal place to store the hooks */
325
+ _registeredHooks: { [key: string]: RegisteredHook[] };
326
+
327
+ /**
328
+ * Registers a [[TransitionHookFn]], called *before a transition starts*.
329
+ *
330
+ * Registers a transition lifecycle hook, which is invoked before a transition even begins.
331
+ * This hook can be useful to implement logic which prevents a transition from even starting, such
332
+ * as authentication, redirection
333
+ *
334
+ * See [[TransitionHookFn]] for the signature of the function.
335
+ *
336
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
337
+ * To match all Transitions, use an empty criteria object `{}`.
338
+ *
339
+ * ### Lifecycle
340
+ *
341
+ * `onBefore` hooks are invoked *before a Transition starts*.
342
+ * No resolves have been fetched yet.
343
+ * Each `onBefore` hook is invoked synchronously, in the same call stack as [[StateService.transitionTo]].
344
+ * The registered `onBefore` hooks are invoked in priority order.
345
+ *
346
+ * Note: during the `onBefore` phase, additional hooks can be added to the specific [[Transition]] instance.
347
+ * These "on-the-fly" hooks only affect the currently running transition..
348
+ *
349
+ * ### Return value
350
+ *
351
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
352
+ * See [[HookResult]] for more information.
353
+ *
354
+ * If any hook modifies the transition *synchronously* (by throwing, returning `false`, or returning
355
+ * a [[TargetState]]), the remainder of the hooks are skipped.
356
+ * If a hook returns a promise, the remainder of the `onBefore` hooks are still invoked synchronously.
357
+ * All promises are resolved, and processed asynchronously before the `onStart` phase of the Transition.
358
+ *
359
+ * ### Examples
360
+ *
361
+ * #### Default Substate
362
+ *
363
+ * This example redirects any transition from 'home' to 'home.dashboard'. This is commonly referred to as a
364
+ * "default substate".
365
+ *
366
+ * @example
367
+ * ```js
368
+ * // ng2
369
+ * transitionService.onBefore({ to: 'home' }, (trans: Transition) =>
370
+ * trans.router.stateService.target("home.dashboard"));
371
+ * ```
372
+ *
373
+ * #### Data Driven Default Substate
374
+ *
375
+ * This example provides data-driven default substate functionality. It matches on a transition to any state
376
+ * which has `defaultSubstate: "some.sub.state"` defined. See: [[Transition.to]] which returns the "to state"
377
+ * definition.
378
+ *
379
+ * @example
380
+ * ```js
381
+ * // ng1
382
+ * // state declaration
383
+ * {
384
+ * name: 'home',
385
+ * template: '<div ui-view/>',
386
+ * defaultSubstate: 'home.dashboard'
387
+ * }
388
+ *
389
+ * var criteria = {
390
+ * to: function(state) {
391
+ * return state.defaultSubstate != null;
392
+ * }
393
+ * }
394
+ *
395
+ * $transitions.onBefore(criteria, function(trans: Transition) {
396
+ * var substate = trans.to().defaultSubstate;
397
+ * return trans.router.stateService.target(substate);
398
+ * });
399
+ * ```
400
+ *
401
+ *
402
+ * #### Require authentication
403
+ *
404
+ * This example cancels a transition to a state which requires authentication, if the user is not currently authenticated.
405
+ *
406
+ * This example assumes a state tree where all states which require authentication are children of a parent `'requireauth'` state.
407
+ * This example assumes `MyAuthService` synchronously returns a boolean from `isAuthenticated()`.
408
+ *
409
+ * #### Example:
410
+ * ```js
411
+ * // ng1
412
+ * $transitions.onBefore( { to: 'requireauth.**' }, function(trans) {
413
+ * var myAuthService = trans.injector().get('MyAuthService');
414
+ * // If isAuthenticated returns false, the transition is cancelled.
415
+ * return myAuthService.isAuthenticated();
416
+ * });
417
+ * ```
418
+ *
419
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
420
+ * @param callback the hook function which will be invoked.
421
+ * @returns a function which deregisters the hook.
422
+ */
423
+ onBefore(
424
+ matchCriteria: HookMatchCriteria,
425
+ callback: TransitionHookFn,
426
+ options?: HookRegOptions,
427
+ ): Function;
428
+
429
+ /**
430
+ * Registers a [[TransitionHookFn]], called when a transition starts.
431
+ *
432
+ * Registers a transition lifecycle hook, which is invoked as a transition starts running.
433
+ * This hook can be useful to perform some asynchronous action before completing a transition.
434
+ *
435
+ * See [[TransitionHookFn]] for the signature of the function.
436
+ *
437
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
438
+ * To match all Transitions, use an empty criteria object `{}`.
439
+ *
440
+ * ### Lifecycle
441
+ *
442
+ * `onStart` hooks are invoked asynchronously when the Transition starts running.
443
+ * This happens after the `onBefore` phase is complete.
444
+ * At this point, the Transition has not yet exited nor entered any states.
445
+ * The registered `onStart` hooks are invoked in priority order.
446
+ *
447
+ * Note: A built-in `onStart` hook with high priority is used to fetch any eager resolve data.
448
+ *
449
+ * ### Return value
450
+ *
451
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
452
+ * See [[HookResult]] for more information.
453
+ *
454
+ * ### Example
455
+ *
456
+ * #### Login during transition
457
+ *
458
+ * This example intercepts any transition to a state which requires authentication, when the user is
459
+ * not currently authenticated. It allows the user to authenticate asynchronously, then resumes the
460
+ * transition. If the user did not authenticate successfully, it redirects to the "guest" state, which
461
+ * does not require authentication.
462
+ *
463
+ * This example assumes:
464
+ * - a state tree where all states which require authentication are children of a parent `'auth'` state.
465
+ * - `MyAuthService.isAuthenticated()` synchronously returns a boolean.
466
+ * - `MyAuthService.authenticate()` presents a login dialog, and returns a promise which is resolved
467
+ * or rejected, whether or not the login attempt was successful.
468
+ *
469
+ * #### Example:
470
+ * ```js
471
+ * // ng1
472
+ * $transitions.onStart( { to: 'auth.**' }, function(trans) {
473
+ * var $state = trans.router.stateService;
474
+ * var MyAuthService = trans.injector().get('MyAuthService');
475
+ *
476
+ * // If the user is not authenticated
477
+ * if (!MyAuthService.isAuthenticated()) {
478
+ *
479
+ * // Then return a promise for a successful login.
480
+ * // The transition will wait for this promise to settle
481
+ *
482
+ * return MyAuthService.authenticate().catch(function() {
483
+ *
484
+ * // If the authenticate() method failed for whatever reason,
485
+ * // redirect to a 'guest' state which doesn't require auth.
486
+ * return $state.target("guest");
487
+ * });
488
+ * }
489
+ * });
490
+ * ```
491
+ *
492
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
493
+ * @param callback the hook function which will be injected and invoked.
494
+ * @returns a function which deregisters the hook.
495
+ */
496
+ onStart(
497
+ matchCriteria: HookMatchCriteria,
498
+ callback: TransitionHookFn,
499
+ options?: HookRegOptions,
500
+ ): Function;
501
+
502
+ /**
503
+ * Registers a [[TransitionStateHookFn]], called when a specific state is entered.
504
+ *
505
+ * Registers a lifecycle hook, which is invoked (during a transition) when a specific state is being entered.
506
+ *
507
+ * Since this hook is run only when the specific state is being *entered*, it can be useful for
508
+ * performing tasks when entering a submodule/feature area such as initializing a stateful service,
509
+ * or for guarding access to a submodule/feature area.
510
+ *
511
+ * See [[TransitionStateHookFn]] for the signature of the function.
512
+ *
513
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
514
+ * `onEnter` hooks generally specify `{ entering: 'somestate' }`.
515
+ * To match all Transitions, use an empty criteria object `{}`.
516
+ *
517
+ * ### Lifecycle
518
+ *
519
+ * `onEnter` hooks are invoked when the Transition is entering a state.
520
+ * States are entered after the `onRetain` phase is complete.
521
+ * If more than one state is being entered, the parent state is entered first.
522
+ * The registered `onEnter` hooks for a state are invoked in priority order.
523
+ *
524
+ * Note: A built-in `onEnter` hook with high priority is used to fetch lazy resolve data for states being entered.
525
+ *
526
+ * ### Return value
527
+ *
528
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
529
+ * See [[HookResult]] for more information.
530
+ *
531
+ * ### Inside a state declaration
532
+ *
533
+ * Instead of registering `onEnter` hooks using the [[TransitionService]], you may define an `onEnter` hook
534
+ * directly on a state declaration (see: [[StateDeclaration.onEnter]]).
535
+ *
536
+ *
537
+ * ### Examples
538
+ *
539
+ * #### Audit Log
540
+ *
541
+ * This example uses a service to log that a user has entered the admin section of an app.
542
+ * This assumes that there are substates of the "admin" state, such as "admin.users", "admin.pages", etc.
543
+ * @example
544
+ * ```
545
+ *
546
+ * $transitions.onEnter({ entering: 'admin' }, function(transition, state) {
547
+ * var AuditService = trans.injector().get('AuditService');
548
+ * AuditService.log("Entered " + state.name + " module while transitioning to " + transition.to().name);
549
+ * }
550
+ * ```
551
+ *
552
+ * #### Audit Log (inside a state declaration)
553
+ *
554
+ * The `onEnter` inside this state declaration is syntactic sugar for the previous Audit Log example.
555
+ * ```
556
+ * {
557
+ * name: 'admin',
558
+ * component: 'admin',
559
+ * onEnter: function($transition$, $state$) {
560
+ * var AuditService = $transition$.injector().get('AuditService');
561
+ * AuditService.log("Entered " + state.name + " module while transitioning to " + transition.to().name);
562
+ * }
563
+ * }
564
+ * ```
565
+ *
566
+ * Note: A state declaration's `onEnter` function is injected for Angular 1 only.
567
+ *
568
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
569
+ * @param callback the hook function which will be injected and invoked.
570
+ * @returns a function which deregisters the hook.
571
+ */
572
+ onEnter(
573
+ matchCriteria: HookMatchCriteria,
574
+ callback: TransitionStateHookFn,
575
+ options?: HookRegOptions,
576
+ ): Function;
577
+
578
+ /**
579
+ * Registers a [[TransitionStateHookFn]], called when a specific state is retained/kept.
580
+ *
581
+ * Registers a lifecycle hook, which is invoked (during a transition) for
582
+ * a specific state that was previously active will remain active (is not being entered nor exited).
583
+ *
584
+ * This hook is invoked when a state is "retained" or "kept".
585
+ * It means the transition is coming *from* a substate of the retained state *to* a substate of the retained state.
586
+ * This hook can be used to perform actions when the user moves from one substate to another, such as between steps in a wizard.
587
+ *
588
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
589
+ * `onRetain` hooks generally specify `{ retained: 'somestate' }`.
590
+ * To match all Transitions, use an empty criteria object `{}`.
591
+ *
592
+ * ### Lifecycle
593
+ *
594
+ * `onRetain` hooks are invoked after any `onExit` hooks have been fired.
595
+ * If more than one state is retained, the child states' `onRetain` hooks are invoked first.
596
+ * The registered `onRetain` hooks for a state are invoked in priority order.
597
+ *
598
+ * ### Return value
599
+ *
600
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
601
+ * See [[HookResult]] for more information.
602
+ *
603
+ * ### Inside a state declaration
604
+ *
605
+ * Instead of registering `onRetain` hooks using the [[TransitionService]], you may define an `onRetain` hook
606
+ * directly on a state declaration (see: [[StateDeclaration.onRetain]]).
607
+ *
608
+ * Note: A state declaration's `onRetain` function is injected for Angular 1 only.
609
+ *
610
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
611
+ * @param callback the hook function which will be injected and invoked.
612
+ * @returns a function which deregisters the hook.
613
+ */
614
+ onRetain(
615
+ matchCriteria: HookMatchCriteria,
616
+ callback: TransitionStateHookFn,
617
+ options?: HookRegOptions,
618
+ ): Function;
619
+
620
+ /**
621
+ * Registers a [[TransitionStateHookFn]], called when a specific state is exited.
622
+ *
623
+ * Registers a lifecycle hook, which is invoked (during a transition) when a specific state is being exited.
624
+ *
625
+ * Since this hook is run only when the specific state is being *exited*, it can be useful for
626
+ * performing tasks when leaving a submodule/feature area such as cleaning up a stateful service,
627
+ * or for preventing the user from leaving a state or submodule until some criteria is satisfied.
628
+ *
629
+ * See [[TransitionStateHookFn]] for the signature of the function.
630
+ *
631
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
632
+ * `onExit` hooks generally specify `{ exiting: 'somestate' }`.
633
+ * To match all Transitions, use an empty criteria object `{}`.
634
+ *
635
+ * ### Lifecycle
636
+ *
637
+ * `onExit` hooks are invoked when the Transition is exiting a state.
638
+ * States are exited after any `onStart` phase is complete.
639
+ * If more than one state is being exited, the child states are exited first.
640
+ * The registered `onExit` hooks for a state are invoked in priority order.
641
+ *
642
+ * ### Return value
643
+ *
644
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
645
+ * See [[HookResult]] for more information.
646
+ *
647
+ * ### Inside a state declaration
648
+ *
649
+ * Instead of registering `onExit` hooks using the [[TransitionService]], you may define an `onExit` hook
650
+ * directly on a state declaration (see: [[StateDeclaration.onExit]]).
651
+ *
652
+ * Note: A state declaration's `onExit` function is injected for Angular 1 only.
653
+ *
654
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
655
+ * @param callback the hook function which will be injected and invoked.
656
+ * @returns a function which deregisters the hook.
657
+ */
658
+ onExit(
659
+ matchCriteria: HookMatchCriteria,
660
+ callback: TransitionStateHookFn,
661
+ options?: HookRegOptions,
662
+ ): Function;
663
+
664
+ /**
665
+ * Registers a [[TransitionHookFn]], called *just before a transition finishes*.
666
+ *
667
+ * Registers a transition lifecycle hook, which is invoked just before a transition finishes.
668
+ * This hook is a last chance to cancel or redirect a transition.
669
+ *
670
+ * See [[TransitionHookFn]] for the signature of the function.
671
+ *
672
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
673
+ * To match all Transitions, use an empty criteria object `{}`.
674
+ *
675
+ * ### Lifecycle
676
+ *
677
+ * `onFinish` hooks are invoked after the `onEnter` phase is complete.
678
+ * These hooks are invoked just before the transition is "committed".
679
+ * Each hook is invoked in priority order.
680
+ *
681
+ * ### Return value
682
+ *
683
+ * The hook's return value can be used to pause, cancel, or redirect the current Transition.
684
+ * See [[HookResult]] for more information.
685
+ *
686
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
687
+ * @param callback the hook function which will be injected and invoked.
688
+ * @returns a function which deregisters the hook.
689
+ */
690
+ onFinish(
691
+ matchCriteria: HookMatchCriteria,
692
+ callback: TransitionHookFn,
693
+ options?: HookRegOptions,
694
+ ): Function;
695
+
696
+ /**
697
+ * Registers a [[TransitionHookFn]], called after a successful transition completed.
698
+ *
699
+ * Registers a transition lifecycle hook, which is invoked after a transition successfully completes.
700
+ *
701
+ * See [[TransitionHookFn]] for the signature of the function.
702
+ *
703
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
704
+ * To match all Transitions, use an empty criteria object `{}`.
705
+ *
706
+ * ### Lifecycle
707
+ *
708
+ * `onSuccess` hooks are chained off the Transition's promise (see [[Transition.promise]]).
709
+ * If the Transition is successful and its promise is resolved, then the `onSuccess` hooks are invoked.
710
+ * Since these hooks are run after the transition is over, their return value is ignored.
711
+ * The `onSuccess` hooks are invoked in priority order.
712
+ *
713
+ * ### Return value
714
+ *
715
+ * Since the Transition is already completed, the hook's return value is ignored
716
+ *
717
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
718
+ * @param callback the hook function which will be injected and invoked.
719
+ * @returns a function which deregisters the hook.
720
+ */
721
+ onSuccess(
722
+ matchCriteria: HookMatchCriteria,
723
+ callback: TransitionHookFn,
724
+ options?: HookRegOptions,
725
+ ): Function;
726
+
727
+ /**
728
+ * Registers a [[TransitionHookFn]], called after a transition has errored.
729
+ *
730
+ * Registers a transition lifecycle hook, which is invoked after a transition has been rejected for any reason.
731
+ *
732
+ * See [[TransitionHookFn]] for the signature of the function.
733
+ *
734
+ * The [[HookMatchCriteria]] is used to determine which Transitions the hook should be invoked for.
735
+ * To match all Transitions, use an empty criteria object `{}`.
736
+ *
737
+ * ### Lifecycle
738
+ *
739
+ * The `onError` hooks are chained off the Transition's promise (see [[Transition.promise]]).
740
+ * If a Transition fails, its promise is rejected and the `onError` hooks are invoked.
741
+ * The `onError` hooks are invoked in priority order.
742
+ *
743
+ * Since these hooks are run after the transition is over, their return value is ignored.
744
+ *
745
+ * A transition "errors" if it was started, but failed to complete (for any reason).
746
+ * A *non-exhaustive list* of reasons a transition can error:
747
+ *
748
+ * - A transition was cancelled because a new transition started while it was still running (`Transition superseded`)
749
+ * - A transition was cancelled by a Transition Hook returning false
750
+ * - A transition was redirected by a Transition Hook returning a [[TargetState]]
751
+ * - A Transition Hook or resolve function threw an error
752
+ * - A Transition Hook returned a rejected promise
753
+ * - A resolve function returned a rejected promise
754
+ *
755
+ * To check the failure reason, inspect the return value of [[Transition.error]].
756
+ *
757
+ * Note: `onError` should be used for targeted error handling, or error recovery.
758
+ * For simple catch-all error reporting, use [[StateService.defaultErrorHandler]].
759
+ *
760
+ * ### Return value
761
+ *
762
+ * Since the Transition is already completed, the hook's return value is ignored
763
+ *
764
+ * @param matchCriteria defines which Transitions the Hook should be invoked for.
765
+ * @param callback the hook function which will be injected and invoked.
766
+ * @returns a function which deregisters the hook.
767
+ */
768
+ onError(
769
+ matchCriteria: HookMatchCriteria,
770
+ callback: TransitionHookFn,
771
+ options?: HookRegOptions,
772
+ ): Function;
773
+
774
+ /**
775
+ * Returns all the registered hooks of a given `hookName` type
776
+ *
777
+ * #### Example:
778
+ * ```
779
+ * $transitions.getHooks("onEnter")
780
+ * ```
781
+ */
782
+ getHooks(hookName: string): RegisteredHook[];
783
+ }
784
+
785
+ /** A predicate type which tests if a [[StateObject]] and [[Transition]] passes some test. Returns a boolean. */
786
+ export type IStateMatch = PredicateBinary<StateObject, Transition>;
787
+
788
+ /**
789
+ * This object is used to configure whether or not a Transition Hook is invoked for a particular transition,
790
+ * based on the Transition's "to state" and "from state".
791
+ *
792
+ * Each property (`to`, `from`, `exiting`, `retained`, and `entering`) can be a state [[Glob]] string,
793
+ * a boolean, or a function that takes a state and returns a boolean (see [[HookMatchCriterion]])
794
+ *
795
+ * All properties are optional. If any property is omitted, it is replaced with the value `true`, and always matches.
796
+ * To match any transition, use an empty criteria object `{}`.
797
+ *
798
+ * #### Example:
799
+ * ```js
800
+ * // This matches a transition coming from the `parent` state and going to the `parent.child` state.
801
+ * var match = {
802
+ * to: 'parent',
803
+ * from: 'parent.child'
804
+ * }
805
+ * ```
806
+ *
807
+ * #### Example:
808
+ * ```js
809
+ * // This matches a transition coming from any substate of `parent` and going directly to the `parent` state.
810
+ * var match = {
811
+ * to: 'parent',
812
+ * from: 'parent.**'
813
+ * }
814
+ * ```
815
+ *
816
+ * #### Example:
817
+ * ```js
818
+ * // This matches a transition coming from any state and going to any substate of `mymodule`
819
+ * var match = {
820
+ * to: 'mymodule.**'
821
+ * }
822
+ * ```
823
+ *
824
+ * #### Example:
825
+ * ```js
826
+ * // This matches a transition coming from any state and going to any state that has `data.authRequired`
827
+ * // set to a truthy value.
828
+ * var match = {
829
+ * to: function(state) {
830
+ * return state.data != null && state.data.authRequired === true;
831
+ * }
832
+ * }
833
+ * ```
834
+ * #### Example:
835
+ * ```js
836
+ * // This will match when route is just entered (initial load) or when the state is hard-refreshed
837
+ * // by specifying `{refresh: true}` as transition options.
838
+ * var match = {
839
+ * from: (state, transition) => state.self.name === '' || transition.options().reload
840
+ * }
841
+ * ```
842
+ *
843
+ * #### Example:
844
+ * ```js
845
+ * // This matches a transition that is exiting `parent.child`
846
+ * var match = {
847
+ * exiting: 'parent.child'
848
+ * }
849
+ * ```
850
+ */
851
+ export interface HookMatchCriteria {
852
+ [key: string]: HookMatchCriterion | undefined;
853
+
854
+ /** A [[HookMatchCriterion]] to match the destination state */
855
+ to?: HookMatchCriterion;
856
+ /** A [[HookMatchCriterion]] to match the original (from) state */
857
+ from?: HookMatchCriterion;
858
+ /** A [[HookMatchCriterion]] to match any state that would be exiting */
859
+ exiting?: HookMatchCriterion;
860
+ /** A [[HookMatchCriterion]] to match any state that would be retained */
861
+ retained?: HookMatchCriterion;
862
+ /** A [[HookMatchCriterion]] to match any state that would be entering */
863
+ entering?: HookMatchCriterion;
864
+ }
865
+
866
+ export interface IMatchingNodes {
867
+ [key: string]: PathNode[];
868
+
869
+ to: PathNode[];
870
+ from: PathNode[];
871
+ exiting: PathNode[];
872
+ retained: PathNode[];
873
+ entering: PathNode[];
874
+ }
875
+
876
+ /** @internal */
877
+ export interface RegisteredHooks {
878
+ [key: string]: RegisteredHook[];
879
+ }
880
+
881
+ /** @internal */
882
+ export interface PathTypes {
883
+ [key: string]: PathType;
884
+
885
+ to: PathType;
886
+ from: PathType;
887
+ exiting: PathType;
888
+ retained: PathType;
889
+ entering: PathType;
890
+ }
891
+
892
+ /** @internal */
893
+ export interface PathType {
894
+ name: string;
895
+ scope: TransitionHookScope;
896
+ }
897
+
898
+ /**
899
+ * Hook Criterion used to match a transition.
900
+ *
901
+ * A [[Glob]] string that matches the name of a state.
902
+ *
903
+ * Or, a function with the signature `function(state, transition) { return matches; }`
904
+ * which should return a boolean to indicate if a state matches.
905
+ *
906
+ * Or, `true` to always match
907
+ */
908
+ export type HookMatchCriterion = string | IStateMatch | boolean;
909
+
910
+ enum TransitionHookPhase {
911
+ CREATE,
912
+ BEFORE,
913
+ RUN,
914
+ SUCCESS,
915
+ ERROR,
916
+ }
917
+ enum TransitionHookScope {
918
+ TRANSITION,
919
+ STATE,
920
+ }
921
+
922
+ export { TransitionHookPhase, TransitionHookScope };