1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Bundled output for commit eaf1b86785

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2021-11-21 19:49:09 +00:00
parent eaf1b86785
commit 9117747d41
13 changed files with 93 additions and 14 deletions

View File

@@ -40,6 +40,7 @@ declare var _default: {
'utils/withAttr': (key: string, cb: Function) => (this: Element) => void;
'utils/throttleDebounce': typeof import("../common/utils/throttleDebounce");
'utils/isObject': typeof import("../common/utils/isObject").default;
'utils/focusTrap': typeof import("../common/utils/focusTrap");
'models/Notification': typeof import("../common/models/Notification").default;
'models/User': typeof import("../common/models/User").default;
'models/Post': typeof import("../common/models/Post").default;

View File

@@ -32,9 +32,15 @@ export default class KeyboardNavigatable {
/**
* Provide a callback to be executed when the current item is selected..
*
* This will be triggered by the Return and Tab keys..
* This will be triggered by the Return key (and Tab key, if not disabled).
*/
onSelect(callback: KeyboardEventHandler): KeyboardNavigatable;
onSelect(callback: KeyboardEventHandler, ignoreTabPress?: boolean): KeyboardNavigatable;
/**
* Provide a callback to be executed when the current item is tabbed into.
*
* This will be triggered by the Tab key.
*/
onTab(callback: KeyboardEventHandler): KeyboardNavigatable;
/**
* Provide a callback to be executed when the navigation is canceled.
*
@@ -45,10 +51,6 @@ export default class KeyboardNavigatable {
* Provide a callback to be executed when previous input is removed.
*
* This will be triggered by the Backspace key.
*
* @public
* @param {KeyboardNavigatable~keyCallback} callback
* @return {KeyboardNavigatable}
*/
onRemove(callback: KeyboardEventHandler): KeyboardNavigatable;
/**
@@ -58,7 +60,7 @@ export default class KeyboardNavigatable {
/**
* Set up the navigation key bindings on the given jQuery element.
*/
bindTo($element: JQuery): void;
bindTo($element: JQuery<HTMLElement>): void;
/**
* Interpret the given keyboard event as navigation commands.
*/