@angular-wave/angular.ts 0.7.8 → 0.8.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/{loader.d.ts → angular.d.ts} +3 -3
- package/@types/core/di/ng-module.d.ts +61 -25
- package/@types/core/parse/parse.d.ts +6 -7
- package/@types/directive/bind/bind.d.ts +2 -1
- package/@types/index.d.ts +1 -1
- package/@types/interface.d.ts +4 -2
- package/@types/{public.d.ts → ng.d.ts} +2 -2
- package/@types/router/directives/state-directives.d.ts +2 -2
- package/@types/router/directives/view-directive.d.ts +1 -1
- package/@types/router/params/param-type.d.ts +0 -1
- package/@types/router/path/path-utils.d.ts +8 -11
- package/@types/router/{globals.d.ts → router.d.ts} +2 -2
- 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 +2 -2
- package/@types/router/state/state-service.d.ts +14 -16
- package/@types/router/state-filters.d.ts +24 -2
- package/@types/router/transition/transition-service.d.ts +3 -3
- package/@types/router/transition/transition.d.ts +16 -19
- package/@types/router/url/url-matcher.d.ts +3 -4
- package/@types/router/url/url-rule.d.ts +14 -4
- package/@types/router/url/url-rules.d.ts +26 -6
- package/@types/router/url/url-service.d.ts +28 -38
- package/@types/services/http/http.d.ts +48 -1
- package/@types/services/http-backend/http-backend.d.ts +48 -35
- package/@types/services/location/interface.d.ts +55 -0
- package/@types/services/location/location.d.ts +225 -252
- package/@types/shared/common.d.ts +0 -2
- package/@types/shared/hof.d.ts +0 -6
- package/@types/shared/interface.d.ts +0 -4
- package/@types/{router/common → shared}/queue.d.ts +2 -2
- package/@types/shared/url-utils/interface.d.ts +0 -1
- package/@types/shared/url-utils/url-utils.d.ts +0 -5
- package/@types/shared/utils.d.ts +29 -6
- package/CHANGELOG.md +0 -72
- package/CONTRIBUTING.md +0 -1
- package/DEVELOPERS.md +0 -1
- package/Makefile +6 -3
- package/TRIAGING.md +0 -1
- package/dist/angular-ts.esm.js +1048 -1150
- package/dist/angular-ts.umd.js +1048 -1150
- 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 +1 -1
- 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 +3 -3
- 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 +2 -2
- package/docs/content/docs/service/location.md +57 -0
- package/docs/content/docs/service/url.md +5 -0
- package/docs/layouts/partials/hooks/head-end.html +1 -1
- 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-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 +3 -3
- package/docs/static/typedoc/index.html +1 -1
- package/docs/static/typedoc/interfaces/DefaultPorts.html +5 -0
- package/docs/static/typedoc/interfaces/Html5Mode.html +23 -0
- package/docs/static/typedoc/interfaces/Provider.html +2 -1
- package/docs/static/typedoc/interfaces/UrlParts.html +9 -0
- package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
- package/docs/static/typedoc/types/Expression.html +1 -1
- package/docs/static/typedoc/types/Injectable.html +4 -1
- package/docs/static/typedoc/types/InjectableFactory.html +1 -4
- package/docs/static/typedoc/types/UrlChangeListener.html +5 -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/package.json +2 -2
- package/src/{loader.js → angular.js} +11 -11
- package/src/angular.spec.js +189 -21
- package/src/animations/animate-css.js +17 -18
- package/src/animations/animate.spec.js +1 -1
- package/src/animations/shared.js +2 -3
- package/src/binding.spec.js +1 -1
- package/src/core/compile/compile.js +4 -7
- 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 +7 -8
- 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 +3 -6
- package/src/core/di/ng-module.js +26 -21
- package/src/core/filter/filter.js +1 -1
- 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/lexer/lexer.spec.js +1 -1
- package/src/core/parse/parse.js +150 -146
- package/src/core/parse/parse.spec.js +46 -46
- package/src/core/prop.spec.js +1 -1
- package/src/core/root-element.spec.js +1 -1
- package/src/core/scope/scope.js +10 -11
- 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.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 +6 -6
- 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 +1 -1
- package/src/directive/http/form-test.html +18 -0
- package/src/directive/http/get.spec.js +1 -1
- package/src/directive/http/http.js +12 -3
- package/src/directive/http/post.spec.js +504 -9
- package/src/directive/http/put.spec.js +1 -1
- package/src/directive/if/if.spec.js +1 -1
- 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 +13 -15
- package/src/directive/input/input.spec.js +1 -2
- package/src/directive/input/input.test.js +1 -0
- package/src/directive/messages/messages.md +0 -4
- package/src/directive/messages/messages.spec.js +1 -1
- package/src/directive/messages/messages.test.js +1 -0
- package/src/directive/model/model.js +13 -13
- 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.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.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.spec.js +1 -1
- 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.spec.js +1 -1
- package/src/directive/switch/switch.test.js +1 -0
- 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 +7 -3
- package/src/interface.ts +4 -3
- package/src/loader.md +0 -155
- package/src/{public.js → ng.js} +11 -12
- package/src/{public.spec.js → ng.spec.js} +2 -2
- package/src/router/directives/state-directives.js +5 -5
- package/src/router/directives/state-directives.spec.js +8 -7
- package/src/router/directives/view-directive.js +7 -13
- package/src/router/directives/view-directive.spec.js +22 -23
- package/src/router/{common/common.html → glob/glob.html} +2 -3
- package/src/router/{common/common.test.js → glob/glob.test.js} +2 -1
- package/src/router/params/param-type.js +0 -1
- package/src/router/params/param.js +1 -1
- package/src/router/path/path-utils.js +5 -0
- package/src/router/router-test-hashbang.html +45 -0
- package/src/router/{globals.js → router.js} +2 -2
- package/src/router/services.spec.js +8 -9
- 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 +4 -4
- package/src/router/state/state-service.js +14 -14
- 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 +13 -9
- package/src/router/template-factory.js +5 -4
- package/src/router/template-factory.spec.js +7 -7
- package/src/router/transition/hook-registry.js +1 -1
- package/src/router/transition/transition-service.js +7 -6
- package/src/router/transition/transition.js +6 -6
- package/src/router/url/url-matcher.js +12 -14
- package/src/router/url/url-rule.js +8 -2
- package/src/router/url/url-rules.js +8 -5
- package/src/router/url/url-service.js +80 -76
- package/src/router/url/url-service.spec.js +61 -78
- 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.js +3 -1
- package/src/router/view-scroll.spec.js +12 -12
- package/src/services/anchor-scroll.html +2 -2
- package/src/services/anchor-scroll.js +5 -4
- package/src/services/http/http.js +9 -4
- package/src/services/http/http.spec.js +2 -7
- package/src/services/http/template-request.spec.js +1 -1
- package/src/services/http-backend/http-backend.js +51 -77
- package/src/services/http-backend/http-backend.spec.js +1 -2
- package/src/services/http-backend/http-backend.test.js +1 -0
- package/src/services/location/interface.ts +62 -0
- package/src/services/location/location.js +439 -519
- package/src/services/location/location.spec.js +915 -530
- package/src/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/services/sce/sce.js +5 -7
- package/src/services/sce/sce.md +2 -2
- package/src/services/sce/sce.spec.js +1 -1
- package/src/services/template-cache/template-cache.spec.js +1 -1
- package/src/services/template-cache/template-cache.test.js +1 -0
- package/src/shared/common.js +5 -10
- package/src/shared/common.spec.js +1 -1
- package/src/shared/hof.js +0 -14
- 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/url-utils/interface.ts +0 -2
- package/src/shared/url-utils/url-utils.js +6 -30
- package/src/shared/url-utils/url-utils.spec.js +10 -9
- package/src/shared/utils.js +32 -9
- package/src/shared/utils.spec.js +35 -1
- package/src/src.html +1 -2
- package/typedoc.json +0 -1
- package/utils/express.js +27 -1
- package/utils/version.cjs +23 -0
- package/@types/router/state-provider.d.ts +0 -123
- 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/location/location.md +0 -114
- package/src/shared/url-utils/url-utils.md +0 -46
- /package/@types/router/{common → glob}/glob.d.ts +0 -0
- /package/src/router/{common → glob}/glob.js +0 -0
- /package/src/router/{common → glob}/glob.spec.js +0 -0
- /package/src/{router/common → shared}/queue.spec.js +0 -0
|
@@ -18,7 +18,7 @@ export class Angular {
|
|
|
18
18
|
getInjector: typeof getInjector;
|
|
19
19
|
getScope: typeof getScope;
|
|
20
20
|
errorHandlingConfig: typeof errorHandlingConfig;
|
|
21
|
-
$
|
|
21
|
+
$t: Readonly<Record<string, string>>;
|
|
22
22
|
/**
|
|
23
23
|
* Use this function to manually start up AngularTS application.
|
|
24
24
|
*
|
|
@@ -124,14 +124,14 @@ export class Angular {
|
|
|
124
124
|
* @param {string} name The name of the module to create or retrieve.
|
|
125
125
|
* @param {Array.<string>} [requires] If specified then new module is being created. If
|
|
126
126
|
* unspecified then the module is being retrieved for further configuration.
|
|
127
|
-
* @param {
|
|
127
|
+
* @param {import("./interface.js").Injectable} [configFn] Optional configuration function for the module that gets
|
|
128
128
|
* passed to {@link NgModule.config NgModule.config()}.
|
|
129
129
|
* @returns {NgModule} A newly registered module.
|
|
130
130
|
*/
|
|
131
131
|
module(
|
|
132
132
|
name: string,
|
|
133
133
|
requires?: Array<string>,
|
|
134
|
-
configFn?:
|
|
134
|
+
configFn?: import("./interface.js").Injectable,
|
|
135
135
|
): NgModule;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
@@ -22,9 +22,13 @@ export class NgModule {
|
|
|
22
22
|
/**
|
|
23
23
|
* @param {string} name - Name of the module
|
|
24
24
|
* @param {Array<string>} requires - List of modules which the injector will load before the current module
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {import("../../interface.js").Injectable} [configFn]
|
|
26
26
|
*/
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
requires: Array<string>,
|
|
30
|
+
configFn?: import("../../interface.js").Injectable,
|
|
31
|
+
);
|
|
28
32
|
/**
|
|
29
33
|
* Name of the current module.
|
|
30
34
|
* @type {string}
|
|
@@ -42,8 +46,8 @@ export class NgModule {
|
|
|
42
46
|
invokeQueue: Array<Array<any>>;
|
|
43
47
|
/** @type {!Array<Array<*>>} */
|
|
44
48
|
configBlocks: Array<Array<any>>;
|
|
45
|
-
/** @type {!Array.<
|
|
46
|
-
runBlocks: Array<
|
|
49
|
+
/** @type {!Array.<import("../../interface.js").Injectable>} */
|
|
50
|
+
runBlocks: Array<import("../../interface.js").Injectable>;
|
|
47
51
|
/**
|
|
48
52
|
* @param {string} name
|
|
49
53
|
* @param {any} object
|
|
@@ -58,62 +62,94 @@ export class NgModule {
|
|
|
58
62
|
constant(name: string, object: any): NgModule;
|
|
59
63
|
/**
|
|
60
64
|
*
|
|
61
|
-
* @param {
|
|
65
|
+
* @param {import("../../interface.js").Injectable} configFn
|
|
62
66
|
* @returns {NgModule}
|
|
63
67
|
*/
|
|
64
|
-
config(configFn:
|
|
68
|
+
config(configFn: import("../../interface.js").Injectable): NgModule;
|
|
65
69
|
/**
|
|
66
|
-
* @param {
|
|
70
|
+
* @param {import("../../interface.js").Injectable} block
|
|
67
71
|
* @returns {NgModule}
|
|
68
72
|
*/
|
|
69
|
-
run(block:
|
|
73
|
+
run(block: import("../../interface.js").Injectable): NgModule;
|
|
70
74
|
/**
|
|
71
75
|
* @param {string} name
|
|
72
|
-
* @param {
|
|
76
|
+
* @param {import("../../interface.js").Injectable} options
|
|
73
77
|
* @returns {NgModule}
|
|
74
78
|
*/
|
|
75
|
-
component(
|
|
79
|
+
component(
|
|
80
|
+
name: string,
|
|
81
|
+
options: import("../../interface.js").Injectable,
|
|
82
|
+
): NgModule;
|
|
76
83
|
/**
|
|
77
84
|
* @param {string} name
|
|
78
|
-
* @param {
|
|
85
|
+
* @param {import("../../interface.js").Injectable} providerFunction
|
|
79
86
|
* @returns {NgModule}
|
|
80
87
|
*/
|
|
81
|
-
factory(
|
|
88
|
+
factory(
|
|
89
|
+
name: string,
|
|
90
|
+
providerFunction: import("../../interface.js").Injectable,
|
|
91
|
+
): NgModule;
|
|
82
92
|
/**
|
|
83
93
|
* @param {string} name
|
|
84
|
-
* @param {
|
|
94
|
+
* @param {import("../../interface.js").Injectable} serviceFunction
|
|
85
95
|
* @returns {NgModule}
|
|
86
96
|
*/
|
|
87
|
-
service(
|
|
97
|
+
service(
|
|
98
|
+
name: string,
|
|
99
|
+
serviceFunction: import("../../interface.js").Injectable,
|
|
100
|
+
): NgModule;
|
|
88
101
|
/**
|
|
89
102
|
* @param {string} name
|
|
90
|
-
* @param {
|
|
103
|
+
* @param {import("../../interface.js").Injectable} providerType
|
|
91
104
|
* @returns {NgModule}
|
|
92
105
|
*/
|
|
93
|
-
provider(
|
|
106
|
+
provider(
|
|
107
|
+
name: string,
|
|
108
|
+
providerType: import("../../interface.js").Injectable,
|
|
109
|
+
): NgModule;
|
|
94
110
|
/**
|
|
95
111
|
* @param {string} name
|
|
96
|
-
* @param {
|
|
112
|
+
* @param {import("../../interface.js").Injectable} decorFn
|
|
97
113
|
* @returns {NgModule}
|
|
98
114
|
*/
|
|
99
|
-
decorator(
|
|
115
|
+
decorator(
|
|
116
|
+
name: string,
|
|
117
|
+
decorFn: import("../../interface.js").Injectable,
|
|
118
|
+
): NgModule;
|
|
100
119
|
/**
|
|
101
120
|
* @param {string} name
|
|
102
|
-
* @param {
|
|
121
|
+
* @param {import("../../interface.js").Injectable} directiveFactory
|
|
103
122
|
* @returns {NgModule}
|
|
104
123
|
*/
|
|
105
|
-
directive(
|
|
124
|
+
directive(
|
|
125
|
+
name: string,
|
|
126
|
+
directiveFactory: import("../../interface.js").Injectable,
|
|
127
|
+
): NgModule;
|
|
106
128
|
/**
|
|
107
129
|
* @param {string} name
|
|
108
|
-
* @param {
|
|
130
|
+
* @param {import("../../interface.js").Injectable} animationFactory
|
|
109
131
|
* @returns {NgModule}
|
|
110
132
|
*/
|
|
111
|
-
animation(
|
|
112
|
-
|
|
133
|
+
animation(
|
|
134
|
+
name: string,
|
|
135
|
+
animationFactory: import("../../interface.js").Injectable,
|
|
136
|
+
): NgModule;
|
|
113
137
|
/**
|
|
114
138
|
* @param {string} name
|
|
115
|
-
* @param {
|
|
139
|
+
* @param {import("../../interface.js").Injectable} filterFn
|
|
140
|
+
* @return {NgModule}
|
|
141
|
+
*/
|
|
142
|
+
filter(
|
|
143
|
+
name: string,
|
|
144
|
+
filterFn: import("../../interface.js").Injectable,
|
|
145
|
+
): NgModule;
|
|
146
|
+
/**
|
|
147
|
+
* @param {string} name
|
|
148
|
+
* @param {import("../../interface.js").Injectable} ctlFn
|
|
116
149
|
* @returns {NgModule}
|
|
117
150
|
*/
|
|
118
|
-
controller(
|
|
151
|
+
controller(
|
|
152
|
+
name: string,
|
|
153
|
+
ctlFn: import("../../interface.js").Injectable,
|
|
154
|
+
): NgModule;
|
|
119
155
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function constantWatchDelegate(
|
|
2
|
+
scope: any,
|
|
3
|
+
listener: any,
|
|
4
|
+
objectEquality: any,
|
|
5
|
+
parsedExpression: any,
|
|
6
|
+
): any;
|
|
2
7
|
export class ParseProvider {
|
|
3
8
|
/**
|
|
4
9
|
* Allows defining the set of characters that are allowed in AngularTS expressions. The function
|
|
@@ -26,9 +31,3 @@ export class ParseProvider {
|
|
|
26
31
|
) => ParseProvider;
|
|
27
32
|
$get: (string | (($filter: (any: any) => any) => any))[];
|
|
28
33
|
}
|
|
29
|
-
export function constantWatchDelegate(
|
|
30
|
-
scope: any,
|
|
31
|
-
listener: any,
|
|
32
|
-
objectEquality: any,
|
|
33
|
-
parsedExpression: any,
|
|
34
|
-
): any;
|
|
@@ -7,10 +7,11 @@ export function ngBindDirective(): import("../../interface.ts").Directive;
|
|
|
7
7
|
*/
|
|
8
8
|
export function ngBindTemplateDirective(): import("../../interface.ts").Directive;
|
|
9
9
|
/**
|
|
10
|
+
* @param {import('../../core/parse/interface.ts').ParseService} $parse
|
|
10
11
|
* @returns {import('../../interface.ts').Directive}
|
|
11
12
|
*/
|
|
12
13
|
export function ngBindHtmlDirective(
|
|
13
|
-
$parse:
|
|
14
|
+
$parse: import("../../core/parse/interface.ts").ParseService,
|
|
14
15
|
): import("../../interface.ts").Directive;
|
|
15
16
|
export namespace ngBindHtmlDirective {
|
|
16
17
|
let $inject: string[];
|
package/@types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const angular: Angular;
|
|
2
|
-
import { Angular } from "./
|
|
2
|
+
import { Angular } from "./angular.js";
|
package/@types/interface.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from "./core/di/ng-module.js";
|
|
|
4
4
|
export * from "./services/http/interface.ts";
|
|
5
5
|
export * from "./services/log/interface.ts";
|
|
6
6
|
export * from "./services/log/log.js";
|
|
7
|
+
export * from "./services/location/interface.ts";
|
|
8
|
+
export * from "./services/location/location.js";
|
|
7
9
|
export * from "./services/pubsub/pubsub.js";
|
|
8
10
|
export * from "./services/template-cache/interface.ts";
|
|
9
11
|
export * from "./services/template-cache/template-cache.js";
|
|
@@ -34,13 +36,13 @@ export type ExpandoStore = {
|
|
|
34
36
|
* ```
|
|
35
37
|
*/
|
|
36
38
|
export type AnnotatedFactory = [...string[], (...args: any[]) => any];
|
|
39
|
+
export type InjectableFactory = (...args: any[]) => any;
|
|
37
40
|
/**
|
|
38
41
|
* A factory that can be either a standalone function or a dependency-annotated array.
|
|
39
42
|
*
|
|
40
43
|
* The array form is used to support minification-safe dependency injection.
|
|
41
44
|
* See {@link AnnotatedFactory}.
|
|
42
45
|
*/
|
|
43
|
-
export type InjectableFactory = (...args: any[]) => any;
|
|
44
46
|
export type Injectable = AnnotatedFactory | InjectableFactory;
|
|
45
47
|
/**
|
|
46
48
|
* An object that defines how a service is constructed.
|
|
@@ -61,7 +63,7 @@ export interface Provider {
|
|
|
61
63
|
/**
|
|
62
64
|
* Register a directive
|
|
63
65
|
* @param name - The name of the directive.
|
|
64
|
-
* @param
|
|
66
|
+
* @param directive - An object with a `$get` property that defines how the service is created.
|
|
65
67
|
*/
|
|
66
68
|
directive(name: string, directive: DirectiveFactory): Provider;
|
|
67
69
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Initializes core `ng` module.
|
|
3
|
-
* @param {import('./
|
|
3
|
+
* @param {import('./angular.js').Angular} angular
|
|
4
4
|
* @returns {import('./core/di/ng-module.js').NgModule} `ng` module
|
|
5
5
|
*/
|
|
6
6
|
export function registerNgModule(
|
|
7
|
-
angular: import("./
|
|
7
|
+
angular: import("./angular.js").Angular,
|
|
8
8
|
): import("./core/di/ng-module.js").NgModule;
|
|
@@ -27,7 +27,7 @@ export namespace $StateRefDynamicDirective {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* @param {*} $state
|
|
30
|
-
* @param {import('../
|
|
30
|
+
* @param {import('../router.js').Router} $router
|
|
31
31
|
* @param {*} $interpolate
|
|
32
32
|
* @param {*} $stateRegistry
|
|
33
33
|
* @param {*} $transitions
|
|
@@ -35,7 +35,7 @@ export namespace $StateRefDynamicDirective {
|
|
|
35
35
|
*/
|
|
36
36
|
export function $StateRefActiveDirective(
|
|
37
37
|
$state: any,
|
|
38
|
-
$
|
|
38
|
+
$router: import("../router.js").Router,
|
|
39
39
|
$interpolate: any,
|
|
40
40
|
$stateRegistry: any,
|
|
41
41
|
$transitions: any,
|
|
@@ -20,7 +20,7 @@ export namespace $ViewDirectiveFill {
|
|
|
20
20
|
* The ng-view can be targeted in a View using the name ([[StateDeclaration.views]]).
|
|
21
21
|
*
|
|
22
22
|
* - `autoscroll`: an expression. When it evaluates to true, the `ng-view` will be scrolled into view when it is activated.
|
|
23
|
-
* Uses [[$
|
|
23
|
+
* Uses [[$viewScroll]] to do the scrolling.
|
|
24
24
|
*
|
|
25
25
|
* - `onload`: Expression to evaluate whenever the view updates.
|
|
26
26
|
*
|
|
@@ -25,7 +25,6 @@ export class ParamType {
|
|
|
25
25
|
/**
|
|
26
26
|
* @param def A configuration object which contains the custom type definition. The object's
|
|
27
27
|
* properties will override the default methods and/or pattern in `ParamType`'s public interface.
|
|
28
|
-
* @returns a new ParamType object
|
|
29
28
|
*/
|
|
30
29
|
constructor(def: any);
|
|
31
30
|
pattern: RegExp;
|
|
@@ -34,19 +34,16 @@ export class PathUtils {
|
|
|
34
34
|
static inheritParams(fromPath: any, toPath: any, toKeys?: any[]): any;
|
|
35
35
|
/**
|
|
36
36
|
* Computes the tree changes (entering, exiting) between a fromPath and toPath.
|
|
37
|
+
* @param {PathNode[]} fromPath
|
|
38
|
+
* @param {PathNode[]} toPath
|
|
39
|
+
* @param {boolean} [reloadState]
|
|
40
|
+
* @returns {import("../transition/interface.js").TreeChanges}
|
|
37
41
|
*/
|
|
38
42
|
static treeChanges(
|
|
39
|
-
fromPath:
|
|
40
|
-
toPath:
|
|
41
|
-
reloadState
|
|
42
|
-
):
|
|
43
|
-
from: any;
|
|
44
|
-
to: any;
|
|
45
|
-
retained: any;
|
|
46
|
-
retainedWithToParams: any;
|
|
47
|
-
exiting: any;
|
|
48
|
-
entering: any;
|
|
49
|
-
};
|
|
43
|
+
fromPath: PathNode[],
|
|
44
|
+
toPath: PathNode[],
|
|
45
|
+
reloadState?: boolean,
|
|
46
|
+
): import("../transition/interface.js").TreeChanges;
|
|
50
47
|
/**
|
|
51
48
|
* Returns a new path which is: the subpath of the first path which matches the second path.
|
|
52
49
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This is where we hold the global mutable state such as current state, current
|
|
6
6
|
* params, current transition, etc.
|
|
7
7
|
*/
|
|
8
|
-
export class
|
|
8
|
+
export class Router {
|
|
9
9
|
/**
|
|
10
10
|
* Current parameter values
|
|
11
11
|
*
|
|
@@ -44,4 +44,4 @@ export class RouterGlobals {
|
|
|
44
44
|
*/
|
|
45
45
|
export type ServiceProvider = import("../interface.ts").ServiceProvider;
|
|
46
46
|
import { StateParams } from "./params/state-params.js";
|
|
47
|
-
import { Queue } from "
|
|
47
|
+
import { Queue } from "../shared/queue.js";
|
|
@@ -589,7 +589,7 @@ export interface StateDeclaration {
|
|
|
589
589
|
*
|
|
590
590
|
* An optional object which defines multiple views, or explicitly targets specific named ui-views.
|
|
591
591
|
*
|
|
592
|
-
* - What is a view
|
|
592
|
+
* - What is a view urlConfig
|
|
593
593
|
* - What is a ui-view
|
|
594
594
|
* - Shorthand controller/template
|
|
595
595
|
* - Incompatible with ^
|
|
@@ -10,13 +10,13 @@ export class StateRegistryProvider {
|
|
|
10
10
|
/**
|
|
11
11
|
* @param urlService
|
|
12
12
|
* @param stateService
|
|
13
|
-
* @param {import('../
|
|
13
|
+
* @param {import('../router.js').Router} globals
|
|
14
14
|
* @param viewService
|
|
15
15
|
*/
|
|
16
16
|
constructor(
|
|
17
17
|
urlService: any,
|
|
18
18
|
stateService: any,
|
|
19
|
-
globals: import("../
|
|
19
|
+
globals: import("../router.js").Router,
|
|
20
20
|
viewService: any,
|
|
21
21
|
);
|
|
22
22
|
states: {};
|
|
@@ -7,34 +7,31 @@ export class StateProvider {
|
|
|
7
7
|
static $inject: string[];
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
|
-
* @param {import('../
|
|
10
|
+
* @param {import('../router.js').Router} globals
|
|
11
11
|
* @param {*} transitionService
|
|
12
12
|
*/
|
|
13
|
-
constructor(
|
|
14
|
-
globals: import("../globals.js").RouterGlobals,
|
|
15
|
-
transitionService: any,
|
|
16
|
-
);
|
|
13
|
+
constructor(globals: import("../router.js").Router, transitionService: any);
|
|
17
14
|
/**
|
|
18
15
|
* The latest successful state parameters
|
|
19
16
|
*
|
|
20
|
-
* @deprecated This is a passthrough through to [[
|
|
17
|
+
* @deprecated This is a passthrough through to [[Router.params]]
|
|
21
18
|
*/
|
|
22
19
|
get params(): import("../params/state-params.js").StateParams;
|
|
23
20
|
/**
|
|
24
21
|
* The current [[StateDeclaration]]
|
|
25
22
|
*
|
|
26
|
-
* @deprecated This is a passthrough through to [[
|
|
23
|
+
* @deprecated This is a passthrough through to [[Router.current]]
|
|
27
24
|
*/
|
|
28
25
|
get current(): import("./interface.js").StateDeclaration;
|
|
29
26
|
/**
|
|
30
27
|
* The current [[StateObject]] (an internal API)
|
|
31
28
|
*
|
|
32
|
-
* @deprecated This is a passthrough through to [[
|
|
29
|
+
* @deprecated This is a passthrough through to [[Router.$current]]
|
|
33
30
|
*/
|
|
34
31
|
get $current(): import("./state-object.js").StateObject;
|
|
35
32
|
stateRegistry: any;
|
|
36
33
|
urlService: any;
|
|
37
|
-
globals: import("../
|
|
34
|
+
globals: import("../router.js").Router;
|
|
38
35
|
transitionService: any;
|
|
39
36
|
invalidCallbacks: any[];
|
|
40
37
|
_defaultErrorHandler: ($error$: any) => never;
|
|
@@ -76,9 +73,9 @@ export class StateProvider {
|
|
|
76
73
|
* - **params** `{object}` - returns an array of state params that are ensured to
|
|
77
74
|
* be a super-set of parent's params.
|
|
78
75
|
* - **views** `{object}` - returns a views object where each key is an absolute view
|
|
79
|
-
* name (i.e. "viewName@stateName") and each value is the
|
|
76
|
+
* name (i.e. "viewName@stateName") and each value is the urlConfig object
|
|
80
77
|
* (template, controller) for the view. Even when you don't use the views object
|
|
81
|
-
* explicitly on a state
|
|
78
|
+
* explicitly on a state urlConfig, one is still created for you internally.
|
|
82
79
|
* So by decorating this builder function you have access to decorating template
|
|
83
80
|
* and controller properties.
|
|
84
81
|
* - **ownParams** `{object}` - returns an array of params that belong to the state,
|
|
@@ -96,10 +93,10 @@ export class StateProvider {
|
|
|
96
93
|
* let result = {},
|
|
97
94
|
* views = parent(state);
|
|
98
95
|
*
|
|
99
|
-
* angular.forEach(views, function (
|
|
96
|
+
* angular.forEach(views, function (urlConfig, name) {
|
|
100
97
|
* let autoName = (state.name + '.' + name).replace('.', '/');
|
|
101
|
-
*
|
|
102
|
-
* result[name] =
|
|
98
|
+
* urlConfig.templateUrl = urlConfig.templateUrl || '/partials/' + autoName + '.html';
|
|
99
|
+
* result[name] = urlConfig;
|
|
103
100
|
* });
|
|
104
101
|
* return result;
|
|
105
102
|
* });
|
|
@@ -123,7 +120,7 @@ export class StateProvider {
|
|
|
123
120
|
* @param {object} func A function that is responsible for decorating the original
|
|
124
121
|
* builder function. The function receives two parameters:
|
|
125
122
|
*
|
|
126
|
-
* - `{object}` - state - The state
|
|
123
|
+
* - `{object}` - state - The state urlConfig object.
|
|
127
124
|
* - `{object}` - super - The original builder function.
|
|
128
125
|
*
|
|
129
126
|
* @return {object} $stateProvider - $stateProvider instance
|
|
@@ -265,7 +262,7 @@ export class StateProvider {
|
|
|
265
262
|
* This may be returned from a Transition Hook to redirect a transition, for example.
|
|
266
263
|
*/
|
|
267
264
|
target(identifier: any, params: any, options?: {}): TargetState;
|
|
268
|
-
getCurrentPath():
|
|
265
|
+
getCurrentPath(): PathNode[];
|
|
269
266
|
/**
|
|
270
267
|
* Low-level method for transitioning to a new state.
|
|
271
268
|
*
|
|
@@ -419,3 +416,4 @@ export class StateProvider {
|
|
|
419
416
|
lazyLoad(stateOrName: any, transition: any): any;
|
|
420
417
|
}
|
|
421
418
|
import { TargetState } from "./target-state.js";
|
|
419
|
+
import { PathNode } from "../path/path-node.js";
|
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* `isState` Filter: truthy if the current state is the parameter
|
|
3
|
+
*
|
|
4
|
+
* Translates to [[StateService.is]] `$state.is("stateName")`.
|
|
5
|
+
*
|
|
6
|
+
* #### Example:
|
|
7
|
+
* ```html
|
|
8
|
+
* <div ng-if="'stateName' | isState">show if state is 'stateName'</div>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @param {import('./state/state-service.js').StateProvider} $state
|
|
2
12
|
* @returns {import('../interface.ts').FilterFn}
|
|
3
13
|
*/
|
|
4
|
-
export function $IsStateFilter(
|
|
14
|
+
export function $IsStateFilter(
|
|
15
|
+
$state: import("./state/state-service.js").StateProvider,
|
|
16
|
+
): import("../interface.ts").FilterFn;
|
|
5
17
|
export namespace $IsStateFilter {
|
|
6
18
|
let $inject: string[];
|
|
7
19
|
}
|
|
8
20
|
/**
|
|
21
|
+
* `includedByState` Filter: truthy if the current state includes the parameter
|
|
22
|
+
*
|
|
23
|
+
* Translates to [[StateService.includes]]` $state.is("fullOrPartialStateName")`.
|
|
24
|
+
*
|
|
25
|
+
* #### Example:
|
|
26
|
+
* ```html
|
|
27
|
+
* <div ng-if="'fullOrPartialStateName' | includedByState">show if state includes 'fullOrPartialStateName'</div>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @param {import('./state/state-service.js').StateProvider} $state
|
|
9
31
|
* @returns {import('../interface.ts').FilterFn}
|
|
10
32
|
*/
|
|
11
33
|
export function $IncludedByStateFilter(
|
|
12
|
-
$state:
|
|
34
|
+
$state: import("./state/state-service.js").StateProvider,
|
|
13
35
|
): import("../interface.ts").FilterFn;
|
|
14
36
|
export namespace $IncludedByStateFilter {
|
|
15
37
|
let $inject_1: string[];
|
|
@@ -23,10 +23,10 @@ export namespace defaultTransOpts {
|
|
|
23
23
|
export class TransitionProvider {
|
|
24
24
|
static $inject: string[];
|
|
25
25
|
/**
|
|
26
|
-
* @param {import('../
|
|
26
|
+
* @param {import('../router.js').Router} globals
|
|
27
27
|
* @param viewService
|
|
28
28
|
*/
|
|
29
|
-
constructor(globals: import("../
|
|
29
|
+
constructor(globals: import("../router.js").Router, viewService: any);
|
|
30
30
|
_transitionCount: number;
|
|
31
31
|
/** The transition hook types, such as `onEnter`, `onStart`, etc */
|
|
32
32
|
_eventTypes: any[];
|
|
@@ -34,7 +34,7 @@ export class TransitionProvider {
|
|
|
34
34
|
_registeredHooks: {};
|
|
35
35
|
/** The paths on a criteria object */
|
|
36
36
|
_criteriaPaths: {};
|
|
37
|
-
globals: import("../
|
|
37
|
+
globals: import("../router.js").Router;
|
|
38
38
|
$view: any;
|
|
39
39
|
_deregisterHookFns: {};
|
|
40
40
|
_pluginapi: any;
|
|
@@ -14,22 +14,22 @@ export class Transition implements IHookRegistry {
|
|
|
14
14
|
*
|
|
15
15
|
* If the target state is not valid, an error is thrown.
|
|
16
16
|
*
|
|
17
|
-
* @param fromPath The path of [[PathNode]]s from which the transition is leaving. The last node in the `fromPath`
|
|
17
|
+
* @param {Array<import('../path/path-node.js').PathNode>} fromPath The path of [[PathNode]]s from which the transition is leaving. The last node in the `fromPath`
|
|
18
18
|
* encapsulates the "from state".
|
|
19
|
-
* @param targetState The target state and parameters being transitioned to (also, the transition options)
|
|
19
|
+
* @param {import('../state/target-state.js').TargetState} targetState The target state and parameters being transitioned to (also, the transition options)
|
|
20
20
|
* @param {import('../transition/transition-service.js').TransitionProvider} transitionService The [[TransitionService]] instance
|
|
21
|
-
* @param {import('../
|
|
21
|
+
* @param {import('../router.js').Router} globals
|
|
22
22
|
*/
|
|
23
23
|
constructor(
|
|
24
|
-
fromPath:
|
|
25
|
-
targetState:
|
|
24
|
+
fromPath: Array<import("../path/path-node.js").PathNode>,
|
|
25
|
+
targetState: import("../state/target-state.js").TargetState,
|
|
26
26
|
transitionService: import("../transition/transition-service.js").TransitionProvider,
|
|
27
|
-
globals: import("../
|
|
27
|
+
globals: import("../router.js").Router,
|
|
28
28
|
);
|
|
29
29
|
/**
|
|
30
|
-
* @type {import('../
|
|
30
|
+
* @type {import('../router.js').Router}
|
|
31
31
|
*/
|
|
32
|
-
globals: import("../
|
|
32
|
+
globals: import("../router.js").Router;
|
|
33
33
|
transitionService: import("../transition/transition-service.js").TransitionProvider;
|
|
34
34
|
_deferred: any;
|
|
35
35
|
/**
|
|
@@ -44,17 +44,10 @@ export class Transition implements IHookRegistry {
|
|
|
44
44
|
_hookBuilder: HookBuilder;
|
|
45
45
|
/** Checks if this transition is currently active/running. */
|
|
46
46
|
isActive: () => boolean;
|
|
47
|
-
_targetState:
|
|
47
|
+
_targetState: import("../state/target-state.js").TargetState;
|
|
48
48
|
_options: any;
|
|
49
49
|
$id: number;
|
|
50
|
-
_treeChanges:
|
|
51
|
-
from: any;
|
|
52
|
-
to: any;
|
|
53
|
-
retained: any;
|
|
54
|
-
retainedWithToParams: any;
|
|
55
|
-
exiting: any;
|
|
56
|
-
entering: any;
|
|
57
|
-
};
|
|
50
|
+
_treeChanges: import("./interface.js").TreeChanges;
|
|
58
51
|
onStart: any;
|
|
59
52
|
onBefore: any;
|
|
60
53
|
onSuccess: any;
|
|
@@ -101,7 +94,7 @@ export class Transition implements IHookRegistry {
|
|
|
101
94
|
*
|
|
102
95
|
* @returns the [[TargetState]] of this Transition
|
|
103
96
|
*/
|
|
104
|
-
targetState():
|
|
97
|
+
targetState(): import("../state/target-state.js").TargetState;
|
|
105
98
|
/**
|
|
106
99
|
* Determines whether two transitions are equivalent.
|
|
107
100
|
* @deprecated
|
|
@@ -319,7 +312,11 @@ export class Transition implements IHookRegistry {
|
|
|
319
312
|
* @returns a list of ViewConfig objects for the given path.
|
|
320
313
|
*/
|
|
321
314
|
views(pathname: string, state: any): any;
|
|
322
|
-
treeChanges(
|
|
315
|
+
treeChanges(
|
|
316
|
+
pathname: any,
|
|
317
|
+
):
|
|
318
|
+
| import("../path/path-node.js").PathNode[]
|
|
319
|
+
| import("./interface.js").TreeChanges;
|
|
323
320
|
/**
|
|
324
321
|
* Creates a new transition that is a redirection of the current one.
|
|
325
322
|
*
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
export class UrlMatcher {
|
|
53
|
-
static encodeDashes(str: any): string;
|
|
54
53
|
/** @internal Given a matcher, return an array with the matcher's path segments and path params, in order */
|
|
55
54
|
static pathSegmentsAndParams(matcher: any): any;
|
|
56
55
|
/** @internal Given a matcher, return an array with the matcher's query params */
|
|
@@ -112,9 +111,9 @@ export class UrlMatcher {
|
|
|
112
111
|
* // returns { id: 'bob', q: 'hello', r: null }
|
|
113
112
|
* ```
|
|
114
113
|
*
|
|
115
|
-
* @param path The URL path to match, e.g. `$location.
|
|
116
|
-
* @param search URL search parameters, e.g. `$location.
|
|
117
|
-
* @param hash URL hash e.g. `$location.
|
|
114
|
+
* @param path The URL path to match, e.g. `$location.getPath()`.
|
|
115
|
+
* @param search URL search parameters, e.g. `$location.getSearch()`.
|
|
116
|
+
* @param hash URL hash e.g. `$location.getHash()`.
|
|
118
117
|
*
|
|
119
118
|
* @returns The captured parameter values.
|
|
120
119
|
*/
|
|
@@ -9,10 +9,19 @@
|
|
|
9
9
|
* - [[StateObject]]
|
|
10
10
|
*/
|
|
11
11
|
export class UrlRuleFactory {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @param {import('../url/url-service.js').UrlService} urlService
|
|
14
|
+
* @param {import('../state/state-service.js').StateProvider} stateService
|
|
15
|
+
* @param {import('../router.js').Router} routerGlobals
|
|
16
|
+
*/
|
|
17
|
+
constructor(
|
|
18
|
+
urlService: import("../url/url-service.js").UrlService,
|
|
19
|
+
stateService: import("../state/state-service.js").StateProvider,
|
|
20
|
+
routerGlobals: import("../router.js").Router,
|
|
21
|
+
);
|
|
22
|
+
urlService: import("../url/url-service.js").UrlService;
|
|
23
|
+
stateService: import("../state/state-service.js").StateProvider;
|
|
24
|
+
routerGlobals: import("../router.js").Router;
|
|
16
25
|
/**
|
|
17
26
|
*
|
|
18
27
|
* @param {*} what
|
|
@@ -142,6 +151,7 @@ export class BaseUrlRule {
|
|
|
142
151
|
$id: number;
|
|
143
152
|
_group: any;
|
|
144
153
|
handler: any;
|
|
154
|
+
priority: any;
|
|
145
155
|
/**
|
|
146
156
|
* This function should be overridden
|
|
147
157
|
* @param {*} [params]
|