UNPKG

1.37 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 { MediaMarshaller, BaseDirective2, StyleBuilder, StyleUtils } from '@angular/flex-layout/core';
10export interface GridColumnsParent {
11 inline: boolean;
12}
13export declare class GridColumnsStyleBuilder extends StyleBuilder {
14 buildStyles(input: string, parent: GridColumnsParent): {
15 display: string;
16 'grid-auto-columns': string;
17 'grid-template-columns': string;
18 };
19}
20export declare class GridColumnsDirective extends BaseDirective2 {
21 protected DIRECTIVE_KEY: string;
22 get inline(): boolean;
23 set inline(val: boolean);
24 protected _inline: boolean;
25 constructor(elementRef: ElementRef, styleBuilder: GridColumnsStyleBuilder, styler: StyleUtils, marshal: MediaMarshaller);
26 protected updateWithValue(value: string): void;
27}
28/**
29 * 'grid-template-columns' CSS Grid styling directive
30 * Configures the sizing for the columns in the grid
31 * Syntax: <column value> [auto]
32 * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-13
33 */
34export declare class DefaultGridColumnsDirective extends GridColumnsDirective {
35 protected inputs: string[];
36}