device-navigation
Version:
Navigate HTML elements in two dimensions with non-pointer devices.
129 lines (128 loc) • 5.44 kB
TypeScript
import { type NavAction, type NavigationResult } from './navigate.js';
declare const NavExitEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Exit>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Exit>, "nav-exit">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Exit>, "nav-exit">, "type">;
/**
* This event is emitted from `NavController` when a nav exit is triggered.
*
* @category Events
*/
export declare class NavExitEvent extends NavExitEvent_base {
}
declare const NavActivateEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Activate>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Activate>, "nav-activate">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Activate>, "nav-activate">, "type">;
/**
* This event is emitted from `NavController` when a nav activate is triggered.
*
* @category Events
*/
export declare class NavActivateEvent extends NavActivateEvent_base {
}
declare const NavFocusEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Focus>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Focus>, "nav-focus">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Focus>, "nav-focus">, "type">;
/**
* This event is emitted from `NavController` when a nav focus is triggered.
*
* @category Events
*/
export declare class NavFocusEvent extends NavFocusEvent_base {
}
declare const NavEnterEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Enter>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Enter>, "nav-enter">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Enter>, "nav-enter">, "type">;
/**
* This event is emitted from `NavController` when a nav enter is triggered.
*
* @category Events
*/
export declare class NavEnterEvent extends NavEnterEvent_base {
}
declare const NavigateEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Navigate>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Navigate>, "nav-navigate">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Navigate>, "nav-navigate">, "type">;
/**
* This event is emitted from `NavController` when a normal navigation is triggered.
*
* @category Events
*/
export declare class NavigateEvent extends NavigateEvent_base {
}
declare const NavPiblingEvent_base: (new (eventInitDict: {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
detail: NavigationResult<NavAction.Pibling>;
}) => import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Pibling>, "nav-navigate-pibling">) & Pick<{
new (type: string, eventInitDict?: EventInit): Event;
prototype: Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}, "prototype" | "NONE" | "CAPTURING_PHASE" | "AT_TARGET" | "BUBBLING_PHASE"> & Pick<import("typed-event-target").TypedCustomEvent<NavigationResult<NavAction.Pibling>, "nav-navigate-pibling">, "type">;
/**
* This event is emitted from `NavController` when a pibling navigation is triggered.
*
* @category Events
*/
export declare class NavPiblingEvent extends NavPiblingEvent_base {
}
/**
* All possible `NavController` events.
*
* @category Internal
*/
export type AllNavControllerEvents = NavExitEvent | NavEnterEvent | NavigateEvent | NavPiblingEvent | NavFocusEvent | NavActivateEvent;
export {};