@angular-wave/angular.ts 0.1.1 → 0.1.3
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/.github/workflows/lint.yml +19 -0
- package/README.md +2 -10
- package/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +3 -3
- package/src/angular.spec.js +0 -76
- package/src/animations/animate-css.js +6 -2
- package/src/animations/animate.js +1 -17
- package/src/core/compile/attributes.js +0 -20
- package/src/core/compile/compile.js +0 -5
- package/src/core/controller/controller.js +1 -9
- package/src/core/exception-handler.js +0 -3
- package/src/core/interpolate/interpolate.js +0 -14
- package/src/core/q/q.js +0 -5
- package/src/core/sce/sce.js +0 -400
- package/src/core/sce/sce.md +300 -0
- package/src/core/scope/scope.js +1 -75
- package/src/core/url-utils/url-utils.js +0 -47
- package/src/core/url-utils/url-utils.md +46 -0
- package/src/directive/aria/aria.js +1 -6
- package/src/directive/class/class.js +0 -16
- package/src/directive/form/form.js +0 -41
- package/src/directive/model/model.js +0 -32
- package/src/directive/ref/ref.js +0 -5
- package/src/directive/script/script.js +0 -15
- package/src/directive/script/script.md +11 -0
- package/src/directive/select/select.js +0 -13
- package/src/directive/transclude/transclude.js +0 -5
- package/src/directive/validators/validators.js +0 -15
- package/src/loader.js +34 -50
- package/src/public.js +0 -1
- package/src/router/directives/view-directive.js +0 -11
- package/src/router/params/param-type.js +3 -8
- package/src/router/params/param-types.js +3 -10
- package/src/router/resolve/resolvable.js +7 -15
- package/src/router/transition/transition.js +2 -2
- package/src/router/url/url-matcher.js +4 -4
- package/src/services/browser.js +0 -8
- package/src/services/cache-factory.js +0 -42
- package/src/services/http/http.js +0 -17
- package/src/services/http-backend/http-backend.js +0 -4
- package/src/services/log.js +4 -9
- package/src/shared/common.js +33 -36
- package/src/shared/predicates.js +11 -12
- package/src/types.js +9 -17
- package/typedoc/.nojekyll +1 -0
- package/typedoc/assets/highlight.css +162 -0
- package/typedoc/assets/icons.js +18 -0
- package/typedoc/assets/icons.svg +1 -0
- package/typedoc/assets/main.js +60 -0
- package/typedoc/assets/navigation.js +1 -0
- package/typedoc/assets/search.js +1 -0
- package/typedoc/assets/style.css +1448 -0
- package/typedoc/classes/animations_animate.AnimateProvider.html +71 -0
- package/typedoc/classes/animations_animate_cache.__AnimateCacheProvider.html +3 -0
- package/typedoc/classes/animations_animate_css._AnimateCssProvider.html +3 -0
- package/typedoc/classes/animations_animate_css_driver.__AnimateCssDriverProvider.html +4 -0
- package/typedoc/classes/animations_animate_js.__AnimateJsProvider.html +4 -0
- package/typedoc/classes/animations_animate_js_driver.__AnimateJsDriverProvider.html +4 -0
- package/typedoc/classes/animations_animate_queue.__AnimateQueueProvider.html +5 -0
- package/typedoc/classes/animations_animate_runner.AnimateAsyncRunFactoryProvider.html +3 -0
- package/typedoc/classes/animations_animate_runner.AnimateRunner.html +22 -0
- package/typedoc/classes/animations_animate_runner.AnimateRunnerFactoryProvider.html +3 -0
- package/typedoc/classes/animations_animation.__AnimationProvider.html +4 -0
- package/typedoc/classes/animations_raf_scheduler.RafSchedulerProvider.html +6 -0
- package/typedoc/classes/core_compile_attributes.Attributes.html +51 -0
- package/typedoc/classes/core_compile_compile._CompileProvider.html +98 -0
- package/typedoc/classes/core_controller_controller._ControllerProvider.html +18 -0
- package/typedoc/classes/core_di_internal_injector.InjectorService.html +20 -0
- package/typedoc/classes/core_di_internal_injector.ProviderInjector.html +21 -0
- package/typedoc/classes/core_di_ng_module.NgModule.html +34 -0
- package/typedoc/classes/core_exception_handler._ExceptionHandlerProvider.html +3 -0
- package/typedoc/classes/core_filter_filter._FilterProvider.html +5 -0
- package/typedoc/classes/core_interpolate_interpolate._InterpolateProvider.html +25 -0
- package/typedoc/classes/core_interval_interval._IntervalProvider.html +3 -0
- package/typedoc/classes/core_interval_interval_factory.__IntervalFactoryProvider.html +3 -0
- package/typedoc/classes/core_location_location.Location.html +94 -0
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +101 -0
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +99 -0
- package/typedoc/classes/core_location_location._LocationProvider.html +27 -0
- package/typedoc/classes/core_parser_ast.AST.html +93 -0
- package/typedoc/classes/core_parser_interpreter.ASTInterpreter.html +144 -0
- package/typedoc/classes/core_parser_lexer.Lexer.html +64 -0
- package/typedoc/classes/core_parser_parse._ParseProvider.html +19 -0
- package/typedoc/classes/core_parser_parser.Parser.html +8 -0
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +71 -0
- package/typedoc/classes/core_q_q._QProvider.html +9 -0
- package/typedoc/classes/core_q_q.__QProvider.html +4 -0
- package/typedoc/classes/core_sanitize_sanitize_uri.SanitizeUriProvider.html +32 -0
- package/typedoc/classes/core_sce_sce._SceDelegateProvider.html +67 -0
- package/typedoc/classes/core_sce_sce._SceProvider.html +7 -0
- package/typedoc/classes/core_scope_scope.Scope.html +350 -0
- package/typedoc/classes/core_scope_scope._RootScopeProvider.html +10 -0
- package/typedoc/classes/core_task_tracker_factory.TaskTracker.html +29 -0
- package/typedoc/classes/core_task_tracker_factory.__TaskTrackerFactoryProvider.html +3 -0
- package/typedoc/classes/core_timeout_timeout._TimeoutProvider.html +3 -0
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +14 -0
- package/typedoc/classes/directive_form_form.FormController.html +138 -0
- package/typedoc/classes/directive_model_model.NgModelController.html +235 -0
- package/typedoc/classes/loader.Angular.html +68 -0
- package/typedoc/classes/router_common_glob.Glob.html +10 -0
- package/typedoc/classes/router_common_queue.Queue.html +14 -0
- package/typedoc/classes/router_common_trace.Trace.html +42 -0
- package/typedoc/classes/router_globals.UIRouterGlobals.html +12 -0
- package/typedoc/classes/router_params_param.Param.html +34 -0
- package/typedoc/classes/router_params_param_factory.ParamFactory.html +6 -0
- package/typedoc/classes/router_params_param_type.ParamType.html +35 -0
- package/typedoc/classes/router_params_param_types.ParamTypes.html +28 -0
- package/typedoc/classes/router_params_state_params.StateParams.html +8 -0
- package/typedoc/classes/router_path_path_node.PathNode.html +30 -0
- package/typedoc/classes/router_path_path_utils.PathUtils.html +47 -0
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +29 -0
- package/typedoc/classes/router_resolve_resolve_context.ResolveContext.html +46 -0
- package/typedoc/classes/router_state_state_builder.StateBuilder.html +20 -0
- package/typedoc/classes/router_state_state_matcher.StateMatcher.html +6 -0
- package/typedoc/classes/router_state_state_object.StateObject.html +45 -0
- package/typedoc/classes/router_state_state_queue_manager.StateQueueManager.html +11 -0
- package/typedoc/classes/router_state_state_registry.StateRegistry.html +60 -0
- package/typedoc/classes/router_state_state_service.StateService.html +232 -0
- package/typedoc/classes/router_state_target_state.TargetState.html +72 -0
- package/typedoc/classes/router_state_views.Ng1ViewConfig.html +22 -0
- package/typedoc/classes/router_template_factory.TemplateFactory.html +56 -0
- package/typedoc/classes/router_transition_hook_builder.HookBuilder.html +32 -0
- package/typedoc/classes/router_transition_hook_registry.RegisteredHook.html +41 -0
- package/typedoc/classes/router_transition_reject_factory.Rejection.html +27 -0
- package/typedoc/classes/router_transition_transition.Transition.html +189 -0
- package/typedoc/classes/router_transition_transition_event_type.TransitionEventType.html +16 -0
- package/typedoc/classes/router_transition_transition_hook.TransitionHook.html +51 -0
- package/typedoc/classes/router_transition_transition_service.TransitionService.html +47 -0
- package/typedoc/classes/router_url_url_config.UrlConfigProvider.html +57 -0
- package/typedoc/classes/router_url_url_matcher.UrlMatcher.html +120 -0
- package/typedoc/classes/router_url_url_rule.BaseUrlRule.html +11 -0
- package/typedoc/classes/router_url_url_rule.UrlRuleFactory.html +55 -0
- package/typedoc/classes/router_url_url_rules.UrlRules.html +150 -0
- package/typedoc/classes/router_url_url_service.UrlService.html +138 -0
- package/typedoc/classes/router_view_scroll._ViewScrollProvider.html +4 -0
- package/typedoc/classes/router_view_view.ViewService.html +109 -0
- package/typedoc/classes/services_anchor_scroll.AnchorScrollProvider.html +4 -0
- package/typedoc/classes/services_browser.Browser.html +65 -0
- package/typedoc/classes/services_browser.BrowserProvider.html +9 -0
- package/typedoc/classes/services_cache_factory.CacheFactoryProvider.html +3 -0
- package/typedoc/classes/services_cache_factory.TemplateCacheProvider.html +53 -0
- package/typedoc/classes/services_http_backend_http_backend._HttpBackendProvider.html +11 -0
- package/typedoc/classes/services_http_http._HttpParamSerializerJQLikeProvider.html +31 -0
- package/typedoc/classes/services_http_http._HttpParamSerializerProvider.html +21 -0
- package/typedoc/classes/services_http_http._HttpProvider.html +19 -0
- package/typedoc/classes/services_log._LogProvider.html +9 -0
- package/typedoc/classes/services_template_request.TemplateRequestProvider.html +31 -0
- package/typedoc/classes/shared_jqlite_jqlite.JQLite.html +62 -0
- package/typedoc/enums/core_parser_ast_type.ASTType.html +18 -0
- package/typedoc/enums/core_scope_scope.ScopePhase.html +4 -0
- package/typedoc/enums/router_transition_reject_factory.RejectType.html +23 -0
- package/typedoc/functions/animations_animate.domInsert.html +1 -0
- package/typedoc/functions/animations_animate_cache.animateCache.html +29 -0
- package/typedoc/functions/animations_animate_children_directive.__AnimateChildrenDirective.html +2 -0
- package/typedoc/functions/animations_animate_swap.ngAnimateSwapDirective.html +2 -0
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +1 -0
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +1 -0
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +1 -0
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +1 -0
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +1 -0
- package/typedoc/functions/animations_shared.applyInlineStyle.html +1 -0
- package/typedoc/functions/animations_shared.assertArg.html +1 -0
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +1 -0
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +1 -0
- package/typedoc/functions/animations_shared.concatWithSpace.html +1 -0
- package/typedoc/functions/animations_shared.extractElementNode.html +1 -0
- package/typedoc/functions/animations_shared.getDomNode.html +1 -0
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +1 -0
- package/typedoc/functions/animations_shared.mergeClasses.html +1 -0
- package/typedoc/functions/animations_shared.ngMinErr.html +1 -0
- package/typedoc/functions/animations_shared.packageStyles.html +1 -0
- package/typedoc/functions/animations_shared.pendClasses.html +1 -0
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +1 -0
- package/typedoc/functions/animations_shared.removeFromArray.html +1 -0
- package/typedoc/functions/animations_shared.resolveElementClasses.html +1 -0
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +1 -0
- package/typedoc/functions/core_controller_controller.identifierForController.html +1 -0
- package/typedoc/functions/core_di_injector.annotate.html +1 -0
- package/typedoc/functions/core_di_injector.createInjector.html +1 -0
- package/typedoc/functions/core_exception_handler.errorHandler-1.html +3 -0
- package/typedoc/functions/core_location_location.serverBase.html +1 -0
- package/typedoc/functions/core_location_location.stripBaseUrl.html +3 -0
- package/typedoc/functions/core_location_location.stripFile.html +1 -0
- package/typedoc/functions/core_location_location.stripHash.html +1 -0
- package/typedoc/functions/core_parser_interpreter.isAssignable.html +1 -0
- package/typedoc/functions/core_parser_parse.constantWatchDelegate.html +1 -0
- package/typedoc/functions/core_q_q.markQExceptionHandled.html +1 -0
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +1 -0
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +1 -0
- package/typedoc/functions/core_scope_scope.countChildScopes.html +4 -0
- package/typedoc/functions/core_scope_scope.countWatchers.html +5 -0
- package/typedoc/functions/core_url_utils_url_utils.getBaseUrl.html +2 -0
- package/typedoc/functions/core_url_utils_url_utils.urlIsAllowedOriginFactory.html +8 -0
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOrigin.html +6 -0
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOriginAsBaseUrl.html +7 -0
- package/typedoc/functions/core_url_utils_url_utils.urlResolve.html +1 -0
- package/typedoc/functions/core_url_utils_url_utils.urlsAreSameOrigin.html +9 -0
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +1 -0
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +2 -0
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +2 -0
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +1 -0
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +1 -0
- package/typedoc/functions/directive_change_change.ngChangeDirective.html +1 -0
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +1 -0
- package/typedoc/functions/directive_events_events.createEventDirective.html +1 -0
- package/typedoc/functions/directive_form_form.addSetValidityMethod.html +1 -0
- package/typedoc/functions/directive_form_form.isObjectEmpty.html +1 -0
- package/typedoc/functions/directive_form_form.setupValidity.html +1 -0
- package/typedoc/functions/directive_if_if.ngIfDirective.html +3 -0
- package/typedoc/functions/directive_init_init.ngInitDirective.html +1 -0
- package/typedoc/functions/directive_input_input.badInputChecker.html +1 -0
- package/typedoc/functions/directive_input_input.countDecimals.html +1 -0
- package/typedoc/functions/directive_input_input.createDateInputType.html +1 -0
- package/typedoc/functions/directive_input_input.createDateParser.html +1 -0
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +1 -0
- package/typedoc/functions/directive_input_input.inputDirective.html +2 -0
- package/typedoc/functions/directive_input_input.isNumberInteger.html +1 -0
- package/typedoc/functions/directive_input_input.isValidForStep.html +1 -0
- package/typedoc/functions/directive_input_input.ngValueDirective.html +1 -0
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +1 -0
- package/typedoc/functions/directive_input_input.numberInputType.html +1 -0
- package/typedoc/functions/directive_input_input.rangeInputType.html +1 -0
- package/typedoc/functions/directive_input_input.weekParser.html +1 -0
- package/typedoc/functions/directive_list_list.ngListDirective.html +1 -0
- package/typedoc/functions/directive_messages_messages.ngMessageDefaultDirective.html +2 -0
- package/typedoc/functions/directive_messages_messages.ngMessageDirective.html +2 -0
- package/typedoc/functions/directive_messages_messages.ngMessageExpDirective.html +2 -0
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +2 -0
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +2 -0
- package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -0
- package/typedoc/functions/directive_model_model.ngModelMinErr.html +1 -0
- package/typedoc/functions/directive_model_options_model_options.ngModelOptionsDirective.html +1 -0
- package/typedoc/functions/directive_non_bindable_non_bindable.ngNonBindableDirective.html +1 -0
- package/typedoc/functions/directive_select_select.optionDirective.html +2 -0
- package/typedoc/functions/directive_select_select.selectDirective.html +1 -0
- package/typedoc/functions/directive_show_hide_show_hide.ngHideDirective.html +2 -0
- package/typedoc/functions/directive_show_hide_show_hide.ngShowDirective.html +2 -0
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +1 -0
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +1 -0
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +1 -0
- package/typedoc/functions/filters_filter.filterFilter.html +1 -0
- package/typedoc/functions/filters_filters.formatNumber.html +7 -0
- package/typedoc/functions/filters_filters.jsonFilter.html +1 -0
- package/typedoc/functions/filters_limit_to.limitToFilter.html +1 -0
- package/typedoc/functions/filters_order_by.orderByFilter.html +2 -0
- package/typedoc/functions/public.publishExternalAPI.html +3 -0
- package/typedoc/functions/router.initRouter.html +1 -0
- package/typedoc/functions/router_directives_state_directives._StateRefActiveDirective.html +2 -0
- package/typedoc/functions/router_directives_state_directives._StateRefDirective.html +2 -0
- package/typedoc/functions/router_directives_state_directives._StateRefDynamicDirective.html +2 -0
- package/typedoc/functions/router_directives_view_directive._ViewDirectiveFill.html +2 -0
- package/typedoc/functions/router_hooks_core_resolvables.registerAddCoreResolvables.html +1 -0
- package/typedoc/functions/router_hooks_core_resolvables.treeChangesCleanup.html +1 -0
- package/typedoc/functions/router_hooks_ignored_transition.registerIgnoredTransitionHook.html +1 -0
- package/typedoc/functions/router_hooks_invalid_transition.registerInvalidTransitionHook.html +1 -0
- package/typedoc/functions/router_hooks_lazy_load.lazyLoadState.html +5 -0
- package/typedoc/functions/router_hooks_lazy_load.registerLazyLoadHook.html +31 -0
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnEnterHook.html +1 -0
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnExitHook.html +1 -0
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnRetainHook.html +1 -0
- package/typedoc/functions/router_hooks_redirect_to.registerRedirectToHook.html +1 -0
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +1 -0
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +1 -0
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +1 -0
- package/typedoc/functions/router_hooks_update_globals.registerUpdateGlobalState.html +1 -0
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +1 -0
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +1 -0
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +1 -0
- package/typedoc/functions/router_services.runBlock.html +2 -0
- package/typedoc/functions/router_services.watchDigests.html +2 -0
- package/typedoc/functions/router_state_filters._IncludedByStateFilter.html +7 -0
- package/typedoc/functions/router_state_filters._IsStateFilter.html +7 -0
- package/typedoc/functions/router_state_state_builder.resolvablesBuilder.html +30 -0
- package/typedoc/functions/router_state_state_registry.getLocals.html +1 -0
- package/typedoc/functions/router_state_views.getNg1ViewConfigFactory.html +1 -0
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +6 -0
- package/typedoc/functions/router_transition_hook_registry.makeEvent.html +2 -0
- package/typedoc/functions/router_transition_hook_registry.matchState.html +9 -0
- package/typedoc/functions/services_browser.trimEmptyHash.html +2 -0
- package/typedoc/functions/services_cookie_reader.getCookies.html +2 -0
- package/typedoc/functions/services_http_backend_http_backend.createHttpBackend.html +1 -0
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +1 -0
- package/typedoc/functions/shared_common._removeFrom.html +1 -0
- package/typedoc/functions/shared_common.allTrueR.html +5 -0
- package/typedoc/functions/shared_common.ancestors.html +5 -0
- package/typedoc/functions/shared_common.anyTrueR.html +8 -0
- package/typedoc/functions/shared_common.applyPairs.html +7 -0
- package/typedoc/functions/shared_common.arrayTuples.html +6 -0
- package/typedoc/functions/shared_common.assertFn.html +1 -0
- package/typedoc/functions/shared_common.assertMap.html +5 -0
- package/typedoc/functions/shared_common.assertPredicate.html +5 -0
- package/typedoc/functions/shared_common.copy.html +2 -0
- package/typedoc/functions/shared_common.createProxyFunctions.html +17 -0
- package/typedoc/functions/shared_common.defaults.html +4 -0
- package/typedoc/functions/shared_common.deregAll.html +2 -0
- package/typedoc/functions/shared_common.equals.html +1 -0
- package/typedoc/functions/shared_common.filter.html +2 -0
- package/typedoc/functions/shared_common.find.html +2 -0
- package/typedoc/functions/shared_common.flatten.html +5 -0
- package/typedoc/functions/shared_common.flattenR.html +5 -0
- package/typedoc/functions/shared_common.forEach.html +1 -0
- package/typedoc/functions/shared_common.inherit.html +8 -0
- package/typedoc/functions/shared_common.map.html +2 -0
- package/typedoc/functions/shared_common.mapObj.html +3 -0
- package/typedoc/functions/shared_common.mergeR.html +2 -0
- package/typedoc/functions/shared_common.omit.html +7 -0
- package/typedoc/functions/shared_common.pairs.html +5 -0
- package/typedoc/functions/shared_common.pick.html +7 -0
- package/typedoc/functions/shared_common.pluck.html +2 -0
- package/typedoc/functions/shared_common.pushR.html +3 -0
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +1 -0
- package/typedoc/functions/shared_common.silentRejection.html +1 -0
- package/typedoc/functions/shared_common.tail.html +2 -0
- package/typedoc/functions/shared_common.uniqR.html +2 -0
- package/typedoc/functions/shared_common.unnest.html +5 -0
- package/typedoc/functions/shared_common.unnestR.html +5 -0
- package/typedoc/functions/shared_hof.all.html +4 -0
- package/typedoc/functions/shared_hof.and.html +3 -0
- package/typedoc/functions/shared_hof.any.html +1 -0
- package/typedoc/functions/shared_hof.compose.html +5 -0
- package/typedoc/functions/shared_hof.curry.html +11 -0
- package/typedoc/functions/shared_hof.eq.html +2 -0
- package/typedoc/functions/shared_hof.invoke.html +1 -0
- package/typedoc/functions/shared_hof.is.html +2 -0
- package/typedoc/functions/shared_hof.or.html +3 -0
- package/typedoc/functions/shared_hof.parse.html +7 -0
- package/typedoc/functions/shared_hof.pattern.html +15 -0
- package/typedoc/functions/shared_hof.pipe.html +5 -0
- package/typedoc/functions/shared_hof.prop.html +5 -0
- package/typedoc/functions/shared_hof.val.html +2 -0
- package/typedoc/functions/shared_jqlite_jqlite.buildFragment.html +1 -0
- package/typedoc/functions/shared_jqlite_jqlite.cleanElementData.html +3 -0
- package/typedoc/functions/shared_jqlite_jqlite.dealoc.html +1 -0
- package/typedoc/functions/shared_jqlite_jqlite.getBlockNodes.html +4 -0
- package/typedoc/functions/shared_jqlite_jqlite.getBooleanAttrName.html +1 -0
- package/typedoc/functions/shared_jqlite_jqlite.getOrSetCacheData.html +8 -0
- package/typedoc/functions/shared_jqlite_jqlite.isTextNode.html +3 -0
- package/typedoc/functions/shared_jqlite_jqlite.kebabToCamel.html +3 -0
- package/typedoc/functions/shared_jqlite_jqlite.removeElement.html +1 -0
- package/typedoc/functions/shared_jqlite_jqlite.removeElementData.html +5 -0
- package/typedoc/functions/shared_jqlite_jqlite.snakeToCamel.html +2 -0
- package/typedoc/functions/shared_jqlite_jqlite.startingTag.html +2 -0
- package/typedoc/functions/shared_predicates.isInjectable.html +4 -0
- package/typedoc/functions/shared_predicates.isNull.html +1 -0
- package/typedoc/functions/shared_predicates.isNullOrUndefined.html +1 -0
- package/typedoc/functions/shared_predicates.isPromise.html +3 -0
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +2 -0
- package/typedoc/functions/shared_strings.fnToString.html +1 -0
- package/typedoc/functions/shared_strings.functionToString.html +1 -0
- package/typedoc/functions/shared_strings.joinNeighborsR.html +7 -0
- package/typedoc/functions/shared_strings.kebobString.html +1 -0
- package/typedoc/functions/shared_strings.maxLength.html +6 -0
- package/typedoc/functions/shared_strings.padString.html +6 -0
- package/typedoc/functions/shared_strings.splitEqual.html +1 -0
- package/typedoc/functions/shared_strings.splitHash.html +1 -0
- package/typedoc/functions/shared_strings.splitOnDelim.html +5 -0
- package/typedoc/functions/shared_strings.splitQuery.html +1 -0
- package/typedoc/functions/shared_strings.stringify.html +1 -0
- package/typedoc/functions/shared_strings.stripLastPathElement.html +1 -0
- package/typedoc/functions/shared_strings.trimHashVal.html +1 -0
- package/typedoc/functions/shared_utils.addDateMinutes.html +1 -0
- package/typedoc/functions/shared_utils.arrayRemove.html +7 -0
- package/typedoc/functions/shared_utils.assert.html +2 -0
- package/typedoc/functions/shared_utils.assertArg.html +2 -0
- package/typedoc/functions/shared_utils.assertArgFn.html +1 -0
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +4 -0
- package/typedoc/functions/shared_utils.baseExtend.html +1 -0
- package/typedoc/functions/shared_utils.bind.html +8 -0
- package/typedoc/functions/shared_utils.concat.html +1 -0
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +1 -0
- package/typedoc/functions/shared_utils.csp.html +1 -0
- package/typedoc/functions/shared_utils.directiveNormalize.html +3 -0
- package/typedoc/functions/shared_utils.encodeUriQuery.html +10 -0
- package/typedoc/functions/shared_utils.encodeUriSegment.html +10 -0
- package/typedoc/functions/shared_utils.equals.html +22 -0
- package/typedoc/functions/shared_utils.errorHandlingConfig-1.html +1 -0
- package/typedoc/functions/shared_utils.extend.html +9 -0
- package/typedoc/functions/shared_utils.forEach.html +18 -0
- package/typedoc/functions/shared_utils.forEachSorted.html +1 -0
- package/typedoc/functions/shared_utils.fromJson.html +4 -0
- package/typedoc/functions/shared_utils.getNgAttribute.html +1 -0
- package/typedoc/functions/shared_utils.getNodeName.html +3 -0
- package/typedoc/functions/shared_utils.getter.html +5 -0
- package/typedoc/functions/shared_utils.hasAnimate.html +2 -0
- package/typedoc/functions/shared_utils.hasCustomToString.html +1 -0
- package/typedoc/functions/shared_utils.hashKey.html +9 -0
- package/typedoc/functions/shared_utils.includes.html +1 -0
- package/typedoc/functions/shared_utils.inherit.html +1 -0
- package/typedoc/functions/shared_utils.isArrayBuffer.html +1 -0
- package/typedoc/functions/shared_utils.isArrayLike.html +3 -0
- package/typedoc/functions/shared_utils.isBlankObject.html +3 -0
- package/typedoc/functions/shared_utils.isBlob.html +1 -0
- package/typedoc/functions/shared_utils.isBoolean.html +1 -0
- package/typedoc/functions/shared_utils.isDate.html +1 -0
- package/typedoc/functions/shared_utils.isDefined.html +4 -0
- package/typedoc/functions/shared_utils.isElement.html +1 -0
- package/typedoc/functions/shared_utils.isError.html +5 -0
- package/typedoc/functions/shared_utils.isFile.html +1 -0
- package/typedoc/functions/shared_utils.isFormData.html +1 -0
- package/typedoc/functions/shared_utils.isFunction.html +4 -0
- package/typedoc/functions/shared_utils.isNumber.html +8 -0
- package/typedoc/functions/shared_utils.isNumberNaN.html +1 -0
- package/typedoc/functions/shared_utils.isObject.html +5 -0
- package/typedoc/functions/shared_utils.isPromiseLike.html +1 -0
- package/typedoc/functions/shared_utils.isRegExp.html +4 -0
- package/typedoc/functions/shared_utils.isScope.html +1 -0
- package/typedoc/functions/shared_utils.isString.html +4 -0
- package/typedoc/functions/shared_utils.isTypedArray.html +1 -0
- package/typedoc/functions/shared_utils.isUndefined.html +4 -0
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +1 -0
- package/typedoc/functions/shared_utils.isWindow.html +4 -0
- package/typedoc/functions/shared_utils.lowercase.html +4 -0
- package/typedoc/functions/shared_utils.merge.html +22 -0
- package/typedoc/functions/shared_utils.mergeClasses.html +1 -0
- package/typedoc/functions/shared_utils.minErr.html +19 -0
- package/typedoc/functions/shared_utils.nextUid.html +6 -0
- package/typedoc/functions/shared_utils.parseKeyValue.html +2 -0
- package/typedoc/functions/shared_utils.reverseParams.html +2 -0
- package/typedoc/functions/shared_utils.setHashKey.html +4 -0
- package/typedoc/functions/shared_utils.shallowCopy.html +3 -0
- package/typedoc/functions/shared_utils.simpleCompare.html +1 -0
- package/typedoc/functions/shared_utils.sliceArgs.html +1 -0
- package/typedoc/functions/shared_utils.snakeCase.html +1 -0
- package/typedoc/functions/shared_utils.stringify.html +1 -0
- package/typedoc/functions/shared_utils.timezoneToOffset.html +1 -0
- package/typedoc/functions/shared_utils.toDebugString.html +1 -0
- package/typedoc/functions/shared_utils.toInt.html +1 -0
- package/typedoc/functions/shared_utils.toJson.html +14 -0
- package/typedoc/functions/shared_utils.toKeyValue.html +1 -0
- package/typedoc/functions/shared_utils.trim.html +1 -0
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +3 -0
- package/typedoc/functions/shared_utils.uppercase.html +4 -0
- package/typedoc/functions/shared_utils.valueFn.html +1 -0
- package/typedoc/hierarchy.html +1 -0
- package/typedoc/index.html +87 -0
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +9 -0
- package/typedoc/interfaces/animations_raf_scheduler.RafSchedulerObject.html +3 -0
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +4 -0
- package/typedoc/interfaces/core_compile_attributes.AttributeLike.html +2 -0
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +4 -0
- package/typedoc/interfaces/core_location_location.Html5Mode.html +4 -0
- package/typedoc/interfaces/core_parser_ast.ASTNode.html +46 -0
- package/typedoc/interfaces/core_parser_lexer.LexerOptions.html +5 -0
- package/typedoc/interfaces/core_parser_lexer.Token.html +13 -0
- package/typedoc/interfaces/core_parser_parse.CompiledExpressionProps.html +11 -0
- package/typedoc/interfaces/core_parser_parser.ParsedAST.html +5 -0
- package/typedoc/interfaces/core_q_q.Deferred.html +9 -0
- package/typedoc/interfaces/core_q_q.QPromise.html +12 -0
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +4 -0
- package/typedoc/interfaces/directive_model_options_model_options.ModelOptionsConfig.html +10 -0
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +3 -0
- package/typedoc/interfaces/router_template_factory.BindingTuple.html +3 -0
- package/typedoc/interfaces/services_anchor_scroll.AnchorScrollObject.html +2 -0
- package/typedoc/interfaces/services_log.LogService.html +11 -0
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +8 -0
- package/typedoc/interfaces/types.Annotated.html +2 -0
- package/typedoc/interfaces/types.ChangesObject.html +8 -0
- package/typedoc/interfaces/types.Controller.html +32 -0
- package/typedoc/interfaces/types.Directive.html +35 -0
- package/typedoc/interfaces/types.DirectivePrePost.html +5 -0
- package/typedoc/interfaces/types.FormController.html +39 -0
- package/typedoc/interfaces/types.Module.html +30 -0
- package/typedoc/interfaces/types.NgModelController.html +59 -0
- package/typedoc/interfaces/types.NgModelOptions.html +15 -0
- package/typedoc/interfaces/types.OnChangesObject.html +5 -0
- package/typedoc/interfaces/types.ServiceProviderClass.html +3 -0
- package/typedoc/interfaces/types.TranscludeFunctionObject.html +5 -0
- package/typedoc/media/CONTRIBUTING.md +246 -0
- package/typedoc/media/DEVELOPERS.md +488 -0
- package/typedoc/modules/animations_animate.html +5 -0
- package/typedoc/modules/animations_animate_cache.html +3 -0
- package/typedoc/modules/animations_animate_children_directive.html +2 -0
- package/typedoc/modules/animations_animate_css.html +2 -0
- package/typedoc/modules/animations_animate_css_driver.html +2 -0
- package/typedoc/modules/animations_animate_js.html +2 -0
- package/typedoc/modules/animations_animate_js_driver.html +2 -0
- package/typedoc/modules/animations_animate_queue.html +2 -0
- package/typedoc/modules/animations_animate_runner.html +4 -0
- package/typedoc/modules/animations_animate_swap.html +2 -0
- package/typedoc/modules/animations_animation.html +2 -0
- package/typedoc/modules/animations_raf_scheduler.html +5 -0
- package/typedoc/modules/animations_shared.html +45 -0
- package/typedoc/modules/core_cache_cache.html +4 -0
- package/typedoc/modules/core_compile_attributes.html +3 -0
- package/typedoc/modules/core_compile_compile.html +3 -0
- package/typedoc/modules/core_controller_controller.html +3 -0
- package/typedoc/modules/core_di_injector.html +4 -0
- package/typedoc/modules/core_di_internal_injector.html +3 -0
- package/typedoc/modules/core_di_ng_module.html +8 -0
- package/typedoc/modules/core_exception_handler.html +5 -0
- package/typedoc/modules/core_filter_filter.html +2 -0
- package/typedoc/modules/core_interpolate_interpolate.html +2 -0
- package/typedoc/modules/core_interval_interval.html +3 -0
- package/typedoc/modules/core_interval_interval_factory.html +2 -0
- package/typedoc/modules/core_location_location.html +11 -0
- package/typedoc/modules/core_parser_ast.html +4 -0
- package/typedoc/modules/core_parser_ast_type.html +2 -0
- package/typedoc/modules/core_parser_interpreter.html +6 -0
- package/typedoc/modules/core_parser_lexer.html +4 -0
- package/typedoc/modules/core_parser_parse.html +7 -0
- package/typedoc/modules/core_parser_parser.html +3 -0
- package/typedoc/modules/core_pubsub_pubsub.html +3 -0
- package/typedoc/modules/core_q_q.html +6 -0
- package/typedoc/modules/core_sanitize_sanitize_uri.html +2 -0
- package/typedoc/modules/core_sce_sce.html +6 -0
- package/typedoc/modules/core_scope_scope.html +14 -0
- package/typedoc/modules/core_task_tracker_factory.html +3 -0
- package/typedoc/modules/core_timeout_timeout.html +2 -0
- package/typedoc/modules/core_url_utils_url_utils.html +8 -0
- package/typedoc/modules/directive_aria_aria.html +13 -0
- package/typedoc/modules/directive_attrs_attrs.html +3 -0
- package/typedoc/modules/directive_bind_bind.html +4 -0
- package/typedoc/modules/directive_change_change.html +2 -0
- package/typedoc/modules/directive_class_class.html +4 -0
- package/typedoc/modules/directive_cloak_cloak.html +2 -0
- package/typedoc/modules/directive_controller_controller.html +2 -0
- package/typedoc/modules/directive_events_events.html +3 -0
- package/typedoc/modules/directive_form_form.html +9 -0
- package/typedoc/modules/directive_if_if.html +2 -0
- package/typedoc/modules/directive_include_include.html +3 -0
- package/typedoc/modules/directive_init_init.html +2 -0
- package/typedoc/modules/directive_input_input.html +18 -0
- package/typedoc/modules/directive_list_list.html +2 -0
- package/typedoc/modules/directive_messages_messages.html +6 -0
- package/typedoc/modules/directive_model_model.html +4 -0
- package/typedoc/modules/directive_model_options_model_options.html +4 -0
- package/typedoc/modules/directive_non_bindable_non_bindable.html +2 -0
- package/typedoc/modules/directive_options_options.html +2 -0
- package/typedoc/modules/directive_ref_ref.html +2 -0
- package/typedoc/modules/directive_repeat_repeat.html +2 -0
- package/typedoc/modules/directive_script_script.html +2 -0
- package/typedoc/modules/directive_select_select.html +3 -0
- package/typedoc/modules/directive_show_hide_show_hide.html +3 -0
- package/typedoc/modules/directive_style_style.html +2 -0
- package/typedoc/modules/directive_switch_switch.html +4 -0
- package/typedoc/modules/directive_transclude_transclude.html +2 -0
- package/typedoc/modules/directive_validators_validators.html +5 -0
- package/typedoc/modules/filters_filter.html +2 -0
- package/typedoc/modules/filters_filters.html +3 -0
- package/typedoc/modules/filters_limit_to.html +2 -0
- package/typedoc/modules/filters_order_by.html +2 -0
- package/typedoc/modules/index.html +2 -0
- package/typedoc/modules/loader.html +3 -0
- package/typedoc/modules/public.html +3 -0
- package/typedoc/modules/router.html +2 -0
- package/typedoc/modules/router_common_coreservices.html +2 -0
- package/typedoc/modules/router_common_glob.html +103 -0
- package/typedoc/modules/router_common_queue.html +2 -0
- package/typedoc/modules/router_common_trace.html +20 -0
- package/typedoc/modules/router_directives_state_directives.html +4 -0
- package/typedoc/modules/router_directives_view_directive.html +3 -0
- package/typedoc/modules/router_globals.html +2 -0
- package/typedoc/modules/router_hooks_core_resolvables.html +3 -0
- package/typedoc/modules/router_hooks_ignored_transition.html +2 -0
- package/typedoc/modules/router_hooks_invalid_transition.html +2 -0
- package/typedoc/modules/router_hooks_lazy_load.html +3 -0
- package/typedoc/modules/router_hooks_on_enter_exit_retain.html +4 -0
- package/typedoc/modules/router_hooks_redirect_to.html +2 -0
- package/typedoc/modules/router_hooks_resolve.html +5 -0
- package/typedoc/modules/router_hooks_update_globals.html +2 -0
- package/typedoc/modules/router_hooks_url.html +2 -0
- package/typedoc/modules/router_hooks_views.html +3 -0
- package/typedoc/modules/router_params_param.html +3 -0
- package/typedoc/modules/router_params_param_factory.html +2 -0
- package/typedoc/modules/router_params_param_type.html +2 -0
- package/typedoc/modules/router_params_param_types.html +2 -0
- package/typedoc/modules/router_params_state_params.html +2 -0
- package/typedoc/modules/router_path_path_node.html +2 -0
- package/typedoc/modules/router_path_path_utils.html +2 -0
- package/typedoc/modules/router_resolve_resolvable.html +3 -0
- package/typedoc/modules/router_resolve_resolve_context.html +4 -0
- package/typedoc/modules/router_services.html +3 -0
- package/typedoc/modules/router_state_filters.html +3 -0
- package/typedoc/modules/router_state_state_builder.html +3 -0
- package/typedoc/modules/router_state_state_matcher.html +2 -0
- package/typedoc/modules/router_state_state_object.html +2 -0
- package/typedoc/modules/router_state_state_queue_manager.html +2 -0
- package/typedoc/modules/router_state_state_registry.html +3 -0
- package/typedoc/modules/router_state_state_service.html +2 -0
- package/typedoc/modules/router_state_target_state.html +2 -0
- package/typedoc/modules/router_state_views.html +4 -0
- package/typedoc/modules/router_template_factory.html +3 -0
- package/typedoc/modules/router_transition_hook_builder.html +2 -0
- package/typedoc/modules/router_transition_hook_registry.html +4 -0
- package/typedoc/modules/router_transition_interface.html +3 -0
- package/typedoc/modules/router_transition_reject_factory.html +3 -0
- package/typedoc/modules/router_transition_transition.html +2 -0
- package/typedoc/modules/router_transition_transition_event_type.html +2 -0
- package/typedoc/modules/router_transition_transition_hook.html +2 -0
- package/typedoc/modules/router_transition_transition_service.html +3 -0
- package/typedoc/modules/router_url_url_config.html +2 -0
- package/typedoc/modules/router_url_url_matcher.html +2 -0
- package/typedoc/modules/router_url_url_rule.html +3 -0
- package/typedoc/modules/router_url_url_rules.html +2 -0
- package/typedoc/modules/router_url_url_service.html +2 -0
- package/typedoc/modules/router_view_scroll.html +2 -0
- package/typedoc/modules/router_view_view.html +2 -0
- package/typedoc/modules/services_anchor_scroll.html +5 -0
- package/typedoc/modules/services_browser.html +5 -0
- package/typedoc/modules/services_cache_factory.html +3 -0
- package/typedoc/modules/services_cookie_reader.html +2 -0
- package/typedoc/modules/services_http_backend_http_backend.html +3 -0
- package/typedoc/modules/services_http_http.html +5 -0
- package/typedoc/modules/services_log.html +6 -0
- package/typedoc/modules/services_template_request.html +2 -0
- package/typedoc/modules/shared_common.html +37 -0
- package/typedoc/modules/shared_constants.html +12 -0
- package/typedoc/modules/shared_hof.html +18 -0
- package/typedoc/modules/shared_jqlite_jqlite.html +15 -0
- package/typedoc/modules/shared_predicates.html +5 -0
- package/typedoc/modules/shared_strings.html +18 -0
- package/typedoc/modules/shared_utils.html +76 -0
- package/typedoc/modules/types.html +37 -0
- package/typedoc/types/animations_animate.AnimationMethod.html +1 -0
- package/typedoc/types/animations_raf_scheduler.RafScheduler.html +1 -0
- package/typedoc/types/animations_raf_scheduler.RafSchedulerFunction.html +1 -0
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +1 -0
- package/typedoc/types/core_exception_handler.ErrorHandler.html +3 -0
- package/typedoc/types/core_exception_handler.ExceptionHandlerProvider.html +1 -0
- package/typedoc/types/core_interval_interval.IntervalId.html +2 -0
- package/typedoc/types/core_parser_interpreter.DecoratedASTNode.html +1 -0
- package/typedoc/types/core_parser_parse.CompiledExpression.html +1 -0
- package/typedoc/types/core_parser_parse.CompiledExpressionFunction.html +1 -0
- package/typedoc/types/core_parser_parse.ParseService.html +1 -0
- package/typedoc/types/core_scope_scope.TTL.html +2 -0
- package/typedoc/types/core_scope_scope.WatchExpression.html +1 -0
- package/typedoc/types/core_scope_scope.WatchListener.html +2 -0
- package/typedoc/types/core_url_utils_url_utils.HttpProtocol.html +1 -0
- package/typedoc/types/services_anchor_scroll.AnchorScrollFunction.html +1 -0
- package/typedoc/types/services_anchor_scroll.AnchorScrollService.html +1 -0
- package/typedoc/types/services_browser.UrlChangeListener.html +1 -0
- package/typedoc/types/services_log.LogCall.html +1 -0
- package/typedoc/types/types.AnnotatedFunction.html +1 -0
- package/typedoc/types/types.AsyncModelValidators.html +1 -0
- package/typedoc/types/types.Attributes.html +1 -0
- package/typedoc/types/types.BootstrapConfig.html +1 -0
- package/typedoc/types/types.CloneAttachFunction.html +2 -0
- package/typedoc/types/types.ComponentOptions.html +1 -0
- package/typedoc/types/types.ControllerConstructor.html +1 -0
- package/typedoc/types/types.DirectiveCompileFn.html +3 -0
- package/typedoc/types/types.DirectiveController.html +1 -0
- package/typedoc/types/types.DirectiveFactory.html +1 -0
- package/typedoc/types/types.DirectiveLinkFn.html +1 -0
- package/typedoc/types/types.FilterFactory.html +1 -0
- package/typedoc/types/types.FilterFunction.html +1 -0
- package/typedoc/types/types.Injectable.html +1 -0
- package/typedoc/types/types.ModelValidators.html +1 -0
- package/typedoc/types/types.ServiceProviderFactory.html +1 -0
- package/typedoc/types/types.TAttributes.html +1 -0
- package/typedoc/types/types.TController.html +1 -0
- package/typedoc/types/types.TElement.html +1 -0
- package/typedoc/types/types.TScope.html +1 -0
- package/typedoc/types/types.TranscludeFunction.html +1 -0
- package/typedoc/types/types.transcludeWithScope.html +1 -0
- package/typedoc/types/types.transcludeWithoutScope.html +1 -0
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +1 -0
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +1 -0
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +1 -0
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +1 -0
- package/typedoc/variables/animations_shared.DELAY_KEY.html +1 -0
- package/typedoc/variables/animations_shared.DURATION_KEY.html +1 -0
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +1 -0
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +1 -0
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +1 -0
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +1 -0
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +1 -0
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +1 -0
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +1 -0
- package/typedoc/variables/animations_shared.TIMING_KEY.html +1 -0
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +1 -0
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +1 -0
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +1 -0
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +1 -0
- package/typedoc/variables/core_cache_cache.CACHE.html +5 -0
- package/typedoc/variables/core_cache_cache.EXPANDO.html +1 -0
- package/typedoc/variables/core_di_injector.path.html +1 -0
- package/typedoc/variables/core_di_ng_module.ANIMATION_LITERAL.html +1 -0
- package/typedoc/variables/core_di_ng_module.COMPILE_LITERAL.html +1 -0
- package/typedoc/variables/core_di_ng_module.CONTROLLER_LITERAL.html +1 -0
- package/typedoc/variables/core_di_ng_module.FILTER_LITERAL.html +1 -0
- package/typedoc/variables/core_di_ng_module.INJECTOR_LITERAL.html +1 -0
- package/typedoc/variables/core_di_ng_module.PROVIDE_LITERAL.html +1 -0
- package/typedoc/variables/core_parser_ast.literals.html +1 -0
- package/typedoc/variables/core_parser_interpreter.PURITY_ABSOLUTE.html +1 -0
- package/typedoc/variables/core_parser_interpreter.PURITY_RELATIVE.html +1 -0
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +1 -0
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +1 -0
- package/typedoc/variables/core_scope_scope.TTL-1.html +4 -0
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +1 -0
- package/typedoc/variables/core_scope_scope.__asyncQueue.html +1 -0
- package/typedoc/variables/core_scope_scope.__postDigestQueue.html +1 -0
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +1 -0
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +1 -0
- package/typedoc/variables/directive_bind_bind.ngBindHtmlDirective.html +2 -0
- package/typedoc/variables/directive_class_class.ngClassDirective.html +58 -0
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +27 -0
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +27 -0
- package/typedoc/variables/directive_controller_controller.ngControllerDirective.html +1 -0
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +1 -0
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +1 -0
- package/typedoc/variables/directive_form_form.formDirective.html +1 -0
- package/typedoc/variables/directive_form_form.ngFormDirective.html +1 -0
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +1 -0
- package/typedoc/variables/directive_include_include.ngIncludeDirective.html +1 -0
- package/typedoc/variables/directive_include_include.ngIncludeFillContentDirective.html +1 -0
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +1 -0
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +1 -0
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +1 -0
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +1 -0
- package/typedoc/variables/directive_model_options_model_options.defaultModelOptions.html +1 -0
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +1 -0
- package/typedoc/variables/directive_ref_ref.ngRefDirective.html +1 -0
- package/typedoc/variables/directive_repeat_repeat.ngRepeatDirective.html +1 -0
- package/typedoc/variables/directive_script_script.scriptDirective.html +1 -0
- package/typedoc/variables/directive_switch_switch.ngSwitchDirective.html +1 -0
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +1 -0
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +22 -0
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +22 -0
- package/typedoc/variables/directive_validators_validators.patternDirective.html +36 -0
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +16 -0
- package/typedoc/variables/index.angular.html +1 -0
- package/typedoc/variables/public.VERSION.html +1 -0
- package/typedoc/variables/router_common_coreservices.services.html +1 -0
- package/typedoc/variables/router_common_trace.Category.html +7 -0
- package/typedoc/variables/router_common_trace.trace-1.html +5 -0
- package/typedoc/variables/router_directives_view_directive.ngView.html +59 -0
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +1 -0
- package/typedoc/variables/router_params_param.DefType.html +1 -0
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +1 -0
- package/typedoc/variables/router_resolve_resolve_context.NATIVE_INJECTOR_TOKEN.html +1 -0
- package/typedoc/variables/router_resolve_resolve_context.resolvePolicies.html +1 -0
- package/typedoc/variables/router_transition_interface.TransitionHookPhase.html +2 -0
- package/typedoc/variables/router_transition_interface.TransitionHookScope.html +2 -0
- package/typedoc/variables/router_transition_transition_service.defaultTransOpts.html +5 -0
- package/typedoc/variables/services_log.LogService-1.html +1 -0
- package/typedoc/variables/shared_common.pushTo.html +2 -0
- package/typedoc/variables/shared_common.removeFrom.html +3 -0
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +1 -0
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +1 -0
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +1 -0
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +1 -0
- package/typedoc/variables/shared_constants.VALID_CLASS.html +1 -0
- package/typedoc/variables/shared_hof.propEq.html +6 -0
- package/typedoc/variables/shared_jqlite_jqlite.BOOLEAN_ATTR.html +1 -0
- package/typedoc/variables/shared_strings.hostRegex.html +1 -0
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +1 -0
- package/typedoc.json +6 -0
- package/types/animations/animate.d.ts +1 -17
- package/types/core/compile/attributes.d.ts +0 -20
- package/types/core/compile/compile.d.ts +0 -5
- package/types/core/controller/controller.d.ts +0 -4
- package/types/core/exception-handler.d.ts +1 -1
- package/types/core/interpolate/interpolate.d.ts +0 -6
- package/types/core/q/q.d.ts +0 -5
- package/types/core/sce/sce.d.ts +0 -265
- package/types/core/scope/scope.d.ts +1 -75
- package/types/core/task-tracker-factory.d.ts +3 -3
- package/types/core/url-utils/url-utils.d.ts +1 -47
- package/types/directive/aria/aria.d.ts +0 -6
- package/types/directive/class/class.d.ts +0 -16
- package/types/directive/form/form.d.ts +0 -24
- package/types/directive/model/model.d.ts +5 -49
- package/types/directive/script/script.d.ts +0 -15
- package/types/directive/validators/validators.d.ts +0 -15
- package/types/router/params/param-type.d.ts +1 -7
- package/types/services/browser.d.ts +0 -8
- package/types/services/cache-factory.d.ts +0 -8
- package/types/services/http/http.d.ts +0 -13
- package/types/services/http-backend/http-backend.d.ts +0 -4
- package/types/services/log.d.ts +29 -36
- package/types/shared/common.d.ts +2 -5
- package/types/shared/predicates.d.ts +5 -3
- package/types/types.d.ts +130 -3
package/src/core/sce/sce.js
CHANGED
|
@@ -83,12 +83,6 @@ export function adjustMatcher(matcher) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* @ngdoc service
|
|
87
|
-
* @name $sceDelegate
|
|
88
|
-
* @kind function
|
|
89
|
-
*
|
|
90
|
-
* @description
|
|
91
|
-
*
|
|
92
86
|
* `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict
|
|
93
87
|
* Contextual Escaping (SCE)} services to AngularJS.
|
|
94
88
|
*
|
|
@@ -120,11 +114,6 @@ export function adjustMatcher(matcher) {
|
|
|
120
114
|
*/
|
|
121
115
|
|
|
122
116
|
/**
|
|
123
|
-
* @ngdoc provider
|
|
124
|
-
* @name $sceDelegateProvider
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* @description
|
|
128
117
|
*
|
|
129
118
|
* The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate
|
|
130
119
|
* $sceDelegate service}, used as a delegate for {@link ng.$sce Strict Contextual Escaping (SCE)}.
|
|
@@ -181,9 +170,6 @@ export function $SceDelegateProvider() {
|
|
|
181
170
|
let bannedResourceUrlList = [];
|
|
182
171
|
|
|
183
172
|
/**
|
|
184
|
-
* @ngdoc method
|
|
185
|
-
* @name $sceDelegateProvider#trustedResourceUrlList
|
|
186
|
-
* @kind function
|
|
187
173
|
*
|
|
188
174
|
* @param {Array=} trustedResourceUrlList When provided, replaces the trustedResourceUrlList with
|
|
189
175
|
* the value provided. This must be an array or null. A snapshot of this array is used so
|
|
@@ -212,9 +198,6 @@ export function $SceDelegateProvider() {
|
|
|
212
198
|
};
|
|
213
199
|
|
|
214
200
|
/**
|
|
215
|
-
* @ngdoc method
|
|
216
|
-
* @name $sceDelegateProvider#bannedResourceUrlList
|
|
217
|
-
* @kind function
|
|
218
201
|
*
|
|
219
202
|
* @param {Array=} bannedResourceUrlList When provided, replaces the `bannedResourceUrlList` with
|
|
220
203
|
* the value provided. This must be an array or null. A snapshot of this array is used so
|
|
@@ -333,10 +316,6 @@ export function $SceDelegateProvider() {
|
|
|
333
316
|
);
|
|
334
317
|
|
|
335
318
|
/**
|
|
336
|
-
* @ngdoc method
|
|
337
|
-
* @name $sceDelegate#trustAs
|
|
338
|
-
*
|
|
339
|
-
* @description
|
|
340
319
|
* Returns a trusted representation of the parameter for the specified context. This trusted
|
|
341
320
|
* object will later on be used as-is, without any security check, by bindings or directives
|
|
342
321
|
* that require this security context.
|
|
@@ -388,10 +367,6 @@ export function $SceDelegateProvider() {
|
|
|
388
367
|
}
|
|
389
368
|
|
|
390
369
|
/**
|
|
391
|
-
* @ngdoc method
|
|
392
|
-
* @name $sceDelegate#valueOf
|
|
393
|
-
*
|
|
394
|
-
* @description
|
|
395
370
|
* If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs
|
|
396
371
|
* `$sceDelegate.trustAs`}, returns the value that had been passed to {@link
|
|
397
372
|
* ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.
|
|
@@ -413,9 +388,6 @@ export function $SceDelegateProvider() {
|
|
|
413
388
|
}
|
|
414
389
|
|
|
415
390
|
/**
|
|
416
|
-
* @ngdoc method
|
|
417
|
-
* @name $sceDelegate#getTrusted
|
|
418
|
-
*
|
|
419
391
|
* @description
|
|
420
392
|
* Given an object and a security context in which to assign it, returns a value that's safe to
|
|
421
393
|
* use in this context, which was represented by the parameter. To do so, this function either
|
|
@@ -501,260 +473,10 @@ export function $SceDelegateProvider() {
|
|
|
501
473
|
];
|
|
502
474
|
}
|
|
503
475
|
|
|
504
|
-
/**
|
|
505
|
-
* @ngdoc provider
|
|
506
|
-
* @name $sceProvider
|
|
507
|
-
*
|
|
508
|
-
*
|
|
509
|
-
* @description
|
|
510
|
-
*
|
|
511
|
-
* The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.
|
|
512
|
-
* - enable/disable Strict Contextual Escaping (SCE) in a module
|
|
513
|
-
* - override the default implementation with a custom delegate
|
|
514
|
-
*
|
|
515
|
-
* Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.
|
|
516
|
-
*/
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* @ngdoc service
|
|
520
|
-
* @name $sce
|
|
521
|
-
* @kind function
|
|
522
|
-
*
|
|
523
|
-
* @description
|
|
524
|
-
*
|
|
525
|
-
* `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.
|
|
526
|
-
*
|
|
527
|
-
* ## Strict Contextual Escaping
|
|
528
|
-
*
|
|
529
|
-
* Strict Contextual Escaping (SCE) is a mode in which AngularJS constrains bindings to only render
|
|
530
|
-
* trusted values. Its goal is to assist in writing code in a way that (a) is secure by default, and
|
|
531
|
-
* (b) makes auditing for security vulnerabilities such as XSS, clickjacking, etc. a lot easier.
|
|
532
|
-
*
|
|
533
|
-
* ### Overview
|
|
534
|
-
*
|
|
535
|
-
* To systematically block XSS security bugs, AngularJS treats all values as untrusted by default in
|
|
536
|
-
* HTML or sensitive URL bindings. When binding untrusted values, AngularJS will automatically
|
|
537
|
-
* run security checks on them (sanitizations, trusted URL resource, depending on context), or throw
|
|
538
|
-
* when it cannot guarantee the security of the result. That behavior depends strongly on contexts:
|
|
539
|
-
* HTML can be sanitized, but template URLs cannot, for instance.
|
|
540
|
-
*
|
|
541
|
-
* To illustrate this, consider the `ng-bind-html` directive. It renders its value directly as HTML:
|
|
542
|
-
* we call that the *context*. When given an untrusted input, AngularJS will attempt to sanitize it
|
|
543
|
-
* before rendering if a sanitizer is available, and throw otherwise. To bypass sanitization and
|
|
544
|
-
* render the input as-is, you will need to mark it as trusted for that context before attempting
|
|
545
|
-
* to bind it.
|
|
546
|
-
*
|
|
547
|
-
* As of version 1.2, AngularJS ships with SCE enabled by default.
|
|
548
|
-
*
|
|
549
|
-
* ### In practice
|
|
550
|
-
*
|
|
551
|
-
* Here's an example of a binding in a privileged context:
|
|
552
|
-
*
|
|
553
|
-
* ```
|
|
554
|
-
* <input ng-model="userHtml" aria-label="User input">
|
|
555
|
-
* <div ng-bind-html="userHtml"></div>
|
|
556
|
-
* ```
|
|
557
|
-
*
|
|
558
|
-
* Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
|
|
559
|
-
* disabled, this application allows the user to render arbitrary HTML into the DIV, which would
|
|
560
|
-
* be an XSS security bug. In a more realistic example, one may be rendering user comments, blog
|
|
561
|
-
* articles, etc. via bindings. (HTML is just one example of a context where rendering user
|
|
562
|
-
* controlled input creates security vulnerabilities.)
|
|
563
|
-
*
|
|
564
|
-
* For the case of HTML, you might use a library, either on the client side, or on the server side,
|
|
565
|
-
* to sanitize unsafe HTML before binding to the value and rendering it in the document.
|
|
566
|
-
*
|
|
567
|
-
* How would you ensure that every place that used these types of bindings was bound to a value that
|
|
568
|
-
* was sanitized by your library (or returned as safe for rendering by your server?) How can you
|
|
569
|
-
* ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
|
|
570
|
-
* properties/fields and forgot to update the binding to the sanitized value?
|
|
571
|
-
*
|
|
572
|
-
* To be secure by default, AngularJS makes sure bindings go through that sanitization, or
|
|
573
|
-
* any similar validation process, unless there's a good reason to trust the given value in this
|
|
574
|
-
* context. That trust is formalized with a function call. This means that as a developer, you
|
|
575
|
-
* can assume all untrusted bindings are safe. Then, to audit your code for binding security issues,
|
|
576
|
-
* you just need to ensure the values you mark as trusted indeed are safe - because they were
|
|
577
|
-
* received from your server, sanitized by your library, etc. You can organize your codebase to
|
|
578
|
-
* help with this - perhaps allowing only the files in a specific directory to do this.
|
|
579
|
-
* Ensuring that the internal API exposed by that code doesn't markup arbitrary values as safe then
|
|
580
|
-
* becomes a more manageable task.
|
|
581
|
-
*
|
|
582
|
-
* In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}
|
|
583
|
-
* (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to
|
|
584
|
-
* build the trusted versions of your values.
|
|
585
|
-
*
|
|
586
|
-
* ### How does it work?
|
|
587
|
-
*
|
|
588
|
-
* In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted
|
|
589
|
-
* $sce.getTrusted(context, value)} rather than to the value directly. Think of this function as
|
|
590
|
-
* a way to enforce the required security context in your data sink. Directives use {@link
|
|
591
|
-
* ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs
|
|
592
|
-
* the {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals. Also,
|
|
593
|
-
* when binding without directives, AngularJS will understand the context of your bindings
|
|
594
|
-
* automatically.
|
|
595
|
-
*
|
|
596
|
-
* As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link
|
|
597
|
-
* ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly
|
|
598
|
-
* simplified):
|
|
599
|
-
*
|
|
600
|
-
* ```
|
|
601
|
-
* let ngBindHtmlDirective = ['$sce', function($sce) {
|
|
602
|
-
* return function(scope, element, attr) {
|
|
603
|
-
* scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {
|
|
604
|
-
* element.html(value || '');
|
|
605
|
-
* });
|
|
606
|
-
* };
|
|
607
|
-
* }];
|
|
608
|
-
* ```
|
|
609
|
-
*
|
|
610
|
-
* ### Impact on loading templates
|
|
611
|
-
*
|
|
612
|
-
* This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as
|
|
613
|
-
* `templateUrl`'s specified by {@link guide/directive directives}.
|
|
614
|
-
*
|
|
615
|
-
* By default, AngularJS only loads templates from the same domain and protocol as the application
|
|
616
|
-
* document. This is done by calling {@link ng.$sce#getTrustedResourceUrl
|
|
617
|
-
* $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or
|
|
618
|
-
* protocols, you may either add them to the {@link ng.$sceDelegateProvider#trustedResourceUrlList
|
|
619
|
-
* trustedResourceUrlList} or {@link ng.$sce#trustAsResourceUrl wrap them} into trusted values.
|
|
620
|
-
*
|
|
621
|
-
* *Please note*:
|
|
622
|
-
* The browser's
|
|
623
|
-
* [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
|
|
624
|
-
* and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
|
|
625
|
-
* policy apply in addition to this and may further restrict whether the template is successfully
|
|
626
|
-
* loaded. This means that without the right CORS policy, loading templates from a different domain
|
|
627
|
-
* won't work on all browsers. Also, loading templates from `file://` URL does not work on some
|
|
628
|
-
* browsers.
|
|
629
|
-
*
|
|
630
|
-
* ### This feels like too much overhead
|
|
631
|
-
*
|
|
632
|
-
* It's important to remember that SCE only applies to interpolation expressions.
|
|
633
|
-
*
|
|
634
|
-
* If your expressions are constant literals, they're automatically trusted and you don't need to
|
|
635
|
-
* call `$sce.trustAs` on them (e.g.
|
|
636
|
-
* `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works (remember to include the
|
|
637
|
-
* `ngSanitize` module). The `$sceDelegate` will also use the `$sanitize` service if it is available
|
|
638
|
-
* when binding untrusted values to `$sce.HTML` context.
|
|
639
|
-
* AngularJS provides an implementation in `angular-sanitize.js`, and if you
|
|
640
|
-
* wish to use it, you will also need to depend on the {@link ngSanitize `ngSanitize`} module in
|
|
641
|
-
* your application.
|
|
642
|
-
*
|
|
643
|
-
* The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load
|
|
644
|
-
* templates in `ng-include` from your application's domain without having to even know about SCE.
|
|
645
|
-
* It blocks loading templates from other domains or loading templates over http from an https
|
|
646
|
-
* served document. You can change these by setting your own custom {@link
|
|
647
|
-
* ng.$sceDelegateProvider#trustedResourceUrlList trusted resource URL list} and {@link
|
|
648
|
-
* ng.$sceDelegateProvider#bannedResourceUrlList banned resource URL list} for matching such URLs.
|
|
649
|
-
*
|
|
650
|
-
* This significantly reduces the overhead. It is far easier to pay the small overhead and have an
|
|
651
|
-
* application that's secure and can be audited to verify that with much more ease than bolting
|
|
652
|
-
* security onto an application later.
|
|
653
|
-
*
|
|
654
|
-
* <a name="contexts"></a>
|
|
655
|
-
* ### What trusted context types are supported?
|
|
656
|
-
*
|
|
657
|
-
* | Context | Notes |
|
|
658
|
-
* |---------------------|----------------|
|
|
659
|
-
* | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |
|
|
660
|
-
* | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. |
|
|
661
|
-
* | `$sce.MEDIA_URL` | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. |
|
|
662
|
-
* | `$sce.URL` | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.|
|
|
663
|
-
* | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application. Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.) <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required. <br><br> The {@link $sceDelegateProvider#trustedResourceUrlList $sceDelegateProvider#trustedResourceUrlList()} and {@link $sceDelegateProvider#bannedResourceUrlList $sceDelegateProvider#bannedResourceUrlList()} can be used to restrict trusted origins for `RESOURCE_URL` |
|
|
664
|
-
* | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. |
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
* <div class="alert alert-warning">
|
|
668
|
-
* Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their
|
|
669
|
-
* interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}.
|
|
670
|
-
*
|
|
671
|
-
* **As of 1.7.0, this is no longer the case.**
|
|
672
|
-
*
|
|
673
|
-
* Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL`
|
|
674
|
-
* (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate`
|
|
675
|
-
* service evaluates the expressions.
|
|
676
|
-
* </div>
|
|
677
|
-
*
|
|
678
|
-
* There are no CSS or JS context bindings in AngularJS currently, so their corresponding `$sce.trustAs`
|
|
679
|
-
* functions aren't useful yet. This might evolve.
|
|
680
|
-
*
|
|
681
|
-
* ### Format of items in {@link ng.$sceDelegateProvider#trustedResourceUrlList trustedResourceUrlList}/{@link ng.$sceDelegateProvider#bannedResourceUrlList bannedResourceUrlList} <a name="resourceUrlPatternItem"></a>
|
|
682
|
-
*
|
|
683
|
-
* Each element in these arrays must be one of the following:
|
|
684
|
-
*
|
|
685
|
-
* - **'self'**
|
|
686
|
-
* - The special **string**, `'self'`, can be used to match against all URLs of the **same
|
|
687
|
-
* domain** as the application document using the **same protocol**.
|
|
688
|
-
* - **String** (except the special value `'self'`)
|
|
689
|
-
* - The string is matched against the full *normalized / absolute URL* of the resource
|
|
690
|
-
* being tested (substring matches are not good enough.)
|
|
691
|
-
* - There are exactly **two wildcard sequences** - `*` and `**`. All other characters
|
|
692
|
-
* match themselves.
|
|
693
|
-
* - `*`: matches zero or more occurrences of any character other than one of the following 6
|
|
694
|
-
* characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use
|
|
695
|
-
* for matching resource URL lists.
|
|
696
|
-
* - `**`: matches zero or more occurrences of *any* character. As such, it's not
|
|
697
|
-
* appropriate for use in a scheme, domain, etc. as it would match too much. (e.g.
|
|
698
|
-
* http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
|
|
699
|
-
* not have been the intention.) Its usage at the very end of the path is ok. (e.g.
|
|
700
|
-
* http://foo.example.com/templates/**).
|
|
701
|
-
* - **RegExp** (*see caveat below*)
|
|
702
|
-
* - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax
|
|
703
|
-
* (and all the inevitable escaping) makes them *harder to maintain*. It's easy to
|
|
704
|
-
* accidentally introduce a bug when one updates a complex expression (imho, all regexes should
|
|
705
|
-
* have good test coverage). For instance, the use of `.` in the regex is correct only in a
|
|
706
|
-
* small number of cases. A `.` character in the regex used when matching the scheme or a
|
|
707
|
-
* subdomain could be matched against a `:` or literal `.` that was likely not intended. It
|
|
708
|
-
* is highly recommended to use the string patterns and only fall back to regular expressions
|
|
709
|
-
* as a last resort.
|
|
710
|
-
* - The regular expression must be an instance of RegExp (i.e. not a string.) It is
|
|
711
|
-
* matched against the **entire** *normalized / absolute URL* of the resource being tested
|
|
712
|
-
* (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags
|
|
713
|
-
* present on the RegExp (such as multiline, global, ignoreCase) are ignored.
|
|
714
|
-
* - If you are generating your JavaScript from some other templating engine (not
|
|
715
|
-
* recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
|
|
716
|
-
* remember to escape your regular expression (and be aware that you might need more than
|
|
717
|
-
* one level of escaping depending on your templating engine and the way you interpolated
|
|
718
|
-
* the value.) Do make use of your platform's escaping mechanism as it might be good
|
|
719
|
-
* enough before coding your own. E.g. Ruby has
|
|
720
|
-
* [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)
|
|
721
|
-
* and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).
|
|
722
|
-
* Javascript lacks a similar built in function for escaping. Take a look at Google
|
|
723
|
-
* Closure library's [goog.string.regExpEscape(s)](
|
|
724
|
-
* http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).
|
|
725
|
-
*
|
|
726
|
-
* Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
* ## Can I disable SCE completely?
|
|
730
|
-
*
|
|
731
|
-
* Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits
|
|
732
|
-
* for little coding overhead. It will be much harder to take an SCE disabled application and
|
|
733
|
-
* either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE
|
|
734
|
-
* for cases where you have a lot of existing code that was written before SCE was introduced and
|
|
735
|
-
* you're migrating them a module at a time. Also do note that this is an app-wide setting, so if
|
|
736
|
-
* you are writing a library, you will cause security bugs applications using it.
|
|
737
|
-
*
|
|
738
|
-
* That said, here's how you can completely disable SCE:
|
|
739
|
-
*
|
|
740
|
-
* ```
|
|
741
|
-
* angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
|
|
742
|
-
* // Completely disable SCE. For demonstration purposes only!
|
|
743
|
-
* // Do not use in new projects or libraries.
|
|
744
|
-
* $sceProvider.enabled(false);
|
|
745
|
-
* });
|
|
746
|
-
* ```
|
|
747
|
-
*
|
|
748
|
-
*/
|
|
749
|
-
|
|
750
476
|
export function $SceProvider() {
|
|
751
477
|
let enabled = true;
|
|
752
478
|
|
|
753
479
|
/**
|
|
754
|
-
* @ngdoc method
|
|
755
|
-
* @name $sceProvider#enabled
|
|
756
|
-
* @kind function
|
|
757
|
-
*
|
|
758
480
|
* @param {boolean=} value If provided, then enables/disables SCE application-wide.
|
|
759
481
|
* @return {boolean} True if SCE is enabled, false otherwise.
|
|
760
482
|
*
|
|
@@ -768,52 +490,6 @@ export function $SceProvider() {
|
|
|
768
490
|
return enabled;
|
|
769
491
|
};
|
|
770
492
|
|
|
771
|
-
/* Design notes on the default implementation for SCE.
|
|
772
|
-
*
|
|
773
|
-
* The API contract for the SCE delegate
|
|
774
|
-
* -------------------------------------
|
|
775
|
-
* The SCE delegate object must provide the following 3 methods:
|
|
776
|
-
*
|
|
777
|
-
* - trustAs(contextEnum, value)
|
|
778
|
-
* This method is used to tell the SCE service that the provided value is OK to use in the
|
|
779
|
-
* contexts specified by contextEnum. It must return an object that will be accepted by
|
|
780
|
-
* getTrusted() for a compatible contextEnum and return this value.
|
|
781
|
-
*
|
|
782
|
-
* - valueOf(value)
|
|
783
|
-
* For values that were not produced by trustAs(), return them as is. For values that were
|
|
784
|
-
* produced by trustAs(), return the corresponding input value to trustAs. Basically, if
|
|
785
|
-
* trustAs is wrapping the given values into some type, this operation unwraps it when given
|
|
786
|
-
* such a value.
|
|
787
|
-
*
|
|
788
|
-
* - getTrusted(contextEnum, value)
|
|
789
|
-
* This function should return the value that is safe to use in the context specified by
|
|
790
|
-
* contextEnum or throw and exception otherwise.
|
|
791
|
-
*
|
|
792
|
-
* NOTE: This contract deliberately does NOT state that values returned by trustAs() must be
|
|
793
|
-
* opaque or wrapped in some holder object. That happens to be an implementation detail. For
|
|
794
|
-
* instance, an implementation could maintain a registry of all trusted objects by context. In
|
|
795
|
-
* such a case, trustAs() would return the same object that was passed in. getTrusted() would
|
|
796
|
-
* return the same object passed in if it was found in the registry under a compatible context or
|
|
797
|
-
* throw an exception otherwise. An implementation might only wrap values some of the time based
|
|
798
|
-
* on some criteria. getTrusted() might return a value and not throw an exception for special
|
|
799
|
-
* constants or objects even if not wrapped. All such implementations fulfill this contract.
|
|
800
|
-
*
|
|
801
|
-
*
|
|
802
|
-
* A note on the inheritance model for SCE contexts
|
|
803
|
-
* ------------------------------------------------
|
|
804
|
-
* I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This
|
|
805
|
-
* is purely an implementation details.
|
|
806
|
-
*
|
|
807
|
-
* The contract is simply this:
|
|
808
|
-
*
|
|
809
|
-
* getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)
|
|
810
|
-
* will also succeed.
|
|
811
|
-
*
|
|
812
|
-
* Inheritance happens to capture this in a natural way. In some future, we may not use
|
|
813
|
-
* inheritance anymore. That is OK because no code outside of sce.js and sceSpecs.js would need to
|
|
814
|
-
* be aware of this detail.
|
|
815
|
-
*/
|
|
816
|
-
|
|
817
493
|
this.$get = [
|
|
818
494
|
"$parse",
|
|
819
495
|
"$sceDelegate",
|
|
@@ -821,10 +497,6 @@ export function $SceProvider() {
|
|
|
821
497
|
const sce = shallowCopy(SCE_CONTEXTS);
|
|
822
498
|
|
|
823
499
|
/**
|
|
824
|
-
* @ngdoc method
|
|
825
|
-
* @name $sce#isEnabled
|
|
826
|
-
* @kind function
|
|
827
|
-
*
|
|
828
500
|
* @return {Boolean} True if SCE is enabled, false otherwise. If you want to set the value, you
|
|
829
501
|
* have to do it at module config time on {@link ng.$sceProvider $sceProvider}.
|
|
830
502
|
*
|
|
@@ -848,10 +520,6 @@ export function $SceProvider() {
|
|
|
848
520
|
}
|
|
849
521
|
|
|
850
522
|
/**
|
|
851
|
-
* @ngdoc method
|
|
852
|
-
* @name $sce#parseAs
|
|
853
|
-
*
|
|
854
|
-
* @description
|
|
855
523
|
* Converts AngularJS {@link guide/expression expression} into a function. This is like {@link
|
|
856
524
|
* ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it
|
|
857
525
|
* wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,
|
|
@@ -875,10 +543,6 @@ export function $SceProvider() {
|
|
|
875
543
|
};
|
|
876
544
|
|
|
877
545
|
/**
|
|
878
|
-
* @ngdoc method
|
|
879
|
-
* @name $sce#trustAs
|
|
880
|
-
*
|
|
881
|
-
* @description
|
|
882
546
|
* Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such, returns a
|
|
883
547
|
* wrapped object that represents your value, and the trust you have in its safety for the given
|
|
884
548
|
* context. AngularJS can then use that value as-is in bindings of the specified secure context.
|
|
@@ -894,10 +558,6 @@ export function $SceProvider() {
|
|
|
894
558
|
*/
|
|
895
559
|
|
|
896
560
|
/**
|
|
897
|
-
* @ngdoc method
|
|
898
|
-
* @name $sce#trustAsHtml
|
|
899
|
-
*
|
|
900
|
-
* @description
|
|
901
561
|
* Shorthand method. `$sce.trustAsHtml(value)` →
|
|
902
562
|
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}
|
|
903
563
|
*
|
|
@@ -907,10 +567,6 @@ export function $SceProvider() {
|
|
|
907
567
|
*/
|
|
908
568
|
|
|
909
569
|
/**
|
|
910
|
-
* @ngdoc method
|
|
911
|
-
* @name $sce#trustAsCss
|
|
912
|
-
*
|
|
913
|
-
* @description
|
|
914
570
|
* Shorthand method. `$sce.trustAsCss(value)` →
|
|
915
571
|
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.CSS, value)`}
|
|
916
572
|
*
|
|
@@ -921,10 +577,6 @@ export function $SceProvider() {
|
|
|
921
577
|
*/
|
|
922
578
|
|
|
923
579
|
/**
|
|
924
|
-
* @ngdoc method
|
|
925
|
-
* @name $sce#trustAsUrl
|
|
926
|
-
*
|
|
927
|
-
* @description
|
|
928
580
|
* Shorthand method. `$sce.trustAsUrl(value)` →
|
|
929
581
|
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}
|
|
930
582
|
*
|
|
@@ -935,10 +587,6 @@ export function $SceProvider() {
|
|
|
935
587
|
*/
|
|
936
588
|
|
|
937
589
|
/**
|
|
938
|
-
* @ngdoc method
|
|
939
|
-
* @name $sce#trustAsResourceUrl
|
|
940
|
-
*
|
|
941
|
-
* @description
|
|
942
590
|
* Shorthand method. `$sce.trustAsResourceUrl(value)` →
|
|
943
591
|
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}
|
|
944
592
|
*
|
|
@@ -949,10 +597,6 @@ export function $SceProvider() {
|
|
|
949
597
|
*/
|
|
950
598
|
|
|
951
599
|
/**
|
|
952
|
-
* @ngdoc method
|
|
953
|
-
* @name $sce#trustAsJs
|
|
954
|
-
*
|
|
955
|
-
* @description
|
|
956
600
|
* Shorthand method. `$sce.trustAsJs(value)` →
|
|
957
601
|
* {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}
|
|
958
602
|
*
|
|
@@ -963,10 +607,6 @@ export function $SceProvider() {
|
|
|
963
607
|
*/
|
|
964
608
|
|
|
965
609
|
/**
|
|
966
|
-
* @ngdoc method
|
|
967
|
-
* @name $sce#getTrusted
|
|
968
|
-
*
|
|
969
|
-
* @description
|
|
970
610
|
* Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such,
|
|
971
611
|
* takes any input, and either returns a value that's safe to use in the specified context,
|
|
972
612
|
* or throws an exception. This function is aware of trusted values created by the `trustAs`
|
|
@@ -982,10 +622,6 @@ export function $SceProvider() {
|
|
|
982
622
|
*/
|
|
983
623
|
|
|
984
624
|
/**
|
|
985
|
-
* @ngdoc method
|
|
986
|
-
* @name $sce#getTrustedHtml
|
|
987
|
-
*
|
|
988
|
-
* @description
|
|
989
625
|
* Shorthand method. `$sce.getTrustedHtml(value)` →
|
|
990
626
|
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}
|
|
991
627
|
*
|
|
@@ -994,10 +630,6 @@ export function $SceProvider() {
|
|
|
994
630
|
*/
|
|
995
631
|
|
|
996
632
|
/**
|
|
997
|
-
* @ngdoc method
|
|
998
|
-
* @name $sce#getTrustedCss
|
|
999
|
-
*
|
|
1000
|
-
* @description
|
|
1001
633
|
* Shorthand method. `$sce.getTrustedCss(value)` →
|
|
1002
634
|
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}
|
|
1003
635
|
*
|
|
@@ -1006,10 +638,6 @@ export function $SceProvider() {
|
|
|
1006
638
|
*/
|
|
1007
639
|
|
|
1008
640
|
/**
|
|
1009
|
-
* @ngdoc method
|
|
1010
|
-
* @name $sce#getTrustedUrl
|
|
1011
|
-
*
|
|
1012
|
-
* @description
|
|
1013
641
|
* Shorthand method. `$sce.getTrustedUrl(value)` →
|
|
1014
642
|
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}
|
|
1015
643
|
*
|
|
@@ -1018,10 +646,6 @@ export function $SceProvider() {
|
|
|
1018
646
|
*/
|
|
1019
647
|
|
|
1020
648
|
/**
|
|
1021
|
-
* @ngdoc method
|
|
1022
|
-
* @name $sce#getTrustedResourceUrl
|
|
1023
|
-
*
|
|
1024
|
-
* @description
|
|
1025
649
|
* Shorthand method. `$sce.getTrustedResourceUrl(value)` →
|
|
1026
650
|
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}
|
|
1027
651
|
*
|
|
@@ -1030,10 +654,6 @@ export function $SceProvider() {
|
|
|
1030
654
|
*/
|
|
1031
655
|
|
|
1032
656
|
/**
|
|
1033
|
-
* @ngdoc method
|
|
1034
|
-
* @name $sce#getTrustedJs
|
|
1035
|
-
*
|
|
1036
|
-
* @description
|
|
1037
657
|
* Shorthand method. `$sce.getTrustedJs(value)` →
|
|
1038
658
|
* {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}
|
|
1039
659
|
*
|
|
@@ -1042,10 +662,6 @@ export function $SceProvider() {
|
|
|
1042
662
|
*/
|
|
1043
663
|
|
|
1044
664
|
/**
|
|
1045
|
-
* @ngdoc method
|
|
1046
|
-
* @name $sce#parseAsHtml
|
|
1047
|
-
*
|
|
1048
|
-
* @description
|
|
1049
665
|
* Shorthand method. `$sce.parseAsHtml(expression string)` →
|
|
1050
666
|
* {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}
|
|
1051
667
|
*
|
|
@@ -1059,10 +675,6 @@ export function $SceProvider() {
|
|
|
1059
675
|
*/
|
|
1060
676
|
|
|
1061
677
|
/**
|
|
1062
|
-
* @ngdoc method
|
|
1063
|
-
* @name $sce#parseAsCss
|
|
1064
|
-
*
|
|
1065
|
-
* @description
|
|
1066
678
|
* Shorthand method. `$sce.parseAsCss(value)` →
|
|
1067
679
|
* {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}
|
|
1068
680
|
*
|
|
@@ -1076,10 +688,6 @@ export function $SceProvider() {
|
|
|
1076
688
|
*/
|
|
1077
689
|
|
|
1078
690
|
/**
|
|
1079
|
-
* @ngdoc method
|
|
1080
|
-
* @name $sce#parseAsUrl
|
|
1081
|
-
*
|
|
1082
|
-
* @description
|
|
1083
691
|
* Shorthand method. `$sce.parseAsUrl(value)` →
|
|
1084
692
|
* {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}
|
|
1085
693
|
*
|
|
@@ -1093,10 +701,6 @@ export function $SceProvider() {
|
|
|
1093
701
|
*/
|
|
1094
702
|
|
|
1095
703
|
/**
|
|
1096
|
-
* @ngdoc method
|
|
1097
|
-
* @name $sce#parseAsResourceUrl
|
|
1098
|
-
*
|
|
1099
|
-
* @description
|
|
1100
704
|
* Shorthand method. `$sce.parseAsResourceUrl(value)` →
|
|
1101
705
|
* {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}
|
|
1102
706
|
*
|
|
@@ -1110,10 +714,6 @@ export function $SceProvider() {
|
|
|
1110
714
|
*/
|
|
1111
715
|
|
|
1112
716
|
/**
|
|
1113
|
-
* @ngdoc method
|
|
1114
|
-
* @name $sce#parseAsJs
|
|
1115
|
-
*
|
|
1116
|
-
* @description
|
|
1117
717
|
* Shorthand method. `$sce.parseAsJs(value)` →
|
|
1118
718
|
* {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}
|
|
1119
719
|
*
|