@symbiote-native/navigation 1.0.0 → 2.0.0
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/README.md +159 -0
- package/package.json +12 -11
- package/build-ngc/angular/drawer.d.ts +0 -79
- package/build-ngc/angular/drawer.js +0 -475
- package/build-ngc/angular/drawer.js.map +0 -1
- package/build-ngc/angular/stack.d.ts +0 -58
- package/build-ngc/angular/stack.js +0 -402
- package/build-ngc/angular/stack.js.map +0 -1
- package/build-ngc/angular/tabs.d.ts +0 -45
- package/build-ngc/angular/tabs.js +0 -231
- package/build-ngc/angular/tabs.js.map +0 -1
- package/build-ngc/core/drawer-options.d.ts +0 -64
- package/build-ngc/core/drawer-options.js +0 -201
- package/build-ngc/core/drawer-options.js.map +0 -1
- package/build-ngc/core/drawer-router-state.d.ts +0 -21
- package/build-ngc/core/drawer-router-state.js +0 -41
- package/build-ngc/core/drawer-router-state.js.map +0 -1
- package/build-ngc/core/href.d.ts +0 -16
- package/build-ngc/core/href.js +0 -55
- package/build-ngc/core/href.js.map +0 -1
- package/build-ngc/core/linking-config.d.ts +0 -13
- package/build-ngc/core/linking-config.js +0 -172
- package/build-ngc/core/linking-config.js.map +0 -1
- package/build-ngc/core/navigation-events.d.ts +0 -16
- package/build-ngc/core/navigation-events.js +0 -58
- package/build-ngc/core/navigation-events.js.map +0 -1
- package/build-ngc/core/navigator-handles.d.ts +0 -30
- package/build-ngc/core/navigator-handles.js +0 -16
- package/build-ngc/core/navigator-handles.js.map +0 -1
- package/build-ngc/core/navigator-state.d.ts +0 -36
- package/build-ngc/core/navigator-state.js +0 -82
- package/build-ngc/core/navigator-state.js.map +0 -1
- package/build-ngc/core/search-params.d.ts +0 -9
- package/build-ngc/core/search-params.js +0 -60
- package/build-ngc/core/search-params.js.map +0 -1
- package/build-ngc/core/state-persistence.d.ts +0 -3
- package/build-ngc/core/state-persistence.js +0 -24
- package/build-ngc/core/state-persistence.js.map +0 -1
- package/build-ngc/core/tab-router-state.d.ts +0 -19
- package/build-ngc/core/tab-router-state.js +0 -52
- package/build-ngc/core/tab-router-state.js.map +0 -1
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
// Stack, the Angular lifecycle half. The route-stack transitions (navigator-state) and the
|
|
2
|
-
// options/props folds (screen-options, render-stack) live in @symbiote-native/navigation core,
|
|
3
|
-
// shared verbatim with the React/Vue adapters; here Angular supplies the lifecycle — a signal for
|
|
4
|
-
// the pushed-route stack, a per-instance counter for route-key generation, push/pop/replace/... as
|
|
5
|
-
// plain public methods directly on the class (no `useImperativeHandle`/forwardRef equivalent
|
|
6
|
-
// needed: an Angular component instance IS its own "ref", same shape as MatDrawer.open(), reached
|
|
7
|
-
// via a template reference variable, e.g. `<Stack #nav>` then `nav.push(...)`; `Stack implements
|
|
8
|
-
// INavigatorHandle` so the instance itself is what NavigationScopeDirective hands to
|
|
9
|
-
// NavigationContextService — the DI scope every mounted screen reads its navigation/route from via
|
|
10
|
-
// injectStackNavigation()/injectRoute(), never a component input) - plus the descriptor bridge for
|
|
11
|
-
// the header config leaf via the raw
|
|
12
|
-
// native-view element tags below. Pushing/popping a route is an ordinary child render/removal:
|
|
13
|
-
// RNSScreenStack diffs its RNSScreen children natively, so no imperative native command is needed
|
|
14
|
-
// here at all. Neither this nor ScreenDirective imports react-native-screens' own React components
|
|
15
|
-
// (hooks, crashes a non-React adapter); the native views are driven directly through the
|
|
16
|
-
// ViewConfig ../register registers. See CLAUDE.md <third_party_rn_packages_are_react_only>.
|
|
17
|
-
//
|
|
18
|
-
// RAW NATIVE TAGS + NO_ERRORS_SCHEMA: RNSScreenStack/RNSScreen/RNSModalScreen/
|
|
19
|
-
// RNSScreenContentWrapper/RNSScreenStackHeaderConfig/RNSScreenStackHeaderSubview/RNSSearchBar are
|
|
20
|
-
// react-native-screens' native Fabric views, not Angular components — core's render-stack.ts
|
|
21
|
-
// deliberately hands back PLAIN PROPS OBJECTS for the leaves this adapter builds itself with real
|
|
22
|
-
// framework children (see its header comment), the same split react/stack.ts's `createElement`
|
|
23
|
-
// calls implement. A non-dashed raw tag name only satisfies Angular's DOM element schema check
|
|
24
|
-
// under `NO_ERRORS_SCHEMA` (`CUSTOM_ELEMENTS_SCHEMA` only relaxes tags containing a "-", confirmed
|
|
25
|
-
// against `.vendors/angular/packages/compiler/src/schema/dom_element_schema_registry.ts`'s
|
|
26
|
-
// `hasElement`) — every other Angular component in this codebase only ever names dashed
|
|
27
|
-
// `symbiote-*` primitives or real `@Component` selectors, so this is the first legitimate need for
|
|
28
|
-
// the looser schema in this codebase; every prop still routes through the real, declared
|
|
29
|
-
// `[symbioteHostProps]` input (primitives/shared.ts, `@symbiote-native/angular`), never a bare
|
|
30
|
-
// unknown-property binding.
|
|
31
|
-
//
|
|
32
|
-
// RESOLVED: `Stack` itself (like `Tab`/`Drawer`) is a composed Angular `@Component` used as a
|
|
33
|
-
// plain `<Stack>` tag by consuming app code. `adapters/angular/src/renderer.ts`'s
|
|
34
|
-
// `ANCHOR_HOST_COMPONENTS` allowlist lists `'Stack'`/`'Tab'`/`'Drawer'` — plus every
|
|
35
|
-
// `.examples/angular` navigation-demo screen/component that hits the same "composed @Component
|
|
36
|
-
// used as a plain tag" case, mounted either statically or via `NgComponentOutlet` — so a real
|
|
37
|
-
// device build paints correctly (unlisted, `createElement('Stack')` falls through to a real
|
|
38
|
-
// `createNode` call and RN paints its own "Unimplemented component" fallback instead) — the same
|
|
39
|
-
// allowlist `@symbiote-native/slider`'s `Slider` needed. Every raw react-native-screens tag above
|
|
40
|
-
// is correctly EXEMPT from that allowlist (they must fall through to a real `createNode` to paint
|
|
41
|
-
// at all).
|
|
42
|
-
import { ChangeDetectionStrategy, Component, ContentChildren, Input, NO_ERRORS_SCHEMA, QueryList, signal, } from '@angular/core';
|
|
43
|
-
import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
44
|
-
import { SymbioteHostPropsDirective } from '@symbiote-native/angular';
|
|
45
|
-
import { Platform, dlog } from '@symbiote-native/engine';
|
|
46
|
-
import { NAVIGATION_EVENT_BLUR, NAVIGATION_EVENT_FOCUS, NAVIGATION_EVENT_STATE, RNS_MODAL_SCREEN_VIEW_NAME, SCREEN_ON_APPEAR, SCREEN_ON_DISAPPEAR, SCREEN_ON_DISMISSED, SCREEN_ON_HEADER_BACK_BUTTON_CLICKED, STACK_ON_FINISH_TRANSITIONING, buildSearchBarPassthrough, createInitialNavigatorState, createNavigationEmitter, navigatorReducer, resolveHeaderInModalStackStyle, resolveScreenRenderPlan, resolveStackProps, } from '../core';
|
|
47
|
-
import { NavigationScopeDirective } from './navigation-scope.directive';
|
|
48
|
-
import { SearchBarRefDirective } from './search-bar-ref.directive';
|
|
49
|
-
import { ScreenDirective } from './screen.directive';
|
|
50
|
-
import * as i0 from "@angular/core";
|
|
51
|
-
// backTitleVisible defaults to `true` on both platforms per the codegen spec's own default — no
|
|
52
|
-
// ios/android divergence in v1 scope (mirrors react/stack.ts's own constant exactly).
|
|
53
|
-
const NAVIGATOR_PLATFORM = { defaultHeaderBackTitleVisible: true };
|
|
54
|
-
let stackInstanceCounter = 0;
|
|
55
|
-
export class Stack {
|
|
56
|
-
screenChildren;
|
|
57
|
-
initialRouteName;
|
|
58
|
-
screenOptions;
|
|
59
|
-
headerSubviewProps = { type: 'searchBar' };
|
|
60
|
-
routeIdPrefix = `stack-${(stackInstanceCounter += 1)}`;
|
|
61
|
-
// Keyed by name -> the LIVE ScreenDirective instance, not a snapshot copy of its fields:
|
|
62
|
-
// @ContentChildren's `changes` Observable only fires on a STRUCTURAL change to the query
|
|
63
|
-
// results (screens added/removed/reordered), never when an already-matched instance's own
|
|
64
|
-
// `[options]`/`[component]` binding is merely reassigned a new value — a snapshot copy taken at
|
|
65
|
-
// rebuild time would go stale the instant an app changes e.g. `[options]` on an existing
|
|
66
|
-
// `<ng-template symbioteScreen>` without also adding/removing one. Reading straight off the
|
|
67
|
-
// directive instance means Angular's own ordinary Input binding keeps every field live for free.
|
|
68
|
-
registry = new Map();
|
|
69
|
-
emitters = new Map();
|
|
70
|
-
// Keyed by `${route.key}:${index}`, cleared on every dispatch: the ~7 template-bound
|
|
71
|
-
// accessors below (outerScreenIsModal/isInModal/screenHostProps/...) all resolve the SAME
|
|
72
|
-
// route+index through planFor per change-detection cycle, so caching here turns ~7 runs of
|
|
73
|
-
// the 14-step resolveScreenRenderPlan chain into 1 per actual state change.
|
|
74
|
-
planCache = new Map();
|
|
75
|
-
routeSequence = 0;
|
|
76
|
-
screenChildrenSubscription;
|
|
77
|
-
stateSignal = signal(undefined, /* @ts-ignore */
|
|
78
|
-
...(ngDevMode ? [{ debugName: "stateSignal" }] : /* istanbul ignore next */ []));
|
|
79
|
-
state = this.stateSignal.asReadonly();
|
|
80
|
-
push = (name, params) => this.dispatch({ type: 'push', route: this.createRoute(name, params) });
|
|
81
|
-
pop = (count) => this.dispatch({ type: 'pop', count });
|
|
82
|
-
popToTop = () => this.dispatch({ type: 'popToTop' });
|
|
83
|
-
popTo = (key) => this.dispatch({ type: 'popTo', key });
|
|
84
|
-
replace = (name, params) => this.dispatch({ type: 'replace', route: this.createRoute(name, params) });
|
|
85
|
-
setParams = (params, key) => this.dispatch({ type: 'setParams', key, params });
|
|
86
|
-
reset = (nextState) => this.dispatch({ type: 'reset', state: nextState });
|
|
87
|
-
canGoBack = () => (this.stateSignal()?.routes.length ?? 0) > 1;
|
|
88
|
-
ngAfterContentInit() {
|
|
89
|
-
this.rebuildRegistry();
|
|
90
|
-
this.initializeState();
|
|
91
|
-
this.screenChildrenSubscription = this.screenChildren.changes.subscribe(() => {
|
|
92
|
-
this.rebuildRegistry();
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
ngOnDestroy() {
|
|
96
|
-
this.screenChildrenSubscription?.unsubscribe();
|
|
97
|
-
}
|
|
98
|
-
rebuildRegistry() {
|
|
99
|
-
this.registry.clear();
|
|
100
|
-
for (const screen of this.screenChildren) {
|
|
101
|
-
this.registry.set(screen.name, screen);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
initializeState() {
|
|
105
|
-
if (this.stateSignal() !== undefined)
|
|
106
|
-
return;
|
|
107
|
-
const initialRouteName = this.initialRouteName ?? this.registry.keys().next().value;
|
|
108
|
-
if (initialRouteName === undefined) {
|
|
109
|
-
dlog('Stack: no <ng-template symbioteScreen> children registered');
|
|
110
|
-
this.stateSignal.set(createInitialNavigatorState({ key: this.routeIdPrefix, name: '', params: undefined }));
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.stateSignal.set(createInitialNavigatorState(this.createRoute(initialRouteName, this.registry.get(initialRouteName)?.initialParams)));
|
|
114
|
-
}
|
|
115
|
-
createRoute(name, params) {
|
|
116
|
-
this.routeSequence += 1;
|
|
117
|
-
return { key: `${this.routeIdPrefix}-${name}-${this.routeSequence}`, name, params };
|
|
118
|
-
}
|
|
119
|
-
dispatch(action) {
|
|
120
|
-
const current = this.stateSignal();
|
|
121
|
-
if (current === undefined)
|
|
122
|
-
return;
|
|
123
|
-
const next = navigatorReducer(current, action);
|
|
124
|
-
this.planCache.clear();
|
|
125
|
-
this.stateSignal.set(next);
|
|
126
|
-
const liveRouteKeys = new Set(next.routes.map(route => route.key));
|
|
127
|
-
for (const route of next.routes) {
|
|
128
|
-
this.emitterFor(route.key).emit(NAVIGATION_EVENT_STATE, next);
|
|
129
|
-
}
|
|
130
|
-
for (const routeKey of this.emitters.keys()) {
|
|
131
|
-
if (!liveRouteKeys.has(routeKey))
|
|
132
|
-
this.emitters.delete(routeKey);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
emitterFor(routeKey) {
|
|
136
|
-
let emitter = this.emitters.get(routeKey);
|
|
137
|
-
if (!emitter) {
|
|
138
|
-
emitter = createNavigationEmitter();
|
|
139
|
-
this.emitters.set(routeKey, emitter);
|
|
140
|
-
}
|
|
141
|
-
return emitter;
|
|
142
|
-
}
|
|
143
|
-
mergedOptionsFor(route) {
|
|
144
|
-
const entry = this.registry.get(route.name);
|
|
145
|
-
const optionsArgs = { route, navigation: this };
|
|
146
|
-
const own = entry === undefined
|
|
147
|
-
? undefined
|
|
148
|
-
: typeof entry.options === 'function'
|
|
149
|
-
? entry.options(optionsArgs)
|
|
150
|
-
: entry.options;
|
|
151
|
-
return { ...this.screenOptions, ...own };
|
|
152
|
-
}
|
|
153
|
-
componentFor(route) {
|
|
154
|
-
return this.registry.get(route.name)?.component ?? null;
|
|
155
|
-
}
|
|
156
|
-
stackHostProps() {
|
|
157
|
-
return resolveStackProps({
|
|
158
|
-
passthrough: {
|
|
159
|
-
[STACK_ON_FINISH_TRANSITIONING]: () => dlog(`Stack: onFinishTransitioning at t=${Date.now()}`),
|
|
160
|
-
},
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
// Threads a route's merged options through the shared ~14-call resolver sequence (see
|
|
164
|
-
// core/render-stack.ts's resolveScreenRenderPlan) every per-route template method below picks
|
|
165
|
-
// its one field from. Angular has no per-route closure scope the way React's `.map`/Vue's render
|
|
166
|
-
// loop do, so each template-bound method calls this per change-detection cycle — cached below
|
|
167
|
-
// by `${route.key}:${index}` so the ~7 accessors that share a route+index resolve the plan once
|
|
168
|
-
// per actual state change instead of once per template read; `dispatch` clears the cache before
|
|
169
|
-
// recomputing so no stale entry survives a state transition. Screen appear/disappear stay
|
|
170
|
-
// adapter-owned (close over `this.dispatch`/`this.emitterFor`); the search bar passthrough
|
|
171
|
-
// carries no dlog wrapper, unlike React/Vue (see this file's own review notes) — its imperative
|
|
172
|
-
// ref rides a separate directive (searchBarRef/[symbioteSearchBarRef]), not this passthrough map.
|
|
173
|
-
planFor(route, index) {
|
|
174
|
-
const cacheKey = `${route.key}:${index}`;
|
|
175
|
-
const cached = this.planCache.get(cacheKey);
|
|
176
|
-
if (cached)
|
|
177
|
-
return cached;
|
|
178
|
-
const mergedOptions = this.mergedOptionsFor(route);
|
|
179
|
-
const searchBarOptions = mergedOptions.headerSearchBarOptions;
|
|
180
|
-
const plan = resolveScreenRenderPlan({
|
|
181
|
-
screenId: route.key,
|
|
182
|
-
index,
|
|
183
|
-
routeCount: this.stateSignal()?.routes.length ?? 1,
|
|
184
|
-
options: mergedOptions,
|
|
185
|
-
platform: NAVIGATOR_PLATFORM,
|
|
186
|
-
isAndroid: Platform.OS === 'android',
|
|
187
|
-
screenPassthrough: {
|
|
188
|
-
[SCREEN_ON_DISMISSED]: () => this.dispatch({ type: 'pop', count: 1 }),
|
|
189
|
-
[SCREEN_ON_HEADER_BACK_BUTTON_CLICKED]: () => this.dispatch({ type: 'pop', count: 1 }),
|
|
190
|
-
[SCREEN_ON_APPEAR]: () => {
|
|
191
|
-
dlog(`Stack: route "${route.name}" appeared (focus)`);
|
|
192
|
-
this.emitterFor(route.key).emit(NAVIGATION_EVENT_FOCUS);
|
|
193
|
-
},
|
|
194
|
-
[SCREEN_ON_DISAPPEAR]: () => {
|
|
195
|
-
dlog(`Stack: route "${route.name}" disappeared (blur)`);
|
|
196
|
-
this.emitterFor(route.key).emit(NAVIGATION_EVENT_BLUR);
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
searchBarPassthrough: searchBarOptions
|
|
200
|
-
? buildSearchBarPassthrough(searchBarOptions)
|
|
201
|
-
: undefined,
|
|
202
|
-
});
|
|
203
|
-
this.planCache.set(cacheKey, plan);
|
|
204
|
-
return plan;
|
|
205
|
-
}
|
|
206
|
-
outerScreenIsModal(route, index) {
|
|
207
|
-
return this.planFor(route, index).screenViewName === RNS_MODAL_SCREEN_VIEW_NAME;
|
|
208
|
-
}
|
|
209
|
-
isInModal(route, index) {
|
|
210
|
-
return this.planFor(route, index).inModal;
|
|
211
|
-
}
|
|
212
|
-
screenHostProps(route, index) {
|
|
213
|
-
return this.planFor(route, index).screenProps;
|
|
214
|
-
}
|
|
215
|
-
innerStackProps() {
|
|
216
|
-
return { style: resolveHeaderInModalStackStyle() };
|
|
217
|
-
}
|
|
218
|
-
innerScreenProps(route, index) {
|
|
219
|
-
const plan = this.planFor(route, index);
|
|
220
|
-
return { style: plan.innerScreenStyle, activityState: plan.activityState };
|
|
221
|
-
}
|
|
222
|
-
contentWrapperProps(route, index) {
|
|
223
|
-
return this.planFor(route, index).contentWrapperProps;
|
|
224
|
-
}
|
|
225
|
-
headerConfigProps(route, index) {
|
|
226
|
-
return this.planFor(route, index).headerConfig.props;
|
|
227
|
-
}
|
|
228
|
-
hasSearchBar(route) {
|
|
229
|
-
return this.mergedOptionsFor(route).headerSearchBarOptions !== undefined;
|
|
230
|
-
}
|
|
231
|
-
searchBarRef(route) {
|
|
232
|
-
return this.mergedOptionsFor(route).headerSearchBarOptions?.ref;
|
|
233
|
-
}
|
|
234
|
-
searchBarProps(route, index) {
|
|
235
|
-
return this.planFor(route, index).searchBarProps ?? {};
|
|
236
|
-
}
|
|
237
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stack, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
238
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Stack, isStandalone: true, selector: "Stack", inputs: { initialRouteName: "initialRouteName", screenOptions: "screenOptions" }, queries: [{ propertyName: "screenChildren", predicate: ScreenDirective }], ngImport: i0, template: `
|
|
239
|
-
@if (state(); as currentState) {
|
|
240
|
-
<RNSScreenStack [symbioteHostProps]="stackHostProps()">
|
|
241
|
-
@for (route of currentState.routes; track route.key; let idx = $index) {
|
|
242
|
-
<ng-container
|
|
243
|
-
[ngTemplateOutlet]="screenTpl"
|
|
244
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: idx }"
|
|
245
|
-
/>
|
|
246
|
-
}
|
|
247
|
-
</RNSScreenStack>
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
<ng-template #screenTpl let-route let-index="index">
|
|
251
|
-
@if (outerScreenIsModal(route, index)) {
|
|
252
|
-
<RNSModalScreen [symbioteHostProps]="screenHostProps(route, index)">
|
|
253
|
-
<ng-container
|
|
254
|
-
[ngTemplateOutlet]="innerTpl"
|
|
255
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
256
|
-
/>
|
|
257
|
-
</RNSModalScreen>
|
|
258
|
-
} @else {
|
|
259
|
-
<RNSScreen [symbioteHostProps]="screenHostProps(route, index)">
|
|
260
|
-
<ng-container
|
|
261
|
-
[ngTemplateOutlet]="innerTpl"
|
|
262
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
263
|
-
/>
|
|
264
|
-
</RNSScreen>
|
|
265
|
-
}
|
|
266
|
-
</ng-template>
|
|
267
|
-
|
|
268
|
-
<ng-template #innerTpl let-route let-index="index">
|
|
269
|
-
@if (isInModal(route, index)) {
|
|
270
|
-
<RNSScreenStack [symbioteHostProps]="innerStackProps()">
|
|
271
|
-
<RNSScreen [symbioteHostProps]="innerScreenProps(route, index)">
|
|
272
|
-
<ng-container
|
|
273
|
-
[ngTemplateOutlet]="headerAndContentTpl"
|
|
274
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
275
|
-
/>
|
|
276
|
-
</RNSScreen>
|
|
277
|
-
</RNSScreenStack>
|
|
278
|
-
} @else {
|
|
279
|
-
<ng-container
|
|
280
|
-
[ngTemplateOutlet]="headerAndContentTpl"
|
|
281
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
282
|
-
/>
|
|
283
|
-
}
|
|
284
|
-
</ng-template>
|
|
285
|
-
|
|
286
|
-
<ng-template #headerAndContentTpl let-route let-index="index">
|
|
287
|
-
<RNSScreenStackHeaderConfig [symbioteHostProps]="headerConfigProps(route, index)">
|
|
288
|
-
@if (hasSearchBar(route)) {
|
|
289
|
-
<RNSScreenStackHeaderSubview [symbioteHostProps]="headerSubviewProps">
|
|
290
|
-
<RNSSearchBar
|
|
291
|
-
[symbioteSearchBarRef]="searchBarRef(route)"
|
|
292
|
-
[symbioteHostProps]="searchBarProps(route, index)"
|
|
293
|
-
/>
|
|
294
|
-
</RNSScreenStackHeaderSubview>
|
|
295
|
-
}
|
|
296
|
-
</RNSScreenStackHeaderConfig>
|
|
297
|
-
<RNSScreenContentWrapper [symbioteHostProps]="contentWrapperProps(route, index)">
|
|
298
|
-
<ng-container
|
|
299
|
-
[symbioteNavigationScope]="route"
|
|
300
|
-
[navigation]="this"
|
|
301
|
-
[emitter]="emitterFor(route.key)"
|
|
302
|
-
>
|
|
303
|
-
<ng-container *ngComponentOutlet="componentFor(route)" />
|
|
304
|
-
</ng-container>
|
|
305
|
-
</RNSScreenContentWrapper>
|
|
306
|
-
</ng-template>
|
|
307
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NavigationScopeDirective, selector: "[symbioteNavigationScope]", inputs: ["symbioteNavigationScope", "navigation", "emitter"] }, { kind: "directive", type: SearchBarRefDirective, selector: "[symbioteSearchBarRef]", inputs: ["symbioteSearchBarRef"] }, { kind: "directive", type: SymbioteHostPropsDirective, selector: "[symbioteHostProps]", inputs: ["symbioteHostProps"], exportAs: ["symbioteHost"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
308
|
-
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stack, decorators: [{
|
|
310
|
-
type: Component,
|
|
311
|
-
args: [{
|
|
312
|
-
selector: 'Stack',
|
|
313
|
-
standalone: true,
|
|
314
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
315
|
-
imports: [
|
|
316
|
-
NgTemplateOutlet,
|
|
317
|
-
NgComponentOutlet,
|
|
318
|
-
NavigationScopeDirective,
|
|
319
|
-
SearchBarRefDirective,
|
|
320
|
-
SymbioteHostPropsDirective,
|
|
321
|
-
],
|
|
322
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
323
|
-
template: `
|
|
324
|
-
@if (state(); as currentState) {
|
|
325
|
-
<RNSScreenStack [symbioteHostProps]="stackHostProps()">
|
|
326
|
-
@for (route of currentState.routes; track route.key; let idx = $index) {
|
|
327
|
-
<ng-container
|
|
328
|
-
[ngTemplateOutlet]="screenTpl"
|
|
329
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: idx }"
|
|
330
|
-
/>
|
|
331
|
-
}
|
|
332
|
-
</RNSScreenStack>
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
<ng-template #screenTpl let-route let-index="index">
|
|
336
|
-
@if (outerScreenIsModal(route, index)) {
|
|
337
|
-
<RNSModalScreen [symbioteHostProps]="screenHostProps(route, index)">
|
|
338
|
-
<ng-container
|
|
339
|
-
[ngTemplateOutlet]="innerTpl"
|
|
340
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
341
|
-
/>
|
|
342
|
-
</RNSModalScreen>
|
|
343
|
-
} @else {
|
|
344
|
-
<RNSScreen [symbioteHostProps]="screenHostProps(route, index)">
|
|
345
|
-
<ng-container
|
|
346
|
-
[ngTemplateOutlet]="innerTpl"
|
|
347
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
348
|
-
/>
|
|
349
|
-
</RNSScreen>
|
|
350
|
-
}
|
|
351
|
-
</ng-template>
|
|
352
|
-
|
|
353
|
-
<ng-template #innerTpl let-route let-index="index">
|
|
354
|
-
@if (isInModal(route, index)) {
|
|
355
|
-
<RNSScreenStack [symbioteHostProps]="innerStackProps()">
|
|
356
|
-
<RNSScreen [symbioteHostProps]="innerScreenProps(route, index)">
|
|
357
|
-
<ng-container
|
|
358
|
-
[ngTemplateOutlet]="headerAndContentTpl"
|
|
359
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
360
|
-
/>
|
|
361
|
-
</RNSScreen>
|
|
362
|
-
</RNSScreenStack>
|
|
363
|
-
} @else {
|
|
364
|
-
<ng-container
|
|
365
|
-
[ngTemplateOutlet]="headerAndContentTpl"
|
|
366
|
-
[ngTemplateOutletContext]="{ $implicit: route, index: index }"
|
|
367
|
-
/>
|
|
368
|
-
}
|
|
369
|
-
</ng-template>
|
|
370
|
-
|
|
371
|
-
<ng-template #headerAndContentTpl let-route let-index="index">
|
|
372
|
-
<RNSScreenStackHeaderConfig [symbioteHostProps]="headerConfigProps(route, index)">
|
|
373
|
-
@if (hasSearchBar(route)) {
|
|
374
|
-
<RNSScreenStackHeaderSubview [symbioteHostProps]="headerSubviewProps">
|
|
375
|
-
<RNSSearchBar
|
|
376
|
-
[symbioteSearchBarRef]="searchBarRef(route)"
|
|
377
|
-
[symbioteHostProps]="searchBarProps(route, index)"
|
|
378
|
-
/>
|
|
379
|
-
</RNSScreenStackHeaderSubview>
|
|
380
|
-
}
|
|
381
|
-
</RNSScreenStackHeaderConfig>
|
|
382
|
-
<RNSScreenContentWrapper [symbioteHostProps]="contentWrapperProps(route, index)">
|
|
383
|
-
<ng-container
|
|
384
|
-
[symbioteNavigationScope]="route"
|
|
385
|
-
[navigation]="this"
|
|
386
|
-
[emitter]="emitterFor(route.key)"
|
|
387
|
-
>
|
|
388
|
-
<ng-container *ngComponentOutlet="componentFor(route)" />
|
|
389
|
-
</ng-container>
|
|
390
|
-
</RNSScreenContentWrapper>
|
|
391
|
-
</ng-template>
|
|
392
|
-
`,
|
|
393
|
-
}]
|
|
394
|
-
}], propDecorators: { screenChildren: [{
|
|
395
|
-
type: ContentChildren,
|
|
396
|
-
args: [ScreenDirective]
|
|
397
|
-
}], initialRouteName: [{
|
|
398
|
-
type: Input
|
|
399
|
-
}], screenOptions: [{
|
|
400
|
-
type: Input
|
|
401
|
-
}] } });
|
|
402
|
-
//# sourceMappingURL=stack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/angular/stack.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,+FAA+F;AAC/F,kGAAkG;AAClG,mGAAmG;AACnG,6FAA6F;AAC7F,kGAAkG;AAClG,iGAAiG;AACjG,qFAAqF;AACrF,mGAAmG;AACnG,mGAAmG;AACnG,qCAAqC;AACrC,+FAA+F;AAC/F,kGAAkG;AAClG,mGAAmG;AACnG,yFAAyF;AACzF,4FAA4F;AAC5F,EAAE;AACF,+EAA+E;AAC/E,kGAAkG;AAClG,6FAA6F;AAC7F,kGAAkG;AAClG,+FAA+F;AAC/F,+FAA+F;AAC/F,mGAAmG;AACnG,2FAA2F;AAC3F,wFAAwF;AACxF,mGAAmG;AACnG,yFAAyF;AACzF,+FAA+F;AAC/F,4BAA4B;AAC5B,EAAE;AACF,8FAA8F;AAC9F,kFAAkF;AAClF,qFAAqF;AACrF,+FAA+F;AAC/F,8FAA8F;AAC9F,4FAA4F;AAC5F,iGAAiG;AACjG,kGAAkG;AAClG,kGAAkG;AAClG,WAAW;AAEX,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,MAAM,GAIP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,oCAAoC,EACpC,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,8BAA8B,EAC9B,uBAAuB,E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C,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,cAAc,IAAI,EAAE,CAAC;IACzD,CAAC;uGAtNU,KAAK;2FAAL,KAAK,kLACC,eAAe,6BAxEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqET,4DA5EC,gBAAgB,oJAChB,iBAAiB,yRACjB,wBAAwB,oIACxB,qBAAqB,qGACrB,0BAA0B;;2FA0EjB,KAAK;kBAnFjB,SAAS;mBAAC;oBACT,QAAQ,EAAE,OAAO;oBACjB,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,OAAO,EAAE;wBACP,gBAAgB;wBAChB,iBAAiB;wBACjB,wBAAwB;wBACxB,qBAAqB;wBACrB,0BAA0B;qBAC3B;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqET;iBACF;;sBAEE,eAAe;uBAAC,eAAe;;sBAE/B,KAAK;;sBACL,KAAK"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type AfterContentInit, type OnDestroy, type Type } from '@angular/core';
|
|
2
|
-
import type { IDescriptor } from '@symbiote-native/components';
|
|
3
|
-
import type { INavigationEmitter, IRoute, ITabNavigatorHandle, ITabOptions } from '../core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type { ITabNavigatorHandle } from '../core';
|
|
6
|
-
export declare class Tab implements AfterContentInit, OnDestroy, ITabNavigatorHandle {
|
|
7
|
-
private readonly tabScreenChildren;
|
|
8
|
-
initialRouteName?: string;
|
|
9
|
-
screenOptions?: ITabOptions;
|
|
10
|
-
readonly rootStyle: {
|
|
11
|
-
flex: number;
|
|
12
|
-
};
|
|
13
|
-
readonly contentStyle: {
|
|
14
|
-
flex: number;
|
|
15
|
-
};
|
|
16
|
-
private readonly routeIdPrefix;
|
|
17
|
-
private readonly registry;
|
|
18
|
-
private tabScreenChildrenSubscription;
|
|
19
|
-
private readonly stateSignal;
|
|
20
|
-
readonly state: import("@angular/core").Signal<Readonly<{
|
|
21
|
-
routes: readonly Readonly<{
|
|
22
|
-
key: string;
|
|
23
|
-
name: string;
|
|
24
|
-
params: unknown;
|
|
25
|
-
}>[];
|
|
26
|
-
index: number;
|
|
27
|
-
}> | undefined>;
|
|
28
|
-
private currentEmitterKey;
|
|
29
|
-
private currentEmitter;
|
|
30
|
-
readonly jumpTo: (name: string, params?: unknown) => void;
|
|
31
|
-
readonly setParams: (params: unknown, key: string) => void;
|
|
32
|
-
ngAfterContentInit(): void;
|
|
33
|
-
ngOnDestroy(): void;
|
|
34
|
-
private rebuildRegistry;
|
|
35
|
-
private routesFromRegistry;
|
|
36
|
-
private initializeState;
|
|
37
|
-
private dispatch;
|
|
38
|
-
private resolveTabOptions;
|
|
39
|
-
focusedRoute(): IRoute<unknown> | undefined;
|
|
40
|
-
componentForRoute(route: IRoute<unknown>): Type<unknown> | null;
|
|
41
|
-
focusedRouteEmitter(): INavigationEmitter;
|
|
42
|
-
tabBarDescriptor(): IDescriptor;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Tab, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "Tab", never, { "initialRouteName": { "alias": "initialRouteName"; "required": false; }; "screenOptions": { "alias": "screenOptions"; "required": false; }; }, {}, ["tabScreenChildren"], never, true, never>;
|
|
45
|
-
}
|