UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

42 lines (41 loc) 1.51 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ declare type Writeable<T> = { -readonly [P in keyof T]-?: T[P]; }; /** * Extended CSSStyleDeclaration that includes a couple of drag-related * properties that aren't in the built-in TS typings. */ export interface DragCSSStyleDeclaration extends CSSStyleDeclaration { webkitUserDrag: string; MozUserSelect: string; msScrollSnapType: string; scrollSnapType: string; msUserSelect: string; } /** * Shallow-extends a stylesheet object with another stylesheet object. * @docs-private */ export declare function extendStyles(dest: Writeable<CSSStyleDeclaration>, source: Partial<DragCSSStyleDeclaration>): Writeable<CSSStyleDeclaration>; /** * Toggles whether the native drag interactions should be enabled for an element. * @param element Element on which to toggle the drag interactions. * @param enable Whether the drag interactions should be enabled. * @docs-private */ export declare function toggleNativeDragInteractions(element: HTMLElement, enable: boolean): void; /** * Toggles whether an element is visible while preserving its dimensions. * @param element Element whose visibility to toggle * @param enable Whether the element should be visible. * @docs-private */ export declare function toggleVisibility(element: HTMLElement, enable: boolean): void; export {};