@real-router/angular 0.24.0 → 0.24.2
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/fesm2022/real-router-angular-ssr.mjs +228 -311
- package/dist/fesm2022/real-router-angular-ssr.mjs.map +1 -1
- package/dist/fesm2022/real-router-angular.mjs +1712 -2865
- package/dist/fesm2022/real-router-angular.mjs.map +1 -1
- package/dist/package.json +2 -3
- package/dist/types/real-router-angular-ssr.d.ts +55 -45
- package/dist/types/real-router-angular-ssr.d.ts.map +1 -1
- package/dist/types/real-router-angular.d.ts +540 -302
- package/dist/types/real-router-angular.d.ts.map +1 -1
- package/package.json +14 -15
- package/dist/README.md +0 -801
- package/ssr/components/ClientOnly.ts +0 -27
- package/ssr/components/HttpStatusCode.ts +0 -123
- package/ssr/components/ServerOnly.ts +0 -27
- package/ssr/functions/injectDeferred.ts +0 -92
- package/ssr/functions/provideHttpStatusSink.ts +0 -43
- package/ssr/ng-package.json +0 -6
- package/ssr/public_api.ts +0 -35
- package/ssr/utils/createHttpStatusSink.ts +0 -61
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { RouteSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
|
|
7
|
-
export { RouteSnapshot, RouterErrorSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
|
|
8
|
-
import { RouteUtils } from '@real-router/route-utils';
|
|
9
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EnvironmentProviders, InjectionToken, OnInit, Signal, TemplateRef } from "@angular/core";
|
|
3
|
+
import { DefaultDependencies, NavigationOptions, NavigationTarget, Navigator, Navigator as Navigator$1, Params, PluginFactory, Router, RouterError, SearchParams, State } from "@real-router/core";
|
|
4
|
+
import { RouteSnapshot, RouteSnapshot as RouteSnapshot$1, RouterErrorSnapshot, RouterTransitionSnapshot, RouterTransitionSnapshot as RouterTransitionSnapshot$1 } from "@real-router/sources";
|
|
5
|
+
import { RouteUtils } from "@real-router/route-utils";
|
|
10
6
|
interface DirectionTracker {
|
|
11
|
-
|
|
7
|
+
destroy: () => void;
|
|
12
8
|
}
|
|
13
9
|
/**
|
|
14
10
|
* Track navigation direction (forward / back) and write it to
|
|
@@ -31,36 +27,59 @@ interface DirectionTracker {
|
|
|
31
27
|
* Returns `{ destroy }` to clean up the listener and clear the dataset
|
|
32
28
|
* attribute.
|
|
33
29
|
*/
|
|
34
|
-
declare function createDirectionTracker(router: Router): DirectionTracker;
|
|
35
|
-
|
|
30
|
+
export declare function createDirectionTracker(router: Router): DirectionTracker;
|
|
31
|
+
interface RouteAnnouncerOptions {
|
|
32
|
+
prefix?: string;
|
|
33
|
+
getAnnouncementText?: (route: State) => string;
|
|
34
|
+
}
|
|
35
|
+
declare function createRouteAnnouncer(router: Router, options?: RouteAnnouncerOptions): {
|
|
36
|
+
destroy: () => void;
|
|
37
|
+
};
|
|
36
38
|
type ScrollRestorationMode = "restore" | "top" | "native";
|
|
37
39
|
interface ScrollRestorationOptions {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
40
|
+
mode?: ScrollRestorationMode | undefined;
|
|
41
|
+
anchorScrolling?: boolean | undefined;
|
|
42
|
+
scrollContainer?: (() => HTMLElement | null) | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Scroll behavior passed to `scrollTo({ behavior })` and
|
|
45
|
+
* `scrollIntoView({ behavior })`.
|
|
46
|
+
*
|
|
47
|
+
* - `"auto"` (default) — browser-defined, usually instant.
|
|
48
|
+
* - `"instant"` — explicit instant jump (no animation).
|
|
49
|
+
* - `"smooth"` — animated transition. Note: smooth restore on back/traverse
|
|
50
|
+
* can feel disorienting if the user expects to land at the saved position
|
|
51
|
+
* immediately. Recommended for `mode: "top"` or anchor scroll only.
|
|
52
|
+
*
|
|
53
|
+
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior).
|
|
54
|
+
*/
|
|
55
|
+
behavior?: ScrollBehavior | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* sessionStorage key for persisting saved scroll positions. Default:
|
|
58
|
+
* `"real-router:scroll"`. Override only when multiple independent
|
|
59
|
+
* `RouterProvider` instances share the same document and you need to
|
|
60
|
+
* isolate their scroll stores (e.g. micro-frontends, embedded widgets,
|
|
61
|
+
* or testing). For a single app with one provider the default is fine.
|
|
62
|
+
*/
|
|
63
|
+
storageKey?: string | undefined;
|
|
62
64
|
}
|
|
63
|
-
|
|
65
|
+
declare function createScrollRestoration(router: Router, options?: ScrollRestorationOptions): {
|
|
66
|
+
destroy: () => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Internal cache-key builder for scroll-position storage.
|
|
70
|
+
*
|
|
71
|
+
* **Exported for testing only — not part of the public API** (intentionally
|
|
72
|
+
* excluded from `index.ts` barrel). Adapter property tests import it rather
|
|
73
|
+
* than replicating it (§8b H20 / audit-2026-05-16 #S3): a replica drifts
|
|
74
|
+
* silently the moment the key changes. A change to the key format loses saved
|
|
75
|
+
* positions across an upgrade, so the test set is the contract.
|
|
76
|
+
*
|
|
77
|
+
* ## Not memoized
|
|
78
|
+
*
|
|
79
|
+
* The key is a string property read, which is cheaper than the `WeakMap`
|
|
80
|
+
* lookup any cache would need — so there is nothing here to cache.
|
|
81
|
+
*/
|
|
82
|
+
declare function keyOf(state: State): string;
|
|
64
83
|
/**
|
|
65
84
|
* Router-coordinated scroll spy (#575).
|
|
66
85
|
*
|
|
@@ -100,39 +119,176 @@ interface ScrollRestorationOptions {
|
|
|
100
119
|
* @returns A `ScrollSpy` handle whose `destroy()` is idempotent.
|
|
101
120
|
*/
|
|
102
121
|
interface ScrollSpyOptions {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
/**
|
|
123
|
+
* CSS selector for anchor candidates. Empty string `""` or `undefined`
|
|
124
|
+
* disables the spy (returns a NOOP handle). Common values:
|
|
125
|
+
* `"[id]"`, `"[id]:is(h1,h2,h3)"`, `"section[id]"`.
|
|
126
|
+
*/
|
|
127
|
+
selector: string;
|
|
128
|
+
/**
|
|
129
|
+
* `IntersectionObserver` `rootMargin`. Default
|
|
130
|
+
* `"-20% 0px -60% 0px"` — an anchor is considered "active" once it crosses
|
|
131
|
+
* into the top 20 % of the viewport (or scroll container).
|
|
132
|
+
*/
|
|
133
|
+
rootMargin?: string | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Lazy getter for the scrollable container. Consulted at creation and
|
|
136
|
+
* re-consulted on every reconcile (DOM mutation), so a container that
|
|
137
|
+
* MOUNTS or CHANGES after the spy is created is honoured: the
|
|
138
|
+
* `IntersectionObserver` root and `MutationObserver` target — both immutable
|
|
139
|
+
* once constructed — are rebuilt to match (#780). `null` (or a missing
|
|
140
|
+
* getter) falls back to the window viewport (`root: null` on the
|
|
141
|
+
* `IntersectionObserver`).
|
|
142
|
+
*/
|
|
143
|
+
scrollContainer?: (() => HTMLElement | null) | undefined;
|
|
144
|
+
}
|
|
145
|
+
interface ScrollSpy {
|
|
146
|
+
/** Tear down observer + listeners. Idempotent. */
|
|
147
|
+
destroy: () => void;
|
|
148
|
+
}
|
|
149
|
+
declare function createScrollSpy(router: Router, options: ScrollSpyOptions): ScrollSpy;
|
|
150
|
+
interface ViewTransitions {
|
|
151
|
+
destroy: () => void;
|
|
125
152
|
}
|
|
126
|
-
|
|
153
|
+
declare function createViewTransitions(router: Router): ViewTransitions;
|
|
154
|
+
/**
|
|
155
|
+
* Resolved navigation channels for a `<Link>` — the single `{ name, params,
|
|
156
|
+
* search }` shape every adapter feeds into `buildHref` / `navigateWithHash` /
|
|
157
|
+
* the active-route source, regardless of which prop form the consumer used.
|
|
158
|
+
*/
|
|
159
|
+
interface ResolvedLinkTarget {
|
|
160
|
+
name: string;
|
|
161
|
+
params: Params | undefined;
|
|
162
|
+
search: SearchParams | undefined;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Collapses a `<Link>`'s two prop forms (RFC-4 M2 B2, #1548) into one channel
|
|
166
|
+
* triple:
|
|
167
|
+
*
|
|
168
|
+
* - **Descriptor** — `to={{ name, params?, search? }}` (a `NavigationTarget`).
|
|
169
|
+
* - **Channel props** — `routeName` + `routeParams?` + `routeSearch?`.
|
|
170
|
+
*
|
|
171
|
+
* The forms are mutually exclusive: the TS union on each adapter's `LinkProps`
|
|
172
|
+
* rejects mixing them at compile time, and this helper is the runtime backstop —
|
|
173
|
+
* when `to` is present it **wins**, and a `dev`-visible `console.warn` fires if
|
|
174
|
+
* channel props were also supplied (a JS consumer, an object spread, or an
|
|
175
|
+
* adapter without a strict union can still slip both through). `routeOptions` /
|
|
176
|
+
* `hash` are separate props under BOTH forms (hash is not part of
|
|
177
|
+
* `NavigationTarget` — #532), so they are resolved by the caller, not here.
|
|
178
|
+
*/
|
|
179
|
+
declare function resolveLinkTarget(to: NavigationTarget | undefined, routeName: string, routeParams: Params | undefined, routeSearch: SearchParams | undefined): ResolvedLinkTarget;
|
|
180
|
+
declare function shouldNavigate(evt: MouseEvent): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Does an anchor's `target` send this navigation somewhere the router cannot
|
|
183
|
+
* follow? (#1834)
|
|
184
|
+
*
|
|
185
|
+
* `target` names the browsing context the author wants the URL loaded into.
|
|
186
|
+
* Three values are the router's — absent, empty, `_self` — and every other one
|
|
187
|
+
* goes to the browser, the only thing that can resolve a context name.
|
|
188
|
+
* Intercepting instead is how a `<Link target="_blank">` ends up reloading the
|
|
189
|
+
* same tab rather than opening a new one. React Router's
|
|
190
|
+
* `shouldProcessLinkClick` and TanStack Router's `handleClick` split the same
|
|
191
|
+
* way; neither reproduces browsing contexts inside the router, and neither does
|
|
192
|
+
* this.
|
|
193
|
+
*
|
|
194
|
+
* ⚠ The split is by SPELLING, not by where the value resolves to, and three
|
|
195
|
+
* spellings resolve back to this context anyway: `_parent` and `_top` fall back
|
|
196
|
+
* to `_self` in a document with no ancestor, and `_SELF` matches `_self`
|
|
197
|
+
* ASCII-case-insensitively (MDN, `<a>` § target). All three are handed to the
|
|
198
|
+
* browser, which reaches the right destination by a full page load instead of a
|
|
199
|
+
* transition. Resolving them properly means reproducing frame ancestry and
|
|
200
|
+
* keyword folding here; both reference routers decline, and the cost is a page
|
|
201
|
+
* load rather than a wrong destination.
|
|
202
|
+
*
|
|
203
|
+
* ⚠ Ask this only about an `<a>`. On a `<button v-link>` or a `<div use:link>`
|
|
204
|
+
* the attribute is inert markup the browser will not act on, so deferring there
|
|
205
|
+
* would leave the activation unhandled by anyone. Callers that cannot assume an
|
|
206
|
+
* anchor ask {@link anchorTargetsAnotherContext} instead, which narrows first;
|
|
207
|
+
* `target-predicate-authority-1834` owns which call site is in which set.
|
|
208
|
+
*/
|
|
209
|
+
declare function targetsAnotherContext(target: string | null | undefined): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* The same question, asked about an ELEMENT — for the `use:link` / `v-link`
|
|
212
|
+
* forms, which attach to whatever element the consumer wrote and so cannot
|
|
213
|
+
* assume an anchor (#1834). The `<Link>` components pass a value instead
|
|
214
|
+
* (they render the anchor), and so does Angular's directive (its selector is
|
|
215
|
+
* `a[realLink]`).
|
|
216
|
+
*
|
|
217
|
+
* ⚠ `tagName`, never `instanceof HTMLAnchorElement`, for the reason
|
|
218
|
+
* `applyLinkA11y` sets out below: the constructor belongs to the realm this
|
|
219
|
+
* module loaded in, so a real anchor from an iframe `contentDocument` or a
|
|
220
|
+
* micro-frontend fails the check. Failing it HERE re-intercepts the very
|
|
221
|
+
* `target="_blank"` click this predicate exists to leave alone.
|
|
222
|
+
*
|
|
223
|
+
* Anything that is not an HTML anchor answers `false`: `target` is
|
|
224
|
+
* anchor-specific markup the browser will not act on, so a `<button use:link>`
|
|
225
|
+
* or a `<div v-link>` carrying one must still navigate in-app.
|
|
226
|
+
*/
|
|
227
|
+
declare function anchorTargetsAnotherContext(element: Element | null | undefined): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Builds an href for a `<Link>` element.
|
|
230
|
+
*
|
|
231
|
+
* - Prefers the URL plugin's `buildUrl` (browser-plugin, navigation-plugin,
|
|
232
|
+
* hash-plugin) when present.
|
|
233
|
+
* - Falls back to the core's resolving door for runtimes without a URL plugin
|
|
234
|
+
* (memory-plugin, console UIs, NativeScript). In that fallback the hash
|
|
235
|
+
* is appended manually so the rendered href is still correct.
|
|
236
|
+
* - The optional 4th argument is the decoded hash fragment (no leading "#";
|
|
237
|
+
* `<Link hash="#section">` is accepted defensively — leading "#" stripped),
|
|
238
|
+
* passed positionally to mirror `navigateWithHash(router, name, params, hash)`
|
|
239
|
+
* (#1442). Previous 3-arg call sites continue to work unchanged.
|
|
240
|
+
*/
|
|
241
|
+
declare function buildHref(router: Router, routeName: string, routeParams: Params, routeSearch?: SearchParams, hash?: string): string | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* `<Link>` click-handler navigation helper (#532).
|
|
244
|
+
*
|
|
245
|
+
* Wraps `router.navigate(name, params, search, opts)` — the query channel took
|
|
246
|
+
* slot 3 in RFC-4 M2 (#1548) — with same-route different-hash
|
|
247
|
+
* detection: when the consumer clicks a hash-bearing Link that targets the
|
|
248
|
+
* current route with the same params but a different fragment, core's
|
|
249
|
+
* SAME_STATES check would otherwise reject the navigation. The helper adds
|
|
250
|
+
* `force: true` and `hashChange: true` automatically — subscribers can then
|
|
251
|
+
* disambiguate via `state.context.url.hashChanged`.
|
|
252
|
+
*
|
|
253
|
+
* For pure programmatic same-route hash-only navigation, callers are
|
|
254
|
+
* documented to pass `{ force: true }` themselves; the auto-bypass here is
|
|
255
|
+
* a UX convenience for `<Link hash>` that all 6 framework adapters share.
|
|
256
|
+
*/
|
|
257
|
+
declare function navigateWithHash(router: Router, routeName: string, routeParams: Params, routeSearch: SearchParams | undefined, hash: string | undefined, extraOptions?: NavigationOptions): Promise<State>;
|
|
258
|
+
declare function buildActiveClassName(isActive: boolean, activeClassName: string | undefined, baseClassName: string | undefined): string | undefined;
|
|
259
|
+
/**
|
|
260
|
+
* One-level structural equality using `Object.is` per key.
|
|
261
|
+
*
|
|
262
|
+
* **String-keyed properties only (Mini-sprint E.3 — audit-5 §4.2 #3).**
|
|
263
|
+
* Implementation walks `Object.keys()` which by spec returns only
|
|
264
|
+
* enumerable own STRING keys. Symbol-keyed properties — created via
|
|
265
|
+
* `obj[Symbol("brand")] = value` or `{ [Symbol(...)]: value }` — are
|
|
266
|
+
* NOT compared. Two records that differ only in a Symbol-keyed value
|
|
267
|
+
* will compare as equal.
|
|
268
|
+
*
|
|
269
|
+
* This is intentional: route params and Link options are documented as
|
|
270
|
+
* string-keyed primitives (string | number | boolean) — Symbol-keyed
|
|
271
|
+
* metadata (e.g. brand markers, private state) doesn't belong in a
|
|
272
|
+
* cache-key comparison. Switching to `Reflect.ownKeys()` would extend
|
|
273
|
+
* the contract to symbols at the cost of one extra allocation per call
|
|
274
|
+
* (Reflect.ownKeys composes string-keys + symbol-keys arrays). If a
|
|
275
|
+
* consumer relies on symbol-keyed metadata for navigation
|
|
276
|
+
* disambiguation, they should encode it into a string key instead.
|
|
277
|
+
*
|
|
278
|
+
* Mirrors React's `shallowEqual` (packages/shared/shallowEqual.js) in
|
|
279
|
+
* both the string-keys-only semantics and the `hasOwnProperty` guard
|
|
280
|
+
* below.
|
|
281
|
+
*/
|
|
282
|
+
declare function shallowEqual(prev: object | undefined, next: object | undefined): boolean;
|
|
283
|
+
declare function applyLinkA11y(element: HTMLElement | null | undefined): void;
|
|
127
284
|
interface RouteSignals<P extends Params = Params> {
|
|
128
|
-
|
|
129
|
-
|
|
285
|
+
readonly routeState: Signal<RouteSnapshot$1<P>>;
|
|
286
|
+
readonly navigator: Navigator$1;
|
|
130
287
|
}
|
|
131
288
|
interface ErrorContext {
|
|
132
|
-
|
|
133
|
-
|
|
289
|
+
$implicit: RouterError;
|
|
290
|
+
resetError: () => void;
|
|
134
291
|
}
|
|
135
|
-
|
|
136
292
|
/**
|
|
137
293
|
* The three DI tokens live in their own leaf module (#1525). Declaring them in
|
|
138
294
|
* `providers.ts` forms a real value-level dependency cycle: that file also
|
|
@@ -143,17 +299,15 @@ interface ErrorContext {
|
|
|
143
299
|
* (`@real-router/angular` barrel, `providersFactory`, `injectRouter`) is
|
|
144
300
|
* unchanged.
|
|
145
301
|
*/
|
|
146
|
-
declare const ROUTER: InjectionToken<Router<object>>;
|
|
147
|
-
declare const NAVIGATOR: InjectionToken<Navigator>;
|
|
148
|
-
declare const ROUTE: InjectionToken<RouteSignals<
|
|
149
|
-
|
|
302
|
+
export declare const ROUTER: InjectionToken<Router<object>>;
|
|
303
|
+
export declare const NAVIGATOR: InjectionToken<Navigator$1>;
|
|
304
|
+
export declare const ROUTE: InjectionToken<RouteSignals<import("@real-router/core").Params>>;
|
|
150
305
|
interface RealRouterOptions {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
306
|
+
scrollRestoration?: ScrollRestorationOptions;
|
|
307
|
+
scrollSpy?: ScrollSpyOptions;
|
|
308
|
+
viewTransitions?: boolean;
|
|
154
309
|
}
|
|
155
|
-
declare function provideRealRouter(router: Router, options?: RealRouterOptions): EnvironmentProviders;
|
|
156
|
-
|
|
310
|
+
export declare function provideRealRouter(router: Router, options?: RealRouterOptions): EnvironmentProviders;
|
|
157
311
|
/**
|
|
158
312
|
* Factory function for deriving per-request dependencies from an SSR `Request`.
|
|
159
313
|
*
|
|
@@ -175,55 +329,55 @@ type RequestDepsFactory<TDeps extends DefaultDependencies = DefaultDependencies>
|
|
|
175
329
|
*/
|
|
176
330
|
type RequestPluginsFactory<TDeps extends DefaultDependencies = DefaultDependencies> = (request: Request | null) => readonly PluginFactory<TDeps>[];
|
|
177
331
|
interface RealRouterFactoryOptions<TDeps extends DefaultDependencies = DefaultDependencies> {
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
332
|
+
/**
|
|
333
|
+
* Base router instance — created once at app bootstrap (typically inside
|
|
334
|
+
* `app.config.ts` module scope). Each request clones this router via
|
|
335
|
+
* `cloneRouter(baseRouter, deps?.(request))`, producing an isolated
|
|
336
|
+
* router with its own state, plugins, and subscriptions.
|
|
337
|
+
*
|
|
338
|
+
* **Important:** the `baseRouter` MUST NOT be started ahead of time —
|
|
339
|
+
* `provideAppInitializer` is responsible for calling `router.start(url)`
|
|
340
|
+
* inside the per-request DI scope.
|
|
341
|
+
*/
|
|
342
|
+
baseRouter: Router<TDeps>;
|
|
343
|
+
/**
|
|
344
|
+
* Plugins applied to every per-request router clone.
|
|
345
|
+
*
|
|
346
|
+
* **Static form** — same plugins on both sides:
|
|
347
|
+
* ```ts
|
|
348
|
+
* plugins: [ssrDataPluginFactory(loaders)]
|
|
349
|
+
* ```
|
|
350
|
+
*
|
|
351
|
+
* **Function form** — conditional client vs server (recommended when any
|
|
352
|
+
* browser-only plugin is involved):
|
|
353
|
+
* ```ts
|
|
354
|
+
* plugins: (request) => request
|
|
355
|
+
* ? [ssrDataPluginFactory(loaders)]
|
|
356
|
+
* : [browserPluginFactory(), ssrDataPluginFactory(loaders)],
|
|
357
|
+
* ```
|
|
358
|
+
*
|
|
359
|
+
* Function form is required if the plugin list contains
|
|
360
|
+
* `browser-plugin`, `navigation-plugin`, or `hash-plugin` — those plugins
|
|
361
|
+
* read `window.history` / `window.location` and crash on the server.
|
|
362
|
+
*/
|
|
363
|
+
plugins?: readonly PluginFactory<TDeps>[] | RequestPluginsFactory<TDeps>;
|
|
364
|
+
/**
|
|
365
|
+
* Derive request-scoped deps (e.g. `currentUser` from cookies). The result
|
|
366
|
+
* is passed to `cloneRouter(baseRouter, deps)` and merged with any deps
|
|
367
|
+
* already registered on the base router.
|
|
368
|
+
*
|
|
369
|
+
* Receives `request: Request | null`:
|
|
370
|
+
* - non-null on server (real `Request` from `@angular/ssr` runtime)
|
|
371
|
+
* - non-null on SSG (mocked `Request` via `platformProviders`)
|
|
372
|
+
* - null on client (derive deps externally — e.g. parse `document.cookie`)
|
|
373
|
+
*/
|
|
374
|
+
deps?: RequestDepsFactory<TDeps>;
|
|
375
|
+
/** Optional scroll restoration — same semantics as `provideRealRouter`. */
|
|
376
|
+
scrollRestoration?: ScrollRestorationOptions;
|
|
377
|
+
/** Optional scroll spy — same semantics as `provideRealRouter`. */
|
|
378
|
+
scrollSpy?: ScrollSpyOptions;
|
|
379
|
+
/** Optional view transitions — same semantics as `provideRealRouter`. */
|
|
380
|
+
viewTransitions?: boolean;
|
|
227
381
|
}
|
|
228
382
|
/**
|
|
229
383
|
* `provideRealRouterFactory` — environment providers for SSR / SSG scenarios.
|
|
@@ -250,52 +404,44 @@ interface RealRouterFactoryOptions<TDeps extends DefaultDependencies = DefaultDe
|
|
|
250
404
|
* @param options - Factory configuration — see `RealRouterFactoryOptions`.
|
|
251
405
|
* @returns `EnvironmentProviders` to spread into `ApplicationConfig.providers`.
|
|
252
406
|
*/
|
|
253
|
-
declare function provideRealRouterFactory<TDeps extends DefaultDependencies = DefaultDependencies>(options: RealRouterFactoryOptions<TDeps>): EnvironmentProviders;
|
|
254
|
-
|
|
255
|
-
declare function
|
|
256
|
-
|
|
257
|
-
declare function injectNavigator(): Navigator;
|
|
258
|
-
|
|
407
|
+
export declare function provideRealRouterFactory<TDeps extends DefaultDependencies = DefaultDependencies>(options: RealRouterFactoryOptions<TDeps>): EnvironmentProviders;
|
|
408
|
+
export declare function injectRouter(): Router;
|
|
409
|
+
export declare function injectNavigator(): Navigator$1;
|
|
259
410
|
type NonNullRouteSignals<P extends Params> = Omit<RouteSignals<P>, "routeState"> & {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
411
|
+
readonly routeState: Signal<Omit<RouteSnapshot$1<P>, "route"> & {
|
|
412
|
+
route: State<P>;
|
|
413
|
+
}>;
|
|
263
414
|
};
|
|
264
|
-
declare function injectRoute<P extends Params = Params>(): NonNullRouteSignals<P>;
|
|
265
|
-
|
|
266
|
-
declare function
|
|
267
|
-
|
|
268
|
-
declare function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
declare function injectIsActiveRoute(routeName: string, params?: Params, search?: SearchParams, options?: {
|
|
273
|
-
strict?: boolean;
|
|
274
|
-
ignoreQueryParams?: boolean;
|
|
275
|
-
hash?: string;
|
|
415
|
+
export declare function injectRoute<P extends Params = Params>(): NonNullRouteSignals<P>;
|
|
416
|
+
export declare function injectRouteNode(nodeName: string): RouteSignals;
|
|
417
|
+
export declare function injectRouteUtils(): RouteUtils;
|
|
418
|
+
export declare function injectRouterTransition(): Signal<RouterTransitionSnapshot$1>;
|
|
419
|
+
export declare function injectIsActiveRoute(routeName: string, params?: Params, search?: SearchParams, options?: {
|
|
420
|
+
strict?: boolean;
|
|
421
|
+
ignoreQueryParams?: boolean;
|
|
422
|
+
hash?: string;
|
|
276
423
|
}): Signal<boolean>;
|
|
277
|
-
|
|
278
424
|
interface RouteExitContext {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
425
|
+
/** The route being left. */
|
|
426
|
+
route: State;
|
|
427
|
+
/** The route being navigated to. */
|
|
428
|
+
nextRoute: State;
|
|
429
|
+
/**
|
|
430
|
+
* AbortSignal that fires when this navigation is superseded by a later
|
|
431
|
+
* one (rapid clicks). Already filtered: when the handler runs,
|
|
432
|
+
* `signal.aborted` is guaranteed to be `false`. Use
|
|
433
|
+
* `signal.addEventListener("abort", cleanup, { once: true })` for
|
|
434
|
+
* cleanup that must run on cancellation.
|
|
435
|
+
*/
|
|
436
|
+
signal: AbortSignal;
|
|
291
437
|
}
|
|
292
438
|
interface UseRouteExitOptions {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
439
|
+
/**
|
|
440
|
+
* Skip the handler when `route.name === nextRoute.name`
|
|
441
|
+
* (sort/filter/query-only navigations on the same route). Default:
|
|
442
|
+
* `true`.
|
|
443
|
+
*/
|
|
444
|
+
skipSameRoute?: boolean;
|
|
299
445
|
}
|
|
300
446
|
type RouteExitHandler = (context: RouteExitContext) => void | Promise<void>;
|
|
301
447
|
/**
|
|
@@ -360,22 +506,21 @@ type RouteExitHandler = (context: RouteExitContext) => void | Promise<void>;
|
|
|
360
506
|
* });
|
|
361
507
|
* ```
|
|
362
508
|
*/
|
|
363
|
-
declare function injectRouteExit(handler: RouteExitHandler, options?: UseRouteExitOptions): void;
|
|
364
|
-
|
|
509
|
+
export declare function injectRouteExit(handler: RouteExitHandler, options?: UseRouteExitOptions): void;
|
|
365
510
|
interface RouteEnterContext {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
511
|
+
/** The route that was just activated. */
|
|
512
|
+
route: State;
|
|
513
|
+
/** The route that was active immediately before this navigation. */
|
|
514
|
+
previousRoute: State;
|
|
370
515
|
}
|
|
371
516
|
type RouteEnterHandler = (context: RouteEnterContext) => void;
|
|
372
517
|
interface UseRouteEnterOptions {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
518
|
+
/**
|
|
519
|
+
* Skip the handler when `route.name === previousRoute.name`
|
|
520
|
+
* (sort/filter/query-only navigations on the same route). Default:
|
|
521
|
+
* `true`. Symmetric with `injectRouteExit`'s same-name option.
|
|
522
|
+
*/
|
|
523
|
+
skipSameRoute?: boolean;
|
|
379
524
|
}
|
|
380
525
|
/**
|
|
381
526
|
* Fire `handler` once when the component is created as a result of a
|
|
@@ -434,138 +579,231 @@ interface UseRouteEnterOptions {
|
|
|
434
579
|
* });
|
|
435
580
|
* ```
|
|
436
581
|
*/
|
|
437
|
-
declare function injectRouteEnter(handler: RouteEnterHandler, options?: UseRouteEnterOptions): void;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
582
|
+
export declare function injectRouteEnter(handler: RouteEnterHandler, options?: UseRouteEnterOptions): void;
|
|
583
|
+
export declare class RouteMatch {
|
|
584
|
+
readonly routeMatch: import("@angular/core").InputSignal<string>;
|
|
585
|
+
readonly templateRef: TemplateRef<any>;
|
|
586
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteMatch, never>;
|
|
587
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouteMatch, "ng-template[routeMatch]", never, {
|
|
588
|
+
"routeMatch": {
|
|
589
|
+
"alias": "routeMatch";
|
|
590
|
+
"required": true;
|
|
591
|
+
"isSignal": true;
|
|
592
|
+
};
|
|
593
|
+
}, {}, never, never, true, never>;
|
|
444
594
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouteNotFound, "ng-template[routeNotFound]", never, {}, {}, never, never, true, never>;
|
|
595
|
+
export declare class RouteNotFound {
|
|
596
|
+
readonly templateRef: TemplateRef<any>;
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteNotFound, never>;
|
|
598
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouteNotFound, "ng-template[routeNotFound]", never, {}, {}, never, never, true, never>;
|
|
450
599
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouteSelf, "ng-template[routeSelf]", never, {}, {}, never, never, true, never>;
|
|
600
|
+
export declare class RouteSelf {
|
|
601
|
+
readonly templateRef: TemplateRef<any>;
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteSelf, never>;
|
|
603
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouteSelf, "ng-template[routeSelf]", never, {}, {}, never, never, true, never>;
|
|
456
604
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
605
|
+
export declare class RouteView {
|
|
606
|
+
readonly nodeName: import("@angular/core").InputSignal<string>;
|
|
607
|
+
readonly matches: import("@angular/core").Signal<readonly RouteMatch[]>;
|
|
608
|
+
readonly selfs: import("@angular/core").Signal<readonly RouteSelf[]>;
|
|
609
|
+
readonly notFounds: import("@angular/core").Signal<readonly RouteNotFound[]>;
|
|
610
|
+
readonly activeTemplate: import("@angular/core").Signal<TemplateRef<unknown> | null>;
|
|
611
|
+
private readonly router;
|
|
612
|
+
private readonly cdr;
|
|
613
|
+
private readonly routeState;
|
|
614
|
+
private readonly matchEntries;
|
|
615
|
+
private readonly matchedTemplate;
|
|
616
|
+
private readonly fallbackTemplate;
|
|
617
|
+
constructor();
|
|
618
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteView, never>;
|
|
619
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RouteView, "route-view", never, {
|
|
620
|
+
"nodeName": {
|
|
621
|
+
"alias": "routeNode";
|
|
622
|
+
"required": false;
|
|
623
|
+
"isSignal": true;
|
|
624
|
+
};
|
|
625
|
+
}, {}, ["matches", "selfs", "notFounds"], never, true, never>;
|
|
473
626
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
627
|
+
export declare class RouterErrorBoundary {
|
|
628
|
+
readonly errorTemplate: import("@angular/core").InputSignal<TemplateRef<ErrorContext> | undefined>;
|
|
629
|
+
readonly onError: import("@angular/core").OutputEmitterRef<{
|
|
630
|
+
error: RouterError;
|
|
631
|
+
toRoute: State | null;
|
|
632
|
+
fromRoute: State | null;
|
|
633
|
+
}>;
|
|
634
|
+
readonly errorContext: import("@angular/core").Signal<ErrorContext | null>;
|
|
635
|
+
private readonly router;
|
|
636
|
+
private readonly snapshot;
|
|
637
|
+
constructor();
|
|
638
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterErrorBoundary, never>;
|
|
639
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RouterErrorBoundary, "router-error-boundary", never, {
|
|
640
|
+
"errorTemplate": {
|
|
641
|
+
"alias": "errorTemplate";
|
|
642
|
+
"required": false;
|
|
643
|
+
"isSignal": true;
|
|
644
|
+
};
|
|
645
|
+
}, {
|
|
646
|
+
"onError": "onError";
|
|
647
|
+
}, never, ["*"], true, never>;
|
|
488
648
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
649
|
+
export declare class NavigationAnnouncer implements OnInit {
|
|
650
|
+
/**
|
|
651
|
+
* Optional announcer customization — mirrors the `announceNavigation`
|
|
652
|
+
* options exposed by the react/preact/vue/solid/svelte adapters.
|
|
653
|
+
* `prefix` overrides the default `"Navigated to "`; `getAnnouncementText`
|
|
654
|
+
* computes the full announcement from the resolved route (falling back to
|
|
655
|
+
* the default `h1 → title → route-name` chain on empty/throw). Read once in
|
|
656
|
+
* `ngOnInit` — after the input bindings have fired — because signal inputs
|
|
657
|
+
* are not yet bound at field-initialization time (same pattern as the SSR
|
|
658
|
+
* `<http-status-code>` component).
|
|
659
|
+
*/
|
|
660
|
+
readonly prefix: import("@angular/core").InputSignal<string | undefined>;
|
|
661
|
+
readonly getAnnouncementText: import("@angular/core").InputSignal<((route: State) => string) | undefined>;
|
|
662
|
+
private readonly router;
|
|
663
|
+
private announcer;
|
|
664
|
+
constructor();
|
|
665
|
+
ngOnInit(): void;
|
|
666
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationAnnouncer, never>;
|
|
667
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationAnnouncer, "navigation-announcer", never, {
|
|
668
|
+
"prefix": {
|
|
669
|
+
"alias": "prefix";
|
|
670
|
+
"required": false;
|
|
671
|
+
"isSignal": true;
|
|
672
|
+
};
|
|
673
|
+
"getAnnouncementText": {
|
|
674
|
+
"alias": "getAnnouncementText";
|
|
675
|
+
"required": false;
|
|
676
|
+
"isSignal": true;
|
|
677
|
+
};
|
|
678
|
+
}, {}, never, never, true, never>;
|
|
509
679
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
680
|
+
export declare class RealLink {
|
|
681
|
+
readonly routeName: import("@angular/core").InputSignal<string>;
|
|
682
|
+
readonly routeParams: import("@angular/core").InputSignal<Params | undefined>;
|
|
683
|
+
/**
|
|
684
|
+
* Query (search) params for the link's target (RFC-4 M2, #1548) — parallel to
|
|
685
|
+
* `routeParams`, the path/query split's view-layer channel.
|
|
686
|
+
*/
|
|
687
|
+
readonly routeSearch: import("@angular/core").InputSignal<SearchParams | undefined>;
|
|
688
|
+
/**
|
|
689
|
+
* Descriptor form (RFC-4 M2 B2, #1548): `[to]="{ name, params?, search? }"` —
|
|
690
|
+
* mutually exclusive with the routeName/routeParams/routeSearch channels
|
|
691
|
+
* (runtime dev-warn on conflict via `resolveLinkTarget`, `to` wins).
|
|
692
|
+
*/
|
|
693
|
+
readonly to: import("@angular/core").InputSignal<NavigationTarget<Params, SearchParams> | undefined>;
|
|
694
|
+
readonly routeOptions: import("@angular/core").InputSignal<NavigationOptions>;
|
|
695
|
+
readonly activeClassName: import("@angular/core").InputSignal<string>;
|
|
696
|
+
readonly activeStrict: import("@angular/core").InputSignal<boolean>;
|
|
697
|
+
readonly ignoreQueryParams: import("@angular/core").InputSignal<boolean>;
|
|
698
|
+
/**
|
|
699
|
+
* URL fragment (decoded form, no leading "#") (#532).
|
|
700
|
+
* - omitted/`undefined` → preserve current fragment on same-route navigation
|
|
701
|
+
* - `""` → clear fragment
|
|
702
|
+
* - non-empty → set fragment
|
|
703
|
+
*/
|
|
704
|
+
readonly hash: import("@angular/core").InputSignal<string | undefined>;
|
|
705
|
+
private readonly router;
|
|
706
|
+
private readonly anchor;
|
|
707
|
+
private readonly isActive;
|
|
708
|
+
private readonly stableParams;
|
|
709
|
+
private readonly href;
|
|
710
|
+
private prevActiveClass;
|
|
711
|
+
private prevHref;
|
|
712
|
+
private prevActive;
|
|
713
|
+
constructor();
|
|
714
|
+
onClick(event: MouseEvent): void;
|
|
715
|
+
private updateHref;
|
|
716
|
+
private updateActiveClass;
|
|
717
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RealLink, never>;
|
|
718
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RealLink, "a[realLink]", never, {
|
|
719
|
+
"routeName": {
|
|
720
|
+
"alias": "routeName";
|
|
721
|
+
"required": false;
|
|
722
|
+
"isSignal": true;
|
|
723
|
+
};
|
|
724
|
+
"routeParams": {
|
|
725
|
+
"alias": "routeParams";
|
|
726
|
+
"required": false;
|
|
727
|
+
"isSignal": true;
|
|
728
|
+
};
|
|
729
|
+
"routeSearch": {
|
|
730
|
+
"alias": "routeSearch";
|
|
731
|
+
"required": false;
|
|
732
|
+
"isSignal": true;
|
|
733
|
+
};
|
|
734
|
+
"to": {
|
|
735
|
+
"alias": "to";
|
|
736
|
+
"required": false;
|
|
737
|
+
"isSignal": true;
|
|
738
|
+
};
|
|
739
|
+
"routeOptions": {
|
|
740
|
+
"alias": "routeOptions";
|
|
741
|
+
"required": false;
|
|
742
|
+
"isSignal": true;
|
|
743
|
+
};
|
|
744
|
+
"activeClassName": {
|
|
745
|
+
"alias": "activeClassName";
|
|
746
|
+
"required": false;
|
|
747
|
+
"isSignal": true;
|
|
748
|
+
};
|
|
749
|
+
"activeStrict": {
|
|
750
|
+
"alias": "activeStrict";
|
|
751
|
+
"required": false;
|
|
752
|
+
"isSignal": true;
|
|
753
|
+
};
|
|
754
|
+
"ignoreQueryParams": {
|
|
755
|
+
"alias": "ignoreQueryParams";
|
|
756
|
+
"required": false;
|
|
757
|
+
"isSignal": true;
|
|
758
|
+
};
|
|
759
|
+
"hash": {
|
|
760
|
+
"alias": "hash";
|
|
761
|
+
"required": false;
|
|
762
|
+
"isSignal": true;
|
|
763
|
+
};
|
|
764
|
+
}, {}, never, never, true, never>;
|
|
550
765
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
766
|
+
export declare class RealLinkActive {
|
|
767
|
+
readonly realLinkActive: import("@angular/core").InputSignal<string>;
|
|
768
|
+
readonly routeName: import("@angular/core").InputSignal<string>;
|
|
769
|
+
readonly routeParams: import("@angular/core").InputSignal<Params | undefined>;
|
|
770
|
+
readonly activeStrict: import("@angular/core").InputSignal<boolean>;
|
|
771
|
+
readonly ignoreQueryParams: import("@angular/core").InputSignal<boolean>;
|
|
772
|
+
private readonly router;
|
|
773
|
+
private readonly element;
|
|
774
|
+
private readonly isActive;
|
|
775
|
+
private readonly stableParams;
|
|
776
|
+
private prevActive;
|
|
777
|
+
constructor();
|
|
778
|
+
private updateClass;
|
|
779
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RealLinkActive, never>;
|
|
780
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RealLinkActive, "[realLinkActive]", never, {
|
|
781
|
+
"realLinkActive": {
|
|
782
|
+
"alias": "realLinkActive";
|
|
783
|
+
"required": false;
|
|
784
|
+
"isSignal": true;
|
|
785
|
+
};
|
|
786
|
+
"routeName": {
|
|
787
|
+
"alias": "routeName";
|
|
788
|
+
"required": false;
|
|
789
|
+
"isSignal": true;
|
|
790
|
+
};
|
|
791
|
+
"routeParams": {
|
|
792
|
+
"alias": "routeParams";
|
|
793
|
+
"required": false;
|
|
794
|
+
"isSignal": true;
|
|
795
|
+
};
|
|
796
|
+
"activeStrict": {
|
|
797
|
+
"alias": "activeStrict";
|
|
798
|
+
"required": false;
|
|
799
|
+
"isSignal": true;
|
|
800
|
+
};
|
|
801
|
+
"ignoreQueryParams": {
|
|
802
|
+
"alias": "ignoreQueryParams";
|
|
803
|
+
"required": false;
|
|
804
|
+
"isSignal": true;
|
|
805
|
+
};
|
|
806
|
+
}, {}, never, never, true, never>;
|
|
567
807
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
export type { DirectionTracker, ErrorContext, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, UseRouteEnterOptions, UseRouteExitOptions };
|
|
571
|
-
//# sourceMappingURL=real-router-angular.d.ts.map
|
|
808
|
+
export type { DirectionTracker, ErrorContext, Navigator, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, RouteSnapshot, RouterErrorSnapshot, RouterTransitionSnapshot, UseRouteEnterOptions, UseRouteExitOptions };
|
|
809
|
+
//# sourceMappingURL=real-router-angular.d.ts.map
|