This repository was archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 768
/
Copy path_module.ts
69 lines (64 loc) · 1.96 KB
/
_module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @license
* Copyright Google Inc. 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 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
import {ModuleWithProviders, NgModule} from '@angular/core';
import {MediaMonitor} from '../media-query/media-monitor';
import {MediaQueriesModule} from '../media-query/_module';
import {FlexDirective} from './api/flex';
import {LayoutDirective} from './api/layout';
import {HideDirective} from './api/hide';
import {ShowDirective} from './api/show';
import {FlexAlignDirective} from './api/flex-align';
import {FlexFillDirective} from './api/flex-fill';
import {FlexOffsetDirective} from './api/flex-offset';
import {FlexOrderDirective} from './api/flex-order';
import {LayoutAlignDirective} from './api/layout-align';
import {LayoutWrapDirective} from './api/layout-wrap';
import {LayoutGapDirective} from './api/layout-gap';
import {ClassDirective} from './api/class';
import {StyleDirective} from './api/style';
/**
* Since the equivalent results are easily achieved with a css class attached to each
* layout child, these have been deprecated and removed from the API.
*
* import {LayoutPaddingDirective} from './api/layout-padding';
* import {LayoutMarginDirective} from './api/layout-margin';
*/
const ALL_DIRECTIVES = [
LayoutDirective,
LayoutWrapDirective,
LayoutGapDirective,
LayoutAlignDirective,
FlexDirective,
FlexOrderDirective,
FlexOffsetDirective,
FlexFillDirective,
FlexAlignDirective,
ShowDirective,
HideDirective,
ClassDirective,
StyleDirective,
];
/**
*
*/
@NgModule({
declarations: ALL_DIRECTIVES,
imports: [MediaQueriesModule],
exports: [MediaQueriesModule, ...ALL_DIRECTIVES],
providers: [MediaMonitor]
})
export class FlexLayoutModule {
/** @deprecated */
static forRoot(): ModuleWithProviders {
return {
ngModule: FlexLayoutModule
};
}
}