Files
rspade_system/node_modules/@jqhtml/router/dist/layout.d.ts
root 78553d4edf Fix code quality violations for publish
Remove unused blade settings pages not linked from UI
Convert remaining frontend pages to SPA actions
Convert settings user_settings and general to SPA actions
Convert settings profile pages to SPA actions
Convert contacts and projects add/edit pages to SPA actions
Convert clients add/edit page to SPA action with loading pattern
Refactor component scoped IDs from $id to $sid
Fix jqhtml comment syntax and implement universal error component system
Update all application code to use new unified error system
Remove all backwards compatibility - unified error system complete
Phase 5: Remove old response classes
Phase 3-4: Ajax response handler sends new format, old helpers deprecated
Phase 2: Add client-side unified error foundation
Phase 1: Add server-side unified error foundation
Add unified Ajax error response system with constants

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 04:35:01 +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 $id="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