| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- // Generated by dts-bundle v0.7.3
- // Dependencies for this module:
- // ../../@material/base/types
- // ../../@material/base/component
- // ../../@material/base/foundation
- declare module '@material/ripple' {
- /**
- * @license
- * Copyright 2019 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 * as util from '@material/ripple/util';
- export { util };
- export * from '@material/ripple/adapter';
- export * from '@material/ripple/component';
- export * from '@material/ripple/constants';
- export * from '@material/ripple/foundation';
- export * from '@material/ripple/types';
- }
- declare module '@material/ripple/util' {
- /**
- * @license
- * Copyright 2016 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 { MDCRipplePoint } from '@material/ripple/types';
- export function supportsCssVariables(windowObj: Window, forceRefresh?: boolean): boolean;
- export function getNormalizedEventCoords(evt: Event | undefined, pageOffset: MDCRipplePoint, clientRect: ClientRect): MDCRipplePoint;
- }
- declare module '@material/ripple/adapter' {
- /**
- * @license
- * Copyright 2016 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 { EventType, SpecificEventListener } from '@material/base/types';
- import { MDCRipplePoint } from '@material/ripple/types';
- /**
- * Defines the shape of the adapter expected by the foundation.
- * Implement this adapter for your framework of choice to delegate updates to
- * the component in your framework of choice. See architecture documentation
- * for more details.
- * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
- */
- export interface MDCRippleAdapter {
- browserSupportsCssVars(): boolean;
- isUnbounded(): boolean;
- isSurfaceActive(): boolean;
- isSurfaceDisabled(): boolean;
- addClass(className: string): void;
- removeClass(className: string): void;
- containsEventTarget(target: EventTarget | null): boolean;
- registerInteractionHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
- deregisterInteractionHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
- registerDocumentInteractionHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
- deregisterDocumentInteractionHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
- registerResizeHandler(handler: SpecificEventListener<'resize'>): void;
- deregisterResizeHandler(handler: SpecificEventListener<'resize'>): void;
- updateCssVariable(varName: string, value: string | null): void;
- computeBoundingRect(): ClientRect;
- getWindowPageOffset(): MDCRipplePoint;
- }
- }
- declare module '@material/ripple/component' {
- /**
- * @license
- * Copyright 2016 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 { MDCComponent } from '@material/base/component';
- import { MDCRippleAdapter } from '@material/ripple/adapter';
- import { MDCRippleFoundation } from '@material/ripple/foundation';
- import { MDCRippleAttachOpts, MDCRippleCapableSurface } from '@material/ripple/types';
- export type MDCRippleFactory = (el: Element, foundation?: MDCRippleFoundation) => MDCRipple;
- export class MDCRipple extends MDCComponent<MDCRippleFoundation> implements MDCRippleCapableSurface {
- static attachTo(root: Element, opts?: MDCRippleAttachOpts): MDCRipple;
- static createAdapter(instance: MDCRippleCapableSurface): MDCRippleAdapter;
- root_: Element;
- disabled: boolean;
- unbounded: boolean;
- activate(): void;
- deactivate(): void;
- layout(): void;
- getDefaultFoundation(): MDCRippleFoundation;
- initialSyncWithDOM(): void;
- }
- }
- declare module '@material/ripple/constants' {
- /**
- * @license
- * Copyright 2016 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.
- */
- export const cssClasses: {
- BG_FOCUSED: string;
- FG_ACTIVATION: string;
- FG_DEACTIVATION: string;
- ROOT: string;
- UNBOUNDED: string;
- };
- export const strings: {
- VAR_FG_SCALE: string;
- VAR_FG_SIZE: string;
- VAR_FG_TRANSLATE_END: string;
- VAR_FG_TRANSLATE_START: string;
- VAR_LEFT: string;
- VAR_TOP: string;
- };
- export const numbers: {
- DEACTIVATION_TIMEOUT_MS: number;
- FG_DEACTIVATION_MS: number;
- INITIAL_ORIGIN_SCALE: number;
- PADDING: number;
- TAP_DELAY_MS: number;
- };
- }
- declare module '@material/ripple/foundation' {
- /**
- * @license
- * Copyright 2016 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 { MDCRippleAdapter } from '@material/ripple/adapter';
- export class MDCRippleFoundation extends MDCFoundation<MDCRippleAdapter> {
- static readonly cssClasses: {
- BG_FOCUSED: string;
- FG_ACTIVATION: string;
- FG_DEACTIVATION: string;
- ROOT: string;
- UNBOUNDED: string;
- };
- static readonly strings: {
- VAR_FG_SCALE: string;
- VAR_FG_SIZE: string;
- VAR_FG_TRANSLATE_END: string;
- VAR_FG_TRANSLATE_START: string;
- VAR_LEFT: string;
- VAR_TOP: string;
- };
- static readonly numbers: {
- DEACTIVATION_TIMEOUT_MS: number;
- FG_DEACTIVATION_MS: number;
- INITIAL_ORIGIN_SCALE: number;
- PADDING: number;
- TAP_DELAY_MS: number;
- };
- static readonly defaultAdapter: MDCRippleAdapter;
- constructor(adapter?: Partial<MDCRippleAdapter>);
- init(): void;
- destroy(): void;
- /**
- * @param evt Optional event containing position information.
- */
- activate(evt?: Event): void;
- deactivate(): void;
- layout(): void;
- setUnbounded(unbounded: boolean): void;
- handleFocus(): void;
- handleBlur(): void;
- }
- export default MDCRippleFoundation;
- }
- declare module '@material/ripple/types' {
- /**
- * @license
- * Copyright 2019 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.
- */
- export interface MDCRipplePoint {
- x: number;
- y: number;
- }
- /**
- * Options passed in when attaching a ripple to an object.
- */
- export interface MDCRippleAttachOpts {
- isUnbounded?: boolean;
- }
- /**
- * See Material Design spec for more details on when to use ripples.
- * https://material.io/guidelines/motion/choreography.html#choreography-creation
- * unbounded Whether or not the ripple bleeds out of the bounds of the element.
- * disabled Whether or not the ripple is attached to a disabled component.
- */
- export interface MDCRippleCapableSurface {
- readonly root_: Element;
- unbounded?: boolean;
- disabled?: boolean;
- }
- }
|