UNPKG

1.28 kBTypeScriptView Raw
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 */
8import { ElementRef } from '@angular/core';
9import { BaseDirective2, StyleUtils, MediaMarshaller, StyleBuilder } from '@angular/flex-layout/core';
10export interface GridGapParent {
11 inline: boolean;
12}
13export declare class GridGapStyleBuilder extends StyleBuilder {
14 buildStyles(input: string, parent: GridGapParent): {
15 display: string;
16 'grid-gap': string;
17 };
18}
19export declare class GridGapDirective extends BaseDirective2 {
20 protected DIRECTIVE_KEY: string;
21 get inline(): boolean;
22 set inline(val: boolean);
23 protected _inline: boolean;
24 constructor(elRef: ElementRef, styleUtils: StyleUtils, styleBuilder: GridGapStyleBuilder, marshal: MediaMarshaller);
25 protected updateWithValue(value: string): void;
26}
27/**
28 * 'grid-gap' CSS Grid styling directive
29 * Configures the gap between items in the grid
30 * Syntax: <row gap> [<column-gap>]
31 * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-17
32 */
33export declare class DefaultGridGapDirective extends GridGapDirective {
34 protected inputs: string[];
35}