UNPKG

1.67 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, StyleBuilder, StyleDefinition, StyleUtils, MediaMarshaller, ElementMatcher } from '@angular/flex-layout/core';
10export interface LayoutAlignParent {
11 layout: string;
12 inline: boolean;
13}
14export declare class LayoutAlignStyleBuilder extends StyleBuilder {
15 buildStyles(align: string, parent: LayoutAlignParent): StyleDefinition;
16}
17/**
18 * 'layout-align' flexbox styling directive
19 * Defines positioning of child elements along main and cross axis in a layout container
20 * Optional values: {main-axis} values or {main-axis cross-axis} value pairs
21 *
22 * @see https://css-tricks.com/almanac/properties/j/justify-content/
23 * @see https://css-tricks.com/almanac/properties/a/align-items/
24 * @see https://css-tricks.com/almanac/properties/a/align-content/
25 */
26export declare class LayoutAlignDirective extends BaseDirective2 {
27 protected DIRECTIVE_KEY: string;
28 protected layout: string;
29 protected inline: boolean;
30 constructor(elRef: ElementRef, styleUtils: StyleUtils, styleBuilder: LayoutAlignStyleBuilder, marshal: MediaMarshaller);
31 /**
32 *
33 */
34 protected updateWithValue(value: string): void;
35 /**
36 * Cache the parent container 'flex-direction' and update the 'flex' styles
37 */
38 protected onLayoutChange(matcher: ElementMatcher): void;
39}
40export declare class DefaultLayoutAlignDirective extends LayoutAlignDirective {
41 protected inputs: string[];
42}