@real-router/angular 0.13.12 → 0.13.14
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.
|
@@ -13,8 +13,8 @@ class ClientOnly {
|
|
|
13
13
|
this.mounted.set(true);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ClientOnly, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ClientOnly, isStandalone: true, selector: "client-only", inputs: { fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
18
18
|
@if (mounted()) {
|
|
19
19
|
<ng-content />
|
|
20
20
|
} @else if (fallback()) {
|
|
@@ -22,7 +22,7 @@ class ClientOnly {
|
|
|
22
22
|
}
|
|
23
23
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ClientOnly, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: "client-only",
|
|
@@ -47,8 +47,8 @@ class ServerOnly {
|
|
|
47
47
|
this.mounted.set(true);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ServerOnly, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ServerOnly, isStandalone: true, selector: "server-only", inputs: { fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
52
52
|
@if (!mounted()) {
|
|
53
53
|
<ng-content />
|
|
54
54
|
} @else if (fallback()) {
|
|
@@ -56,7 +56,7 @@ class ServerOnly {
|
|
|
56
56
|
}
|
|
57
57
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ServerOnly, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{
|
|
62
62
|
selector: "server-only",
|
|
@@ -187,10 +187,10 @@ class HttpStatusCode {
|
|
|
187
187
|
this.sink.code = value;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
191
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: HttpStatusCode, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
191
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: HttpStatusCode, isStandalone: true, selector: "http-status-code", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "", isInline: true });
|
|
192
192
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: HttpStatusCode, decorators: [{
|
|
194
194
|
type: Component,
|
|
195
195
|
args: [{
|
|
196
196
|
selector: "http-status-code",
|
|
@@ -83,6 +83,13 @@ const NOOP_INSTANCE$3 = Object.freeze({
|
|
|
83
83
|
// frontends — the same multi-provider scenario `scroll-restore`'s `storageKey`
|
|
84
84
|
// exists for) keep writing to the now-orphaned node → silent screen reader (#783).
|
|
85
85
|
let announcerRefCount = 0;
|
|
86
|
+
// Generation token (#1217): bumped each time a FRESH shared element is created.
|
|
87
|
+
// Each instance captures the generation live at construction; on destroy it
|
|
88
|
+
// touches the shared refcount / element ONLY if its generation is still current.
|
|
89
|
+
// A stale instance — whose element a host wiped without calling destroy() — must
|
|
90
|
+
// not decrement the new generation's refcount (→ negative) or remove its live
|
|
91
|
+
// element (removeAnnouncer used to query by selector = whoever is in the DOM).
|
|
92
|
+
let announcerGeneration = 0;
|
|
86
93
|
function createRouteAnnouncer(router, options) {
|
|
87
94
|
// Defensive SSR / non-browser guard: in SSR (Node.js) or non-DOM
|
|
88
95
|
// environments, `document` is undefined and the announcer cannot
|
|
@@ -104,7 +111,7 @@ function createRouteAnnouncer(router, options) {
|
|
|
104
111
|
let lastAnnouncedText = "";
|
|
105
112
|
let pendingText = null;
|
|
106
113
|
let clearTimeoutId;
|
|
107
|
-
const announcer = getOrCreateAnnouncer();
|
|
114
|
+
const { element: announcer, generation: myGeneration } = getOrCreateAnnouncer();
|
|
108
115
|
announcerRefCount += 1;
|
|
109
116
|
const doAnnounce = (text, h1) => {
|
|
110
117
|
lastAnnouncedText = text;
|
|
@@ -170,10 +177,19 @@ function createRouteAnnouncer(router, options) {
|
|
|
170
177
|
unsubscribe();
|
|
171
178
|
clearTimeout(clearTimeoutId);
|
|
172
179
|
clearTimeout(safariTimeoutId);
|
|
180
|
+
// Ownership guard (#1217): if a host wiped the shared element out from
|
|
181
|
+
// under us, the next getOrCreateAnnouncer bumped the generation for the
|
|
182
|
+
// fresh element. A stale instance must NOT decrement the new generation's
|
|
183
|
+
// refcount (→ negative) or remove its live element — bail if not current.
|
|
184
|
+
if (myGeneration !== announcerGeneration) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
173
187
|
announcerRefCount -= 1;
|
|
174
|
-
// Only the last holder tears down the shared element
|
|
188
|
+
// Only the last holder tears down the shared element — via our captured
|
|
189
|
+
// ref, not a selector query (which would delete whoever's element is
|
|
190
|
+
// currently in the DOM, i.e. a newer generation's).
|
|
175
191
|
if (announcerRefCount === 0) {
|
|
176
|
-
removeAnnouncer();
|
|
192
|
+
removeAnnouncer(announcer);
|
|
177
193
|
}
|
|
178
194
|
},
|
|
179
195
|
};
|
|
@@ -181,7 +197,7 @@ function createRouteAnnouncer(router, options) {
|
|
|
181
197
|
function getOrCreateAnnouncer() {
|
|
182
198
|
const existing = document.querySelector(`[${ANNOUNCER_ATTR}]`);
|
|
183
199
|
if (existing) {
|
|
184
|
-
return existing;
|
|
200
|
+
return { element: existing, generation: announcerGeneration };
|
|
185
201
|
}
|
|
186
202
|
// Creating a FRESH element means no live instance is validly sharing one, so
|
|
187
203
|
// the ref-count restarts from zero (the caller increments immediately after).
|
|
@@ -189,7 +205,10 @@ function getOrCreateAnnouncer() {
|
|
|
189
205
|
// wiping the subtree, or a consumer test whose teardown clears the DOM
|
|
190
206
|
// without calling every instance's destroy() — would leave a stale positive
|
|
191
207
|
// count that prevents the new element from ever being torn down (#783).
|
|
208
|
+
// The generation bump (#1217) lets the wiped element's instances recognize
|
|
209
|
+
// themselves as stale so their destroy() does not touch this fresh element.
|
|
192
210
|
announcerRefCount = 0;
|
|
211
|
+
announcerGeneration += 1;
|
|
193
212
|
const element = document.createElement("div");
|
|
194
213
|
element.setAttribute("style", VISUALLY_HIDDEN);
|
|
195
214
|
element.setAttribute("aria-live", "assertive");
|
|
@@ -208,10 +227,10 @@ function getOrCreateAnnouncer() {
|
|
|
208
227
|
// runtime can return null per spec. The `as` cast narrows the type to
|
|
209
228
|
// include null so the `??` short-circuit is type-safe.
|
|
210
229
|
(document.body ?? document.documentElement).prepend(element);
|
|
211
|
-
return element;
|
|
230
|
+
return { element, generation: announcerGeneration };
|
|
212
231
|
}
|
|
213
|
-
function removeAnnouncer() {
|
|
214
|
-
|
|
232
|
+
function removeAnnouncer(element) {
|
|
233
|
+
element.remove();
|
|
215
234
|
}
|
|
216
235
|
function resolveText(route, prefix, getCustomText, h1) {
|
|
217
236
|
if (getCustomText) {
|
|
@@ -964,6 +983,16 @@ const createObserverPair = (selector, rootMargin, getContainer, onIntersection,
|
|
|
964
983
|
mo.observe(observerContainer ?? document.body, MUTATION_OBSERVE_INIT);
|
|
965
984
|
return {
|
|
966
985
|
pending,
|
|
986
|
+
// #1216: the MutationObserver is pointed at the container's OWN subtree, so
|
|
987
|
+
// the container's removal (a mutation of its PARENT) is invisible — reconcile
|
|
988
|
+
// never fires on it and a remounted container is never re-observed. Expose a
|
|
989
|
+
// detach check + reconcile so the router.subscribe callback can re-resolve on
|
|
990
|
+
// navigation (exactly when route-tied containers mount/die). When
|
|
991
|
+
// `observerContainer` is null the MO already watches `document.body`, which
|
|
992
|
+
// sees container mounts directly — so only a resolved-then-detached container
|
|
993
|
+
// needs this nav-time nudge.
|
|
994
|
+
isContainerDetached: () => observerContainer !== null && !observerContainer.isConnected,
|
|
995
|
+
reconcile,
|
|
967
996
|
destroy() {
|
|
968
997
|
io.disconnect();
|
|
969
998
|
mo.disconnect();
|
|
@@ -1113,6 +1142,13 @@ function createScrollSpy(router, options) {
|
|
|
1113
1142
|
if (selfEmitting) {
|
|
1114
1143
|
return;
|
|
1115
1144
|
}
|
|
1145
|
+
// #1216: a route-tied scroll container may have unmounted since the last
|
|
1146
|
+
// navigation. The container-scoped MutationObserver can't observe its own
|
|
1147
|
+
// removal (a mutation of its parent), so re-resolve + re-observe here —
|
|
1148
|
+
// navigation is exactly when such containers mount / die.
|
|
1149
|
+
if (observers.isContainerDetached()) {
|
|
1150
|
+
observers.reconcile();
|
|
1151
|
+
}
|
|
1116
1152
|
if (getUrlContext(route)?.hashChanged) {
|
|
1117
1153
|
cooldown.start();
|
|
1118
1154
|
}
|
|
@@ -1277,39 +1313,24 @@ function shouldNavigate(evt) {
|
|
|
1277
1313
|
!evt.ctrlKey &&
|
|
1278
1314
|
!evt.shiftKey);
|
|
1279
1315
|
}
|
|
1280
|
-
// Matches a single percent-escape triple (`%` + two hex digits). Used as
|
|
1281
|
-
// the "already-encoded" probe in `encodeFragmentInline` below — see the
|
|
1282
|
-
// idempotency rationale there.
|
|
1283
|
-
const PERCENT_ESCAPE_PROBE = /%[\dA-Fa-f]{2}/;
|
|
1284
1316
|
/**
|
|
1285
1317
|
* RFC 3986 fragment encoding: preserve sub-delims (`&`, `=`, `?`, `:`),
|
|
1286
1318
|
* encode space, `%`, control chars, non-ASCII via encodeURI; defensively
|
|
1287
|
-
* escape `#` (encodeURI does not).
|
|
1288
|
-
* `shared/browser-env/url-context.ts` — duplicated
|
|
1289
|
-
* shared/dom-utils symlink graph does not reach shared/browser-env
|
|
1319
|
+
* escape `#` (encodeURI does not). Kept BYTE-FOR-BYTE identical to
|
|
1320
|
+
* `encodeHashFragment` in `shared/browser-env/url-context.ts` — duplicated
|
|
1321
|
+
* because the shared/dom-utils symlink graph does not reach shared/browser-env;
|
|
1322
|
+
* a sync test (`link-utils` functional suite) asserts the two stay identical.
|
|
1290
1323
|
*
|
|
1291
|
-
* **
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
1294
|
-
*
|
|
1295
|
-
*
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1299
|
-
* fall through to plain `encodeURI`, which never throws.
|
|
1324
|
+
* **STRICTLY-DECODED contract (#1211 / D1=A).** The `<Link hash>` value is a
|
|
1325
|
+
* DECODED fragment (no leading `#`) and is encoded verbatim. This OVERTURNS
|
|
1326
|
+
* audit-2026-05-17 §5 E.1 — the earlier percent-escape probe (decode + re-encode
|
|
1327
|
+
* for copy-from-`location.hash` tolerance) is REMOVED, so both the adapter and
|
|
1328
|
+
* the plugin layer obey one contract: `<Link hash="a%20b">` renders `#a%2520b`
|
|
1329
|
+
* (the literal fragment `a%20b`) under every runtime. Consumers who want the
|
|
1330
|
+
* fragment `a b` pass `hash="a b"`; passing raw `location.hash` (percent-encoded)
|
|
1331
|
+
* is no longer supported — it was the source of the plugin↔adapter divergence.
|
|
1300
1332
|
*/
|
|
1301
1333
|
function encodeFragmentInline(decoded) {
|
|
1302
|
-
if (PERCENT_ESCAPE_PROBE.test(decoded)) {
|
|
1303
|
-
try {
|
|
1304
|
-
const roundtrip = decodeURIComponent(decoded);
|
|
1305
|
-
return encodeURI(roundtrip).replaceAll("#", "%23");
|
|
1306
|
-
}
|
|
1307
|
-
catch {
|
|
1308
|
-
// Malformed `%XX` — fall through to the plain encoding path.
|
|
1309
|
-
// encodeURI does not throw on malformed escapes; it treats the
|
|
1310
|
-
// `%` as a literal and percent-encodes it (`%2` → `%252`).
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
1334
|
return encodeURI(decoded).replaceAll("#", "%23");
|
|
1314
1335
|
}
|
|
1315
1336
|
/**
|
|
@@ -2053,30 +2074,30 @@ class RouteMatch {
|
|
|
2053
2074
|
routeMatch = input.required(/* @ts-ignore */
|
|
2054
2075
|
...(ngDevMode ? [{ debugName: "routeMatch" }] : /* istanbul ignore next */ []));
|
|
2055
2076
|
templateRef = inject(TemplateRef);
|
|
2056
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2057
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
2077
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteMatch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2078
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: RouteMatch, isStandalone: true, selector: "ng-template[routeMatch]", inputs: { routeMatch: { classPropertyName: "routeMatch", publicName: "routeMatch", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
2058
2079
|
}
|
|
2059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteMatch, decorators: [{
|
|
2060
2081
|
type: Directive,
|
|
2061
2082
|
args: [{ selector: "ng-template[routeMatch]" }]
|
|
2062
2083
|
}], propDecorators: { routeMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "routeMatch", required: true }] }] } });
|
|
2063
2084
|
|
|
2064
2085
|
class RouteNotFound {
|
|
2065
2086
|
templateRef = inject(TemplateRef);
|
|
2066
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2067
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
2087
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteNotFound, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2088
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: RouteNotFound, isStandalone: true, selector: "ng-template[routeNotFound]", ngImport: i0 });
|
|
2068
2089
|
}
|
|
2069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteNotFound, decorators: [{
|
|
2070
2091
|
type: Directive,
|
|
2071
2092
|
args: [{ selector: "ng-template[routeNotFound]" }]
|
|
2072
2093
|
}] });
|
|
2073
2094
|
|
|
2074
2095
|
class RouteSelf {
|
|
2075
2096
|
templateRef = inject(TemplateRef);
|
|
2076
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2077
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
2097
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteSelf, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2098
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: RouteSelf, isStandalone: true, selector: "ng-template[routeSelf]", ngImport: i0 });
|
|
2078
2099
|
}
|
|
2079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteSelf, decorators: [{
|
|
2080
2101
|
type: Directive,
|
|
2081
2102
|
args: [{ selector: "ng-template[routeSelf]" }]
|
|
2082
2103
|
}] });
|
|
@@ -2207,14 +2228,14 @@ class RouteView {
|
|
|
2207
2228
|
}));
|
|
2208
2229
|
});
|
|
2209
2230
|
}
|
|
2210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
2231
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2232
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: RouteView, isStandalone: true, selector: "route-view", inputs: { nodeName: { classPropertyName: "nodeName", publicName: "routeNode", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "matches", predicate: RouteMatch, descendants: true, isSignal: true }, { propertyName: "selfs", predicate: RouteSelf, descendants: true, isSignal: true }, { propertyName: "notFounds", predicate: RouteNotFound, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2212
2233
|
@if (activeTemplate()) {
|
|
2213
2234
|
<ng-container [ngTemplateOutlet]="activeTemplate()!" />
|
|
2214
2235
|
}
|
|
2215
2236
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2216
2237
|
}
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteView, decorators: [{
|
|
2218
2239
|
type: Component,
|
|
2219
2240
|
args: [{
|
|
2220
2241
|
selector: "route-view",
|
|
@@ -2262,8 +2283,8 @@ class RouterErrorBoundary {
|
|
|
2262
2283
|
}
|
|
2263
2284
|
});
|
|
2264
2285
|
}
|
|
2265
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2266
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
2286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouterErrorBoundary, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2287
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: RouterErrorBoundary, isStandalone: true, selector: "router-error-boundary", inputs: { errorTemplate: { classPropertyName: "errorTemplate", publicName: "errorTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onError: "onError" }, ngImport: i0, template: `
|
|
2267
2288
|
<ng-content />
|
|
2268
2289
|
@if (errorContext() && errorTemplate()) {
|
|
2269
2290
|
<ng-container
|
|
@@ -2273,7 +2294,7 @@ class RouterErrorBoundary {
|
|
|
2273
2294
|
}
|
|
2274
2295
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2275
2296
|
}
|
|
2276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouterErrorBoundary, decorators: [{
|
|
2277
2298
|
type: Component,
|
|
2278
2299
|
args: [{
|
|
2279
2300
|
selector: "router-error-boundary",
|
|
@@ -2324,10 +2345,10 @@ class NavigationAnnouncer {
|
|
|
2324
2345
|
};
|
|
2325
2346
|
this.announcer = createRouteAnnouncer(this.router, options);
|
|
2326
2347
|
}
|
|
2327
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2328
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
2348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavigationAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2349
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: NavigationAnnouncer, isStandalone: true, selector: "navigation-announcer", inputs: { prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, getAnnouncementText: { classPropertyName: "getAnnouncementText", publicName: "getAnnouncementText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "", isInline: true });
|
|
2329
2350
|
}
|
|
2330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavigationAnnouncer, decorators: [{
|
|
2331
2352
|
type: Component,
|
|
2332
2353
|
args: [{
|
|
2333
2354
|
selector: "navigation-announcer",
|
|
@@ -2535,10 +2556,10 @@ class RealLink {
|
|
|
2535
2556
|
}
|
|
2536
2557
|
this.prevActiveClass = activeClass;
|
|
2537
2558
|
}
|
|
2538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2539
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
2559
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2560
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: RealLink, isStandalone: true, selector: "a[realLink]", inputs: { routeName: { classPropertyName: "routeName", publicName: "routeName", isSignal: true, isRequired: false, transformFunction: null }, routeParams: { classPropertyName: "routeParams", publicName: "routeParams", isSignal: true, isRequired: false, transformFunction: null }, routeOptions: { classPropertyName: "routeOptions", publicName: "routeOptions", isSignal: true, isRequired: false, transformFunction: null }, activeClassName: { classPropertyName: "activeClassName", publicName: "activeClassName", isSignal: true, isRequired: false, transformFunction: null }, activeStrict: { classPropertyName: "activeStrict", publicName: "activeStrict", isSignal: true, isRequired: false, transformFunction: null }, ignoreQueryParams: { classPropertyName: "ignoreQueryParams", publicName: "ignoreQueryParams", isSignal: true, isRequired: false, transformFunction: null }, hash: { classPropertyName: "hash", publicName: "hash", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
2540
2561
|
}
|
|
2541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLink, decorators: [{
|
|
2542
2563
|
type: Directive,
|
|
2543
2564
|
args: [{
|
|
2544
2565
|
selector: "a[realLink]",
|
|
@@ -2605,10 +2626,10 @@ class RealLinkActive {
|
|
|
2605
2626
|
}
|
|
2606
2627
|
this.element.classList.toggle(className, this.isActive());
|
|
2607
2628
|
}
|
|
2608
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2609
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
2629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLinkActive, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2630
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: RealLinkActive, isStandalone: true, selector: "[realLinkActive]", inputs: { realLinkActive: { classPropertyName: "realLinkActive", publicName: "realLinkActive", isSignal: true, isRequired: false, transformFunction: null }, routeName: { classPropertyName: "routeName", publicName: "routeName", isSignal: true, isRequired: false, transformFunction: null }, routeParams: { classPropertyName: "routeParams", publicName: "routeParams", isSignal: true, isRequired: false, transformFunction: null }, activeStrict: { classPropertyName: "activeStrict", publicName: "activeStrict", isSignal: true, isRequired: false, transformFunction: null }, ignoreQueryParams: { classPropertyName: "ignoreQueryParams", publicName: "ignoreQueryParams", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2610
2631
|
}
|
|
2611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLinkActive, decorators: [{
|
|
2612
2633
|
type: Directive,
|
|
2613
2634
|
args: [{ selector: "[realLinkActive]" }]
|
|
2614
2635
|
}], ctorParameters: () => [], propDecorators: { realLinkActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "realLinkActive", required: false }] }], routeName: [{ type: i0.Input, args: [{ isSignal: true, alias: "routeName", required: false }] }], routeParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "routeParams", required: false }] }], activeStrict: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStrict", required: false }] }], ignoreQueryParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "ignoreQueryParams", required: false }] }] } });
|