2017-09-20 15:49:06 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
2017-10-06 14:31:05 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2017-09-20 15:49:06 -07:00
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
|
|
|
|
|
2018-01-23 16:57:44 +01:00
|
|
|
import {A11yModule} from '@angular/cdk/a11y';
|
2018-01-23 08:44:09 -08:00
|
|
|
import {OverlayModule} from '@angular/cdk/overlay';
|
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
|
import {MatCommonModule, MatRippleModule} from '@angular/material/core';
|
|
|
|
|
import {MAT_MENU_DEFAULT_OPTIONS, MatMenu} from './menu-directive';
|
2017-09-28 13:45:03 -07:00
|
|
|
import {MatMenuItem} from './menu-item';
|
2018-01-23 08:44:09 -08:00
|
|
|
import {MAT_MENU_SCROLL_STRATEGY_PROVIDER, MatMenuTrigger} from './menu-trigger';
|
2017-09-20 15:49:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
2018-01-23 16:57:44 +01:00
|
|
|
A11yModule,
|
2018-01-23 08:44:09 -08:00
|
|
|
CommonModule,
|
2017-09-28 13:45:03 -07:00
|
|
|
MatCommonModule,
|
2018-01-23 08:44:09 -08:00
|
|
|
MatRippleModule,
|
|
|
|
|
OverlayModule,
|
2017-09-20 15:49:06 -07:00
|
|
|
],
|
2017-09-28 13:45:03 -07:00
|
|
|
exports: [MatMenu, MatMenuItem, MatMenuTrigger, MatCommonModule],
|
|
|
|
|
declarations: [MatMenu, MatMenuItem, MatMenuTrigger],
|
2017-09-20 15:49:06 -07:00
|
|
|
providers: [
|
2017-09-28 13:45:03 -07:00
|
|
|
MAT_MENU_SCROLL_STRATEGY_PROVIDER,
|
2017-09-20 15:49:06 -07:00
|
|
|
{
|
2017-09-28 13:45:03 -07:00
|
|
|
provide: MAT_MENU_DEFAULT_OPTIONS,
|
2017-09-20 15:49:06 -07:00
|
|
|
useValue: {
|
|
|
|
|
overlapTrigger: true,
|
|
|
|
|
xPosition: 'after',
|
|
|
|
|
yPosition: 'below',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
})
|
2017-09-28 13:45:03 -07:00
|
|
|
export class MatMenuModule {}
|