@real-router/angular 0.13.11 → 0.13.13
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
|
}
|
|
@@ -2053,30 +2089,30 @@ class RouteMatch {
|
|
|
2053
2089
|
routeMatch = input.required(/* @ts-ignore */
|
|
2054
2090
|
...(ngDevMode ? [{ debugName: "routeMatch" }] : /* istanbul ignore next */ []));
|
|
2055
2091
|
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.
|
|
2092
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteMatch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2093
|
+
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
2094
|
}
|
|
2059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteMatch, decorators: [{
|
|
2060
2096
|
type: Directive,
|
|
2061
2097
|
args: [{ selector: "ng-template[routeMatch]" }]
|
|
2062
2098
|
}], propDecorators: { routeMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "routeMatch", required: true }] }] } });
|
|
2063
2099
|
|
|
2064
2100
|
class RouteNotFound {
|
|
2065
2101
|
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.
|
|
2102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteNotFound, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2103
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: RouteNotFound, isStandalone: true, selector: "ng-template[routeNotFound]", ngImport: i0 });
|
|
2068
2104
|
}
|
|
2069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteNotFound, decorators: [{
|
|
2070
2106
|
type: Directive,
|
|
2071
2107
|
args: [{ selector: "ng-template[routeNotFound]" }]
|
|
2072
2108
|
}] });
|
|
2073
2109
|
|
|
2074
2110
|
class RouteSelf {
|
|
2075
2111
|
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.
|
|
2112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteSelf, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: RouteSelf, isStandalone: true, selector: "ng-template[routeSelf]", ngImport: i0 });
|
|
2078
2114
|
}
|
|
2079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteSelf, decorators: [{
|
|
2080
2116
|
type: Directive,
|
|
2081
2117
|
args: [{ selector: "ng-template[routeSelf]" }]
|
|
2082
2118
|
}] });
|
|
@@ -2207,14 +2243,14 @@ class RouteView {
|
|
|
2207
2243
|
}));
|
|
2208
2244
|
});
|
|
2209
2245
|
}
|
|
2210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
2246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2247
|
+
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
2248
|
@if (activeTemplate()) {
|
|
2213
2249
|
<ng-container [ngTemplateOutlet]="activeTemplate()!" />
|
|
2214
2250
|
}
|
|
2215
2251
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2216
2252
|
}
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouteView, decorators: [{
|
|
2218
2254
|
type: Component,
|
|
2219
2255
|
args: [{
|
|
2220
2256
|
selector: "route-view",
|
|
@@ -2262,8 +2298,8 @@ class RouterErrorBoundary {
|
|
|
2262
2298
|
}
|
|
2263
2299
|
});
|
|
2264
2300
|
}
|
|
2265
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2266
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
2301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouterErrorBoundary, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2302
|
+
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
2303
|
<ng-content />
|
|
2268
2304
|
@if (errorContext() && errorTemplate()) {
|
|
2269
2305
|
<ng-container
|
|
@@ -2273,7 +2309,7 @@ class RouterErrorBoundary {
|
|
|
2273
2309
|
}
|
|
2274
2310
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2275
2311
|
}
|
|
2276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RouterErrorBoundary, decorators: [{
|
|
2277
2313
|
type: Component,
|
|
2278
2314
|
args: [{
|
|
2279
2315
|
selector: "router-error-boundary",
|
|
@@ -2324,10 +2360,10 @@ class NavigationAnnouncer {
|
|
|
2324
2360
|
};
|
|
2325
2361
|
this.announcer = createRouteAnnouncer(this.router, options);
|
|
2326
2362
|
}
|
|
2327
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2328
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
2363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavigationAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2364
|
+
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
2365
|
}
|
|
2330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavigationAnnouncer, decorators: [{
|
|
2331
2367
|
type: Component,
|
|
2332
2368
|
args: [{
|
|
2333
2369
|
selector: "navigation-announcer",
|
|
@@ -2535,10 +2571,10 @@ class RealLink {
|
|
|
2535
2571
|
}
|
|
2536
2572
|
this.prevActiveClass = activeClass;
|
|
2537
2573
|
}
|
|
2538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2539
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
2574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2575
|
+
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
2576
|
}
|
|
2541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLink, decorators: [{
|
|
2542
2578
|
type: Directive,
|
|
2543
2579
|
args: [{
|
|
2544
2580
|
selector: "a[realLink]",
|
|
@@ -2605,10 +2641,10 @@ class RealLinkActive {
|
|
|
2605
2641
|
}
|
|
2606
2642
|
this.element.classList.toggle(className, this.isActive());
|
|
2607
2643
|
}
|
|
2608
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2609
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
2644
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLinkActive, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2645
|
+
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
2646
|
}
|
|
2611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: RealLinkActive, decorators: [{
|
|
2612
2648
|
type: Directive,
|
|
2613
2649
|
args: [{ selector: "[realLinkActive]" }]
|
|
2614
2650
|
}], 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 }] }] } });
|