UNPKG

@angular/flex-layout

Version:
109 lines (103 loc) 6.13 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Version, Inject, NgModule, PLATFORM_ID } from '@angular/core'; import { __assign } from 'tslib'; import { isPlatformServer } from '@angular/common'; import { SERVER_TOKEN, LAYOUT_CONFIG, DEFAULT_CONFIG, BREAKPOINT } from '@angular/flex-layout/core'; export { ɵMatchMedia, ɵMockMatchMedia, ɵMockMatchMediaProvider, CoreModule, removeStyles, BROWSER_PROVIDER, CLASS_NAME, MediaChange, StylesheetMap, DEFAULT_CONFIG, LAYOUT_CONFIG, SERVER_TOKEN, BREAKPOINT, mergeAlias, BaseDirective2, DEFAULT_BREAKPOINTS, ScreenTypes, ORIENTATION_BREAKPOINTS, BreakPointRegistry, BREAKPOINTS, MediaObserver, MediaTrigger, sortDescendingPriority, sortAscendingPriority, coerceArray, StyleUtils, StyleBuilder, validateBasis, MediaMarshaller, BREAKPOINT_PRINT, PrintHook } from '@angular/flex-layout/core'; import { ExtendedModule } from '@angular/flex-layout/extended'; export { ExtendedModule, ClassDirective, DefaultClassDirective, ImgSrcStyleBuilder, ImgSrcDirective, DefaultImgSrcDirective, ShowHideStyleBuilder, ShowHideDirective, DefaultShowHideDirective, StyleDirective, DefaultStyleDirective } from '@angular/flex-layout/extended'; import { FlexModule } from '@angular/flex-layout/flex'; export { FlexModule, FlexStyleBuilder, FlexDirective, DefaultFlexDirective, FlexAlignStyleBuilder, FlexAlignDirective, DefaultFlexAlignDirective, FlexFillStyleBuilder, FlexFillDirective, FlexOffsetStyleBuilder, FlexOffsetDirective, DefaultFlexOffsetDirective, FlexOrderStyleBuilder, FlexOrderDirective, DefaultFlexOrderDirective, LayoutStyleBuilder, LayoutDirective, DefaultLayoutDirective, LayoutAlignStyleBuilder, LayoutAlignDirective, DefaultLayoutAlignDirective, LayoutGapStyleBuilder, LayoutGapDirective, DefaultLayoutGapDirective } from '@angular/flex-layout/flex'; import { GridModule } from '@angular/flex-layout/grid'; export { ɵgrid_privatef, ɵgrid_privatee, ɵgrid_privated, ɵgrid_privatei, ɵgrid_privateh, ɵgrid_privateg, ɵgrid_privatel, ɵgrid_privatek, ɵgrid_privatej, ɵgrid_privateo, ɵgrid_privaten, ɵgrid_privatem, ɵgrid_privater, ɵgrid_privateq, ɵgrid_privatep, ɵgrid_privateu, ɵgrid_privatet, ɵgrid_privates, ɵgrid_privatex, ɵgrid_privatew, ɵgrid_privatev, ɵgrid_privateba, ɵgrid_privatez, ɵgrid_privatey, ɵgrid_privatec, ɵgrid_privateb, ɵgrid_privatea, ɵgrid_privatebd, ɵgrid_privatebc, ɵgrid_privatebb, ɵgrid_privatebg, ɵgrid_privatebf, ɵgrid_privatebe, GridModule } from '@angular/flex-layout/grid'; /** * @fileoverview added by tsickle * Generated from: version.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * Current version of Angular Flex-Layout. * @type {?} */ var VERSION = new Version('9.0.0-beta.29'); /** * @fileoverview added by tsickle * Generated from: module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * FlexLayoutModule -- the main import for all utilities in the Angular Layout library * * Will automatically provide Flex, Grid, and Extended modules for use in the application * * Can be configured using the static withConfig method, options viewable on the Wiki's * Configuration page */ var FlexLayoutModule = /** @class */ (function () { function FlexLayoutModule(serverModuleLoaded, platformId) { if (isPlatformServer(platformId) && !serverModuleLoaded) { console.warn('Warning: Flex Layout loaded on the server without FlexLayoutServerModule'); } } /** * Initialize the FlexLayoutModule with a set of config options, * which sets the corresponding tokens accordingly */ /** * Initialize the FlexLayoutModule with a set of config options, * which sets the corresponding tokens accordingly * @param {?} configOptions * @param {?=} breakpoints * @return {?} */ FlexLayoutModule.withConfig = /** * Initialize the FlexLayoutModule with a set of config options, * which sets the corresponding tokens accordingly * @param {?} configOptions * @param {?=} breakpoints * @return {?} */ function (configOptions, breakpoints) { if (breakpoints === void 0) { breakpoints = []; } return { ngModule: FlexLayoutModule, providers: configOptions.serverLoaded ? [ { provide: LAYOUT_CONFIG, useValue: __assign(__assign({}, DEFAULT_CONFIG), configOptions) }, { provide: BREAKPOINT, useValue: breakpoints, multi: true }, { provide: SERVER_TOKEN, useValue: true }, ] : [ { provide: LAYOUT_CONFIG, useValue: __assign(__assign({}, DEFAULT_CONFIG), configOptions) }, { provide: BREAKPOINT, useValue: breakpoints, multi: true }, ] }; }; FlexLayoutModule.decorators = [ { type: NgModule, args: [{ imports: [FlexModule, ExtendedModule, GridModule], exports: [FlexModule, ExtendedModule, GridModule] },] }, ]; /** @nocollapse */ FlexLayoutModule.ctorParameters = function () { return [ { type: Boolean, decorators: [{ type: Inject, args: [SERVER_TOKEN,] }] }, { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } ]; }; return FlexLayoutModule; }()); /** * @fileoverview added by tsickle * Generated from: public-api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @fileoverview added by tsickle * Generated from: index.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { VERSION, FlexLayoutModule }; //# sourceMappingURL=flex-layout.es5.js.map