@angular-wave/angular.ts 0.7.7 → 0.8.0
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/animations/raf-scheduler.d.ts +2 -2
- package/@types/animations/shared.d.ts +0 -1
- package/@types/core/compile/attributes.d.ts +3 -3
- package/@types/core/compile/compile.d.ts +1 -1
- package/@types/core/di/injector.d.ts +0 -1
- package/@types/core/di/internal-injector.d.ts +1 -0
- package/@types/core/di/ng-module.d.ts +5 -0
- package/@types/core/filter/filter.d.ts +11 -13
- package/@types/core/parse/parse.d.ts +6 -7
- package/@types/core/sanitize/sanitize-uri.d.ts +3 -6
- package/@types/core/scope/scope.d.ts +1 -1
- package/@types/directive/attrs/attrs.d.ts +7 -1
- package/@types/directive/bind/bind.d.ts +2 -1
- package/@types/directive/events/events.d.ts +9 -3
- package/@types/directive/http/http.d.ts +6 -2
- package/@types/directive/include/include.d.ts +2 -2
- package/@types/directive/input/input.d.ts +2 -12
- package/@types/directive/messages/messages.d.ts +9 -48
- package/@types/directive/model/model.d.ts +3 -3
- package/@types/directive/options/options.d.ts +13 -20
- package/@types/directive/switch/switch.d.ts +1 -0
- package/@types/directive/transclude/transclude.d.ts +10 -6
- package/@types/index.d.ts +1 -1
- package/@types/interface.d.ts +56 -18
- package/@types/{public.d.ts → ng.d.ts} +2 -2
- package/@types/router/directives/view-directive.d.ts +2 -19
- package/@types/router/{common → glob}/glob.d.ts +5 -1
- package/@types/router/globals.d.ts +2 -3
- package/@types/router/path/path-utils.d.ts +8 -11
- package/@types/router/state/interface.d.ts +1 -1
- package/@types/router/state/state-object.d.ts +1 -1
- package/@types/router/state/state-registry.d.ts +1 -2
- package/@types/router/state/state-service.d.ts +8 -7
- package/@types/router/state-filters.d.ts +24 -2
- package/@types/router/transition/transition.d.ts +12 -15
- package/@types/router/url/url-matcher.d.ts +3 -3
- package/@types/router/url/url-rule.d.ts +1 -0
- package/@types/router/url/url-rules.d.ts +26 -6
- package/@types/router/url/url-service.d.ts +30 -42
- package/@types/services/anchor-scroll.d.ts +1 -1
- package/@types/{core → services/exception}/exception-handler.d.ts +4 -4
- package/@types/{core/error-handler.d.ts → services/exception/interface.d.ts} +1 -1
- package/@types/services/http/http.d.ts +48 -3
- package/@types/services/http/interface.d.ts +2 -2
- package/@types/services/http-backend/http-backend.d.ts +49 -44
- package/@types/services/location/interface.d.ts +63 -0
- package/@types/services/location/location.d.ts +330 -0
- package/@types/{core → services}/sce/sce.d.ts +1 -1
- package/@types/services/template-cache/interface.d.ts +8 -2
- package/@types/services/template-cache/template-cache.d.ts +1 -1
- package/@types/services/template-request.d.ts +1 -1
- package/@types/shared/cache.d.ts +0 -2
- package/@types/shared/common.d.ts +0 -2
- package/@types/shared/dom.d.ts +6 -0
- package/@types/shared/interface.d.ts +0 -4
- package/@types/{router/common → shared}/queue.d.ts +2 -2
- package/@types/shared/test-utils.d.ts +1 -0
- package/@types/shared/url-utils/interface.d.ts +46 -0
- package/@types/shared/url-utils/url-utils.d.ts +64 -0
- package/@types/shared/utils.d.ts +44 -6
- package/Makefile +8 -4
- package/dist/angular-ts.esm.js +1889 -2199
- package/dist/angular-ts.umd.js +1889 -2199
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/assets/scss/index.scss +23 -0
- package/docs/content/_index.md +9 -8
- package/docs/content/docs/_index.md +1 -1
- package/docs/content/docs/directive/app.md +1 -1
- package/docs/content/docs/directive/bind.md +10 -8
- package/docs/content/docs/directive/blur.md +1 -1
- package/docs/content/docs/directive/channel.md +2 -2
- package/docs/content/docs/directive/class-even.md +1 -1
- package/docs/content/docs/directive/class-odd.md +1 -1
- package/docs/content/docs/directive/class.md +1 -1
- package/docs/content/docs/directive/click.md +1 -1
- package/docs/content/docs/directive/copy.md +1 -1
- package/docs/content/docs/directive/cut.md +1 -1
- package/docs/content/docs/directive/dblclick.md +1 -1
- package/docs/content/docs/directive/focus.md +1 -1
- package/docs/content/docs/directive/get.md +203 -0
- package/docs/content/docs/directive/keydown.md +1 -1
- package/docs/content/docs/directive/keyup.md +1 -1
- package/docs/content/docs/directive/load.md +1 -1
- package/docs/content/docs/directive/mousedown.md +1 -1
- package/docs/content/docs/directive/mouseenter.md +1 -1
- package/docs/content/docs/directive/mouseleave.md +1 -1
- package/docs/content/docs/directive/mousemove.md +1 -1
- package/docs/content/docs/directive/mouseout.md +1 -1
- package/docs/content/docs/directive/mouseover.md +1 -1
- package/docs/content/docs/directive/mouseup.md +1 -1
- package/docs/content/docs/directive/non-bindable.md +28 -0
- package/docs/content/docs/provider/locationProvider.md +26 -0
- package/docs/content/docs/provider/templateCacheProvider.md +66 -1
- package/docs/content/docs/service/location.md +57 -0
- package/docs/content/docs/service/templateCache.md +2 -2
- package/docs/content/docs/service/url.md +5 -0
- package/docs/layouts/partials/hooks/head-end.html +1 -1
- package/docs/layouts/shortcodes/showcss.html +2 -0
- package/docs/layouts/shortcodes/version.html +1 -0
- package/docs/static/examples/counter/counter-test.html +0 -4
- package/docs/static/examples/eventbus/eventbus-test.html +0 -4
- package/docs/static/examples/ng-bind/ng-bind.html +2 -2
- package/docs/static/examples/ng-non-bindable/ng-non-bindable-test.html +13 -0
- package/docs/static/examples/ng-non-bindable/ng-non-bindable.html +3 -0
- package/docs/static/examples/ng-non-bindable/ng-non-bindable.test.js +11 -0
- package/docs/static/typedoc/assets/hierarchy.js +1 -1
- package/docs/static/typedoc/assets/highlight.css +6 -6
- package/docs/static/typedoc/assets/navigation.js +1 -1
- package/docs/static/typedoc/assets/search.js +1 -1
- package/docs/static/typedoc/classes/Location.html +55 -0
- package/docs/static/typedoc/classes/LocationProvider.html +20 -0
- package/docs/static/typedoc/classes/NgModule.html +32 -0
- package/docs/static/typedoc/classes/TemplateCacheProvider.html +1 -1
- package/docs/static/typedoc/hierarchy.html +1 -1
- package/docs/static/typedoc/index.html +1 -1
- package/docs/static/typedoc/interfaces/DefaultPorts.html +5 -0
- package/docs/static/typedoc/interfaces/Directive.html +5 -4
- package/docs/static/typedoc/interfaces/Html5Mode.html +23 -0
- package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +1 -1
- package/docs/static/typedoc/interfaces/HttpResponse.html +2 -3
- package/docs/static/typedoc/interfaces/Provider.html +16 -10
- package/docs/static/typedoc/interfaces/RequestConfig.html +1 -1
- package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +1 -1
- package/docs/static/typedoc/interfaces/TemplateCache.html +7 -0
- package/docs/static/typedoc/interfaces/UrlParts.html +9 -0
- package/docs/static/typedoc/types/AnnotatedDirectiveFactory.html +1 -0
- package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
- package/docs/static/typedoc/types/DirectiveFactory.html +1 -2
- package/docs/static/typedoc/types/DirectiveFactoryFn.html +1 -0
- package/docs/static/typedoc/types/Expression.html +1 -1
- package/docs/static/typedoc/types/HttpResponseStatus.html +1 -0
- package/docs/static/typedoc/types/{TemplateCache.html → SwapModeType.html} +1 -1
- package/docs/static/typedoc/types/UrlChangeListener.html +5 -0
- package/docs/static/typedoc/variables/SwapMode.html +11 -0
- package/docs/static/version.js +13 -0
- package/docs/test-results/.last-run.json +4 -0
- package/docs/test-results/static-examples-counter-counter-counter-example/error-context.md +50 -0
- package/legacy.d.ts +0 -10
- package/package.json +1 -3
- package/src/{loader.js → angular.js} +5 -10
- package/src/angular.spec.js +189 -21
- package/src/animations/animate-children-directive.js +2 -2
- package/src/animations/animate-css.js +17 -18
- package/src/animations/animate.spec.js +1 -1
- package/src/animations/raf-scheduler.js +1 -1
- package/src/animations/shared.js +2 -12
- package/src/binding.spec.js +1 -1
- package/src/core/compile/attributes.js +1 -1
- package/src/core/compile/compile.js +7 -10
- package/src/core/compile/compile.spec.js +1 -1
- package/src/core/controller/controller.spec.js +1 -1
- package/src/core/controller/controller.test.js +1 -0
- package/src/core/di/injector.js +11 -25
- package/src/core/di/injector.spec.js +2 -2
- package/src/core/di/injector.test.js +2 -2
- package/src/core/di/internal-injector.js +7 -7
- package/src/core/di/ng-module.js +12 -27
- package/src/core/filter/filter.js +28 -28
- package/src/core/filter/filter.spec.js +1 -1
- package/src/core/filter/filter.test.js +1 -0
- package/src/core/interpolate/interpolate.js +4 -6
- package/src/core/interpolate/interpolate.spec.js +1 -1
- package/src/core/interpolate/interpolate.test.js +1 -0
- package/src/core/parse/ast/ast.spec.js +1 -1
- package/src/core/parse/ast/ast.test.js +1 -1
- package/src/core/parse/interpreter.js +32 -38
- package/src/core/parse/lexer/lexer.spec.js +1 -1
- package/src/core/parse/parse.js +150 -146
- package/src/core/parse/parse.spec.js +17 -16
- package/src/core/prop.spec.js +1 -1
- package/src/core/root-element.spec.js +1 -1
- package/src/core/sanitize/sanitize-uri.js +3 -3
- package/src/core/scope/scope.js +12 -13
- package/src/core/scope/scope.spec.js +3 -4
- package/src/directive/aria/aria.spec.js +1 -1
- package/src/directive/aria/aria.test.js +1 -0
- package/src/directive/attrs/attrs.js +7 -4
- package/src/directive/attrs/attrs.spec.js +1 -1
- package/src/directive/attrs/attrs.test.js +1 -0
- package/src/directive/attrs/boolean.spec.js +1 -1
- package/src/directive/attrs/boolean.test.js +1 -0
- package/src/directive/attrs/element-style.spec.js +1 -1
- package/src/directive/attrs/element-style.test.js +1 -0
- package/src/directive/attrs/src.spec.js +1 -1
- package/src/directive/attrs/src.test.js +1 -0
- package/src/directive/bind/bind-html.spec.js +1 -1
- package/src/directive/bind/bind.js +1 -0
- package/src/directive/bind/bind.spec.js +1 -1
- package/src/directive/bind/bind.test.js +1 -0
- package/src/directive/channel/channel.spec.js +1 -1
- package/src/directive/channel/channel.test.js +1 -0
- package/src/directive/class/class.spec.js +1 -1
- package/src/directive/class/class.test.js +1 -0
- package/src/directive/cloak/cloak.spec.js +1 -1
- package/src/directive/cloak/cloak.test.js +1 -0
- package/src/directive/controller/controller.spec.js +1 -1
- package/src/directive/controller/controller.test.js +1 -0
- package/src/directive/events/click.spec.js +1 -1
- package/src/directive/events/event.spec.js +1 -1
- package/src/directive/events/events.js +6 -2
- package/src/directive/events/events.test.js +1 -0
- package/src/directive/form/form.js +8 -5
- package/src/directive/form/form.spec.js +1 -1
- package/src/directive/form/form.test.js +1 -0
- package/src/directive/http/delete.spec.js +3 -1
- package/src/directive/http/form-test.html +18 -0
- package/src/directive/http/get.spec.js +281 -4
- package/src/directive/http/http.js +112 -15
- package/src/directive/http/http.test.js +2 -2
- package/src/directive/http/post.spec.js +506 -9
- package/src/directive/http/put.spec.js +3 -1
- package/src/directive/if/if.spec.js +1 -1
- package/src/directive/include/include.js +7 -7
- package/src/directive/include/include.spec.js +1 -1
- package/src/directive/init/init.spec.js +1 -1
- package/src/directive/init/init.test.js +1 -0
- package/src/directive/input/input.js +19 -43
- package/src/directive/input/input.spec.js +1 -2
- package/src/directive/input/input.test.js +1 -0
- package/src/directive/messages/messages.js +4 -0
- package/src/directive/messages/messages.spec.js +1 -1
- package/src/directive/messages/messages.test.js +1 -0
- package/src/directive/model/model.js +14 -14
- package/src/directive/model/model.spec.js +1 -1
- package/src/directive/model/model.test.js +1 -0
- package/src/directive/model-options/model-option.test.js +1 -0
- package/src/directive/model-options/model-options.js +1 -1
- package/src/directive/model-options/model-options.spec.js +1 -1
- package/src/directive/non-bindable/non-bindable.spec.js +1 -1
- package/src/directive/non-bindable/non-bindable.test.js +1 -0
- package/src/directive/observe/observe.spec.js +1 -1
- package/src/directive/observe/observe.test.js +1 -0
- package/src/directive/on/on.spec.js +1 -1
- package/src/directive/on/on.test.js +1 -0
- package/src/directive/options/options.js +454 -464
- package/src/directive/options/options.spec.js +1 -1
- package/src/directive/options/options.test.js +1 -0
- package/src/directive/ref/href.spec.js +1 -1
- package/src/directive/ref/href.test.js +2 -0
- package/src/directive/ref/ref.spec.js +1 -1
- package/src/directive/repeat/repeat.spec.js +2 -3
- package/src/directive/repeat/repeat.test.js +1 -0
- package/src/directive/script/script.spec.js +1 -1
- package/src/directive/script/script.test.js +1 -0
- package/src/directive/select/select.js +1 -1
- package/src/directive/select/select.spec.js +1 -1
- package/src/directive/select/select.test.js +1 -0
- package/src/directive/setter/setter.js +12 -14
- package/src/directive/setter/setter.spec.js +40 -17
- package/src/directive/setter/setter.test.js +1 -0
- package/src/directive/show-hide/show-hide.spec.js +1 -1
- package/src/directive/show-hide/show-hide.test.js +1 -0
- package/src/directive/style/style.spec.js +1 -1
- package/src/directive/style/style.test.js +1 -0
- package/src/directive/switch/switch.js +1 -0
- package/src/directive/switch/switch.spec.js +1 -1
- package/src/directive/switch/switch.test.js +1 -0
- package/src/directive/transclude/transclude.js +87 -89
- package/src/directive/validators/validators.js +82 -84
- package/src/directive/validators/validators.spec.js +5 -4
- package/src/directive/validators/validators.test.js +1 -0
- package/src/filters/filter.spec.js +1 -1
- package/src/filters/filters.spec.js +1 -1
- package/src/filters/limit-to.js +2 -3
- package/src/filters/limit-to.spec.js +1 -1
- package/src/filters/order-by.spec.js +1 -1
- package/src/index.js +1 -1
- package/src/injection-tokens.js +6 -2
- package/src/interface.ts +70 -19
- package/src/loader.md +0 -155
- package/src/{public.js → ng.js} +16 -23
- package/src/{public.spec.js → ng.spec.js} +1 -1
- package/src/router/directives/state-directives.spec.js +9 -8
- package/src/router/directives/view-directive.js +11 -9
- package/src/router/directives/view-directive.spec.js +8 -9
- package/src/router/{common/common.html → glob/glob.html} +2 -3
- package/src/router/{common → glob}/glob.js +5 -0
- package/src/router/{common/common.test.js → glob/glob.test.js} +2 -1
- package/src/router/globals.js +1 -2
- package/src/router/path/path-utils.js +5 -0
- package/src/router/router-test-hashbang.html +45 -0
- package/src/router/services.spec.js +5 -6
- package/src/router/state/interface.ts +1 -1
- package/src/router/state/state-builder.js +3 -3
- package/src/router/state/state-builder.spec.js +1 -1
- package/src/router/state/state-object.js +1 -1
- package/src/router/state/state-registry.js +2 -3
- package/src/router/state/state-service.js +13 -10
- package/src/router/state/state.spec.js +23 -22
- package/src/router/state/state.test.js +1 -0
- package/src/router/state/views.js +1 -1
- package/src/router/state-filter.spec.js +1 -1
- package/src/router/state-filters.js +15 -11
- package/src/router/template-factory.js +5 -4
- package/src/router/template-factory.spec.js +1 -1
- package/src/router/transition/hook-registry.js +1 -1
- package/src/router/transition/transition-service.js +6 -5
- package/src/router/transition/transition.js +4 -4
- package/src/router/url/url-matcher.js +3 -3
- package/src/router/url/url-rule.js +1 -0
- package/src/router/url/url-rules.js +8 -5
- package/src/router/url/url-service.js +82 -85
- package/src/router/url/url-service.spec.js +55 -39
- package/src/router/url/url.test.js +1 -0
- package/src/router/view/view.js +4 -5
- package/src/router/view/view.spec.js +10 -12
- package/src/router/view/view.test.js +1 -0
- package/src/router/view-hook.spec.js +1 -1
- package/src/router/view-scroll.spec.js +1 -1
- package/src/services/anchor-scroll.html +2 -9
- package/src/services/anchor-scroll.js +6 -5
- package/src/{core → services/exception}/exception-handler.js +2 -2
- package/src/{core/error-handler.ts → services/exception/interface.ts} +1 -1
- package/src/services/http/http.js +11 -17
- package/src/services/http/http.spec.js +2 -7
- package/src/services/http/interface.ts +2 -2
- package/src/services/http/template-request.spec.js +1 -1
- package/src/services/http-backend/http-backend.js +53 -89
- package/src/services/http-backend/http-backend.spec.js +2 -6
- package/src/services/http-backend/http-backend.test.js +1 -0
- package/src/services/location/interface.ts +70 -0
- package/src/{core → services}/location/location.html +4 -1
- package/src/services/location/location.js +999 -0
- package/src/{core → services}/location/location.spec.js +911 -532
- package/src/{core → services}/location/location.test.js +2 -2
- package/src/services/log/log.spec.js +1 -1
- package/src/services/log/log.test.js +1 -0
- package/src/services/pubsub/pubsub.spec.js +1 -1
- package/src/{core → services}/sce/sce.html +1 -1
- package/src/{core → services}/sce/sce.js +14 -10
- package/src/{core → services}/sce/sce.md +2 -2
- package/src/{core → services}/sce/sce.spec.js +3 -4
- package/src/{core → services}/sce/sce.test.js +1 -1
- package/src/services/template-cache/interface.ts +8 -2
- package/src/services/template-cache/template-cache.js +3 -1
- package/src/services/template-cache/template-cache.spec.js +73 -1
- package/src/services/template-cache/template-cache.test.js +1 -0
- package/src/services/template-request.js +2 -1
- package/src/shared/cache.js +0 -2
- package/src/shared/common.js +0 -5
- package/src/shared/common.spec.js +1 -1
- package/src/shared/dom.js +10 -0
- package/src/shared/interface.ts +0 -4
- package/src/{router/common → shared}/queue.js +7 -7
- package/src/shared/shared.html +1 -0
- package/src/shared/shared.test.js +1 -0
- package/src/shared/test-utils.js +1 -0
- package/src/shared/url-utils/interface.ts +54 -0
- package/src/{core → shared}/url-utils/url-utils.html +4 -1
- package/src/{core → shared}/url-utils/url-utils.js +26 -47
- package/src/{core → shared}/url-utils/url-utils.spec.js +10 -17
- package/src/{core → shared}/url-utils/url-utils.test.js +1 -1
- package/src/shared/utils.js +60 -9
- package/src/shared/utils.spec.js +35 -1
- package/src/src.html +1 -2
- package/typedoc.json +0 -1
- package/utils/express.js +36 -2
- package/utils/version.cjs +23 -0
- package/@types/core/location/location.d.ts +0 -317
- package/@types/core/task-tracker-factory.d.ts +0 -76
- package/@types/core/url-utils/url-utils.d.ts +0 -56
- package/@types/router/state-provider.d.ts +0 -123
- package/@types/services/browser.d.ts +0 -101
- package/docs/static/typedoc/types/SwapInsertPosition.html +0 -2
- package/jsdoc.json +0 -22
- package/src/core/location/location.js +0 -984
- package/src/core/location/location.md +0 -114
- package/src/core/task-tracker-factory.js +0 -145
- package/src/core/url-utils/url-utils.md +0 -46
- package/src/directive/non-bindable/non-bindable.md +0 -17
- package/src/loader.spec.js +0 -169
- package/src/router/state-provider.js +0 -146
- package/src/services/browser.js +0 -212
- /package/@types/{loader.d.ts → angular.d.ts} +0 -0
- /package/src/router/{common → glob}/glob.spec.js +0 -0
- /package/src/{router/common → shared}/queue.spec.js +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/** @typedef {import('../interface.ts').ServiceProvider} ServiceProvider */
|
|
2
|
-
/** @typedef {import('../interface.ts').AnnotatedFactory} AnnotatedFactory */
|
|
3
|
-
/**
|
|
4
|
-
* @implements {ServiceProvider}
|
|
5
|
-
*/
|
|
6
|
-
export class TaskTrackerFactoryProvider implements ServiceProvider {
|
|
7
|
-
/** @type {AnnotatedFactory} */
|
|
8
|
-
$get: AnnotatedFactory;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A factory function to create `TaskTracker` instances.
|
|
12
|
-
*
|
|
13
|
-
* A `TaskTracker` tracks pending tasks (grouped by type) and notifies interested
|
|
14
|
-
* parties when all pending tasks (or tasks of a specific type) have been completed.
|
|
15
|
-
*/
|
|
16
|
-
export class TaskTracker {
|
|
17
|
-
/**
|
|
18
|
-
* @param {import('../services/log/interface.ts').LogService} log - The logging service.
|
|
19
|
-
*/
|
|
20
|
-
constructor(log: import("../services/log/interface.ts").LogService);
|
|
21
|
-
/** @private */
|
|
22
|
-
private log;
|
|
23
|
-
/** @private */
|
|
24
|
-
private taskCounts;
|
|
25
|
-
/** @private */
|
|
26
|
-
private taskCallbacks;
|
|
27
|
-
/**
|
|
28
|
-
* Special task types used for tracking all tasks and default tasks.
|
|
29
|
-
* @type {string}
|
|
30
|
-
*/
|
|
31
|
-
ALL_TASKS_TYPE: string;
|
|
32
|
-
/**
|
|
33
|
-
* Default task type.
|
|
34
|
-
* @type {string}
|
|
35
|
-
*/
|
|
36
|
-
DEFAULT_TASK_TYPE: string;
|
|
37
|
-
/**
|
|
38
|
-
* Completes a task and decrements the associated task counter.
|
|
39
|
-
* If the counter reaches 0, all corresponding callbacks are executed.
|
|
40
|
-
*
|
|
41
|
-
* @param {Function} fn - The function to execute when completing the task.
|
|
42
|
-
* @param {string} [taskType=this.DEFAULT_TASK_TYPE] - The type of task being completed.
|
|
43
|
-
*/
|
|
44
|
-
completeTask(fn: Function, taskType?: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Increments the task count for the specified task type.
|
|
47
|
-
*
|
|
48
|
-
* @param {string} [taskType=this.DEFAULT_TASK_TYPE] - The type of task whose count will be increased.
|
|
49
|
-
*/
|
|
50
|
-
incTaskCount(taskType?: string): void;
|
|
51
|
-
/**
|
|
52
|
-
* Registers a callback to be executed when all pending tasks of the specified type are completed.
|
|
53
|
-
* If there are no pending tasks of the specified type, the callback is executed immediately.
|
|
54
|
-
*
|
|
55
|
-
* @param {Function} callback - The function to execute when no pending tasks remain.
|
|
56
|
-
* @param {string} [taskType=this.ALL_TASKS_TYPE] - The type of tasks to wait for completion.
|
|
57
|
-
*/
|
|
58
|
-
notifyWhenNoPendingTasks(callback: Function, taskType?: string): void;
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves and removes the last registered callback from the queue.
|
|
61
|
-
*
|
|
62
|
-
* @private
|
|
63
|
-
* @returns {Function|undefined} The last callback function or undefined if none exist.
|
|
64
|
-
*/
|
|
65
|
-
private getLastCallback;
|
|
66
|
-
/**
|
|
67
|
-
* Retrieves and removes the last registered callback for the specified task type.
|
|
68
|
-
*
|
|
69
|
-
* @private
|
|
70
|
-
* @param {string} taskType - The type of task for which the callback was registered.
|
|
71
|
-
* @returns {Function|undefined} The last callback function for the task type, or undefined if none exist.
|
|
72
|
-
*/
|
|
73
|
-
private getLastCallbackForType;
|
|
74
|
-
}
|
|
75
|
-
export type ServiceProvider = import("../interface.ts").ServiceProvider;
|
|
76
|
-
export type AnnotatedFactory = import("../interface.ts").AnnotatedFactory;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export function urlResolve(url: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* Parse a request URL and determine whether this is a same-origin request as the application
|
|
4
|
-
* document.
|
|
5
|
-
*
|
|
6
|
-
* @param {string|object} requestUrl The url of the request as a string that will be resolved
|
|
7
|
-
* or a parsed URL object.
|
|
8
|
-
* @returns {boolean} Whether the request is for the same origin as the application document.
|
|
9
|
-
*/
|
|
10
|
-
export function urlIsSameOrigin(requestUrl: string | object): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Parse a request URL and determine whether it is same-origin as the current document base URL.
|
|
13
|
-
*
|
|
14
|
-
* Note: The base URL is usually the same as the document location (`location.href`) but can
|
|
15
|
-
* be overriden by using the `<base>` tag.
|
|
16
|
-
*
|
|
17
|
-
* @param {string|object} requestUrl The url of the request as a string that will be resolved
|
|
18
|
-
* or a parsed URL object.
|
|
19
|
-
* @returns {boolean} Whether the URL is same-origin as the document base URL.
|
|
20
|
-
*/
|
|
21
|
-
export function urlIsSameOriginAsBaseUrl(requestUrl: string | object): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Create a function that can check a URL's origin against a list of allowed/trusted origins.
|
|
24
|
-
* The current location's origin is implicitly trusted.
|
|
25
|
-
*
|
|
26
|
-
* @param {string[]} trustedOriginUrls - A list of URLs (strings), whose origins are trusted.
|
|
27
|
-
*
|
|
28
|
-
* @returns {Function} - A function that receives a URL (string or parsed URL object) and returns
|
|
29
|
-
* whether it is of an allowed origin.
|
|
30
|
-
*/
|
|
31
|
-
export function urlIsAllowedOriginFactory(
|
|
32
|
-
trustedOriginUrls: string[],
|
|
33
|
-
): Function;
|
|
34
|
-
/**
|
|
35
|
-
* Determine if two URLs share the same origin.
|
|
36
|
-
*
|
|
37
|
-
* @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of
|
|
38
|
-
* a dictionary object returned by `urlResolve()`.
|
|
39
|
-
* @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form
|
|
40
|
-
* of a dictionary object returned by `urlResolve()`.
|
|
41
|
-
*
|
|
42
|
-
* @returns {boolean} - True if both URLs have the same origin, and false otherwise.
|
|
43
|
-
*/
|
|
44
|
-
export function urlsAreSameOrigin(
|
|
45
|
-
url1: string | any,
|
|
46
|
-
url2: string | object,
|
|
47
|
-
): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Returns the current document base URL.
|
|
50
|
-
* @returns {string}
|
|
51
|
-
*/
|
|
52
|
-
export function getBaseUrl(): string;
|
|
53
|
-
/**
|
|
54
|
-
* HTTP protocol
|
|
55
|
-
*/
|
|
56
|
-
export type HttpProtocol = "http" | "https";
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Angular 1 `StateProvider`
|
|
3
|
-
*
|
|
4
|
-
* The `$stateProvider` works similar to Angular's v1 router, but it focuses purely
|
|
5
|
-
* on state.
|
|
6
|
-
*
|
|
7
|
-
* A state corresponds to a "place" in the application in terms of the overall UI and
|
|
8
|
-
* navigation. A state describes (via the controller / template / view properties) what
|
|
9
|
-
* the UI looks like and does at that place.
|
|
10
|
-
*
|
|
11
|
-
* States often have things in common, and the primary way of factoring out these
|
|
12
|
-
* commonalities in this model is via the state hierarchy, i.e. parent/child states aka
|
|
13
|
-
* nested states.
|
|
14
|
-
*
|
|
15
|
-
* The `$stateProvider` provides interfaces to declare these states for your app.
|
|
16
|
-
*/
|
|
17
|
-
export class StateProvider {
|
|
18
|
-
constructor(stateRegistry: any, stateService: any);
|
|
19
|
-
stateRegistry: any;
|
|
20
|
-
stateService: any;
|
|
21
|
-
/**
|
|
22
|
-
* Decorates states when they are registered
|
|
23
|
-
*
|
|
24
|
-
* Allows you to extend (carefully) or override (at your own peril) the
|
|
25
|
-
* `stateBuilder` object used internally by [[StateRegistry]].
|
|
26
|
-
* This can be used to add custom functionality to ng-router,
|
|
27
|
-
* for example inferring templateUrl based on the state name.
|
|
28
|
-
*
|
|
29
|
-
* When passing only a name, it returns the current (original or decorated) builder
|
|
30
|
-
* function that matches `name`.
|
|
31
|
-
*
|
|
32
|
-
* The builder functions that can be decorated are listed below. Though not all
|
|
33
|
-
* necessarily have a good use case for decoration, that is up to you to decide.
|
|
34
|
-
*
|
|
35
|
-
* In addition, users can attach custom decorators, which will generate new
|
|
36
|
-
* properties within the state's internal definition. There is currently no clear
|
|
37
|
-
* use-case for this beyond accessing internal states (i.e. $state.$current),
|
|
38
|
-
* however, expect this to become increasingly relevant as we introduce additional
|
|
39
|
-
* meta-programming features.
|
|
40
|
-
*
|
|
41
|
-
* **Warning**: Decorators should not be interdependent because the order of
|
|
42
|
-
* execution of the builder functions in non-deterministic. Builder functions
|
|
43
|
-
* should only be dependent on the state definition object and super function.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Existing builder functions and current return values:
|
|
47
|
-
*
|
|
48
|
-
* - **parent** `{object}` - returns the parent state object.
|
|
49
|
-
* - **data** `{object}` - returns state data, including any inherited data that is not
|
|
50
|
-
* overridden by own values (if any).
|
|
51
|
-
* - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
|
|
52
|
-
* or `null`.
|
|
53
|
-
* - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
|
|
54
|
-
* navigable).
|
|
55
|
-
* - **params** `{object}` - returns an array of state params that are ensured to
|
|
56
|
-
* be a super-set of parent's params.
|
|
57
|
-
* - **views** `{object}` - returns a views object where each key is an absolute view
|
|
58
|
-
* name (i.e. "viewName@stateName") and each value is the config object
|
|
59
|
-
* (template, controller) for the view. Even when you don't use the views object
|
|
60
|
-
* explicitly on a state config, one is still created for you internally.
|
|
61
|
-
* So by decorating this builder function you have access to decorating template
|
|
62
|
-
* and controller properties.
|
|
63
|
-
* - **ownParams** `{object}` - returns an array of params that belong to the state,
|
|
64
|
-
* not including any params defined by ancestor states.
|
|
65
|
-
* - **path** `{string}` - returns the full path from the root down to this state.
|
|
66
|
-
* Needed for state activation.
|
|
67
|
-
* - **includes** `{object}` - returns an object that includes every state that
|
|
68
|
-
* would pass a `$state.includes()` test.
|
|
69
|
-
*
|
|
70
|
-
* #### Example:
|
|
71
|
-
* Override the internal 'views' builder with a function that takes the state
|
|
72
|
-
* definition, and a reference to the internal function being overridden:
|
|
73
|
-
* ```js
|
|
74
|
-
* $stateProvider.decorator('views', function (state, parent) {
|
|
75
|
-
* let result = {},
|
|
76
|
-
* views = parent(state);
|
|
77
|
-
*
|
|
78
|
-
* forEach(views, function (config, name) {
|
|
79
|
-
* let autoName = (state.name + '.' + name).replace('.', '/');
|
|
80
|
-
* config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
|
|
81
|
-
* result[name] = config;
|
|
82
|
-
* });
|
|
83
|
-
* return result;
|
|
84
|
-
* });
|
|
85
|
-
*
|
|
86
|
-
* $stateProvider.state('home', {
|
|
87
|
-
* views: {
|
|
88
|
-
* 'contact.list': { controller: 'ListController' },
|
|
89
|
-
* 'contact.item': { controller: 'ItemController' }
|
|
90
|
-
* }
|
|
91
|
-
* });
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* ```js
|
|
96
|
-
* // Auto-populates list and item views with /partials/home/contact/list.html,
|
|
97
|
-
* // and /partials/home/contact/item.html, respectively.
|
|
98
|
-
* $state.go('home');
|
|
99
|
-
* ```
|
|
100
|
-
*
|
|
101
|
-
* @param {string} name The name of the builder function to decorate.
|
|
102
|
-
* @param {object} func A function that is responsible for decorating the original
|
|
103
|
-
* builder function. The function receives two parameters:
|
|
104
|
-
*
|
|
105
|
-
* - `{object}` - state - The state config object.
|
|
106
|
-
* - `{object}` - super - The original builder function.
|
|
107
|
-
*
|
|
108
|
-
* @return {object} $stateProvider - $stateProvider instance
|
|
109
|
-
*/
|
|
110
|
-
decorator(name: string, func: object): object;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @param {*} definition
|
|
114
|
-
* @returns {StateProvider}
|
|
115
|
-
*/
|
|
116
|
-
state(definition: any): StateProvider;
|
|
117
|
-
/**
|
|
118
|
-
* Registers an invalid state handler
|
|
119
|
-
*
|
|
120
|
-
* This is a passthrough to [[StateService.onInvalid]] for ng1.
|
|
121
|
-
*/
|
|
122
|
-
onInvalid(callback: any): any;
|
|
123
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes a trailing hash ('#') from the given URL if it exists.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} url
|
|
5
|
-
* @returns {string}
|
|
6
|
-
*/
|
|
7
|
-
export function trimEmptyHash(url: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @typedef {function(string, string|null): any} UrlChangeListener
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* This object has two goals:
|
|
13
|
-
*
|
|
14
|
-
* - hide all the global state in the browser caused by the window object
|
|
15
|
-
* - abstract away all the browser specific features and inconsistencies
|
|
16
|
-
*/
|
|
17
|
-
export class Browser {
|
|
18
|
-
/**
|
|
19
|
-
* @param {import('../core/task-tracker-factory.js').TaskTracker} taskTracker
|
|
20
|
-
*/
|
|
21
|
-
constructor(
|
|
22
|
-
taskTracker: import("../core/task-tracker-factory.js").TaskTracker,
|
|
23
|
-
);
|
|
24
|
-
/**
|
|
25
|
-
* @type {import('../core/task-tracker-factory.js').TaskTracker} taskTracker
|
|
26
|
-
*/
|
|
27
|
-
taskTracker: import("../core/task-tracker-factory.js").TaskTracker;
|
|
28
|
-
pendingDeferIds: {};
|
|
29
|
-
/** @type {Array<UrlChangeListener>} */
|
|
30
|
-
urlChangeListeners: Array<UrlChangeListener>;
|
|
31
|
-
urlChangeInit: boolean;
|
|
32
|
-
/** @type {any} */
|
|
33
|
-
cachedState: any;
|
|
34
|
-
/** @type {any} */
|
|
35
|
-
lastHistoryState: any;
|
|
36
|
-
/** @type {string} */
|
|
37
|
-
lastBrowserUrl: string;
|
|
38
|
-
/** @type {HTMLBaseElement | null} */
|
|
39
|
-
baseElement: HTMLBaseElement | null;
|
|
40
|
-
$$completeOutstandingRequest: any;
|
|
41
|
-
$$incOutstandingRequestCount: any;
|
|
42
|
-
notifyWhenNoOutstandingRequests: any;
|
|
43
|
-
url(url: any, state: any): string | this;
|
|
44
|
-
/**
|
|
45
|
-
* Returns the cached state.
|
|
46
|
-
*
|
|
47
|
-
* @returns {any} The cached state.
|
|
48
|
-
*/
|
|
49
|
-
state(): any;
|
|
50
|
-
/**
|
|
51
|
-
* Caches the current state and fires the URL change event.
|
|
52
|
-
*
|
|
53
|
-
* @private
|
|
54
|
-
*/
|
|
55
|
-
private cacheStateAndFireUrlChange;
|
|
56
|
-
/**
|
|
57
|
-
* Caches the current state.
|
|
58
|
-
*
|
|
59
|
-
* @private
|
|
60
|
-
*/
|
|
61
|
-
private cacheState;
|
|
62
|
-
lastCachedState: any;
|
|
63
|
-
/**
|
|
64
|
-
* Fires the state or URL change event.
|
|
65
|
-
*
|
|
66
|
-
* @private
|
|
67
|
-
*/
|
|
68
|
-
private fireStateOrUrlChange;
|
|
69
|
-
/**
|
|
70
|
-
* Registers a callback to be called when the URL changes.
|
|
71
|
-
*
|
|
72
|
-
* @param {UrlChangeListener} callback - The callback function to register.
|
|
73
|
-
* @returns {UrlChangeListener} The registered callback function.
|
|
74
|
-
*/
|
|
75
|
-
onUrlChange(callback: UrlChangeListener): UrlChangeListener;
|
|
76
|
-
$$applicationDestroyed(): void;
|
|
77
|
-
$$checkUrlChange(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Returns the base href of the document.
|
|
80
|
-
*
|
|
81
|
-
* @returns {string} The base href.
|
|
82
|
-
*/
|
|
83
|
-
baseHref(): string;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* This object has two goals:
|
|
87
|
-
*
|
|
88
|
-
* - hide all the global state in the browser caused by the window object
|
|
89
|
-
* - abstract away all the browser specific features and inconsistencies
|
|
90
|
-
*
|
|
91
|
-
* Remove this in the future
|
|
92
|
-
*/
|
|
93
|
-
export class BrowserProvider {
|
|
94
|
-
$get: (
|
|
95
|
-
| string
|
|
96
|
-
| ((
|
|
97
|
-
$$taskTrackerFactory: import("../core/task-tracker-factory.js").TaskTracker,
|
|
98
|
-
) => Browser)
|
|
99
|
-
)[];
|
|
100
|
-
}
|
|
101
|
-
export type UrlChangeListener = (arg0: string, arg1: string | null) => any;
|
|
@@ -1,2 +0,0 @@
|
|
|
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>SwapInsertPosition | 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">SwapInsertPosition</a></li></ul><h1>Type Alias SwapInsertPosition</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">SwapInsertPosition</span><span class="tsd-signature-symbol">:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">InsertPosition</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"textContent"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"innerHTML"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"outerHTML"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"delete"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"none"</span></div><div class="tsd-comment tsd-typography"><p>Possible values for <code>data-swap</code> attribute</p>
|
|
2
|
-
</div><div class="tsd-comment tsd-typography"></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/jsdoc.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tags": {
|
|
3
|
-
"allowUnknownTags": false
|
|
4
|
-
},
|
|
5
|
-
"source": {
|
|
6
|
-
"include": "./src",
|
|
7
|
-
"includePattern": "\\.js$",
|
|
8
|
-
"excludePattern": "(node_modules/|docs|\\.spec.js$|\\.test.js$)"
|
|
9
|
-
},
|
|
10
|
-
"plugins": ["plugins/markdown"],
|
|
11
|
-
"opts": {
|
|
12
|
-
"template": "assets/template/docdash/",
|
|
13
|
-
"encoding": "utf8",
|
|
14
|
-
"destination": "docs/",
|
|
15
|
-
"recurse": true,
|
|
16
|
-
"verbose": true
|
|
17
|
-
},
|
|
18
|
-
"templates": {
|
|
19
|
-
"cleverLinks": false,
|
|
20
|
-
"monospaceLinks": false
|
|
21
|
-
}
|
|
22
|
-
}
|