@g9tm/lynxcontrols 2.5.7 → 2.5.9
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/catalog/cards/G9AppearancePage.md +17 -0
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9Button.md +2 -2
- package/catalog/cards/G9Card.md +1 -1
- package/catalog/cards/G9Chip.md +1 -1
- package/catalog/cards/G9ChipStrip.md +16 -0
- package/catalog/cards/G9CodeBlock.md +17 -0
- package/catalog/cards/G9CommandPalette.md +3 -1
- package/catalog/cards/G9ConnectionBanner.md +1 -1
- package/catalog/cards/G9ContrastPanel.md +15 -0
- package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
- package/catalog/cards/G9DashboardGrid.md +17 -0
- package/catalog/cards/G9DragList.md +4 -2
- package/catalog/cards/G9Editor.md +1 -1
- package/catalog/cards/G9ErrorBoundary.md +3 -2
- package/catalog/cards/G9Menu.md +1 -1
- package/catalog/cards/G9MenuList.md +2 -0
- package/catalog/cards/G9NotificationCenter.md +17 -0
- package/catalog/cards/G9NotificationCenterPanel.md +17 -0
- package/catalog/cards/G9PathNavigator.md +17 -0
- package/catalog/cards/G9PersonalThemeSheet.md +17 -0
- package/catalog/cards/G9Popover.md +1 -1
- package/catalog/cards/G9Provider.md +1 -1
- package/catalog/cards/G9ReaderSheet.md +17 -0
- package/catalog/cards/G9ReaderView.md +17 -0
- package/catalog/cards/G9SafeButton.md +2 -2
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9SecretValue.md +17 -0
- package/catalog/cards/G9ShortcutList.md +4 -0
- package/catalog/cards/G9ShortcutsSheet.md +3 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/cards/G9WallpaperSwatch.md +16 -0
- package/catalog/cards/G9WidgetSkeleton.md +9 -0
- package/catalog/cards/G9WidgetSlot.md +13 -0
- package/catalog/cards/PopupFrame.md +2 -2
- package/catalog/catalog.json +6987 -446
- package/catalog/index.md +18 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +264 -0
- package/dist/appearance/appearance.css.map +1 -0
- package/dist/appearance/appearance.d.ts +148 -0
- package/dist/appearance/appearance.d.ts.map +1 -0
- package/dist/appearance/appearance.jsx +604 -0
- package/dist/appearance/index.d.ts +2 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.jsx +1 -0
- package/dist/base/control.d.ts +15 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +13 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +1 -1
- package/dist/button/button.css +4 -0
- package/dist/button/button.css.map +1 -1
- package/dist/cascade/cascade.css +2 -0
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +46 -0
- package/dist/commands/commands.css.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.jsx +2 -2
- package/dist/commands/keys.d.ts +15 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.jsx +20 -1
- package/dist/commands/palette.d.ts +73 -7
- package/dist/commands/palette.d.ts.map +1 -1
- package/dist/commands/palette.jsx +174 -20
- package/dist/dashboard/dashboard.css +101 -0
- package/dist/dashboard/dashboard.css.map +1 -0
- package/dist/dashboard/dashboard.d.ts +73 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.jsx +297 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.jsx +2 -0
- package/dist/dashboard/model.d.ts +53 -0
- package/dist/dashboard/model.d.ts.map +1 -0
- package/dist/dashboard/model.jsx +76 -0
- package/dist/display/code.css +109 -0
- package/dist/display/code.css.map +1 -0
- package/dist/display/code.d.ts +43 -0
- package/dist/display/code.d.ts.map +1 -0
- package/dist/display/code.jsx +101 -0
- package/dist/display/extras.d.ts +7 -2
- package/dist/display/extras.d.ts.map +1 -1
- package/dist/display/extras.jsx +13 -4
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/display/motion-figures.css +2 -0
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -7
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/fields/extra-entries.css +1 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +2 -0
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +3 -2
- package/dist/header/header.css +2 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/carry-contexts.d.ts.map +1 -1
- package/dist/host/carry-contexts.jsx +22 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +2 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/gestures.d.ts +39 -6
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +284 -89
- package/dist/list/index.d.ts +3 -2
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +2 -1
- package/dist/list/keyboard.d.ts +50 -0
- package/dist/list/keyboard.d.ts.map +1 -0
- package/dist/list/keyboard.jsx +117 -0
- package/dist/list/list.css +28 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +3 -3
- package/dist/list/virtual-list.d.ts +27 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +49 -4
- package/dist/notifications/index.d.ts +3 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.jsx +2 -0
- package/dist/notifications/model.d.ts +47 -0
- package/dist/notifications/model.d.ts.map +1 -0
- package/dist/notifications/model.jsx +51 -0
- package/dist/notifications/notification-center.d.ts +98 -0
- package/dist/notifications/notification-center.d.ts.map +1 -0
- package/dist/notifications/notification-center.jsx +424 -0
- package/dist/notifications/notifications.css +266 -0
- package/dist/notifications/notifications.css.map +1 -0
- package/dist/orb/orb.css +2 -0
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/pickers.css +15 -0
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -0
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/plus-button/plus-button.d.ts.map +1 -1
- package/dist/plus-button/plus-button.jsx +2 -1
- package/dist/popover/popover.css +23 -1
- package/dist/popover/popover.css.map +1 -1
- package/dist/popover/popover.d.ts +14 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +73 -12
- package/dist/popover/position.d.ts +6 -2
- package/dist/popover/position.d.ts.map +1 -1
- package/dist/popover/position.jsx +15 -4
- package/dist/popup/popup.css +3 -0
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/keep-alive.d.ts +2 -0
- package/dist/provider/keep-alive.d.ts.map +1 -1
- package/dist/provider/keep-alive.jsx +3 -1
- package/dist/provider/provider.d.ts +6 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +22 -2
- package/dist/reader/index.d.ts +2 -0
- package/dist/reader/index.d.ts.map +1 -0
- package/dist/reader/index.jsx +1 -0
- package/dist/reader/reader.css +74 -0
- package/dist/reader/reader.css.map +1 -0
- package/dist/reader/reader.d.ts +76 -0
- package/dist/reader/reader.d.ts.map +1 -0
- package/dist/reader/reader.jsx +149 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.jsx +2 -0
- package/dist/route/path-navigator.css +219 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +49 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +176 -0
- package/dist/route/path-router.d.ts +185 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +369 -0
- package/dist/selection/selection.css +2 -0
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +9 -8
- package/dist/sheet/options.d.ts +6 -1
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -1
- package/dist/sheet/panel-frame.d.ts.map +1 -1
- package/dist/sheet/panel-frame.jsx +5 -4
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.d.ts.map +1 -1
- package/dist/sheet/sizing.jsx +1 -0
- package/dist/shell/shell.css +12 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +7 -5
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +9 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.jsx +5 -4
- package/dist/tab-bar/tab-bar.css +2 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +18 -5
- package/dist/toast/store.d.ts +22 -0
- package/dist/toast/store.d.ts.map +1 -1
- package/dist/toast/store.jsx +35 -3
- package/dist/toast/toast.css +22 -0
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +27 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +36 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +77 -13
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -1
- package/package.json +22 -2
- package/skills/g9-lynx-app/references/catalog-index.md +22 -6
- package/skills/g9-lynx-app/references/components/appearance.md +70 -0
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +4 -4
- package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
- package/skills/g9-lynx-app/references/components/canvas.md +33 -0
- package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
- package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
- package/skills/g9-lynx-app/references/components/commands.md +10 -2
- package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
- package/skills/g9-lynx-app/references/components/display-1.md +22 -21
- package/skills/g9-lynx-app/references/components/display-2.md +36 -39
- package/skills/g9-lynx-app/references/components/display-3.md +41 -2
- package/skills/g9-lynx-app/references/components/fields.md +3 -3
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +5 -3
- package/skills/g9-lynx-app/references/components/media-1.md +203 -0
- package/skills/g9-lynx-app/references/components/media-2.md +66 -0
- package/skills/g9-lynx-app/references/components/notifications.md +37 -0
- package/skills/g9-lynx-app/references/components/popover.md +4 -2
- package/skills/g9-lynx-app/references/components/popup.md +2 -2
- package/skills/g9-lynx-app/references/components/projects.md +73 -0
- package/skills/g9-lynx-app/references/components/provider.md +1 -1
- package/skills/g9-lynx-app/references/components/reader.md +37 -0
- package/skills/g9-lynx-app/references/components/richtext.md +54 -0
- package/skills/g9-lynx-app/references/components/route.md +18 -0
- package/skills/g9-lynx-app/references/components/shell.md +1 -1
- package/skills/g9-lynx-app/references/components/toggle.md +18 -1
- package/skills/g9-lynx-app/references/components/calendar.md +0 -128
- package/skills/g9-lynx-app/references/components/chat.md +0 -98
- package/skills/g9-lynx-app/references/components/media.md +0 -115
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from '@lynx-js/react';
|
|
2
|
+
import type { G9NavKind, G9PathEntry, G9PathPageProps, G9PathRouter, G9PathRouterState } from './path-router.js';
|
|
3
|
+
import './path-navigator.css';
|
|
4
|
+
/** The router's state (re-renders on every navigation). */
|
|
5
|
+
export declare function useG9PathRouter(router: G9PathRouter): G9PathRouterState;
|
|
6
|
+
/** A page loaded on demand (its own lazy bundle); `preload()` fetches it ahead (the tab roots after the first frame). */
|
|
7
|
+
export declare function g9LazyPage(load: () => Promise<{
|
|
8
|
+
readonly default: ComponentType<G9PathPageProps>;
|
|
9
|
+
}>, fallback?: ComponentType<G9PathPageProps>): ComponentType<G9PathPageProps> & {
|
|
10
|
+
preload: () => Promise<unknown>;
|
|
11
|
+
};
|
|
12
|
+
/** Where a drawn page is in the current move (2.5.9). */
|
|
13
|
+
export type G9PathPagePhase = 'enter' | 'leave' | 'under' | 'rest';
|
|
14
|
+
/** What `renderPage` learns about the page it wraps (2.5.9). */
|
|
15
|
+
export interface G9PathPageMotion {
|
|
16
|
+
/** The move that is running (or ran last). */
|
|
17
|
+
readonly kind: G9NavKind;
|
|
18
|
+
/** `enter` (arriving), `leave` (popped, drawn until it settles), `under` (receding below an arriving page), `rest`. */
|
|
19
|
+
readonly phase: G9PathPagePhase;
|
|
20
|
+
/** No motion (the navigator's `motion: 'none'` or `reducedMotion`). */
|
|
21
|
+
readonly reduced: boolean;
|
|
22
|
+
/** The app's own motion ended: a leaving page is forgotten, the move settles. */
|
|
23
|
+
onSettled(): void;
|
|
24
|
+
}
|
|
25
|
+
/** Props of {@link G9PathNavigator}. */
|
|
26
|
+
export interface G9PathNavigatorProps {
|
|
27
|
+
readonly router: G9PathRouter;
|
|
28
|
+
/** Lists beside their details (default the provider's layout: wide windows). */
|
|
29
|
+
readonly wide?: boolean;
|
|
30
|
+
/** Wraps each page (the app's frame for `route.layout`, its own motion by `motion.kind` / `motion.phase`). */
|
|
31
|
+
readonly renderPage?: (entry: G9PathEntry, page: ReactNode, pane: G9PathPageProps['pane'], motion: G9PathPageMotion) => ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* `auto` (default): the library's motion by kind. `custom`: none of the library's, `renderPage` animates and calls
|
|
34
|
+
* `onSettled` (the move settles after `leaveMs` at the latest). `none`: no motion at all.
|
|
35
|
+
*/
|
|
36
|
+
readonly motion?: 'auto' | 'custom' | 'none';
|
|
37
|
+
/** The device asks for less motion: same as `motion: 'none'`. */
|
|
38
|
+
readonly reducedMotion?: boolean;
|
|
39
|
+
/** The motion's length (ms). Default 280. */
|
|
40
|
+
readonly motionMs?: number;
|
|
41
|
+
/** How long a popped page may take to leave (ms) before the router forgets it. Default `motionMs` (0 with no motion). */
|
|
42
|
+
readonly leaveMs?: number;
|
|
43
|
+
/** The list was dragged to a new width (a resizable `master`; the app persists it and passes it back as `width`). */
|
|
44
|
+
readonly onMasterResize?: (pattern: string, width: number) => void;
|
|
45
|
+
readonly id?: string;
|
|
46
|
+
}
|
|
47
|
+
/** Draws the router: the top page (and the one parked under it), or a list and its detail side by side. */
|
|
48
|
+
export declare function G9PathNavigator(props: G9PathNavigatorProps): ReactNode;
|
|
49
|
+
//# sourceMappingURL=path-navigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-navigator.d.ts","sourceRoot":"","sources":["../../src/route/path-navigator.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,SAAS,EAMf,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,sBAAsB,CAAC;AAE9B,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,iBAAiB,CAKvE;AAED,yHAAyH;AACzH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,OAAO,CAAC;IAAE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAA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AE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB;AAyBD,2GAA2G;AAC3G,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,SAAS,CA+JtE"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Suspense, createElement, lazy, useEffect, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
2
|
+
import { useG9Direction, useG9Layout } from "../provider/hooks.jsx";
|
|
3
|
+
import { G9KeepAlive } from "../provider/keep-alive.jsx";
|
|
4
|
+
import "./path-navigator.css";
|
|
5
|
+
function useG9PathRouter(router) {
|
|
6
|
+
return useSyncExternalStore((l)=>router.subscribe(l), ()=>router.get());
|
|
7
|
+
}
|
|
8
|
+
function g9LazyPage(load, fallback) {
|
|
9
|
+
let pending = null;
|
|
10
|
+
const once = ()=>{
|
|
11
|
+
null != pending || (pending = load());
|
|
12
|
+
return pending;
|
|
13
|
+
};
|
|
14
|
+
const Lazy = lazy(once);
|
|
15
|
+
const Page = (props)=>createElement(Suspense, {
|
|
16
|
+
fallback: fallback ? createElement(fallback, props) : null
|
|
17
|
+
}, createElement(Lazy, props));
|
|
18
|
+
return Object.assign(Page, {
|
|
19
|
+
preload: once
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function draw(props, entry, pane, motion) {
|
|
23
|
+
const page = createElement(entry.route.component, {
|
|
24
|
+
params: entry.params,
|
|
25
|
+
url: entry.url,
|
|
26
|
+
pane,
|
|
27
|
+
state: entry.state
|
|
28
|
+
});
|
|
29
|
+
return props.renderPage ? props.renderPage(entry, page, pane, motion) : page;
|
|
30
|
+
}
|
|
31
|
+
function motionClass(kind, phase, rtl) {
|
|
32
|
+
const side = rtl ? '-rtl' : '';
|
|
33
|
+
if ('leave' === phase) return ` g9-pathnav__page--over g9-pathnav__page--out${side}`;
|
|
34
|
+
if ('under' === phase) return ` g9-pathnav__page--under g9-pathnav__page--recede${side}`;
|
|
35
|
+
if ('enter' !== phase) return '';
|
|
36
|
+
if ('forward' === kind) return ` g9-pathnav__page--in${side}`;
|
|
37
|
+
if ('back' === kind) return ` g9-pathnav__page--return${side}`;
|
|
38
|
+
if ('detail' === kind) return ' g9-pathnav__page--fade';
|
|
39
|
+
return ' g9-pathnav__page--rise';
|
|
40
|
+
}
|
|
41
|
+
function G9PathNavigator(props) {
|
|
42
|
+
var _props_wide, _props_motion, _props_motionMs, _props_leaveMs;
|
|
43
|
+
const state = useG9PathRouter(props.router);
|
|
44
|
+
const layout = useG9Layout();
|
|
45
|
+
const rtl = 'rtl' === useG9Direction();
|
|
46
|
+
const wide = null != (_props_wide = props.wide) ? _props_wide : layout.wide;
|
|
47
|
+
const mode = props.reducedMotion ? 'none' : null != (_props_motion = props.motion) ? _props_motion : 'auto';
|
|
48
|
+
const reduced = 'none' === mode;
|
|
49
|
+
const ms = reduced ? 0 : null != (_props_motionMs = props.motionMs) ? _props_motionMs : 280;
|
|
50
|
+
const leaveMs = reduced ? 0 : null != (_props_leaveMs = props.leaveMs) ? _props_leaveMs : ms;
|
|
51
|
+
const [settled, setSettled] = useState(state.version);
|
|
52
|
+
const moving = !reduced && settled !== state.version && 'none' !== state.kind;
|
|
53
|
+
const leaving = state.leaving;
|
|
54
|
+
const version = useRef(state.version);
|
|
55
|
+
version.current = state.version;
|
|
56
|
+
const settle = ()=>setSettled(version.current);
|
|
57
|
+
const [dragged, setDragged] = useState(null);
|
|
58
|
+
const drag = useRef(null);
|
|
59
|
+
useEffect(()=>{
|
|
60
|
+
if (!moving) {
|
|
61
|
+
if (settled !== state.version) setSettled(state.version);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const timer = setTimeout(()=>setSettled(state.version), Math.max(ms, leaveMs));
|
|
65
|
+
return ()=>clearTimeout(timer);
|
|
66
|
+
}, [
|
|
67
|
+
state.version,
|
|
68
|
+
moving
|
|
69
|
+
]);
|
|
70
|
+
useEffect(()=>{
|
|
71
|
+
if (!leaving) return;
|
|
72
|
+
const timer = setTimeout(()=>props.router.clearLeaving(leaving.key), leaveMs);
|
|
73
|
+
return ()=>clearTimeout(timer);
|
|
74
|
+
}, [
|
|
75
|
+
null == leaving ? void 0 : leaving.key
|
|
76
|
+
]);
|
|
77
|
+
const info = (phase, onSettled = settle)=>({
|
|
78
|
+
kind: state.kind,
|
|
79
|
+
phase,
|
|
80
|
+
reduced,
|
|
81
|
+
onSettled
|
|
82
|
+
});
|
|
83
|
+
const motionOf = (phase)=>'auto' === mode ? motionClass(state.kind, phase, rtl) : '';
|
|
84
|
+
const timing = 'auto' === mode && 280 !== ms ? {
|
|
85
|
+
style: {
|
|
86
|
+
animationDuration: `${ms}ms`
|
|
87
|
+
}
|
|
88
|
+
} : {};
|
|
89
|
+
const top = state.stack[state.stack.length - 1];
|
|
90
|
+
const root = {
|
|
91
|
+
className: `g9-pathnav g9-pathnav--${state.kind}`,
|
|
92
|
+
...props.id ? {
|
|
93
|
+
id: props.id
|
|
94
|
+
} : {}
|
|
95
|
+
};
|
|
96
|
+
if (!top) return <view {...root}/>;
|
|
97
|
+
const masterPattern = top.route.master ? top.route.pattern : top.route.detailOf;
|
|
98
|
+
const masterRoute = masterPattern ? props.router.routeByPattern(masterPattern) : null;
|
|
99
|
+
if (wide && (null == masterRoute ? void 0 : masterRoute.master)) {
|
|
100
|
+
var _options_width, _options_width1;
|
|
101
|
+
const below = [
|
|
102
|
+
...state.stack
|
|
103
|
+
].reverse().find((e)=>e.route.pattern === masterRoute.pattern);
|
|
104
|
+
const master = null != below ? below : {
|
|
105
|
+
key: -1,
|
|
106
|
+
url: props.router.match(masterRoute.pattern).url,
|
|
107
|
+
params: {},
|
|
108
|
+
route: masterRoute,
|
|
109
|
+
state: {}
|
|
110
|
+
};
|
|
111
|
+
const options = masterRoute.master;
|
|
112
|
+
const Empty = options.empty;
|
|
113
|
+
const width = 'tablet' === layout.layout && void 0 !== options.tabletWidth ? Math.min(null != (_options_width = options.width) ? _options_width : 320, options.tabletWidth) : null != (_options_width1 = options.width) ? _options_width1 : 320;
|
|
114
|
+
const list = <view key={`m${master.key}`} className="g9-pathnav__master">
|
|
115
|
+
{draw(props, master, 'master', info('rest'))}
|
|
116
|
+
</view>;
|
|
117
|
+
const detail = top.route.master ? Empty ? <Empty/> : null : <view key={`d${top.key}`} className={`g9-pathnav__page${moving ? motionOf('enter') : ''}`} {...moving ? timing : {}}>
|
|
118
|
+
{draw(props, top, 'detail', info(moving ? 'enter' : 'rest'))}
|
|
119
|
+
</view>;
|
|
120
|
+
return <view {...root}>
|
|
121
|
+
<view className="g9-pathnav__split" style={{
|
|
122
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
123
|
+
direction: 'ltr'
|
|
124
|
+
}}>
|
|
125
|
+
<view className="g9-pathnav__master-pane" style={{
|
|
126
|
+
width: `${options.resizable ? null != dragged ? dragged : width : width}px`,
|
|
127
|
+
...options.resizable ? {} : {
|
|
128
|
+
[rtl ? 'borderLeft' : 'borderRight']: '1px solid var(--g9-divider)'
|
|
129
|
+
}
|
|
130
|
+
}}>
|
|
131
|
+
{list}
|
|
132
|
+
</view>
|
|
133
|
+
{options.resizable ? <view className="g9-pathnav__handle" bindtouchstart={(e)=>{
|
|
134
|
+
var _ref;
|
|
135
|
+
var _e_touches_, _e_touches;
|
|
136
|
+
drag.current = {
|
|
137
|
+
x: null != (_ref = null == (_e_touches = e.touches) ? void 0 : null == (_e_touches_ = _e_touches[0]) ? void 0 : _e_touches_.pageX) ? _ref : 0,
|
|
138
|
+
size: null != dragged ? dragged : width
|
|
139
|
+
};
|
|
140
|
+
}} bindtouchmove={(e)=>{
|
|
141
|
+
var _ref, _options_maxWidth, _options_minWidth;
|
|
142
|
+
var _e_touches_, _e_touches;
|
|
143
|
+
if (!drag.current) return;
|
|
144
|
+
const dx = (null != (_ref = null == (_e_touches = e.touches) ? void 0 : null == (_e_touches_ = _e_touches[0]) ? void 0 : _e_touches_.pageX) ? _ref : 0) - drag.current.x;
|
|
145
|
+
const next = Math.min(null != (_options_maxWidth = options.maxWidth) ? _options_maxWidth : 560, Math.max(null != (_options_minWidth = options.minWidth) ? _options_minWidth : 240, drag.current.size + (rtl ? -dx : dx)));
|
|
146
|
+
setDragged(next);
|
|
147
|
+
}} bindtouchend={()=>{
|
|
148
|
+
var _props_onMasterResize;
|
|
149
|
+
drag.current = null;
|
|
150
|
+
if (null !== dragged) null == (_props_onMasterResize = props.onMasterResize) || _props_onMasterResize.call(props, masterRoute.pattern, dragged);
|
|
151
|
+
}}>
|
|
152
|
+
<view className="g9-pathnav__grip"/>
|
|
153
|
+
</view> : null}
|
|
154
|
+
<view className="g9-pathnav__detail">{detail}</view>
|
|
155
|
+
</view>
|
|
156
|
+
</view>;
|
|
157
|
+
}
|
|
158
|
+
const parked = state.stack.length > 1 ? state.stack[state.stack.length - 2] : null;
|
|
159
|
+
const underMoving = moving && 'forward' === state.kind && null !== parked;
|
|
160
|
+
const shownLeaving = leaving && !reduced && leaving.key !== top.key ? leaving : null;
|
|
161
|
+
return <view {...root}>
|
|
162
|
+
{parked ? <G9KeepAlive key={`p${parked.key}`} active={underMoving} className={`g9-pathnav__page${underMoving ? motionOf('under') : ''}`} {...underMoving ? timing : {}}>
|
|
163
|
+
{draw(props, parked, 'full', info(underMoving ? 'under' : 'rest'))}
|
|
164
|
+
</G9KeepAlive> : null}
|
|
165
|
+
<G9KeepAlive key={`p${top.key}`} active className={`g9-pathnav__page${moving ? motionOf('enter') : ''}`} {...moving ? timing : {}}>
|
|
166
|
+
{draw(props, top, 'full', info(moving ? 'enter' : 'rest'))}
|
|
167
|
+
</G9KeepAlive>
|
|
168
|
+
{shownLeaving ? <G9KeepAlive key={`p${shownLeaving.key}`} active className={`g9-pathnav__page${motionOf('leave')}`} {...timing}>
|
|
169
|
+
{draw(props, shownLeaving, 'full', info('leave', ()=>{
|
|
170
|
+
props.router.clearLeaving(shownLeaving.key);
|
|
171
|
+
settle();
|
|
172
|
+
}))}
|
|
173
|
+
</G9KeepAlive> : null}
|
|
174
|
+
</view>;
|
|
175
|
+
}
|
|
176
|
+
export { G9PathNavigator, g9LazyPage, useG9PathRouter };
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type { ComponentType } from '@lynx-js/react';
|
|
2
|
+
import type { G9ReadableStore } from './router.js';
|
|
3
|
+
/** The move a navigation was (the navigator picks its motion). */
|
|
4
|
+
export type G9NavKind = 'none' | 'tab' | 'forward' | 'back' | 'detail' | 'section' | 'fade';
|
|
5
|
+
/** A parsed path. */
|
|
6
|
+
export interface G9PageUrl {
|
|
7
|
+
readonly pathname: string;
|
|
8
|
+
readonly search: string;
|
|
9
|
+
readonly hash: string;
|
|
10
|
+
readonly href: string;
|
|
11
|
+
readonly searchParams: URLSearchParams;
|
|
12
|
+
/** The router's `origin` (2.5.9; `''` by default, as G9Hub's ported pages expect). */
|
|
13
|
+
readonly origin: string;
|
|
14
|
+
}
|
|
15
|
+
/** What a page receives. */
|
|
16
|
+
export interface G9PathPageProps {
|
|
17
|
+
readonly params: Readonly<Record<string, string>>;
|
|
18
|
+
readonly url: G9PageUrl;
|
|
19
|
+
/** `full` (the whole content area), `master` (the list pane beside its details) or `detail` (beside the list). */
|
|
20
|
+
readonly pane: 'full' | 'master' | 'detail';
|
|
21
|
+
readonly state: Readonly<Record<string, unknown>>;
|
|
22
|
+
}
|
|
23
|
+
/** A list page that keeps its place beside its detail pages on wide windows. */
|
|
24
|
+
export interface G9MasterOptions {
|
|
25
|
+
/** The list's width (dp). Default 320. */
|
|
26
|
+
readonly width?: number;
|
|
27
|
+
/** The list's width can be dragged (2.5.9; G9SplitPane's handle, between `minWidth` and `maxWidth`). */
|
|
28
|
+
readonly resizable?: boolean;
|
|
29
|
+
/** Narrowest a dragged list gets (dp). Default 240. */
|
|
30
|
+
readonly minWidth?: number;
|
|
31
|
+
/** Widest a dragged list gets (dp). Default 560. */
|
|
32
|
+
readonly maxWidth?: number;
|
|
33
|
+
/** The list's width on tablets is at most this (dp; G9Hub 300). Default: no cap. */
|
|
34
|
+
readonly tabletWidth?: number;
|
|
35
|
+
/** In the content pane while no detail is open («Pick a conversation»). */
|
|
36
|
+
readonly empty?: ComponentType<Record<string, never>>;
|
|
37
|
+
}
|
|
38
|
+
/** One route. */
|
|
39
|
+
export interface G9PathRoute {
|
|
40
|
+
/** `/c/:id`, `/projects/:id/board`, `/automation/:id?` (an optional last part), `/admin/*` (the rest as `rest`). */
|
|
41
|
+
readonly pattern: string;
|
|
42
|
+
readonly component: ComponentType<G9PathPageProps>;
|
|
43
|
+
/** The app's frame for the page (`app`, `auth`, `bare`…). */
|
|
44
|
+
readonly layout?: string;
|
|
45
|
+
/** The tab / rail destination it belongs to. */
|
|
46
|
+
readonly section?: string;
|
|
47
|
+
/** The root page of its section (tab bar shown; a tab switch starts a fresh stack). */
|
|
48
|
+
readonly root?: boolean;
|
|
49
|
+
/** This page is a list with its details beside it on wide windows. */
|
|
50
|
+
readonly master?: G9MasterOptions;
|
|
51
|
+
/** The `pattern` of the master route this page opens beside on wide windows. */
|
|
52
|
+
readonly detailOf?: string;
|
|
53
|
+
/** Open without signing in. */
|
|
54
|
+
readonly public?: boolean;
|
|
55
|
+
/** What it is (G9AppPilot's places). */
|
|
56
|
+
readonly describe?: string;
|
|
57
|
+
}
|
|
58
|
+
/** One page in the stack. */
|
|
59
|
+
export interface G9PathEntry {
|
|
60
|
+
readonly key: number;
|
|
61
|
+
readonly url: G9PageUrl;
|
|
62
|
+
readonly params: Readonly<Record<string, string>>;
|
|
63
|
+
readonly route: G9PathRoute;
|
|
64
|
+
/** History state (`replaceState(url, state)`). */
|
|
65
|
+
readonly state: Readonly<Record<string, unknown>>;
|
|
66
|
+
}
|
|
67
|
+
/** A navigation about to happen (a `beforeNavigate` listener may cancel it). */
|
|
68
|
+
export interface G9Navigation {
|
|
69
|
+
readonly from: {
|
|
70
|
+
readonly url: G9PageUrl;
|
|
71
|
+
readonly params: Readonly<Record<string, string>>;
|
|
72
|
+
} | null;
|
|
73
|
+
readonly to: {
|
|
74
|
+
readonly url: G9PageUrl;
|
|
75
|
+
readonly params: Readonly<Record<string, string>>;
|
|
76
|
+
};
|
|
77
|
+
readonly type: 'goto' | 'popstate';
|
|
78
|
+
cancel(): void;
|
|
79
|
+
}
|
|
80
|
+
/** What the navigator draws. */
|
|
81
|
+
export interface G9PathRouterState {
|
|
82
|
+
/** Bottom to top. */
|
|
83
|
+
readonly stack: readonly G9PathEntry[];
|
|
84
|
+
readonly kind: G9NavKind;
|
|
85
|
+
/** Grows on every navigation. */
|
|
86
|
+
readonly version: number;
|
|
87
|
+
/** The page just popped, still leaving (the navigator clears it after its motion). */
|
|
88
|
+
readonly leaving: G9PathEntry | null;
|
|
89
|
+
}
|
|
90
|
+
/** `goto`'s options. */
|
|
91
|
+
export interface G9GotoOptions {
|
|
92
|
+
readonly replaceState?: boolean;
|
|
93
|
+
readonly state?: Record<string, unknown>;
|
|
94
|
+
/** Accepted and ignored (SvelteKit's `goto` options, so ported calls type-check; 2.5.9). */
|
|
95
|
+
readonly noScroll?: boolean;
|
|
96
|
+
/** Accepted and ignored (SvelteKit). */
|
|
97
|
+
readonly keepFocus?: boolean;
|
|
98
|
+
/** Accepted and ignored (SvelteKit). */
|
|
99
|
+
readonly invalidateAll?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** Options of {@link createG9PathRouter}. */
|
|
102
|
+
export interface G9PathRouterOptions {
|
|
103
|
+
/** More specific patterns first. */
|
|
104
|
+
readonly routes: readonly G9PathRoute[];
|
|
105
|
+
/** For a path no route takes. */
|
|
106
|
+
readonly notFound: G9PathRoute;
|
|
107
|
+
/** Each section's root path (default: the pattern of the section's first `root` route). */
|
|
108
|
+
readonly sectionRoots?: Readonly<Record<string, string>>;
|
|
109
|
+
/** Wide windows put details beside their list (default false: phones). */
|
|
110
|
+
readonly isWide?: () => boolean;
|
|
111
|
+
/** The web host mirrors the stack into the browser history. */
|
|
112
|
+
readonly history?: (path: string, replace: boolean) => void;
|
|
113
|
+
/** Native hosts learn whether back belongs to the page. */
|
|
114
|
+
readonly onChange?: (canGoBack: boolean) => void;
|
|
115
|
+
/**
|
|
116
|
+
* The page the first frame draws before the app's first `goto` (2.5.9; a slow boot, IFR): seeded as entry 0, so the
|
|
117
|
+
* page stays mounted when the first `goto` lands on the same route (what was typed meanwhile is kept).
|
|
118
|
+
*/
|
|
119
|
+
readonly initialPath?: string;
|
|
120
|
+
/** Every page URL's `origin` (default `''`). */
|
|
121
|
+
readonly origin?: string;
|
|
122
|
+
}
|
|
123
|
+
/** A path router (a store the navigator reads). */
|
|
124
|
+
export interface G9PathRouter extends G9ReadableStore<G9PathRouterState> {
|
|
125
|
+
match(href: string): {
|
|
126
|
+
readonly route: G9PathRoute;
|
|
127
|
+
readonly params: Record<string, string>;
|
|
128
|
+
readonly url: G9PageUrl;
|
|
129
|
+
};
|
|
130
|
+
/** Navigates; false when a guard cancelled it. */
|
|
131
|
+
goto(href: string, options?: G9GotoOptions): Promise<boolean>;
|
|
132
|
+
/** Pops the top page; false when there is nothing to go back to (the host may leave the app). */
|
|
133
|
+
back(): boolean;
|
|
134
|
+
/** Shallow: the top entry's address and state change without a move (filters, an open sheet). */
|
|
135
|
+
replaceState(href: string, state?: Record<string, unknown>): void;
|
|
136
|
+
beforeNavigate(listener: (navigation: G9Navigation) => void): () => void;
|
|
137
|
+
afterNavigate(listener: (navigation: Omit<G9Navigation, 'cancel'>) => void): () => void;
|
|
138
|
+
/** Another host's history and back reporting. */
|
|
139
|
+
configureHost(options: {
|
|
140
|
+
readonly history?: (path: string, replace: boolean) => void;
|
|
141
|
+
readonly onChange?: (canGoBack: boolean) => void;
|
|
142
|
+
}): void;
|
|
143
|
+
routeByPattern(pattern: string): G9PathRoute | null;
|
|
144
|
+
sectionRoot(section: string): string;
|
|
145
|
+
/** The top entry's address (`/`). */
|
|
146
|
+
currentPath(): string;
|
|
147
|
+
readonly page: {
|
|
148
|
+
readonly url: G9PageUrl;
|
|
149
|
+
readonly params: Readonly<Record<string, string>>;
|
|
150
|
+
readonly state: Readonly<Record<string, unknown>>;
|
|
151
|
+
readonly route: string | null;
|
|
152
|
+
};
|
|
153
|
+
/** The navigator says the leaving page finished its motion. */
|
|
154
|
+
clearLeaving(key: number): void;
|
|
155
|
+
isWide(): boolean;
|
|
156
|
+
/** For G9AppPilot's `registerG9Router`: where, go and the places (patterns with a `:` need an id). */
|
|
157
|
+
pilot(): {
|
|
158
|
+
where(): {
|
|
159
|
+
readonly unique: string;
|
|
160
|
+
readonly pattern: string | null;
|
|
161
|
+
readonly section: string | null;
|
|
162
|
+
readonly depth: number;
|
|
163
|
+
};
|
|
164
|
+
go(address: string): Promise<{
|
|
165
|
+
readonly ok: boolean;
|
|
166
|
+
readonly at: string;
|
|
167
|
+
}>;
|
|
168
|
+
places(): readonly {
|
|
169
|
+
readonly address: string;
|
|
170
|
+
readonly kind: string;
|
|
171
|
+
readonly describe?: string;
|
|
172
|
+
readonly needsId: boolean;
|
|
173
|
+
}[];
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/** Parses `/c/42?msg=7#top` (`origin`: the URL's origin, default `''`). */
|
|
177
|
+
export declare function g9ParsePath(href: string, origin?: string): G9PageUrl;
|
|
178
|
+
/** A pattern as a regular expression and its parameter names. */
|
|
179
|
+
export declare function g9CompilePattern(pattern: string): {
|
|
180
|
+
readonly regex: RegExp;
|
|
181
|
+
readonly names: readonly string[];
|
|
182
|
+
};
|
|
183
|
+
/** Creates a path router. */
|
|
184
|
+
export declare function createG9PathRouter(options: G9PathRouterOptions): G9PathRouter;
|
|
185
|
+
//# sourceMappingURL=path-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-router.d.ts","sourceRoot":"","sources":["../../src/route/path-router.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MA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