@angular-wave/angular.ts 0.0.21 → 0.0.23
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/Makefile +1 -1
- package/TODO.md +14 -0
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/index.html +8 -2
- package/package.json +1 -1
- package/src/animations/animate-css-driver.js +2 -2
- package/src/animations/animate-css.js +15 -6
- package/src/animations/animate-js.js +1 -1
- package/src/animations/animate-queue.js +1 -1
- package/src/animations/shared.js +0 -14
- package/src/core/compile.js +6 -3
- package/src/directive/if.js +0 -79
- package/src/directive/if.md +80 -0
- package/src/directive/include.js +0 -82
- package/src/directive/include.md +86 -0
- package/src/directive/repeat.js +0 -1
- package/src/filters/order-by.js +8 -8
- package/src/loader.js +0 -1
- package/src/router/common/trace.js +1 -1
- package/src/router/directives/stateDirectives.js +16 -14
- package/src/router/directives/viewDirective.js +5 -13
- package/src/router/hooks/resolve.js +3 -4
- package/src/router/hooks/views.js +3 -2
- package/src/router/state/stateService.js +1 -2
- package/src/router/stateProvider.js +8 -0
- package/src/router/templateFactory.js +13 -7
- package/src/router/transition/interface.js +14 -14
- package/src/router/transition/rejectFactory.js +29 -20
- package/src/router/transition/transition.js +5 -1
- package/src/router/transition/transitionHook.js +5 -5
- package/src/router/url/urlMatcher.js +1 -2
- package/src/router/url/urlRule.js +10 -2
- package/src/router/url/urlRules.js +1 -1
- package/src/services/browser.js +3 -18
- package/src/shared/common.js +0 -1
- package/test/module-test.html +44 -12
- package/test/router/ng-state-builder.spec.js +81 -0
- package/test/router/services.spec.js +70 -0
- package/test/router/state-directives.spec.js +1182 -0
- package/test/router/template-factory.spec.js +146 -0
- package/test/router/url-matcher-factory.spec.js +1313 -0
- package/test/router/view-directive.spec.js +2013 -0
- package/test/router/view-hook.spec.js +217 -0
- package/test/router/view-scroll.spec.js +77 -0
- package/test/router/view.spec.js +117 -0
- package/types/angular.d.ts +132 -124
- package/types/index.d.ts +2350 -2187
- package/types/jqlite.d.ts +463 -418
- package/types/router/core/common/common.d.ts +70 -24
- package/types/router/core/common/coreservices.d.ts +30 -32
- package/types/router/core/common/glob.d.ts +9 -9
- package/types/router/core/common/hof.d.ts +12 -4
- package/types/router/core/common/index.d.ts +8 -8
- package/types/router/core/common/predicates.d.ts +1 -1
- package/types/router/core/common/queue.d.ts +13 -13
- package/types/router/core/common/safeConsole.d.ts +3 -3
- package/types/router/core/common/strings.d.ts +4 -2
- package/types/router/core/common/trace.d.ts +94 -82
- package/types/router/core/globals.d.ts +37 -37
- package/types/router/core/hooks/coreResolvables.d.ts +5 -3
- package/types/router/core/hooks/ignoredTransition.d.ts +4 -2
- package/types/router/core/hooks/invalidTransition.d.ts +4 -2
- package/types/router/core/hooks/lazyLoad.d.ts +10 -5
- package/types/router/core/hooks/onEnterExitRetain.d.ts +10 -4
- package/types/router/core/hooks/redirectTo.d.ts +4 -2
- package/types/router/core/hooks/resolve.d.ts +10 -4
- package/types/router/core/hooks/updateGlobals.d.ts +4 -2
- package/types/router/core/hooks/url.d.ts +4 -2
- package/types/router/core/hooks/views.d.ts +7 -3
- package/types/router/core/index.d.ts +11 -12
- package/types/router/core/interface.d.ts +83 -81
- package/types/router/core/params/index.d.ts +5 -5
- package/types/router/core/params/interface.d.ts +439 -439
- package/types/router/core/params/param.d.ts +72 -60
- package/types/router/core/params/paramType.d.ts +40 -40
- package/types/router/core/params/paramTypes.d.ts +169 -165
- package/types/router/core/params/stateParams.d.ts +13 -13
- package/types/router/core/path/index.d.ts +2 -2
- package/types/router/core/path/pathNode.d.ts +49 -49
- package/types/router/core/path/pathUtils.d.ts +100 -74
- package/types/router/core/resolve/index.d.ts +3 -3
- package/types/router/core/resolve/interface.d.ts +137 -137
- package/types/router/core/resolve/resolvable.d.ts +60 -54
- package/types/router/core/resolve/resolveContext.d.ts +84 -79
- package/types/router/core/router.d.ts +95 -86
- package/types/router/core/state/index.d.ts +8 -8
- package/types/router/core/state/interface.d.ts +667 -643
- package/types/router/core/state/stateBuilder.d.ts +41 -38
- package/types/router/core/state/stateMatcher.d.ts +11 -9
- package/types/router/core/state/stateObject.d.ts +154 -139
- package/types/router/core/state/stateQueueManager.d.ts +26 -21
- package/types/router/core/state/stateRegistry.d.ts +124 -121
- package/types/router/core/state/stateService.d.ts +380 -343
- package/types/router/core/state/targetState.d.ts +74 -69
- package/types/router/core/transition/hookBuilder.d.ts +34 -30
- package/types/router/core/transition/hookRegistry.d.ts +96 -74
- package/types/router/core/transition/index.d.ts +8 -8
- package/types/router/core/transition/interface.d.ts +652 -609
- package/types/router/core/transition/rejectFactory.d.ts +97 -97
- package/types/router/core/transition/transition.d.ts +565 -517
- package/types/router/core/transition/transitionEventType.d.ts +20 -11
- package/types/router/core/transition/transitionHook.d.ts +90 -82
- package/types/router/core/transition/transitionService.d.ts +228 -161
- package/types/router/core/url/index.d.ts +8 -8
- package/types/router/core/url/interface.d.ts +100 -87
- package/types/router/core/url/urlConfig.d.ts +130 -126
- package/types/router/core/url/urlMatcher.d.ts +132 -127
- package/types/router/core/url/urlMatcherFactory.d.ts +46 -42
- package/types/router/core/url/urlRouter.d.ts +91 -75
- package/types/router/core/url/urlRule.d.ts +123 -100
- package/types/router/core/url/urlRules.d.ts +240 -232
- package/types/router/core/url/urlService.d.ts +201 -201
- package/types/router/core/view/index.d.ts +2 -2
- package/types/router/core/view/interface.d.ts +26 -26
- package/types/router/core/view/view.d.ts +152 -143
- package/types/router/directives/viewDirective.d.ts +12 -11
- package/types/router/index.d.ts +11 -12
- package/types/router/interface.d.ts +361 -351
- package/types/router/legacy/resolveService.d.ts +44 -40
- package/types/router/legacy/stateEvents.d.ts +1 -1
- package/types/router/locationServices.d.ts +45 -37
- package/types/router/services.d.ts +9 -9
- package/types/router/stateFilters.d.ts +3 -3
- package/types/router/stateProvider.d.ts +240 -235
- package/types/router/statebuilders/onEnterExitRetain.d.ts +4 -2
- package/types/router/statebuilders/views.d.ts +35 -22
- package/types/router/templateFactory.d.ts +99 -79
- package/types/router/viewScroll.d.ts +7 -7
- package/src/directive/a.js +0 -37
- package/types/router/angular.d.ts +0 -1
- package/types/router/core/vanilla.d.ts +0 -1
- package/types/router/directives/stateDirectives.d.ts +0 -3
- package/types/router/injectables.d.ts +0 -1
|
@@ -1,206 +1,206 @@
|
|
|
1
|
-
import { UIRouter } from
|
|
2
|
-
import { LocationServices } from
|
|
3
|
-
import { MatchResult, UrlParts, UrlSyncApi } from
|
|
4
|
-
import { UrlRules } from
|
|
5
|
-
import { UrlConfig } from
|
|
1
|
+
import { UIRouter } from "../router";
|
|
2
|
+
import { LocationServices } from "../common";
|
|
3
|
+
import { MatchResult, UrlParts, UrlSyncApi } from "./interface";
|
|
4
|
+
import { UrlRules } from "./urlRules";
|
|
5
|
+
import { UrlConfig } from "./urlConfig";
|
|
6
6
|
/**
|
|
7
7
|
* API for URL management
|
|
8
8
|
*/
|
|
9
9
|
export declare class UrlService implements LocationServices, UrlSyncApi {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
10
|
+
private router;
|
|
11
|
+
/** @internal */ private _stopListeningFn;
|
|
12
|
+
/** @internal */ interceptDeferred: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The nested [[UrlRules]] API for managing URL rules and rewrites
|
|
15
|
+
*
|
|
16
|
+
* See: [[UrlRules]] for details
|
|
17
|
+
*/
|
|
18
|
+
rules: UrlRules;
|
|
19
|
+
/**
|
|
20
|
+
* The nested [[UrlConfig]] API to configure the URL and retrieve URL information
|
|
21
|
+
*
|
|
22
|
+
* See: [[UrlConfig]] for details
|
|
23
|
+
*/
|
|
24
|
+
config: UrlConfig;
|
|
25
|
+
/** @internal */
|
|
26
|
+
constructor(/** @internal */ router: UIRouter);
|
|
27
|
+
/** @internal */
|
|
28
|
+
dispose(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the current URL parts
|
|
31
|
+
*
|
|
32
|
+
* This method returns the different parts of the current URL (the [[path]], [[search]], and [[hash]]) as a [[UrlParts]] object.
|
|
33
|
+
*/
|
|
34
|
+
parts(): UrlParts;
|
|
35
|
+
/**
|
|
36
|
+
* Activates the best rule for the current URL
|
|
37
|
+
*
|
|
38
|
+
* Checks the current URL for a matching [[UrlRule]], then invokes that rule's handler.
|
|
39
|
+
* This method is called internally any time the URL has changed.
|
|
40
|
+
*
|
|
41
|
+
* This effectively activates the state (or redirect, etc) which matches the current URL.
|
|
42
|
+
*
|
|
43
|
+
* #### Example:
|
|
44
|
+
* ```js
|
|
45
|
+
* urlService.deferIntercept();
|
|
46
|
+
*
|
|
47
|
+
* fetch('/states.json').then(resp => resp.json()).then(data => {
|
|
48
|
+
* data.forEach(state => $stateRegistry.register(state));
|
|
49
|
+
* urlService.listen();
|
|
50
|
+
* // Find the matching URL and invoke the handler.
|
|
51
|
+
* urlService.sync();
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
sync(evt?: any): void;
|
|
56
|
+
/**
|
|
57
|
+
* Starts or stops listening for URL changes
|
|
58
|
+
*
|
|
59
|
+
* Call this sometime after calling [[deferIntercept]] to start monitoring the url.
|
|
60
|
+
* This causes UI-Router to start listening for changes to the URL, if it wasn't already listening.
|
|
61
|
+
*
|
|
62
|
+
* If called with `false`, UI-Router will stop listening (call listen(true) to start listening again).
|
|
63
|
+
*
|
|
64
|
+
* #### Example:
|
|
65
|
+
* ```js
|
|
66
|
+
* urlService.deferIntercept();
|
|
67
|
+
*
|
|
68
|
+
* fetch('/states.json').then(resp => resp.json()).then(data => {
|
|
69
|
+
* data.forEach(state => $stateRegistry.register(state));
|
|
70
|
+
* // Start responding to URL changes
|
|
71
|
+
* urlService.listen();
|
|
72
|
+
* urlService.sync();
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param enabled `true` or `false` to start or stop listening to URL changes
|
|
77
|
+
*/
|
|
78
|
+
listen(enabled?: boolean): Function;
|
|
79
|
+
/**
|
|
80
|
+
* Disables monitoring of the URL.
|
|
81
|
+
*
|
|
82
|
+
* Call this method before UI-Router has bootstrapped.
|
|
83
|
+
* It will stop UI-Router from performing the initial url sync.
|
|
84
|
+
*
|
|
85
|
+
* This can be useful to perform some asynchronous initialization before the router starts.
|
|
86
|
+
* Once the initialization is complete, call [[listen]] to tell UI-Router to start watching and synchronizing the URL.
|
|
87
|
+
*
|
|
88
|
+
* #### Example:
|
|
89
|
+
* ```js
|
|
90
|
+
* // Prevent UI-Router from automatically intercepting URL changes when it starts;
|
|
91
|
+
* urlService.deferIntercept();
|
|
92
|
+
*
|
|
93
|
+
* fetch('/states.json').then(resp => resp.json()).then(data => {
|
|
94
|
+
* data.forEach(state => $stateRegistry.register(state));
|
|
95
|
+
* urlService.listen();
|
|
96
|
+
* urlService.sync();
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @param defer Indicates whether to defer location change interception.
|
|
101
|
+
* Passing no parameter is equivalent to `true`.
|
|
102
|
+
*/
|
|
103
|
+
deferIntercept(defer?: boolean): void;
|
|
104
|
+
/**
|
|
105
|
+
* Matches a URL
|
|
106
|
+
*
|
|
107
|
+
* Given a URL (as a [[UrlParts]] object), check all rules and determine the best matching rule.
|
|
108
|
+
* Return the result as a [[MatchResult]].
|
|
109
|
+
*/
|
|
110
|
+
match(url: UrlParts): MatchResult;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the current url, or updates the url
|
|
113
|
+
*
|
|
114
|
+
* ### Getting the current URL
|
|
115
|
+
*
|
|
116
|
+
* When no arguments are passed, returns the current URL.
|
|
117
|
+
* The URL is normalized using the internal [[path]]/[[search]]/[[hash]] values.
|
|
118
|
+
*
|
|
119
|
+
* For example, the URL may be stored in the hash ([[HashLocationServices]]) or
|
|
120
|
+
* have a base HREF prepended ([[PushStateLocationServices]]).
|
|
121
|
+
*
|
|
122
|
+
* The raw URL in the browser might be:
|
|
123
|
+
*
|
|
124
|
+
* ```
|
|
125
|
+
* http://mysite.com/somepath/index.html#/internal/path/123?param1=foo#anchor
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* or
|
|
129
|
+
*
|
|
130
|
+
* ```
|
|
131
|
+
* http://mysite.com/basepath/internal/path/123?param1=foo#anchor
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* then this method returns:
|
|
135
|
+
*
|
|
136
|
+
* ```
|
|
137
|
+
* /internal/path/123?param1=foo#anchor
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
*
|
|
141
|
+
* #### Example:
|
|
142
|
+
* ```js
|
|
143
|
+
* locationServices.url(); // "/some/path?query=value#anchor"
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* ### Updating the URL
|
|
147
|
+
*
|
|
148
|
+
* When `newurl` arguments is provided, changes the URL to reflect `newurl`
|
|
149
|
+
*
|
|
150
|
+
* #### Example:
|
|
151
|
+
* ```js
|
|
152
|
+
* locationServices.url("/some/path?query=value#anchor", true);
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @param newurl The new value for the URL.
|
|
156
|
+
* This url should reflect only the new internal [[path]], [[search]], and [[hash]] values.
|
|
157
|
+
* It should not include the protocol, site, port, or base path of an absolute HREF.
|
|
158
|
+
* @param replace When true, replaces the current history entry (instead of appending it) with this new url
|
|
159
|
+
* @param state The history's state object, i.e., pushState (if the LocationServices implementation supports it)
|
|
160
|
+
*
|
|
161
|
+
* @return the url (after potentially being processed)
|
|
162
|
+
*/
|
|
163
|
+
url: (newurl?: string, replace?: boolean, state?: any) => string;
|
|
164
|
+
/**
|
|
165
|
+
* Gets the path part of the current url
|
|
166
|
+
*
|
|
167
|
+
* If the current URL is `/some/path?query=value#anchor`, this returns `/some/path`
|
|
168
|
+
*
|
|
169
|
+
* @return the path portion of the url
|
|
170
|
+
*/
|
|
171
|
+
path: () => string;
|
|
172
|
+
/**
|
|
173
|
+
* Gets the search part of the current url as an object
|
|
174
|
+
*
|
|
175
|
+
* If the current URL is `/some/path?query=value#anchor`, this returns `{ query: 'value' }`
|
|
176
|
+
*
|
|
177
|
+
* @return the search (query) portion of the url, as an object
|
|
178
|
+
*/
|
|
179
|
+
search: () => {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Gets the hash part of the current url
|
|
184
|
+
*
|
|
185
|
+
* If the current URL is `/some/path?query=value#anchor`, this returns `anchor`
|
|
186
|
+
*
|
|
187
|
+
* @return the hash (anchor) portion of the url
|
|
188
|
+
*/
|
|
189
|
+
hash: () => string;
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*
|
|
193
|
+
* Registers a low level url change handler
|
|
194
|
+
*
|
|
195
|
+
* Note: Because this is a low level handler, it's not recommended for general use.
|
|
196
|
+
*
|
|
197
|
+
* #### Example:
|
|
198
|
+
* ```js
|
|
199
|
+
* let deregisterFn = locationServices.onChange((evt) => console.log("url change", evt));
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @param callback a function that will be called when the url is changing
|
|
203
|
+
* @return a function that de-registers the callback
|
|
204
|
+
*/
|
|
205
|
+
onChange: (callback: EventListener) => Function;
|
|
206
206
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./interface";
|
|
2
|
+
export * from "./view";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { _ViewDeclaration } from
|
|
2
|
-
import { PathNode } from
|
|
1
|
+
import { _ViewDeclaration } from "../state/interface";
|
|
2
|
+
import { PathNode } from "../path/pathNode";
|
|
3
3
|
/** The context ref can be anything that has a `name` and a `parent` reference to another IContextRef */
|
|
4
4
|
export interface ViewContext {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
name: string;
|
|
6
|
+
parent: ViewContext;
|
|
7
7
|
}
|
|
8
8
|
export interface ActiveUIView {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
/** type of framework, e.g., "ng1" or "ng2" */
|
|
10
|
+
$type: string;
|
|
11
|
+
/** An auto-incremented id */
|
|
12
|
+
id: number;
|
|
13
|
+
/** The ui-view short name */
|
|
14
|
+
name: string;
|
|
15
|
+
/** The ui-view's fully qualified name */
|
|
16
|
+
fqn: string;
|
|
17
|
+
/** The ViewConfig that is currently loaded into the ui-view */
|
|
18
|
+
config: ViewConfig;
|
|
19
|
+
/** The state context in which the ui-view tag was created. */
|
|
20
|
+
creationContext: ViewContext;
|
|
21
|
+
/** A callback that should apply a ViewConfig (or clear the ui-view, if config is undefined) */
|
|
22
|
+
configUpdated: (config: ViewConfig) => void;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* This interface represents a [[_ViewDeclaration]] that is bound to a [[PathNode]].
|
|
@@ -35,12 +35,12 @@ export interface ActiveUIView {
|
|
|
35
35
|
* the `uiViewName` address.
|
|
36
36
|
*/
|
|
37
37
|
export interface ViewConfig {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
$id: number;
|
|
39
|
+
/** The normalized view declaration from [[State.views]] */
|
|
40
|
+
viewDecl: _ViewDeclaration;
|
|
41
|
+
/** The node the ViewConfig is bound to */
|
|
42
|
+
path: PathNode[];
|
|
43
|
+
loaded: boolean;
|
|
44
|
+
/** Fetches templates, runs dynamic (controller|template)Provider code, lazy loads Components, etc */
|
|
45
|
+
load(): Promise<ViewConfig>;
|
|
46
46
|
}
|