@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.
Files changed (134) hide show
  1. package/Makefile +1 -1
  2. package/TODO.md +14 -0
  3. package/dist/angular-ts.esm.js +1 -1
  4. package/dist/angular-ts.umd.js +1 -1
  5. package/index.html +8 -2
  6. package/package.json +1 -1
  7. package/src/animations/animate-css-driver.js +2 -2
  8. package/src/animations/animate-css.js +15 -6
  9. package/src/animations/animate-js.js +1 -1
  10. package/src/animations/animate-queue.js +1 -1
  11. package/src/animations/shared.js +0 -14
  12. package/src/core/compile.js +6 -3
  13. package/src/directive/if.js +0 -79
  14. package/src/directive/if.md +80 -0
  15. package/src/directive/include.js +0 -82
  16. package/src/directive/include.md +86 -0
  17. package/src/directive/repeat.js +0 -1
  18. package/src/filters/order-by.js +8 -8
  19. package/src/loader.js +0 -1
  20. package/src/router/common/trace.js +1 -1
  21. package/src/router/directives/stateDirectives.js +16 -14
  22. package/src/router/directives/viewDirective.js +5 -13
  23. package/src/router/hooks/resolve.js +3 -4
  24. package/src/router/hooks/views.js +3 -2
  25. package/src/router/state/stateService.js +1 -2
  26. package/src/router/stateProvider.js +8 -0
  27. package/src/router/templateFactory.js +13 -7
  28. package/src/router/transition/interface.js +14 -14
  29. package/src/router/transition/rejectFactory.js +29 -20
  30. package/src/router/transition/transition.js +5 -1
  31. package/src/router/transition/transitionHook.js +5 -5
  32. package/src/router/url/urlMatcher.js +1 -2
  33. package/src/router/url/urlRule.js +10 -2
  34. package/src/router/url/urlRules.js +1 -1
  35. package/src/services/browser.js +3 -18
  36. package/src/shared/common.js +0 -1
  37. package/test/module-test.html +44 -12
  38. package/test/router/ng-state-builder.spec.js +81 -0
  39. package/test/router/services.spec.js +70 -0
  40. package/test/router/state-directives.spec.js +1182 -0
  41. package/test/router/template-factory.spec.js +146 -0
  42. package/test/router/url-matcher-factory.spec.js +1313 -0
  43. package/test/router/view-directive.spec.js +2013 -0
  44. package/test/router/view-hook.spec.js +217 -0
  45. package/test/router/view-scroll.spec.js +77 -0
  46. package/test/router/view.spec.js +117 -0
  47. package/types/angular.d.ts +132 -124
  48. package/types/index.d.ts +2350 -2187
  49. package/types/jqlite.d.ts +463 -418
  50. package/types/router/core/common/common.d.ts +70 -24
  51. package/types/router/core/common/coreservices.d.ts +30 -32
  52. package/types/router/core/common/glob.d.ts +9 -9
  53. package/types/router/core/common/hof.d.ts +12 -4
  54. package/types/router/core/common/index.d.ts +8 -8
  55. package/types/router/core/common/predicates.d.ts +1 -1
  56. package/types/router/core/common/queue.d.ts +13 -13
  57. package/types/router/core/common/safeConsole.d.ts +3 -3
  58. package/types/router/core/common/strings.d.ts +4 -2
  59. package/types/router/core/common/trace.d.ts +94 -82
  60. package/types/router/core/globals.d.ts +37 -37
  61. package/types/router/core/hooks/coreResolvables.d.ts +5 -3
  62. package/types/router/core/hooks/ignoredTransition.d.ts +4 -2
  63. package/types/router/core/hooks/invalidTransition.d.ts +4 -2
  64. package/types/router/core/hooks/lazyLoad.d.ts +10 -5
  65. package/types/router/core/hooks/onEnterExitRetain.d.ts +10 -4
  66. package/types/router/core/hooks/redirectTo.d.ts +4 -2
  67. package/types/router/core/hooks/resolve.d.ts +10 -4
  68. package/types/router/core/hooks/updateGlobals.d.ts +4 -2
  69. package/types/router/core/hooks/url.d.ts +4 -2
  70. package/types/router/core/hooks/views.d.ts +7 -3
  71. package/types/router/core/index.d.ts +11 -12
  72. package/types/router/core/interface.d.ts +83 -81
  73. package/types/router/core/params/index.d.ts +5 -5
  74. package/types/router/core/params/interface.d.ts +439 -439
  75. package/types/router/core/params/param.d.ts +72 -60
  76. package/types/router/core/params/paramType.d.ts +40 -40
  77. package/types/router/core/params/paramTypes.d.ts +169 -165
  78. package/types/router/core/params/stateParams.d.ts +13 -13
  79. package/types/router/core/path/index.d.ts +2 -2
  80. package/types/router/core/path/pathNode.d.ts +49 -49
  81. package/types/router/core/path/pathUtils.d.ts +100 -74
  82. package/types/router/core/resolve/index.d.ts +3 -3
  83. package/types/router/core/resolve/interface.d.ts +137 -137
  84. package/types/router/core/resolve/resolvable.d.ts +60 -54
  85. package/types/router/core/resolve/resolveContext.d.ts +84 -79
  86. package/types/router/core/router.d.ts +95 -86
  87. package/types/router/core/state/index.d.ts +8 -8
  88. package/types/router/core/state/interface.d.ts +667 -643
  89. package/types/router/core/state/stateBuilder.d.ts +41 -38
  90. package/types/router/core/state/stateMatcher.d.ts +11 -9
  91. package/types/router/core/state/stateObject.d.ts +154 -139
  92. package/types/router/core/state/stateQueueManager.d.ts +26 -21
  93. package/types/router/core/state/stateRegistry.d.ts +124 -121
  94. package/types/router/core/state/stateService.d.ts +380 -343
  95. package/types/router/core/state/targetState.d.ts +74 -69
  96. package/types/router/core/transition/hookBuilder.d.ts +34 -30
  97. package/types/router/core/transition/hookRegistry.d.ts +96 -74
  98. package/types/router/core/transition/index.d.ts +8 -8
  99. package/types/router/core/transition/interface.d.ts +652 -609
  100. package/types/router/core/transition/rejectFactory.d.ts +97 -97
  101. package/types/router/core/transition/transition.d.ts +565 -517
  102. package/types/router/core/transition/transitionEventType.d.ts +20 -11
  103. package/types/router/core/transition/transitionHook.d.ts +90 -82
  104. package/types/router/core/transition/transitionService.d.ts +228 -161
  105. package/types/router/core/url/index.d.ts +8 -8
  106. package/types/router/core/url/interface.d.ts +100 -87
  107. package/types/router/core/url/urlConfig.d.ts +130 -126
  108. package/types/router/core/url/urlMatcher.d.ts +132 -127
  109. package/types/router/core/url/urlMatcherFactory.d.ts +46 -42
  110. package/types/router/core/url/urlRouter.d.ts +91 -75
  111. package/types/router/core/url/urlRule.d.ts +123 -100
  112. package/types/router/core/url/urlRules.d.ts +240 -232
  113. package/types/router/core/url/urlService.d.ts +201 -201
  114. package/types/router/core/view/index.d.ts +2 -2
  115. package/types/router/core/view/interface.d.ts +26 -26
  116. package/types/router/core/view/view.d.ts +152 -143
  117. package/types/router/directives/viewDirective.d.ts +12 -11
  118. package/types/router/index.d.ts +11 -12
  119. package/types/router/interface.d.ts +361 -351
  120. package/types/router/legacy/resolveService.d.ts +44 -40
  121. package/types/router/legacy/stateEvents.d.ts +1 -1
  122. package/types/router/locationServices.d.ts +45 -37
  123. package/types/router/services.d.ts +9 -9
  124. package/types/router/stateFilters.d.ts +3 -3
  125. package/types/router/stateProvider.d.ts +240 -235
  126. package/types/router/statebuilders/onEnterExitRetain.d.ts +4 -2
  127. package/types/router/statebuilders/views.d.ts +35 -22
  128. package/types/router/templateFactory.d.ts +99 -79
  129. package/types/router/viewScroll.d.ts +7 -7
  130. package/src/directive/a.js +0 -37
  131. package/types/router/angular.d.ts +0 -1
  132. package/types/router/core/vanilla.d.ts +0 -1
  133. package/types/router/directives/stateDirectives.d.ts +0 -3
  134. package/types/router/injectables.d.ts +0 -1
@@ -1,206 +1,206 @@
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';
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
- 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;
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 './interface';
2
- export * from './view';
1
+ export * from "./interface";
2
+ export * from "./view";
@@ -1,25 +1,25 @@
1
- import { _ViewDeclaration } from '../state/interface';
2
- import { PathNode } from '../path/pathNode';
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
- name: string;
6
- parent: ViewContext;
5
+ name: string;
6
+ parent: ViewContext;
7
7
  }
8
8
  export interface ActiveUIView {
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;
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
- $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>;
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
  }