@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
32 lines (31 loc) • 1.07 kB
TypeScript
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
export default class SwipeUpPanelMobile extends GirafeHTMLElement {
protected templateUrl: string | null;
protected styleUrls: string[] | null;
template: () => import("uhtml").Hole;
private container;
private middleContainer;
private pointerYOrigin;
private containerTopStart;
private isPointerDown;
private pointerVelocity;
private previousPointerY;
private previousMoveTimestamp;
private resizeObserver;
constructor();
protected connectedCallback(): void;
/**
* Adds the capability to adjust the swipeup panel size when the mobile virtual keyboard shows up
*/
private setupResizeObserver;
/**
* Update the state of the panel in an animated way
* @param mode
*/
private animateToMode;
private adjustMiddleContainerToContent;
swipeHandleOnPointerDown(e: PointerEvent): void;
swipeHandleOnPointerUp(): void;
swipeHandleOnPointerMove(e: PointerEvent): void;
closeButtonOnPointerDown(): void;
}