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, StyleBuilder, MediaMarshaller } from '@angular/flex-layout/core';
10export interface GridAreasParent {
11 inline: boolean;
12}
13export declare class GridAreasStyleBuiler extends StyleBuilder {
14 buildStyles(input: string, parent: GridAreasParent): {
15 display: string;
16 'grid-template-areas': string;
17 };
18}
19export declare class GridAreasDirective 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: GridAreasStyleBuiler, marshal: MediaMarshaller);
25 protected updateWithValue(value: string): void;
26}
27/**
28 * 'grid-template-areas' CSS Grid styling directive
29 * Configures the names of elements within the grid
30 * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-14
31 */
32export declare class DefaultGridAreasDirective extends GridAreasDirective {
33 protected inputs: string[];
34}