ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
33 lines (32 loc) • 1.02 kB
TypeScript
import { EventManager } from '@/utils/builder';
import { RanElement } from '@/utils/index';
export declare class Route extends RanElement {
static get observedAttributes(): string[];
_events: EventManager;
_shadowDom: ShadowRoot;
_params: Record<string, string>;
private _mounted;
private _module;
private _disposePage;
private _pageHost;
private _mountToken;
constructor();
get path(): string;
set path(v: string);
get exact(): boolean;
/** Module specifier for lazy, code-split, mount/unmount page rendering. */
get src(): string;
set src(v: string);
get params(): Record<string, string>;
get sheet(): string;
set sheet(v: string);
handlerExternalCss: () => void;
_update(currentPath: string): void;
private _mount;
private _unmount;
_preSerialize(): void;
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, next: string): void;
}
export default Route;