1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /**
|
---|
9 | * Extended CSSStyleDeclaration that includes a couple of drag-related
|
---|
10 | * properties that aren't in the built-in TS typings.
|
---|
11 | */
|
---|
12 | export interface DragCSSStyleDeclaration extends CSSStyleDeclaration {
|
---|
13 | msScrollSnapType: string;
|
---|
14 | scrollSnapType: string;
|
---|
15 | }
|
---|
16 | /**
|
---|
17 | * Shallow-extends a stylesheet object with another stylesheet-like object.
|
---|
18 | * Note that the keys in `source` have to be dash-cased.
|
---|
19 | * @docs-private
|
---|
20 | */
|
---|
21 | export declare function extendStyles(dest: CSSStyleDeclaration, source: Record<string, string>, importantProperties?: Set<string>): CSSStyleDeclaration;
|
---|
22 | /**
|
---|
23 | * Toggles whether the native drag interactions should be enabled for an element.
|
---|
24 | * @param element Element on which to toggle the drag interactions.
|
---|
25 | * @param enable Whether the drag interactions should be enabled.
|
---|
26 | * @docs-private
|
---|
27 | */
|
---|
28 | export declare function toggleNativeDragInteractions(element: HTMLElement, enable: boolean): void;
|
---|
29 | /**
|
---|
30 | * Toggles whether an element is visible while preserving its dimensions.
|
---|
31 | * @param element Element whose visibility to toggle
|
---|
32 | * @param enable Whether the element should be visible.
|
---|
33 | * @param importantProperties Properties to be set as `!important`.
|
---|
34 | * @docs-private
|
---|
35 | */
|
---|
36 | export declare function toggleVisibility(element: HTMLElement, enable: boolean, importantProperties?: Set<string>): void;
|
---|
37 | /**
|
---|
38 | * Combines a transform string with an optional other transform
|
---|
39 | * that exited before the base transform was applied.
|
---|
40 | */
|
---|
41 | export declare function combineTransforms(transform: string, initialTransform?: string): string;
|
---|