Files
rspade_system/node_modules/@jqhtml/router/dist/layout.d.ts
root 84ca3dfe42 Fix code quality violations and rename select input components
Move small tasks from wishlist to todo, update npm packages
Replace #[Auth] attributes with manual auth checks and code quality rule
Remove on_jqhtml_ready lifecycle method from framework
Complete ACL system with 100-based role indexing and /dev/acl tester
WIP: ACL system implementation with debug instrumentation
Convert rsx:check JS linting to RPC socket server
Clean up docs and fix $id→$sid in man pages, remove SSR/FPC feature
Reorganize wishlists: priority order, mark sublayouts complete, add email
Update model_fetch docs: mark MVP complete, fix enum docs, reorganize
Comprehensive documentation overhaul: clarity, compression, and critical rules
Convert Contacts/Projects CRUD to Model.fetch() and add fetch_or_null()
Add JS ORM relationship lazy-loading and fetch array handling
Add JS ORM relationship fetching and CRUD documentation
Fix ORM hydration and add IDE resolution for Base_* model stubs
Rename Json_Tree_Component to JS_Tree_Debug_Component and move to framework
Enhance JS ORM infrastructure and add Json_Tree class name badges

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 21:39:43 +00:00

51 lines
1.7 KiB
TypeScript

/**
* Base class for layout components in JQHTML Router v2
*/
import { Jqhtml_Component } from '@jqhtml/core';
import type { RouteInfo } from './types.js';
declare module '@jqhtml/core' {
interface Jqhtml_Component {
_is_layout?: boolean;
}
}
export declare class Jqhtml_Layout extends Jqhtml_Component {
static layout?: string;
_is_layout: boolean;
constructor(options?: any);
/**
* Called when the route changes within the same layout
* Override this to update layout state (e.g., active navigation items)
*/
on_route_change(old_route: RouteInfo | null, new_route: RouteInfo): Promise<void>;
/**
* Called before dispatching to a new route
* Can cancel navigation by returning false or redirect by returning a URL
*/
pre_dispatch(route_info: RouteInfo): Promise<boolean | string>;
/**
* Called after a route has fully loaded
* Can trigger redirects for post-load logic
*/
post_dispatch(route_info: RouteInfo): Promise<void>;
/**
* Get the content container where routes render
* Must contain an element with $sid="content"
*/
$content(): JQuery;
/**
* Internal method to render a route into this layout
* Called by the router during dispatch
*/
_render_route(route_component: any): Promise<void>;
/**
* Override on_render for custom layout rendering
* By default does nothing - layouts should override this or use templates
*/
on_render(): Promise<void>;
/**
* Layouts should never re-render after initial load
* They persist across route changes
*/
should_rerender(): boolean;
}
//# sourceMappingURL=layout.d.ts.map