ri-flex-layout
Version:
An alternative library to Angular's deprecated [angular-flex-layout](https://github.com/angular/flex-layout) library. `ri-flex-layout` helps you achieve responsive layouts in Angular applications with minimal code changes.
44 lines (40 loc) • 1.28 kB
TypeScript
/**
* Method for apply css prefix css
* @export
* @param {({[key: string]: any | null})} target
* @return
*/
declare function applyCssPrefixes(target: {
[key: string]: any | null;
}): {
[key: string]: any;
};
declare const INLINE = "inline";
declare const LAYOUT_VALUES: string[];
/**
* Method to validate the direction|'direction wrap' value and then update the host's inline flexbox styles
*/
declare function buildLayoutCSS(value: string): any;
/**
* Method to validate the value to be one of the acceptable value options
* Use default fallback of 'row'
*/
declare function validateValue(value: string): [string, string, boolean];
/**
* Method for Determine if the validated, flex-direction value specifies
* a horizontal/row flow.
*/
declare function isFlowHorizontal(value: string): boolean;
/**
* Convert layout-wrap='<value>' to expected flex-wrap style
*/
declare function validateWrapValue(value: string): string;
/**
* Method for extend object with other objects.
* @export
* @param {*} dest
* @param {...any[]} sources
* @return *
*/
declare function extendObject(dest: any, ...sources: any[]): any;
export { INLINE, LAYOUT_VALUES, applyCssPrefixes, buildLayoutCSS, extendObject, isFlowHorizontal, validateValue, validateWrapValue };