@symbiote-native/navigation 1.0.0 → 2.0.1
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 +14 -12
- package/build/angular/drawer/index.d.ts +0 -76
- package/build/angular/drawer/index.js +0 -508
- package/build/angular/drawer-screen.directive.d.ts +0 -14
- package/build/angular/drawer-screen.directive.js +0 -87
- package/build/angular/index.d.ts +0 -23
- package/build/angular/index.js +0 -22
- package/build/angular/injectors/index.d.ts +0 -13
- package/build/angular/injectors/index.js +0 -8
- package/build/angular/injectors/inject-drawer-navigation.d.ts +0 -4
- package/build/angular/injectors/inject-drawer-navigation.js +0 -12
- package/build/angular/injectors/inject-focus-effect.d.ts +0 -2
- package/build/angular/injectors/inject-focus-effect.js +0 -29
- package/build/angular/injectors/inject-is-focused.d.ts +0 -2
- package/build/angular/injectors/inject-is-focused.js +0 -20
- package/build/angular/injectors/inject-navigation-state.d.ts +0 -3
- package/build/angular/injectors/inject-navigation-state.js +0 -35
- package/build/angular/injectors/inject-navigation.d.ts +0 -7
- package/build/angular/injectors/inject-navigation.js +0 -16
- package/build/angular/injectors/inject-route.d.ts +0 -3
- package/build/angular/injectors/inject-route.js +0 -20
- package/build/angular/injectors/inject-stack-navigation.d.ts +0 -4
- package/build/angular/injectors/inject-stack-navigation.js +0 -15
- package/build/angular/injectors/inject-tab-navigation.d.ts +0 -4
- package/build/angular/injectors/inject-tab-navigation.js +0 -11
- package/build/angular/linking.d.ts +0 -3
- package/build/angular/linking.js +0 -43
- package/build/angular/navigation-context.service.d.ts +0 -13
- package/build/angular/navigation-context.service.js +0 -105
- package/build/angular/navigation-scope.directive.d.ts +0 -10
- package/build/angular/navigation-scope.directive.js +0 -90
- package/build/angular/screen.directive.d.ts +0 -22
- package/build/angular/screen.directive.js +0 -90
- package/build/angular/search-bar-ref.directive.d.ts +0 -10
- package/build/angular/search-bar-ref.directive.js +0 -88
- package/build/angular/stack/index.d.ts +0 -55
- package/build/angular/stack/index.js +0 -386
- package/build/angular/tab-screen.directive.d.ts +0 -14
- package/build/angular/tab-screen.directive.js +0 -87
- package/build/angular/tabs/index.d.ts +0 -42
- package/build/angular/tabs/index.js +0 -263
- package/build/core/constants.d.ts +0 -27
- package/build/core/constants.js +0 -61
- package/build/core/drawer-options/index.d.ts +0 -64
- package/build/core/drawer-options/index.js +0 -200
- package/build/core/drawer-router-state/index.d.ts +0 -21
- package/build/core/drawer-router-state/index.js +0 -40
- package/build/core/guards.d.ts +0 -2
- package/build/core/guards.js +0 -22
- package/build/core/header-bar-buttons.d.ts +0 -9
- package/build/core/header-bar-buttons.js +0 -163
- package/build/core/index.d.ts +0 -29
- package/build/core/index.js +0 -32
- package/build/core/linking-config/index.d.ts +0 -13
- package/build/core/linking-config/index.js +0 -171
- package/build/core/navigation-events/index.d.ts +0 -16
- package/build/core/navigation-events/index.js +0 -57
- package/build/core/navigator-handles/index.d.ts +0 -30
- package/build/core/navigator-handles/index.js +0 -15
- package/build/core/navigator-props.d.ts +0 -216
- package/build/core/navigator-props.js +0 -7
- package/build/core/navigator-state/index.d.ts +0 -36
- package/build/core/navigator-state/index.js +0 -81
- package/build/core/render-drawer.d.ts +0 -13
- package/build/core/render-drawer.js +0 -88
- package/build/core/render-stack.d.ts +0 -35
- package/build/core/render-stack.js +0 -294
- package/build/core/render-tabs.d.ts +0 -20
- package/build/core/render-tabs.js +0 -97
- package/build/core/screen-options.d.ts +0 -4
- package/build/core/screen-options.js +0 -133
- package/build/core/search-bar-commands.d.ts +0 -10
- package/build/core/search-bar-commands.js +0 -42
- package/build/core/state-persistence/index.d.ts +0 -3
- package/build/core/state-persistence/index.js +0 -23
- package/build/core/tab-options.d.ts +0 -13
- package/build/core/tab-options.js +0 -10
- package/build/core/tab-router-state/index.d.ts +0 -19
- package/build/core/tab-router-state/index.js +0 -51
- package/build/react/collect-registry.d.ts +0 -4
- package/build/react/collect-registry.js +0 -15
- package/build/react/drawer/index.d.ts +0 -29
- package/build/react/drawer/index.js +0 -277
- package/build/react/drawer-screen.d.ts +0 -14
- package/build/react/drawer-screen.js +0 -8
- package/build/react/hooks/index.d.ts +0 -12
- package/build/react/hooks/index.js +0 -8
- package/build/react/hooks/use-drawer-navigation.d.ts +0 -4
- package/build/react/hooks/use-drawer-navigation.js +0 -12
- package/build/react/hooks/use-focus-effect.d.ts +0 -2
- package/build/react/hooks/use-focus-effect.js +0 -29
- package/build/react/hooks/use-is-focused.d.ts +0 -1
- package/build/react/hooks/use-is-focused.js +0 -22
- package/build/react/hooks/use-navigation-state/index.d.ts +0 -2
- package/build/react/hooks/use-navigation-state/index.js +0 -39
- package/build/react/hooks/use-navigation.d.ts +0 -7
- package/build/react/hooks/use-navigation.js +0 -16
- package/build/react/hooks/use-route.d.ts +0 -2
- package/build/react/hooks/use-route.js +0 -8
- package/build/react/hooks/use-stack-navigation.d.ts +0 -4
- package/build/react/hooks/use-stack-navigation.js +0 -14
- package/build/react/hooks/use-tab-navigation.d.ts +0 -4
- package/build/react/hooks/use-tab-navigation.js +0 -12
- package/build/react/index.d.ts +0 -24
- package/build/react/index.js +0 -21
- package/build/react/linking.d.ts +0 -3
- package/build/react/linking.js +0 -47
- package/build/react/navigation-context.d.ts +0 -10
- package/build/react/navigation-context.js +0 -22
- package/build/react/screen.d.ts +0 -22
- package/build/react/screen.js +0 -7
- package/build/react/stack/index.d.ts +0 -13
- package/build/react/stack/index.js +0 -202
- package/build/react/tab-screen.d.ts +0 -15
- package/build/react/tab-screen.js +0 -8
- package/build/react/tabs/index.d.ts +0 -12
- package/build/react/tabs/index.js +0 -116
- package/build/register.d.ts +0 -7
- package/build/register.js +0 -58
- package/build/vue/composables/index.d.ts +0 -12
- package/build/vue/composables/index.js +0 -8
- package/build/vue/composables/use-drawer-navigation.d.ts +0 -5
- package/build/vue/composables/use-drawer-navigation.js +0 -15
- package/build/vue/composables/use-focus-effect.d.ts +0 -1
- package/build/vue/composables/use-focus-effect.js +0 -31
- package/build/vue/composables/use-is-focused.d.ts +0 -2
- package/build/vue/composables/use-is-focused.js +0 -28
- package/build/vue/composables/use-navigation-state.d.ts +0 -3
- package/build/vue/composables/use-navigation-state.js +0 -29
- package/build/vue/composables/use-navigation.d.ts +0 -8
- package/build/vue/composables/use-navigation.js +0 -13
- package/build/vue/composables/use-route.d.ts +0 -3
- package/build/vue/composables/use-route.js +0 -9
- package/build/vue/composables/use-stack-navigation.d.ts +0 -5
- package/build/vue/composables/use-stack-navigation.js +0 -18
- package/build/vue/composables/use-tab-navigation.d.ts +0 -5
- package/build/vue/composables/use-tab-navigation.js +0 -15
- package/build/vue/drawer/index.d.ts +0 -19
- package/build/vue/drawer/index.js +0 -390
- package/build/vue/drawer-screen.d.ts +0 -14
- package/build/vue/drawer-screen.js +0 -12
- package/build/vue/index.d.ts +0 -21
- package/build/vue/index.js +0 -19
- package/build/vue/linking.d.ts +0 -3
- package/build/vue/linking.js +0 -57
- package/build/vue/navigation-context.d.ts +0 -16
- package/build/vue/navigation-context.js +0 -65
- package/build/vue/screen.d.ts +0 -21
- package/build/vue/screen.js +0 -12
- package/build/vue/stack/index.d.ts +0 -9
- package/build/vue/stack/index.js +0 -279
- package/build/vue/tab-screen.d.ts +0 -14
- package/build/vue/tab-screen.js +0 -11
- package/build/vue/tabs/index.d.ts +0 -10
- package/build/vue/tabs/index.js +0 -209
- 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,79 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, type AfterContentInit, type OnChanges, type OnDestroy, type Type } from '@angular/core';
|
|
2
|
-
import { type IStyleProp, type IViewStyle } from '@symbiote-native/engine';
|
|
3
|
-
import type { IDrawerDescriptorMap, IDrawerNavigatorHandle, IDrawerPosition, IDrawerRouterState, IDrawerSlot, IDrawerType, INavigationEmitter, IRoute } from '../core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type { IDrawerNavigatorHandle, IDrawerDescriptorMap } from '../core';
|
|
6
|
-
export type IDrawerContentContext = {
|
|
7
|
-
$implicit: {
|
|
8
|
-
state: IDrawerRouterState;
|
|
9
|
-
descriptors: IDrawerDescriptorMap;
|
|
10
|
-
navigation: IDrawerNavigatorHandle;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare class Drawer implements AfterContentInit, OnChanges, OnDestroy, IDrawerNavigatorHandle {
|
|
14
|
-
private readonly drawerScreenChildren;
|
|
15
|
-
drawerContentTemplate?: TemplateRef<IDrawerContentContext>;
|
|
16
|
-
initialRouteName?: string;
|
|
17
|
-
drawerStyle?: IStyleProp<IViewStyle>;
|
|
18
|
-
drawerType?: IDrawerType;
|
|
19
|
-
drawerPosition?: IDrawerPosition;
|
|
20
|
-
drawerWidth?: number;
|
|
21
|
-
overlayColor?: string;
|
|
22
|
-
swipeEnabled?: boolean;
|
|
23
|
-
swipeEdgeWidth?: number;
|
|
24
|
-
swipeMinDistance?: number;
|
|
25
|
-
swipeMinVelocity?: number;
|
|
26
|
-
private readonly windowDimensions;
|
|
27
|
-
private readonly routeIdPrefix;
|
|
28
|
-
private readonly registry;
|
|
29
|
-
private drawerScreenChildrenSubscription;
|
|
30
|
-
private readonly stateSignal;
|
|
31
|
-
readonly state: import("@angular/core").Signal<Readonly<{
|
|
32
|
-
routes: readonly Readonly<{
|
|
33
|
-
key: string;
|
|
34
|
-
name: string;
|
|
35
|
-
params: unknown;
|
|
36
|
-
}>[];
|
|
37
|
-
index: number;
|
|
38
|
-
isOpen: boolean;
|
|
39
|
-
}> | undefined>;
|
|
40
|
-
private currentEmitterKey;
|
|
41
|
-
private currentEmitter;
|
|
42
|
-
private readonly progress;
|
|
43
|
-
private dragStartProgress;
|
|
44
|
-
readonly openDrawer: () => void;
|
|
45
|
-
readonly closeDrawer: () => void;
|
|
46
|
-
readonly toggleDrawer: () => void;
|
|
47
|
-
readonly jumpTo: (name: string) => void;
|
|
48
|
-
readonly panResponder: import("@symbiote-native/engine").IPanResponderInstance;
|
|
49
|
-
ngAfterContentInit(): void;
|
|
50
|
-
ngOnDestroy(): void;
|
|
51
|
-
private rebuildRegistry;
|
|
52
|
-
private routesFromRegistry;
|
|
53
|
-
private initializeState;
|
|
54
|
-
private dispatch;
|
|
55
|
-
private animateProgressTo;
|
|
56
|
-
private readonly optionsSnapshot;
|
|
57
|
-
private readonly drawerStyleSnapshot;
|
|
58
|
-
ngOnChanges(): void;
|
|
59
|
-
private buildOptionsSnapshot;
|
|
60
|
-
private overlayResponderPassthrough;
|
|
61
|
-
private readonly drawerRoot;
|
|
62
|
-
private readonly slotsMap;
|
|
63
|
-
isAnimated(): boolean;
|
|
64
|
-
slotOrder(): readonly IDrawerSlot[];
|
|
65
|
-
rootStyle(): Record<string, unknown>;
|
|
66
|
-
rootPanHandlers(): Record<string, unknown>;
|
|
67
|
-
slotAnimatedProps(slot: IDrawerSlot): Record<string, unknown>;
|
|
68
|
-
private slotStyle;
|
|
69
|
-
contentStyle(): Record<string, unknown>;
|
|
70
|
-
overlayStyle(): Record<string, unknown>;
|
|
71
|
-
panelStyle(): Record<string, unknown>;
|
|
72
|
-
focusedRoute(): IRoute<unknown> | undefined;
|
|
73
|
-
componentForRoute(route: IRoute<unknown>): Type<unknown> | null;
|
|
74
|
-
private resolveDrawerScreenOptions;
|
|
75
|
-
focusedRouteEmitter(): INavigationEmitter;
|
|
76
|
-
drawerContentContext(currentState: IDrawerRouterState): IDrawerContentContext;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Drawer, "Drawer", never, { "initialRouteName": { "alias": "initialRouteName"; "required": false; }; "drawerStyle": { "alias": "drawerStyle"; "required": false; }; "drawerType": { "alias": "drawerType"; "required": false; }; "drawerPosition": { "alias": "drawerPosition"; "required": false; }; "drawerWidth": { "alias": "drawerWidth"; "required": false; }; "overlayColor": { "alias": "overlayColor"; "required": false; }; "swipeEnabled": { "alias": "swipeEnabled"; "required": false; }; "swipeEdgeWidth": { "alias": "swipeEdgeWidth"; "required": false; }; "swipeMinDistance": { "alias": "swipeMinDistance"; "required": false; }; "swipeMinVelocity": { "alias": "swipeMinVelocity"; "required": false; }; }, {}, ["drawerContentTemplate", "drawerScreenChildren"], never, true, never>;
|
|
79
|
-
}
|
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
// Drawer, the Angular lifecycle half. The open/closed + focused-route router
|
|
2
|
-
// (drawer-router-state) and the pure swipe/geometry math (drawer-options) live in
|
|
3
|
-
// @symbiote-native/navigation core, shared verbatim with the React/Vue adapters; here Angular
|
|
4
|
-
// supplies the lifecycle — a signal-backed router, a PanResponder (RN's own idiom, framework-
|
|
5
|
-
// agnostic per `@symbiote-native/engine` — built ONCE as a class field, callbacks read LIVE `this`
|
|
6
|
-
// state at call time, no ref-mirroring dance needed the way react/drawer.ts's `useRef`s are: a
|
|
7
|
-
// class instance already gives every callback a live view of current state, closing the exact gap
|
|
8
|
-
// React's own hook rules force it to work around), an Animated.Value driving the slide/opacity
|
|
9
|
-
// transforms via the real `AnimatedView` component (`@symbiote-native/angular`), and
|
|
10
|
-
// `openDrawer`/`closeDrawer`/`toggleDrawer`/`jumpTo` as plain public methods directly on the class,
|
|
11
|
-
// mirroring tabs.ts's shape (Tab is the closer sibling: both are fixed-route-list,
|
|
12
|
-
// no-react-native-screens navigators; Stack's push/pop + native-screen bridging don't apply here;
|
|
13
|
-
// `Drawer implements IDrawerNavigatorHandle`).
|
|
14
|
-
//
|
|
15
|
-
// FEASIBILITY NOTE (mirrors react/drawer.ts's own header): the REAL @react-navigation/drawer is
|
|
16
|
-
// built on react-native-gesture-handler + react-native-reanimated, neither of which this codebase
|
|
17
|
-
// depends on. This reaches the same swipe-to-open/close + front/back/slide/permanent behavior with
|
|
18
|
-
// only PanResponder + Animated, sufficient for a solid drawer but NOT byte-for-byte parity — same
|
|
19
|
-
// explicit gap list as react/drawer.ts's tail comment (not repeated here, nothing Angular-specific
|
|
20
|
-
// changes it).
|
|
21
|
-
//
|
|
22
|
-
// RESOLVED (see stack.ts's header, identical reasoning): `'Drawer'` has an `ANCHOR_HOST_COMPONENTS`
|
|
23
|
-
// entry in `adapters/angular/src/renderer.ts`, so a real device build paints `<Drawer>` correctly
|
|
24
|
-
// as a nested tag. `View`/`AnimatedView`, imported below, were already anchor-hosted.
|
|
25
|
-
//
|
|
26
|
-
// DRAWER CONTENT PROJECTION: react/drawer.ts's `renderDrawerContent` is a render-PROP callback
|
|
27
|
-
// (`(props) => ReactNode`) — per CLAUDE.md's <prop_types_split_agnostic_vs_per_adapter>, a
|
|
28
|
-
// render-callback returning a framework element is inherently per-adapter. Angular's own idiom for
|
|
29
|
-
// "a caller-supplied template that needs live data" is a `TemplateRef` + `NgTemplateOutlet` with a
|
|
30
|
-
// context object, NOT a callback @Input(): `<Drawer><ng-template #drawerContent let-ctx>...
|
|
31
|
-
// {{ ctx.state }}...</ng-template></Drawer>`, read here via `@ContentChild('drawerContent', {read:
|
|
32
|
-
// TemplateRef})`.
|
|
33
|
-
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Input, QueryList, TemplateRef, computed, inject, signal, untracked, } from '@angular/core';
|
|
34
|
-
import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
35
|
-
import { PanResponder, dlog, flattenStyle, } from '@symbiote-native/engine';
|
|
36
|
-
import { Animated, AnimatedView, SymbioteHostPropsDirective, View, WindowDimensionsService, } from '@symbiote-native/angular';
|
|
37
|
-
import { DRAWER_DEFAULT_OVERLAY_COLOR, NAVIGATION_EVENT_BLUR, NAVIGATION_EVENT_FOCUS, createInitialDrawerRouterState, createNavigationEmitter, diffFocusedRoute, drawerChildOrder, drawerRouterReducer, isDrawerAnimated, renderDrawer, resolveDragProgress, resolveDrawerGeometry, resolveDrawerSlotInterpolation, resolveSwipeIntent, shouldClaimDrawerSwipe, } from '../core';
|
|
38
|
-
import { NavigationScopeDirective } from './navigation-scope.directive';
|
|
39
|
-
import { DrawerScreenDirective } from './drawer-screen.directive';
|
|
40
|
-
import * as i0 from "@angular/core";
|
|
41
|
-
const DRAWER_SNAP_DURATION = 250;
|
|
42
|
-
let drawerInstanceCounter = 0;
|
|
43
|
-
export class Drawer {
|
|
44
|
-
drawerScreenChildren;
|
|
45
|
-
drawerContentTemplate;
|
|
46
|
-
initialRouteName;
|
|
47
|
-
drawerStyle;
|
|
48
|
-
drawerType;
|
|
49
|
-
drawerPosition;
|
|
50
|
-
drawerWidth;
|
|
51
|
-
overlayColor;
|
|
52
|
-
swipeEnabled;
|
|
53
|
-
swipeEdgeWidth;
|
|
54
|
-
swipeMinDistance;
|
|
55
|
-
swipeMinVelocity;
|
|
56
|
-
windowDimensions = inject(WindowDimensionsService).dimensions;
|
|
57
|
-
routeIdPrefix = `drawer-${(drawerInstanceCounter += 1)}`;
|
|
58
|
-
// Keyed by name -> the LIVE DrawerScreenDirective instance — see stack.ts's matching comment
|
|
59
|
-
// for why a snapshot copy would go stale on an in-place `[options]`/`[component]` change.
|
|
60
|
-
registry = new Map();
|
|
61
|
-
drawerScreenChildrenSubscription;
|
|
62
|
-
stateSignal = signal(undefined, /* @ts-ignore */
|
|
63
|
-
...(ngDevMode ? [{ debugName: "stateSignal" }] : /* istanbul ignore next */ []));
|
|
64
|
-
state = this.stateSignal.asReadonly();
|
|
65
|
-
currentEmitterKey;
|
|
66
|
-
currentEmitter;
|
|
67
|
-
// progress: 0 closed -> 1 open. Always starts closed (createInitialDrawerRouterState's own
|
|
68
|
-
// contract), so a plain field initializer is safe — no dependency on `state` existing yet.
|
|
69
|
-
progress = new Animated.Value(0);
|
|
70
|
-
// Where a drag STARTS from, in progress units — always exactly 0 or 1 (see react/drawer.ts's
|
|
71
|
-
// matching field for why).
|
|
72
|
-
dragStartProgress = 0;
|
|
73
|
-
openDrawer = () => {
|
|
74
|
-
this.animateProgressTo(true);
|
|
75
|
-
this.dispatch({ type: 'openDrawer' });
|
|
76
|
-
};
|
|
77
|
-
closeDrawer = () => {
|
|
78
|
-
this.animateProgressTo(false);
|
|
79
|
-
this.dispatch({ type: 'closeDrawer' });
|
|
80
|
-
};
|
|
81
|
-
toggleDrawer = () => {
|
|
82
|
-
this.animateProgressTo(!(this.stateSignal()?.isOpen ?? false));
|
|
83
|
-
this.dispatch({ type: 'toggleDrawer' });
|
|
84
|
-
};
|
|
85
|
-
jumpTo = (name) => {
|
|
86
|
-
this.dispatch({ type: 'jumpTo', name });
|
|
87
|
-
if (this.stateSignal()?.isOpen)
|
|
88
|
-
this.animateProgressTo(false);
|
|
89
|
-
};
|
|
90
|
-
panResponder = PanResponder.create({
|
|
91
|
-
onStartShouldSetPanResponder: (event, gestureState) => shouldClaimDrawerSwipe(event, gestureState, this.windowDimensions().width, this.stateSignal()?.isOpen ?? false, this.optionsSnapshot(), 'start'),
|
|
92
|
-
onMoveShouldSetPanResponder: (event, gestureState) => shouldClaimDrawerSwipe(event, gestureState, this.windowDimensions().width, this.stateSignal()?.isOpen ?? false, this.optionsSnapshot(), 'move'),
|
|
93
|
-
onPanResponderGrant: () => {
|
|
94
|
-
dlog('Drawer: gesture grant');
|
|
95
|
-
this.dragStartProgress = (this.stateSignal()?.isOpen ?? false) ? 1 : 0;
|
|
96
|
-
},
|
|
97
|
-
onPanResponderMove: (_event, gestureState) => {
|
|
98
|
-
this.progress.setValue(resolveDragProgress(gestureState, this.dragStartProgress, this.optionsSnapshot()));
|
|
99
|
-
},
|
|
100
|
-
onPanResponderRelease: (_event, gestureState) => {
|
|
101
|
-
const intent = resolveSwipeIntent(gestureState, this.stateSignal()?.isOpen ?? false, this.optionsSnapshot());
|
|
102
|
-
const open = intent === 'open';
|
|
103
|
-
dlog(`Drawer: gesture release -> ${open ? 'open' : 'close'}`);
|
|
104
|
-
this.animateProgressTo(open);
|
|
105
|
-
this.dispatch(open ? { type: 'openDrawer' } : { type: 'closeDrawer' });
|
|
106
|
-
},
|
|
107
|
-
onPanResponderTerminate: () => {
|
|
108
|
-
dlog('Drawer: gesture terminated, snapping back');
|
|
109
|
-
this.animateProgressTo(this.stateSignal()?.isOpen ?? false);
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
ngAfterContentInit() {
|
|
113
|
-
this.rebuildRegistry();
|
|
114
|
-
this.initializeState();
|
|
115
|
-
this.drawerScreenChildrenSubscription = this.drawerScreenChildren.changes.subscribe(() => {
|
|
116
|
-
this.rebuildRegistry();
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
ngOnDestroy() {
|
|
120
|
-
this.drawerScreenChildrenSubscription?.unsubscribe();
|
|
121
|
-
if (this.currentEmitter)
|
|
122
|
-
this.currentEmitter.emit(NAVIGATION_EVENT_BLUR);
|
|
123
|
-
}
|
|
124
|
-
rebuildRegistry() {
|
|
125
|
-
this.registry.clear();
|
|
126
|
-
for (const screen of this.drawerScreenChildren) {
|
|
127
|
-
this.registry.set(screen.name, screen);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
routesFromRegistry() {
|
|
131
|
-
return Array.from(this.registry.entries()).map(([name, entry]) => ({
|
|
132
|
-
key: `${this.routeIdPrefix}-${name}`,
|
|
133
|
-
name,
|
|
134
|
-
params: entry.initialParams,
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
|
-
initializeState() {
|
|
138
|
-
if (this.stateSignal() !== undefined)
|
|
139
|
-
return;
|
|
140
|
-
const routes = this.routesFromRegistry();
|
|
141
|
-
if (routes.length === 0)
|
|
142
|
-
dlog('Drawer: no <ng-template symbioteDrawerScreen> children registered');
|
|
143
|
-
this.stateSignal.set(createInitialDrawerRouterState(routes, this.initialRouteName));
|
|
144
|
-
}
|
|
145
|
-
dispatch(action) {
|
|
146
|
-
const current = this.stateSignal();
|
|
147
|
-
if (current === undefined)
|
|
148
|
-
return;
|
|
149
|
-
this.stateSignal.set(drawerRouterReducer(current, action));
|
|
150
|
-
}
|
|
151
|
-
animateProgressTo(open) {
|
|
152
|
-
dlog(`Drawer: animateProgressTo(open=${open})`);
|
|
153
|
-
Animated.timing(this.progress, {
|
|
154
|
-
toValue: open ? 1 : 0,
|
|
155
|
-
duration: DRAWER_SNAP_DURATION,
|
|
156
|
-
// Native-driver wiring is deferred for v1 — mirrors react/drawer.ts's own scope note.
|
|
157
|
-
useNativeDriver: false,
|
|
158
|
-
}).start();
|
|
159
|
-
}
|
|
160
|
-
// A plain writable signal, not a computed() — it mirrors @Input() properties, which are ordinary
|
|
161
|
-
// mutable fields Angular assigns directly rather than signals, so a computed() reading them would
|
|
162
|
-
// never register them as a tracked dependency and would go stale after its first evaluation.
|
|
163
|
-
// ngOnChanges (below) pushes every input change in here instead, which drawerRoot/slotsMap CAN
|
|
164
|
-
// track correctly since reading a signal (unlike a plain field) IS visible to computed()'s
|
|
165
|
-
// dependency collection.
|
|
166
|
-
optionsSnapshot = signal(this.buildOptionsSnapshot(), /* @ts-ignore */
|
|
167
|
-
...(ngDevMode ? [{ debugName: "optionsSnapshot" }] : /* istanbul ignore next */ []));
|
|
168
|
-
drawerStyleSnapshot = signal(this.drawerStyle, /* @ts-ignore */
|
|
169
|
-
...(ngDevMode ? [{ debugName: "drawerStyleSnapshot" }] : /* istanbul ignore next */ []));
|
|
170
|
-
ngOnChanges() {
|
|
171
|
-
this.optionsSnapshot.set(this.buildOptionsSnapshot());
|
|
172
|
-
this.drawerStyleSnapshot.set(this.drawerStyle);
|
|
173
|
-
}
|
|
174
|
-
buildOptionsSnapshot() {
|
|
175
|
-
return {
|
|
176
|
-
drawerType: this.drawerType,
|
|
177
|
-
drawerPosition: this.drawerPosition,
|
|
178
|
-
drawerWidth: this.drawerWidth,
|
|
179
|
-
overlayColor: this.overlayColor,
|
|
180
|
-
swipeEnabled: this.swipeEnabled,
|
|
181
|
-
swipeEdgeWidth: this.swipeEdgeWidth,
|
|
182
|
-
swipeMinDistance: this.swipeMinDistance,
|
|
183
|
-
swipeMinVelocity: this.swipeMinVelocity,
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
overlayResponderPassthrough() {
|
|
187
|
-
return {
|
|
188
|
-
pointerEvents: this.stateSignal()?.isOpen ? 'auto' : 'none',
|
|
189
|
-
onStartShouldSetResponder: () => true,
|
|
190
|
-
onResponderRelease: () => {
|
|
191
|
-
this.animateProgressTo(false);
|
|
192
|
-
this.dispatch({ type: 'closeDrawer' });
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
// Recomputed only when a dependency signal actually changes, so every template read within a
|
|
197
|
-
// single change-detection pass (rootStyle, plus slotStyle/slotAnimatedProps once per @for slot —
|
|
198
|
-
// 6-7 reads total) shares one cached descriptor tree instead of re-running renderDrawer /
|
|
199
|
-
// drawerChildOrder on each read.
|
|
200
|
-
drawerRoot = computed(() => renderDrawer({
|
|
201
|
-
overlayColor: this.optionsSnapshot().overlayColor ?? DRAWER_DEFAULT_OVERLAY_COLOR,
|
|
202
|
-
drawerStyle: this.drawerStyleSnapshot(),
|
|
203
|
-
contentPassthrough: {},
|
|
204
|
-
overlayPassthrough: this.isAnimated() ? this.overlayResponderPassthrough() : {},
|
|
205
|
-
panelPassthrough: {},
|
|
206
|
-
}, this.optionsSnapshot()), /* @ts-ignore */
|
|
207
|
-
...(ngDevMode ? [{ debugName: "drawerRoot" }] : /* istanbul ignore next */ []));
|
|
208
|
-
slotsMap = computed(() => {
|
|
209
|
-
const root = this.drawerRoot();
|
|
210
|
-
const order = drawerChildOrder(this.optionsSnapshot());
|
|
211
|
-
const map = new Map();
|
|
212
|
-
order.forEach((slot, index) => {
|
|
213
|
-
const child = root.children[index];
|
|
214
|
-
if (child !== undefined && typeof child !== 'string')
|
|
215
|
-
map.set(slot, child);
|
|
216
|
-
});
|
|
217
|
-
return map;
|
|
218
|
-
}, /* @ts-ignore */
|
|
219
|
-
...(ngDevMode ? [{ debugName: "slotsMap" }] : /* istanbul ignore next */ []));
|
|
220
|
-
isAnimated() {
|
|
221
|
-
return isDrawerAnimated(this.optionsSnapshot());
|
|
222
|
-
}
|
|
223
|
-
slotOrder() {
|
|
224
|
-
return drawerChildOrder(this.optionsSnapshot());
|
|
225
|
-
}
|
|
226
|
-
rootStyle() {
|
|
227
|
-
return flattenStyle(this.drawerRoot().props.style);
|
|
228
|
-
}
|
|
229
|
-
rootPanHandlers() {
|
|
230
|
-
return { ...this.panResponder.panHandlers };
|
|
231
|
-
}
|
|
232
|
-
slotAnimatedProps(slot) {
|
|
233
|
-
const descriptor = this.slotsMap().get(slot);
|
|
234
|
-
if (!descriptor)
|
|
235
|
-
return {};
|
|
236
|
-
const { style: _style, ...rest } = descriptor.props;
|
|
237
|
-
return rest;
|
|
238
|
-
}
|
|
239
|
-
slotStyle(slot, animatedStyle) {
|
|
240
|
-
const base = this.slotsMap().get(slot)?.props.style;
|
|
241
|
-
return this.isAnimated() ? flattenStyle([base, animatedStyle()]) : flattenStyle(base);
|
|
242
|
-
}
|
|
243
|
-
contentStyle() {
|
|
244
|
-
return this.slotStyle('content', () => {
|
|
245
|
-
const g = resolveDrawerGeometry(this.optionsSnapshot());
|
|
246
|
-
const { translateX } = resolveDrawerSlotInterpolation(g, 'content');
|
|
247
|
-
return {
|
|
248
|
-
transform: [{ translateX: this.progress.interpolate(translateX) }],
|
|
249
|
-
};
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
// The overlay's translateX follows content's own delta (see render-drawer.ts's comment on
|
|
253
|
-
// `overlayTranslateX`): for `slide`, content itself moves away, and without the overlay
|
|
254
|
-
// following it the dimming stays pinned full-screen instead of tracking the revealed panel.
|
|
255
|
-
overlayStyle() {
|
|
256
|
-
return this.slotStyle('overlay', () => {
|
|
257
|
-
const g = resolveDrawerGeometry(this.optionsSnapshot());
|
|
258
|
-
const { opacity, translateX } = resolveDrawerSlotInterpolation(g, 'overlay');
|
|
259
|
-
return {
|
|
260
|
-
opacity: this.progress.interpolate(opacity),
|
|
261
|
-
transform: [{ translateX: this.progress.interpolate(translateX) }],
|
|
262
|
-
};
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
panelStyle() {
|
|
266
|
-
return this.slotStyle('panel', () => {
|
|
267
|
-
const g = resolveDrawerGeometry(this.optionsSnapshot());
|
|
268
|
-
const { translateX } = resolveDrawerSlotInterpolation(g, 'panel');
|
|
269
|
-
return {
|
|
270
|
-
transform: [{ translateX: this.progress.interpolate(translateX) }],
|
|
271
|
-
};
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
focusedRoute() {
|
|
275
|
-
const state = this.stateSignal();
|
|
276
|
-
return state?.routes[state.index];
|
|
277
|
-
}
|
|
278
|
-
componentForRoute(route) {
|
|
279
|
-
return this.registry.get(route.name)?.component ?? null;
|
|
280
|
-
}
|
|
281
|
-
resolveDrawerScreenOptions(entry, route) {
|
|
282
|
-
if (typeof entry.options === 'function') {
|
|
283
|
-
const props = { route, navigation: this };
|
|
284
|
-
return entry.options(props);
|
|
285
|
-
}
|
|
286
|
-
return entry.options ?? {};
|
|
287
|
-
}
|
|
288
|
-
// Lazily creates/replaces the focused route's emitter and synthesizes focus/blur — Drawer paints
|
|
289
|
-
// its own panel in pure JS (no native onAppear/onDisappear the way Stack's RNSScreen has), so
|
|
290
|
-
// focus/blur is synthesized here exactly like react/drawer.ts's own useEffect does, just
|
|
291
|
-
// idempotent per read instead of dependency-array gated. Keyed on the route KEY, not the object,
|
|
292
|
-
// so a no-op re-focus of the already-focused route doesn't spuriously re-fire.
|
|
293
|
-
//
|
|
294
|
-
// Called from the template ([emitter]="focusedRouteEmitter()"), which runs inside Angular's
|
|
295
|
-
// reactive-read tracking context for the current CD pass — unlike React's useEffect, which runs
|
|
296
|
-
// in a separate post-commit phase. Two consequences of that, both fixed below (see tabs.ts's
|
|
297
|
-
// identical fix for the full mechanism):
|
|
298
|
-
//
|
|
299
|
-
// 1. Writing a signal from inside a tracked template read throws Angular's NG600 ("signal write
|
|
300
|
-
// during a template execution") — untracked() opts this whole synthesis out of that
|
|
301
|
-
// tracking context.
|
|
302
|
-
// 2. The NEW route's screen component (injectIsFocused's listener source) is created by
|
|
303
|
-
// *ngComponentOutlet AFTER this binding is evaluated but still within the SAME synchronous
|
|
304
|
-
// template refresh — emitting FOCUS right here fires to zero listeners and is silently lost
|
|
305
|
-
// forever. queueMicrotask defers the FOCUS emit past the end of the current refresh
|
|
306
|
-
// (including the new screen's construction). BLUR doesn't need this: the outgoing screen's
|
|
307
|
-
// listener was already attached on an earlier tick.
|
|
308
|
-
focusedRouteEmitter() {
|
|
309
|
-
const key = this.focusedRoute()?.key;
|
|
310
|
-
return untracked(() => {
|
|
311
|
-
if (key === this.currentEmitterKey && this.currentEmitter)
|
|
312
|
-
return this.currentEmitter;
|
|
313
|
-
const { blurKey, focusKey } = diffFocusedRoute(this.currentEmitterKey, key);
|
|
314
|
-
if (blurKey !== undefined && this.currentEmitter) {
|
|
315
|
-
dlog('Drawer: previous route blurred');
|
|
316
|
-
this.currentEmitter.emit(NAVIGATION_EVENT_BLUR);
|
|
317
|
-
}
|
|
318
|
-
const emitter = createNavigationEmitter();
|
|
319
|
-
this.currentEmitter = emitter;
|
|
320
|
-
this.currentEmitterKey = key;
|
|
321
|
-
if (focusKey !== undefined) {
|
|
322
|
-
queueMicrotask(() => {
|
|
323
|
-
if (this.currentEmitter !== emitter)
|
|
324
|
-
return; // superseded by a later switch
|
|
325
|
-
dlog(`Drawer: route "${this.focusedRoute()?.name}" focused`);
|
|
326
|
-
emitter.emit(NAVIGATION_EVENT_FOCUS);
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
return emitter;
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
drawerContentContext(currentState) {
|
|
333
|
-
const descriptors = {};
|
|
334
|
-
for (const route of currentState.routes) {
|
|
335
|
-
const entry = this.registry.get(route.name);
|
|
336
|
-
if (entry === undefined)
|
|
337
|
-
continue;
|
|
338
|
-
descriptors[route.key] = {
|
|
339
|
-
options: this.resolveDrawerScreenOptions(entry, route),
|
|
340
|
-
navigation: this,
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
return { $implicit: { state: currentState, descriptors, navigation: this } };
|
|
344
|
-
}
|
|
345
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Drawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
346
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Drawer, isStandalone: true, selector: "Drawer", inputs: { initialRouteName: "initialRouteName", drawerStyle: "drawerStyle", drawerType: "drawerType", drawerPosition: "drawerPosition", drawerWidth: "drawerWidth", overlayColor: "overlayColor", swipeEnabled: "swipeEnabled", swipeEdgeWidth: "swipeEdgeWidth", swipeMinDistance: "swipeMinDistance", swipeMinVelocity: "swipeMinVelocity" }, queries: [{ propertyName: "drawerContentTemplate", first: true, predicate: ["drawerContent"], descendants: true, read: TemplateRef }, { propertyName: "drawerScreenChildren", predicate: DrawerScreenDirective }], usesOnChanges: true, ngImport: i0, template: `
|
|
347
|
-
@if (state(); as currentState) {
|
|
348
|
-
<View [style]="rootStyle()" [symbioteHostProps]="rootPanHandlers()">
|
|
349
|
-
@for (slot of slotOrder(); track slot) {
|
|
350
|
-
@switch (slot) {
|
|
351
|
-
@case ('content') {
|
|
352
|
-
<AnimatedView [style]="contentStyle()" [animatedProps]="slotAnimatedProps('content')">
|
|
353
|
-
@if (focusedRoute(); as route) {
|
|
354
|
-
@if (componentForRoute(route); as component) {
|
|
355
|
-
<ng-container
|
|
356
|
-
[symbioteNavigationScope]="route"
|
|
357
|
-
[navigation]="this"
|
|
358
|
-
[emitter]="focusedRouteEmitter()"
|
|
359
|
-
>
|
|
360
|
-
<ng-container *ngComponentOutlet="component" />
|
|
361
|
-
</ng-container>
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
</AnimatedView>
|
|
365
|
-
}
|
|
366
|
-
@case ('overlay') {
|
|
367
|
-
<AnimatedView
|
|
368
|
-
[style]="overlayStyle()"
|
|
369
|
-
[animatedProps]="slotAnimatedProps('overlay')"
|
|
370
|
-
/>
|
|
371
|
-
}
|
|
372
|
-
@case ('panel') {
|
|
373
|
-
<AnimatedView [style]="panelStyle()" [animatedProps]="slotAnimatedProps('panel')">
|
|
374
|
-
@if (drawerContentTemplate) {
|
|
375
|
-
<ng-container
|
|
376
|
-
*ngTemplateOutlet="
|
|
377
|
-
drawerContentTemplate;
|
|
378
|
-
context: drawerContentContext(currentState)
|
|
379
|
-
"
|
|
380
|
-
/>
|
|
381
|
-
}
|
|
382
|
-
</AnimatedView>
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
</View>
|
|
387
|
-
}
|
|
388
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NavigationScopeDirective, selector: "[symbioteNavigationScope]", inputs: ["symbioteNavigationScope", "navigation", "emitter"] }, { kind: "directive", type: SymbioteHostPropsDirective, selector: "[symbioteHostProps]", inputs: ["symbioteHostProps"], exportAs: ["symbioteHost"] }, { kind: "component", type: View, selector: "symbiote-view, View" }, { kind: "component", type: AnimatedView, selector: "AnimatedView, symbiote-animated-view", inputs: ["style", "animatedProps", "passthroughAnimatedPropExplicitValues"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
389
|
-
}
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Drawer, decorators: [{
|
|
391
|
-
type: Component,
|
|
392
|
-
args: [{
|
|
393
|
-
selector: 'Drawer',
|
|
394
|
-
standalone: true,
|
|
395
|
-
imports: [
|
|
396
|
-
NgComponentOutlet,
|
|
397
|
-
NgTemplateOutlet,
|
|
398
|
-
NavigationScopeDirective,
|
|
399
|
-
SymbioteHostPropsDirective,
|
|
400
|
-
View,
|
|
401
|
-
AnimatedView,
|
|
402
|
-
],
|
|
403
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
404
|
-
template: `
|
|
405
|
-
@if (state(); as currentState) {
|
|
406
|
-
<View [style]="rootStyle()" [symbioteHostProps]="rootPanHandlers()">
|
|
407
|
-
@for (slot of slotOrder(); track slot) {
|
|
408
|
-
@switch (slot) {
|
|
409
|
-
@case ('content') {
|
|
410
|
-
<AnimatedView [style]="contentStyle()" [animatedProps]="slotAnimatedProps('content')">
|
|
411
|
-
@if (focusedRoute(); as route) {
|
|
412
|
-
@if (componentForRoute(route); as component) {
|
|
413
|
-
<ng-container
|
|
414
|
-
[symbioteNavigationScope]="route"
|
|
415
|
-
[navigation]="this"
|
|
416
|
-
[emitter]="focusedRouteEmitter()"
|
|
417
|
-
>
|
|
418
|
-
<ng-container *ngComponentOutlet="component" />
|
|
419
|
-
</ng-container>
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
</AnimatedView>
|
|
423
|
-
}
|
|
424
|
-
@case ('overlay') {
|
|
425
|
-
<AnimatedView
|
|
426
|
-
[style]="overlayStyle()"
|
|
427
|
-
[animatedProps]="slotAnimatedProps('overlay')"
|
|
428
|
-
/>
|
|
429
|
-
}
|
|
430
|
-
@case ('panel') {
|
|
431
|
-
<AnimatedView [style]="panelStyle()" [animatedProps]="slotAnimatedProps('panel')">
|
|
432
|
-
@if (drawerContentTemplate) {
|
|
433
|
-
<ng-container
|
|
434
|
-
*ngTemplateOutlet="
|
|
435
|
-
drawerContentTemplate;
|
|
436
|
-
context: drawerContentContext(currentState)
|
|
437
|
-
"
|
|
438
|
-
/>
|
|
439
|
-
}
|
|
440
|
-
</AnimatedView>
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
</View>
|
|
445
|
-
}
|
|
446
|
-
`,
|
|
447
|
-
}]
|
|
448
|
-
}], propDecorators: { drawerScreenChildren: [{
|
|
449
|
-
type: ContentChildren,
|
|
450
|
-
args: [DrawerScreenDirective]
|
|
451
|
-
}], drawerContentTemplate: [{
|
|
452
|
-
type: ContentChild,
|
|
453
|
-
args: ['drawerContent', { read: TemplateRef }]
|
|
454
|
-
}], initialRouteName: [{
|
|
455
|
-
type: Input
|
|
456
|
-
}], drawerStyle: [{
|
|
457
|
-
type: Input
|
|
458
|
-
}], drawerType: [{
|
|
459
|
-
type: Input
|
|
460
|
-
}], drawerPosition: [{
|
|
461
|
-
type: Input
|
|
462
|
-
}], drawerWidth: [{
|
|
463
|
-
type: Input
|
|
464
|
-
}], overlayColor: [{
|
|
465
|
-
type: Input
|
|
466
|
-
}], swipeEnabled: [{
|
|
467
|
-
type: Input
|
|
468
|
-
}], swipeEdgeWidth: [{
|
|
469
|
-
type: Input
|
|
470
|
-
}], swipeMinDistance: [{
|
|
471
|
-
type: Input
|
|
472
|
-
}], swipeMinVelocity: [{
|
|
473
|
-
type: Input
|
|
474
|
-
}] } });
|
|
475
|
-
//# sourceMappingURL=drawer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/angular/drawer.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,kFAAkF;AAClF,8FAA8F;AAC9F,8FAA8F;AAC9F,mGAAmG;AACnG,+FAA+F;AAC/F,kGAAkG;AAClG,+FAA+F;AAC/F,qFAAqF;AACrF,oGAAoG;AACpG,mFAAmF;AACnF,kGAAkG;AAClG,+CAA+C;AAC/C,EAAE;AACF,gGAAgG;AAChG,kGAAkG;AAClG,mGAAmG;AACnG,kGAAkG;AAClG,mGAAmG;AACnG,eAAe;AACf,EAAE;AACF,oGAAoG;AACpG,kGAAkG;AAClG,sFAAsF;AACtF,EAAE;AACF,+FAA+F;AAC/F,2FAA2F;AAC3F,mGAAmG;AACnG,mGAAmG;AACnG,4FAA4F;AAC5F,mGAAmG;AACnG,kBAAkB;AAElB,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,YAAY,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AK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type AfterContentInit, type OnDestroy, type Type } from '@angular/core';
|
|
2
|
-
import type { INavigationEmitter, INavigatorHandle, INavigatorState, IRoute, ISearchBarCommands } from '../core';
|
|
3
|
-
import type { IAngularScreenOptions } from './screen.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type { INavigatorHandle } from '../core';
|
|
6
|
-
export declare class Stack implements AfterContentInit, OnDestroy, INavigatorHandle {
|
|
7
|
-
private readonly screenChildren;
|
|
8
|
-
initialRouteName?: string;
|
|
9
|
-
screenOptions?: IAngularScreenOptions;
|
|
10
|
-
readonly headerSubviewProps: Record<string, unknown>;
|
|
11
|
-
private readonly routeIdPrefix;
|
|
12
|
-
private readonly registry;
|
|
13
|
-
private readonly emitters;
|
|
14
|
-
private readonly planCache;
|
|
15
|
-
private routeSequence;
|
|
16
|
-
private screenChildrenSubscription;
|
|
17
|
-
private readonly stateSignal;
|
|
18
|
-
readonly state: import("@angular/core").Signal<Readonly<{
|
|
19
|
-
routes: readonly Readonly<{
|
|
20
|
-
key: string;
|
|
21
|
-
name: string;
|
|
22
|
-
params: unknown;
|
|
23
|
-
}>[];
|
|
24
|
-
}> | undefined>;
|
|
25
|
-
readonly push: (name: string, params?: unknown) => void;
|
|
26
|
-
readonly pop: (count?: number) => void;
|
|
27
|
-
readonly popToTop: () => void;
|
|
28
|
-
readonly popTo: (key: string) => void;
|
|
29
|
-
readonly replace: (name: string, params?: unknown) => void;
|
|
30
|
-
readonly setParams: (params: unknown, key?: string) => void;
|
|
31
|
-
readonly reset: (nextState: INavigatorState) => void;
|
|
32
|
-
readonly canGoBack: () => boolean;
|
|
33
|
-
ngAfterContentInit(): void;
|
|
34
|
-
ngOnDestroy(): void;
|
|
35
|
-
private rebuildRegistry;
|
|
36
|
-
private initializeState;
|
|
37
|
-
private createRoute;
|
|
38
|
-
private dispatch;
|
|
39
|
-
emitterFor(routeKey: string): INavigationEmitter;
|
|
40
|
-
private mergedOptionsFor;
|
|
41
|
-
componentFor(route: IRoute<unknown>): Type<unknown> | null;
|
|
42
|
-
stackHostProps(): Record<string, unknown>;
|
|
43
|
-
private planFor;
|
|
44
|
-
outerScreenIsModal(route: IRoute<unknown>, index: number): boolean;
|
|
45
|
-
isInModal(route: IRoute<unknown>, index: number): boolean;
|
|
46
|
-
screenHostProps(route: IRoute<unknown>, index: number): Record<string, unknown>;
|
|
47
|
-
innerStackProps(): Record<string, unknown>;
|
|
48
|
-
innerScreenProps(route: IRoute<unknown>, index: number): Record<string, unknown>;
|
|
49
|
-
contentWrapperProps(route: IRoute<unknown>, index: number): Record<string, unknown>;
|
|
50
|
-
headerConfigProps(route: IRoute<unknown>, index: number): Record<string, unknown>;
|
|
51
|
-
hasSearchBar(route: IRoute<unknown>): boolean;
|
|
52
|
-
searchBarRef(route: IRoute<unknown>): {
|
|
53
|
-
current: ISearchBarCommands | null;
|
|
54
|
-
} | undefined;
|
|
55
|
-
searchBarProps(route: IRoute<unknown>, index: number): Record<string, unknown>;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Stack, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Stack, "Stack", never, { "initialRouteName": { "alias": "initialRouteName"; "required": false; }; "screenOptions": { "alias": "screenOptions"; "required": false; }; }, {}, ["screenChildren"], never, true, never>;
|
|
58
|
-
}
|