File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/@material/snackbar/foundation.d.ts
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
import { MDCFoundation } from '@material/base/foundation';
import { MDCSnackbarAdapter } from './adapter';
/** MDC Snackbar Foundation */
export declare class MDCSnackbarFoundation extends MDCFoundation<MDCSnackbarAdapter> {
static get cssClasses(): {
CLOSING: string;
OPEN: string;
OPENING: string;
};
static get strings(): {
ACTION_SELECTOR: string;
CLOSED_EVENT: string;
CLOSING_EVENT: string;
DATA_LIVE_LABEL_TEXT: string;
DISMISS_SELECTOR: string;
LABEL_SELECTOR: string;
OPENED_EVENT: string;
OPENING_EVENT: string;
REASON_ACTION: string;
REASON_DISMISS: string;
REASON_SECONDARY_ACTION: string;
SURFACE_SELECTOR: string;
};
static get numbers(): {
DEFAULT_AUTO_DISMISS_TIMEOUT_MS: number;
INDETERMINATE: number;
MAX_AUTO_DISMISS_TIMEOUT_MS: number;
MIN_AUTO_DISMISS_TIMEOUT_MS: number;
SNACKBAR_ANIMATION_CLOSE_TIME_MS: number;
SNACKBAR_ANIMATION_OPEN_TIME_MS: number;
ARIA_LIVE_DELAY_MS: number;
};
static get defaultAdapter(): MDCSnackbarAdapter;
private opened;
private animationFrame;
private animationTimer;
private autoDismissTimer;
private autoDismissTimeoutMs;
private closeOnEscape;
constructor(adapter?: Partial<MDCSnackbarAdapter>);
destroy(): void;
open(): void;
/**
* @param reason Why the snackbar was closed. Value will be passed to
* CLOSING_EVENT and CLOSED_EVENT via the `event.detail.reason` property.
* Standard values are REASON_ACTION and REASON_DISMISS, but custom
* client-specific values may also be used if desired.
*/
close(reason?: string): void;
isOpen(): boolean;
getTimeoutMs(): number;
setTimeoutMs(timeoutMs: number): void;
getCloseOnEscape(): boolean;
setCloseOnEscape(closeOnEscape: boolean): void;
handleKeyDown(evt: KeyboardEvent): void;
handleActionButtonClick(_evt: MouseEvent): void;
handleActionIconClick(_evt: MouseEvent): void;
handleSecondaryActionButtonClick(_evt: MouseEvent): void;
private clearAutoDismissTimer;
private handleAnimationTimerEnd;
/**
* Runs the given logic on the next animation frame, using setTimeout to
* factor in Firefox reflow behavior.
*/
private runNextAnimationFrame;
}
export default MDCSnackbarFoundation;