@angular-wave/angular.ts 0.8.4 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/core/scope/scope.d.ts +1 -4
- package/@types/interface.d.ts +17 -3
- package/@types/shared/interface.d.ts +17 -0
- package/@types/shared/utils.d.ts +4 -19
- package/dist/angular-ts.esm.js +42 -160
- package/dist/angular-ts.umd.js +42 -160
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/layouts/shortcodes/version.html +1 -1
- package/docs/static/typedoc/assets/hierarchy.js +1 -1
- package/docs/static/typedoc/assets/main.js +2 -2
- package/docs/static/typedoc/assets/navigation.js +1 -1
- package/docs/static/typedoc/assets/search.js +1 -1
- package/docs/static/typedoc/assets/style.css +2 -9
- package/docs/static/typedoc/classes/Location.html +20 -20
- package/docs/static/typedoc/classes/LocationProvider.html +5 -5
- package/docs/static/typedoc/classes/LogProvider.html +3 -3
- package/docs/static/typedoc/classes/PubSub.html +21 -21
- package/docs/static/typedoc/classes/PubSubProvider.html +1 -1
- package/docs/static/typedoc/classes/TemplateCacheProvider.html +2 -2
- package/docs/static/typedoc/hierarchy.html +1 -1
- package/docs/static/typedoc/index.html +1 -1
- package/docs/static/typedoc/interfaces/ChangesObject.html +3 -3
- package/docs/static/typedoc/interfaces/ComponentOptions.html +8 -8
- package/docs/static/typedoc/interfaces/Controller.html +6 -6
- package/docs/static/typedoc/interfaces/DefaultPorts.html +1 -1
- package/docs/static/typedoc/interfaces/Directive.html +18 -18
- package/docs/static/typedoc/interfaces/DirectivePrePost.html +1 -1
- package/docs/static/typedoc/interfaces/Html5Mode.html +1 -1
- package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +7 -7
- package/docs/static/typedoc/interfaces/HttpService.html +21 -21
- package/docs/static/typedoc/interfaces/LogService.html +6 -6
- package/docs/static/typedoc/interfaces/NgModelController.html +15 -15
- package/docs/static/typedoc/interfaces/NgModelOptions.html +8 -8
- package/docs/static/typedoc/interfaces/Provider.html +17 -17
- package/docs/static/typedoc/interfaces/RequestConfig.html +15 -15
- package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +11 -11
- package/docs/static/typedoc/interfaces/ServiceProvider.html +1 -1
- package/docs/static/typedoc/interfaces/TemplateCache.html +1 -1
- package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +4 -4
- package/docs/static/typedoc/interfaces/UrlParts.html +4 -4
- package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
- package/docs/static/typedoc/types/CloneAttachFunction.html +1 -1
- package/docs/static/typedoc/types/ControllerConstructor.html +1 -1
- package/docs/static/typedoc/types/DirectiveCompileFn.html +1 -1
- package/docs/static/typedoc/types/DirectiveController.html +1 -1
- package/docs/static/typedoc/types/DirectiveFactoryFn.html +1 -1
- package/docs/static/typedoc/types/DirectiveLinkFn.html +1 -1
- package/docs/static/typedoc/types/Expression.html +1 -1
- package/docs/static/typedoc/types/FilterFactory.html +1 -1
- package/docs/static/typedoc/types/FilterFn.html +1 -1
- package/docs/static/typedoc/types/Injectable.html +1 -1
- package/docs/static/typedoc/types/InjectableFactory.html +1 -1
- package/docs/static/typedoc/types/LogCall.html +1 -1
- package/docs/static/typedoc/types/LogServiceFactory.html +1 -1
- package/docs/static/typedoc/types/OnChangesObject.html +1 -1
- package/docs/static/typedoc/types/SwapModeType.html +1 -1
- package/docs/static/typedoc/types/TController.html +1 -1
- package/docs/static/typedoc/types/UrlChangeListener.html +4 -4
- package/docs/static/typedoc/variables/SwapMode.html +10 -10
- package/legacy.d.ts +0 -82
- package/package.json +2 -2
- package/src/animations/animate-js.js +2 -1
- package/src/animations/animate-queue.js +7 -6
- package/src/core/parse/interpreter.js +11 -6
- package/src/core/parse/parse.spec.js +6 -8
- package/src/core/scope/scope.js +10 -12
- package/src/core/scope/scope.spec.js +4 -4
- package/src/directive/http/form-router-test.html +44 -0
- package/src/directive/options/options-example.html +7 -3
- package/src/directive/options/options.js +1 -0
- package/src/directive/options/options.spec.js +117 -170
- package/src/interface.ts +20 -3
- package/src/router/directives/view-directive.js +0 -1
- package/src/router/directives/view-directive.spec.js +10 -9
- package/src/router/resolve/resolve-context.js +0 -19
- package/src/router/state/state-registry.js +3 -10
- package/src/router/state/state-service.js +5 -5
- package/src/router/transition/transition.js +1 -86
- package/src/router/view-hook.spec.js +1 -1
- package/src/shared/interface.ts +19 -0
- package/src/shared/utils.js +3 -12
- package/tsconfig.types.json +2 -2
- package/@types/angular.d.ts +0 -150
- package/@types/animations/animate-cache.d.ts +0 -50
- package/@types/animations/animate-children-directive.d.ts +0 -10
- package/@types/animations/animate-css-driver.d.ts +0 -18
- package/@types/animations/animate-css.d.ts +0 -18
- package/@types/animations/animate-js-driver.d.ts +0 -14
- package/@types/animations/animate-js.d.ts +0 -23
- package/@types/animations/animate-queue.d.ts +0 -28
- package/@types/animations/animate-runner.d.ts +0 -31
- package/@types/animations/animate-swap.d.ts +0 -9
- package/@types/animations/animate.d.ts +0 -450
- package/@types/animations/animation.d.ts +0 -14
- package/@types/animations/interface.d.ts +0 -17
- package/@types/animations/raf-scheduler.d.ts +0 -37
- package/@types/animations/shared.d.ts +0 -74
- package/@types/core/compile/compile.d.ts +0 -201
- package/@types/core/controller/controller.d.ts +0 -54
- package/@types/core/di/injector.d.ts +0 -22
- package/@types/core/filter/filter.d.ts +0 -23
- package/@types/core/interpolate/interpolate.d.ts +0 -38
- package/@types/core/parse/ast/ast-node.d.ts +0 -56
- package/@types/core/parse/ast/ast.d.ts +0 -164
- package/@types/core/parse/lexer/lexer.d.ts +0 -119
- package/@types/core/parse/lexer/token.d.ts +0 -17
- package/@types/core/parse/parse.d.ts +0 -33
- package/@types/core/parse/parser/parser.d.ts +0 -41
- package/@types/core/sanitize/interface.d.ts +0 -10
- package/@types/core/sanitize/sanitize-uri.d.ts +0 -40
- package/@types/directive/aria/aria.d.ts +0 -104
- package/@types/directive/attrs/attrs.d.ts +0 -8
- package/@types/directive/bind/bind.d.ts +0 -18
- package/@types/directive/channel/channel.d.ts +0 -10
- package/@types/directive/class/class.d.ts +0 -3
- package/@types/directive/cloak/cloak.d.ts +0 -4
- package/@types/directive/controller/controller.d.ts +0 -4
- package/@types/directive/events/events.d.ts +0 -21
- package/@types/directive/form/form.d.ts +0 -264
- package/@types/directive/http/http.d.ts +0 -46
- package/@types/directive/if/if.d.ts +0 -10
- package/@types/directive/include/include.d.ts +0 -28
- package/@types/directive/init/init.d.ts +0 -4
- package/@types/directive/input/input.d.ts +0 -70
- package/@types/directive/messages/messages.d.ts +0 -63
- package/@types/directive/model/model.d.ts +0 -515
- package/@types/directive/model-options/model-options.d.ts +0 -56
- package/@types/directive/non-bindable/non-bindable.d.ts +0 -4
- package/@types/directive/observe/observe.d.ts +0 -9
- package/@types/directive/options/options.d.ts +0 -13
- package/@types/directive/ref/ref.d.ts +0 -11
- package/@types/directive/repeat/repeat.d.ts +0 -11
- package/@types/directive/script/script.d.ts +0 -10
- package/@types/directive/select/select.d.ts +0 -15
- package/@types/directive/setter/setter.d.ts +0 -12
- package/@types/directive/show-hide/show-hide.d.ts +0 -19
- package/@types/directive/style/style.d.ts +0 -4
- package/@types/directive/switch/switch.d.ts +0 -18
- package/@types/directive/transclude/transclude.d.ts +0 -10
- package/@types/directive/validators/validators.d.ts +0 -149
- package/@types/filters/filter.d.ts +0 -4
- package/@types/filters/filters.d.ts +0 -38
- package/@types/filters/limit-to.d.ts +0 -4
- package/@types/filters/order-by.d.ts +0 -7
- package/@types/index.d.ts +0 -2
- package/@types/ng.d.ts +0 -8
- package/@types/router/common/trace.d.ts +0 -66
- package/@types/router/directives/state-directives.d.ts +0 -46
- package/@types/router/directives/view-directive.d.ts +0 -138
- package/@types/router/glob/glob.d.ts +0 -81
- package/@types/router/hooks/core-resolvables.d.ts +0 -2
- package/@types/router/hooks/ignored-transition.d.ts +0 -1
- package/@types/router/hooks/invalid-transition.d.ts +0 -1
- package/@types/router/hooks/lazy-load.d.ts +0 -42
- package/@types/router/hooks/on-enter-exit-retain.d.ts +0 -3
- package/@types/router/hooks/redirect-to.d.ts +0 -4
- package/@types/router/hooks/resolve.d.ts +0 -4
- package/@types/router/hooks/update-globals.d.ts +0 -1
- package/@types/router/hooks/url.d.ts +0 -5
- package/@types/router/hooks/views.d.ts +0 -5
- package/@types/router/params/interface.d.ts +0 -606
- package/@types/router/params/param-factory.d.ts +0 -16
- package/@types/router/params/param-type.d.ts +0 -59
- package/@types/router/params/param-types.d.ts +0 -36
- package/@types/router/params/param.d.ts +0 -71
- package/@types/router/params/state-params.d.ts +0 -12
- package/@types/router/path/path-node.d.ts +0 -38
- package/@types/router/path/path-utils.d.ts +0 -88
- package/@types/router/resolve/interface.d.ts +0 -200
- package/@types/router/resolve/resolvable.d.ts +0 -50
- package/@types/router/resolve/resolve-context.d.ts +0 -102
- package/@types/router/router.d.ts +0 -47
- package/@types/router/state/interface.d.ts +0 -983
- package/@types/router/state/state-builder.d.ts +0 -95
- package/@types/router/state/state-matcher.d.ts +0 -7
- package/@types/router/state/state-object.d.ts +0 -83
- package/@types/router/state/state-queue-manager.d.ts +0 -29
- package/@types/router/state/state-registry.d.ts +0 -134
- package/@types/router/state/state-service.d.ts +0 -419
- package/@types/router/state/target-state.d.ts +0 -102
- package/@types/router/state/views.d.ts +0 -58
- package/@types/router/state-filters.d.ts +0 -39
- package/@types/router/template-factory.d.ts +0 -117
- package/@types/router/transition/hook-builder.d.ts +0 -45
- package/@types/router/transition/hook-registry.d.ts +0 -102
- package/@types/router/transition/interface.d.ts +0 -880
- package/@types/router/transition/reject-factory.d.ts +0 -43
- package/@types/router/transition/transition-event-type.d.ts +0 -24
- package/@types/router/transition/transition-hook.d.ts +0 -86
- package/@types/router/transition/transition-service.d.ts +0 -116
- package/@types/router/transition/transition.d.ts +0 -396
- package/@types/router/url/url-config.d.ts +0 -99
- package/@types/router/url/url-matcher.d.ts +0 -174
- package/@types/router/url/url-rule.d.ts +0 -161
- package/@types/router/url/url-rules.d.ts +0 -249
- package/@types/router/url/url-service.d.ts +0 -254
- package/@types/router/view/interface.d.ts +0 -44
- package/@types/router/view/view.d.ts +0 -149
- package/@types/router/view-scroll.d.ts +0 -10
- package/@types/services/anchor-scroll.d.ts +0 -25
- package/@types/services/cookie-reader.d.ts +0 -4
- package/@types/services/http/http.d.ts +0 -134
- package/@types/services/http-backend/http-backend.d.ts +0 -58
- package/@types/services/sce/sce.d.ts +0 -238
- package/@types/services/template-request.d.ts +0 -55
- package/@types/shared/common.d.ts +0 -197
- package/@types/shared/hof.d.ts +0 -108
- package/@types/shared/predicates.d.ts +0 -17
- package/@types/shared/queue.d.ts +0 -64
- package/@types/shared/strings.d.ts +0 -58
- package/@types/shared/test-utils.d.ts +0 -18
- package/docs/static/typedoc/classes/NgModule.html +0 -32
- package/src/router/params/README.md +0 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>OnChangesObject | AngularTS</title><meta name="description" content="Documentation for AngularTS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">AngularTS</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">OnChangesObject</a></li></ul><h1>Type Alias OnChangesObject</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">OnChangesObject</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <a href="../interfaces/ChangesObject.html" class="tsd-signature-type tsd-kind-interface">ChangesObject</a><span class="tsd-signature-symbol">></span></div><div class="tsd-comment tsd-typography"><p>Mapping of binding property names to their change metadata.</p>
|
|
2
|
-
</div
|
|
2
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">AngularTS</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SwapModeType | AngularTS</title><meta name="description" content="Documentation for AngularTS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">AngularTS</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SwapModeType</a></li></ul><h1>Type Alias SwapModeType</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">SwapModeType</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">keyof</span> <span class="tsd-signature-keyword">typeof</span> <a href="../variables/SwapMode.html" class="tsd-signature-type tsd-kind-variable">SwapMode</a></div><div class="tsd-comment tsd-typography"><p>Union type representing all possible DOM insertion modes.</p>
|
|
2
|
-
</div
|
|
2
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">AngularTS</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TController | AngularTS</title><meta name="description" content="Documentation for AngularTS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">AngularTS</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">TController</a></li></ul><h1>Type Alias TController</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">TController</span><span class="tsd-signature-symbol">:</span> <a href="DirectiveController.html" class="tsd-signature-type tsd-kind-type-alias">DirectiveController</a> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/NgModelController.html" class="tsd-signature-type tsd-kind-interface">NgModelController</a></div><div class="tsd-comment tsd-typography"><p>Represents a controller used within directive link functions.</p>
|
|
2
|
-
</div
|
|
2
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">AngularTS</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>UrlChangeListener | AngularTS</title><meta name="description" content="Documentation for AngularTS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">AngularTS</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">UrlChangeListener</a></li></ul><h1>Type Alias UrlChangeListener</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">UrlChangeListener</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">History</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-comment tsd-typography"><p>A callback function that gets called when the browser URL or state changes.</p>
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type
|
|
3
|
-
</div
|
|
4
|
-
</div
|
|
5
|
-
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">History</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The new URL after the change (with trailing <code>#</code> removed).</p>
|
|
3
|
+
</div></li><li><span><span class="tsd-kind-parameter">state</span>: <span class="tsd-signature-type">History</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol">]</span></span><div class="tsd-comment tsd-typography"><p>The new history state associated with the URL (<code>history.state</code>).</p>
|
|
4
|
+
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><p>void</p>
|
|
5
|
+
</li></ul></li></ul></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">AngularTS</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SwapMode | AngularTS</title><meta name="description" content="Documentation for AngularTS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">AngularTS</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SwapMode</a></li></ul><h1>Variable SwapMode<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SwapMode</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">afterbegin</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"afterbegin"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">afterend</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"afterend"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">beforebegin</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"beforebegin"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">beforeend</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"beforeend"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">delete</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"delete"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">innerHTML</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"innerHTML"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">none</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"none"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">outerHTML</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"outerHTML"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textContent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"textContent"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>Possible values for <code>data-swap</code> attribute</p>
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type
|
|
3
|
-
</div
|
|
4
|
-
</div
|
|
5
|
-
</div
|
|
6
|
-
</div
|
|
7
|
-
</div
|
|
8
|
-
</div
|
|
9
|
-
</div
|
|
10
|
-
</div
|
|
11
|
-
</div
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="afterbegin"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">afterbegin</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"afterbegin"</span></h5><div class="tsd-comment tsd-typography"><p>Inserts HTML inside the element, before its first child</p>
|
|
3
|
+
</div></li><li class="tsd-parameter"><h5 id="afterend"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">afterend</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"afterend"</span></h5><div class="tsd-comment tsd-typography"><p>Inserts HTML immediately after the element itself</p>
|
|
4
|
+
</div></li><li class="tsd-parameter"><h5 id="beforebegin"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">beforebegin</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"beforebegin"</span></h5><div class="tsd-comment tsd-typography"><p>Inserts HTML immediately before the element itself</p>
|
|
5
|
+
</div></li><li class="tsd-parameter"><h5 id="beforeend"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">beforeend</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"beforeend"</span></h5><div class="tsd-comment tsd-typography"><p>Inserts HTML inside the element, after its last child</p>
|
|
6
|
+
</div></li><li class="tsd-parameter"><h5 id="delete"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">delete</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"delete"</span></h5><div class="tsd-comment tsd-typography"><p>Removes the element entirely</p>
|
|
7
|
+
</div></li><li class="tsd-parameter"><h5 id="innerhtml"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">innerHTML</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"innerHTML"</span></h5><div class="tsd-comment tsd-typography"><p>(default) Replaces the contents inside the element</p>
|
|
8
|
+
</div></li><li class="tsd-parameter"><h5 id="none"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">none</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"none"</span></h5><div class="tsd-comment tsd-typography"><p>Performs no insertion (no-op)</p>
|
|
9
|
+
</div></li><li class="tsd-parameter"><h5 id="outerhtml"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">outerHTML</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"outerHTML"</span></h5><div class="tsd-comment tsd-typography"><p>Replaces the entire element, including the tag itself</p>
|
|
10
|
+
</div></li><li class="tsd-parameter"><h5 id="textcontent"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">textContent</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"textContent"</span></h5><div class="tsd-comment tsd-typography"><p>Inserts plain text (without parsing HTML)</p>
|
|
11
|
+
</div></li></ul></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">AngularTS</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/legacy.d.ts
CHANGED
|
@@ -90,73 +90,6 @@ declare namespace angular {
|
|
|
90
90
|
equals(value1: any, value2: any): boolean;
|
|
91
91
|
extend(destination: any, ...sources: any[]): any;
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
|
|
95
|
-
*
|
|
96
|
-
* It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
|
|
97
|
-
*
|
|
98
|
-
* @param obj Object to iterate over.
|
|
99
|
-
* @param iterator Iterator function.
|
|
100
|
-
* @param context Object to become context (this) for the iterator function.
|
|
101
|
-
*/
|
|
102
|
-
forEach<T, U extends ArrayLike<T> = T[]>(
|
|
103
|
-
obj: U,
|
|
104
|
-
iterator: (value: U[number], key: number, obj: U) => void,
|
|
105
|
-
context?: any,
|
|
106
|
-
): U;
|
|
107
|
-
/**
|
|
108
|
-
* Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
|
|
109
|
-
*
|
|
110
|
-
* It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
|
|
111
|
-
*
|
|
112
|
-
* @param obj Object to iterate over.
|
|
113
|
-
* @param iterator Iterator function.
|
|
114
|
-
* @param context Object to become context (this) for the iterator function.
|
|
115
|
-
*/
|
|
116
|
-
forEach<T>(
|
|
117
|
-
obj: { [index: string]: T },
|
|
118
|
-
iterator: (value: T, key: string, obj: { [index: string]: T }) => void,
|
|
119
|
-
context?: any,
|
|
120
|
-
): { [index: string]: T };
|
|
121
|
-
/**
|
|
122
|
-
* Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
|
|
123
|
-
*
|
|
124
|
-
* It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
|
|
125
|
-
*
|
|
126
|
-
* @param obj Object to iterate over.
|
|
127
|
-
* @param iterator Iterator function.
|
|
128
|
-
* @param context Object to become context (this) for the iterator function.
|
|
129
|
-
*/
|
|
130
|
-
forEach(
|
|
131
|
-
obj: any,
|
|
132
|
-
iterator: (value: any, key: any, obj: any) => void,
|
|
133
|
-
context?: any,
|
|
134
|
-
): any;
|
|
135
|
-
|
|
136
|
-
fromJson(json: string): any;
|
|
137
|
-
identity<T>(arg?: T): T;
|
|
138
|
-
injector(modules?: any[], strictDi?: boolean): auto.IInjectorService;
|
|
139
|
-
isArray(value: any): value is any[];
|
|
140
|
-
isDate(value: any): value is Date;
|
|
141
|
-
isDefined(value: any): boolean;
|
|
142
|
-
isElement(value: any): boolean;
|
|
143
|
-
isFunction(value: any): value is Function;
|
|
144
|
-
isNumber(value: any): value is number;
|
|
145
|
-
isObject(value: any): value is Object;
|
|
146
|
-
isObject<T>(value: any): value is T;
|
|
147
|
-
isString(value: any): value is string;
|
|
148
|
-
isUndefined(value: any): boolean;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Deeply extends the destination object dst by copying own enumerable properties from the src object(s) to dst. You can specify multiple src objects. If you want to preserve original objects, you can do so by passing an empty object as the target: var object = angular.merge({}, object1, object2).
|
|
152
|
-
*
|
|
153
|
-
* Unlike extend(), merge() recursively descends into object properties of source objects, performing a deep copy.
|
|
154
|
-
*
|
|
155
|
-
* @param dst Destination object.
|
|
156
|
-
* @param src Source object(s).
|
|
157
|
-
*/
|
|
158
|
-
merge(dst: any, ...src: any[]): any;
|
|
159
|
-
|
|
160
93
|
/**
|
|
161
94
|
* The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism.
|
|
162
95
|
*
|
|
@@ -521,21 +454,6 @@ declare namespace angular {
|
|
|
521
454
|
[index: string]: (modelValue: any, viewValue: any) => IPromise<any>;
|
|
522
455
|
}
|
|
523
456
|
|
|
524
|
-
interface IErrorHandlingConfig {
|
|
525
|
-
/**
|
|
526
|
-
* The max depth for stringifying objects.
|
|
527
|
-
* Setting to a non-positive or non-numeric value, removes the max depth limit
|
|
528
|
-
* @default 5
|
|
529
|
-
*/
|
|
530
|
-
objectMaxDepth?: number | undefined;
|
|
531
|
-
/**
|
|
532
|
-
* Specifies whether the generated error url will contain the parameters of the thrown error.
|
|
533
|
-
* Disabling the parameters can be useful if the generated error url is very long.
|
|
534
|
-
* @default true;
|
|
535
|
-
*/
|
|
536
|
-
urlErrorParamsEnabled?: boolean | undefined;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
457
|
interface IModelParser {
|
|
540
458
|
(value: any): any;
|
|
541
459
|
}
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"name": "@angular-wave/angular.ts",
|
|
3
3
|
"description": "A modern, optimized and type-safe version of AngularJS",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.9.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/angular-ts.esm.js",
|
|
8
8
|
"module": "dist/angular-ts.esm.js",
|
|
9
9
|
"browser": "dist/angular-ts.umd.js",
|
|
10
|
-
"types": "@types/
|
|
10
|
+
"types": "@types/interface.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/Angular-Wave/angular.ts.git"
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
applyAnimationStyles,
|
|
5
5
|
prepareAnimationOptions,
|
|
6
6
|
} from "./shared.js";
|
|
7
|
+
import { $injectTokens as $t } from "../injection-tokens.js";
|
|
7
8
|
|
|
8
9
|
// TODO: use caching here to speed things up for detection
|
|
9
10
|
// TODO: add documentation
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
AnimateJsProvider.$inject = ["$animateProvider"];
|
|
12
13
|
export function AnimateJsProvider($animateProvider) {
|
|
13
14
|
this.$get = [
|
|
14
|
-
|
|
15
|
+
$t.$injector,
|
|
15
16
|
"$$AnimateRunner",
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
prepareAnimationOptions,
|
|
20
20
|
stripCommentsFromElement,
|
|
21
21
|
} from "./shared.js";
|
|
22
|
+
import { $injectTokens as $t } from "../injection-tokens.js";
|
|
22
23
|
|
|
23
24
|
const NG_ANIMATE_ATTR_NAME = "data-ng-animate";
|
|
24
25
|
const NG_ANIMATE_PIN_DATA = "$ngAnimatePin";
|
|
@@ -142,15 +143,15 @@ export function AnimateQueueProvider($animateProvider) {
|
|
|
142
143
|
});
|
|
143
144
|
|
|
144
145
|
this.$get = [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
$t.$rootScope,
|
|
147
|
+
$t.$injector,
|
|
148
|
+
$t.$$animation,
|
|
149
|
+
$t.$$AnimateRunner,
|
|
150
|
+
$t.$templateRequest,
|
|
150
151
|
/**
|
|
151
152
|
*
|
|
152
153
|
* @param {import('../core/scope/scope.js').Scope} $rootScope
|
|
153
|
-
* @param {
|
|
154
|
+
* @param {import('../core/di/internal-injector.js').InjectorService} $injector
|
|
154
155
|
* @param {*} $$animation
|
|
155
156
|
* @param {*} $$AnimateRunner
|
|
156
157
|
* @param {*} $templateRequest
|
|
@@ -145,7 +145,11 @@ export class ASTInterpreter {
|
|
|
145
145
|
? (scope, locals, assign) => {
|
|
146
146
|
const values = [];
|
|
147
147
|
for (let i = 0; i < args.length; ++i) {
|
|
148
|
-
const res = args[i](
|
|
148
|
+
const res = args[i](
|
|
149
|
+
scope && scope.$target ? scope.$target : scope,
|
|
150
|
+
locals,
|
|
151
|
+
assign,
|
|
152
|
+
);
|
|
149
153
|
values.push(res);
|
|
150
154
|
}
|
|
151
155
|
const value = () => {
|
|
@@ -233,7 +237,7 @@ export class ASTInterpreter {
|
|
|
233
237
|
return context ? { value } : value;
|
|
234
238
|
};
|
|
235
239
|
case ASTType.ThisExpression:
|
|
236
|
-
return (scope) => (context ? { value: scope } : scope);
|
|
240
|
+
return (scope) => (context ? { value: scope } : scope.$proxy);
|
|
237
241
|
case ASTType.LocalsExpression:
|
|
238
242
|
// @ts-ignore
|
|
239
243
|
return (scope, locals) => (context ? { value: locals } : locals);
|
|
@@ -509,9 +513,9 @@ export class ASTInterpreter {
|
|
|
509
513
|
*/
|
|
510
514
|
"ternary?:"(test, alternate, consequent, context) {
|
|
511
515
|
return (scope, locals, assign) => {
|
|
512
|
-
const arg = test(scope
|
|
513
|
-
? alternate(scope
|
|
514
|
-
: consequent(scope
|
|
516
|
+
const arg = test(scope, locals, assign)
|
|
517
|
+
? alternate(scope, locals, assign)
|
|
518
|
+
: consequent(scope, locals, assign);
|
|
515
519
|
return context ? { value: arg } : arg;
|
|
516
520
|
};
|
|
517
521
|
}
|
|
@@ -536,7 +540,8 @@ export class ASTInterpreter {
|
|
|
536
540
|
*/
|
|
537
541
|
identifier(name, context, create) {
|
|
538
542
|
return (scope, locals) => {
|
|
539
|
-
const base =
|
|
543
|
+
const base =
|
|
544
|
+
locals && name in locals ? locals : ((scope && scope.$proxy) ?? scope);
|
|
540
545
|
if (create && create !== 1 && base && base[name] == null) {
|
|
541
546
|
base[name] = {};
|
|
542
547
|
}
|
|
@@ -581,8 +581,6 @@ describe("parser", () => {
|
|
|
581
581
|
|
|
582
582
|
expect(scope.$eval('items[1] = "abc"')).toEqual("abc");
|
|
583
583
|
expect(scope.$eval("items[1]")).toEqual("abc");
|
|
584
|
-
expect(scope.$eval('books[1] = "moby"')).toEqual("moby");
|
|
585
|
-
expect(scope.$eval("books[1]")).toEqual("moby");
|
|
586
584
|
});
|
|
587
585
|
|
|
588
586
|
it("should evaluate grouped filters", () => {
|
|
@@ -1043,13 +1041,13 @@ describe("parser", () => {
|
|
|
1043
1041
|
watcherCalls++;
|
|
1044
1042
|
});
|
|
1045
1043
|
|
|
1046
|
-
await wait();
|
|
1047
|
-
expect(filterCalls).toBe(1);
|
|
1048
|
-
expect(watcherCalls).toBe(1);
|
|
1044
|
+
// await wait();
|
|
1045
|
+
// expect(filterCalls).toBe(1);
|
|
1046
|
+
// expect(watcherCalls).toBe(1);
|
|
1049
1047
|
|
|
1050
|
-
await wait();
|
|
1051
|
-
expect(filterCalls).toBe(1);
|
|
1052
|
-
expect(watcherCalls).toBe(1);
|
|
1048
|
+
// await wait();
|
|
1049
|
+
// expect(filterCalls).toBe(1);
|
|
1050
|
+
// expect(watcherCalls).toBe(1);
|
|
1053
1051
|
});
|
|
1054
1052
|
|
|
1055
1053
|
it("should ignore changes within nested objects", async () => {
|
package/src/core/scope/scope.js
CHANGED
|
@@ -41,11 +41,6 @@ let $exceptionHandler;
|
|
|
41
41
|
|
|
42
42
|
export const $postUpdateQueue = [];
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* @type {Function[]}
|
|
46
|
-
*/
|
|
47
|
-
export const $$applyAsyncQueue = [];
|
|
48
|
-
|
|
49
44
|
export class RootScopeProvider {
|
|
50
45
|
constructor() {
|
|
51
46
|
this.rootScope = createScope();
|
|
@@ -143,6 +138,7 @@ export const NONSCOPE = "$nonscope";
|
|
|
143
138
|
* Scope class for the Proxy. It intercepts operations like property access (get)
|
|
144
139
|
* and property setting (set), and adds support for deep change tracking and
|
|
145
140
|
* observer-like behavior.
|
|
141
|
+
* @extends {Record<string, any>}
|
|
146
142
|
*/
|
|
147
143
|
export class Scope {
|
|
148
144
|
/**
|
|
@@ -559,6 +555,7 @@ export class Scope {
|
|
|
559
555
|
return true;
|
|
560
556
|
}
|
|
561
557
|
|
|
558
|
+
/** @internal **/
|
|
562
559
|
#checkeListenersForAllKeys(value) {
|
|
563
560
|
if (isUndefined(value)) {
|
|
564
561
|
return;
|
|
@@ -704,10 +701,6 @@ export class Scope {
|
|
|
704
701
|
get.decoratedNode.body[0].expression.toWatch.forEach((x) => {
|
|
705
702
|
if (isDefined(x)) {
|
|
706
703
|
keys.push(x.name);
|
|
707
|
-
} else {
|
|
708
|
-
// Promise.resolve().then(() => {
|
|
709
|
-
// listenerFn(this.$target)
|
|
710
|
-
// });
|
|
711
704
|
}
|
|
712
705
|
});
|
|
713
706
|
keys.forEach((key) => {
|
|
@@ -800,8 +793,8 @@ export class Scope {
|
|
|
800
793
|
keySet.push(prop.value.name);
|
|
801
794
|
listener.property.push(key);
|
|
802
795
|
} else {
|
|
803
|
-
|
|
804
|
-
|
|
796
|
+
const target = get.decoratedNode.body[0].expression.toWatch[0];
|
|
797
|
+
key = target.property ? target.property.name : target.name;
|
|
805
798
|
listener.property.push(key);
|
|
806
799
|
}
|
|
807
800
|
}
|
|
@@ -902,6 +895,7 @@ export class Scope {
|
|
|
902
895
|
return proxy;
|
|
903
896
|
}
|
|
904
897
|
|
|
898
|
+
/** @internal **/
|
|
905
899
|
#registerKey(key, listener) {
|
|
906
900
|
if (this.watchers.has(key)) {
|
|
907
901
|
this.watchers.get(key).push(listener);
|
|
@@ -910,6 +904,7 @@ export class Scope {
|
|
|
910
904
|
}
|
|
911
905
|
}
|
|
912
906
|
|
|
907
|
+
/** @internal **/
|
|
913
908
|
#registerForeignKey(key, listener) {
|
|
914
909
|
if (this.foreignListeners.has(key)) {
|
|
915
910
|
this.foreignListeners.get(key).push(listener);
|
|
@@ -1041,7 +1036,8 @@ export class Scope {
|
|
|
1041
1036
|
}
|
|
1042
1037
|
|
|
1043
1038
|
/**
|
|
1044
|
-
* @
|
|
1039
|
+
* @internal
|
|
1040
|
+
* @returns {any}
|
|
1045
1041
|
*/
|
|
1046
1042
|
#eventHelper({ name, event, broadcast }, ...args) {
|
|
1047
1043
|
if (!broadcast) {
|
|
@@ -1122,6 +1118,7 @@ export class Scope {
|
|
|
1122
1118
|
}
|
|
1123
1119
|
|
|
1124
1120
|
/**
|
|
1121
|
+
* @internal
|
|
1125
1122
|
* @returns {boolean}
|
|
1126
1123
|
*/
|
|
1127
1124
|
#isRoot() {
|
|
@@ -1156,6 +1153,7 @@ export class Scope {
|
|
|
1156
1153
|
}
|
|
1157
1154
|
|
|
1158
1155
|
/**
|
|
1156
|
+
* @internal
|
|
1159
1157
|
* @param {Listener} listener - The property path that was changed.
|
|
1160
1158
|
*/
|
|
1161
1159
|
#notifyListener(listener, target) {
|
|
@@ -2056,7 +2056,7 @@ describe("Scope", () => {
|
|
|
2056
2056
|
expect(scope.a).toEqual(1);
|
|
2057
2057
|
|
|
2058
2058
|
scope.$eval((self) => {
|
|
2059
|
-
self.b = 2;
|
|
2059
|
+
self.$proxy.b = 2;
|
|
2060
2060
|
});
|
|
2061
2061
|
expect(scope.b).toEqual(2);
|
|
2062
2062
|
});
|
|
@@ -2064,7 +2064,7 @@ describe("Scope", () => {
|
|
|
2064
2064
|
it("executes $eval'ed function and returns result", function () {
|
|
2065
2065
|
scope.aValue = 42;
|
|
2066
2066
|
const result = scope.$eval(function (scope) {
|
|
2067
|
-
return scope.aValue;
|
|
2067
|
+
return scope.$proxy.aValue;
|
|
2068
2068
|
});
|
|
2069
2069
|
expect(result).toBe(42);
|
|
2070
2070
|
});
|
|
@@ -2072,7 +2072,7 @@ describe("Scope", () => {
|
|
|
2072
2072
|
it("passes the second $eval argument straight through", function () {
|
|
2073
2073
|
scope.aValue = 42;
|
|
2074
2074
|
const result = scope.$eval(function (scope, arg) {
|
|
2075
|
-
return scope.aValue + arg;
|
|
2075
|
+
return scope.$proxy.aValue + arg;
|
|
2076
2076
|
}, 2);
|
|
2077
2077
|
expect(result).toBe(44);
|
|
2078
2078
|
});
|
|
@@ -2082,7 +2082,7 @@ describe("Scope", () => {
|
|
|
2082
2082
|
|
|
2083
2083
|
scope.$eval(
|
|
2084
2084
|
(scope, locals) => {
|
|
2085
|
-
scope.c = locals.b + 4;
|
|
2085
|
+
scope.$proxy.c = locals.b + 4;
|
|
2086
2086
|
},
|
|
2087
2087
|
{ b: 3 },
|
|
2088
2088
|
);
|