@angular-wave/angular.ts 0.7.0-beta.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +58 -14
- package/.github/workflows/gh-pages.yml +75 -0
- package/@types/animations/animate.d.ts +11 -4
- package/@types/core/compile/attributes.d.ts +5 -2
- package/@types/core/compile/compile.d.ts +6 -6
- package/@types/core/di/injector.d.ts +1 -2
- package/@types/core/di/internal-injector.d.ts +10 -7
- package/@types/core/di/ng-module.d.ts +0 -1
- package/@types/core/error-handler.d.ts +1 -1
- package/@types/core/exception-handler.d.ts +1 -1
- package/@types/core/parse/interface.d.ts +3 -3
- package/@types/core/pubsub/pubsub.d.ts +21 -0
- package/@types/core/sce/sce.d.ts +2 -5
- package/@types/core/scope/scope.d.ts +23 -36
- package/@types/core/task-tracker-factory.d.ts +10 -5
- package/@types/directive/aria/aria.d.ts +4 -1
- package/@types/directive/include/include.d.ts +4 -18
- package/@types/directive/options/options.d.ts +1 -1
- package/@types/injection-tokens.d.ts +20 -0
- package/@types/interface.d.ts +4 -4
- package/@types/loader.d.ts +1 -0
- package/@types/public.d.ts +2 -2
- package/@types/router/directives/view-directive.d.ts +0 -2
- package/@types/router/params/param.d.ts +1 -1
- package/@types/router/state/interface.d.ts +3 -3
- package/@types/router/state/state-builder.d.ts +9 -2
- package/@types/router/transition/transition-service.d.ts +1 -0
- package/@types/services/anchor-scroll.d.ts +0 -1
- package/@types/shared/utils.d.ts +4 -14
- package/README.md +7 -9
- package/dist/angular-ts.esm.js +440 -302
- package/dist/angular-ts.umd.js +440 -302
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/.cspell.yml +2 -2
- package/docs/.github/dependabot.yml +12 -12
- package/docs/README.md +10 -7
- package/docs/assets/icons/logo.svg +1 -0
- package/docs/assets/scss/_variables_project.scss +1 -0
- package/docs/content/en/_index.md +5 -64
- package/docs/content/en/docs/_index.md +3 -4
- package/docs/docker-compose.yaml +1 -0
- package/docs/go.mod +1 -1
- package/docs/go.sum +6 -6
- package/docs/hugo-disabled.toml +6 -7
- package/docs/hugo.yaml +45 -64
- package/docs/layouts/404.html +2 -8
- package/docs/layouts/_markup/render-heading.html +1 -0
- package/docs/package-lock.json +2293 -0
- package/docs/package.json +18 -7
- package/index.html +1 -1
- package/package.json +1 -1
- package/src/animations/animate-children-directive.js +2 -1
- package/src/animations/animate-css.js +2 -2
- package/src/animations/animate-runner.js +3 -3
- package/src/animations/animate-swap.js +16 -19
- package/src/animations/animate.js +3 -1
- package/src/animations/shared.js +1 -1
- package/src/core/compile/attributes.js +4 -1
- package/src/core/compile/compile.js +29 -24
- package/src/core/compile/compile.spec.js +368 -371
- package/src/core/controller/controller.spec.js +27 -20
- package/src/core/di/injector.js +2 -5
- package/src/core/di/internal-injector.js +2 -0
- package/src/core/di/ng-module.js +19 -7
- package/src/core/di/ng-module.spec.js +16 -16
- package/src/core/error-handler.ts +1 -1
- package/src/core/exception-handler.js +1 -1
- package/src/core/filter/filter.js +0 -1
- package/src/core/parse/ast/ast.spec.js +1 -9
- package/src/core/parse/interface.ts +3 -3
- package/src/core/parse/parse.js +6 -6
- package/src/core/pubsub/pubsub.js +20 -0
- package/src/core/pubsub/pubsub.spec.js +14 -1
- package/src/core/sanitize/sanitize-uri.js +1 -0
- package/src/core/sce/sce.js +7 -15
- package/src/core/scope/scope.js +114 -117
- package/src/core/scope/scope.spec.js +11 -11
- package/src/core/task-tracker-factory.js +7 -0
- package/src/directive/aria/aria.js +11 -10
- package/src/directive/attrs/attrs.js +2 -1
- package/src/directive/bind/bind.js +2 -3
- package/src/directive/channel/channel.js +0 -1
- package/src/directive/class/class.js +0 -1
- package/src/directive/cloak/cloak.js +0 -1
- package/src/directive/include/include.js +22 -11
- package/src/directive/include/include.spec.js +1 -0
- package/src/directive/input/input-example.html +15 -0
- package/src/directive/input/input.js +8 -2
- package/src/directive/input/input.spec.js +12 -14
- package/src/directive/messages/messages.js +2 -2
- package/src/directive/non-bindable/non-bindable.js +0 -1
- package/src/directive/observe/test.html +1 -1
- package/src/directive/options/options-example.html +13 -0
- package/src/directive/options/options.js +33 -21
- package/src/directive/options/options.spec.js +207 -146
- package/src/directive/repeat/repeat.js +8 -7
- package/src/directive/select/select.spec.js +1 -1
- package/src/directive/setter/setter.js +1 -1
- package/src/directive/setter/setter.spec.js +5 -4
- package/src/directive/style/style.spec.js +1 -1
- package/src/directive/switch/switch.js +1 -2
- package/src/directive/transclude/transclude.js +0 -1
- package/src/directive/validators/validators.js +5 -5
- package/src/examples/counter.html +20 -0
- package/src/filters/order-by.js +2 -1
- package/src/filters/order-by.spec.js +4 -4
- package/src/index.spec.js +11 -0
- package/src/injection-tokens.js +71 -0
- package/src/interface.ts +4 -4
- package/src/loader.js +2 -0
- package/src/public.js +10 -3
- package/src/public.spec.js +1 -0
- package/src/router/directives/state-directives.js +1 -1
- package/src/router/directives/state-directives.spec.js +0 -2
- package/src/router/directives/view-directive.js +1 -2
- package/src/router/params/param.js +1 -1
- package/src/router/state/interface.ts +3 -3
- package/src/router/state/state-builder.js +4 -0
- package/src/router/state/state-builder.spec.js +21 -15
- package/src/router/state/state-registry.js +7 -6
- package/src/router/template-factory.spec.js +15 -9
- package/src/router/transition/transition-service.js +1 -0
- package/src/router/view/view.spec.js +1 -1
- package/src/router/view-scroll.spec.js +3 -4
- package/src/services/anchor-scroll.html +1 -1
- package/src/services/anchor-scroll.js +0 -4
- package/src/services/template-request.js +11 -7
- package/src/shared/noderef.js +1 -3
- package/src/shared/utils.js +5 -22
- package/src/src.html +2 -1
- package/typedoc/assets/hierarchy.js +1 -1
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/classes/animations_animate-cache.AnimateCacheProvider.html +4 -40
- package/typedoc/classes/animations_animate-css-driver.AnimateCssDriverProvider.html +4 -58
- package/typedoc/classes/animations_animate-css.AnimateCssProvider.html +4 -40
- package/typedoc/classes/animations_animate-js-driver.AnimateJsDriverProvider.html +4 -58
- package/typedoc/classes/animations_animate-js.AnimateJsProvider.html +4 -58
- package/typedoc/classes/animations_animate-queue.AnimateQueueProvider.html +4 -69
- package/typedoc/classes/animations_animate-runner.AnimateAsyncRunFactoryProvider.html +4 -40
- package/typedoc/classes/animations_animate-runner.AnimateRunner.html +4 -263
- package/typedoc/classes/animations_animate-runner.AnimateRunnerFactoryProvider.html +4 -40
- package/typedoc/classes/animations_animate.AnimateProvider.html +42 -108
- package/typedoc/classes/animations_animation.AnimationProvider.html +4 -51
- package/typedoc/classes/animations_raf-scheduler.RafSchedulerProvider.html +4 -115
- package/typedoc/classes/core_cache_cache-factory.TemplateCacheProvider.html +4 -29
- package/typedoc/classes/core_compile_attributes.Attributes.html +19 -227
- package/typedoc/classes/core_compile_compile.CompileProvider.html +52 -137
- package/typedoc/classes/core_controller_controller.ControllerProvider.html +4 -73
- package/typedoc/classes/core_di_internal-injector.InjectorService.html +7 -141
- package/typedoc/classes/core_di_internal-injector.ProviderInjector.html +7 -119
- package/typedoc/classes/core_di_ng-module.NgModule.html +4 -256
- package/typedoc/classes/core_exception-handler.ExceptionHandlerProvider.html +4 -69
- package/typedoc/classes/core_filter_filter.FilterProvider.html +4 -69
- package/typedoc/classes/core_interpolate_interpolate.InterpolateProvider.html +4 -84
- package/typedoc/classes/core_location_location.Location.html +5 -387
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +5 -340
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +5 -340
- package/typedoc/classes/core_location_location.LocationProvider.html +4 -113
- package/typedoc/classes/core_parse_ast_ast.AST.html +4 -359
- package/typedoc/classes/core_parse_interpreter.ASTInterpreter.html +4 -315
- package/typedoc/classes/core_parse_lexer_lexer.Lexer.html +4 -238
- package/typedoc/classes/core_parse_parse.ParseProvider.html +4 -51
- package/typedoc/classes/core_parse_parser_parser.Parser.html +4 -73
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +4 -146
- package/typedoc/classes/core_pubsub_pubsub.PubSubProvider.html +576 -0
- package/typedoc/classes/core_sanitize_sanitize-uri.SanitizeUriProvider.html +4 -62
- package/typedoc/classes/core_sce_sce.SceDelegateProvider.html +4 -73
- package/typedoc/classes/core_sce_sce.SceProvider.html +10 -63
- package/typedoc/classes/core_scope_scope.RootScopeProvider.html +4 -51
- package/typedoc/classes/core_scope_scope.Scope.html +49 -1280
- package/typedoc/classes/core_task-tracker-factory.TaskTracker.html +4 -84
- package/typedoc/classes/core_task-tracker-factory.TaskTrackerFactoryProvider.html +23 -128
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +4 -51
- package/typedoc/classes/directive_form_form.FormController.html +4 -429
- package/typedoc/classes/directive_model_model.NgModelController.html +4 -983
- package/typedoc/classes/loader.Angular.html +46 -179
- package/typedoc/classes/router_common_glob.Glob.html +4 -84
- package/typedoc/classes/router_common_queue.Queue.html +4 -161
- package/typedoc/classes/router_common_trace.Trace.html +4 -249
- package/typedoc/classes/router_globals.RouterGlobals.html +4 -117
- package/typedoc/classes/router_params_param-factory.ParamFactory.html +4 -73
- package/typedoc/classes/router_params_param-type.ParamType.html +4 -150
- package/typedoc/classes/router_params_param-types.ParamTypes.html +4 -95
- package/typedoc/classes/router_params_param.Param.html +4 -260
- package/typedoc/classes/router_params_state-params.StateParams.html +4 -40
- package/typedoc/classes/router_path_path-node.PathNode.html +4 -174
- package/typedoc/classes/router_path_path-utils.PathUtils.html +4 -128
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +4 -256
- package/typedoc/classes/router_resolve_resolve-context.ResolveContext.html +4 -150
- package/typedoc/classes/router_state-provider.StateProvider.html +4 -84
- package/typedoc/classes/router_state_state-builder.StateBuilder.html +4 -106
- package/typedoc/classes/router_state_state-matcher.StateMatcher.html +4 -73
- package/typedoc/classes/router_state_state-object.StateObject.html +4 -230
- package/typedoc/classes/router_state_state-queue-manager.StateQueueManager.html +4 -128
- package/typedoc/classes/router_state_state-registry.StateRegistryProvider.html +5 -246
- package/typedoc/classes/router_state_state-service.StateProvider.html +4 -322
- package/typedoc/classes/router_state_target-state.TargetState.html +4 -252
- package/typedoc/classes/router_state_views.ViewConfig.html +4 -161
- package/typedoc/classes/router_template-factory.TemplateFactoryProvider.html +4 -179
- package/typedoc/classes/router_transition_hook-builder.HookBuilder.html +4 -73
- package/typedoc/classes/router_transition_hook-registry.RegisteredHook.html +4 -201
- package/typedoc/classes/router_transition_reject-factory.Rejection.html +4 -183
- package/typedoc/classes/router_transition_transition-event-type.TransitionEventType.html +4 -117
- package/typedoc/classes/router_transition_transition-hook.TransitionHook.html +4 -280
- package/typedoc/classes/router_transition_transition-service.TransitionProvider.html +5 -238
- package/typedoc/classes/router_transition_transition.Transition.html +4 -648
- package/typedoc/classes/router_url_url-config.UrlConfigProvider.html +4 -149
- package/typedoc/classes/router_url_url-matcher.UrlMatcher.html +4 -274
- package/typedoc/classes/router_url_url-rule.BaseUrlRule.html +4 -95
- package/typedoc/classes/router_url_url-rule.UrlRuleFactory.html +4 -124
- package/typedoc/classes/router_url_url-rules.UrlRules.html +4 -222
- package/typedoc/classes/router_url_url-service.UrlService.html +4 -373
- package/typedoc/classes/router_view-scroll.ViewScrollProvider.html +4 -69
- package/typedoc/classes/router_view_view.ViewService.html +4 -223
- package/typedoc/classes/services_anchor-scroll.AnchorScrollProvider.html +4 -164
- package/typedoc/classes/services_browser.Browser.html +4 -276
- package/typedoc/classes/services_browser.BrowserProvider.html +4 -29
- package/typedoc/classes/services_http-backend_http-backend.HttpBackendProvider.html +4 -40
- package/typedoc/classes/services_http_http.HttpParamSerializerProvider.html +4 -40
- package/typedoc/classes/services_http_http.HttpProvider.html +4 -84
- package/typedoc/classes/services_log.LogProvider.html +4 -91
- package/typedoc/classes/services_template-request.TemplateRequestProvider.html +4 -51
- package/typedoc/classes/shared_noderef.NodeRef.html +4 -301
- package/typedoc/enums/core_parse_ast-type.ASTType.html +4 -212
- package/typedoc/enums/router_common_trace.Category.html +4 -80
- package/typedoc/enums/router_transition_interface.TransitionHookPhase.html +4 -73
- package/typedoc/enums/router_transition_interface.TransitionHookScope.html +4 -40
- package/typedoc/enums/router_transition_reject-factory.RejectType.html +4 -80
- package/typedoc/functions/animations_animate-cache.animateCache.html +4 -84
- package/typedoc/functions/animations_animate-children-directive.__AnimateChildrenDirective.html +4 -29
- package/typedoc/functions/animations_animate-swap.ngAnimateSwapDirective.html +4 -29
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +4 -18
- package/typedoc/functions/animations_shared.applyInlineStyle.html +4 -18
- package/typedoc/functions/animations_shared.assertArg.html +4 -18
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +4 -18
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +4 -18
- package/typedoc/functions/animations_shared.concatWithSpace.html +4 -18
- package/typedoc/functions/animations_shared.extractElementNode.html +4 -18
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +4 -18
- package/typedoc/functions/animations_shared.mergeClasses.html +4 -18
- package/typedoc/functions/animations_shared.packageStyles.html +4 -18
- package/typedoc/functions/animations_shared.pendClasses.html +4 -18
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +4 -18
- package/typedoc/functions/animations_shared.removeFromArray.html +4 -18
- package/typedoc/functions/animations_shared.resolveElementClasses.html +4 -18
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +4 -18
- package/typedoc/functions/core_controller_controller.identifierForController.html +4 -18
- package/typedoc/functions/core_di_injector.annotate.html +4 -18
- package/typedoc/functions/core_di_injector.createInjector.html +4 -18
- package/typedoc/functions/core_location_location.serverBase.html +4 -18
- package/typedoc/functions/core_location_location.stripBaseUrl.html +4 -18
- package/typedoc/functions/core_location_location.stripFile.html +4 -18
- package/typedoc/functions/core_location_location.stripHash.html +4 -18
- package/typedoc/functions/core_parse_interpreter.isAssignable.html +4 -18
- package/typedoc/functions/core_parse_parse.constantWatchDelegate.html +4 -18
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +4 -18
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +4 -18
- package/typedoc/functions/core_scope_scope.createScope.html +4 -18
- package/typedoc/functions/core_scope_scope.nextId.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.getBaseUrl.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsAllowedOriginFactory.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOrigin.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOriginAsBaseUrl.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlResolve.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlsAreSameOrigin.html +4 -18
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +6 -31
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +4 -18
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +4 -29
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +4 -18
- package/typedoc/functions/directive_bind_bind.ngBindHtmlDirective.html +4 -29
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +4 -18
- package/typedoc/functions/directive_channel_channel.ngChannelDirective.html +4 -18
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +4 -18
- package/typedoc/functions/directive_controller_controller.ngControllerDirective.html +4 -18
- package/typedoc/functions/directive_events_events.createEventDirective.html +4 -18
- package/typedoc/functions/directive_form_form.setupValidity.html +4 -18
- package/typedoc/functions/directive_if_if.ngIfDirective.html +4 -29
- package/typedoc/functions/directive_include_include.ngIncludeDirective.html +33 -178
- package/typedoc/functions/directive_include_include.ngIncludeFillContentDirective.html +4 -29
- package/typedoc/functions/directive_init_init.ngInitDirective.html +4 -18
- package/typedoc/functions/directive_input_input.badInputChecker.html +4 -18
- package/typedoc/functions/directive_input_input.countDecimals.html +4 -18
- package/typedoc/functions/directive_input_input.createDateInputType.html +4 -18
- package/typedoc/functions/directive_input_input.createDateParser.html +4 -18
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +4 -18
- package/typedoc/functions/directive_input_input.inputDirective.html +4 -29
- package/typedoc/functions/directive_input_input.isNumberInteger.html +4 -18
- package/typedoc/functions/directive_input_input.isValidForStep.html +4 -18
- package/typedoc/functions/directive_input_input.ngValueDirective.html +4 -18
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +4 -18
- package/typedoc/functions/directive_input_input.numberInputType.html +4 -18
- package/typedoc/functions/directive_input_input.rangeInputType.html +4 -18
- package/typedoc/functions/directive_input_input.weekParser.html +4 -18
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +4 -29
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +4 -29
- package/typedoc/functions/directive_model-options_model-options.ngModelOptionsDirective.html +4 -18
- package/typedoc/functions/directive_model_model.ngModelDirective.html +4 -18
- package/typedoc/functions/directive_non-bindable_non-bindable.ngNonBindableDirective.html +4 -18
- package/typedoc/functions/directive_observe_observe.ngObserveDirective.html +4 -18
- package/typedoc/functions/directive_ref_ref.ngRefDirective.html +4 -29
- package/typedoc/functions/directive_repeat_repeat.ngRepeatDirective.html +4 -29
- package/typedoc/functions/directive_script_script.scriptDirective.html +4 -29
- package/typedoc/functions/directive_select_select.optionDirective.html +4 -29
- package/typedoc/functions/directive_select_select.selectDirective.html +4 -18
- package/typedoc/functions/directive_setter_setter.ngSetterDirective.html +4 -29
- package/typedoc/functions/directive_show-hide_show-hide.ngHideDirective.html +4 -29
- package/typedoc/functions/directive_show-hide_show-hide.ngShowDirective.html +4 -29
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +4 -18
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +4 -18
- package/typedoc/functions/directive_switch_switch.ngSwitchDirective.html +4 -29
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +4 -18
- package/typedoc/functions/filters_filter.filterFilter.html +4 -18
- package/typedoc/functions/filters_filters.formatNumber.html +4 -18
- package/typedoc/functions/filters_filters.jsonFilter.html +4 -18
- package/typedoc/functions/filters_limit-to.limitToFilter.html +4 -18
- package/typedoc/functions/filters_order-by.orderByFilter.html +4 -29
- package/typedoc/functions/public.publishExternalAPI.html +6 -24
- package/typedoc/functions/router_common_glob.hasGlobs.html +4 -18
- package/typedoc/functions/router_directives_state-directives._StateRefActiveDirective.html +4 -29
- package/typedoc/functions/router_directives_state-directives._StateRefDirective.html +4 -29
- package/typedoc/functions/router_directives_state-directives._StateRefDynamicDirective.html +4 -29
- package/typedoc/functions/router_directives_view-directive._ViewDirectiveFill.html +4 -39
- package/typedoc/functions/router_hooks_core-resolvables.registerAddCoreResolvables.html +4 -18
- package/typedoc/functions/router_hooks_core-resolvables.treeChangesCleanup.html +4 -18
- package/typedoc/functions/router_hooks_ignored-transition.registerIgnoredTransitionHook.html +4 -18
- package/typedoc/functions/router_hooks_invalid-transition.registerInvalidTransitionHook.html +4 -18
- package/typedoc/functions/router_hooks_lazy-load.lazyLoadState.html +4 -18
- package/typedoc/functions/router_hooks_lazy-load.registerLazyLoadHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnEnterHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnExitHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnRetainHook.html +4 -18
- package/typedoc/functions/router_hooks_redirect-to.registerRedirectToHook.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +4 -18
- package/typedoc/functions/router_hooks_update-globals.registerUpdateGlobalState.html +4 -18
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +4 -18
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +4 -18
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +4 -18
- package/typedoc/functions/router_path_path-utils.makeTargetState.html +4 -18
- package/typedoc/functions/router_state-filters._IncludedByStateFilter.html +4 -29
- package/typedoc/functions/router_state-filters._IsStateFilter.html +4 -29
- package/typedoc/functions/router_state_state-builder.resolvablesBuilder.html +4 -18
- package/typedoc/functions/router_state_state-registry.getLocals.html +4 -18
- package/typedoc/functions/router_state_views.getViewConfigFactory.html +4 -18
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +4 -18
- package/typedoc/functions/router_transition_hook-registry.makeEvent.html +4 -18
- package/typedoc/functions/router_transition_hook-registry.matchState.html +4 -18
- package/typedoc/functions/services_browser.trimEmptyHash.html +4 -18
- package/typedoc/functions/services_cookie-reader.getCookies.html +4 -18
- package/typedoc/functions/services_http-backend_http-backend.createHttpBackend.html +4 -18
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +4 -18
- package/typedoc/functions/shared_common._removeFrom.html +4 -18
- package/typedoc/functions/shared_common.allTrueR.html +4 -18
- package/typedoc/functions/shared_common.ancestors.html +4 -18
- package/typedoc/functions/shared_common.anyTrueR.html +4 -18
- package/typedoc/functions/shared_common.applyPairs.html +4 -18
- package/typedoc/functions/shared_common.arrayTuples.html +4 -18
- package/typedoc/functions/shared_common.assertFn.html +4 -18
- package/typedoc/functions/shared_common.copy.html +4 -18
- package/typedoc/functions/shared_common.createProxyFunctions.html +4 -18
- package/typedoc/functions/shared_common.defaults.html +4 -18
- package/typedoc/functions/shared_common.deregAll.html +4 -18
- package/typedoc/functions/shared_common.equals.html +4 -18
- package/typedoc/functions/shared_common.filter.html +4 -18
- package/typedoc/functions/shared_common.find.html +4 -18
- package/typedoc/functions/shared_common.flatten.html +4 -18
- package/typedoc/functions/shared_common.flattenR.html +4 -18
- package/typedoc/functions/shared_common.inherit.html +4 -18
- package/typedoc/functions/shared_common.map.html +4 -18
- package/typedoc/functions/shared_common.omit.html +4 -18
- package/typedoc/functions/shared_common.pairs.html +4 -18
- package/typedoc/functions/shared_common.pick.html +4 -18
- package/typedoc/functions/shared_common.pushR.html +4 -18
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +4 -18
- package/typedoc/functions/shared_common.silentRejection.html +4 -18
- package/typedoc/functions/shared_common.tail.html +4 -18
- package/typedoc/functions/shared_common.uniqR.html +4 -18
- package/typedoc/functions/shared_common.unnest.html +4 -18
- package/typedoc/functions/shared_common.unnestR.html +4 -18
- package/typedoc/functions/shared_dom.appendNodesToElement.html +4 -18
- package/typedoc/functions/shared_dom.buildFragment.html +4 -18
- package/typedoc/functions/shared_dom.cleanElementData.html +4 -18
- package/typedoc/functions/shared_dom.createElementFromHTML.html +4 -18
- package/typedoc/functions/shared_dom.createNodelistFromHTML.html +4 -18
- package/typedoc/functions/shared_dom.dealoc.html +4 -18
- package/typedoc/functions/shared_dom.deleteCacheData.html +4 -18
- package/typedoc/functions/shared_dom.domInsert.html +4 -18
- package/typedoc/functions/shared_dom.emptyElement.html +4 -18
- package/typedoc/functions/shared_dom.getBlockNodes.html +4 -18
- package/typedoc/functions/shared_dom.getBooleanAttrName.html +4 -18
- package/typedoc/functions/shared_dom.getCacheData.html +4 -18
- package/typedoc/functions/shared_dom.getController.html +4 -18
- package/typedoc/functions/shared_dom.getExpando.html +4 -18
- package/typedoc/functions/shared_dom.getInheritedData.html +4 -18
- package/typedoc/functions/shared_dom.getInjector.html +4 -18
- package/typedoc/functions/shared_dom.getIsolateScope.html +4 -18
- package/typedoc/functions/shared_dom.getOrSetCacheData.html +4 -18
- package/typedoc/functions/shared_dom.getScope.html +4 -18
- package/typedoc/functions/shared_dom.isRoot.html +4 -18
- package/typedoc/functions/shared_dom.isTextNode.html +4 -18
- package/typedoc/functions/shared_dom.kebabToCamel.html +4 -18
- package/typedoc/functions/shared_dom.parseHtml.html +4 -18
- package/typedoc/functions/shared_dom.removeElement.html +4 -18
- package/typedoc/functions/shared_dom.removeElementData.html +4 -18
- package/typedoc/functions/shared_dom.setCacheData.html +4 -18
- package/typedoc/functions/shared_dom.setInheritedData.html +4 -18
- package/typedoc/functions/shared_dom.setIsolateScope.html +4 -18
- package/typedoc/functions/shared_dom.setScope.html +4 -18
- package/typedoc/functions/shared_dom.snakeToCamel.html +4 -18
- package/typedoc/functions/shared_dom.startingTag.html +4 -18
- package/typedoc/functions/shared_hof.all.html +4 -18
- package/typedoc/functions/shared_hof.compose.html +4 -18
- package/typedoc/functions/shared_hof.curry.html +4 -18
- package/typedoc/functions/shared_hof.is.html +4 -18
- package/typedoc/functions/shared_hof.or.html +4 -18
- package/typedoc/functions/shared_hof.parse.html +4 -18
- package/typedoc/functions/shared_hof.pattern.html +4 -18
- package/typedoc/functions/shared_hof.pipe.html +4 -18
- package/typedoc/functions/shared_hof.val.html +4 -18
- package/typedoc/functions/shared_predicates.isInjectable.html +4 -18
- package/typedoc/functions/shared_predicates.isPromise.html +4 -18
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +4 -18
- package/typedoc/functions/shared_strings.fnToString.html +4 -18
- package/typedoc/functions/shared_strings.functionToString.html +4 -18
- package/typedoc/functions/shared_strings.joinNeighborsR.html +4 -18
- package/typedoc/functions/shared_strings.kebobString.html +4 -18
- package/typedoc/functions/shared_strings.maxLength.html +4 -18
- package/typedoc/functions/shared_strings.padString.html +4 -18
- package/typedoc/functions/shared_strings.splitOnDelim.html +4 -18
- package/typedoc/functions/shared_strings.stringify.html +4 -18
- package/typedoc/functions/shared_strings.stripLastPathElement.html +4 -18
- package/typedoc/functions/shared_strings.trimHashVal.html +4 -18
- package/typedoc/functions/shared_test-utils.bootstrap.html +4 -18
- package/typedoc/functions/shared_test-utils.browserTrigger.html +4 -18
- package/typedoc/functions/shared_test-utils.wait.html +4 -18
- package/typedoc/functions/shared_utils.addDateMinutes.html +4 -18
- package/typedoc/functions/shared_utils.arrayRemove.html +4 -18
- package/typedoc/functions/shared_utils.assert.html +4 -18
- package/typedoc/functions/shared_utils.assertArg.html +4 -18
- package/typedoc/functions/shared_utils.assertArgFn.html +4 -18
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +4 -18
- package/typedoc/functions/shared_utils.baseExtend.html +4 -18
- package/typedoc/functions/shared_utils.bind.html +4 -18
- package/typedoc/functions/shared_utils.concat.html +4 -18
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +4 -18
- package/typedoc/functions/shared_utils.csp.html +4 -18
- package/typedoc/functions/shared_utils.directiveNormalize.html +4 -18
- package/typedoc/functions/shared_utils.encodeUriQuery.html +4 -18
- package/typedoc/functions/shared_utils.encodeUriSegment.html +4 -18
- package/typedoc/functions/shared_utils.equals.html +4 -18
- package/typedoc/functions/shared_utils.errorHandlingConfig.html +4 -18
- package/typedoc/functions/shared_utils.extend.html +4 -18
- package/typedoc/functions/shared_utils.fromJson.html +4 -18
- package/typedoc/functions/shared_utils.getNgAttribute.html +4 -18
- package/typedoc/functions/shared_utils.getNodeName.html +4 -18
- package/typedoc/functions/shared_utils.hasAnimate.html +4 -18
- package/typedoc/functions/shared_utils.hasCustomToString.html +4 -18
- package/typedoc/functions/shared_utils.hasOwn.html +4 -18
- package/typedoc/functions/shared_utils.hashKey.html +4 -18
- package/typedoc/functions/shared_utils.includes.html +4 -18
- package/typedoc/functions/shared_utils.inherit.html +4 -18
- package/typedoc/functions/shared_utils.isArrayBuffer.html +4 -18
- package/typedoc/functions/shared_utils.isArrayLike.html +7 -18
- package/typedoc/functions/shared_utils.isBlankObject.html +8 -18
- package/typedoc/functions/shared_utils.isBlob.html +4 -18
- package/typedoc/functions/shared_utils.isBoolean.html +4 -18
- package/typedoc/functions/shared_utils.isDate.html +4 -18
- package/typedoc/functions/shared_utils.isDefined.html +4 -18
- package/typedoc/functions/shared_utils.isElement.html +4 -18
- package/typedoc/functions/shared_utils.isError.html +4 -18
- package/typedoc/functions/shared_utils.isFile.html +4 -18
- package/typedoc/functions/shared_utils.isFormData.html +4 -18
- package/typedoc/functions/shared_utils.isFunction.html +4 -18
- package/typedoc/functions/shared_utils.isNull.html +4 -18
- package/typedoc/functions/shared_utils.isNullOrUndefined.html +4 -18
- package/typedoc/functions/shared_utils.isNumber.html +4 -18
- package/typedoc/functions/shared_utils.isNumberNaN.html +4 -18
- package/typedoc/functions/shared_utils.isObject.html +4 -18
- package/typedoc/functions/shared_utils.isObjectEmpty.html +4 -18
- package/typedoc/functions/shared_utils.isPromiseLike.html +4 -18
- package/typedoc/functions/shared_utils.isProxy.html +4 -18
- package/typedoc/functions/shared_utils.isRegExp.html +4 -18
- package/typedoc/functions/shared_utils.isScope.html +4 -18
- package/typedoc/functions/shared_utils.isString.html +4 -18
- package/typedoc/functions/shared_utils.isTypedArray.html +4 -18
- package/typedoc/functions/shared_utils.isUndefined.html +4 -18
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +4 -18
- package/typedoc/functions/shared_utils.isWindow.html +4 -18
- package/typedoc/functions/shared_utils.lowercase.html +4 -18
- package/typedoc/functions/shared_utils.mergeClasses.html +4 -18
- package/typedoc/functions/shared_utils.minErr.html +4 -18
- package/typedoc/functions/shared_utils.nextUid.html +4 -18
- package/typedoc/functions/shared_utils.parseKeyValue.html +4 -18
- package/typedoc/functions/shared_utils.setHashKey.html +4 -18
- package/typedoc/functions/shared_utils.shallowCopy.html +4 -18
- package/typedoc/functions/shared_utils.simpleCompare.html +4 -18
- package/typedoc/functions/shared_utils.sliceArgs.html +4 -18
- package/typedoc/functions/shared_utils.snakeCase.html +4 -18
- package/typedoc/functions/shared_utils.stringify.html +4 -18
- package/typedoc/functions/shared_utils.timezoneToOffset.html +4 -18
- package/typedoc/functions/shared_utils.toDebugString.html +4 -18
- package/typedoc/functions/shared_utils.toInt.html +4 -18
- package/typedoc/functions/shared_utils.toJson.html +4 -18
- package/typedoc/functions/shared_utils.toKeyValue.html +4 -18
- package/typedoc/functions/shared_utils.trim.html +4 -18
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +9 -19
- package/typedoc/functions/shared_utils.uppercase.html +4 -18
- package/typedoc/hierarchy.html +8 -11
- package/typedoc/index.html +5 -8
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +4 -62
- package/typedoc/interfaces/animations_raf-scheduler.ServiceProvider.html +5 -30
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +4 -51
- package/typedoc/interfaces/core_compile_compile.LinkFnMapping.html +4 -51
- package/typedoc/interfaces/core_compile_compile.NodeLinkFnCtx.html +4 -84
- package/typedoc/interfaces/core_compile_compile.SimpleChange.html +4 -40
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +4 -51
- package/typedoc/interfaces/core_location_location.Html5Mode.html +4 -51
- package/typedoc/interfaces/core_parse_ast_ast.Token.html +4 -84
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionHandlerMap.html +4 -73
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionProps.html +5 -107
- package/typedoc/interfaces/core_parse_lexer_lexer.LexerOptions.html +4 -40
- package/typedoc/interfaces/core_parse_parser_parser.ParsedAST.html +4 -29
- package/typedoc/interfaces/core_sanitize_interface.SanitizerFn.html +4 -18
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +4 -51
- package/typedoc/interfaces/core_scope_scope.Listener.html +4 -106
- package/typedoc/interfaces/directive_model-options_model-options.ModelOptionsConfig.html +4 -73
- package/typedoc/interfaces/interface.ChangesObject.html +4 -40
- package/typedoc/interfaces/interface.ComponentOptions.html +4 -95
- package/typedoc/interfaces/interface.Controller.html +5 -74
- package/typedoc/interfaces/interface.Directive.html +6 -207
- package/typedoc/interfaces/interface.DirectivePrePost.html +4 -40
- package/typedoc/interfaces/interface.NgModelController.html +4 -172
- package/typedoc/interfaces/interface.NgModelOptions.html +4 -95
- package/typedoc/interfaces/interface.Provider.html +4 -84
- package/typedoc/interfaces/interface.TranscludeFunctionObject.html +4 -51
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +4 -29
- package/typedoc/interfaces/router_params_interface.ParamDeclaration.html +4 -117
- package/typedoc/interfaces/router_params_interface.ParamTypeDefinition.html +4 -106
- package/typedoc/interfaces/router_params_interface.RawParams.html +4 -18
- package/typedoc/interfaces/router_params_interface.Replace.html +4 -40
- package/typedoc/interfaces/router_resolve_interface.CustomAsyncPolicy.html +4 -18
- package/typedoc/interfaces/router_resolve_interface.ProviderLike.html +4 -84
- package/typedoc/interfaces/router_resolve_interface.ResolvableLiteral.html +4 -73
- package/typedoc/interfaces/router_resolve_interface.ResolvePolicy.html +4 -40
- package/typedoc/interfaces/router_state_interface.HrefOptions.html +4 -62
- package/typedoc/interfaces/router_state_interface.LazyLoadResult.html +4 -29
- package/typedoc/interfaces/router_state_interface.StateDeclaration.html +11 -212
- package/typedoc/interfaces/router_state_interface.TargetStateDef.html +4 -51
- package/typedoc/interfaces/router_state_interface.TransitionPromise.html +5 -54
- package/typedoc/interfaces/router_state_interface.ViewDeclaration.html +4 -183
- package/typedoc/interfaces/router_template-factory.BindingTuple.html +4 -40
- package/typedoc/interfaces/router_transition_interface.HookMatchCriteria.html +4 -73
- package/typedoc/interfaces/router_transition_interface.HookRegOptions.html +4 -51
- package/typedoc/interfaces/router_transition_interface.IHookRegistry.html +4 -128
- package/typedoc/interfaces/router_transition_interface.IMatchingNodes.html +4 -73
- package/typedoc/interfaces/router_transition_interface.PathType.html +4 -40
- package/typedoc/interfaces/router_transition_interface.PathTypes.html +4 -73
- package/typedoc/interfaces/router_transition_interface.RegisteredHooks.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionCreateHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionHookOptions.html +4 -95
- package/typedoc/interfaces/router_transition_interface.TransitionOptions.html +4 -139
- package/typedoc/interfaces/router_transition_interface.TransitionStateHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TreeChanges.html +4 -84
- package/typedoc/interfaces/router_view_interface.ActiveUIView.html +4 -84
- package/typedoc/interfaces/router_view_interface.ViewConfig.html +4 -73
- package/typedoc/interfaces/router_view_interface.ViewContext.html +4 -40
- package/typedoc/interfaces/services_anchor-scroll.AnchorScrollObject.html +4 -29
- package/typedoc/interfaces/services_log.LogService.html +4 -80
- package/typedoc/interfaces/shared_interface.TypedMap.html +4 -18
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +4 -40
- package/typedoc/modules/animations_animate-cache.html +4 -7
- package/typedoc/modules/animations_animate-children-directive.html +4 -9
- package/typedoc/modules/animations_animate-css-driver.html +4 -7
- package/typedoc/modules/animations_animate-css.html +4 -7
- package/typedoc/modules/animations_animate-js-driver.html +4 -7
- package/typedoc/modules/animations_animate-js.html +4 -7
- package/typedoc/modules/animations_animate-queue.html +4 -7
- package/typedoc/modules/animations_animate-runner.html +4 -7
- package/typedoc/modules/animations_animate-swap.html +4 -7
- package/typedoc/modules/animations_animate.html +4 -7
- package/typedoc/modules/animations_animation.html +4 -7
- package/typedoc/modules/animations_interface.html +4 -7
- package/typedoc/modules/animations_raf-scheduler.html +4 -7
- package/typedoc/modules/animations_shared.html +4 -7
- package/typedoc/modules/core_cache_cache-factory.html +4 -7
- package/typedoc/modules/core_cache_cache.html +4 -7
- package/typedoc/modules/core_compile_attributes.html +4 -7
- package/typedoc/modules/core_compile_compile.html +4 -7
- package/typedoc/modules/core_controller_controller.html +4 -7
- package/typedoc/modules/core_di_injector.html +4 -65
- package/typedoc/modules/core_di_internal-injector.html +4 -7
- package/typedoc/modules/core_di_ng-module.html +4 -34
- package/typedoc/modules/core_error-handler.html +4 -7
- package/typedoc/modules/core_exception-handler.html +4 -7
- package/typedoc/modules/core_filter_filter.html +4 -7
- package/typedoc/modules/core_interpolate_interpolate.html +4 -7
- package/typedoc/modules/core_location_location.html +4 -7
- package/typedoc/modules/core_parse_ast-type.html +4 -7
- package/typedoc/modules/core_parse_ast_ast-node.html +4 -7
- package/typedoc/modules/core_parse_ast_ast.html +4 -7
- package/typedoc/modules/core_parse_interface.html +4 -7
- package/typedoc/modules/core_parse_interpreter.html +4 -7
- package/typedoc/modules/core_parse_lexer_lexer.html +4 -7
- package/typedoc/modules/core_parse_lexer_token.html +4 -7
- package/typedoc/modules/core_parse_parse.html +4 -7
- package/typedoc/modules/core_parse_parser_parser.html +4 -7
- package/typedoc/modules/core_pubsub_pubsub.html +95 -7
- package/typedoc/modules/core_sanitize_interface.html +4 -7
- package/typedoc/modules/core_sanitize_sanitize-uri.html +4 -7
- package/typedoc/modules/core_sce_sce.html +4 -7
- package/typedoc/modules/core_scope_scope.html +4 -7
- package/typedoc/modules/core_task-tracker-factory.html +134 -7
- package/typedoc/modules/core_url-utils_url-utils.html +4 -7
- package/typedoc/modules/directive_aria_aria.html +4 -7
- package/typedoc/modules/directive_attrs_attrs.html +4 -7
- package/typedoc/modules/directive_bind_bind.html +4 -7
- package/typedoc/modules/directive_channel_channel.html +4 -7
- package/typedoc/modules/directive_class_class.html +4 -7
- package/typedoc/modules/directive_cloak_cloak.html +4 -7
- package/typedoc/modules/directive_controller_controller.html +4 -7
- package/typedoc/modules/directive_events_events.html +4 -7
- package/typedoc/modules/directive_form_form.html +4 -7
- package/typedoc/modules/directive_if_if.html +4 -7
- package/typedoc/modules/directive_include_include.html +4 -7
- package/typedoc/modules/directive_init_init.html +4 -7
- package/typedoc/modules/directive_input_input.html +4 -7
- package/typedoc/modules/directive_messages_messages.html +4 -7
- package/typedoc/modules/directive_model-options_model-options.html +4 -9
- package/typedoc/modules/directive_model_model.html +4 -7
- package/typedoc/modules/directive_non-bindable_non-bindable.html +4 -9
- package/typedoc/modules/directive_observe_observe.html +4 -7
- package/typedoc/modules/directive_options_options.html +4 -7
- package/typedoc/modules/directive_ref_ref.html +4 -7
- package/typedoc/modules/directive_repeat_repeat.html +4 -7
- package/typedoc/modules/directive_script_script.html +4 -7
- package/typedoc/modules/directive_select_select.html +4 -7
- package/typedoc/modules/directive_setter_setter.html +4 -7
- package/typedoc/modules/directive_show-hide_show-hide.html +4 -7
- package/typedoc/modules/directive_style_style.html +4 -7
- package/typedoc/modules/directive_switch_switch.html +4 -7
- package/typedoc/modules/directive_transclude_transclude.html +4 -7
- package/typedoc/modules/directive_validators_validators.html +4 -7
- package/typedoc/modules/filters_filter.html +4 -7
- package/typedoc/modules/filters_filters.html +4 -7
- package/typedoc/modules/filters_limit-to.html +4 -7
- package/typedoc/modules/filters_order-by.html +4 -7
- package/typedoc/modules/index.html +4 -84
- package/typedoc/{variables/index.angular.html → modules/injection-tokens.html} +84 -30
- package/typedoc/modules/interface.html +35 -36
- package/typedoc/modules/loader.html +4 -7
- package/typedoc/modules/public.html +4 -7
- package/typedoc/modules/router_common_glob.html +4 -7
- package/typedoc/modules/router_common_queue.html +4 -7
- package/typedoc/modules/router_common_trace.html +4 -7
- package/typedoc/modules/router_directives_state-directives.html +4 -7
- package/typedoc/modules/router_directives_view-directive.html +4 -7
- package/typedoc/modules/router_globals.html +4 -7
- package/typedoc/modules/router_hooks_core-resolvables.html +4 -7
- package/typedoc/modules/router_hooks_ignored-transition.html +4 -7
- package/typedoc/modules/router_hooks_invalid-transition.html +4 -7
- package/typedoc/modules/router_hooks_lazy-load.html +4 -7
- package/typedoc/modules/router_hooks_on-enter-exit-retain.html +4 -7
- package/typedoc/modules/router_hooks_redirect-to.html +4 -7
- package/typedoc/modules/router_hooks_resolve.html +4 -7
- package/typedoc/modules/router_hooks_update-globals.html +4 -7
- package/typedoc/modules/router_hooks_url.html +4 -7
- package/typedoc/modules/router_hooks_views.html +4 -7
- package/typedoc/modules/router_params_interface.html +4 -7
- package/typedoc/modules/router_params_param-factory.html +4 -7
- package/typedoc/modules/router_params_param-type.html +4 -7
- package/typedoc/modules/router_params_param-types.html +4 -7
- package/typedoc/modules/router_params_param.html +4 -7
- package/typedoc/modules/router_params_state-params.html +4 -7
- package/typedoc/modules/router_path_path-node.html +4 -7
- package/typedoc/modules/router_path_path-utils.html +4 -7
- package/typedoc/modules/router_resolve_interface.html +4 -7
- package/typedoc/modules/router_resolve_resolvable.html +4 -7
- package/typedoc/modules/router_resolve_resolve-context.html +4 -7
- package/typedoc/modules/router_state-filters.html +4 -7
- package/typedoc/modules/router_state-provider.html +4 -7
- package/typedoc/modules/router_state_interface.html +4 -7
- package/typedoc/modules/router_state_state-builder.html +4 -7
- package/typedoc/modules/router_state_state-matcher.html +4 -7
- package/typedoc/modules/router_state_state-object.html +4 -7
- package/typedoc/modules/router_state_state-queue-manager.html +4 -7
- package/typedoc/modules/router_state_state-registry.html +4 -7
- package/typedoc/modules/router_state_state-service.html +4 -7
- package/typedoc/modules/router_state_target-state.html +4 -7
- package/typedoc/modules/router_state_views.html +4 -7
- package/typedoc/modules/router_template-factory.html +4 -7
- package/typedoc/modules/router_transition_hook-builder.html +4 -7
- package/typedoc/modules/router_transition_hook-registry.html +4 -7
- package/typedoc/modules/router_transition_interface.html +4 -7
- package/typedoc/modules/router_transition_reject-factory.html +4 -7
- package/typedoc/modules/router_transition_transition-event-type.html +4 -9
- package/typedoc/modules/router_transition_transition-hook.html +4 -7
- package/typedoc/modules/router_transition_transition-service.html +4 -9
- package/typedoc/modules/router_transition_transition.html +4 -7
- package/typedoc/modules/router_url_url-config.html +4 -7
- package/typedoc/modules/router_url_url-matcher.html +4 -7
- package/typedoc/modules/router_url_url-rule.html +4 -7
- package/typedoc/modules/router_url_url-rules.html +4 -7
- package/typedoc/modules/router_url_url-service.html +4 -7
- package/typedoc/modules/router_view-scroll.html +4 -7
- package/typedoc/modules/router_view_interface.html +4 -7
- package/typedoc/modules/router_view_view.html +4 -7
- package/typedoc/modules/services_anchor-scroll.html +4 -7
- package/typedoc/modules/services_browser.html +4 -7
- package/typedoc/modules/services_cookie-reader.html +4 -7
- package/typedoc/modules/services_http-backend_http-backend.html +4 -7
- package/typedoc/modules/services_http_http.html +4 -7
- package/typedoc/modules/services_log.html +4 -7
- package/typedoc/modules/services_template-request.html +4 -7
- package/typedoc/modules/shared_common.html +4 -7
- package/typedoc/modules/shared_constants.html +4 -7
- package/typedoc/modules/shared_dom.html +4 -7
- package/typedoc/modules/shared_hof.html +4 -7
- package/typedoc/modules/shared_interface.html +4 -7
- package/typedoc/modules/shared_noderef.html +4 -7
- package/typedoc/modules/shared_predicates.html +4 -7
- package/typedoc/modules/shared_strings.html +4 -7
- package/typedoc/modules/shared_test-utils.html +4 -7
- package/typedoc/modules/shared_utils.html +4 -34
- package/typedoc/modules.html +31 -8
- package/typedoc/types/animations_animate.AnimationMethod.html +4 -18
- package/typedoc/types/animations_interface.RafScheduler.html +4 -40
- package/typedoc/types/core_cache_cache-factory.TemplateCache.html +4 -18
- package/typedoc/types/core_compile_compile.ApplyDirectivesToNodeFn.html +4 -18
- package/typedoc/types/core_compile_compile.BoundTranscludeFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompileFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompileNodesFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.NodeLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.PublicLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.TranscludeFn.html +4 -18
- package/typedoc/types/core_error-handler.ErrorHandler.html +4 -18
- package/typedoc/types/core_exception-handler.LogService.html +4 -18
- package/typedoc/types/core_parse_ast_ast-node.ASTNode.html +4 -293
- package/typedoc/types/core_parse_interface.CompiledExpression.html +4 -18
- package/typedoc/types/core_parse_interface.CompiledExpressionFunction.html +7 -20
- package/typedoc/types/core_parse_interface.ParseService.html +7 -20
- package/typedoc/types/core_parse_interpreter.DecoratedASTNode.html +4 -18
- package/typedoc/types/core_scope_scope.ListenerFunction.html +4 -18
- package/typedoc/types/{interface.AnnotatedFactory.html → core_task-tracker-factory.AnnotatedFactory.html} +9 -19
- package/typedoc/types/core_url-utils_url-utils.HttpProtocol.html +4 -18
- package/typedoc/types/interface.CloneAttachFunction.html +4 -18
- package/typedoc/types/interface.ControllerConstructor.html +5 -19
- package/typedoc/types/interface.DirectiveCompileFn.html +4 -18
- package/typedoc/types/interface.DirectiveController.html +4 -18
- package/typedoc/types/interface.DirectiveFactory.html +4 -18
- package/typedoc/types/interface.DirectiveLinkFn.html +4 -18
- package/typedoc/types/interface.Expression.html +4 -18
- package/typedoc/types/interface.FilterFactory.html +4 -18
- package/typedoc/types/interface.FilterFn.html +4 -18
- package/typedoc/types/interface.Injectable.html +5 -19
- package/typedoc/types/interface.InjectableFactory.html +5 -19
- package/typedoc/types/interface.OnChangesObject.html +4 -18
- package/typedoc/types/interface.TController.html +4 -18
- package/typedoc/types/router_resolve_interface.PolicyAsync.html +4 -18
- package/typedoc/types/router_resolve_interface.PolicyWhen.html +4 -18
- package/typedoc/types/router_state_interface.RedirectToResult.html +4 -18
- package/typedoc/types/router_state_interface.ResolveTypes.html +4 -18
- package/typedoc/types/router_state_interface.StateOrName.html +4 -18
- package/typedoc/types/router_state_interface._StateDeclaration.html +4 -18
- package/typedoc/types/router_transition_interface.HookFn.html +4 -18
- package/typedoc/types/router_transition_interface.HookMatchCriterion.html +4 -18
- package/typedoc/types/router_transition_interface.HookResult.html +4 -18
- package/typedoc/types/router_transition_interface.IHookRegistration.html +4 -18
- package/typedoc/types/router_transition_interface.IStateMatch.html +4 -18
- package/typedoc/types/services_anchor-scroll.AnchorScrollFunction.html +4 -18
- package/typedoc/types/services_anchor-scroll.AnchorScrollService.html +4 -18
- package/typedoc/types/services_browser.UrlChangeListener.html +4 -18
- package/typedoc/types/services_log.LogCall.html +4 -18
- package/typedoc/types/shared_interface.Mapper.html +4 -18
- package/typedoc/types/shared_interface.Predicate.html +4 -18
- package/typedoc/types/shared_interface.PredicateBinary.html +4 -18
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +4 -18
- package/typedoc/variables/animations_shared.DELAY_KEY.html +4 -18
- package/typedoc/variables/animations_shared.DURATION_KEY.html +4 -18
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +4 -18
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +4 -18
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +4 -18
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +4 -18
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +4 -18
- package/typedoc/variables/animations_shared.TIMING_KEY.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ngMinErr.html +4 -18
- package/typedoc/variables/core_cache_cache.Cache.html +4 -18
- package/typedoc/variables/core_cache_cache.EXPANDO.html +4 -18
- package/typedoc/variables/core_cache_cache.ISOLATE_SCOPE_KEY.html +4 -18
- package/typedoc/variables/core_cache_cache.SCOPE_KEY.html +4 -18
- package/typedoc/variables/core_compile_compile.DirectiveSuffix.html +4 -18
- package/typedoc/variables/core_di_ng-module.ANIMATION_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.COMPILE_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.CONTROLLER_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.FILTER_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.INJECTOR_LITERAL.html +4 -18
- package/typedoc/variables/core_parse_interpreter.PURITY_ABSOLUTE.html +4 -18
- package/typedoc/variables/core_parse_interpreter.PURITY_RELATIVE.html +4 -18
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +4 -18
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +4 -18
- package/typedoc/variables/core_scope_scope.NONSCOPE.html +4 -18
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +4 -18
- package/typedoc/variables/core_scope_scope._postUpdateQueue.html +4 -18
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +4 -18
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassDirective.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +4 -18
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +4 -18
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +4 -18
- package/typedoc/variables/directive_form_form.formDirective.html +4 -18
- package/typedoc/variables/directive_form_form.ngFormDirective.html +4 -18
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +4 -18
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageDefaultDirective.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageDirective.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageExpDirective.html +4 -18
- package/typedoc/variables/directive_model-options_model-options.defaultModelOptions.html +4 -18
- package/typedoc/variables/directive_model_model.ngModelMinErr.html +4 -18
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +20 -22
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.patternDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +4 -18
- package/typedoc/variables/{core_di_injector.path.html → injection-tokens._injectTokens.html} +28 -24
- package/typedoc/variables/public.VERSION.html +4 -18
- package/typedoc/variables/router_common_trace.trace.html +4 -18
- package/typedoc/variables/router_directives_view-directive.ngView.html +4 -23
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +4 -18
- package/typedoc/variables/router_params_param.DefType.html +4 -18
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +4 -18
- package/typedoc/variables/router_resolve_resolve-context.resolvePolicies.html +4 -18
- package/typedoc/variables/router_transition_transition-service.defaultTransOpts.html +4 -18
- package/typedoc/variables/services_log.LogService.html +4 -25
- package/typedoc/variables/shared_common.assertMap.html +4 -18
- package/typedoc/variables/shared_common.assertPredicate.html +4 -18
- package/typedoc/variables/shared_common.pushTo.html +4 -18
- package/typedoc/variables/shared_common.removeFrom.html +4 -18
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +4 -18
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +4 -18
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +4 -18
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.VALID_CLASS.html +4 -18
- package/typedoc/variables/shared_dom.BOOLEAN_ATTR.html +4 -18
- package/typedoc/variables/shared_hof.propEq.html +4 -18
- package/typedoc/variables/shared_strings.hostRegex.html +4 -18
- package/typedoc/variables/shared_strings.splitEqual.html +4 -18
- package/typedoc/variables/shared_strings.splitHash.html +4 -18
- package/typedoc/variables/shared_strings.splitQuery.html +4 -18
- package/typedoc/variables/shared_utils.isProxySymbol.html +4 -18
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +4 -18
- package/typedoc.json +3 -1
- package/SECURITY.md +0 -16
- package/TODO.md +0 -13
- package/docs/content/en/about/featured-background.jpg +0 -0
- package/docs/content/en/about/index.md +0 -37
- package/docs/content/en/blog/_index.md +0 -8
- package/docs/content/en/blog/news/_index.md +0 -4
- package/docs/content/en/blog/news/first-post/featured-sunset-get.png +0 -0
- package/docs/content/en/blog/news/first-post/index.md +0 -46
- package/docs/content/en/blog/news/second-post.md +0 -238
- package/docs/content/en/blog/releases/_index.md +0 -4
- package/docs/content/en/blog/releases/in-depth-monoliths-detailed-spec.md +0 -238
- package/docs/content/en/community/_index.md +0 -6
- package/docs/content/en/docs/concepts/_index.md +0 -14
- package/docs/content/en/docs/contribution-guidelines/_index.md +0 -77
- package/docs/content/en/docs/examples/_index.md +0 -13
- package/docs/content/en/docs/getting-started/_index.md +0 -35
- package/docs/content/en/docs/getting-started/example-page.md +0 -231
- package/docs/content/en/docs/overview/_index.md +0 -34
- package/docs/content/en/docs/reference/_index.md +0 -12
- package/docs/content/en/docs/reference/parameter-reference.md +0 -207
- package/docs/content/en/docs/tasks/Ponycopters/_index.md +0 -12
- package/docs/content/en/docs/tasks/Ponycopters/configuring-ponycopters.md +0 -230
- package/docs/content/en/docs/tasks/Ponycopters/launching-ponycopters.md +0 -230
- package/docs/content/en/docs/tasks/_index.md +0 -21
- package/docs/content/en/docs/tasks/beds.md +0 -230
- package/docs/content/en/docs/tasks/porridge.md +0 -230
- package/docs/content/en/docs/tasks/task.md +0 -230
- package/docs/content/en/docs/tutorials/_index.md +0 -12
- package/docs/content/en/docs/tutorials/multi-bear.md +0 -230
- package/docs/content/en/docs/tutorials/tutorial2.md +0 -230
- package/docs/content/en/featured-background.jpg +0 -0
- package/docs/content/en/search.md +0 -4
- package/docs/layouts/_default/_markup/render-heading.html +0 -1
- package/public/public/legacy.html +0 -13203
- package/typedoc/functions/shared_utils.replaceInline.html +0 -331
- package/typedoc/variables/core_di_ng-module.PROVIDE_LITERAL.html +0 -263
package/dist/angular-ts.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.7.
|
|
1
|
+
/* Version: 0.7.2 - June 28, 2025 21:48:50 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* @param {*} obj
|
|
77
|
+
* @param {*} obj Reference to check.
|
|
78
78
|
* @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,
|
|
79
79
|
* String ...)
|
|
80
80
|
*/
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
key = tryDecodeURIComponent(key);
|
|
750
750
|
if (isDefined(key)) {
|
|
751
751
|
val = isDefined(val) ? tryDecodeURIComponent(val) : true;
|
|
752
|
-
if (!hasOwn(obj, key)) {
|
|
752
|
+
if (!hasOwn(obj, /** @type {string} */ (key))) {
|
|
753
753
|
obj[key] = val;
|
|
754
754
|
} else if (Array.isArray(obj[key])) {
|
|
755
755
|
obj[key].push(val);
|
|
@@ -789,12 +789,13 @@
|
|
|
789
789
|
* Tries to decode the URI component without throwing an exception.
|
|
790
790
|
*
|
|
791
791
|
* @param {string} value potential URI component to check.
|
|
792
|
-
* @returns {string}
|
|
792
|
+
* @returns {string|void}
|
|
793
793
|
*/
|
|
794
794
|
function tryDecodeURIComponent(value) {
|
|
795
795
|
try {
|
|
796
796
|
return decodeURIComponent(value);
|
|
797
797
|
} catch {
|
|
798
|
+
return;
|
|
798
799
|
}
|
|
799
800
|
}
|
|
800
801
|
|
|
@@ -1712,7 +1713,78 @@
|
|
|
1712
1713
|
}
|
|
1713
1714
|
}
|
|
1714
1715
|
|
|
1715
|
-
|
|
1716
|
+
/**
|
|
1717
|
+
* A helper list of tokens matching the standard injectables that come predefined in the core `ng` module.
|
|
1718
|
+
* These string tokens are commonly injected into services, directives, or components via `$inject`.
|
|
1719
|
+
*
|
|
1720
|
+
* Example:
|
|
1721
|
+
* ```js
|
|
1722
|
+
*
|
|
1723
|
+
* myDirective.$inject = [
|
|
1724
|
+
* angular.$injectTokens.$animate,
|
|
1725
|
+
* angular.$injectTokens.$templateRequest,
|
|
1726
|
+
* ];
|
|
1727
|
+
* ```
|
|
1728
|
+
* @type Readonly<Record<string, string>>
|
|
1729
|
+
*/
|
|
1730
|
+
const $injectTokens = Object.freeze({
|
|
1731
|
+
$$AnimateRunner: "$$AnimateRunner",
|
|
1732
|
+
$$animateAsyncRun: "$$animateAsyncRun",
|
|
1733
|
+
$$animateCache: "$$animateCache",
|
|
1734
|
+
$$animateCssDriver: "$$animateCssDriver",
|
|
1735
|
+
$$animateJs: "$$animateJs",
|
|
1736
|
+
$$animateJsDriver: "$$animateJsDriver",
|
|
1737
|
+
$$animateQueue: "$$animateQueue",
|
|
1738
|
+
$$animation: "$$animation",
|
|
1739
|
+
$$rAFScheduler: "$$rAFScheduler",
|
|
1740
|
+
$$taskTrackerFactory: "$$taskTrackerFactory",
|
|
1741
|
+
$anchorScroll: "$anchorScroll",
|
|
1742
|
+
$animate: "$animate",
|
|
1743
|
+
$animateCss: "$animateCss",
|
|
1744
|
+
$aria: "$aria",
|
|
1745
|
+
$browser: "$browser",
|
|
1746
|
+
$controller: "$controller",
|
|
1747
|
+
$eventBus: "$eventBus",
|
|
1748
|
+
$exceptionHandler: "$exceptionHandler",
|
|
1749
|
+
$filter: "$filter",
|
|
1750
|
+
$http: "$http",
|
|
1751
|
+
$httpBackend: "$httpBackend",
|
|
1752
|
+
$httpParamSerializer: "$httpParamSerializer",
|
|
1753
|
+
$interpolate: "$interpolate",
|
|
1754
|
+
$location: "$location",
|
|
1755
|
+
$log: "$log",
|
|
1756
|
+
$ngViewScroll: "$ngViewScroll",
|
|
1757
|
+
$parse: "$parse",
|
|
1758
|
+
$rootScope: "$rootScope",
|
|
1759
|
+
$routerGlobals: "$routerGlobals",
|
|
1760
|
+
$sce: "$sce",
|
|
1761
|
+
$sceDelegate: "$sceDelegate",
|
|
1762
|
+
$state: "$state",
|
|
1763
|
+
$stateRegistry: "$stateRegistry",
|
|
1764
|
+
$templateCache: "$templateCache",
|
|
1765
|
+
$templateFactory: "$templateFactory",
|
|
1766
|
+
$templateRequest: "$templateRequest",
|
|
1767
|
+
$transitions: "$transitions",
|
|
1768
|
+
$urlConfig: "$urlConfig",
|
|
1769
|
+
$urlService: "$urlService",
|
|
1770
|
+
$view: "$view",
|
|
1771
|
+
// provide literals
|
|
1772
|
+
$provide: "$provide",
|
|
1773
|
+
$injector: "$injector",
|
|
1774
|
+
$compileProvider: "$compileProvider",
|
|
1775
|
+
$animateProvider: "$animateProvider",
|
|
1776
|
+
$filterProvider: "$filterProvider",
|
|
1777
|
+
$controllerProvider: "$controllerProvider",
|
|
1778
|
+
});
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* Utility for mapping to service-names to providers
|
|
1782
|
+
* @param {String[]} services
|
|
1783
|
+
*/
|
|
1784
|
+
function provider(services) {
|
|
1785
|
+
return services.map((x) => x + "Provider");
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1716
1788
|
const INJECTOR_LITERAL = "$injector";
|
|
1717
1789
|
const COMPILE_LITERAL = "$compileProvider";
|
|
1718
1790
|
const ANIMATION_LITERAL = "$animateProvider";
|
|
@@ -1789,7 +1861,7 @@
|
|
|
1789
1861
|
* @returns {NgModule}
|
|
1790
1862
|
*/
|
|
1791
1863
|
value(name, object) {
|
|
1792
|
-
this.invokeQueue.push([
|
|
1864
|
+
this.invokeQueue.push([$injectTokens.$provide, "value", [name, object]]);
|
|
1793
1865
|
return this;
|
|
1794
1866
|
}
|
|
1795
1867
|
|
|
@@ -1799,7 +1871,11 @@
|
|
|
1799
1871
|
* @returns {NgModule}
|
|
1800
1872
|
*/
|
|
1801
1873
|
constant(name, object) {
|
|
1802
|
-
this.invokeQueue.unshift([
|
|
1874
|
+
this.invokeQueue.unshift([
|
|
1875
|
+
$injectTokens.$provide,
|
|
1876
|
+
"constant",
|
|
1877
|
+
[name, object],
|
|
1878
|
+
]);
|
|
1803
1879
|
return this;
|
|
1804
1880
|
}
|
|
1805
1881
|
|
|
@@ -1845,7 +1921,7 @@
|
|
|
1845
1921
|
providerFunction.$$moduleName = name;
|
|
1846
1922
|
}
|
|
1847
1923
|
this.invokeQueue.push([
|
|
1848
|
-
|
|
1924
|
+
$injectTokens.$provide,
|
|
1849
1925
|
"factory",
|
|
1850
1926
|
[name, providerFunction],
|
|
1851
1927
|
]);
|
|
@@ -1862,7 +1938,7 @@
|
|
|
1862
1938
|
serviceFunction.$$moduleName = name;
|
|
1863
1939
|
}
|
|
1864
1940
|
this.invokeQueue.push([
|
|
1865
|
-
|
|
1941
|
+
$injectTokens.$provide,
|
|
1866
1942
|
"service",
|
|
1867
1943
|
[name, serviceFunction],
|
|
1868
1944
|
]);
|
|
@@ -1878,7 +1954,11 @@
|
|
|
1878
1954
|
if (providerType && isFunction(providerType)) {
|
|
1879
1955
|
providerType.$$moduleName = name;
|
|
1880
1956
|
}
|
|
1881
|
-
this.invokeQueue.push([
|
|
1957
|
+
this.invokeQueue.push([
|
|
1958
|
+
$injectTokens.$provide,
|
|
1959
|
+
"provider",
|
|
1960
|
+
[name, providerType],
|
|
1961
|
+
]);
|
|
1882
1962
|
return this;
|
|
1883
1963
|
}
|
|
1884
1964
|
|
|
@@ -1891,7 +1971,11 @@
|
|
|
1891
1971
|
if (decorFn && isFunction(decorFn)) {
|
|
1892
1972
|
decorFn.$$moduleName = name;
|
|
1893
1973
|
}
|
|
1894
|
-
this.configBlocks.push([
|
|
1974
|
+
this.configBlocks.push([
|
|
1975
|
+
$injectTokens.$provide,
|
|
1976
|
+
"decorator",
|
|
1977
|
+
[name, decorFn],
|
|
1978
|
+
]);
|
|
1895
1979
|
return this;
|
|
1896
1980
|
}
|
|
1897
1981
|
|
|
@@ -1971,6 +2055,7 @@
|
|
|
1971
2055
|
this.cache = {};
|
|
1972
2056
|
/** @type {boolean} */
|
|
1973
2057
|
this.strictDi = strictDi;
|
|
2058
|
+
/** @type {string[]} */
|
|
1974
2059
|
this.path = [];
|
|
1975
2060
|
/** @type {Object.<string, import("./ng-module.js").NgModule>} */
|
|
1976
2061
|
this.modules = {};
|
|
@@ -2089,6 +2174,7 @@
|
|
|
2089
2174
|
/**
|
|
2090
2175
|
* @abstract
|
|
2091
2176
|
* @param {string} _serviceName
|
|
2177
|
+
* @returns {any}
|
|
2092
2178
|
*/
|
|
2093
2179
|
factory(_serviceName) {
|
|
2094
2180
|
console.error(`Unhandled ${_serviceName}`);
|
|
@@ -2240,7 +2326,6 @@
|
|
|
2240
2326
|
const FN_ARG = /^\s*(_?)(\S+?)\1\s*$/;
|
|
2241
2327
|
const STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
|
|
2242
2328
|
const $injectorMinErr$1 = minErr(INJECTOR_LITERAL);
|
|
2243
|
-
|
|
2244
2329
|
const providerSuffix = "Provider";
|
|
2245
2330
|
|
|
2246
2331
|
/**
|
|
@@ -2608,7 +2693,7 @@
|
|
|
2608
2693
|
this._node = element;
|
|
2609
2694
|
}
|
|
2610
2695
|
|
|
2611
|
-
//
|
|
2696
|
+
// Handle array of elements
|
|
2612
2697
|
else if (element instanceof Array) {
|
|
2613
2698
|
if (element.length == 1) {
|
|
2614
2699
|
this.initial = element[0].cloneNode(true);
|
|
@@ -2651,8 +2736,6 @@
|
|
|
2651
2736
|
} else {
|
|
2652
2737
|
this._element = undefined;
|
|
2653
2738
|
}
|
|
2654
|
-
// this._nodes = undefined;
|
|
2655
|
-
// this.isList = false;
|
|
2656
2739
|
}
|
|
2657
2740
|
|
|
2658
2741
|
/** @param {Array<Node>} nodes */
|
|
@@ -3387,7 +3470,7 @@
|
|
|
3387
3470
|
"$exceptionHandler",
|
|
3388
3471
|
/**
|
|
3389
3472
|
*
|
|
3390
|
-
* @param {import("../../core/di/internal-injector").InjectorService} $injector
|
|
3473
|
+
* @param {import("../../core/di/internal-injector.js").InjectorService} $injector
|
|
3391
3474
|
* @param {*} $$sanitizeUri
|
|
3392
3475
|
* @param {ErrorHandler} $exceptionHandler
|
|
3393
3476
|
* @returns
|
|
@@ -3614,14 +3697,11 @@
|
|
|
3614
3697
|
if (isResourceUrlAllowedByPolicy(maybeTrusted)) {
|
|
3615
3698
|
return maybeTrusted;
|
|
3616
3699
|
}
|
|
3617
|
-
$
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
maybeTrusted.toString(),
|
|
3622
|
-
),
|
|
3700
|
+
throw $sceMinErr(
|
|
3701
|
+
"insecurl",
|
|
3702
|
+
"Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",
|
|
3703
|
+
maybeTrusted.toString(),
|
|
3623
3704
|
);
|
|
3624
|
-
return;
|
|
3625
3705
|
} else if (type === SCE_CONTEXTS.HTML) {
|
|
3626
3706
|
// htmlSanitizer throws its own error when no sanitizer is available.
|
|
3627
3707
|
return htmlSanitizer();
|
|
@@ -3662,8 +3742,7 @@
|
|
|
3662
3742
|
this.$get = [
|
|
3663
3743
|
"$parse",
|
|
3664
3744
|
"$sceDelegate",
|
|
3665
|
-
|
|
3666
|
-
function ($parse, $sceDelegate, $exceptionHandler) {
|
|
3745
|
+
function ($parse, $sceDelegate) {
|
|
3667
3746
|
const sce = shallowCopy(SCE_CONTEXTS);
|
|
3668
3747
|
|
|
3669
3748
|
/**
|
|
@@ -3907,11 +3986,7 @@
|
|
|
3907
3986
|
return parse(enumValue, expr);
|
|
3908
3987
|
};
|
|
3909
3988
|
sce[snakeToCamel(`get_trusted_${lName}`)] = function (value) {
|
|
3910
|
-
|
|
3911
|
-
return getTrusted(enumValue, value);
|
|
3912
|
-
} catch (e) {
|
|
3913
|
-
$exceptionHandler(e);
|
|
3914
|
-
}
|
|
3989
|
+
return getTrusted(enumValue, value);
|
|
3915
3990
|
};
|
|
3916
3991
|
sce[snakeToCamel(`trust_as_${lName}`)] = function (value) {
|
|
3917
3992
|
return trustAs(enumValue, value);
|
|
@@ -3990,6 +4065,9 @@
|
|
|
3990
4065
|
const SIMPLE_ATTR_NAME = /^\w/;
|
|
3991
4066
|
const specialAttrHolder = document.createElement("div");
|
|
3992
4067
|
|
|
4068
|
+
/**
|
|
4069
|
+
* @implements {Record<string, any>}
|
|
4070
|
+
*/
|
|
3993
4071
|
class Attributes {
|
|
3994
4072
|
static $nonscope = true;
|
|
3995
4073
|
|
|
@@ -3999,7 +4077,7 @@
|
|
|
3999
4077
|
* @param {import("../exception-handler.js").ErrorHandler} $exceptionHandler
|
|
4000
4078
|
* @param {*} $sce
|
|
4001
4079
|
* @param {import("../../shared/noderef.js").NodeRef} [nodeRef]
|
|
4002
|
-
* @param {
|
|
4080
|
+
* @param {Object} [attributesToCopy]
|
|
4003
4081
|
*/
|
|
4004
4082
|
constructor(
|
|
4005
4083
|
$rootScope,
|
|
@@ -4446,7 +4524,7 @@
|
|
|
4446
4524
|
|
|
4447
4525
|
/**
|
|
4448
4526
|
* @param {import('../../interface.js').Provider} $provide
|
|
4449
|
-
* @param $$sanitizeUriProvider
|
|
4527
|
+
* @param {import('../sanitize/sanitize-uri.js').SanitizeUriProvider} $$sanitizeUriProvider
|
|
4450
4528
|
*/
|
|
4451
4529
|
constructor($provide, $$sanitizeUriProvider) {
|
|
4452
4530
|
const hasDirectives = {};
|
|
@@ -4458,7 +4536,7 @@
|
|
|
4458
4536
|
* @param {import("../scope/scope.js").Scope} scope
|
|
4459
4537
|
* @param {string} directiveName
|
|
4460
4538
|
* @param {boolean} isController
|
|
4461
|
-
* @returns {Object} a
|
|
4539
|
+
* @returns {Object} a configuration object for attribute bindings
|
|
4462
4540
|
*/
|
|
4463
4541
|
function parseIsolateBindings(scope, directiveName, isController) {
|
|
4464
4542
|
const LOCAL_REGEXP = /^([@&]|[=<]())(\??)\s*([\w$]*)$/;
|
|
@@ -4754,13 +4832,13 @@
|
|
|
4754
4832
|
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
|
|
4755
4833
|
*
|
|
4756
4834
|
* @param {RegExp=} regexp New regexp to trust urls with.
|
|
4757
|
-
* @returns {RegExp|
|
|
4835
|
+
* @returns {RegExp|import('../sanitize/sanitize-uri.js').SanitizeUriProvider} Current RegExp if called without value or self for
|
|
4758
4836
|
* chaining otherwise.
|
|
4759
4837
|
*/
|
|
4760
4838
|
this.aHrefSanitizationTrustedUrlList = function (regexp) {
|
|
4761
4839
|
if (isDefined(regexp)) {
|
|
4762
4840
|
$$sanitizeUriProvider.aHrefSanitizationTrustedUrlList(regexp);
|
|
4763
|
-
return
|
|
4841
|
+
return;
|
|
4764
4842
|
}
|
|
4765
4843
|
return $$sanitizeUriProvider.aHrefSanitizationTrustedUrlList();
|
|
4766
4844
|
};
|
|
@@ -4777,13 +4855,13 @@
|
|
|
4777
4855
|
* the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
|
|
4778
4856
|
*
|
|
4779
4857
|
* @param {RegExp=} regexp New regexp to trust urls with.
|
|
4780
|
-
* @returns {RegExp|
|
|
4858
|
+
* @returns {RegExp|import('../sanitize/sanitize-uri.js').SanitizeUriProvider} Current RegExp if called without value or self for
|
|
4781
4859
|
* chaining otherwise.
|
|
4782
4860
|
*/
|
|
4783
4861
|
this.imgSrcSanitizationTrustedUrlList = function (regexp) {
|
|
4784
4862
|
if (isDefined(regexp)) {
|
|
4785
4863
|
$$sanitizeUriProvider.imgSrcSanitizationTrustedUrlList(regexp);
|
|
4786
|
-
return
|
|
4864
|
+
return;
|
|
4787
4865
|
}
|
|
4788
4866
|
return $$sanitizeUriProvider.imgSrcSanitizationTrustedUrlList();
|
|
4789
4867
|
};
|
|
@@ -5597,6 +5675,7 @@
|
|
|
5597
5675
|
let controllerScope;
|
|
5598
5676
|
let elementControllers;
|
|
5599
5677
|
let transcludeFn;
|
|
5678
|
+
let scopeToChild = scope;
|
|
5600
5679
|
|
|
5601
5680
|
/** @type {NodeRef} */
|
|
5602
5681
|
let $element;
|
|
@@ -5768,7 +5847,7 @@
|
|
|
5768
5847
|
// RECURSION
|
|
5769
5848
|
// We only pass the isolate scope, if the isolate directive has a template,
|
|
5770
5849
|
// otherwise the child elements do not belong to the isolate directive.
|
|
5771
|
-
|
|
5850
|
+
|
|
5772
5851
|
if (
|
|
5773
5852
|
newIsolateScopeDirective &&
|
|
5774
5853
|
(newIsolateScopeDirective.template ||
|
|
@@ -6773,6 +6852,8 @@
|
|
|
6773
6852
|
.catch((error) => {
|
|
6774
6853
|
if (isError(error)) {
|
|
6775
6854
|
$exceptionHandler(error);
|
|
6855
|
+
} else {
|
|
6856
|
+
$exceptionHandler(new Error(error));
|
|
6776
6857
|
}
|
|
6777
6858
|
});
|
|
6778
6859
|
|
|
@@ -6880,11 +6961,12 @@
|
|
|
6880
6961
|
type = (type || "html").toLowerCase();
|
|
6881
6962
|
switch (type) {
|
|
6882
6963
|
case "svg":
|
|
6883
|
-
case "math":
|
|
6884
|
-
|
|
6885
|
-
|
|
6964
|
+
case "math": {
|
|
6965
|
+
const wrapper =
|
|
6966
|
+
/** @type {HTMLDivElement} */ document.createElement("div");
|
|
6886
6967
|
wrapper.innerHTML = `<${type}>${template}</${type}>`;
|
|
6887
6968
|
return wrapper.childNodes[0].childNodes;
|
|
6969
|
+
}
|
|
6888
6970
|
default:
|
|
6889
6971
|
return template;
|
|
6890
6972
|
}
|
|
@@ -6960,21 +7042,22 @@
|
|
|
6960
7042
|
// If you want to programmatically set explicitly trusted unsafe URLs, you should use
|
|
6961
7043
|
// `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the
|
|
6962
7044
|
// `ng-bind-html` directive.
|
|
6963
|
-
|
|
7045
|
+
let result = "";
|
|
6964
7046
|
|
|
6965
7047
|
// first check if there are spaces because it's not the same pattern
|
|
6966
|
-
|
|
7048
|
+
const trimmedSrcset = trim(value);
|
|
6967
7049
|
// ( 999x ,| 999w ,| ,|, )
|
|
6968
|
-
|
|
6969
|
-
|
|
7050
|
+
const srcPattern = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;
|
|
7051
|
+
const pattern = /\s/.test(trimmedSrcset) ? srcPattern : /(,)/;
|
|
6970
7052
|
|
|
6971
7053
|
// split srcset into tuple of uri and descriptor except for the last item
|
|
6972
|
-
|
|
7054
|
+
const rawUris = trimmedSrcset.split(pattern);
|
|
6973
7055
|
|
|
6974
7056
|
// for each tuples
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
7057
|
+
const nbrUrisWith2parts = Math.floor(rawUris.length / 2);
|
|
7058
|
+
let i;
|
|
7059
|
+
for (i = 0; i < nbrUrisWith2parts; i++) {
|
|
7060
|
+
const innerIdx = i * 2;
|
|
6978
7061
|
// sanitize the uri
|
|
6979
7062
|
result += $sce.getTrustedMediaUrl(trim(rawUris[innerIdx]));
|
|
6980
7063
|
// add the descriptor
|
|
@@ -6982,7 +7065,7 @@
|
|
|
6982
7065
|
}
|
|
6983
7066
|
|
|
6984
7067
|
// split the last item into uri and descriptor
|
|
6985
|
-
|
|
7068
|
+
const lastTuple = trim(rawUris[i * 2]).split(/\s/);
|
|
6986
7069
|
|
|
6987
7070
|
// sanitize the last uri
|
|
6988
7071
|
result += $sce.getTrustedMediaUrl(trim(lastTuple[0]));
|
|
@@ -7286,7 +7369,7 @@
|
|
|
7286
7369
|
removeWatchCollection.push(removeWatch);
|
|
7287
7370
|
break;
|
|
7288
7371
|
|
|
7289
|
-
case "=":
|
|
7372
|
+
case "=": {
|
|
7290
7373
|
if (!hasOwn(attrs, attrName)) {
|
|
7291
7374
|
if (optional) {
|
|
7292
7375
|
break;
|
|
@@ -7299,7 +7382,6 @@
|
|
|
7299
7382
|
}
|
|
7300
7383
|
|
|
7301
7384
|
parentGet = $parse(attrs[attrName]);
|
|
7302
|
-
var complexExpression = !!parentGet.inputs;
|
|
7303
7385
|
if (parentGet.literal) {
|
|
7304
7386
|
compare = equals$1;
|
|
7305
7387
|
} else {
|
|
@@ -7324,7 +7406,7 @@
|
|
|
7324
7406
|
lastValue = destination.$target[scopeName] = parentGet(
|
|
7325
7407
|
scope.$target,
|
|
7326
7408
|
);
|
|
7327
|
-
|
|
7409
|
+
const parentValueWatch = function parentValueWatch(
|
|
7328
7410
|
parentValue,
|
|
7329
7411
|
) {
|
|
7330
7412
|
if (!compare(parentValue, destination[scopeName])) {
|
|
@@ -7356,7 +7438,7 @@
|
|
|
7356
7438
|
scope.$watch(
|
|
7357
7439
|
expr,
|
|
7358
7440
|
(val) => {
|
|
7359
|
-
|
|
7441
|
+
const res = $parse(attrs[attrName], parentValueWatch);
|
|
7360
7442
|
if (val) {
|
|
7361
7443
|
if (parentGet.literal) {
|
|
7362
7444
|
scope.$target[attrName] = val;
|
|
@@ -7382,7 +7464,7 @@
|
|
|
7382
7464
|
return;
|
|
7383
7465
|
}
|
|
7384
7466
|
if (
|
|
7385
|
-
(
|
|
7467
|
+
(!!parentGet.inputs && !parentGet.literal) ||
|
|
7386
7468
|
(isUndefined(attrs[attrName]) && isDefined(val))
|
|
7387
7469
|
) {
|
|
7388
7470
|
destination.$target[attrName] = lastValue;
|
|
@@ -7414,6 +7496,7 @@
|
|
|
7414
7496
|
}
|
|
7415
7497
|
removeWatchCollection.push(removeWatch);
|
|
7416
7498
|
break;
|
|
7499
|
+
}
|
|
7417
7500
|
|
|
7418
7501
|
case "<":
|
|
7419
7502
|
if (!hasOwn(attrs, attrName)) {
|
|
@@ -10363,13 +10446,19 @@
|
|
|
10363
10446
|
};
|
|
10364
10447
|
|
|
10365
10448
|
element.addEventListener("change", listener);
|
|
10366
|
-
|
|
10449
|
+
// NgModelController call
|
|
10367
10450
|
ctrl.$render = function () {
|
|
10368
10451
|
let { value } = attr;
|
|
10369
10452
|
if (doTrim) {
|
|
10370
10453
|
value = trim(value);
|
|
10371
10454
|
}
|
|
10372
|
-
|
|
10455
|
+
const deproxy = isProxy(ctrl.$viewValue)
|
|
10456
|
+
? ctrl.$viewValue.$target
|
|
10457
|
+
: ctrl.$viewValue;
|
|
10458
|
+
// the proxy may reach down two levels
|
|
10459
|
+
element.checked =
|
|
10460
|
+
(isProxy(value) ? value.$target : value) ===
|
|
10461
|
+
(isProxy(deproxy) ? deproxy.$target : deproxy);
|
|
10373
10462
|
};
|
|
10374
10463
|
|
|
10375
10464
|
attr.$observe("value", ctrl.$render);
|
|
@@ -11164,7 +11253,6 @@
|
|
|
11164
11253
|
*/
|
|
11165
11254
|
function ngBindDirective() {
|
|
11166
11255
|
return {
|
|
11167
|
-
restrict: "EA",
|
|
11168
11256
|
/**
|
|
11169
11257
|
* @param {import('../../core/scope/scope.js').Scope} scope
|
|
11170
11258
|
* @param {Element} element
|
|
@@ -11183,7 +11271,6 @@
|
|
|
11183
11271
|
*/
|
|
11184
11272
|
function ngBindTemplateDirective() {
|
|
11185
11273
|
return {
|
|
11186
|
-
restrict: "EA",
|
|
11187
11274
|
/**
|
|
11188
11275
|
* @param {import('../../core/scope/scope.js').Scope} _scope
|
|
11189
11276
|
* @param {Element} element
|
|
@@ -11197,7 +11284,7 @@
|
|
|
11197
11284
|
};
|
|
11198
11285
|
}
|
|
11199
11286
|
|
|
11200
|
-
ngBindHtmlDirective.$inject = [
|
|
11287
|
+
ngBindHtmlDirective.$inject = [$injectTokens.$parse];
|
|
11201
11288
|
/**
|
|
11202
11289
|
* @returns {import('../../interface.ts').Directive}
|
|
11203
11290
|
*/
|
|
@@ -11232,7 +11319,6 @@
|
|
|
11232
11319
|
|
|
11233
11320
|
return function () {
|
|
11234
11321
|
return {
|
|
11235
|
-
restrict: "EA",
|
|
11236
11322
|
/**
|
|
11237
11323
|
* @param {import("../../core/scope/scope.js").Scope} scope
|
|
11238
11324
|
* @param {Element} element
|
|
@@ -11396,7 +11482,6 @@
|
|
|
11396
11482
|
*/
|
|
11397
11483
|
function ngCloakDirective() {
|
|
11398
11484
|
return {
|
|
11399
|
-
restrict: "EA",
|
|
11400
11485
|
compile(element, attr) {
|
|
11401
11486
|
attr.$set("ngCloak", undefined);
|
|
11402
11487
|
element.classList.remove("ng-cloak");
|
|
@@ -11552,26 +11637,36 @@
|
|
|
11552
11637
|
};
|
|
11553
11638
|
}
|
|
11554
11639
|
|
|
11555
|
-
ngIncludeDirective.$inject = [
|
|
11640
|
+
ngIncludeDirective.$inject = [
|
|
11641
|
+
$injectTokens.$templateRequest,
|
|
11642
|
+
$injectTokens.$anchorScroll,
|
|
11643
|
+
$injectTokens.$animate,
|
|
11644
|
+
$injectTokens.$exceptionHandler,
|
|
11645
|
+
];
|
|
11556
11646
|
|
|
11557
11647
|
/**
|
|
11558
11648
|
*
|
|
11559
11649
|
* @param {*} $templateRequest
|
|
11560
11650
|
* @param {import("../../services/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
|
|
11561
11651
|
* @param {*} $animate
|
|
11562
|
-
* @
|
|
11652
|
+
* @param {import('../../core/error-handler.js').ErrorHandler} $exceptionHandler
|
|
11653
|
+
* @returns {import('../../interface.js').Directive}
|
|
11563
11654
|
*/
|
|
11564
|
-
function ngIncludeDirective(
|
|
11655
|
+
function ngIncludeDirective(
|
|
11656
|
+
$templateRequest,
|
|
11657
|
+
$anchorScroll,
|
|
11658
|
+
$animate,
|
|
11659
|
+
$exceptionHandler,
|
|
11660
|
+
) {
|
|
11565
11661
|
return {
|
|
11566
|
-
restrict: "EA",
|
|
11567
11662
|
priority: 400,
|
|
11568
11663
|
terminal: true,
|
|
11569
11664
|
transclude: "element",
|
|
11570
11665
|
controller: () => {},
|
|
11571
11666
|
compile(_element, attr) {
|
|
11572
|
-
const srcExp = attr
|
|
11573
|
-
const onloadExp = attr
|
|
11574
|
-
const autoScrollExp = attr
|
|
11667
|
+
const srcExp = attr["ngInclude"] || attr["src"];
|
|
11668
|
+
const onloadExp = attr["onload"] || "";
|
|
11669
|
+
const autoScrollExp = attr["autoscroll"];
|
|
11575
11670
|
|
|
11576
11671
|
return (scope, $element, _$attr, ctrl, $transclude) => {
|
|
11577
11672
|
function maybeScroll() {
|
|
@@ -11624,7 +11719,7 @@
|
|
|
11624
11719
|
if (scope.$$destroyed) return;
|
|
11625
11720
|
if (thisChangeId !== changeCounter) return;
|
|
11626
11721
|
const newScope = scope.$new();
|
|
11627
|
-
ctrl
|
|
11722
|
+
ctrl["template"] = response;
|
|
11628
11723
|
|
|
11629
11724
|
// Note: This will also link all children of ng-include that were contained in the original
|
|
11630
11725
|
// html. If that content contains controllers, ... they could pollute/change the scope.
|
|
@@ -11647,19 +11742,20 @@
|
|
|
11647
11742
|
currentScope.$emit("$includeContentLoaded", src);
|
|
11648
11743
|
scope.$eval(onloadExp);
|
|
11649
11744
|
},
|
|
11650
|
-
() => {
|
|
11745
|
+
(err) => {
|
|
11651
11746
|
if (scope.$$destroyed) return;
|
|
11652
11747
|
|
|
11653
11748
|
if (thisChangeId === changeCounter) {
|
|
11654
11749
|
cleanupLastIncludeContent();
|
|
11655
11750
|
scope.$emit("$includeContentError", src);
|
|
11656
11751
|
}
|
|
11752
|
+
$exceptionHandler(new Error(err));
|
|
11657
11753
|
},
|
|
11658
11754
|
);
|
|
11659
11755
|
scope.$emit("$includeContentRequested", src);
|
|
11660
11756
|
} else {
|
|
11661
11757
|
cleanupLastIncludeContent();
|
|
11662
|
-
ctrl
|
|
11758
|
+
ctrl["template"] = null;
|
|
11663
11759
|
}
|
|
11664
11760
|
});
|
|
11665
11761
|
};
|
|
@@ -11680,7 +11776,6 @@
|
|
|
11680
11776
|
*/
|
|
11681
11777
|
function ngIncludeFillContentDirective($compile) {
|
|
11682
11778
|
return {
|
|
11683
|
-
restrict: "EA",
|
|
11684
11779
|
priority: -400,
|
|
11685
11780
|
require: "ngInclude",
|
|
11686
11781
|
link(scope, $element, _$attr, ctrl) {
|
|
@@ -11716,7 +11811,6 @@
|
|
|
11716
11811
|
*/
|
|
11717
11812
|
function ngNonBindableDirective() {
|
|
11718
11813
|
return {
|
|
11719
|
-
restrict: "EA",
|
|
11720
11814
|
terminal: true,
|
|
11721
11815
|
priority: 1000,
|
|
11722
11816
|
};
|
|
@@ -11826,7 +11920,7 @@
|
|
|
11826
11920
|
const VAR_OR_TUPLE_REGEX =
|
|
11827
11921
|
/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;
|
|
11828
11922
|
|
|
11829
|
-
ngRepeatDirective.$inject = [
|
|
11923
|
+
ngRepeatDirective.$inject = [$injectTokens.$animate];
|
|
11830
11924
|
|
|
11831
11925
|
/**
|
|
11832
11926
|
* TODO // Add type for animate service
|
|
@@ -11938,15 +12032,15 @@
|
|
|
11938
12032
|
let lastBlockMap = Object.create(null);
|
|
11939
12033
|
// watch props
|
|
11940
12034
|
$scope.$watch(rhs, (collection) => {
|
|
11941
|
-
|
|
12035
|
+
let index,
|
|
11942
12036
|
length,
|
|
11943
12037
|
previousNode = $element, // node that cloned nodes should be inserted after
|
|
11944
12038
|
// initialized to the comment node anchor
|
|
11945
|
-
nextNode
|
|
11946
|
-
|
|
12039
|
+
nextNode;
|
|
12040
|
+
const // Same as lastBlockMap but it has the current state. It will become the
|
|
11947
12041
|
// lastBlockMap on the next iteration.
|
|
11948
|
-
nextBlockMap = Object.create(null)
|
|
11949
|
-
|
|
12042
|
+
nextBlockMap = Object.create(null);
|
|
12043
|
+
let collectionLength,
|
|
11950
12044
|
key,
|
|
11951
12045
|
value, // key/value of iteration
|
|
11952
12046
|
trackById,
|
|
@@ -12012,7 +12106,7 @@
|
|
|
12012
12106
|
}
|
|
12013
12107
|
|
|
12014
12108
|
// remove leftover items
|
|
12015
|
-
for (
|
|
12109
|
+
for (let blockKey in lastBlockMap) {
|
|
12016
12110
|
block = lastBlockMap[blockKey];
|
|
12017
12111
|
elementsToRemove = block.clone;
|
|
12018
12112
|
if (hasAnimate) {
|
|
@@ -12230,7 +12324,7 @@
|
|
|
12230
12324
|
transclude: "element",
|
|
12231
12325
|
terminal: true,
|
|
12232
12326
|
priority: 1200,
|
|
12233
|
-
|
|
12327
|
+
|
|
12234
12328
|
require: "^ngSwitch",
|
|
12235
12329
|
link(scope, element, attrs, ctrl, $transclude) {
|
|
12236
12330
|
const cases = attrs["ngSwitchWhen"]
|
|
@@ -12257,7 +12351,6 @@
|
|
|
12257
12351
|
*/
|
|
12258
12352
|
function ngSwitchDefaultDirective() {
|
|
12259
12353
|
return {
|
|
12260
|
-
restrict: "EA",
|
|
12261
12354
|
transclude: "element",
|
|
12262
12355
|
terminal: true,
|
|
12263
12356
|
priority: 1200,
|
|
@@ -12271,6 +12364,12 @@
|
|
|
12271
12364
|
|
|
12272
12365
|
const ngOptionsMinErr = minErr("ngOptions");
|
|
12273
12366
|
|
|
12367
|
+
/** @type {HTMLOptionElement} */
|
|
12368
|
+
const optionTemplate = document.createElement("option");
|
|
12369
|
+
|
|
12370
|
+
/** @type {HTMLOptGroupElement} */
|
|
12371
|
+
const optGroupTemplate = document.createElement("optgroup");
|
|
12372
|
+
|
|
12274
12373
|
const NG_OPTIONS_REGEXP =
|
|
12275
12374
|
/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;
|
|
12276
12375
|
// 1: value expression (valueFn)
|
|
@@ -12293,6 +12392,12 @@
|
|
|
12293
12392
|
* @returns
|
|
12294
12393
|
*/
|
|
12295
12394
|
function ($compile, $parse) {
|
|
12395
|
+
/**
|
|
12396
|
+
* @param {import('../../interface.ts').Expression} optionsExp
|
|
12397
|
+
* @param {HTMLSelectElement} selectElement
|
|
12398
|
+
* @param {import('../../core/scope/scope.js').Scope} scope
|
|
12399
|
+
* @returns
|
|
12400
|
+
*/
|
|
12296
12401
|
function parseOptionsExpression(optionsExp, selectElement, scope) {
|
|
12297
12402
|
const match = optionsExp.match(NG_OPTIONS_REGEXP);
|
|
12298
12403
|
if (!match) {
|
|
@@ -12419,7 +12524,9 @@
|
|
|
12419
12524
|
}),
|
|
12420
12525
|
|
|
12421
12526
|
getOptions() {
|
|
12527
|
+
/** @type {Option[]} */
|
|
12422
12528
|
const optionItems = [];
|
|
12529
|
+
/** @type {Object.<string, Option>} */
|
|
12423
12530
|
const selectValueMap = {};
|
|
12424
12531
|
|
|
12425
12532
|
// The option values were already computed in the `getWatchables` fn,
|
|
@@ -12470,23 +12577,17 @@
|
|
|
12470
12577
|
};
|
|
12471
12578
|
}
|
|
12472
12579
|
|
|
12473
|
-
// Support: IE 9 only
|
|
12474
|
-
// We can't just ('<option>') since JQLite is not smart enough
|
|
12475
|
-
// to create it in <select> and IE barfs otherwise.
|
|
12476
|
-
const optionTemplate = document.createElement("option");
|
|
12477
|
-
const optGroupTemplate = document.createElement("optgroup");
|
|
12478
|
-
|
|
12479
12580
|
/**
|
|
12480
12581
|
*
|
|
12481
12582
|
* @param {import("../../core/scope/scope.js").Scope} scope
|
|
12482
12583
|
* @param {HTMLSelectElement} selectElement
|
|
12483
|
-
* @param {
|
|
12584
|
+
* @param {import("../../core/compile/attributes.js").Attributes} attr
|
|
12484
12585
|
* @param {*} ctrls
|
|
12485
12586
|
*/
|
|
12486
12587
|
function ngOptionsPostLink(scope, selectElement, attr, ctrls) {
|
|
12487
12588
|
const selectCtrl = ctrls[0];
|
|
12488
12589
|
const ngModelCtrl = ctrls[1];
|
|
12489
|
-
const
|
|
12590
|
+
const multiple = attr["multiple"];
|
|
12490
12591
|
|
|
12491
12592
|
// The emptyOption allows the application developer to provide their own custom "empty"
|
|
12492
12593
|
// option when the viewValue does not match any of the option values.
|
|
@@ -12513,7 +12614,7 @@
|
|
|
12513
12614
|
|
|
12514
12615
|
let options;
|
|
12515
12616
|
const ngOptions = parseOptionsExpression(
|
|
12516
|
-
attr
|
|
12617
|
+
attr["ngOptions"],
|
|
12517
12618
|
selectElement,
|
|
12518
12619
|
scope,
|
|
12519
12620
|
);
|
|
@@ -12572,14 +12673,14 @@
|
|
|
12572
12673
|
// If we are using `track by` then we must watch the tracked value on the model
|
|
12573
12674
|
// since ngModel only watches for object identity change
|
|
12574
12675
|
// FIXME: When a user selects an option, this watch will fire needlessly
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12676
|
+
if (ngOptions.trackBy) {
|
|
12677
|
+
scope.$watch(
|
|
12678
|
+
ngOptions.getTrackByValue(ngModelCtrl.$viewValue),
|
|
12679
|
+
() => {
|
|
12680
|
+
ngModelCtrl.$render();
|
|
12681
|
+
},
|
|
12682
|
+
);
|
|
12683
|
+
}
|
|
12583
12684
|
} else {
|
|
12584
12685
|
selectCtrl.writeValue = function writeNgOptionsMultiple(values) {
|
|
12585
12686
|
// The options might not be defined yet when ngModel tries to render
|
|
@@ -12632,11 +12733,10 @@
|
|
|
12632
12733
|
// compile the element since there might be bindings in it
|
|
12633
12734
|
const linkFn = $compile(selectCtrl.emptyOption);
|
|
12634
12735
|
assertArg$1(linkFn, "LinkFn required");
|
|
12635
|
-
linkFn(scope);
|
|
12636
|
-
|
|
12637
12736
|
selectElement.prepend(selectCtrl.emptyOption);
|
|
12737
|
+
linkFn(scope);
|
|
12638
12738
|
|
|
12639
|
-
if (selectCtrl.emptyOption
|
|
12739
|
+
if (selectCtrl.emptyOption.nodeType === Node.COMMENT_NODE) {
|
|
12640
12740
|
// This means the empty option has currently no actual DOM node, probably because
|
|
12641
12741
|
// it has been modified by a transclusion directive.
|
|
12642
12742
|
selectCtrl.hasEmptyOption = false;
|
|
@@ -12678,7 +12778,12 @@
|
|
|
12678
12778
|
// ------------------------------------------------------------------ //
|
|
12679
12779
|
|
|
12680
12780
|
function addOptionElement(option, parent) {
|
|
12681
|
-
|
|
12781
|
+
/**
|
|
12782
|
+
* @type {HTMLOptionElement}
|
|
12783
|
+
*/
|
|
12784
|
+
const optionElement = /** @type {HTMLOptionElement} */ (
|
|
12785
|
+
optionTemplate.cloneNode(false)
|
|
12786
|
+
);
|
|
12682
12787
|
parent.appendChild(optionElement);
|
|
12683
12788
|
updateOptionElement(option, optionElement);
|
|
12684
12789
|
}
|
|
@@ -12823,7 +12928,6 @@
|
|
|
12823
12928
|
*/
|
|
12824
12929
|
function ($compile) {
|
|
12825
12930
|
return {
|
|
12826
|
-
restrict: "EA",
|
|
12827
12931
|
compile: function ngTranscludeCompile(tElement) {
|
|
12828
12932
|
// Remove and cache any original content to act as a fallback
|
|
12829
12933
|
const fallbackLinkFn = $compile(tElement.childNodes);
|
|
@@ -12984,7 +13088,7 @@
|
|
|
12984
13088
|
["src", "srcset", "href"].forEach((attrName) => {
|
|
12985
13089
|
const normalized = directiveNormalize(`ng-${attrName}`);
|
|
12986
13090
|
ngAttributeAliasDirectives[normalized] = [
|
|
12987
|
-
|
|
13091
|
+
$injectTokens.$sce,
|
|
12988
13092
|
function ($sce) {
|
|
12989
13093
|
return {
|
|
12990
13094
|
priority: 99, // it needs to run after the attributes are interpolated
|
|
@@ -13135,8 +13239,8 @@
|
|
|
13135
13239
|
restrict: "A",
|
|
13136
13240
|
require: "?ngModel",
|
|
13137
13241
|
compile: (_Elm, tAttr) => {
|
|
13138
|
-
|
|
13139
|
-
|
|
13242
|
+
let patternExp;
|
|
13243
|
+
let parseFn;
|
|
13140
13244
|
|
|
13141
13245
|
if (tAttr["ngPattern"]) {
|
|
13142
13246
|
patternExp = tAttr["ngPattern"];
|
|
@@ -13159,7 +13263,7 @@
|
|
|
13159
13263
|
return function (scope, elm, attr, ctrl) {
|
|
13160
13264
|
if (!ctrl) return;
|
|
13161
13265
|
|
|
13162
|
-
|
|
13266
|
+
let attrVal = attr["pattern"];
|
|
13163
13267
|
|
|
13164
13268
|
if (attr["ngPattern"]) {
|
|
13165
13269
|
attrVal = parseFn(scope);
|
|
@@ -13167,9 +13271,9 @@
|
|
|
13167
13271
|
patternExp = attr["pattern"];
|
|
13168
13272
|
}
|
|
13169
13273
|
|
|
13170
|
-
|
|
13274
|
+
let regexp = parsePatternAttr(attrVal, patternExp, elm);
|
|
13171
13275
|
attr.$observe("pattern", function (newVal) {
|
|
13172
|
-
|
|
13276
|
+
const oldRegexp = regexp;
|
|
13173
13277
|
|
|
13174
13278
|
regexp = parsePatternAttr(newVal, patternExp, elm);
|
|
13175
13279
|
|
|
@@ -13374,10 +13478,6 @@
|
|
|
13374
13478
|
this.autoScrollingEnabled = true;
|
|
13375
13479
|
}
|
|
13376
13480
|
|
|
13377
|
-
disableAutoScrolling() {
|
|
13378
|
-
this.autoScrollingEnabled = false;
|
|
13379
|
-
}
|
|
13380
|
-
|
|
13381
13481
|
$get = [
|
|
13382
13482
|
"$location",
|
|
13383
13483
|
"$rootScope",
|
|
@@ -13764,7 +13864,7 @@
|
|
|
13764
13864
|
};
|
|
13765
13865
|
|
|
13766
13866
|
Object.entries(flags).forEach(([klass, val]) => {
|
|
13767
|
-
|
|
13867
|
+
let prop, allow;
|
|
13768
13868
|
if (val === ADD_CLASS) {
|
|
13769
13869
|
prop = "addClass";
|
|
13770
13870
|
allow = !existing[klass] || existing[klass + REMOVE_CLASS_SUFFIX];
|
|
@@ -13891,6 +13991,8 @@
|
|
|
13891
13991
|
}
|
|
13892
13992
|
|
|
13893
13993
|
AnimateProvider.$inject = ["$provide"];
|
|
13994
|
+
|
|
13995
|
+
/** @param {import('../interface.ts').Provider} $provide */
|
|
13894
13996
|
function AnimateProvider($provide) {
|
|
13895
13997
|
const provider = this;
|
|
13896
13998
|
let classNameFilter = null;
|
|
@@ -13930,7 +14032,7 @@
|
|
|
13930
14032
|
* ```
|
|
13931
14033
|
*
|
|
13932
14034
|
* @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).
|
|
13933
|
-
* @param {
|
|
14035
|
+
* @param {import("../interface.ts").Injectable} factory The factory function that will be executed to return the animation
|
|
13934
14036
|
* object.
|
|
13935
14037
|
*/
|
|
13936
14038
|
this.register = function (name, factory) {
|
|
@@ -14612,13 +14714,13 @@
|
|
|
14612
14714
|
function AnimateAsyncRunFactoryProvider() {
|
|
14613
14715
|
this.$get = [
|
|
14614
14716
|
function () {
|
|
14615
|
-
|
|
14717
|
+
let waitQueue = [];
|
|
14616
14718
|
|
|
14617
14719
|
function waitForTick(fn) {
|
|
14618
14720
|
waitQueue.push(fn);
|
|
14619
14721
|
if (waitQueue.length > 1) return;
|
|
14620
14722
|
window.requestAnimationFrame(function () {
|
|
14621
|
-
for (
|
|
14723
|
+
for (let i = 0; i < waitQueue.length; i++) {
|
|
14622
14724
|
waitQueue[i]();
|
|
14623
14725
|
}
|
|
14624
14726
|
waitQueue = [];
|
|
@@ -14626,7 +14728,7 @@
|
|
|
14626
14728
|
}
|
|
14627
14729
|
|
|
14628
14730
|
return function () {
|
|
14629
|
-
|
|
14731
|
+
let passed = false;
|
|
14630
14732
|
waitForTick(function () {
|
|
14631
14733
|
passed = true;
|
|
14632
14734
|
});
|
|
@@ -14869,7 +14971,7 @@
|
|
|
14869
14971
|
|
|
14870
14972
|
/** @typedef {import('../services/log').LogService} LogService */
|
|
14871
14973
|
|
|
14872
|
-
/** @typedef {import("./error-handler.ts").ErrorHandler
|
|
14974
|
+
/** @typedef {import("./error-handler.ts").ErrorHandler} ErrorHandler */
|
|
14873
14975
|
|
|
14874
14976
|
/**
|
|
14875
14977
|
* Provider for `$exceptionHandler` service. Delegates uncaught exceptions to `$log.error()` by default.
|
|
@@ -15163,7 +15265,7 @@
|
|
|
15163
15265
|
return [].slice.call(input, begin, end);
|
|
15164
15266
|
}
|
|
15165
15267
|
|
|
15166
|
-
orderByFilter.$inject = [
|
|
15268
|
+
orderByFilter.$inject = [$injectTokens.$parse];
|
|
15167
15269
|
|
|
15168
15270
|
/**
|
|
15169
15271
|
* @returns {import('../interface.ts').FilterFn}
|
|
@@ -15405,7 +15507,6 @@
|
|
|
15405
15507
|
this.$get = [
|
|
15406
15508
|
"$injector",
|
|
15407
15509
|
/**
|
|
15408
|
-
*
|
|
15409
15510
|
* @param {import("../../core/di/internal-injector.js").InjectorService} $injector
|
|
15410
15511
|
* @returns
|
|
15411
15512
|
*/
|
|
@@ -17296,10 +17397,10 @@
|
|
|
17296
17397
|
const cache = Object.create(null);
|
|
17297
17398
|
|
|
17298
17399
|
/** @type {function(any):boolean?} */
|
|
17299
|
-
|
|
17400
|
+
let identStart;
|
|
17300
17401
|
|
|
17301
17402
|
/** @type {function(any):boolean?} */
|
|
17302
|
-
|
|
17403
|
+
let identContinue;
|
|
17303
17404
|
|
|
17304
17405
|
/**
|
|
17305
17406
|
* Allows defining the set of characters that are allowed in AngularTS expressions. The function
|
|
@@ -17336,7 +17437,7 @@
|
|
|
17336
17437
|
*/
|
|
17337
17438
|
function ($filter) {
|
|
17338
17439
|
/** @type {import("./lexer/lexer.js").LexerOptions} */
|
|
17339
|
-
|
|
17440
|
+
const $lexerOptions = {
|
|
17340
17441
|
isIdentifierStart: isFunction(identStart) && identStart,
|
|
17341
17442
|
isIdentifierContinue: isFunction(identContinue) && identContinue,
|
|
17342
17443
|
};
|
|
@@ -17348,7 +17449,7 @@
|
|
|
17348
17449
|
* @returns any
|
|
17349
17450
|
*/
|
|
17350
17451
|
function $parse(exp, interceptorFn) {
|
|
17351
|
-
|
|
17452
|
+
let parsedExpression, cacheKey;
|
|
17352
17453
|
|
|
17353
17454
|
switch (typeof exp) {
|
|
17354
17455
|
case "string":
|
|
@@ -17358,8 +17459,8 @@
|
|
|
17358
17459
|
parsedExpression = cache[cacheKey];
|
|
17359
17460
|
|
|
17360
17461
|
if (!parsedExpression) {
|
|
17361
|
-
|
|
17362
|
-
|
|
17462
|
+
const lexer = new Lexer($lexerOptions);
|
|
17463
|
+
const parser = new Parser(lexer, $filter);
|
|
17363
17464
|
parsedExpression = parser.parse(exp);
|
|
17364
17465
|
|
|
17365
17466
|
cache[cacheKey] = addWatchDelegate(parsedExpression);
|
|
@@ -20427,6 +20528,7 @@
|
|
|
20427
20528
|
* @param {Object} target - The target object.
|
|
20428
20529
|
* @param {string} property - The name of the property being set.
|
|
20429
20530
|
* @param {*} value - The new value being assigned to the property.
|
|
20531
|
+
* @param {Proxy} proxy - The proxy intercepting property access
|
|
20430
20532
|
* @returns {boolean} - Returns true to indicate success of the operation.
|
|
20431
20533
|
*/
|
|
20432
20534
|
set(target, property, value, proxy) {
|
|
@@ -20463,13 +20565,13 @@
|
|
|
20463
20565
|
const listeners = this.watchers.get(property);
|
|
20464
20566
|
|
|
20465
20567
|
if (listeners) {
|
|
20466
|
-
this
|
|
20568
|
+
this.#scheduleListener(listeners);
|
|
20467
20569
|
}
|
|
20468
20570
|
|
|
20469
20571
|
const foreignListeners = this.foreignListeners.get(property);
|
|
20470
20572
|
|
|
20471
20573
|
if (foreignListeners) {
|
|
20472
|
-
this
|
|
20574
|
+
this.#scheduleListener(foreignListeners);
|
|
20473
20575
|
}
|
|
20474
20576
|
}
|
|
20475
20577
|
|
|
@@ -20494,16 +20596,16 @@
|
|
|
20494
20596
|
const listeners = this.watchers.get(property);
|
|
20495
20597
|
|
|
20496
20598
|
if (listeners) {
|
|
20497
|
-
this
|
|
20599
|
+
this.#scheduleListener(listeners);
|
|
20498
20600
|
}
|
|
20499
20601
|
|
|
20500
20602
|
const foreignListeners = this.foreignListeners.get(property);
|
|
20501
20603
|
|
|
20502
20604
|
if (foreignListeners) {
|
|
20503
|
-
this
|
|
20605
|
+
this.#scheduleListener(foreignListeners);
|
|
20504
20606
|
}
|
|
20505
20607
|
|
|
20506
|
-
this
|
|
20608
|
+
this.#checkeListenersForAllKeys(value);
|
|
20507
20609
|
}
|
|
20508
20610
|
target[property] = createScope(value, this);
|
|
20509
20611
|
//setDeepValue(target[property], value);
|
|
@@ -20524,7 +20626,7 @@
|
|
|
20524
20626
|
let listeners = this.watchers.get(property);
|
|
20525
20627
|
|
|
20526
20628
|
if (listeners) {
|
|
20527
|
-
this
|
|
20629
|
+
this.#scheduleListener(listeners);
|
|
20528
20630
|
}
|
|
20529
20631
|
}
|
|
20530
20632
|
|
|
@@ -20536,7 +20638,7 @@
|
|
|
20536
20638
|
let listeners = this.watchers.get(property);
|
|
20537
20639
|
|
|
20538
20640
|
if (listeners) {
|
|
20539
|
-
this
|
|
20641
|
+
this.#scheduleListener(listeners);
|
|
20540
20642
|
}
|
|
20541
20643
|
|
|
20542
20644
|
if (Array.isArray(target)) {
|
|
@@ -20545,7 +20647,7 @@
|
|
|
20545
20647
|
keys.forEach((key) => {
|
|
20546
20648
|
const listeners = this.watchers.get(key);
|
|
20547
20649
|
if (listeners) {
|
|
20548
|
-
this
|
|
20650
|
+
this.#scheduleListener(listeners);
|
|
20549
20651
|
}
|
|
20550
20652
|
});
|
|
20551
20653
|
}
|
|
@@ -20558,9 +20660,10 @@
|
|
|
20558
20660
|
if (isUndefined(target[property]) && isProxy(value)) {
|
|
20559
20661
|
this.foreignProxies.add(value);
|
|
20560
20662
|
target[property] = value;
|
|
20561
|
-
|
|
20663
|
+
if (!this.watchers.has(property)) {
|
|
20664
|
+
return true;
|
|
20665
|
+
}
|
|
20562
20666
|
}
|
|
20563
|
-
|
|
20564
20667
|
if (isUndefined(value)) {
|
|
20565
20668
|
target[property] = value;
|
|
20566
20669
|
} else {
|
|
@@ -20589,7 +20692,7 @@
|
|
|
20589
20692
|
this.watchers.get(property)?.forEach((l) => listeners.push(l));
|
|
20590
20693
|
if (listeners.length > 0) {
|
|
20591
20694
|
// check if the listener actually appllies to this target
|
|
20592
|
-
this
|
|
20695
|
+
this.#scheduleListener(listeners, (x) => {
|
|
20593
20696
|
return x.filter((x) => {
|
|
20594
20697
|
if (!x.watchProp) return true;
|
|
20595
20698
|
// Compute the expected target based on `watchProp`
|
|
@@ -20617,7 +20720,7 @@
|
|
|
20617
20720
|
);
|
|
20618
20721
|
}
|
|
20619
20722
|
|
|
20620
|
-
this
|
|
20723
|
+
this.#scheduleListener(foreignListeners);
|
|
20621
20724
|
}
|
|
20622
20725
|
}
|
|
20623
20726
|
|
|
@@ -20627,7 +20730,7 @@
|
|
|
20627
20730
|
const listeners = this.watchers.get(key);
|
|
20628
20731
|
if (listeners) {
|
|
20629
20732
|
if (this.scheduled !== listeners) {
|
|
20630
|
-
this
|
|
20733
|
+
this.#scheduleListener(listeners);
|
|
20631
20734
|
}
|
|
20632
20735
|
}
|
|
20633
20736
|
});
|
|
@@ -20637,22 +20740,6 @@
|
|
|
20637
20740
|
}
|
|
20638
20741
|
}
|
|
20639
20742
|
|
|
20640
|
-
checkeListenersForAllKeys(value) {
|
|
20641
|
-
if (isUndefined(value)) {
|
|
20642
|
-
return;
|
|
20643
|
-
}
|
|
20644
|
-
Object.keys(value).forEach((k) => {
|
|
20645
|
-
const listeners = this.watchers.get(k);
|
|
20646
|
-
|
|
20647
|
-
if (listeners) {
|
|
20648
|
-
this.scheduleListener(listeners);
|
|
20649
|
-
}
|
|
20650
|
-
if (isObject(value[k])) {
|
|
20651
|
-
this.checkeListenersForAllKeys(value[k]);
|
|
20652
|
-
}
|
|
20653
|
-
});
|
|
20654
|
-
}
|
|
20655
|
-
|
|
20656
20743
|
/**
|
|
20657
20744
|
* Intercepts property access on the target object. It checks for specific
|
|
20658
20745
|
* properties (`watch` and `sync`) and binds their methods. For other properties,
|
|
@@ -20675,8 +20762,6 @@
|
|
|
20675
20762
|
|
|
20676
20763
|
this.propertyMap = {
|
|
20677
20764
|
$watch: this.$watch.bind(this),
|
|
20678
|
-
$watchGroup: this.$watchGroup.bind(this),
|
|
20679
|
-
$watchCollection: this.$watchCollection.bind(this),
|
|
20680
20765
|
$new: this.$new.bind(this),
|
|
20681
20766
|
$newIsolate: this.$newIsolate.bind(this),
|
|
20682
20767
|
$destroy: this.$destroy.bind(this),
|
|
@@ -20684,7 +20769,7 @@
|
|
|
20684
20769
|
$apply: this.$apply.bind(this),
|
|
20685
20770
|
$evalAsync: this.$evalAsync.bind(this),
|
|
20686
20771
|
$postUpdate: this.$postUpdate.bind(this),
|
|
20687
|
-
$isRoot: this
|
|
20772
|
+
$isRoot: this.#isRoot.bind(this),
|
|
20688
20773
|
$target: target,
|
|
20689
20774
|
$proxy: this.$proxy,
|
|
20690
20775
|
$on: this.$on.bind(this),
|
|
@@ -20696,8 +20781,6 @@
|
|
|
20696
20781
|
$root: this.$root,
|
|
20697
20782
|
$children: this.$children,
|
|
20698
20783
|
$id: this.$id,
|
|
20699
|
-
registerForeignKey: this.registerForeignKey.bind(this),
|
|
20700
|
-
notifyListener: this.notifyListener.bind(this),
|
|
20701
20784
|
$merge: this.$merge.bind(this),
|
|
20702
20785
|
$getById: this.$getById.bind(this),
|
|
20703
20786
|
};
|
|
@@ -20718,7 +20801,7 @@
|
|
|
20718
20801
|
|
|
20719
20802
|
// TODO aditional testing
|
|
20720
20803
|
if (property === "unshift") {
|
|
20721
|
-
this
|
|
20804
|
+
this.#scheduleListener(this.scheduled);
|
|
20722
20805
|
}
|
|
20723
20806
|
}
|
|
20724
20807
|
|
|
@@ -20731,26 +20814,6 @@
|
|
|
20731
20814
|
}
|
|
20732
20815
|
}
|
|
20733
20816
|
|
|
20734
|
-
/**
|
|
20735
|
-
* @private
|
|
20736
|
-
* @param {Listener[]} listeners
|
|
20737
|
-
*/
|
|
20738
|
-
scheduleListener(listeners, filter = (val) => val) {
|
|
20739
|
-
Promise.resolve().then(() => {
|
|
20740
|
-
let index = 0;
|
|
20741
|
-
let filteredListeners = filter(listeners);
|
|
20742
|
-
while (index < filteredListeners.length) {
|
|
20743
|
-
const listener = filteredListeners[index];
|
|
20744
|
-
if (listener.foreignListener) {
|
|
20745
|
-
listener.foreignListener.notifyListener(listener, this.$target);
|
|
20746
|
-
} else {
|
|
20747
|
-
this.notifyListener(listener, this.$target);
|
|
20748
|
-
}
|
|
20749
|
-
index++;
|
|
20750
|
-
}
|
|
20751
|
-
});
|
|
20752
|
-
}
|
|
20753
|
-
|
|
20754
20817
|
deleteProperty(target, property) {
|
|
20755
20818
|
// Currently deletes $model
|
|
20756
20819
|
if (target[property] && target[property][isProxySymbol]) {
|
|
@@ -20758,20 +20821,20 @@
|
|
|
20758
20821
|
|
|
20759
20822
|
let listeners = this.watchers.get(property);
|
|
20760
20823
|
if (listeners) {
|
|
20761
|
-
this
|
|
20824
|
+
this.#scheduleListener(listeners);
|
|
20762
20825
|
}
|
|
20763
20826
|
if (this.objectListeners.has(this.$proxy)) {
|
|
20764
20827
|
let keys = this.objectListeners.get(this.$proxy);
|
|
20765
20828
|
keys.forEach((key) => {
|
|
20766
20829
|
listeners = this.watchers.get(key);
|
|
20767
20830
|
if (listeners) {
|
|
20768
|
-
this
|
|
20831
|
+
this.#scheduleListener(listeners);
|
|
20769
20832
|
}
|
|
20770
20833
|
});
|
|
20771
20834
|
}
|
|
20772
20835
|
|
|
20773
20836
|
if (this.scheduled) {
|
|
20774
|
-
this
|
|
20837
|
+
this.#scheduleListener(this.scheduled);
|
|
20775
20838
|
this.scheduled = [];
|
|
20776
20839
|
}
|
|
20777
20840
|
return true;
|
|
@@ -20784,19 +20847,54 @@
|
|
|
20784
20847
|
keys.forEach((key) => {
|
|
20785
20848
|
const listeners = this.watchers.get(key);
|
|
20786
20849
|
if (listeners) {
|
|
20787
|
-
this
|
|
20850
|
+
this.#scheduleListener(listeners);
|
|
20788
20851
|
}
|
|
20789
20852
|
});
|
|
20790
20853
|
} else {
|
|
20791
20854
|
const listeners = this.watchers.get(property);
|
|
20792
20855
|
if (listeners) {
|
|
20793
|
-
this
|
|
20856
|
+
this.#scheduleListener(listeners, target[property]);
|
|
20794
20857
|
}
|
|
20795
20858
|
}
|
|
20796
20859
|
|
|
20797
20860
|
return true;
|
|
20798
20861
|
}
|
|
20799
20862
|
|
|
20863
|
+
#checkeListenersForAllKeys(value) {
|
|
20864
|
+
if (isUndefined(value)) {
|
|
20865
|
+
return;
|
|
20866
|
+
}
|
|
20867
|
+
Object.keys(value).forEach((k) => {
|
|
20868
|
+
const listeners = this.watchers.get(k);
|
|
20869
|
+
|
|
20870
|
+
if (listeners) {
|
|
20871
|
+
this.#scheduleListener(listeners);
|
|
20872
|
+
}
|
|
20873
|
+
if (isObject(value[k])) {
|
|
20874
|
+
this.#checkeListenersForAllKeys(value[k]);
|
|
20875
|
+
}
|
|
20876
|
+
});
|
|
20877
|
+
}
|
|
20878
|
+
|
|
20879
|
+
/**
|
|
20880
|
+
* @param {Listener[]} listeners
|
|
20881
|
+
*/
|
|
20882
|
+
#scheduleListener(listeners, filter = (val) => val) {
|
|
20883
|
+
Promise.resolve().then(() => {
|
|
20884
|
+
let index = 0;
|
|
20885
|
+
let filteredListeners = filter(listeners);
|
|
20886
|
+
while (index < filteredListeners.length) {
|
|
20887
|
+
const listener = filteredListeners[index];
|
|
20888
|
+
if (listener.foreignListener) {
|
|
20889
|
+
listener.foreignListener.#notifyListener(listener, this.$target);
|
|
20890
|
+
} else {
|
|
20891
|
+
this.#notifyListener(listener, this.$target);
|
|
20892
|
+
}
|
|
20893
|
+
index++;
|
|
20894
|
+
}
|
|
20895
|
+
});
|
|
20896
|
+
}
|
|
20897
|
+
|
|
20800
20898
|
/**
|
|
20801
20899
|
* Registers a watcher for a property along with a listener function. The listener
|
|
20802
20900
|
* function is invoked when changes to that property are detected.
|
|
@@ -20814,7 +20912,6 @@
|
|
|
20814
20912
|
if (get.constant) {
|
|
20815
20913
|
if (listenerFn) {
|
|
20816
20914
|
Promise.resolve().then(() => {
|
|
20817
|
-
// @ts-ignore
|
|
20818
20915
|
let res = get();
|
|
20819
20916
|
while (isFunction(res)) {
|
|
20820
20917
|
res = res();
|
|
@@ -20873,11 +20970,11 @@
|
|
|
20873
20970
|
keys.push(get.decoratedNode.body[0].expression.left.toWatch[0]?.name);
|
|
20874
20971
|
keys.push(get.decoratedNode.body[0].expression.right.toWatch[0]?.name);
|
|
20875
20972
|
keys.forEach((key) => {
|
|
20876
|
-
this
|
|
20973
|
+
this.#registerKey(key, listener);
|
|
20877
20974
|
});
|
|
20878
20975
|
return () => {
|
|
20879
20976
|
keys.forEach((key) => {
|
|
20880
|
-
this
|
|
20977
|
+
this.#deregisterKey(key, listener.id);
|
|
20881
20978
|
});
|
|
20882
20979
|
};
|
|
20883
20980
|
}
|
|
@@ -20910,13 +21007,13 @@
|
|
|
20910
21007
|
}
|
|
20911
21008
|
});
|
|
20912
21009
|
keys.forEach((key) => {
|
|
20913
|
-
this
|
|
20914
|
-
this
|
|
21010
|
+
this.#registerKey(key, listener);
|
|
21011
|
+
this.#scheduleListener([listener]);
|
|
20915
21012
|
});
|
|
20916
21013
|
|
|
20917
21014
|
return () => {
|
|
20918
21015
|
keys.forEach((key) => {
|
|
20919
|
-
this
|
|
21016
|
+
this.#deregisterKey(key, listener.id);
|
|
20920
21017
|
});
|
|
20921
21018
|
};
|
|
20922
21019
|
}
|
|
@@ -20939,10 +21036,10 @@
|
|
|
20939
21036
|
watchProp.split(".").slice(0, -1).join("."),
|
|
20940
21037
|
)(listener.originalTarget);
|
|
20941
21038
|
if (potentialProxy && this.foreignProxies.has(potentialProxy)) {
|
|
20942
|
-
potentialProxy.$handler
|
|
20943
|
-
potentialProxy.$handler
|
|
21039
|
+
potentialProxy.$handler.#registerForeignKey(key, listener);
|
|
21040
|
+
potentialProxy.$handler.#scheduleListener([listener]);
|
|
20944
21041
|
return () => {
|
|
20945
|
-
return potentialProxy.$handler
|
|
21042
|
+
return potentialProxy.$handler.#deregisterKey(key, listener.id);
|
|
20946
21043
|
};
|
|
20947
21044
|
}
|
|
20948
21045
|
}
|
|
@@ -20973,12 +21070,12 @@
|
|
|
20973
21070
|
})
|
|
20974
21071
|
.filter((x) => !!x);
|
|
20975
21072
|
keys.forEach((key) => {
|
|
20976
|
-
this
|
|
20977
|
-
this
|
|
21073
|
+
this.#registerKey(key, listener);
|
|
21074
|
+
this.#scheduleListener([listener]);
|
|
20978
21075
|
});
|
|
20979
21076
|
return () => {
|
|
20980
21077
|
keys.forEach((key) => {
|
|
20981
|
-
this
|
|
21078
|
+
this.#deregisterKey(key, listener.id);
|
|
20982
21079
|
});
|
|
20983
21080
|
};
|
|
20984
21081
|
}
|
|
@@ -21040,39 +21137,31 @@
|
|
|
21040
21137
|
|
|
21041
21138
|
if (keySet.length > 0) {
|
|
21042
21139
|
keySet.forEach((key) => {
|
|
21043
|
-
this
|
|
21140
|
+
this.#registerKey(key, listener);
|
|
21044
21141
|
});
|
|
21045
21142
|
} else {
|
|
21046
|
-
this
|
|
21143
|
+
this.#registerKey(key, listener);
|
|
21047
21144
|
}
|
|
21048
21145
|
|
|
21049
21146
|
if (!lazy) {
|
|
21050
|
-
this
|
|
21147
|
+
this.#scheduleListener([listener]);
|
|
21051
21148
|
}
|
|
21052
21149
|
return () => {
|
|
21053
21150
|
if (keySet.length > 0) {
|
|
21054
21151
|
let res = true;
|
|
21055
21152
|
keySet.forEach((key) => {
|
|
21056
|
-
let success = this
|
|
21153
|
+
let success = this.#deregisterKey(key, listener.id);
|
|
21057
21154
|
if (!success) {
|
|
21058
21155
|
res = false;
|
|
21059
21156
|
}
|
|
21060
21157
|
});
|
|
21061
21158
|
return res;
|
|
21062
21159
|
} else {
|
|
21063
|
-
return this
|
|
21160
|
+
return this.#deregisterKey(key, listener.id);
|
|
21064
21161
|
}
|
|
21065
21162
|
};
|
|
21066
21163
|
}
|
|
21067
21164
|
|
|
21068
|
-
$watchGroup(watchArray, listenerFn) {
|
|
21069
|
-
watchArray.forEach((x) => this.$watch(x, listenerFn));
|
|
21070
|
-
}
|
|
21071
|
-
|
|
21072
|
-
$watchCollection(watchProp, listenerFn) {
|
|
21073
|
-
return this.$watch(watchProp, listenerFn);
|
|
21074
|
-
}
|
|
21075
|
-
|
|
21076
21165
|
$new(childInstance) {
|
|
21077
21166
|
let child;
|
|
21078
21167
|
if (childInstance) {
|
|
@@ -21102,7 +21191,6 @@
|
|
|
21102
21191
|
|
|
21103
21192
|
$newIsolate(instance) {
|
|
21104
21193
|
let child = instance ? Object.create(instance) : Object.create(null);
|
|
21105
|
-
// child.$root = this.$root;
|
|
21106
21194
|
const proxy = new Proxy(child, new Scope(this, this.$root));
|
|
21107
21195
|
this.$children.push(proxy);
|
|
21108
21196
|
return proxy;
|
|
@@ -21115,7 +21203,7 @@
|
|
|
21115
21203
|
return proxy;
|
|
21116
21204
|
}
|
|
21117
21205
|
|
|
21118
|
-
registerKey(key, listener) {
|
|
21206
|
+
#registerKey(key, listener) {
|
|
21119
21207
|
if (this.watchers.has(key)) {
|
|
21120
21208
|
this.watchers.get(key).push(listener);
|
|
21121
21209
|
} else {
|
|
@@ -21123,7 +21211,7 @@
|
|
|
21123
21211
|
}
|
|
21124
21212
|
}
|
|
21125
21213
|
|
|
21126
|
-
registerForeignKey(key, listener) {
|
|
21214
|
+
#registerForeignKey(key, listener) {
|
|
21127
21215
|
if (this.foreignListeners.has(key)) {
|
|
21128
21216
|
this.foreignListeners.get(key).push(listener);
|
|
21129
21217
|
} else {
|
|
@@ -21131,7 +21219,7 @@
|
|
|
21131
21219
|
}
|
|
21132
21220
|
}
|
|
21133
21221
|
|
|
21134
|
-
deregisterKey(key, id) {
|
|
21222
|
+
#deregisterKey(key, id) {
|
|
21135
21223
|
const listenerList = this.watchers.get(key);
|
|
21136
21224
|
if (!listenerList) return false;
|
|
21137
21225
|
|
|
@@ -21147,21 +21235,21 @@
|
|
|
21147
21235
|
return true;
|
|
21148
21236
|
}
|
|
21149
21237
|
|
|
21150
|
-
deregisterForeignKey(key, id) {
|
|
21151
|
-
|
|
21152
|
-
|
|
21238
|
+
// deregisterForeignKey(key, id) {
|
|
21239
|
+
// const listenerList = this.foreignListeners.get(key);
|
|
21240
|
+
// if (!listenerList) return false;
|
|
21153
21241
|
|
|
21154
|
-
|
|
21155
|
-
|
|
21242
|
+
// const index = listenerList.findIndex((x) => x.id === id);
|
|
21243
|
+
// if (index === -1) return false;
|
|
21156
21244
|
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
}
|
|
21245
|
+
// listenerList.splice(index, 1);
|
|
21246
|
+
// if (listenerList.length) {
|
|
21247
|
+
// this.foreignListeners.set(key, listenerList);
|
|
21248
|
+
// } else {
|
|
21249
|
+
// this.foreignListeners.delete(key);
|
|
21250
|
+
// }
|
|
21251
|
+
// return true;
|
|
21252
|
+
// }
|
|
21165
21253
|
|
|
21166
21254
|
$eval(expr, locals) {
|
|
21167
21255
|
const fn = $parse(expr);
|
|
@@ -21189,12 +21277,19 @@
|
|
|
21189
21277
|
return await this.$eval(expr, locals);
|
|
21190
21278
|
}
|
|
21191
21279
|
|
|
21280
|
+
/**
|
|
21281
|
+
* @param {Object} newTarget
|
|
21282
|
+
*/
|
|
21192
21283
|
$merge(newTarget) {
|
|
21193
21284
|
Object.entries(newTarget).forEach(([key, value]) => {
|
|
21194
|
-
this.set(this.$target, key, value);
|
|
21285
|
+
this.set(this.$target, key, value, this.$proxy);
|
|
21195
21286
|
});
|
|
21196
21287
|
}
|
|
21197
21288
|
|
|
21289
|
+
/**
|
|
21290
|
+
* @param {import('../../interface.js').Expression} expr
|
|
21291
|
+
* @returns {any}
|
|
21292
|
+
*/
|
|
21198
21293
|
$apply(expr) {
|
|
21199
21294
|
try {
|
|
21200
21295
|
return $parse(expr)(this.$proxy);
|
|
@@ -21203,6 +21298,11 @@
|
|
|
21203
21298
|
}
|
|
21204
21299
|
}
|
|
21205
21300
|
|
|
21301
|
+
/**
|
|
21302
|
+
* @param {string} name
|
|
21303
|
+
* @param {Function} listener
|
|
21304
|
+
* @returns {(function(): void)|*}
|
|
21305
|
+
*/
|
|
21206
21306
|
$on(name, listener) {
|
|
21207
21307
|
let namedListeners = this.$$listeners.get(name);
|
|
21208
21308
|
if (!namedListeners) {
|
|
@@ -21225,10 +21325,10 @@
|
|
|
21225
21325
|
/**
|
|
21226
21326
|
* @param {string} name
|
|
21227
21327
|
* @param {...any} args
|
|
21228
|
-
* @returns
|
|
21328
|
+
* @returns {void}
|
|
21229
21329
|
*/
|
|
21230
21330
|
$emit(name, ...args) {
|
|
21231
|
-
return this
|
|
21331
|
+
return this.#eventHelper(
|
|
21232
21332
|
{ name: name, event: undefined, broadcast: false },
|
|
21233
21333
|
...args,
|
|
21234
21334
|
);
|
|
@@ -21240,21 +21340,20 @@
|
|
|
21240
21340
|
* @returns {any}
|
|
21241
21341
|
*/
|
|
21242
21342
|
$broadcast(name, ...args) {
|
|
21243
|
-
return this
|
|
21343
|
+
return this.#eventHelper(
|
|
21244
21344
|
{ name: name, event: undefined, broadcast: true },
|
|
21245
21345
|
...args,
|
|
21246
21346
|
);
|
|
21247
21347
|
}
|
|
21248
21348
|
|
|
21249
21349
|
/**
|
|
21250
|
-
* @private
|
|
21251
21350
|
* @returns {void}
|
|
21252
21351
|
*/
|
|
21253
|
-
eventHelper({ name, event, broadcast }, ...args) {
|
|
21352
|
+
#eventHelper({ name, event, broadcast }, ...args) {
|
|
21254
21353
|
if (!broadcast) {
|
|
21255
21354
|
if (!this.$$listeners.has(name)) {
|
|
21256
21355
|
if (this.$parent) {
|
|
21257
|
-
return this.$parent.$handler
|
|
21356
|
+
return this.$parent.$handler.#eventHelper(
|
|
21258
21357
|
{ name: name, event: event, broadcast: broadcast },
|
|
21259
21358
|
...args,
|
|
21260
21359
|
);
|
|
@@ -21309,7 +21408,7 @@
|
|
|
21309
21408
|
if (broadcast) {
|
|
21310
21409
|
if (this.$children.length > 0) {
|
|
21311
21410
|
this.$children.forEach((child) => {
|
|
21312
|
-
event = child["$handler"]
|
|
21411
|
+
event = child["$handler"].#eventHelper(
|
|
21313
21412
|
{ name: name, event: event, broadcast: broadcast },
|
|
21314
21413
|
...args,
|
|
21315
21414
|
);
|
|
@@ -21318,7 +21417,7 @@
|
|
|
21318
21417
|
return event;
|
|
21319
21418
|
} else {
|
|
21320
21419
|
if (this.$parent) {
|
|
21321
|
-
return this.$parent
|
|
21420
|
+
return this.$parent.#eventHelper(
|
|
21322
21421
|
{ name: name, event: event, broadcast: broadcast },
|
|
21323
21422
|
...args,
|
|
21324
21423
|
);
|
|
@@ -21329,10 +21428,9 @@
|
|
|
21329
21428
|
}
|
|
21330
21429
|
|
|
21331
21430
|
/**
|
|
21332
|
-
* @private
|
|
21333
21431
|
* @returns {boolean}
|
|
21334
21432
|
*/
|
|
21335
|
-
isRoot() {
|
|
21433
|
+
#isRoot() {
|
|
21336
21434
|
return this.$root == /** @type {Scope} */ (this);
|
|
21337
21435
|
}
|
|
21338
21436
|
|
|
@@ -21351,7 +21449,7 @@
|
|
|
21351
21449
|
);
|
|
21352
21450
|
});
|
|
21353
21451
|
|
|
21354
|
-
if (this
|
|
21452
|
+
if (this.#isRoot()) {
|
|
21355
21453
|
this.watchers.clear();
|
|
21356
21454
|
} else {
|
|
21357
21455
|
let i = this.$parent.$children.filter((x) => x.$id == this.$id)[0];
|
|
@@ -21364,11 +21462,9 @@
|
|
|
21364
21462
|
}
|
|
21365
21463
|
|
|
21366
21464
|
/**
|
|
21367
|
-
* Invokes the registered listener function with watched property changes.
|
|
21368
|
-
*
|
|
21369
21465
|
* @param {Listener} listener - The property path that was changed.
|
|
21370
21466
|
*/
|
|
21371
|
-
notifyListener(listener, target) {
|
|
21467
|
+
#notifyListener(listener, target) {
|
|
21372
21468
|
const { originalTarget, listenerFn, watchFn } = listener;
|
|
21373
21469
|
try {
|
|
21374
21470
|
let newVal = watchFn(originalTarget);
|
|
@@ -21427,6 +21523,8 @@
|
|
|
21427
21523
|
}
|
|
21428
21524
|
}
|
|
21429
21525
|
|
|
21526
|
+
/*------------- Private helpers -------------*/
|
|
21527
|
+
|
|
21430
21528
|
/**
|
|
21431
21529
|
* @param {Scope} model
|
|
21432
21530
|
* @returns {number}
|
|
@@ -21460,7 +21558,14 @@
|
|
|
21460
21558
|
return ids;
|
|
21461
21559
|
}
|
|
21462
21560
|
|
|
21561
|
+
/** @typedef {import('../interface.ts').ServiceProvider} ServiceProvider */
|
|
21562
|
+
/** @typedef {import('../interface.ts').AnnotatedFactory} AnnotatedFactory */
|
|
21563
|
+
|
|
21564
|
+
/**
|
|
21565
|
+
* @implements {ServiceProvider}
|
|
21566
|
+
*/
|
|
21463
21567
|
class TaskTrackerFactoryProvider {
|
|
21568
|
+
/** @type {AnnotatedFactory} */
|
|
21464
21569
|
$get = [
|
|
21465
21570
|
"$log",
|
|
21466
21571
|
/**
|
|
@@ -21599,7 +21704,7 @@
|
|
|
21599
21704
|
}
|
|
21600
21705
|
}
|
|
21601
21706
|
|
|
21602
|
-
|
|
21707
|
+
const $templateRequestMinErr = minErr("$templateRequest");
|
|
21603
21708
|
|
|
21604
21709
|
/**
|
|
21605
21710
|
* Used to configure the options passed to the {@link $http} service when making a template request.
|
|
@@ -21608,7 +21713,7 @@
|
|
|
21608
21713
|
* requesting a template.
|
|
21609
21714
|
*/
|
|
21610
21715
|
function TemplateRequestProvider() {
|
|
21611
|
-
|
|
21716
|
+
let httpOptions;
|
|
21612
21717
|
|
|
21613
21718
|
/**
|
|
21614
21719
|
* The options to be passed to the {@link $http} service when making the request.
|
|
@@ -21674,13 +21779,17 @@
|
|
|
21674
21779
|
// AngularTS accept any script directive, no matter its name. However, we
|
|
21675
21780
|
// still need to unwrap trusted types.
|
|
21676
21781
|
if (!isString(tpl) || !$templateCache.has(tpl)) {
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21782
|
+
try {
|
|
21783
|
+
tpl = $sce.getTrustedResourceUrl(tpl);
|
|
21784
|
+
if (!tpl) {
|
|
21785
|
+
return Promise.reject("Template not found");
|
|
21786
|
+
}
|
|
21787
|
+
} catch (e) {
|
|
21788
|
+
return Promise.reject(e.message);
|
|
21680
21789
|
}
|
|
21681
21790
|
}
|
|
21682
21791
|
|
|
21683
|
-
|
|
21792
|
+
let transformResponse =
|
|
21684
21793
|
$http.defaults && $http.defaults.transformResponse;
|
|
21685
21794
|
|
|
21686
21795
|
if (Array.isArray(transformResponse)) {
|
|
@@ -21792,6 +21901,7 @@
|
|
|
21792
21901
|
return (uri, isMediaUrl) => {
|
|
21793
21902
|
if (!uri) return uri;
|
|
21794
21903
|
|
|
21904
|
+
/** @type {RegExp} */
|
|
21795
21905
|
const regex = isMediaUrl
|
|
21796
21906
|
? this._imgSrcSanitizationTrustedUrlList
|
|
21797
21907
|
: this._aHrefSanitizationTrustedUrlList;
|
|
@@ -21831,7 +21941,7 @@
|
|
|
21831
21941
|
this.head = undefined;
|
|
21832
21942
|
this.default = undefined;
|
|
21833
21943
|
|
|
21834
|
-
this.$scope.$
|
|
21944
|
+
this.$scope.$watch(
|
|
21835
21945
|
this.$attrs["ngMessages"] || this.$attrs["for"],
|
|
21836
21946
|
this.render.bind(this),
|
|
21837
21947
|
);
|
|
@@ -22073,7 +22183,7 @@
|
|
|
22073
22183
|
|
|
22074
22184
|
if (dynamicExp) {
|
|
22075
22185
|
assignRecords(scope.$eval(dynamicExp));
|
|
22076
|
-
scope.$
|
|
22186
|
+
scope.$watch(dynamicExp, assignRecords);
|
|
22077
22187
|
} else {
|
|
22078
22188
|
assignRecords(staticExp);
|
|
22079
22189
|
}
|
|
@@ -22232,7 +22342,7 @@
|
|
|
22232
22342
|
};
|
|
22233
22343
|
}
|
|
22234
22344
|
|
|
22235
|
-
ngDisabledAriaDirective.$inject = [
|
|
22345
|
+
ngDisabledAriaDirective.$inject = [$injectTokens.$aria];
|
|
22236
22346
|
function ngDisabledAriaDirective($aria) {
|
|
22237
22347
|
return $aria.$$watchExpr(
|
|
22238
22348
|
"ngDisabled",
|
|
@@ -22242,7 +22352,7 @@
|
|
|
22242
22352
|
);
|
|
22243
22353
|
}
|
|
22244
22354
|
|
|
22245
|
-
ngShowAriaDirective.$inject = [
|
|
22355
|
+
ngShowAriaDirective.$inject = [$injectTokens.$aria];
|
|
22246
22356
|
function ngShowAriaDirective($aria) {
|
|
22247
22357
|
return $aria.$$watchExpr("ngShow", "aria-hidden", [], true);
|
|
22248
22358
|
}
|
|
@@ -22261,11 +22371,11 @@
|
|
|
22261
22371
|
};
|
|
22262
22372
|
}
|
|
22263
22373
|
|
|
22264
|
-
ngClickAriaDirective.$inject = [
|
|
22374
|
+
ngClickAriaDirective.$inject = [$injectTokens.$aria, $injectTokens.$parse];
|
|
22265
22375
|
function ngClickAriaDirective($aria, $parse) {
|
|
22266
22376
|
return {
|
|
22267
22377
|
restrict: "A",
|
|
22268
|
-
compile(
|
|
22378
|
+
compile(_elem, attr) {
|
|
22269
22379
|
if (hasOwn(attr, ARIA_DISABLE_ATTR)) return;
|
|
22270
22380
|
|
|
22271
22381
|
const fn = $parse(attr.ngClick);
|
|
@@ -22325,7 +22435,7 @@
|
|
|
22325
22435
|
};
|
|
22326
22436
|
}
|
|
22327
22437
|
|
|
22328
|
-
ngRequiredAriaDirective.$inject = [
|
|
22438
|
+
ngRequiredAriaDirective.$inject = [$injectTokens.$aria];
|
|
22329
22439
|
function ngRequiredAriaDirective($aria) {
|
|
22330
22440
|
return $aria.$$watchExpr(
|
|
22331
22441
|
"ngRequired",
|
|
@@ -22345,7 +22455,7 @@
|
|
|
22345
22455
|
);
|
|
22346
22456
|
}
|
|
22347
22457
|
|
|
22348
|
-
ngValueAriaDirective.$inject = [
|
|
22458
|
+
ngValueAriaDirective.$inject = [$injectTokens.$aria];
|
|
22349
22459
|
function ngValueAriaDirective($aria) {
|
|
22350
22460
|
return $aria.$$watchExpr(
|
|
22351
22461
|
"ngValue",
|
|
@@ -22355,12 +22465,12 @@
|
|
|
22355
22465
|
);
|
|
22356
22466
|
}
|
|
22357
22467
|
|
|
22358
|
-
ngHideAriaDirective.$inject = [
|
|
22468
|
+
ngHideAriaDirective.$inject = [$injectTokens.$aria];
|
|
22359
22469
|
function ngHideAriaDirective($aria) {
|
|
22360
22470
|
return $aria.$$watchExpr("ngHide", "aria-hidden", [], false);
|
|
22361
22471
|
}
|
|
22362
22472
|
|
|
22363
|
-
ngReadonlyAriaDirective.$inject = [
|
|
22473
|
+
ngReadonlyAriaDirective.$inject = [$injectTokens.$aria];
|
|
22364
22474
|
function ngReadonlyAriaDirective($aria) {
|
|
22365
22475
|
return $aria.$$watchExpr(
|
|
22366
22476
|
"ngReadonly",
|
|
@@ -22370,7 +22480,7 @@
|
|
|
22370
22480
|
);
|
|
22371
22481
|
}
|
|
22372
22482
|
|
|
22373
|
-
ngModelAriaDirective.$inject = [
|
|
22483
|
+
ngModelAriaDirective.$inject = [$injectTokens.$aria];
|
|
22374
22484
|
function ngModelAriaDirective($aria) {
|
|
22375
22485
|
function shouldAttachAttr(attr, normalizedAttr, elem, allowNonAriaNodes) {
|
|
22376
22486
|
return (
|
|
@@ -22513,7 +22623,7 @@
|
|
|
22513
22623
|
};
|
|
22514
22624
|
}
|
|
22515
22625
|
|
|
22516
|
-
ngDblclickAriaDirective.$inject = [
|
|
22626
|
+
ngDblclickAriaDirective.$inject = [$injectTokens.$aria];
|
|
22517
22627
|
function ngDblclickAriaDirective($aria) {
|
|
22518
22628
|
return function (scope, elem, attr) {
|
|
22519
22629
|
if (hasOwn(attr, ARIA_DISABLE_ATTR)) return;
|
|
@@ -22765,6 +22875,7 @@
|
|
|
22765
22875
|
// all of the animation functions should create
|
|
22766
22876
|
// a copy of the options data, however, if a
|
|
22767
22877
|
// parent service has already created a copy then
|
|
22878
|
+
let delayStyle;
|
|
22768
22879
|
// we should stick to using that
|
|
22769
22880
|
let options = initialOptions || {};
|
|
22770
22881
|
if (!options.$$prepared) {
|
|
@@ -22977,13 +23088,12 @@
|
|
|
22977
23088
|
return closeAndReturnNoopAnimator();
|
|
22978
23089
|
}
|
|
22979
23090
|
|
|
22980
|
-
|
|
23091
|
+
let activeClasses = pendClasses(
|
|
22981
23092
|
preparationClasses,
|
|
22982
23093
|
ACTIVE_CLASS_SUFFIX,
|
|
22983
23094
|
);
|
|
22984
23095
|
|
|
22985
23096
|
if (options.delay != null) {
|
|
22986
|
-
var delayStyle;
|
|
22987
23097
|
if (typeof options.delay !== "boolean") {
|
|
22988
23098
|
delayStyle = parseFloat(options.delay);
|
|
22989
23099
|
// number in options.delay means we have to recalculate the delay for the closing timeout
|
|
@@ -25646,30 +25756,27 @@
|
|
|
25646
25756
|
link(scope, $element, attrs, ctrl, $transclude) {
|
|
25647
25757
|
let previousElement;
|
|
25648
25758
|
let previousScope;
|
|
25649
|
-
scope.$
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25653
|
-
|
|
25654
|
-
|
|
25655
|
-
|
|
25656
|
-
|
|
25657
|
-
|
|
25658
|
-
|
|
25659
|
-
|
|
25660
|
-
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25664
|
-
|
|
25665
|
-
}
|
|
25666
|
-
},
|
|
25667
|
-
);
|
|
25759
|
+
scope.$watch(attrs["ngAnimateSwap"] || attrs["for"], (value) => {
|
|
25760
|
+
if (previousElement) {
|
|
25761
|
+
$animate.leave(previousElement);
|
|
25762
|
+
}
|
|
25763
|
+
if (previousScope) {
|
|
25764
|
+
previousScope.$destroy();
|
|
25765
|
+
previousScope = null;
|
|
25766
|
+
}
|
|
25767
|
+
if (value) {
|
|
25768
|
+
$transclude((clone, childScope) => {
|
|
25769
|
+
previousElement = clone;
|
|
25770
|
+
previousScope = childScope;
|
|
25771
|
+
$animate.enter(clone, null, $element);
|
|
25772
|
+
});
|
|
25773
|
+
}
|
|
25774
|
+
});
|
|
25668
25775
|
},
|
|
25669
25776
|
};
|
|
25670
25777
|
}
|
|
25671
25778
|
|
|
25672
|
-
$$AnimateChildrenDirective.$inject = [
|
|
25779
|
+
$$AnimateChildrenDirective.$inject = [$injectTokens.$interpolate];
|
|
25673
25780
|
|
|
25674
25781
|
/**
|
|
25675
25782
|
* @param {*} $interpolate
|
|
@@ -27579,7 +27686,7 @@
|
|
|
27579
27686
|
Object.prototype.hasOwnProperty.bind(cfg || {}),
|
|
27580
27687
|
).length === 0;
|
|
27581
27688
|
|
|
27582
|
-
|
|
27689
|
+
let DefType;
|
|
27583
27690
|
(function (DefType) {
|
|
27584
27691
|
DefType[(DefType["PATH"] = 0)] = "PATH";
|
|
27585
27692
|
DefType[(DefType["SEARCH"] = 1)] = "SEARCH";
|
|
@@ -28866,6 +28973,26 @@
|
|
|
28866
28973
|
}
|
|
28867
28974
|
}
|
|
28868
28975
|
|
|
28976
|
+
/** @typedef {import('../../interface.js').ServiceProvider} ServiceProvider
|
|
28977
|
+
|
|
28978
|
+
/**
|
|
28979
|
+
* Configurable provider for an injectable event bus
|
|
28980
|
+
* @implements {ServiceProvider}
|
|
28981
|
+
*/
|
|
28982
|
+
class PubSubProvider {
|
|
28983
|
+
constructor() {
|
|
28984
|
+
/**
|
|
28985
|
+
* @type {PubSub}
|
|
28986
|
+
*/
|
|
28987
|
+
this.eventBus = EventBus;
|
|
28988
|
+
}
|
|
28989
|
+
|
|
28990
|
+
/**
|
|
28991
|
+
* @returns {PubSub}
|
|
28992
|
+
*/
|
|
28993
|
+
$get = () => this.eventBus;
|
|
28994
|
+
}
|
|
28995
|
+
|
|
28869
28996
|
class PubSub {
|
|
28870
28997
|
/**
|
|
28871
28998
|
* Topic-based publish/subscribe channel. Maintains a map of topics to
|
|
@@ -30993,6 +31120,7 @@
|
|
|
30993
31120
|
|
|
30994
31121
|
/**
|
|
30995
31122
|
* @param {import('../globals.js').RouterGlobals} globals
|
|
31123
|
+
* @param viewService
|
|
30996
31124
|
*/
|
|
30997
31125
|
constructor(globals, viewService) {
|
|
30998
31126
|
this._transitionCount = 0;
|
|
@@ -34133,6 +34261,10 @@
|
|
|
34133
34261
|
* using the [[builder]] method.
|
|
34134
34262
|
*/
|
|
34135
34263
|
class StateBuilder {
|
|
34264
|
+
/**
|
|
34265
|
+
* @param {import('./state-matcher.js').StateMatcher} matcher
|
|
34266
|
+
* @param urlService
|
|
34267
|
+
*/
|
|
34136
34268
|
constructor(matcher, urlService) {
|
|
34137
34269
|
this.matcher = matcher;
|
|
34138
34270
|
this.$injector = undefined;
|
|
@@ -34340,12 +34472,12 @@
|
|
|
34340
34472
|
* @implements {ServiceProvider}
|
|
34341
34473
|
*/
|
|
34342
34474
|
class StateRegistryProvider {
|
|
34343
|
-
static $inject = [
|
|
34344
|
-
|
|
34345
|
-
|
|
34346
|
-
|
|
34347
|
-
|
|
34348
|
-
];
|
|
34475
|
+
static $inject = provider([
|
|
34476
|
+
$injectTokens.$urlService,
|
|
34477
|
+
$injectTokens.$state,
|
|
34478
|
+
$injectTokens.$routerGlobals,
|
|
34479
|
+
$injectTokens.$view,
|
|
34480
|
+
]);
|
|
34349
34481
|
|
|
34350
34482
|
/**
|
|
34351
34483
|
* @param urlService
|
|
@@ -34643,7 +34775,7 @@
|
|
|
34643
34775
|
// HACK: This is to allow ng-clicks to be processed before the transition is initiated:
|
|
34644
34776
|
const transition = setTimeout(function () {
|
|
34645
34777
|
if (!el.getAttribute("disabled")) {
|
|
34646
|
-
|
|
34778
|
+
const res = $state.go(
|
|
34647
34779
|
target.ngState,
|
|
34648
34780
|
target.ngStateParams,
|
|
34649
34781
|
target.ngStateOpts,
|
|
@@ -35138,7 +35270,7 @@
|
|
|
35138
35270
|
};
|
|
35139
35271
|
const directive = {
|
|
35140
35272
|
count: 0,
|
|
35141
|
-
|
|
35273
|
+
|
|
35142
35274
|
terminal: true,
|
|
35143
35275
|
priority: 400,
|
|
35144
35276
|
transclude: "element",
|
|
@@ -35273,7 +35405,6 @@
|
|
|
35273
35405
|
const getControllerAs = parse("viewDecl.controllerAs");
|
|
35274
35406
|
const getResolveAs = parse("viewDecl.resolveAs");
|
|
35275
35407
|
return {
|
|
35276
|
-
restrict: "EA",
|
|
35277
35408
|
priority: -400,
|
|
35278
35409
|
compile: function (tElement) {
|
|
35279
35410
|
const initial = tElement.innerHTML;
|
|
@@ -35469,7 +35600,6 @@
|
|
|
35469
35600
|
*/
|
|
35470
35601
|
function ngChannelDirective() {
|
|
35471
35602
|
return {
|
|
35472
|
-
restrict: "EA",
|
|
35473
35603
|
link: (scope, element, attrs) => {
|
|
35474
35604
|
const hasTemplate = element.childNodes.length > 0;
|
|
35475
35605
|
const channel = attrs["ngChannel"];
|
|
@@ -35543,7 +35673,7 @@
|
|
|
35543
35673
|
characterData: true,
|
|
35544
35674
|
});
|
|
35545
35675
|
} else {
|
|
35546
|
-
|
|
35676
|
+
$log.warn("ngSetter: Element is not a valid DOM node.");
|
|
35547
35677
|
return;
|
|
35548
35678
|
}
|
|
35549
35679
|
|
|
@@ -35553,13 +35683,14 @@
|
|
|
35553
35683
|
};
|
|
35554
35684
|
}
|
|
35555
35685
|
|
|
35556
|
-
//
|
|
35557
|
-
|
|
35686
|
+
// @private
|
|
35687
|
+
|
|
35688
|
+
const VERSION = "0.7.2";
|
|
35558
35689
|
|
|
35559
35690
|
/**
|
|
35560
|
-
* Initializes `ng
|
|
35691
|
+
* Initializes core `ng` module.
|
|
35561
35692
|
* @param {import('./loader.js').Angular} angular
|
|
35562
|
-
* @returns {import('./core/di/ng-module.js').NgModule} `ng`module
|
|
35693
|
+
* @returns {import('./core/di/ng-module.js').NgModule} `ng` module
|
|
35563
35694
|
*/
|
|
35564
35695
|
function publishExternalAPI(angular) {
|
|
35565
35696
|
const ng = angular
|
|
@@ -35568,6 +35699,7 @@
|
|
|
35568
35699
|
[],
|
|
35569
35700
|
[
|
|
35570
35701
|
"$provide",
|
|
35702
|
+
/** @type {import('./interface.js').Provider} */
|
|
35571
35703
|
($provide) => {
|
|
35572
35704
|
// $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
|
|
35573
35705
|
$provide.provider({
|
|
@@ -35691,12 +35823,17 @@
|
|
|
35691
35823
|
$templateFactory: TemplateFactoryProvider,
|
|
35692
35824
|
$urlService: UrlService,
|
|
35693
35825
|
$stateRegistry: StateRegistryProvider,
|
|
35826
|
+
$eventBus: PubSubProvider,
|
|
35694
35827
|
});
|
|
35695
35828
|
},
|
|
35696
35829
|
],
|
|
35697
35830
|
)
|
|
35698
35831
|
.factory("$stateParams", [
|
|
35699
35832
|
"$routerGlobals",
|
|
35833
|
+
/**
|
|
35834
|
+
* @param {import('./router/globals.js').RouterGlobals} globals
|
|
35835
|
+
* @returns {import('./router/params/state-params.js').StateParams }
|
|
35836
|
+
*/
|
|
35700
35837
|
function (globals) {
|
|
35701
35838
|
return globals.params;
|
|
35702
35839
|
},
|
|
@@ -35744,6 +35881,7 @@
|
|
|
35744
35881
|
this.errorHandlingConfig = errorHandlingConfig;
|
|
35745
35882
|
|
|
35746
35883
|
window["angular"] = this;
|
|
35884
|
+
this.$injectTokens = $injectTokens;
|
|
35747
35885
|
publishExternalAPI(this);
|
|
35748
35886
|
}
|
|
35749
35887
|
|