UNPKG

ng-flex-layout

Version:
1 lines 5.26 kB
{"version":3,"file":"ng-flex-layout.mjs","sources":["../../../../projects/libs/flex-layout/version.ts","../../../../projects/libs/flex-layout/module.ts","../../../../projects/libs/flex-layout/public-api.ts","../../../../projects/libs/flex-layout/ng-flex-layout.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { Version } from '@angular/core';\nimport packageJson from './package.json';\n\n/** Current version of Angular Flex-Layout. */\nexport const VERSION = new Version(packageJson.version);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {Inject, ModuleWithProviders, NgModule, PLATFORM_ID} from '@angular/core';\nimport {isPlatformServer} from '@angular/common';\n\nimport {\n SERVER_TOKEN,\n LayoutConfigOptions,\n LAYOUT_CONFIG,\n DEFAULT_CONFIG,\n BreakPoint,\n BREAKPOINT,\n} from 'ng-flex-layout/core';\nimport {ExtendedModule} from 'ng-flex-layout/extended';\nimport {FlexModule} from 'ng-flex-layout/flex';\nimport {GridModule} from 'ng-flex-layout/grid';\n\n/**\n * FlexLayoutModule -- the main import for all utilities in the Angular Layout library\n * * Will automatically provide Flex, Grid, and Extended modules for use in the application\n * * Can be configured using the static withConfig method, options viewable on the Wiki's\n * Configuration page\n */\n@NgModule({\n imports: [FlexModule, ExtendedModule, GridModule],\n exports: [FlexModule, ExtendedModule, GridModule]\n})\nexport class FlexLayoutModule {\n\n /**\n * Initialize the FlexLayoutModule with a set of config options,\n * which sets the corresponding tokens accordingly\n */\n static withConfig(configOptions: LayoutConfigOptions,\n breakpoints: BreakPoint|BreakPoint[] = []): ModuleWithProviders<FlexLayoutModule> {\n return {\n ngModule: FlexLayoutModule,\n providers: configOptions.serverLoaded ?\n [\n {provide: LAYOUT_CONFIG, useValue: {...DEFAULT_CONFIG, ...configOptions}},\n {provide: BREAKPOINT, useValue: breakpoints, multi: true},\n {provide: SERVER_TOKEN, useValue: true},\n ] : [\n {provide: LAYOUT_CONFIG, useValue: {...DEFAULT_CONFIG, ...configOptions}},\n {provide: BREAKPOINT, useValue: breakpoints, multi: true},\n ]\n };\n }\n\n constructor(@Inject(SERVER_TOKEN) serverModuleLoaded: boolean,\n @Inject(PLATFORM_ID) platformId: Object) {\n if (isPlatformServer(platformId) && !serverModuleLoaded) {\n console.warn('Warning: Flex Layout loaded on the server without FlexLayoutServerModule');\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of Angular Flex-Layout.\n */\nexport * from './version';\n\nexport * from 'ng-flex-layout/core';\nexport * from 'ng-flex-layout/extended';\nexport * from 'ng-flex-layout/flex';\nexport * from 'ng-flex-layout/grid';\n\n// Flex-Layout Module\nexport * from './module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAKH;AACa,MAAA,OAAO,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC,OAAO;;ACZtD;;;;;;AAMG;AAgBH;;;;;AAKG;MAKU,gBAAgB,CAAA;AAEzB;;;AAGC;AACD,IAAA,OAAO,UAAU,CAAC,aAAkC,EAChD,cAAuC,EAAE,EAAA;QACzC,OAAO;AACH,YAAA,QAAQ,EAAE,gBAAgB;AAC1B,YAAA,SAAS,EAAE,aAAa,CAAC,YAAY;AACjC,gBAAA;AACI,oBAAA,EAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,aAAa,EAAC,EAAC;oBACzE,EAAC,OAAO,EAAE,UAAU,EAAE,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