@angular-wave/angular.ts 0.1.3 → 0.1.5
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/angular.spec.js +0 -1
- package/src/animations/animate-css.js +4 -9
- package/src/core/compile/compile.js +6 -6
- package/src/core/interval/interval-factory.js +2 -1
- package/src/core/interval/interval.spec.js +3 -40
- package/src/core/location/location.js +3 -5
- package/src/core/q/q.js +130 -161
- package/src/core/q/q.md +0 -18
- package/src/core/q/q.spec.js +37 -145
- package/src/core/task-tracker-factory.js +94 -78
- package/src/directive/model/model.js +2 -2
- package/src/router/common/coreservices.js +3 -2
- package/src/router/directives/state-directives.spec.js +2 -2
- package/src/router/directives/view-directive.js +1 -1
- package/src/router/hooks/lazy-load.js +1 -1
- package/src/router/hooks/redirect-to.js +1 -1
- package/src/router/hooks/views.js +1 -1
- package/src/router/resolve/resolvable.js +2 -2
- package/src/router/resolve/resolve-context.js +4 -6
- package/src/router/state/state-service.js +4 -3
- package/src/router/state/views.js +2 -2
- package/src/router/template-factory.js +2 -2
- package/src/router/transition/transition-hook.js +1 -1
- package/src/router/transition/transition.js +2 -2
- package/src/services/anchor-scroll.js +9 -7
- package/src/services/browser.js +146 -194
- package/src/services/http/http.spec.js +2 -1
- package/src/services/http-backend/http-backend.js +3 -4
- package/src/shared/hof.js +0 -14
- package/tsconfig.json +1 -1
- 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 +6 -5
- package/typedoc/classes/core_q_q.__QProvider.html +4 -3
- 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 +20 -26
- 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 +33 -33
- 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 +18 -18
- 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 +32 -32
- 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 +4 -3
- package/typedoc/classes/services_browser.Browser.html +40 -63
- 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.initRouter.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_services.runBlock.html +2 -2
- package/typedoc/functions/router_services.watchDigests.html +2 -2
- 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.any.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.invoke.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.QPromise.html +6 -6
- package/typedoc/interfaces/core_q_q.QService.html +5 -0
- 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 +2 -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.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 +2 -3
- package/typedoc/modules/router_services.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 -4
- 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/q/q.d.ts +47 -17
- package/types/core/task-tracker-factory.d.ts +44 -33
- package/types/directive/model/model.d.ts +1 -1
- package/types/loader.d.ts +1 -1
- package/types/router/common/coreservices.d.ts +2 -2
- package/types/router/resolve/resolve-context.d.ts +1 -2
- package/types/router/state/state-service.d.ts +1 -1
- package/types/router/state/views.d.ts +1 -1
- package/types/router/transition/transition.d.ts +4 -4
- package/types/services/anchor-scroll.d.ts +2 -2
- package/types/services/browser.d.ts +54 -97
- package/types/services/http-backend/http-backend.d.ts +1 -2
- package/types/shared/hof.d.ts +0 -12
- package/types/shared/predicates.d.ts +1 -1
- package/typedoc/functions/shared_hof.and.html +0 -3
- package/typedoc/variables/router_resolve_resolve_context.NATIVE_INJECTOR_TOKEN.html +0 -1
|
@@ -470,7 +470,7 @@ function registerControllerCallbacks(
|
|
|
470
470
|
let promise;
|
|
471
471
|
const ids = (trans[cacheProp] = trans[cacheProp] || {});
|
|
472
472
|
if (!prevTruthyAnswer(trans)) {
|
|
473
|
-
promise = $q.
|
|
473
|
+
promise = $q.resolve(controllerInstance.uiCanExit(trans));
|
|
474
474
|
promise.then((val) => (ids[id] = val !== false));
|
|
475
475
|
}
|
|
476
476
|
return promise;
|
|
@@ -89,7 +89,7 @@ export function lazyLoadState(transition, state, stateRegistry) {
|
|
|
89
89
|
return services.$q.reject(err);
|
|
90
90
|
};
|
|
91
91
|
promise = lazyLoadFn["_promise"] = services.$q
|
|
92
|
-
.
|
|
92
|
+
.resolve(lazyLoadFn(transition, state))
|
|
93
93
|
.then(updateStateRegistry)
|
|
94
94
|
.then(success, error);
|
|
95
95
|
}
|
|
@@ -27,7 +27,7 @@ export const registerRedirectToHook = (transitionService, stateService) => {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
if (isFunction(redirect)) {
|
|
30
|
-
return services.$q.
|
|
30
|
+
return services.$q.resolve(redirect(trans)).then(handleResult);
|
|
31
31
|
}
|
|
32
32
|
return handleResult(redirect);
|
|
33
33
|
};
|
|
@@ -12,7 +12,7 @@ const loadEnteringViews = (transition) => {
|
|
|
12
12
|
const enteringViews = transition.views("entering");
|
|
13
13
|
if (!enteringViews.length) return;
|
|
14
14
|
return $q
|
|
15
|
-
.all(enteringViews.map((view) => $q.
|
|
15
|
+
.all(enteringViews.map((view) => $q.resolve(view.load())))
|
|
16
16
|
.then(() => {});
|
|
17
17
|
};
|
|
18
18
|
export const registerLoadEnteringViews = (transitionService) =>
|
|
@@ -34,7 +34,7 @@ export class Resolvable {
|
|
|
34
34
|
this.deps = deps || [];
|
|
35
35
|
this.data = data;
|
|
36
36
|
this.resolved = data !== undefined;
|
|
37
|
-
this.promise = this.resolved ? services.$q.
|
|
37
|
+
this.promise = this.resolved ? services.$q.resolve(this.data) : undefined;
|
|
38
38
|
} else if (
|
|
39
39
|
isObject(arg1) &&
|
|
40
40
|
arg1.token &&
|
|
@@ -90,7 +90,7 @@ export class Resolvable {
|
|
|
90
90
|
};
|
|
91
91
|
// Sets the promise property first, then getsResolvableDependencies in the context of the promise chain. Always waits one tick.
|
|
92
92
|
return (this.promise = $q
|
|
93
|
-
.
|
|
93
|
+
.resolve()
|
|
94
94
|
.then(getResolvableDependencies)
|
|
95
95
|
.then(invokeResolveFn)
|
|
96
96
|
.then(customAsyncPolicy)
|
|
@@ -7,7 +7,7 @@ import { PathUtils } from "../path/path-utils";
|
|
|
7
7
|
import { stringify } from "../../shared/strings";
|
|
8
8
|
import { isUndefined } from "../../shared/utils";
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export const resolvePolicies = {
|
|
11
11
|
when: {
|
|
12
12
|
LAZY: "LAZY",
|
|
13
13
|
EAGER: "EAGER",
|
|
@@ -18,10 +18,8 @@ export let resolvePolicies = {
|
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const EAGER_WHENS = [whens.EAGER];
|
|
24
|
-
export const NATIVE_INJECTOR_TOKEN = "Native Injector";
|
|
21
|
+
const ALL_WHENS = [resolvePolicies.when.EAGER, resolvePolicies.when.LAZY];
|
|
22
|
+
const EAGER_WHENS = [resolvePolicies.when.EAGER];
|
|
25
23
|
/**
|
|
26
24
|
* Encapsulates Dependency Injection for a path of nodes
|
|
27
25
|
*
|
|
@@ -198,7 +196,7 @@ class UIInjectorImpl {
|
|
|
198
196
|
return services.$injector.get(token);
|
|
199
197
|
}
|
|
200
198
|
getAsync(token) {
|
|
201
|
-
return services.$q.
|
|
199
|
+
return services.$q.resolve(services.$injector.get(token));
|
|
202
200
|
}
|
|
203
201
|
getNative(token) {
|
|
204
202
|
return services.$injector.get(token);
|
|
@@ -208,7 +208,7 @@ export class StateService {
|
|
|
208
208
|
*
|
|
209
209
|
* Invokes the [[onInvalid]] callbacks, in natural order.
|
|
210
210
|
* Each callback's return value is checked in sequence until one of them returns an instance of TargetState.
|
|
211
|
-
* The results of the callbacks are wrapped in $q.
|
|
211
|
+
* The results of the callbacks are wrapped in $q.resolve(), so the callbacks may return promises.
|
|
212
212
|
*
|
|
213
213
|
* If a callback returns an TargetState, then it is used as arguments to $state.transitionTo() and the result returned.
|
|
214
214
|
*
|
|
@@ -248,7 +248,7 @@ export class StateService {
|
|
|
248
248
|
const nextCallback = callbackQueue.dequeue();
|
|
249
249
|
if (nextCallback === undefined)
|
|
250
250
|
return Rejection.invalid(toState.error()).toPromise();
|
|
251
|
-
const callbackResult = services.$q.
|
|
251
|
+
const callbackResult = services.$q.resolve(
|
|
252
252
|
nextCallback(toState, fromState, injector),
|
|
253
253
|
);
|
|
254
254
|
return callbackResult
|
|
@@ -463,7 +463,7 @@ export class StateService {
|
|
|
463
463
|
if (error.type === RejectType.IGNORED) {
|
|
464
464
|
isLatest && this.urlService.update();
|
|
465
465
|
// Consider ignored `Transition.run()` as a successful `transitionTo`
|
|
466
|
-
return services.$q.
|
|
466
|
+
return services.$q.resolve(this.globals.current);
|
|
467
467
|
}
|
|
468
468
|
const detail = error.detail;
|
|
469
469
|
if (
|
|
@@ -667,6 +667,7 @@ export class StateService {
|
|
|
667
667
|
defaultErrorHandler(handler) {
|
|
668
668
|
return (this._defaultErrorHandler = handler || this._defaultErrorHandler);
|
|
669
669
|
}
|
|
670
|
+
|
|
670
671
|
get(stateOrName, base) {
|
|
671
672
|
const reg = this.stateRegistry;
|
|
672
673
|
if (arguments.length === 0) return reg.get();
|
|
@@ -122,10 +122,10 @@ export class Ng1ViewConfig {
|
|
|
122
122
|
{},
|
|
123
123
|
);
|
|
124
124
|
const promises = {
|
|
125
|
-
template: $q.
|
|
125
|
+
template: $q.resolve(
|
|
126
126
|
this.factory.fromConfig(this.viewDecl, params, context),
|
|
127
127
|
),
|
|
128
|
-
controller: $q.
|
|
128
|
+
controller: $q.resolve(this.getController(context)),
|
|
129
129
|
};
|
|
130
130
|
return $q.all(promises).then((results) => {
|
|
131
131
|
trace.traceViewServiceEvent("Loaded", this);
|
|
@@ -69,9 +69,9 @@ export class TemplateFactory {
|
|
|
69
69
|
fromConfig(config, params, context) {
|
|
70
70
|
const defaultTemplate = "<ui-view></ui-view>";
|
|
71
71
|
const asTemplate = (result) =>
|
|
72
|
-
this.$q.
|
|
72
|
+
this.$q.resolve(result).then((str) => ({ template: str }));
|
|
73
73
|
const asComponent = (result) =>
|
|
74
|
-
this.$q.
|
|
74
|
+
this.$q.resolve(result).then((str) => ({ component: str }));
|
|
75
75
|
|
|
76
76
|
const getConfigType = (config) => {
|
|
77
77
|
if (isDefined(config.template)) return "template";
|
|
@@ -37,7 +37,7 @@ export class TransitionHook {
|
|
|
37
37
|
// Chain the next hook off the previous
|
|
38
38
|
const createHookChainR = (prev, nextHook) =>
|
|
39
39
|
prev.then(() => nextHook.invokeHook());
|
|
40
|
-
return hooks.reduce(createHookChainR, waitFor || services.$q.
|
|
40
|
+
return hooks.reduce(createHookChainR, waitFor || services.$q.resolve());
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Invokes all the provided TransitionHooks, in order.
|
|
@@ -619,7 +619,7 @@ export class Transition {
|
|
|
619
619
|
// Wait to build the RUN hook chain until the BEFORE hooks are done
|
|
620
620
|
// This allows a BEFORE hook to dynamically add additional RUN hooks via the Transition object.
|
|
621
621
|
const allRunHooks = getHooksFor(TransitionHookPhase.RUN);
|
|
622
|
-
const done = () => services.$q.
|
|
622
|
+
const done = () => services.$q.resolve(undefined);
|
|
623
623
|
return TransitionHook.invokeHooks(allRunHooks, done);
|
|
624
624
|
};
|
|
625
625
|
const startTransition = () => {
|
|
@@ -628,7 +628,7 @@ export class Transition {
|
|
|
628
628
|
globals.transition = this;
|
|
629
629
|
globals.transitionHistory.enqueue(this);
|
|
630
630
|
trace.traceTransitionStart(this);
|
|
631
|
-
return services.$q.
|
|
631
|
+
return services.$q.resolve(undefined);
|
|
632
632
|
};
|
|
633
633
|
const allBeforeHooks = getHooksFor(TransitionHookPhase.BEFORE);
|
|
634
634
|
TransitionHook.invokeHooks(allBeforeHooks, startTransition)
|
|
@@ -19,14 +19,16 @@ import {
|
|
|
19
19
|
* @typedef {AnchorScrollFunction | AnchorScrollObject} AnchorScrollService
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
export
|
|
23
|
-
|
|
22
|
+
export class AnchorScrollProvider {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.autoScrollingEnabled = true;
|
|
25
|
+
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
autoScrollingEnabled = false;
|
|
27
|
-
}
|
|
27
|
+
disableAutoScrolling() {
|
|
28
|
+
this.autoScrollingEnabled = false;
|
|
29
|
+
}
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
$get = [
|
|
30
32
|
"$location",
|
|
31
33
|
"$rootScope",
|
|
32
34
|
/**
|
|
@@ -124,7 +126,7 @@ export function AnchorScrollProvider() {
|
|
|
124
126
|
|
|
125
127
|
// does not scroll when user clicks on anchor link that is currently on
|
|
126
128
|
// (no url change, no $location.hash() change), browser native does scroll
|
|
127
|
-
if (autoScrollingEnabled) {
|
|
129
|
+
if (this.autoScrollingEnabled) {
|
|
128
130
|
$rootScope.$watch(
|
|
129
131
|
() => $location.hash(),
|
|
130
132
|
(newVal, oldVal) => {
|
package/src/services/browser.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { JQLite } from "../shared/jqlite/jqlite";
|
|
2
2
|
import { urlResolve } from "../core/url-utils/url-utils";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
// This variable should be used *only* inside the cacheState function.
|
|
6
|
-
let lastCachedState = null;
|
|
3
|
+
import { equals } from "../shared/utils";
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* Removes a trailing hash ('#') from the given URL if it exists.
|
|
@@ -20,266 +17,223 @@ export function trimEmptyHash(url) {
|
|
|
20
17
|
*/
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
|
-
* @name $browser
|
|
24
|
-
* @description
|
|
25
20
|
* This object has two goals:
|
|
26
21
|
*
|
|
27
22
|
* - hide all the global state in the browser caused by the window object
|
|
28
23
|
* - abstract away all the browser specific features and inconsistencies
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @param {import('../core/task-tracker-factory').TaskTracker} taskTracker
|
|
35
24
|
*/
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
25
|
+
export class Browser {
|
|
26
|
+
/**
|
|
27
|
+
* @param {import('../core/task-tracker-factory').TaskTracker} taskTracker
|
|
28
|
+
*/
|
|
29
|
+
constructor(taskTracker) {
|
|
30
|
+
/**
|
|
31
|
+
* @type {import('../core/task-tracker-factory').TaskTracker} taskTracker
|
|
32
|
+
*/
|
|
33
|
+
this.taskTracker = taskTracker;
|
|
34
|
+
this.pendingDeferIds = {};
|
|
35
|
+
/** @type {Array<UrlChangeListener>} */
|
|
36
|
+
this.urlChangeListeners = [];
|
|
37
|
+
this.urlChangeInit = false;
|
|
38
|
+
|
|
39
|
+
/** @type {any} */
|
|
40
|
+
this.cachedState = null;
|
|
41
|
+
/** @type {any} */
|
|
42
|
+
this.lastHistoryState = null;
|
|
43
|
+
/** @type {string} */
|
|
44
|
+
this.lastBrowserUrl = window.location.href;
|
|
45
|
+
/** @type {JQLite} */
|
|
46
|
+
this.baseElement = JQLite(
|
|
47
|
+
Array.from(document.getElementsByTagName("base")),
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
// Task-tracking API
|
|
51
|
+
this.$$completeOutstandingRequest =
|
|
52
|
+
this.taskTracker.completeTask.bind(taskTracker);
|
|
53
|
+
this.$$incOutstandingRequestCount =
|
|
54
|
+
this.taskTracker.incTaskCount.bind(taskTracker);
|
|
55
|
+
this.notifyWhenNoOutstandingRequests =
|
|
56
|
+
this.taskTracker.notifyWhenNoPendingTasks.bind(taskTracker);
|
|
57
|
+
|
|
58
|
+
this.cacheState();
|
|
59
|
+
}
|
|
53
60
|
|
|
54
61
|
/// ///////////////////////////////////////////////////////////
|
|
55
62
|
// URL API
|
|
56
63
|
/// ///////////////////////////////////////////////////////////
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
let lastBrowserUrl = window.location.href;
|
|
61
|
-
const baseElement = JQLite(Array.from(document.getElementsByTagName("base")));
|
|
62
|
-
|
|
63
|
-
cacheState();
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @name $browser#url
|
|
67
|
-
*
|
|
68
|
-
* @description
|
|
69
|
-
* GETTER:
|
|
70
|
-
* Without any argument, this method just returns current value of `location.href` (with a
|
|
71
|
-
* trailing `#` stripped of if the hash is empty).
|
|
72
|
-
*
|
|
73
|
-
* SETTER:
|
|
74
|
-
* With at least one argument, this method sets url to new value.
|
|
75
|
-
* If html5 history api supported, `pushState`/`replaceState` is used, otherwise
|
|
76
|
-
* `location.href`/`location.replace` is used.
|
|
77
|
-
* Returns its own instance to allow chaining.
|
|
78
|
-
*
|
|
79
|
-
* NOTE: this api is intended for use only by the `$location` service. Please use the
|
|
80
|
-
* {@link ng.$location $location service} to change url.
|
|
81
|
-
*
|
|
82
|
-
* @param {string=} url New url (when used as setter)
|
|
83
|
-
* @param {boolean=} replace Should new url replace current history record?
|
|
84
|
-
* @param {object=} state State object to use with `pushState`/`replaceState`
|
|
85
|
-
*/
|
|
86
|
-
self.url = function (url, replace, state) {
|
|
87
|
-
// In modern browsers `history.state` is `null` by default; treating it separately
|
|
88
|
-
// from `undefined` would cause `$browser.url('/foo')` to change `history.state`
|
|
89
|
-
// to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
|
|
90
|
-
if (isUndefined(state)) {
|
|
65
|
+
url(url, state) {
|
|
66
|
+
if (state === undefined) {
|
|
91
67
|
state = null;
|
|
92
68
|
}
|
|
93
69
|
|
|
94
70
|
// setter
|
|
95
71
|
if (url) {
|
|
96
|
-
// Normalize the inputted URL
|
|
97
72
|
url = urlResolve(url).href;
|
|
98
73
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
// See https://github.com/angular/angular.js/commit/ffb2701
|
|
102
|
-
if (lastBrowserUrl === url && lastHistoryState === state) {
|
|
103
|
-
return self;
|
|
74
|
+
if (this.lastBrowserUrl === url && this.lastHistoryState === state) {
|
|
75
|
+
return this;
|
|
104
76
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
lastHistoryState = state;
|
|
77
|
+
|
|
78
|
+
this.lastBrowserUrl = url;
|
|
79
|
+
this.lastHistoryState = state;
|
|
109
80
|
history.pushState(state, "", url);
|
|
110
|
-
cacheState();
|
|
111
|
-
return
|
|
112
|
-
// getter
|
|
81
|
+
this.cacheState();
|
|
82
|
+
return this;
|
|
113
83
|
}
|
|
114
|
-
|
|
115
|
-
//
|
|
116
|
-
// https://openradar.appspot.com/22186109).
|
|
84
|
+
|
|
85
|
+
// getter
|
|
117
86
|
return trimEmptyHash(window.location.href);
|
|
118
|
-
}
|
|
87
|
+
}
|
|
119
88
|
|
|
120
89
|
/**
|
|
121
|
-
*
|
|
90
|
+
* Returns the cached state.
|
|
122
91
|
*
|
|
123
|
-
* @
|
|
124
|
-
* This method is a getter.
|
|
125
|
-
*
|
|
126
|
-
* Return history.state or null if history.state is undefined.
|
|
127
|
-
*
|
|
128
|
-
* @returns {object} state
|
|
92
|
+
* @returns {any} The cached state.
|
|
129
93
|
*/
|
|
130
|
-
|
|
131
|
-
return cachedState;
|
|
132
|
-
}
|
|
94
|
+
state() {
|
|
95
|
+
return this.cachedState;
|
|
96
|
+
}
|
|
133
97
|
|
|
134
|
-
|
|
135
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Caches the current state and fires the URL change event.
|
|
100
|
+
*
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
cacheStateAndFireUrlChange() {
|
|
104
|
+
this.fireStateOrUrlChange();
|
|
136
105
|
}
|
|
137
106
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Caches the current state.
|
|
109
|
+
*
|
|
110
|
+
* @private
|
|
111
|
+
*/
|
|
112
|
+
cacheState() {
|
|
113
|
+
this.cachedState = history.state;
|
|
114
|
+
this.cachedState = this.cachedState === undefined ? null : this.cachedState;
|
|
142
115
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
cachedState = lastCachedState;
|
|
116
|
+
if (equals(this.cachedState, this.lastCachedState)) {
|
|
117
|
+
this.cachedState = this.lastCachedState;
|
|
146
118
|
}
|
|
147
119
|
|
|
148
|
-
lastCachedState = cachedState;
|
|
149
|
-
lastHistoryState = cachedState;
|
|
120
|
+
this.lastCachedState = this.cachedState;
|
|
121
|
+
this.lastHistoryState = this.cachedState;
|
|
150
122
|
}
|
|
151
123
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Fires the state or URL change event.
|
|
126
|
+
*
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
129
|
+
fireStateOrUrlChange() {
|
|
130
|
+
const prevLastHistoryState = this.lastHistoryState;
|
|
131
|
+
this.cacheState();
|
|
132
|
+
|
|
133
|
+
if (
|
|
134
|
+
this.lastBrowserUrl === this.url() &&
|
|
135
|
+
prevLastHistoryState === this.cachedState
|
|
136
|
+
) {
|
|
157
137
|
return;
|
|
158
138
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
139
|
+
|
|
140
|
+
this.lastBrowserUrl = /** @type {string} */ (this.url());
|
|
141
|
+
this.lastHistoryState = this.cachedState;
|
|
142
|
+
this.urlChangeListeners.forEach((listener) => {
|
|
143
|
+
listener(trimEmptyHash(window.location.href), this.cachedState);
|
|
163
144
|
});
|
|
164
145
|
}
|
|
165
146
|
|
|
166
147
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* It's only called when the url is changed from outside of AngularJS:
|
|
170
|
-
* - user types different url into address bar
|
|
171
|
-
* - user clicks on history (forward/back) button
|
|
172
|
-
* - user clicks on a link
|
|
173
|
-
*
|
|
174
|
-
* It's not called when url is changed by $browser.url() method
|
|
175
|
-
*
|
|
176
|
-
* The listener gets called with new url as parameter.
|
|
177
|
-
*
|
|
178
|
-
* NOTE: this api is intended for use only by the $location service. Please use the
|
|
179
|
-
* {@link ng.$location $location service} to monitor url changes in AngularJS apps.
|
|
148
|
+
* Registers a callback to be called when the URL changes.
|
|
180
149
|
*
|
|
181
|
-
* @param {UrlChangeListener} callback
|
|
182
|
-
* @
|
|
150
|
+
* @param {UrlChangeListener} callback - The callback function to register.
|
|
151
|
+
* @returns {UrlChangeListener} The registered callback function.
|
|
183
152
|
*/
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
urlChangeInit = true;
|
|
153
|
+
onUrlChange(callback) {
|
|
154
|
+
if (!this.urlChangeInit) {
|
|
155
|
+
window.addEventListener(
|
|
156
|
+
"popstate",
|
|
157
|
+
this.cacheStateAndFireUrlChange.bind(this),
|
|
158
|
+
);
|
|
159
|
+
window.addEventListener(
|
|
160
|
+
"hashchange",
|
|
161
|
+
this.cacheStateAndFireUrlChange.bind(this),
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
this.urlChangeInit = true;
|
|
197
165
|
}
|
|
198
166
|
|
|
199
|
-
urlChangeListeners.push(callback);
|
|
167
|
+
this.urlChangeListeners.push(callback);
|
|
200
168
|
return callback;
|
|
201
|
-
}
|
|
169
|
+
}
|
|
202
170
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
171
|
+
$$applicationDestroyed() {
|
|
172
|
+
window.removeEventListener(
|
|
173
|
+
"popstate",
|
|
174
|
+
this.cacheStateAndFireUrlChange.bind(this),
|
|
175
|
+
);
|
|
176
|
+
window.removeEventListener(
|
|
177
|
+
"hashchange",
|
|
178
|
+
this.cacheStateAndFireUrlChange.bind(this),
|
|
179
|
+
);
|
|
180
|
+
}
|
|
211
181
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
* as hashchange/popstate events fire in async.
|
|
216
|
-
*/
|
|
217
|
-
self.$$checkUrlChange = fireStateOrUrlChange;
|
|
182
|
+
$$checkUrlChange() {
|
|
183
|
+
this.fireStateOrUrlChange();
|
|
184
|
+
}
|
|
218
185
|
|
|
219
186
|
/// ///////////////////////////////////////////////////////////
|
|
220
187
|
// Misc API
|
|
221
188
|
/// ///////////////////////////////////////////////////////////
|
|
222
189
|
|
|
223
190
|
/**
|
|
224
|
-
* Returns
|
|
225
|
-
* (always relative - without domain)
|
|
191
|
+
* Returns the base href of the document.
|
|
226
192
|
*
|
|
227
|
-
* @returns {string} The
|
|
193
|
+
* @returns {string} The base href.
|
|
228
194
|
*/
|
|
229
|
-
|
|
230
|
-
const href = baseElement.attr("href");
|
|
195
|
+
baseHref() {
|
|
196
|
+
const href = this.baseElement.attr("href");
|
|
231
197
|
return href ? href.replace(/^(https?:)?\/\/[^/]*/, "") : "";
|
|
232
|
-
}
|
|
198
|
+
}
|
|
233
199
|
|
|
234
200
|
/**
|
|
235
|
-
*
|
|
236
|
-
* @param {number=} [delay=0] Number of milliseconds to defer the function execution.
|
|
237
|
-
* @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred.
|
|
238
|
-
* @returns {number} DeferId that can be used to cancel the task via `$browser.cancel()`.
|
|
239
|
-
*
|
|
240
|
-
* Executes a fn asynchronously via `setTimeout(fn, delay)`.
|
|
241
|
-
*
|
|
242
|
-
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
|
|
243
|
-
* `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
|
|
244
|
-
* via `$browser.defer.flush()`.
|
|
201
|
+
* Defers a function to be executed after a delay.
|
|
245
202
|
*
|
|
203
|
+
* @param {function(): any} fn - The function to defer.
|
|
204
|
+
* @param {number} [delay=0] - The delay in milliseconds before executing the function.
|
|
205
|
+
* @param {string} [taskType=this.taskTracker.DEFAULT_TASK_TYPE] - The type of task to track.
|
|
206
|
+
* @returns {number} The timeout ID associated with the deferred function.
|
|
246
207
|
*/
|
|
247
|
-
|
|
208
|
+
defer(fn, delay = 0, taskType = this.taskTracker.DEFAULT_TASK_TYPE) {
|
|
248
209
|
let timeoutId;
|
|
249
210
|
|
|
250
|
-
|
|
251
|
-
taskType = taskType || taskTracker.DEFAULT_TASK_TYPE;
|
|
252
|
-
|
|
253
|
-
taskTracker.incTaskCount(taskType);
|
|
211
|
+
this.taskTracker.incTaskCount(taskType);
|
|
254
212
|
timeoutId = window.setTimeout(() => {
|
|
255
|
-
delete pendingDeferIds[timeoutId];
|
|
256
|
-
taskTracker.completeTask(fn, taskType);
|
|
213
|
+
delete this.pendingDeferIds[timeoutId];
|
|
214
|
+
this.taskTracker.completeTask(fn, taskType);
|
|
257
215
|
}, delay);
|
|
258
|
-
pendingDeferIds[timeoutId] = taskType;
|
|
216
|
+
this.pendingDeferIds[timeoutId] = taskType;
|
|
259
217
|
|
|
260
218
|
return timeoutId;
|
|
261
|
-
}
|
|
219
|
+
}
|
|
262
220
|
|
|
263
221
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* @description
|
|
267
|
-
* Cancels a deferred task identified with `deferId`.
|
|
222
|
+
* Cancels a deferred function.
|
|
268
223
|
*
|
|
269
|
-
* @param {number} deferId
|
|
270
|
-
* @returns {boolean}
|
|
271
|
-
* canceled.
|
|
224
|
+
* @param {number} deferId - The ID of the deferred function to cancel.
|
|
225
|
+
* @returns {boolean} True if the function was successfully canceled, false otherwise.
|
|
272
226
|
*/
|
|
273
|
-
|
|
274
|
-
if (Object.prototype.hasOwnProperty.call(pendingDeferIds, deferId)) {
|
|
275
|
-
const taskType = pendingDeferIds[deferId];
|
|
276
|
-
delete pendingDeferIds[deferId];
|
|
227
|
+
cancel(deferId) {
|
|
228
|
+
if (Object.prototype.hasOwnProperty.call(this.pendingDeferIds, deferId)) {
|
|
229
|
+
const taskType = this.pendingDeferIds[deferId];
|
|
230
|
+
delete this.pendingDeferIds[deferId];
|
|
277
231
|
window.clearTimeout(deferId);
|
|
278
|
-
taskTracker.completeTask(() => {}, taskType);
|
|
232
|
+
this.taskTracker.completeTask(() => {}, taskType);
|
|
279
233
|
return true;
|
|
280
234
|
}
|
|
281
235
|
return false;
|
|
282
|
-
}
|
|
236
|
+
}
|
|
283
237
|
}
|
|
284
238
|
|
|
285
239
|
/**
|
|
@@ -297,8 +251,6 @@ export class BrowserProvider {
|
|
|
297
251
|
* @param {import('../core/task-tracker-factory').TaskTracker} $$taskTrackerFactory
|
|
298
252
|
* @returns
|
|
299
253
|
*/
|
|
300
|
-
|
|
301
|
-
return new Browser($$taskTrackerFactory);
|
|
302
|
-
},
|
|
254
|
+
($$taskTrackerFactory) => new Browser($$taskTrackerFactory),
|
|
303
255
|
];
|
|
304
256
|
}
|
|
@@ -937,7 +937,7 @@ describe("$http", function () {
|
|
|
937
937
|
return {
|
|
938
938
|
request: function (config) {
|
|
939
939
|
config.params.intercepted = true;
|
|
940
|
-
return $q.
|
|
940
|
+
return $q.resolve(config);
|
|
941
941
|
},
|
|
942
942
|
};
|
|
943
943
|
});
|
|
@@ -1212,6 +1212,7 @@ describe("$http", function () {
|
|
|
1212
1212
|
},
|
|
1213
1213
|
);
|
|
1214
1214
|
$rootScope.$apply();
|
|
1215
|
+
|
|
1215
1216
|
expect(response.xhrStatus).toBe("timeout");
|
|
1216
1217
|
});
|
|
1217
1218
|
|