UNPKG

@ngbracket/ngx-layout

Version:
1 lines 5.41 kB
{"version":3,"file":"ngbracket-ngx-layout.mjs","sources":["../../../../projects/libs/flex-layout/module.ts","../../../../projects/libs/flex-layout/version.ts","../../../../projects/libs/flex-layout/public-api.ts","../../../../projects/libs/flex-layout/ngbracket-ngx-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 */\nimport { isPlatformServer } from '@angular/common';\nimport {\n Inject,\n ModuleWithProviders,\n NgModule,\n PLATFORM_ID,\n} from '@angular/core';\n\nimport {\n BreakPoint,\n BREAKPOINT,\n DEFAULT_CONFIG,\n LayoutConfigOptions,\n LAYOUT_CONFIG,\n SERVER_TOKEN,\n} from '@ngbracket/ngx-layout/core';\nimport { ExtendedModule } from '@ngbracket/ngx-layout/extended';\nimport { FlexModule } from '@ngbracket/ngx-layout/flex';\nimport { GridModule } from '@ngbracket/ngx-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 * Initialize the FlexLayoutModule with a set of config options,\n * which sets the corresponding tokens accordingly\n */\n static withConfig(\n configOptions: LayoutConfigOptions,\n // tslint:disable-next-line:max-line-length\n breakpoints: BreakPoint | BreakPoint[] = []\n ): ModuleWithProviders<FlexLayoutModule> {\n return {\n ngModule: FlexLayoutModule,\n providers: configOptions.serverLoaded\n ? [\n {\n provide: LAYOUT_CONFIG,\n useValue: { ...DEFAULT_CONFIG, ...configOptions },\n },\n { provide: BREAKPOINT, useValue: breakpoints, multi: true },\n { provide: SERVER_TOKEN, useValue: true },\n ]\n : [\n {\n provide: LAYOUT_CONFIG,\n useValue: { ...DEFAULT_CONFIG, ...configOptions },\n },\n { provide: BREAKPOINT, useValue: breakpoints, multi: true },\n ],\n };\n }\n\n constructor(\n @Inject(SERVER_TOKEN) serverModuleLoaded: boolean,\n @Inject(PLATFORM_ID) platformId: Object\n ) {\n if (isPlatformServer(platformId) && !serverModuleLoaded) {\n console.warn(\n 'Warning: Flex Layout loaded on the server without FlexLayoutServerModule'\n );\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\nimport {Version} from '@angular/core';\n\n/** Current version of Angular Flex-Layout. */\nexport const VERSION = new Version('18.0.0');\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 '@ngbracket/ngx-layout/core';\nexport * from '@ngbracket/ngx-layout/extended';\nexport * from '@ngbracket/ngx-layout/flex';\nexport * from '@ngbracket/ngx-layout/grid';\n// Flex-Layout Module\nexport * from './module';\nexport * from './version';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;AAMG;AAqBH;;;;;AAKG;MAKU,gBAAgB,CAAA;AAC3B;;;AAGG;IACH,OAAO,UAAU,CACf,aAAkC;;AAElC,IAAA,WAAA,GAAyC,EAAE,EAAA;QAE3C,OAAO;AACL,YAAA,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,aAAa,CAAC,YAAY;AACnC,kBAAE;AACE,oBAAA;AACE,wBAAA,OAAO,EAAE,aAAa;AACtB,wBAAA,QAAQ,EAAE,EAAE,GAAG,cAAc,EAAE,GAAG,aAAa,EAAE;AAClD,qBAAA;oBACD,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EA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