@angular-wave/angular.ts 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/core/controller/controller.js +85 -131
- package/src/router/resolve/resolvable.js +4 -0
- package/src/router/resolve/resolve-context.js +12 -6
- package/src/router/state/state-builder.js +31 -23
- package/src/router/transition/hook-registry.js +2 -2
- package/src/router/transition/transition-hook.js +3 -3
- package/src/shared/common.js +5 -5
- package/src/shared/common.spec.js +4 -4
- package/src/shared/hof.js +0 -4
- package/src/shared/utils.js +0 -27
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/classes/animations_animate.AnimateProvider.html +5 -5
- package/typedoc/classes/animations_animate_cache.__AnimateCacheProvider.html +2 -2
- package/typedoc/classes/animations_animate_css._AnimateCssProvider.html +2 -2
- package/typedoc/classes/animations_animate_css_driver.__AnimateCssDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_js.__AnimateJsProvider.html +2 -2
- package/typedoc/classes/animations_animate_js_driver.__AnimateJsDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_queue.__AnimateQueueProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateAsyncRunFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunner.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunnerFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animation.__AnimationProvider.html +2 -2
- package/typedoc/classes/animations_raf_scheduler.RafSchedulerProvider.html +3 -3
- package/typedoc/classes/core_compile_attributes.Attributes.html +8 -8
- package/typedoc/classes/core_compile_compile._CompileProvider.html +7 -7
- package/typedoc/classes/core_controller_controller._ControllerProvider.html +4 -4
- package/typedoc/classes/core_di_internal_injector.InjectorService.html +6 -6
- package/typedoc/classes/core_di_internal_injector.ProviderInjector.html +7 -7
- package/typedoc/classes/core_di_ng_module.NgModule.html +4 -4
- package/typedoc/classes/core_exception_handler._ExceptionHandlerProvider.html +2 -2
- package/typedoc/classes/core_filter_filter._FilterProvider.html +2 -2
- package/typedoc/classes/core_interpolate_interpolate._InterpolateProvider.html +4 -4
- package/typedoc/classes/core_interval_interval._IntervalProvider.html +2 -2
- package/typedoc/classes/core_interval_interval_factory.__IntervalFactoryProvider.html +2 -2
- package/typedoc/classes/core_location_location.Location.html +20 -20
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +21 -21
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +21 -21
- package/typedoc/classes/core_location_location._LocationProvider.html +4 -4
- package/typedoc/classes/core_parser_ast.AST.html +28 -28
- package/typedoc/classes/core_parser_interpreter.ASTInterpreter.html +26 -26
- package/typedoc/classes/core_parser_lexer.Lexer.html +16 -16
- package/typedoc/classes/core_parser_parse._ParseProvider.html +3 -3
- package/typedoc/classes/core_parser_parser.Parser.html +4 -4
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +9 -9
- package/typedoc/classes/core_q_q._QProvider.html +3 -3
- package/typedoc/classes/core_q_q.__QProvider.html +2 -2
- package/typedoc/classes/core_sanitize_sanitize_uri.SanitizeUriProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceDelegateProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceProvider.html +3 -3
- package/typedoc/classes/core_scope_scope.Scope.html +18 -18
- package/typedoc/classes/core_scope_scope._RootScopeProvider.html +2 -2
- package/typedoc/classes/core_task_tracker_factory.TaskTracker.html +7 -7
- package/typedoc/classes/core_task_tracker_factory.__TaskTrackerFactoryProvider.html +2 -2
- package/typedoc/classes/core_timeout_timeout._TimeoutProvider.html +2 -2
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +2 -2
- package/typedoc/classes/directive_form_form.FormController.html +21 -21
- package/typedoc/classes/directive_model_model.NgModelController.html +32 -32
- package/typedoc/classes/loader.Angular.html +5 -5
- package/typedoc/classes/router_common_glob.Glob.html +4 -4
- package/typedoc/classes/router_common_queue.Queue.html +2 -2
- package/typedoc/classes/router_common_trace.Trace.html +17 -17
- package/typedoc/classes/router_globals.UIRouterGlobals.html +3 -3
- package/typedoc/classes/router_params_param.Param.html +6 -6
- package/typedoc/classes/router_params_param_factory.ParamFactory.html +2 -2
- package/typedoc/classes/router_params_param_type.ParamType.html +4 -4
- package/typedoc/classes/router_params_param_types.ParamTypes.html +3 -3
- package/typedoc/classes/router_params_state_params.StateParams.html +3 -3
- package/typedoc/classes/router_path_path_node.PathNode.html +7 -7
- package/typedoc/classes/router_path_path_utils.PathUtils.html +10 -10
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +4 -4
- package/typedoc/classes/router_resolve_resolve_context.ResolveContext.html +9 -9
- package/typedoc/classes/router_state_state_builder.StateBuilder.html +3 -3
- package/typedoc/classes/router_state_state_matcher.StateMatcher.html +2 -2
- package/typedoc/classes/router_state_state_object.StateObject.html +9 -9
- package/typedoc/classes/router_state_state_queue_manager.StateQueueManager.html +2 -2
- package/typedoc/classes/router_state_state_registry.StateRegistry.html +8 -8
- package/typedoc/classes/router_state_state_service.StateService.html +17 -17
- package/typedoc/classes/router_state_target_state.TargetState.html +15 -15
- package/typedoc/classes/router_state_views.Ng1ViewConfig.html +4 -4
- package/typedoc/classes/router_template_factory.TemplateFactory.html +9 -9
- package/typedoc/classes/router_transition_hook_builder.HookBuilder.html +4 -4
- package/typedoc/classes/router_transition_hook_registry.RegisteredHook.html +6 -6
- package/typedoc/classes/router_transition_reject_factory.Rejection.html +9 -9
- package/typedoc/classes/router_transition_transition.Transition.html +31 -31
- package/typedoc/classes/router_transition_transition_event_type.TransitionEventType.html +3 -3
- package/typedoc/classes/router_transition_transition_hook.TransitionHook.html +10 -10
- package/typedoc/classes/router_transition_transition_service.TransitionService.html +8 -8
- package/typedoc/classes/router_url_url_config.UrlConfigProvider.html +6 -6
- package/typedoc/classes/router_url_url_matcher.UrlMatcher.html +12 -12
- package/typedoc/classes/router_url_url_rule.BaseUrlRule.html +3 -3
- package/typedoc/classes/router_url_url_rule.UrlRuleFactory.html +5 -5
- package/typedoc/classes/router_url_url_rules.UrlRules.html +9 -9
- package/typedoc/classes/router_url_url_service.UrlService.html +20 -20
- package/typedoc/classes/router_view_scroll._ViewScrollProvider.html +2 -2
- package/typedoc/classes/router_view_view.ViewService.html +7 -7
- package/typedoc/classes/services_anchor_scroll.AnchorScrollProvider.html +2 -2
- package/typedoc/classes/services_browser.Browser.html +7 -7
- package/typedoc/classes/services_browser.BrowserProvider.html +2 -2
- package/typedoc/classes/services_cache_factory.CacheFactoryProvider.html +2 -2
- package/typedoc/classes/services_cache_factory.TemplateCacheProvider.html +2 -2
- package/typedoc/classes/services_http_backend_http_backend._HttpBackendProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerJQLikeProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpProvider.html +3 -3
- package/typedoc/classes/services_log._LogProvider.html +3 -3
- package/typedoc/classes/services_template_request.TemplateRequestProvider.html +4 -4
- package/typedoc/classes/shared_jqlite_jqlite.JQLite.html +16 -16
- package/typedoc/enums/core_parser_ast_type.ASTType.html +2 -2
- package/typedoc/enums/core_scope_scope.ScopePhase.html +2 -2
- package/typedoc/enums/router_transition_reject_factory.RejectType.html +6 -6
- package/typedoc/functions/animations_animate.domInsert.html +1 -1
- package/typedoc/functions/animations_animate_cache.animateCache.html +6 -6
- package/typedoc/functions/animations_animate_children_directive.__AnimateChildrenDirective.html +2 -2
- package/typedoc/functions/animations_animate_swap.ngAnimateSwapDirective.html +2 -2
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +1 -1
- package/typedoc/functions/animations_shared.applyInlineStyle.html +1 -1
- package/typedoc/functions/animations_shared.assertArg.html +1 -1
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +1 -1
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +1 -1
- package/typedoc/functions/animations_shared.concatWithSpace.html +1 -1
- package/typedoc/functions/animations_shared.extractElementNode.html +1 -1
- package/typedoc/functions/animations_shared.getDomNode.html +1 -1
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +1 -1
- package/typedoc/functions/animations_shared.mergeClasses.html +1 -1
- package/typedoc/functions/animations_shared.ngMinErr.html +1 -1
- package/typedoc/functions/animations_shared.packageStyles.html +1 -1
- package/typedoc/functions/animations_shared.pendClasses.html +1 -1
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +1 -1
- package/typedoc/functions/animations_shared.removeFromArray.html +1 -1
- package/typedoc/functions/animations_shared.resolveElementClasses.html +1 -1
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +1 -1
- package/typedoc/functions/core_controller_controller.identifierForController.html +1 -1
- package/typedoc/functions/core_di_injector.annotate.html +1 -1
- package/typedoc/functions/core_di_injector.createInjector.html +1 -1
- package/typedoc/functions/core_exception_handler.errorHandler-1.html +1 -1
- package/typedoc/functions/core_location_location.serverBase.html +1 -1
- package/typedoc/functions/core_location_location.stripBaseUrl.html +1 -1
- package/typedoc/functions/core_location_location.stripFile.html +1 -1
- package/typedoc/functions/core_location_location.stripHash.html +1 -1
- package/typedoc/functions/core_parser_interpreter.isAssignable.html +1 -1
- package/typedoc/functions/core_parser_parse.constantWatchDelegate.html +1 -1
- package/typedoc/functions/core_q_q.markQExceptionHandled.html +1 -1
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +1 -1
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +1 -1
- package/typedoc/functions/core_scope_scope.countChildScopes.html +1 -1
- package/typedoc/functions/core_scope_scope.countWatchers.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.getBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsAllowedOriginFactory.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOrigin.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOriginAsBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlResolve.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlsAreSameOrigin.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +2 -2
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +1 -1
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +1 -1
- package/typedoc/functions/directive_change_change.ngChangeDirective.html +1 -1
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +1 -1
- package/typedoc/functions/directive_events_events.createEventDirective.html +1 -1
- package/typedoc/functions/directive_form_form.addSetValidityMethod.html +1 -1
- package/typedoc/functions/directive_form_form.isObjectEmpty.html +1 -1
- package/typedoc/functions/directive_form_form.setupValidity.html +1 -1
- package/typedoc/functions/directive_if_if.ngIfDirective.html +2 -2
- package/typedoc/functions/directive_init_init.ngInitDirective.html +1 -1
- package/typedoc/functions/directive_input_input.badInputChecker.html +1 -1
- package/typedoc/functions/directive_input_input.countDecimals.html +1 -1
- package/typedoc/functions/directive_input_input.createDateInputType.html +1 -1
- package/typedoc/functions/directive_input_input.createDateParser.html +1 -1
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +1 -1
- package/typedoc/functions/directive_input_input.inputDirective.html +2 -2
- package/typedoc/functions/directive_input_input.isNumberInteger.html +1 -1
- package/typedoc/functions/directive_input_input.isValidForStep.html +1 -1
- package/typedoc/functions/directive_input_input.ngValueDirective.html +1 -1
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +1 -1
- package/typedoc/functions/directive_input_input.numberInputType.html +1 -1
- package/typedoc/functions/directive_input_input.rangeInputType.html +1 -1
- package/typedoc/functions/directive_input_input.weekParser.html +1 -1
- package/typedoc/functions/directive_list_list.ngListDirective.html +1 -1
- package/typedoc/functions/directive_messages_messages.ngMessageDefaultDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageExpDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelMinErr.html +1 -1
- package/typedoc/functions/directive_model_options_model_options.ngModelOptionsDirective.html +1 -1
- package/typedoc/functions/directive_non_bindable_non_bindable.ngNonBindableDirective.html +1 -1
- package/typedoc/functions/directive_select_select.optionDirective.html +2 -2
- package/typedoc/functions/directive_select_select.selectDirective.html +1 -1
- package/typedoc/functions/directive_show_hide_show_hide.ngHideDirective.html +2 -2
- package/typedoc/functions/directive_show_hide_show_hide.ngShowDirective.html +2 -2
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +1 -1
- package/typedoc/functions/filters_filter.filterFilter.html +1 -1
- package/typedoc/functions/filters_filters.formatNumber.html +1 -1
- package/typedoc/functions/filters_filters.jsonFilter.html +1 -1
- package/typedoc/functions/filters_limit_to.limitToFilter.html +1 -1
- package/typedoc/functions/filters_order_by.orderByFilter.html +2 -2
- package/typedoc/functions/public.publishExternalAPI.html +1 -1
- package/typedoc/functions/router_directives_state_directives._StateRefActiveDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDynamicDirective.html +2 -2
- package/typedoc/functions/router_directives_view_directive._ViewDirectiveFill.html +2 -2
- package/typedoc/functions/router_hooks_core_resolvables.registerAddCoreResolvables.html +1 -1
- package/typedoc/functions/router_hooks_core_resolvables.treeChangesCleanup.html +1 -1
- package/typedoc/functions/router_hooks_ignored_transition.registerIgnoredTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_invalid_transition.registerInvalidTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.lazyLoadState.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.registerLazyLoadHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnEnterHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnExitHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnRetainHook.html +1 -1
- package/typedoc/functions/router_hooks_redirect_to.registerRedirectToHook.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +1 -1
- package/typedoc/functions/router_hooks_update_globals.registerUpdateGlobalState.html +1 -1
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +1 -1
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +1 -1
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +1 -1
- package/typedoc/functions/router_state_filters._IncludedByStateFilter.html +2 -2
- package/typedoc/functions/router_state_filters._IsStateFilter.html +2 -2
- package/typedoc/functions/router_state_state_builder.resolvablesBuilder.html +1 -1
- package/typedoc/functions/router_state_state_registry.getLocals.html +1 -1
- package/typedoc/functions/router_state_views.getNg1ViewConfigFactory.html +1 -1
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.makeEvent.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.matchState.html +1 -1
- package/typedoc/functions/services_browser.trimEmptyHash.html +1 -1
- package/typedoc/functions/services_cookie_reader.getCookies.html +1 -1
- package/typedoc/functions/services_http_backend_http_backend.createHttpBackend.html +1 -1
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +1 -1
- package/typedoc/functions/shared_common._removeFrom.html +1 -1
- package/typedoc/functions/shared_common.allTrueR.html +1 -1
- package/typedoc/functions/shared_common.ancestors.html +1 -1
- package/typedoc/functions/shared_common.anyTrueR.html +1 -1
- package/typedoc/functions/shared_common.applyPairs.html +1 -1
- package/typedoc/functions/shared_common.arrayTuples.html +1 -1
- package/typedoc/functions/shared_common.assertFn.html +1 -1
- package/typedoc/functions/shared_common.assertMap.html +1 -1
- package/typedoc/functions/shared_common.assertPredicate.html +1 -1
- package/typedoc/functions/shared_common.copy.html +1 -1
- package/typedoc/functions/shared_common.createProxyFunctions.html +1 -1
- package/typedoc/functions/shared_common.defaults.html +1 -1
- package/typedoc/functions/shared_common.deregAll.html +1 -1
- package/typedoc/functions/shared_common.equals.html +1 -1
- package/typedoc/functions/shared_common.filter.html +1 -1
- package/typedoc/functions/shared_common.find.html +1 -1
- package/typedoc/functions/shared_common.flatten.html +1 -1
- package/typedoc/functions/shared_common.flattenR.html +1 -1
- package/typedoc/functions/shared_common.forEach.html +1 -1
- package/typedoc/functions/shared_common.inherit.html +1 -1
- package/typedoc/functions/shared_common.map.html +1 -1
- package/typedoc/functions/shared_common.mapObj.html +1 -1
- package/typedoc/functions/shared_common.mergeR.html +1 -1
- package/typedoc/functions/shared_common.omit.html +1 -1
- package/typedoc/functions/shared_common.pairs.html +1 -1
- package/typedoc/functions/shared_common.pick.html +1 -1
- package/typedoc/functions/shared_common.pluck.html +1 -1
- package/typedoc/functions/shared_common.pushR.html +1 -1
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +1 -1
- package/typedoc/functions/shared_common.silentRejection.html +1 -1
- package/typedoc/functions/shared_common.tail.html +1 -1
- package/typedoc/functions/shared_common.uniqR.html +1 -1
- package/typedoc/functions/shared_common.unnest.html +1 -1
- package/typedoc/functions/shared_common.unnestR.html +1 -1
- package/typedoc/functions/shared_hof.all.html +1 -1
- package/typedoc/functions/shared_hof.compose.html +1 -1
- package/typedoc/functions/shared_hof.curry.html +1 -1
- package/typedoc/functions/shared_hof.eq.html +1 -1
- package/typedoc/functions/shared_hof.is.html +1 -1
- package/typedoc/functions/shared_hof.or.html +1 -1
- package/typedoc/functions/shared_hof.parse.html +1 -1
- package/typedoc/functions/shared_hof.pattern.html +1 -1
- package/typedoc/functions/shared_hof.pipe.html +1 -1
- package/typedoc/functions/shared_hof.prop.html +1 -1
- package/typedoc/functions/shared_hof.val.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.buildFragment.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.cleanElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.dealoc.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBlockNodes.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBooleanAttrName.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getOrSetCacheData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.isTextNode.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.kebabToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElement.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.snakeToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.startingTag.html +1 -1
- package/typedoc/functions/shared_predicates.isInjectable.html +1 -1
- package/typedoc/functions/shared_predicates.isNull.html +1 -1
- package/typedoc/functions/shared_predicates.isNullOrUndefined.html +1 -1
- package/typedoc/functions/shared_predicates.isPromise.html +1 -1
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +1 -1
- package/typedoc/functions/shared_strings.fnToString.html +1 -1
- package/typedoc/functions/shared_strings.functionToString.html +1 -1
- package/typedoc/functions/shared_strings.joinNeighborsR.html +1 -1
- package/typedoc/functions/shared_strings.kebobString.html +1 -1
- package/typedoc/functions/shared_strings.maxLength.html +1 -1
- package/typedoc/functions/shared_strings.padString.html +1 -1
- package/typedoc/functions/shared_strings.splitEqual.html +1 -1
- package/typedoc/functions/shared_strings.splitHash.html +1 -1
- package/typedoc/functions/shared_strings.splitOnDelim.html +1 -1
- package/typedoc/functions/shared_strings.splitQuery.html +1 -1
- package/typedoc/functions/shared_strings.stringify.html +1 -1
- package/typedoc/functions/shared_strings.stripLastPathElement.html +1 -1
- package/typedoc/functions/shared_strings.trimHashVal.html +1 -1
- package/typedoc/functions/shared_utils.addDateMinutes.html +1 -1
- package/typedoc/functions/shared_utils.arrayRemove.html +1 -1
- package/typedoc/functions/shared_utils.assert.html +1 -1
- package/typedoc/functions/shared_utils.assertArg.html +1 -1
- package/typedoc/functions/shared_utils.assertArgFn.html +1 -1
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +1 -1
- package/typedoc/functions/shared_utils.baseExtend.html +1 -1
- package/typedoc/functions/shared_utils.bind.html +1 -1
- package/typedoc/functions/shared_utils.concat.html +1 -1
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +1 -1
- package/typedoc/functions/shared_utils.csp.html +1 -1
- package/typedoc/functions/shared_utils.directiveNormalize.html +1 -1
- package/typedoc/functions/shared_utils.encodeUriQuery.html +1 -1
- package/typedoc/functions/shared_utils.encodeUriSegment.html +1 -1
- package/typedoc/functions/shared_utils.equals.html +1 -1
- package/typedoc/functions/shared_utils.errorHandlingConfig-1.html +1 -1
- package/typedoc/functions/shared_utils.extend.html +1 -1
- package/typedoc/functions/shared_utils.forEach.html +1 -1
- package/typedoc/functions/shared_utils.forEachSorted.html +1 -1
- package/typedoc/functions/shared_utils.fromJson.html +1 -1
- package/typedoc/functions/shared_utils.getNgAttribute.html +1 -1
- package/typedoc/functions/shared_utils.getNodeName.html +1 -1
- package/typedoc/functions/shared_utils.getter.html +1 -1
- package/typedoc/functions/shared_utils.hasAnimate.html +1 -1
- package/typedoc/functions/shared_utils.hasCustomToString.html +1 -1
- package/typedoc/functions/shared_utils.hashKey.html +1 -1
- package/typedoc/functions/shared_utils.includes.html +1 -1
- package/typedoc/functions/shared_utils.inherit.html +1 -1
- package/typedoc/functions/shared_utils.isArrayBuffer.html +1 -1
- package/typedoc/functions/shared_utils.isArrayLike.html +1 -1
- package/typedoc/functions/shared_utils.isBlankObject.html +1 -1
- package/typedoc/functions/shared_utils.isBlob.html +1 -1
- package/typedoc/functions/shared_utils.isBoolean.html +1 -1
- package/typedoc/functions/shared_utils.isDate.html +1 -1
- package/typedoc/functions/shared_utils.isDefined.html +1 -1
- package/typedoc/functions/shared_utils.isElement.html +1 -1
- package/typedoc/functions/shared_utils.isError.html +1 -1
- package/typedoc/functions/shared_utils.isFile.html +1 -1
- package/typedoc/functions/shared_utils.isFormData.html +1 -1
- package/typedoc/functions/shared_utils.isFunction.html +1 -1
- package/typedoc/functions/shared_utils.isNumber.html +1 -1
- package/typedoc/functions/shared_utils.isNumberNaN.html +1 -1
- package/typedoc/functions/shared_utils.isObject.html +1 -1
- package/typedoc/functions/shared_utils.isPromiseLike.html +1 -1
- package/typedoc/functions/shared_utils.isRegExp.html +1 -1
- package/typedoc/functions/shared_utils.isScope.html +1 -1
- package/typedoc/functions/shared_utils.isString.html +1 -1
- package/typedoc/functions/shared_utils.isTypedArray.html +1 -1
- package/typedoc/functions/shared_utils.isUndefined.html +1 -1
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +1 -1
- package/typedoc/functions/shared_utils.isWindow.html +1 -1
- package/typedoc/functions/shared_utils.lowercase.html +1 -1
- package/typedoc/functions/shared_utils.merge.html +1 -1
- package/typedoc/functions/shared_utils.mergeClasses.html +1 -1
- package/typedoc/functions/shared_utils.minErr.html +1 -1
- package/typedoc/functions/shared_utils.nextUid.html +1 -1
- package/typedoc/functions/shared_utils.parseKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.reverseParams.html +1 -1
- package/typedoc/functions/shared_utils.setHashKey.html +1 -1
- package/typedoc/functions/shared_utils.shallowCopy.html +1 -1
- package/typedoc/functions/shared_utils.simpleCompare.html +1 -1
- package/typedoc/functions/shared_utils.sliceArgs.html +1 -1
- package/typedoc/functions/shared_utils.snakeCase.html +1 -1
- package/typedoc/functions/shared_utils.stringify.html +1 -1
- package/typedoc/functions/shared_utils.timezoneToOffset.html +1 -1
- package/typedoc/functions/shared_utils.toDebugString.html +1 -1
- package/typedoc/functions/shared_utils.toInt.html +1 -1
- package/typedoc/functions/shared_utils.toJson.html +1 -1
- package/typedoc/functions/shared_utils.toKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.trim.html +1 -1
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +1 -1
- package/typedoc/functions/shared_utils.uppercase.html +1 -1
- package/typedoc/functions/shared_utils.valueFn.html +1 -1
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +5 -5
- package/typedoc/interfaces/animations_raf_scheduler.RafSchedulerObject.html +2 -2
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +2 -2
- package/typedoc/interfaces/core_compile_attributes.AttributeLike.html +2 -2
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +2 -2
- package/typedoc/interfaces/core_location_location.Html5Mode.html +2 -2
- package/typedoc/interfaces/core_parser_ast.ASTNode.html +23 -23
- package/typedoc/interfaces/core_parser_lexer.LexerOptions.html +3 -3
- package/typedoc/interfaces/core_parser_lexer.Token.html +7 -7
- package/typedoc/interfaces/core_parser_parse.CompiledExpressionProps.html +5 -5
- package/typedoc/interfaces/core_parser_parser.ParsedAST.html +3 -3
- package/typedoc/interfaces/core_q_q.Deferred.html +5 -5
- package/typedoc/interfaces/core_q_q.PromiseResolvables.html +2 -2
- package/typedoc/interfaces/core_q_q.PromiseState.html +2 -2
- package/typedoc/interfaces/core_q_q.QPromise.html +6 -6
- package/typedoc/interfaces/core_q_q.QService.html +2 -2
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +2 -2
- package/typedoc/interfaces/directive_model_options_model_options.ModelOptionsConfig.html +5 -5
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +2 -2
- package/typedoc/interfaces/router_template_factory.BindingTuple.html +2 -2
- package/typedoc/interfaces/services_anchor_scroll.AnchorScrollObject.html +2 -2
- package/typedoc/interfaces/services_log.LogService.html +6 -6
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +3 -3
- package/typedoc/interfaces/types.Annotated.html +2 -2
- package/typedoc/interfaces/types.ChangesObject.html +4 -4
- package/typedoc/interfaces/types.Controller.html +7 -7
- package/typedoc/interfaces/types.Directive.html +18 -18
- package/typedoc/interfaces/types.DirectivePrePost.html +3 -3
- package/typedoc/interfaces/types.FormController.html +20 -20
- package/typedoc/interfaces/types.Module.html +15 -15
- package/typedoc/interfaces/types.NgModelController.html +30 -30
- package/typedoc/interfaces/types.NgModelOptions.html +8 -8
- package/typedoc/interfaces/types.OnChangesObject.html +2 -2
- package/typedoc/interfaces/types.ServiceProviderClass.html +2 -2
- package/typedoc/interfaces/types.TranscludeFunctionObject.html +2 -2
- package/typedoc/modules/animations_animate.html +1 -1
- package/typedoc/modules/animations_animate_cache.html +1 -1
- package/typedoc/modules/animations_animate_children_directive.html +1 -1
- package/typedoc/modules/animations_animate_css.html +1 -1
- package/typedoc/modules/animations_animate_css_driver.html +1 -1
- package/typedoc/modules/animations_animate_js.html +1 -1
- package/typedoc/modules/animations_animate_js_driver.html +1 -1
- package/typedoc/modules/animations_animate_queue.html +1 -1
- package/typedoc/modules/animations_animate_runner.html +1 -1
- package/typedoc/modules/animations_animate_swap.html +1 -1
- package/typedoc/modules/animations_animation.html +1 -1
- package/typedoc/modules/animations_raf_scheduler.html +1 -1
- package/typedoc/modules/animations_shared.html +1 -1
- package/typedoc/modules/core_cache_cache.html +1 -1
- package/typedoc/modules/core_compile_attributes.html +1 -1
- package/typedoc/modules/core_compile_compile.html +1 -1
- package/typedoc/modules/core_controller_controller.html +1 -1
- package/typedoc/modules/core_di_injector.html +1 -1
- package/typedoc/modules/core_di_internal_injector.html +1 -1
- package/typedoc/modules/core_di_ng_module.html +1 -1
- package/typedoc/modules/core_exception_handler.html +1 -1
- package/typedoc/modules/core_filter_filter.html +1 -1
- package/typedoc/modules/core_interpolate_interpolate.html +1 -1
- package/typedoc/modules/core_interval_interval.html +1 -1
- package/typedoc/modules/core_interval_interval_factory.html +1 -1
- package/typedoc/modules/core_location_location.html +1 -1
- package/typedoc/modules/core_parser_ast.html +1 -1
- package/typedoc/modules/core_parser_ast_type.html +1 -1
- package/typedoc/modules/core_parser_interpreter.html +1 -1
- package/typedoc/modules/core_parser_lexer.html +1 -1
- package/typedoc/modules/core_parser_parse.html +1 -1
- package/typedoc/modules/core_parser_parser.html +1 -1
- package/typedoc/modules/core_pubsub_pubsub.html +1 -1
- package/typedoc/modules/core_q_q.html +1 -1
- package/typedoc/modules/core_sanitize_sanitize_uri.html +1 -1
- package/typedoc/modules/core_sce_sce.html +1 -1
- package/typedoc/modules/core_scope_scope.html +1 -1
- package/typedoc/modules/core_task_tracker_factory.html +1 -1
- package/typedoc/modules/core_timeout_timeout.html +1 -1
- package/typedoc/modules/core_url_utils_url_utils.html +1 -1
- package/typedoc/modules/directive_aria_aria.html +1 -1
- package/typedoc/modules/directive_attrs_attrs.html +1 -1
- package/typedoc/modules/directive_bind_bind.html +1 -1
- package/typedoc/modules/directive_change_change.html +1 -1
- package/typedoc/modules/directive_class_class.html +1 -1
- package/typedoc/modules/directive_cloak_cloak.html +1 -1
- package/typedoc/modules/directive_controller_controller.html +1 -1
- package/typedoc/modules/directive_events_events.html +1 -1
- package/typedoc/modules/directive_form_form.html +1 -1
- package/typedoc/modules/directive_if_if.html +1 -1
- package/typedoc/modules/directive_include_include.html +1 -1
- package/typedoc/modules/directive_init_init.html +1 -1
- package/typedoc/modules/directive_input_input.html +1 -1
- package/typedoc/modules/directive_list_list.html +1 -1
- package/typedoc/modules/directive_messages_messages.html +1 -1
- package/typedoc/modules/directive_model_model.html +1 -1
- package/typedoc/modules/directive_model_options_model_options.html +1 -1
- package/typedoc/modules/directive_non_bindable_non_bindable.html +1 -1
- package/typedoc/modules/directive_options_options.html +1 -1
- package/typedoc/modules/directive_ref_ref.html +1 -1
- package/typedoc/modules/directive_repeat_repeat.html +1 -1
- package/typedoc/modules/directive_script_script.html +1 -1
- package/typedoc/modules/directive_select_select.html +1 -1
- package/typedoc/modules/directive_show_hide_show_hide.html +1 -1
- package/typedoc/modules/directive_style_style.html +1 -1
- package/typedoc/modules/directive_switch_switch.html +1 -1
- package/typedoc/modules/directive_transclude_transclude.html +1 -1
- package/typedoc/modules/directive_validators_validators.html +1 -1
- package/typedoc/modules/filters_filter.html +1 -1
- package/typedoc/modules/filters_filters.html +1 -1
- package/typedoc/modules/filters_limit_to.html +1 -1
- package/typedoc/modules/filters_order_by.html +1 -1
- package/typedoc/modules/index.html +1 -1
- package/typedoc/modules/loader.html +1 -1
- package/typedoc/modules/public.html +1 -1
- package/typedoc/modules/router_common_coreservices.html +1 -1
- package/typedoc/modules/router_common_glob.html +1 -1
- package/typedoc/modules/router_common_queue.html +1 -1
- package/typedoc/modules/router_common_trace.html +1 -1
- package/typedoc/modules/router_directives_state_directives.html +1 -1
- package/typedoc/modules/router_directives_view_directive.html +1 -1
- package/typedoc/modules/router_globals.html +1 -1
- package/typedoc/modules/router_hooks_core_resolvables.html +1 -1
- package/typedoc/modules/router_hooks_ignored_transition.html +1 -1
- package/typedoc/modules/router_hooks_invalid_transition.html +1 -1
- package/typedoc/modules/router_hooks_lazy_load.html +1 -1
- package/typedoc/modules/router_hooks_on_enter_exit_retain.html +1 -1
- package/typedoc/modules/router_hooks_redirect_to.html +1 -1
- package/typedoc/modules/router_hooks_resolve.html +1 -1
- package/typedoc/modules/router_hooks_update_globals.html +1 -1
- package/typedoc/modules/router_hooks_url.html +1 -1
- package/typedoc/modules/router_hooks_views.html +1 -1
- package/typedoc/modules/router_params_param.html +1 -1
- package/typedoc/modules/router_params_param_factory.html +1 -1
- package/typedoc/modules/router_params_param_type.html +1 -1
- package/typedoc/modules/router_params_param_types.html +1 -1
- package/typedoc/modules/router_params_state_params.html +1 -1
- package/typedoc/modules/router_path_path_node.html +1 -1
- package/typedoc/modules/router_path_path_utils.html +1 -1
- package/typedoc/modules/router_resolve_resolvable.html +1 -1
- package/typedoc/modules/router_resolve_resolve_context.html +1 -1
- package/typedoc/modules/router_state_filters.html +1 -1
- package/typedoc/modules/router_state_state_builder.html +1 -1
- package/typedoc/modules/router_state_state_matcher.html +1 -1
- package/typedoc/modules/router_state_state_object.html +1 -1
- package/typedoc/modules/router_state_state_queue_manager.html +1 -1
- package/typedoc/modules/router_state_state_registry.html +1 -1
- package/typedoc/modules/router_state_state_service.html +1 -1
- package/typedoc/modules/router_state_target_state.html +1 -1
- package/typedoc/modules/router_state_views.html +1 -1
- package/typedoc/modules/router_template_factory.html +1 -1
- package/typedoc/modules/router_transition_hook_builder.html +1 -1
- package/typedoc/modules/router_transition_hook_registry.html +1 -1
- package/typedoc/modules/router_transition_interface.html +1 -1
- package/typedoc/modules/router_transition_reject_factory.html +1 -1
- package/typedoc/modules/router_transition_transition.html +1 -1
- package/typedoc/modules/router_transition_transition_event_type.html +1 -1
- package/typedoc/modules/router_transition_transition_hook.html +1 -1
- package/typedoc/modules/router_transition_transition_service.html +1 -1
- package/typedoc/modules/router_url_url_config.html +1 -1
- package/typedoc/modules/router_url_url_matcher.html +1 -1
- package/typedoc/modules/router_url_url_rule.html +1 -1
- package/typedoc/modules/router_url_url_rules.html +1 -1
- package/typedoc/modules/router_url_url_service.html +1 -1
- package/typedoc/modules/router_view_scroll.html +1 -1
- package/typedoc/modules/router_view_view.html +1 -1
- package/typedoc/modules/services_anchor_scroll.html +1 -1
- package/typedoc/modules/services_browser.html +1 -1
- package/typedoc/modules/services_cache_factory.html +1 -1
- package/typedoc/modules/services_cookie_reader.html +1 -1
- package/typedoc/modules/services_http_backend_http_backend.html +1 -1
- package/typedoc/modules/services_http_http.html +1 -1
- package/typedoc/modules/services_log.html +1 -1
- package/typedoc/modules/services_template_request.html +1 -1
- package/typedoc/modules/shared_common.html +1 -1
- package/typedoc/modules/shared_constants.html +1 -1
- package/typedoc/modules/shared_hof.html +1 -3
- package/typedoc/modules/shared_jqlite_jqlite.html +1 -1
- package/typedoc/modules/shared_predicates.html +1 -1
- package/typedoc/modules/shared_strings.html +1 -1
- package/typedoc/modules/shared_utils.html +1 -1
- package/typedoc/modules/types.html +1 -1
- package/typedoc/types/animations_animate.AnimationMethod.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafScheduler.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafSchedulerFunction.html +1 -1
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +1 -1
- package/typedoc/types/core_exception_handler.ErrorHandler.html +1 -1
- package/typedoc/types/core_exception_handler.ExceptionHandlerProvider.html +1 -1
- package/typedoc/types/core_interval_interval.IntervalId.html +1 -1
- package/typedoc/types/core_parser_interpreter.DecoratedASTNode.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpression.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpressionFunction.html +1 -1
- package/typedoc/types/core_parser_parse.ParseService.html +1 -1
- package/typedoc/types/core_scope_scope.TTL.html +1 -1
- package/typedoc/types/core_scope_scope.WatchExpression.html +1 -1
- package/typedoc/types/core_scope_scope.WatchListener.html +1 -1
- package/typedoc/types/core_url_utils_url_utils.HttpProtocol.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollFunction.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollService.html +1 -1
- package/typedoc/types/services_browser.UrlChangeListener.html +1 -1
- package/typedoc/types/services_log.LogCall.html +1 -1
- package/typedoc/types/types.AnnotatedFunction.html +1 -1
- package/typedoc/types/types.AsyncModelValidators.html +1 -1
- package/typedoc/types/types.Attributes.html +1 -1
- package/typedoc/types/types.BootstrapConfig.html +1 -1
- package/typedoc/types/types.CloneAttachFunction.html +1 -1
- package/typedoc/types/types.ComponentOptions.html +1 -1
- package/typedoc/types/types.ControllerConstructor.html +1 -1
- package/typedoc/types/types.DirectiveCompileFn.html +1 -1
- package/typedoc/types/types.DirectiveController.html +1 -1
- package/typedoc/types/types.DirectiveFactory.html +1 -1
- package/typedoc/types/types.DirectiveLinkFn.html +1 -1
- package/typedoc/types/types.FilterFactory.html +1 -1
- package/typedoc/types/types.FilterFunction.html +1 -1
- package/typedoc/types/types.Injectable.html +1 -1
- package/typedoc/types/types.ModelValidators.html +1 -1
- package/typedoc/types/types.ServiceProviderFactory.html +1 -1
- package/typedoc/types/types.TAttributes.html +1 -1
- package/typedoc/types/types.TController.html +1 -1
- package/typedoc/types/types.TElement.html +1 -1
- package/typedoc/types/types.TScope.html +1 -1
- package/typedoc/types/types.TranscludeFunction.html +1 -1
- package/typedoc/types/types.transcludeWithScope.html +1 -1
- package/typedoc/types/types.transcludeWithoutScope.html +1 -1
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.DELAY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.DURATION_KEY.html +1 -1
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +1 -1
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +1 -1
- package/typedoc/variables/animations_shared.TIMING_KEY.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +1 -1
- package/typedoc/variables/core_cache_cache.CACHE.html +1 -1
- package/typedoc/variables/core_cache_cache.EXPANDO.html +1 -1
- package/typedoc/variables/core_di_injector.path.html +1 -1
- package/typedoc/variables/core_di_ng_module.ANIMATION_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.COMPILE_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.CONTROLLER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.FILTER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.INJECTOR_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.PROVIDE_LITERAL.html +1 -1
- package/typedoc/variables/core_parser_ast.literals.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_ABSOLUTE.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_RELATIVE.html +1 -1
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +1 -1
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +1 -1
- package/typedoc/variables/core_scope_scope.TTL-1.html +1 -1
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__asyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__postDigestQueue.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +1 -1
- package/typedoc/variables/directive_bind_bind.ngBindHtmlDirective.html +1 -1
- package/typedoc/variables/directive_class_class.ngClassDirective.html +1 -1
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +1 -1
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +1 -1
- package/typedoc/variables/directive_controller_controller.ngControllerDirective.html +1 -1
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +1 -1
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +1 -1
- package/typedoc/variables/directive_form_form.formDirective.html +1 -1
- package/typedoc/variables/directive_form_form.ngFormDirective.html +1 -1
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeDirective.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeFillContentDirective.html +1 -1
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +1 -1
- package/typedoc/variables/directive_model_options_model_options.defaultModelOptions.html +1 -1
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +1 -1
- package/typedoc/variables/directive_ref_ref.ngRefDirective.html +1 -1
- package/typedoc/variables/directive_repeat_repeat.ngRepeatDirective.html +1 -1
- package/typedoc/variables/directive_script_script.scriptDirective.html +1 -1
- package/typedoc/variables/directive_switch_switch.ngSwitchDirective.html +1 -1
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.patternDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +1 -1
- package/typedoc/variables/index.angular.html +1 -1
- package/typedoc/variables/public.VERSION.html +1 -1
- package/typedoc/variables/router_common_coreservices.services.html +1 -1
- package/typedoc/variables/router_common_trace.Category.html +1 -1
- package/typedoc/variables/router_common_trace.trace-1.html +1 -1
- package/typedoc/variables/router_directives_view_directive.ngView.html +1 -1
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +1 -1
- package/typedoc/variables/router_params_param.DefType.html +1 -1
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +1 -1
- package/typedoc/variables/router_resolve_resolve_context.resolvePolicies.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookPhase.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookScope.html +1 -1
- package/typedoc/variables/router_transition_transition_service.defaultTransOpts.html +1 -1
- package/typedoc/variables/services_log.LogService-1.html +1 -1
- package/typedoc/variables/shared_common.pushTo.html +1 -1
- package/typedoc/variables/shared_common.removeFrom.html +1 -1
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +1 -1
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.VALID_CLASS.html +1 -1
- package/typedoc/variables/shared_hof.propEq.html +1 -1
- package/typedoc/variables/shared_jqlite_jqlite.BOOLEAN_ATTR.html +1 -1
- package/typedoc/variables/shared_strings.hostRegex.html +1 -1
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +1 -1
- package/types/core/controller/controller.d.ts +29 -5
- package/types/router/resolve/resolve-context.d.ts +9 -6
- package/types/shared/common.d.ts +0 -2
- package/types/shared/hof.d.ts +0 -2
- package/types/shared/utils.d.ts +0 -8
- package/typedoc/functions/shared_hof.any.html +0 -1
- package/typedoc/functions/shared_hof.invoke.html +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@angular-wave/angular.ts",
|
|
3
3
|
"description": "A modern, optimized and typesafe version of AngularJS",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/angular-ts.esm.js",
|
|
8
8
|
"browser": "dist/angular-ts.umd.js",
|
|
@@ -2,10 +2,8 @@ import {
|
|
|
2
2
|
assertArgFn,
|
|
3
3
|
assertNotHasOwnProperty,
|
|
4
4
|
minErr,
|
|
5
|
-
extend,
|
|
6
5
|
isObject,
|
|
7
6
|
isString,
|
|
8
|
-
getter,
|
|
9
7
|
isFunction,
|
|
10
8
|
} from "../../shared/utils";
|
|
11
9
|
|
|
@@ -27,98 +25,72 @@ export function identifierForController(controller, ident) {
|
|
|
27
25
|
* This provider allows controller registration via the
|
|
28
26
|
* {@link ng.$controllerProvider#register register} method.
|
|
29
27
|
*/
|
|
30
|
-
export
|
|
31
|
-
|
|
28
|
+
export class $ControllerProvider {
|
|
29
|
+
constructor() {
|
|
30
|
+
/**
|
|
31
|
+
* @type {Map<string, Function|Object>}
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
this.controllers = new Map();
|
|
35
|
+
}
|
|
32
36
|
|
|
33
37
|
/**
|
|
38
|
+
* Check if a controller with a given name exists.
|
|
39
|
+
*
|
|
34
40
|
* @param {string} name Controller name to check.
|
|
41
|
+
* @returns {boolean} True if the controller exists, false otherwise.
|
|
35
42
|
*/
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
}
|
|
43
|
+
has(name) {
|
|
44
|
+
return this.controllers.has(name);
|
|
45
|
+
}
|
|
39
46
|
|
|
40
47
|
/**
|
|
48
|
+
* Register a controller.
|
|
49
|
+
*
|
|
41
50
|
* @param {string|Object} name Controller name, or an object map of controllers where the keys are
|
|
42
51
|
* the names and the values are the constructors.
|
|
43
|
-
* @param {Function|Array} constructor Controller constructor
|
|
52
|
+
* @param {Function|Array} constructor Controller constructor function (optionally decorated with DI
|
|
44
53
|
* annotations in the array notation).
|
|
45
54
|
*/
|
|
46
|
-
|
|
55
|
+
register(name, constructor) {
|
|
47
56
|
assertNotHasOwnProperty(name, "controller");
|
|
48
57
|
if (isObject(name)) {
|
|
49
|
-
|
|
58
|
+
Object.entries(name).forEach(([key, value]) => {
|
|
59
|
+
this.controllers.set(key, value);
|
|
60
|
+
});
|
|
50
61
|
} else {
|
|
51
|
-
controllers
|
|
62
|
+
this.controllers.set(name, constructor);
|
|
52
63
|
}
|
|
53
|
-
}
|
|
64
|
+
}
|
|
54
65
|
|
|
55
|
-
|
|
66
|
+
/**
|
|
67
|
+
* $get method for dependency injection.
|
|
68
|
+
*
|
|
69
|
+
* @param {import("../../core/di/internal-injector").InjectorService} $injector
|
|
70
|
+
* @returns {Function} A service function that creates controllers.
|
|
71
|
+
*/
|
|
72
|
+
$get = [
|
|
56
73
|
"$injector",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* @param {import("../../core/di/internal-injector").InjectorService} $injector
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
function ($injector) {
|
|
63
|
-
/**
|
|
64
|
-
* @param {Function|string} expression If called with a function then it's considered to be the
|
|
65
|
-
* controller constructor function. Otherwise it's considered to be a string which is used
|
|
66
|
-
* to retrieve the controller constructor using the following steps:
|
|
67
|
-
*
|
|
68
|
-
* * check if a controller with given name is registered via `$controllerProvider`
|
|
69
|
-
* * check if evaluating the string on the current scope returns a constructor
|
|
70
|
-
*
|
|
71
|
-
* The string can use the `controller as property` syntax, where the controller instance is published
|
|
72
|
-
* as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
|
|
73
|
-
* to work correctly.
|
|
74
|
-
*
|
|
75
|
-
* @param {Object} locals Injection locals for Controller.
|
|
76
|
-
* @return {Object} Instance of given controller.
|
|
77
|
-
*
|
|
78
|
-
* @description
|
|
79
|
-
* `$controller` service is responsible for instantiating controllers.
|
|
80
|
-
*
|
|
81
|
-
* It's just a simple call to {@link auto.$injector $injector}, but extracted into
|
|
82
|
-
* a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
|
|
83
|
-
*/
|
|
84
|
-
return function $controller(expression, locals, later, ident) {
|
|
85
|
-
// PRIVATE API:
|
|
86
|
-
// param `later` --- indicates that the controller's constructor is invoked at a later time.
|
|
87
|
-
// If true, $controller will allocate the object with the correct
|
|
88
|
-
// prototype chain, but will not invoke the controller until a returned
|
|
89
|
-
// callback is invoked.
|
|
90
|
-
// param `ident` --- An optional label which overrides the label parsed from the controller
|
|
91
|
-
// expression, if any.
|
|
74
|
+
($injector) => {
|
|
75
|
+
return (expression, locals, later, ident) => {
|
|
92
76
|
let instance;
|
|
93
|
-
|
|
94
|
-
/** @type { RegExpMatchArray | null} */
|
|
95
77
|
let match;
|
|
96
|
-
|
|
97
78
|
let constructor;
|
|
98
|
-
let identifier;
|
|
79
|
+
let identifier = ident && isString(ident) ? ident : null;
|
|
99
80
|
later = later === true;
|
|
100
|
-
if (ident && isString(ident)) {
|
|
101
|
-
identifier = ident;
|
|
102
|
-
}
|
|
103
81
|
|
|
104
82
|
if (isString(expression)) {
|
|
105
|
-
match =
|
|
83
|
+
match = expression.match(CNTRL_REG);
|
|
106
84
|
if (!match) {
|
|
107
85
|
throw $controllerMinErr(
|
|
108
86
|
"ctrlfmt",
|
|
109
|
-
"Badly formed controller string '{0}'. "
|
|
110
|
-
"Must match `__name__ as __id__` or `__name__`.",
|
|
87
|
+
"Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",
|
|
111
88
|
expression,
|
|
112
89
|
);
|
|
113
90
|
}
|
|
114
91
|
constructor = match[1];
|
|
115
92
|
identifier = identifier || match[3];
|
|
116
|
-
expression =
|
|
117
|
-
controllers,
|
|
118
|
-
constructor,
|
|
119
|
-
)
|
|
120
|
-
? controllers[constructor]
|
|
121
|
-
: getter(locals.$scope, constructor, true);
|
|
93
|
+
expression = this.controllers.get(constructor);
|
|
122
94
|
|
|
123
95
|
if (!expression) {
|
|
124
96
|
throw $controllerMinErr(
|
|
@@ -132,16 +104,6 @@ export function $ControllerProvider() {
|
|
|
132
104
|
}
|
|
133
105
|
|
|
134
106
|
if (later) {
|
|
135
|
-
// Instantiate controller later:
|
|
136
|
-
// This machinery is used to create an instance of the object before calling the
|
|
137
|
-
// controller's constructor itself.
|
|
138
|
-
//
|
|
139
|
-
// This allows properties to be added to the controller before the constructor is
|
|
140
|
-
// invoked. Primarily, this is used for isolate scope bindings in $compile.
|
|
141
|
-
//
|
|
142
|
-
// This feature is not intended for use by applications, and is thus not documented
|
|
143
|
-
// publicly.
|
|
144
|
-
// Object creation: http://jsperf.com/create-constructor/2
|
|
145
107
|
const controllerPrototype = (
|
|
146
108
|
Array.isArray(expression)
|
|
147
109
|
? expression[expression.length - 1]
|
|
@@ -150,82 +112,74 @@ export function $ControllerProvider() {
|
|
|
150
112
|
instance = Object.create(controllerPrototype || null);
|
|
151
113
|
|
|
152
114
|
if (identifier) {
|
|
153
|
-
addIdentifier(
|
|
115
|
+
this.addIdentifier(
|
|
154
116
|
locals,
|
|
155
117
|
identifier,
|
|
156
118
|
instance,
|
|
157
|
-
constructor ||
|
|
158
|
-
/** @type {import("../../types").Controller} */ (expression)
|
|
159
|
-
.name,
|
|
119
|
+
constructor || expression.name,
|
|
160
120
|
);
|
|
161
121
|
}
|
|
162
122
|
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
expression,
|
|
167
|
-
instance,
|
|
168
|
-
locals,
|
|
169
|
-
constructor,
|
|
170
|
-
);
|
|
171
|
-
if (
|
|
172
|
-
result !== instance &&
|
|
173
|
-
(isObject(result) || isFunction(result))
|
|
174
|
-
) {
|
|
175
|
-
instance = result;
|
|
176
|
-
if (identifier) {
|
|
177
|
-
// If result changed, re-assign controllerAs value to scope.
|
|
178
|
-
addIdentifier(
|
|
179
|
-
locals,
|
|
180
|
-
identifier,
|
|
181
|
-
instance,
|
|
182
|
-
constructor ||
|
|
183
|
-
/** @type {import("../../types").Controller} */ (
|
|
184
|
-
expression
|
|
185
|
-
).name,
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return instance;
|
|
190
|
-
},
|
|
191
|
-
{
|
|
123
|
+
return function () {
|
|
124
|
+
const result = $injector.invoke(
|
|
125
|
+
expression,
|
|
192
126
|
instance,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
127
|
+
locals,
|
|
128
|
+
constructor,
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
if (
|
|
132
|
+
result !== instance &&
|
|
133
|
+
(isObject(result) || isFunction(result))
|
|
134
|
+
) {
|
|
135
|
+
instance = result;
|
|
136
|
+
if (identifier) {
|
|
137
|
+
this.addIdentifier(
|
|
138
|
+
locals,
|
|
139
|
+
identifier,
|
|
140
|
+
instance,
|
|
141
|
+
constructor || expression.name,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return instance;
|
|
147
|
+
}.bind(this, { instance, identifier });
|
|
196
148
|
}
|
|
197
149
|
|
|
198
|
-
instance = $injector.instantiate(
|
|
199
|
-
/** @type {Function} */ (expression),
|
|
200
|
-
locals,
|
|
201
|
-
constructor,
|
|
202
|
-
);
|
|
150
|
+
instance = $injector.instantiate(expression, locals, constructor);
|
|
203
151
|
|
|
204
152
|
if (identifier) {
|
|
205
|
-
addIdentifier(
|
|
153
|
+
this.addIdentifier(
|
|
206
154
|
locals,
|
|
207
155
|
identifier,
|
|
208
156
|
instance,
|
|
209
|
-
constructor ||
|
|
210
|
-
/** @type {import("../../types").Controller} */ (expression).name,
|
|
157
|
+
constructor || expression.name,
|
|
211
158
|
);
|
|
212
159
|
}
|
|
213
160
|
|
|
214
161
|
return instance;
|
|
215
162
|
};
|
|
216
|
-
|
|
217
|
-
function addIdentifier(locals, identifier, instance, name) {
|
|
218
|
-
if (!(locals && isObject(locals.$scope))) {
|
|
219
|
-
throw minErr("$controller")(
|
|
220
|
-
"noscp",
|
|
221
|
-
"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
|
|
222
|
-
name,
|
|
223
|
-
identifier,
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
locals.$scope[identifier] = instance;
|
|
228
|
-
}
|
|
229
163
|
},
|
|
230
164
|
];
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Adds an identifier to the controller instance in the given locals' scope.
|
|
168
|
+
*
|
|
169
|
+
* @param {Object} locals The locals object containing the scope.
|
|
170
|
+
* @param {string} identifier The identifier to assign.
|
|
171
|
+
* @param {Object} instance The controller instance.
|
|
172
|
+
* @param {string} name The name of the controller.
|
|
173
|
+
*/
|
|
174
|
+
addIdentifier(locals, identifier, instance, name) {
|
|
175
|
+
if (!(locals && isObject(locals.$scope))) {
|
|
176
|
+
throw minErr("$controller")(
|
|
177
|
+
"noscp",
|
|
178
|
+
"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
|
|
179
|
+
name,
|
|
180
|
+
identifier,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
locals.$scope[identifier] = instance;
|
|
184
|
+
}
|
|
231
185
|
}
|
|
@@ -48,6 +48,7 @@ export class Resolvable {
|
|
|
48
48
|
this.data = arg1.data;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
|
|
51
52
|
getPolicy(state) {
|
|
52
53
|
const thisPolicy = this.policy || {};
|
|
53
54
|
const statePolicy = (state && state.resolvePolicy) || {};
|
|
@@ -57,6 +58,7 @@ export class Resolvable {
|
|
|
57
58
|
thisPolicy.async || statePolicy.async || defaultResolvePolicy.async,
|
|
58
59
|
};
|
|
59
60
|
}
|
|
61
|
+
|
|
60
62
|
/**
|
|
61
63
|
* Asynchronously resolve this Resolvable's data
|
|
62
64
|
*
|
|
@@ -105,9 +107,11 @@ export class Resolvable {
|
|
|
105
107
|
get(resolveContext, trans) {
|
|
106
108
|
return this.promise || this.resolve(resolveContext, trans);
|
|
107
109
|
}
|
|
110
|
+
|
|
108
111
|
toString() {
|
|
109
112
|
return `Resolvable(token: ${stringify(this.token)}, requires: [${this.deps.map(stringify)}])`;
|
|
110
113
|
}
|
|
114
|
+
|
|
111
115
|
clone() {
|
|
112
116
|
return new Resolvable(this);
|
|
113
117
|
}
|
|
@@ -56,11 +56,13 @@ export class ResolveContext {
|
|
|
56
56
|
.filter((r) => r.token === token);
|
|
57
57
|
return tail(matching);
|
|
58
58
|
}
|
|
59
|
+
|
|
59
60
|
/** Returns the [[ResolvePolicy]] for the given [[Resolvable]] */
|
|
60
61
|
getPolicy(resolvable) {
|
|
61
62
|
const node = this.findNode(resolvable);
|
|
62
63
|
return resolvable.getPolicy(node);
|
|
63
64
|
}
|
|
65
|
+
|
|
64
66
|
/**
|
|
65
67
|
* Returns a ResolveContext that includes a portion of this one
|
|
66
68
|
*
|
|
@@ -101,7 +103,7 @@ export class ResolveContext {
|
|
|
101
103
|
*
|
|
102
104
|
* Note: each resolvable's [[ResolvePolicy]] is merged with the state's policy, and the global default.
|
|
103
105
|
*
|
|
104
|
-
* @param newResolvables the new Resolvables
|
|
106
|
+
* @param {Resolvable[]} newResolvables the new Resolvables
|
|
105
107
|
* @param state Used to find the node to put the resolvable on
|
|
106
108
|
*/
|
|
107
109
|
addResolvables(newResolvables, state) {
|
|
@@ -115,9 +117,9 @@ export class ResolveContext {
|
|
|
115
117
|
/**
|
|
116
118
|
* Returns a promise for an array of resolved path Element promises
|
|
117
119
|
*
|
|
118
|
-
* @param when
|
|
120
|
+
* @param {string} when
|
|
119
121
|
* @param trans
|
|
120
|
-
* @returns {
|
|
122
|
+
* @returns {import("../../core/q/q").QPromise<any>|any}
|
|
121
123
|
*/
|
|
122
124
|
resolvePath(when = "LAZY", trans) {
|
|
123
125
|
// This option determines which 'when' policy Resolvables we are about to fetch.
|
|
@@ -153,16 +155,21 @@ export class ResolveContext {
|
|
|
153
155
|
// Wait for all the "WAIT" resolvables
|
|
154
156
|
return services.$q.all(promises);
|
|
155
157
|
}
|
|
158
|
+
|
|
156
159
|
injector() {
|
|
157
160
|
return this._injector || (this._injector = new UIInjectorImpl());
|
|
158
161
|
}
|
|
162
|
+
|
|
159
163
|
findNode(resolvable) {
|
|
160
164
|
return find(this._path, (node) => node.resolvables.includes(resolvable));
|
|
161
165
|
}
|
|
166
|
+
|
|
162
167
|
/**
|
|
163
168
|
* Gets the async dependencies of a Resolvable
|
|
164
169
|
*
|
|
165
170
|
* Given a Resolvable, returns its dependencies as a Resolvable[]
|
|
171
|
+
* @param {Resolvable} resolvable
|
|
172
|
+
* @returns {Resolvable[]}
|
|
166
173
|
*/
|
|
167
174
|
getDependencies(resolvable) {
|
|
168
175
|
const node = this.findNode(resolvable);
|
|
@@ -173,7 +180,7 @@ export class ResolveContext {
|
|
|
173
180
|
const availableResolvables = subPath
|
|
174
181
|
.reduce((acc, _node) => acc.concat(_node.resolvables), []) // all of subpath's resolvables
|
|
175
182
|
.filter((res) => res !== resolvable); // filter out the `resolvable` argument
|
|
176
|
-
|
|
183
|
+
return resolvable.deps.map((token) => {
|
|
177
184
|
const matching = availableResolvables.filter((r) => r.token === token);
|
|
178
185
|
if (matching.length) return tail(matching);
|
|
179
186
|
const fromInjector = services.$injector.get(token);
|
|
@@ -183,8 +190,7 @@ export class ResolveContext {
|
|
|
183
190
|
);
|
|
184
191
|
}
|
|
185
192
|
return new Resolvable(token, () => fromInjector, [], fromInjector);
|
|
186
|
-
};
|
|
187
|
-
return resolvable.deps.map(getDependency);
|
|
193
|
+
});
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
196
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyPairs,
|
|
3
3
|
inherit,
|
|
4
|
-
mapObj,
|
|
5
4
|
omit,
|
|
6
5
|
tail,
|
|
7
6
|
copy,
|
|
7
|
+
map,
|
|
8
8
|
} from "../../shared/common";
|
|
9
9
|
import { isDefined, isFunction, isString } from "../../shared/utils";
|
|
10
10
|
import { stringify } from "../../shared/strings";
|
|
@@ -12,24 +12,27 @@ import { is, pattern, pipe, prop, val } from "../../shared/hof";
|
|
|
12
12
|
import { Resolvable } from "../resolve/resolvable";
|
|
13
13
|
import { services } from "../common/coreservices";
|
|
14
14
|
import { annotate } from "../../core/di/injector";
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
function parseUrl(url) {
|
|
16
17
|
if (!isString(url)) return false;
|
|
17
18
|
const root = url.charAt(0) === "^";
|
|
18
19
|
return { val: root ? url.substring(1) : url, root };
|
|
19
|
-
}
|
|
20
|
+
}
|
|
20
21
|
|
|
21
22
|
function selfBuilder(state) {
|
|
22
23
|
state.self.$$state = () => state;
|
|
23
24
|
return state.self;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
function dataBuilder(state) {
|
|
26
28
|
if (state.parent && state.parent.data) {
|
|
27
29
|
state.data = state.self.data = inherit(state.parent.data, state.data);
|
|
28
30
|
}
|
|
29
31
|
return state.data;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
function getUrlBuilder($urlService, root) {
|
|
35
|
+
return function (stateObject) {
|
|
33
36
|
let stateDec = stateObject.self;
|
|
34
37
|
// For future states, i.e., states whose name ends with `.**`,
|
|
35
38
|
// match anything that starts with the url prefix
|
|
@@ -56,31 +59,34 @@ const getUrlBuilder = ($urlService, root) =>
|
|
|
56
59
|
? url
|
|
57
60
|
: ((parent && parent.navigable) || root()).url.append(url);
|
|
58
61
|
};
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function getNavigableBuilder(isRoot) {
|
|
65
|
+
return function (state) {
|
|
61
66
|
return !isRoot(state) && state.url
|
|
62
67
|
? state
|
|
63
68
|
: state.parent
|
|
64
69
|
? state.parent.navigable
|
|
65
70
|
: null;
|
|
66
71
|
};
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function getParamsBuilder(paramFactory) {
|
|
75
|
+
return function (state) {
|
|
69
76
|
const makeConfigParam = (config, id) =>
|
|
70
77
|
paramFactory.fromConfig(id, null, state.self);
|
|
71
78
|
const urlParams =
|
|
72
79
|
(state.url && state.url.parameters({ inherit: false })) || [];
|
|
73
80
|
const nonUrlParams = Object.values(
|
|
74
|
-
|
|
75
|
-
omit(state.params || {}, urlParams.map(prop("id"))),
|
|
76
|
-
makeConfigParam,
|
|
77
|
-
),
|
|
81
|
+
map(omit(state.params || {}, urlParams.map(prop("id"))), makeConfigParam),
|
|
78
82
|
);
|
|
79
83
|
return urlParams
|
|
80
84
|
.concat(nonUrlParams)
|
|
81
85
|
.map((p) => [p.id, p])
|
|
82
86
|
.reduce(applyPairs, {});
|
|
83
87
|
};
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
function pathBuilder(state) {
|
|
85
91
|
if (state.parent && !state.abstract) {
|
|
86
92
|
return state.parent.path.concat(state);
|
|
@@ -88,11 +94,13 @@ function pathBuilder(state) {
|
|
|
88
94
|
return [state];
|
|
89
95
|
}
|
|
90
96
|
}
|
|
97
|
+
|
|
91
98
|
function includesBuilder(state) {
|
|
92
99
|
const includes = state.parent ? Object.assign({}, state.parent.includes) : {};
|
|
93
100
|
includes[state.name] = true;
|
|
94
101
|
return includes;
|
|
95
102
|
}
|
|
103
|
+
|
|
96
104
|
/**
|
|
97
105
|
* This is a [[StateBuilder.builder]] function for the `resolve:` block on a [[StateDeclaration]].
|
|
98
106
|
*
|
|
@@ -157,12 +165,6 @@ export function resolvablesBuilder(state) {
|
|
|
157
165
|
};
|
|
158
166
|
/** true if the object has both `token` and `resolveFn`, and is probably a [[ResolveLiteral]] */
|
|
159
167
|
const isResolveLiteral = (obj) => !!(obj.token && obj.resolveFn);
|
|
160
|
-
/** true if the object looks like a provide literal, or a ng2 Provider */
|
|
161
|
-
const isLikeNg2Provider = (obj) =>
|
|
162
|
-
!!(
|
|
163
|
-
(obj.provide || obj.token) &&
|
|
164
|
-
(obj.useValue || obj.useFactory || obj.useExisting || obj.useClass)
|
|
165
|
-
);
|
|
166
168
|
/** true if the object looks like a tuple from obj2Tuples */
|
|
167
169
|
const isTupleFromObj = (obj) =>
|
|
168
170
|
!!(
|
|
@@ -170,8 +172,7 @@ export function resolvablesBuilder(state) {
|
|
|
170
172
|
obj.val &&
|
|
171
173
|
(isString(obj.val) || Array.isArray(obj.val) || isFunction(obj.val))
|
|
172
174
|
);
|
|
173
|
-
|
|
174
|
-
const getToken = (p) => p.provide || p.token;
|
|
175
|
+
|
|
175
176
|
// Given a literal resolve or provider object, returns a Resolvable
|
|
176
177
|
const literal2Resolvable = pattern([
|
|
177
178
|
[
|
|
@@ -232,7 +233,6 @@ export function resolvablesBuilder(state) {
|
|
|
232
233
|
const item2Resolvable = pattern([
|
|
233
234
|
[is(Resolvable), (r) => r],
|
|
234
235
|
[isResolveLiteral, literal2Resolvable],
|
|
235
|
-
[isLikeNg2Provider, literal2Resolvable],
|
|
236
236
|
[isTupleFromObj, tuple2Resolvable],
|
|
237
237
|
[
|
|
238
238
|
val(true),
|
|
@@ -267,7 +267,6 @@ export class StateBuilder {
|
|
|
267
267
|
this.$injector = undefined;
|
|
268
268
|
const self = this;
|
|
269
269
|
const root = () => matcher.find("");
|
|
270
|
-
const isRoot = (state) => state.name === "";
|
|
271
270
|
function parentBuilder(state) {
|
|
272
271
|
if (isRoot(state)) return null;
|
|
273
272
|
return matcher.find(self.parentName(state)) || root();
|
|
@@ -358,3 +357,12 @@ export class StateBuilder {
|
|
|
358
357
|
return parentName ? parentName + "." + name : name;
|
|
359
358
|
}
|
|
360
359
|
}
|
|
360
|
+
|
|
361
|
+
function isRoot(state) {
|
|
362
|
+
return state.name === "";
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** extracts the token from a Provider or provide literal */
|
|
366
|
+
function getToken(p) {
|
|
367
|
+
return p.provide || p.token;
|
|
368
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeFrom, tail,
|
|
1
|
+
import { removeFrom, tail, map } from "../../shared/common";
|
|
2
2
|
import { isString, isFunction } from "../../shared/utils";
|
|
3
3
|
import { Glob } from "../common/glob";
|
|
4
4
|
import { TransitionHookScope } from "./interface";
|
|
@@ -93,7 +93,7 @@ export class RegisteredHook {
|
|
|
93
93
|
* }
|
|
94
94
|
*/
|
|
95
95
|
_getDefaultMatchCriteria() {
|
|
96
|
-
return
|
|
96
|
+
return map(this.tranSvc._pluginapi._getPathTypes(), () => true);
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Gets matching nodes as [[IMatchingNodes]]
|
|
@@ -2,7 +2,7 @@ import { TransitionHookPhase } from "./interface";
|
|
|
2
2
|
import { defaults, silentRejection } from "../../shared/common";
|
|
3
3
|
import { fnToString, maxLength } from "../../shared/strings";
|
|
4
4
|
import { isPromise } from "../../shared/predicates";
|
|
5
|
-
import {
|
|
5
|
+
import { parse } from "../../shared/hof";
|
|
6
6
|
import { trace } from "../common/trace";
|
|
7
7
|
import { services } from "../common/coreservices";
|
|
8
8
|
import { Rejection } from "./reject-factory";
|
|
@@ -134,9 +134,9 @@ export class TransitionHook {
|
|
|
134
134
|
// Abort this Transition
|
|
135
135
|
return Rejection.aborted("Hook aborted transition").toPromise();
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
// hook returned a TargetState
|
|
139
|
-
if (
|
|
139
|
+
if (result instanceof TargetState) {
|
|
140
140
|
// Halt the current Transition and redirect (a new Transition) to the TargetState.
|
|
141
141
|
return Rejection.redirected(result).toPromise();
|
|
142
142
|
}
|
package/src/shared/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isDate, isFunction, isRegExp, isString } from "./utils";
|
|
2
|
-
import { all,
|
|
2
|
+
import { all, prop, curry } from "./hof";
|
|
3
3
|
import { services } from "../router/common/coreservices";
|
|
4
4
|
|
|
5
5
|
export function forEach(obj, cb, thisArg) {
|
|
@@ -19,9 +19,9 @@ export function equals(o1, o2) {
|
|
|
19
19
|
if (all(isDate)(tup)) return o1.getTime() === o2.getTime();
|
|
20
20
|
if (all(isRegExp)(tup)) return o1.toString() === o2.toString();
|
|
21
21
|
if (all(isFunction)(tup)) return true; // meh
|
|
22
|
-
|
|
23
|
-
if (predicates.map(any).reduce((b, fn) => b || !!fn(tup), false))
|
|
22
|
+
if ([isFunction, Array.isArray, isDate, isRegExp].some((fn) => !!fn(tup))) {
|
|
24
23
|
return false;
|
|
24
|
+
}
|
|
25
25
|
const keys = {};
|
|
26
26
|
|
|
27
27
|
for (const key in o1) {
|
|
@@ -230,6 +230,7 @@ export function filter(collection, callback) {
|
|
|
230
230
|
});
|
|
231
231
|
return result;
|
|
232
232
|
}
|
|
233
|
+
|
|
233
234
|
/** Finds an object from an array, or a property of an object, that matches a predicate */
|
|
234
235
|
export function find(collection, callback) {
|
|
235
236
|
let result;
|
|
@@ -239,8 +240,7 @@ export function find(collection, callback) {
|
|
|
239
240
|
});
|
|
240
241
|
return result;
|
|
241
242
|
}
|
|
242
|
-
|
|
243
|
-
export let mapObj = map;
|
|
243
|
+
|
|
244
244
|
/** Maps an array or object properties using a callback function */
|
|
245
245
|
export function map(collection, callback, target) {
|
|
246
246
|
target = target || (Array.isArray(collection) ? [] : {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaults, filter, map,
|
|
1
|
+
import { defaults, filter, map, pick } from "./common";
|
|
2
2
|
import { is, eq, pattern, val } from "./hof";
|
|
3
3
|
import { isInjectable } from "./predicates";
|
|
4
4
|
import { Queue } from "../router/common/queue";
|
|
@@ -142,10 +142,10 @@ describe("common", function () {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
describe("
|
|
145
|
+
describe("map", () => {
|
|
146
146
|
it("should map objects", () => {
|
|
147
147
|
const src = { foo: 1, bar: 2, baz: 3 };
|
|
148
|
-
const dest =
|
|
148
|
+
const dest = map(src, (x) => x * 2);
|
|
149
149
|
|
|
150
150
|
expect(src).toEqual({ foo: 1, bar: 2, baz: 3 });
|
|
151
151
|
expect(dest).toEqual({ foo: 2, bar: 4, baz: 6 });
|
|
@@ -153,7 +153,7 @@ describe("common", function () {
|
|
|
153
153
|
|
|
154
154
|
it("should map objects in place when target === src", () => {
|
|
155
155
|
const src = { foo: 1, bar: 2, baz: 3 };
|
|
156
|
-
const dest =
|
|
156
|
+
const dest = map(src, (x) => x * 2, src);
|
|
157
157
|
|
|
158
158
|
expect(src).toEqual({ foo: 2, bar: 4, baz: 6 });
|
|
159
159
|
expect(dest).toEqual({ foo: 2, bar: 4, baz: 6 });
|
package/src/shared/hof.js
CHANGED
|
@@ -112,7 +112,6 @@ export function or(fn1, fn2) {
|
|
|
112
112
|
* @returns a function which takes an array and returns true if `fn1` is true for all elements of the array
|
|
113
113
|
*/
|
|
114
114
|
export const all = (fn1) => (arr) => arr.reduce((b, x) => b && !!fn1(x), true);
|
|
115
|
-
export const any = (fn1) => (arr) => arr.reduce((b, x) => b || !!fn1(x), false);
|
|
116
115
|
/** Given a class, returns a Predicate function that returns true if the object is of that class */
|
|
117
116
|
export const is = (ctor) => (obj) =>
|
|
118
117
|
(obj != null && obj.constructor === ctor) || obj instanceof ctor;
|
|
@@ -120,9 +119,6 @@ export const is = (ctor) => (obj) =>
|
|
|
120
119
|
export const eq = (value) => (other) => value === other;
|
|
121
120
|
/** Given a value, returns a function which returns the value */
|
|
122
121
|
export const val = (v) => () => v;
|
|
123
|
-
export function invoke(fnName, args) {
|
|
124
|
-
return (obj) => obj[fnName].apply(obj, args);
|
|
125
|
-
}
|
|
126
122
|
/**
|
|
127
123
|
* Sorta like Pattern Matching (a functional programming conditional construct)
|
|
128
124
|
*
|