@angular-wave/angular.ts 0.0.28 → 0.0.30
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/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/index.html +2 -2
- package/package.json +1 -1
- package/src/core/controller.js +3 -0
- package/src/directive/controller.js +0 -56
- package/src/directive/controller.md +46 -0
- package/src/router/common/trace.js +7 -7
- package/src/router/directives/state-directives.js +75 -75
- package/src/router/directives/view-directive.js +21 -21
- package/src/router/hooks/update-globals.js +1 -1
- package/src/router/index.js +12 -12
- package/src/router/injectables.js +11 -11
- package/src/router/resolve/resolve-context.js +1 -1
- package/src/router/router.js +8 -77
- package/src/router/services.js +5 -43
- package/src/router/state/state-builder.js +1 -0
- package/src/router/state/state-object.js +1 -1
- package/src/router/state/state-registry.js +56 -3
- package/src/router/state/state-service.js +16 -25
- package/src/router/state/target-state.js +1 -1
- package/src/router/state/views.js +5 -5
- package/src/router/state-filters.js +0 -2
- package/src/router/state-provider.js +0 -2
- package/src/router/template-factory.js +4 -4
- package/src/router/transition/transition-service.js +2 -3
- package/src/router/url/url-config.js +0 -2
- package/src/router/url/url-matcher-factory.js +0 -1
- package/src/router/url/url-matcher.js +0 -8
- package/src/router/url/url-router.js +4 -0
- package/src/router/url/url-service.js +6 -6
- package/src/router/view/view.js +67 -65
- package/src/services/browser.js +1 -5
- package/src/shared/common.js +1 -1
- package/test/core/pubsub.spec.js +73 -0
- package/test/module-test.html +5 -5
- package/test/original-test.html +3 -3
- package/test/router/services.spec.js +1 -1
- package/test/router/state-directives.spec.js +72 -80
- package/test/router/state-filter.spec.js +6 -4
- package/test/router/state.spec.js +15 -13
- package/test/router/template-factory.spec.js +4 -4
- package/test/router/url-matcher-factory.spec.js +2 -2
- package/test/router/view-directive.spec.js +165 -163
- package/test/router/view-hook.spec.js +2 -2
- package/test/router/view-scroll.spec.js +14 -14
- package/test/router/view.spec.js +2 -2
- package/types/router/core/common/coreservices.d.ts +2 -2
- package/types/router/core/common/trace.d.ts +7 -7
- package/types/router/core/globals.d.ts +2 -1
- package/types/router/core/interface.d.ts +3 -10
- package/types/router/core/params/interface.d.ts +3 -3
- package/types/router/core/resolve/resolveContext.d.ts +4 -4
- package/types/router/core/router.d.ts +5 -51
- package/types/router/core/state/interface.d.ts +12 -12
- package/types/router/core/state/stateObject.d.ts +1 -1
- package/types/router/core/state/stateQueueManager.d.ts +2 -2
- package/types/router/core/state/stateRegistry.d.ts +5 -4
- package/types/router/core/state/stateService.d.ts +13 -13
- package/types/router/core/state/targetState.d.ts +1 -1
- package/types/router/core/transition/interface.d.ts +2 -2
- package/types/router/core/transition/transition.d.ts +12 -12
- package/types/router/core/transition/transitionService.d.ts +5 -5
- package/types/router/core/url/interface.d.ts +3 -3
- package/types/router/core/url/urlConfig.d.ts +3 -3
- package/types/router/core/url/urlMatcherFactory.d.ts +3 -3
- package/types/router/core/url/urlRouter.d.ts +2 -2
- package/types/router/core/url/urlRule.d.ts +6 -6
- package/types/router/core/url/urlRules.d.ts +6 -6
- package/types/router/core/url/urlService.d.ts +8 -8
- package/types/router/core/view/interface.d.ts +3 -3
- package/types/router/core/view/view.d.ts +26 -26
- package/types/router/directives/viewDirective.d.ts +6 -6
- package/types/router/interface.d.ts +8 -8
- package/types/router/locationServices.d.ts +3 -3
- package/types/router/services.d.ts +1 -1
- package/types/router/stateProvider.d.ts +5 -5
- package/types/router/statebuilders/views.d.ts +1 -1
- package/types/router/templateFactory.d.ts +2 -2
- package/types/router/viewScroll.d.ts +2 -2
|
@@ -12,9 +12,9 @@ import { Ng1StateDeclaration } from "./interface";
|
|
|
12
12
|
* The `$stateProvider` works similar to Angular's v1 router, but it focuses purely
|
|
13
13
|
* on state.
|
|
14
14
|
*
|
|
15
|
-
* A state corresponds to a "place" in the application in terms of the overall
|
|
15
|
+
* A state corresponds to a "place" in the application in terms of the overall NG and
|
|
16
16
|
* navigation. A state describes (via the controller / template / view properties) what
|
|
17
|
-
* the
|
|
17
|
+
* the NG looks like and does at that place.
|
|
18
18
|
*
|
|
19
19
|
* States often have things in common, and the primary way of factoring out these
|
|
20
20
|
* commonalities in this model is via the state hierarchy, i.e. parent/child states aka
|
|
@@ -56,7 +56,7 @@ export declare class StateProvider {
|
|
|
56
56
|
* - **parent** `{object}` - returns the parent state object.
|
|
57
57
|
* - **data** `{object}` - returns state data, including any inherited data that is not
|
|
58
58
|
* overridden by own values (if any).
|
|
59
|
-
* - **url** `{object}` - returns a {@link
|
|
59
|
+
* - **url** `{object}` - returns a {@link ng.router.util.type:UrlMatcher UrlMatcher}
|
|
60
60
|
* or `null`.
|
|
61
61
|
* - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
|
|
62
62
|
* navigable).
|
|
@@ -127,7 +127,7 @@ export declare class StateProvider {
|
|
|
127
127
|
* <a id='template'></a>
|
|
128
128
|
*
|
|
129
129
|
* - **`template`** - {string|function=} - html template as a string or a function that returns
|
|
130
|
-
* an html template as a string which should be used by the
|
|
130
|
+
* an html template as a string which should be used by the ngView directives. This property
|
|
131
131
|
* takes precedence over templateUrl.
|
|
132
132
|
*
|
|
133
133
|
* If `template` is a function, it will be called with the following parameters:
|
|
@@ -138,7 +138,7 @@ export declare class StateProvider {
|
|
|
138
138
|
* <a id='templateUrl'></a>
|
|
139
139
|
*
|
|
140
140
|
* - **`templateUrl`** - {string|function=} - path or function that returns a path to an html
|
|
141
|
-
* template that should be used by
|
|
141
|
+
* template that should be used by ngView.
|
|
142
142
|
*
|
|
143
143
|
* If `templateUrl` is a function, it will be called with the following parameters:
|
|
144
144
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Ng1ViewConfig implements ViewConfig {
|
|
|
41
41
|
factory: TemplateFactory,
|
|
42
42
|
);
|
|
43
43
|
load(): Promise<this>;
|
|
44
|
-
getTemplate: (
|
|
44
|
+
getTemplate: (ngView: any, context: ResolveContext) => string;
|
|
45
45
|
/**
|
|
46
46
|
* Gets the controller for a view configuration.
|
|
47
47
|
*
|
|
@@ -89,14 +89,14 @@ export declare class TemplateFactory implements TemplateFactoryProvider {
|
|
|
89
89
|
* It analyses the component's bindings, then constructs a template that instantiates the component.
|
|
90
90
|
* The template wires input and output bindings to resolves or from the parent component.
|
|
91
91
|
*
|
|
92
|
-
* @param
|
|
92
|
+
* @param ngView {object} The parent ui-view (for binding outputs to callbacks)
|
|
93
93
|
* @param context The ResolveContext (for binding outputs to callbacks returned from resolves)
|
|
94
94
|
* @param component {string} Component's name in camel case.
|
|
95
95
|
* @param bindings An object defining the component's bindings: {foo: '<'}
|
|
96
96
|
* @return {string} The template as a string: "<component-name input1='::$resolve.foo'></component-name>".
|
|
97
97
|
*/
|
|
98
98
|
makeComponentTemplate(
|
|
99
|
-
|
|
99
|
+
ngView: IAugmentedJQuery,
|
|
100
100
|
context: ResolveContext,
|
|
101
101
|
component: string,
|
|
102
102
|
bindings?: any,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface NGViewScrollProvider {
|
|
2
2
|
/**
|
|
3
3
|
* Uses standard anchorScroll behavior
|
|
4
4
|
*
|
|
5
|
-
* Reverts [[$
|
|
5
|
+
* Reverts [[$ngViewScroll]] back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
|
|
6
6
|
* service for scrolling based on the url anchor.
|
|
7
7
|
*/
|
|
8
8
|
useAnchorScroll(): void;
|