UNPKG

1.05 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 */
8export declare const INLINE = "inline";
9export declare const LAYOUT_VALUES: string[];
10/**
11 * Validate the direction|'direction wrap' value and then update the host's inline flexbox styles
12 */
13export declare function buildLayoutCSS(value: string): {
14 display: string;
15 'box-sizing': string;
16 'flex-direction': string;
17 'flex-wrap': string | null;
18};
19/**
20 * Validate the value to be one of the acceptable value options
21 * Use default fallback of 'row'
22 */
23export declare function validateValue(value: string): [string, string, boolean];
24/**
25 * Determine if the validated, flex-direction value specifies
26 * a horizontal/row flow.
27 */
28export declare function isFlowHorizontal(value: string): boolean;
29/**
30 * Convert layout-wrap='<value>' to expected flex-wrap style
31 */
32export declare function validateWrapValue(value: string): string;