mirror of
https://github.com/flarum/core.git
synced 2025-08-09 01:46:35 +02:00
Bundled output for commit eaf1b86785
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
28
js/dist-typings/common/utils/Drawer.d.ts
vendored
28
js/dist-typings/common/utils/Drawer.d.ts
vendored
@@ -4,10 +4,36 @@
|
||||
* footer.
|
||||
*/
|
||||
export default class Drawer {
|
||||
/**
|
||||
* @type {import('./focusTrap').FocusTrap}
|
||||
*/
|
||||
focusTrap: import('./focusTrap').FocusTrap;
|
||||
/**
|
||||
* @type {HTMLDivElement}
|
||||
*/
|
||||
appElement: HTMLDivElement;
|
||||
/**
|
||||
* @internal
|
||||
* @type {MediaQueryList}
|
||||
*/
|
||||
drawerAvailableMediaQuery: MediaQueryList;
|
||||
/**
|
||||
* Handler for the `resize` event on `window`.
|
||||
*
|
||||
* This is used to close the drawer when the viewport is widened past the `phone` size.
|
||||
* At this point, the drawer turns into the standard header that we see on desktop, but
|
||||
* the drawer is still registered as 'open' internally.
|
||||
*
|
||||
* This causes issues with the focus trap, resulting in focus becoming trapped within
|
||||
* the header on desktop viewports.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
resizeHandler: (e: any) => void;
|
||||
/**
|
||||
* Check whether or not the drawer is currently open.
|
||||
*
|
||||
* @return {Boolean}
|
||||
* @return {boolean}
|
||||
* @public
|
||||
*/
|
||||
public isOpen(): boolean;
|
||||
|
Reference in New Issue
Block a user