chore: move mat re-exports to package where their metadata lives (#7193)

This also required creating a module file for every component because
the max re-export can't be in the same file as the module definition or
else ngc will *only* export the alias.
This commit is contained in:
Jeremy Elbourn
2017-09-20 15:49:06 -07:00
committed by GitHub
parent dcf3b27074
commit 0e4806b06c
95 changed files with 1938 additions and 1396 deletions
@@ -0,0 +1,25 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdOptionModule, MdCommonModule} from '@angular/material/core';
import {MdAutocomplete} from './autocomplete';
import {
MdAutocompleteTrigger,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER,
} from './autocomplete-trigger';
@NgModule({
imports: [MdOptionModule, OverlayModule, MdCommonModule, CommonModule],
exports: [MdAutocomplete, MdOptionModule, MdAutocompleteTrigger, MdCommonModule],
declarations: [MdAutocomplete, MdAutocompleteTrigger],
providers: [MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER],
})
export class MdAutocompleteModule {}
+27
View File
@@ -0,0 +1,27 @@
/**
* @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 {MdAutocomplete} from './autocomplete';
import {MdAutocompleteModule} from './autocomplete-module';
import {
MD_AUTOCOMPLETE_SCROLL_STRATEGY,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY,
MD_AUTOCOMPLETE_VALUE_ACCESSOR,
MdAutocompleteTrigger,
} from './autocomplete-trigger';
/* tslint:disable:max-line-length */
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY as MAT_AUTOCOMPLETE_SCROLL_STRATEGY};
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER as MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER};
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_AUTOCOMPLETE_VALUE_ACCESSOR as MAT_AUTOCOMPLETE_VALUE_ACCESSOR};
export {MdAutocomplete as MatAutocomplete};
export {MdAutocompleteModule as MatAutocompleteModule};
export {MdAutocompleteTrigger as MatAutocompleteTrigger};
+2 -19
View File
@@ -6,24 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdOptionModule, MdCommonModule} from '@angular/material/core';
import {MdAutocomplete} from './autocomplete';
import {
MdAutocompleteTrigger,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER,
} from './autocomplete-trigger';
@NgModule({
imports: [MdOptionModule, OverlayModule, MdCommonModule, CommonModule],
exports: [MdAutocomplete, MdOptionModule, MdAutocompleteTrigger, MdCommonModule],
declarations: [MdAutocomplete, MdAutocompleteTrigger],
providers: [MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER],
})
export class MdAutocompleteModule {}
export * from './autocomplete';
export * from './autocomplete-module';
export * from './autocomplete-trigger';
export * from './mat-exports';
@@ -0,0 +1,26 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle} from './button-toggle';
import {UNIQUE_SELECTION_DISPATCHER_PROVIDER, MdCommonModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [MdCommonModule, A11yModule],
exports: [
MdButtonToggleGroup,
MdButtonToggleGroupMultiple,
MdButtonToggle,
MdCommonModule,
],
declarations: [MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER]
})
export class MdButtonToggleModule {}
+26
View File
@@ -0,0 +1,26 @@
/**
* @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 {
MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR,
MdButtonToggle,
MdButtonToggleChange,
MdButtonToggleGroup,
MdButtonToggleGroupBase,
MdButtonToggleGroupMultiple,
} from './button-toggle';
import {MdButtonToggleModule} from './button-toggle-module';
export {MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR as MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR};
export {MdButtonToggle as MatButtonToggle};
export {MdButtonToggleChange as MatButtonToggleChange};
export {MdButtonToggleGroup as MatButtonToggleGroup};
export {MdButtonToggleGroupBase as MatButtonToggleGroupBase};
export {MdButtonToggleGroupMultiple as MatButtonToggleGroupMultiple};
export {MdButtonToggleModule as MatButtonToggleModule};
+2 -20
View File
@@ -6,24 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle} from './button-toggle';
import {UNIQUE_SELECTION_DISPATCHER_PROVIDER, MdCommonModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [MdCommonModule, A11yModule],
exports: [
MdButtonToggleGroup,
MdButtonToggleGroupMultiple,
MdButtonToggle,
MdCommonModule,
],
declarations: [MdButtonToggleGroup, MdButtonToggleGroupMultiple, MdButtonToggle],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER]
})
export class MdButtonToggleModule {}
export * from './button-toggle';
export * from './button-toggle-module';
export * from './mat-exports';
+51
View File
@@ -0,0 +1,51 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule, MdRippleModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
import {
MdAnchor,
MdButton,
MdMiniFab,
MdButtonCssMatStyler,
MdFab,
MdIconButtonCssMatStyler,
MdRaisedButtonCssMatStyler
} from './button';
@NgModule({
imports: [
CommonModule,
MdRippleModule,
MdCommonModule,
A11yModule,
],
exports: [
MdButton,
MdAnchor,
MdMiniFab,
MdFab,
MdCommonModule,
MdButtonCssMatStyler,
MdRaisedButtonCssMatStyler,
MdIconButtonCssMatStyler,
],
declarations: [
MdButton,
MdAnchor,
MdMiniFab,
MdFab,
MdButtonCssMatStyler,
MdRaisedButtonCssMatStyler,
MdIconButtonCssMatStyler,
],
})
export class MdButtonModule {}
+29
View File
@@ -0,0 +1,29 @@
/**
* @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 {
MdAnchor,
MdButton,
MdButtonBase,
MdButtonCssMatStyler,
MdFab,
MdIconButtonCssMatStyler,
MdMiniFab,
MdRaisedButtonCssMatStyler,
} from './button';
import {MdButtonModule} from './button-module';
export {MdButton as MatButton};
export {MdButtonBase as MatButtonBase};
export {MdButtonCssMatStyler as MatButtonCssMatStyler};
export {MdButtonModule as MatButtonModule};
export {MdAnchor as MatAnchor};
export {MdIconButtonCssMatStyler as MatIconButtonCssMatStyler};
export {MdFab as MatFab};
export {MdMiniFab as MatMiniFab};
export {MdRaisedButtonCssMatStyler as MatRaisedButtonCssMatStyler};
+2 -45
View File
@@ -6,49 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule, MdRippleModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
import {
MdAnchor,
MdButton,
MdMiniFab,
MdButtonCssMatStyler,
MdFab,
MdIconButtonCssMatStyler,
MdRaisedButtonCssMatStyler
} from './button';
export * from './button-module';
export * from './button';
@NgModule({
imports: [
CommonModule,
MdRippleModule,
MdCommonModule,
A11yModule,
],
exports: [
MdButton,
MdAnchor,
MdMiniFab,
MdFab,
MdCommonModule,
MdButtonCssMatStyler,
MdRaisedButtonCssMatStyler,
MdIconButtonCssMatStyler,
],
declarations: [
MdButton,
MdAnchor,
MdMiniFab,
MdFab,
MdButtonCssMatStyler,
MdRaisedButtonCssMatStyler,
MdIconButtonCssMatStyler,
],
})
export class MdButtonModule {}
export * from './mat-exports';
+54
View File
@@ -0,0 +1,54 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {
MdCard,
MdCardHeader,
MdCardTitleGroup,
MdCardContent,
MdCardTitle,
MdCardSubtitle,
MdCardActions,
MdCardFooter,
MdCardSmImage,
MdCardMdImage,
MdCardLgImage,
MdCardImage,
MdCardXlImage,
MdCardAvatar,
} from './card';
@NgModule({
imports: [MdCommonModule],
exports: [
MdCard,
MdCardHeader,
MdCardTitleGroup,
MdCardContent,
MdCardTitle,
MdCardSubtitle,
MdCardActions,
MdCardFooter,
MdCardSmImage,
MdCardMdImage,
MdCardLgImage,
MdCardImage,
MdCardXlImage,
MdCardAvatar,
MdCommonModule,
],
declarations: [
MdCard, MdCardHeader, MdCardTitleGroup, MdCardContent, MdCardTitle, MdCardSubtitle,
MdCardActions, MdCardFooter, MdCardSmImage, MdCardMdImage, MdCardLgImage, MdCardImage,
MdCardXlImage, MdCardAvatar,
],
})
export class MdCardModule {}
+42
View File
@@ -0,0 +1,42 @@
/**
* @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 {
MdCard,
MdCardActions,
MdCardAvatar,
MdCardContent,
MdCardFooter,
MdCardHeader,
MdCardImage,
MdCardLgImage,
MdCardMdImage,
MdCardSmImage,
MdCardSubtitle,
MdCardTitle,
MdCardTitleGroup,
MdCardXlImage,
} from './card';
import {MdCardModule} from './card-module';
export {MdCard as MatCard};
export {MdCardActions as MatCardActions};
export {MdCardAvatar as MatCardAvatar};
export {MdCardContent as MatCardContent};
export {MdCardFooter as MatCardFooter};
export {MdCardHeader as MatCardHeader};
export {MdCardImage as MatCardImage};
export {MdCardLgImage as MatCardLgImage};
export {MdCardMdImage as MatCardMatImage};
export {MdCardModule as MatCardModule};
export {MdCardSmImage as MatCardSmImage};
export {MdCardSubtitle as MatCardSubtitle};
export {MdCardTitle as MatCardTitle};
export {MdCardTitleGroup as MatCardTitleGroup};
export {MdCardXlImage as MatCardXlImage};
+2 -48
View File
@@ -6,52 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {
MdCard,
MdCardHeader,
MdCardTitleGroup,
MdCardContent,
MdCardTitle,
MdCardSubtitle,
MdCardActions,
MdCardFooter,
MdCardSmImage,
MdCardMdImage,
MdCardLgImage,
MdCardImage,
MdCardXlImage,
MdCardAvatar,
} from './card';
@NgModule({
imports: [MdCommonModule],
exports: [
MdCard,
MdCardHeader,
MdCardTitleGroup,
MdCardContent,
MdCardTitle,
MdCardSubtitle,
MdCardActions,
MdCardFooter,
MdCardSmImage,
MdCardMdImage,
MdCardLgImage,
MdCardImage,
MdCardXlImage,
MdCardAvatar,
MdCommonModule,
],
declarations: [
MdCard, MdCardHeader, MdCardTitleGroup, MdCardContent, MdCardTitle, MdCardSubtitle,
MdCardActions, MdCardFooter, MdCardSmImage, MdCardMdImage, MdCardLgImage, MdCardImage,
MdCardXlImage, MdCardAvatar,
],
})
export class MdCardModule {}
export * from './card';
export * from './card-module';
export * from './mat-exports';
+22
View File
@@ -0,0 +1,22 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ObserversModule} from '@angular/cdk/observers';
import {MdRippleModule, MdCommonModule} from '@angular/material/core';
import {MdCheckbox} from './checkbox';
import {MdCheckboxRequiredValidator} from './checkbox-required-validator';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdRippleModule, MdCommonModule, ObserversModule, A11yModule],
exports: [MdCheckbox, MdCheckboxRequiredValidator, MdCommonModule],
declarations: [MdCheckbox, MdCheckboxRequiredValidator],
})
export class MdCheckboxModule {}
+28
View File
@@ -0,0 +1,28 @@
/**
* @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 {
MD_CHECKBOX_CONTROL_VALUE_ACCESSOR,
MdCheckbox,
MdCheckboxBase,
MdCheckboxChange,
} from './checkbox';
import {MdCheckboxModule} from './checkbox-module';
import {
MD_CHECKBOX_REQUIRED_VALIDATOR,
MdCheckboxRequiredValidator,
} from './checkbox-required-validator';
export {MD_CHECKBOX_CONTROL_VALUE_ACCESSOR as MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR};
export {MD_CHECKBOX_REQUIRED_VALIDATOR as MAT_CHECKBOX_REQUIRED_VALIDATOR};
export {MdCheckbox as MatCheckbox};
export {MdCheckboxBase as MatCheckboxBase};
export {MdCheckboxChange as MatCheckboxChange};
export {MdCheckboxModule as MatCheckboxModule};
export {MdCheckboxRequiredValidator as MatCheckboxRequiredValidator};
+2 -16
View File
@@ -6,21 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ObserversModule} from '@angular/cdk/observers';
import {MdRippleModule, MdCommonModule} from '@angular/material/core';
import {MdCheckbox} from './checkbox';
import {MdCheckboxRequiredValidator} from './checkbox-required-validator';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdRippleModule, MdCommonModule, ObserversModule, A11yModule],
exports: [MdCheckbox, MdCheckboxRequiredValidator, MdCommonModule],
declarations: [MdCheckbox, MdCheckboxRequiredValidator],
})
export class MdCheckboxModule {}
export * from './checkbox';
export * from './checkbox-module';
export * from './checkbox-required-validator';
export * from './mat-exports';
+20
View File
@@ -0,0 +1,20 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdChipList} from './chip-list';
import {MdBasicChip, MdChip, MdChipRemove} from './chip';
import {MdChipInput} from './chip-input';
@NgModule({
imports: [],
exports: [MdChipList, MdChip, MdChipInput, MdChipRemove, MdChipRemove, MdBasicChip],
declarations: [MdChipList, MdChip, MdChipInput, MdChipRemove, MdChipRemove, MdBasicChip]
})
export class MdChipsModule {}
+24
View File
@@ -0,0 +1,24 @@
/**
* @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 {MdBasicChip, MdChip, MdChipBase, MdChipEvent, MdChipRemove} from './chip';
import {MdChipInput, MdChipInputEvent} from './chip-input';
import {MdChipList, MdChipListChange} from './chip-list';
import {MdChipsModule} from './chips-module';
export {MdBasicChip as MatBasicChip};
export {MdChip as MatChip};
export {MdChipBase as MatChipBase};
export {MdChipEvent as MatChipEvent};
export {MdChipInput as MatChipInput};
export {MdChipInputEvent as MatChipInputEvent};
export {MdChipListChange as MatChipListChange};
export {MdChipList as MatChipList};
export {MdChipRemove as MatChipRemove};
export {MdChipsModule as MatChipsModule};
+2 -12
View File
@@ -6,18 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdChipList} from './chip-list';
import {MdBasicChip, MdChip, MdChipRemove} from './chip';
import {MdChipInput} from './chip-input';
export * from './chips-module';
export * from './chip-list';
export * from './chip';
export * from './chip-input';
@NgModule({
imports: [],
exports: [MdChipList, MdChip, MdChipInput, MdChipRemove, MdChipRemove, MdBasicChip],
declarations: [MdChipList, MdChip, MdChipInput, MdChipRemove, MdChipRemove, MdBasicChip]
})
export class MdChipsModule {}
export * from './mat-exports';
+49
View File
@@ -0,0 +1,49 @@
/**
* @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 {MdCommonModule} from './common-behaviors/common-module';
import {
MD_DATE_FORMATS,
MD_NATIVE_DATE_FORMATS,
MdDateFormats,
MdNativeDateModule,
} from './datetime/index';
import {MD_ERROR_GLOBAL_OPTIONS} from './error/error-options';
import {MdLine, MdLineModule, MdLineSetter} from './line/line';
import {
MdOptgroup,
MdOptgroupBase,
MdOption,
MdOptionModule,
MdOptionSelectionChange,
} from './option/index';
import {MD_PLACEHOLDER_GLOBAL_OPTIONS} from './placeholder/placeholder-options';
import {MD_RIPPLE_GLOBAL_OPTIONS, MdRipple, MdRippleModule} from './ripple/index';
import {MdPseudoCheckbox, MdPseudoCheckboxModule, MdPseudoCheckboxState} from './selection/index';
export {MD_DATE_FORMATS as MAT_DATE_FORMATS};
export {MD_RIPPLE_GLOBAL_OPTIONS as MAT_RIPPLE_GLOBAL_OPTIONS};
export {MD_NATIVE_DATE_FORMATS as MAT_NATIVE_DATE_FORMATS};
export {MD_PLACEHOLDER_GLOBAL_OPTIONS as MAT_PLACEHOLDER_GLOBAL_OPTIONS};
export {MD_ERROR_GLOBAL_OPTIONS as MAT_ERROR_GLOBAL_OPTIONS};
export {MdCommonModule as MatCommonModule};
export {MdDateFormats as MatDateFormats};
export {MdLine as MatLine};
export {MdLineModule as MatLineModule};
export {MdLineSetter as MatLineSetter};
export {MdOptgroup as MatOptgroup};
export {MdOptgroupBase as MatOptgroupBase};
export {MdOption as MatOption};
export {MdOptionModule as MatOptionModule};
export {MdOptionSelectionChange as MatOptionSelectionChange};
export {MdNativeDateModule as MatNativeDateModule};
export {MdPseudoCheckbox as MatPseudoCheckbox};
export {MdPseudoCheckboxModule as MatPseudoCheckboxModule};
export {MdPseudoCheckboxState as MatPseudoCheckboxState};
export {MdRipple as MatRipple};
export {MdRippleModule as MatRippleModule};
+1
View File
@@ -31,6 +31,7 @@ export * from './rxjs/index';
export * from './selection/index';
export * from './style/index';
export * from './util/object-extend';
export * from './mat-exports';
// TODO: don't have this
export * from './testing/month-constants';
+67
View File
@@ -0,0 +1,67 @@
/**
* @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 {A11yModule} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdDialogModule} from '@angular/material/dialog';
import {MdIconModule} from '@angular/material/icon';
import {MdCalendar} from './calendar';
import {MdCalendarBody} from './calendar-body';
import {
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
MdDatepicker,
MdDatepickerContent,
} from './datepicker';
import {MdDatepickerInput} from './datepicker-input';
import {MdDatepickerIntl} from './datepicker-intl';
import {MdDatepickerToggle} from './datepicker-toggle';
import {MdMonthView} from './month-view';
import {MdYearView} from './year-view';
@NgModule({
imports: [
CommonModule,
MdButtonModule,
MdDialogModule,
MdIconModule,
OverlayModule,
A11yModule,
],
exports: [
MdCalendar,
MdCalendarBody,
MdDatepicker,
MdDatepickerContent,
MdDatepickerInput,
MdDatepickerToggle,
MdMonthView,
MdYearView,
],
declarations: [
MdCalendar,
MdCalendarBody,
MdDatepicker,
MdDatepickerContent,
MdDatepickerInput,
MdDatepickerToggle,
MdMonthView,
MdYearView,
],
providers: [
MdDatepickerIntl,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
],
entryComponents: [
MdDatepickerContent,
]
})
export class MdDatepickerModule {}
+48
View File
@@ -0,0 +1,48 @@
/**
* @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 {MdCalendar} from './calendar';
import {MdCalendarBody, MdCalendarCell} from './calendar-body';
import {
MD_DATEPICKER_SCROLL_STRATEGY,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdDatepicker,
MdDatepickerContent,
} from './datepicker';
import {
MD_DATEPICKER_VALIDATORS,
MD_DATEPICKER_VALUE_ACCESSOR,
MdDatepickerInput,
MdDatepickerInputEvent,
} from './datepicker-input';
import {MdDatepickerIntl} from './datepicker-intl';
import {MdDatepickerModule} from './datepicker-module';
import {MdDatepickerToggle} from './datepicker-toggle';
import {MdMonthView} from './month-view';
import {MdYearView} from './year-view';
/* tslint:disable:max-line-length */
export {MD_DATEPICKER_SCROLL_STRATEGY as MAT_DATEPICKER_SCROLL_STRATEGY};
export {MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER as MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER};
export {MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_DATEPICKER_VALIDATORS as MAT_DATEPICKER_VALIDATORS};
export {MD_DATEPICKER_VALUE_ACCESSOR as MAT_DATEPICKER_VALUE_ACCESSOR};
export {MdCalendar as MatCalendar};
export {MdCalendarBody as MatCalendarBody};
export {MdCalendarCell as MatCalendarCell};
export {MdDatepicker as MatDatepicker};
export {MdDatepickerContent as MatDatepickerContent};
export {MdDatepickerInput as MatDatepickerInput};
export {MdDatepickerInputEvent as MatDatepickerInputEvent};
export {MdDatepickerIntl as MatDatepickerIntl};
export {MdDatepickerModule as MatDatepickerModule};
export {MdDatepickerToggle as MatDatepickerToggle};
export {MdMonthView as MatMonthView};
export {MdYearView as MatYearView};
+2 -61
View File
@@ -6,27 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {A11yModule} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdDialogModule} from '@angular/material/dialog';
import {MdIconModule} from '@angular/material/icon';
import {MdCalendar} from './calendar';
import {MdCalendarBody} from './calendar-body';
import {
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
MdDatepicker,
MdDatepickerContent,
} from './datepicker';
import {MdDatepickerInput} from './datepicker-input';
import {MdDatepickerIntl} from './datepicker-intl';
import {MdDatepickerToggle} from './datepicker-toggle';
import {MdMonthView} from './month-view';
import {MdYearView} from './year-view';
export * from './datepicker-module';
export * from './calendar';
export * from './calendar-body';
export * from './datepicker';
@@ -35,43 +15,4 @@ export * from './datepicker-intl';
export * from './datepicker-toggle';
export * from './month-view';
export * from './year-view';
@NgModule({
imports: [
CommonModule,
MdButtonModule,
MdDialogModule,
MdIconModule,
OverlayModule,
A11yModule,
],
exports: [
MdCalendar,
MdCalendarBody,
MdDatepicker,
MdDatepickerContent,
MdDatepickerInput,
MdDatepickerToggle,
MdMonthView,
MdYearView,
],
declarations: [
MdCalendar,
MdCalendarBody,
MdDatepicker,
MdDatepickerContent,
MdDatepickerInput,
MdDatepickerToggle,
MdMonthView,
MdYearView,
],
providers: [
MdDatepickerIntl,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
],
entryComponents: [
MdDatepickerContent,
]
})
export class MdDatepickerModule {}
export * from './mat-exports';
+54
View File
@@ -0,0 +1,54 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalModule} from '@angular/cdk/portal';
import {A11yModule} from '@angular/cdk/a11y';
import {MdCommonModule} from '@angular/material/core';
import {MdDialog, MD_DIALOG_SCROLL_STRATEGY_PROVIDER} from './dialog';
import {MdDialogContainer} from './dialog-container';
import {
MdDialogClose,
MdDialogContent,
MdDialogTitle,
MdDialogActions
} from './dialog-content-directives';
@NgModule({
imports: [
CommonModule,
OverlayModule,
PortalModule,
A11yModule,
MdCommonModule,
],
exports: [
MdDialogContainer,
MdDialogClose,
MdDialogTitle,
MdDialogContent,
MdDialogActions,
MdCommonModule,
],
declarations: [
MdDialogContainer,
MdDialogClose,
MdDialogTitle,
MdDialogActions,
MdDialogContent,
],
providers: [
MdDialog,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER,
],
entryComponents: [MdDialogContainer],
})
export class MdDialogModule {}
+40
View File
@@ -0,0 +1,40 @@
/**
* @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 {
MD_DIALOG_DATA,
MD_DIALOG_SCROLL_STRATEGY,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdDialog,
} from './dialog';
import {MdDialogConfig} from './dialog-config';
import {MdDialogContainer} from './dialog-container';
import {
MdDialogActions,
MdDialogClose,
MdDialogContent,
MdDialogTitle,
} from './dialog-content-directives';
import {MdDialogModule} from './dialog-module';
import {MdDialogRef} from './dialog-ref';
export {MD_DIALOG_DATA as MAT_DIALOG_DATA};
export {MD_DIALOG_SCROLL_STRATEGY as MAT_DIALOG_SCROLL_STRATEGY};
export {MD_DIALOG_SCROLL_STRATEGY_PROVIDER as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER};
export {MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MdDialog as MatDialog};
export {MdDialogActions as MatDialogActions};
export {MdDialogClose as MatDialogClose};
export {MdDialogConfig as MatDialogConfig};
export {MdDialogContainer as MatDialogContainer};
export {MdDialogContent as MatDialogContent};
export {MdDialogModule as MatDialogModule};
export {MdDialogRef as MatDialogRef};
export {MdDialogTitle as MatDialogTitle};
+2 -47
View File
@@ -6,55 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalModule} from '@angular/cdk/portal';
import {A11yModule} from '@angular/cdk/a11y';
import {MdCommonModule} from '@angular/material/core';
import {MdDialog, MD_DIALOG_SCROLL_STRATEGY_PROVIDER} from './dialog';
import {MdDialogContainer} from './dialog-container';
import {
MdDialogClose,
MdDialogContent,
MdDialogTitle,
MdDialogActions
} from './dialog-content-directives';
@NgModule({
imports: [
CommonModule,
OverlayModule,
PortalModule,
A11yModule,
MdCommonModule,
],
exports: [
MdDialogContainer,
MdDialogClose,
MdDialogTitle,
MdDialogContent,
MdDialogActions,
MdCommonModule,
],
declarations: [
MdDialogContainer,
MdDialogClose,
MdDialogTitle,
MdDialogActions,
MdDialogContent,
],
providers: [
MdDialog,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER,
],
entryComponents: [MdDialogContainer],
})
export class MdDialogModule {}
export * from './dialog-module';
export * from './dialog';
export * from './dialog-container';
export * from './dialog-content-directives';
export * from './dialog-config';
export * from './dialog-ref';
export * from './mat-exports';
+44
View File
@@ -0,0 +1,44 @@
/**
* @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 {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {CompatibilityModule, UNIQUE_SELECTION_DISPATCHER_PROVIDER} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
import {CdkAccordion, MdAccordion} from './accordion';
import {MdExpansionPanel, MdExpansionPanelActionRow} from './expansion-panel';
import {
MdExpansionPanelDescription,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
} from './expansion-panel-header';
@NgModule({
imports: [CompatibilityModule, CommonModule, A11yModule],
exports: [
CdkAccordion,
MdAccordion,
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
MdExpansionPanelDescription
],
declarations: [
CdkAccordion,
MdAccordion,
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
MdExpansionPanelDescription
],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER]
})
export class MdExpansionModule {}
+31
View File
@@ -0,0 +1,31 @@
/**
* @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 {MdAccordion, MdAccordionDisplayMode} from './accordion';
import {MdExpansionModule} from './expansion-module';
import {
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelState,
} from './expansion-panel';
import {
MdExpansionPanelDescription,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
} from './expansion-panel-header';
export {MdAccordion as MatAccordion};
export {MdAccordionDisplayMode as MatAccordionDisplayMode};
export {MdExpansionModule as MatExpansionModule};
export {MdExpansionPanel as MatExpansionPanel};
export {MdExpansionPanelActionRow as MatExpansionPanelActionRow};
export {MdExpansionPanelDescription as MatExpansionPanelDescription};
export {MdExpansionPanelHeader as MatExpansionPanelHeader};
export {MdExpansionPanelState as MatExpansionPanelState};
export {MdExpansionPanelTitle as MatExpansionPanelTitle};
+2 -37
View File
@@ -6,43 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {CompatibilityModule, UNIQUE_SELECTION_DISPATCHER_PROVIDER} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
import {CdkAccordion, MdAccordion} from './accordion';
import {MdExpansionPanel, MdExpansionPanelActionRow} from './expansion-panel';
import {
MdExpansionPanelDescription,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
} from './expansion-panel-header';
@NgModule({
imports: [CompatibilityModule, CommonModule, A11yModule],
exports: [
CdkAccordion,
MdAccordion,
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
MdExpansionPanelDescription
],
declarations: [
CdkAccordion,
MdAccordion,
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelHeader,
MdExpansionPanelTitle,
MdExpansionPanelDescription
],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER]
})
export class MdExpansionModule {}
export * from './expansion-module';
export {
CdkAccordion,
MdAccordion,
@@ -60,3 +24,4 @@ export {
MdExpansionPanelTitle
} from './expansion-panel-header';
export * from './mat-exports';
+42
View File
@@ -0,0 +1,42 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdError} from './error';
import {MdFormField} from './form-field';
import {MdHint} from './hint';
import {MdPlaceholder} from './placeholder';
import {MdPrefix} from './prefix';
import {MdSuffix} from './suffix';
import {CommonModule} from '@angular/common';
import {PlatformModule} from '@angular/material/core';
@NgModule({
declarations: [
MdError,
MdHint,
MdFormField,
MdPlaceholder,
MdPrefix,
MdSuffix,
],
imports: [
CommonModule,
PlatformModule,
],
exports: [
MdError,
MdHint,
MdFormField,
MdPlaceholder,
MdPrefix,
MdSuffix,
],
})
export class MdFormFieldModule {}
+28
View File
@@ -0,0 +1,28 @@
/**
* @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 {
MdFormField,
} from './form-field';
import {MdError} from './error';
import {MdHint} from './hint';
import {MdFormFieldModule} from './form-field-module';
import {MdPrefix} from './prefix';
import {MdSuffix} from './suffix';
import {MdPlaceholder} from './placeholder';
import {MdFormFieldControl} from './form-field-control';
export {MdFormFieldModule as MatFormFieldModule};
export {MdError as MatError};
export {MdFormField as MatFormField};
export {MdFormFieldControl as MatFormFieldControl};
export {MdHint as MatHint};
export {MdPlaceholder as MatPlaceholder};
export {MdPrefix as MatPrefix};
export {MdSuffix as MatSuffix};
+2 -37
View File
@@ -6,42 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdError} from './error';
import {MdFormField} from './form-field';
import {MdHint} from './hint';
import {MdPlaceholder} from './placeholder';
import {MdPrefix} from './prefix';
import {MdSuffix} from './suffix';
import {CommonModule} from '@angular/common';
import {PlatformModule} from '@angular/material/core';
@NgModule({
declarations: [
MdError,
MdHint,
MdFormField,
MdPlaceholder,
MdPrefix,
MdSuffix,
],
imports: [
CommonModule,
PlatformModule,
],
exports: [
MdError,
MdHint,
MdFormField,
MdPlaceholder,
MdPrefix,
MdSuffix,
],
})
export class MdFormFieldModule {}
export * from './form-field-module';
export * from './error';
export * from './form-field';
export * from './form-field-control';
@@ -50,4 +15,4 @@ export * from './hint';
export * from './placeholder';
export * from './prefix';
export * from './suffix';
export * from './mat-exports';
+39
View File
@@ -0,0 +1,39 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdLineModule, MdCommonModule} from '@angular/material/core';
import {
MdGridTile, MdGridTileText, MdGridTileFooterCssMatStyler,
MdGridTileHeaderCssMatStyler, MdGridAvatarCssMatStyler
} from './grid-tile';
import {MdGridList} from './grid-list';
@NgModule({
imports: [MdLineModule, MdCommonModule],
exports: [
MdGridList,
MdGridTile,
MdGridTileText,
MdLineModule,
MdCommonModule,
MdGridTileHeaderCssMatStyler,
MdGridTileFooterCssMatStyler,
MdGridAvatarCssMatStyler
],
declarations: [
MdGridList,
MdGridTile,
MdGridTileText,
MdGridTileHeaderCssMatStyler,
MdGridTileFooterCssMatStyler,
MdGridAvatarCssMatStyler
],
})
export class MdGridListModule {}
+16
View File
@@ -0,0 +1,16 @@
/**
* @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 {MdGridList} from './grid-list';
import {MdGridListModule} from './grid-list-module';
import {MdGridTile} from './grid-tile';
export {MdGridList as MatGridList};
export {MdGridListModule as MatGridListModule};
export {MdGridTile as MatGridTile};
+2 -33
View File
@@ -6,38 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdLineModule, MdCommonModule} from '@angular/material/core';
import {
MdGridTile, MdGridTileText, MdGridTileFooterCssMatStyler,
MdGridTileHeaderCssMatStyler, MdGridAvatarCssMatStyler
} from './grid-tile';
import {MdGridList} from './grid-list';
@NgModule({
imports: [MdLineModule, MdCommonModule],
exports: [
MdGridList,
MdGridTile,
MdGridTileText,
MdLineModule,
MdCommonModule,
MdGridTileHeaderCssMatStyler,
MdGridTileFooterCssMatStyler,
MdGridAvatarCssMatStyler
],
declarations: [
MdGridList,
MdGridTile,
MdGridTileText,
MdGridTileHeaderCssMatStyler,
MdGridTileFooterCssMatStyler,
MdGridAvatarCssMatStyler
],
})
export class MdGridListModule {}
export * from './grid-list-module';
export * from './grid-list';
export {MdGridTile} from './grid-tile';
export * from './mat-exports';
+21
View File
@@ -0,0 +1,21 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MdIcon} from './icon';
import {ICON_REGISTRY_PROVIDER} from './icon-registry';
@NgModule({
imports: [MdCommonModule],
exports: [MdIcon, MdCommonModule],
declarations: [MdIcon],
providers: [ICON_REGISTRY_PROVIDER],
})
export class MdIconModule {}
+17
View File
@@ -0,0 +1,17 @@
/**
* @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 {MdIcon, MdIconBase} from './icon';
import {MdIconRegistry} from './icon-registry';
import {MdIconModule} from './icon-module';
export {MdIcon as MatIcon};
export {MdIconBase as MatIconBase};
export {MdIconModule as MatIconModule};
export {MdIconRegistry as MatIconRegistry};
+2 -15
View File
@@ -6,20 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MdIcon} from './icon';
import {ICON_REGISTRY_PROVIDER} from './icon-registry';
@NgModule({
imports: [MdCommonModule],
exports: [MdIcon, MdCommonModule],
declarations: [MdIcon],
providers: [ICON_REGISTRY_PROVIDER],
})
export class MdIconModule {}
export * from './icon-module';
export * from './icon';
export * from './icon-registry';
export * from './mat-exports';
+35
View File
@@ -0,0 +1,35 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdInput} from './input';
import {MdTextareaAutosize} from './autosize';
import {CommonModule} from '@angular/common';
import {PlatformModule} from '@angular/material/core';
import {MdFormFieldModule} from '@angular/material/form-field';
@NgModule({
declarations: [
MdInput,
MdTextareaAutosize,
],
imports: [
CommonModule,
MdFormFieldModule,
PlatformModule,
],
exports: [
// We re-export the `MdFormFieldModule` since `MdInput` will almost always be used together with
// `MdFormField`.
MdFormFieldModule,
MdInput,
MdTextareaAutosize,
],
})
export class MdInputModule {}
+16
View File
@@ -0,0 +1,16 @@
/**
* @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 {MdInput} from './input';
import {MdTextareaAutosize} from './autosize';
import {MdInputModule} from './input-module';
export {MdInput as MatInput};
export {MdInputModule as MatInputModule};
export {MdTextareaAutosize as MatTextareaAutosize};
+2 -28
View File
@@ -6,36 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdInput} from './input';
import {MdTextareaAutosize} from './autosize';
import {CommonModule} from '@angular/common';
import {PlatformModule} from '@angular/material/core';
import {MdFormFieldModule} from '@angular/material/form-field';
@NgModule({
declarations: [
MdInput,
MdTextareaAutosize,
],
imports: [
CommonModule,
MdFormFieldModule,
PlatformModule,
],
exports: [
// We re-export the `MdFormFieldModule` since `MdInput` will almost always be used together with
// `MdFormField`.
MdFormFieldModule,
MdInput,
MdTextareaAutosize,
],
})
export class MdInputModule {}
export * from './input-module';
export * from './autosize';
export * from './input';
export * from './input-errors';
export * from './mat-exports';
+63
View File
@@ -0,0 +1,63 @@
/**
* @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 {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {
MdCommonModule,
MdLineModule,
MdPseudoCheckboxModule,
MdRippleModule,
} from '@angular/material/core';
import {
MdDividerCssMatStyler,
MdList,
MdListAvatarCssMatStyler,
MdListCssMatStyler,
MdListDivider,
MdListIconCssMatStyler,
MdListItem,
MdListSubheaderCssMatStyler,
MdNavListCssMatStyler,
} from './list';
import {MdListOption, MdSelectionList} from './selection-list';
@NgModule({
imports: [MdLineModule, MdRippleModule, MdCommonModule, MdPseudoCheckboxModule, CommonModule],
exports: [
MdList,
MdListItem,
MdListDivider,
MdListAvatarCssMatStyler,
MdLineModule,
MdCommonModule,
MdListIconCssMatStyler,
MdListCssMatStyler,
MdNavListCssMatStyler,
MdDividerCssMatStyler,
MdListSubheaderCssMatStyler,
MdPseudoCheckboxModule,
MdSelectionList,
MdListOption
],
declarations: [
MdList,
MdListItem,
MdListDivider,
MdListAvatarCssMatStyler,
MdListIconCssMatStyler,
MdListCssMatStyler,
MdNavListCssMatStyler,
MdDividerCssMatStyler,
MdListSubheaderCssMatStyler,
MdSelectionList,
MdListOption
],
})
export class MdListModule {}
+48
View File
@@ -0,0 +1,48 @@
/**
* @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 {
MdDividerCssMatStyler,
MdList,
MdListAvatarCssMatStyler,
MdListBase,
MdListCssMatStyler,
MdListDivider,
MdListIconCssMatStyler,
MdListItem,
MdListItemBase,
MdListSubheaderCssMatStyler,
MdNavListCssMatStyler,
} from './list';
import {
MdListOption,
MdListOptionBase,
MdSelectionList,
MdSelectionListBase,
MdSelectionListOptionEvent,
} from './selection-list';
import {MdListModule} from './list-module';
export {MdDividerCssMatStyler as MatDividerCssMatStyler};
export {MdList as MatList};
export {MdListAvatarCssMatStyler as MatListAvatarCssMatStyler};
export {MdListBase as MatListBase};
export {MdListCssMatStyler as MatListCssMatStyler};
export {MdListDivider as MatListDivider};
export {MdListIconCssMatStyler as MatListIconCssMatStyler};
export {MdListItem as MatListItem};
export {MdListItemBase as MatListItemBase};
export {MdListModule as MatListModule};
export {MdListOption as MatListOption};
export {MdListOptionBase as MatListOptionBase};
export {MdListSubheaderCssMatStyler as MatListSubheaderCssMatStyler};
export {MdNavListCssMatStyler as MatNavListCssMatStyler};
export {MdSelectionList as MatSelectionList};
export {MdSelectionListBase as MatSelectionListBase};
export {MdSelectionListOptionEvent as MatSelectionListOptionEvent};
+2 -57
View File
@@ -6,62 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {
MdCommonModule,
MdLineModule,
MdPseudoCheckboxModule,
MdRippleModule,
} from '@angular/material/core';
import {
MdDividerCssMatStyler,
MdList,
MdListAvatarCssMatStyler,
MdListCssMatStyler,
MdListDivider,
MdListIconCssMatStyler,
MdListItem,
MdListSubheaderCssMatStyler,
MdNavListCssMatStyler,
} from './list';
import {MdListOption, MdSelectionList} from './selection-list';
@NgModule({
imports: [MdLineModule, MdRippleModule, MdCommonModule, MdPseudoCheckboxModule, CommonModule],
exports: [
MdList,
MdListItem,
MdListDivider,
MdListAvatarCssMatStyler,
MdLineModule,
MdCommonModule,
MdListIconCssMatStyler,
MdListCssMatStyler,
MdNavListCssMatStyler,
MdDividerCssMatStyler,
MdListSubheaderCssMatStyler,
MdPseudoCheckboxModule,
MdSelectionList,
MdListOption
],
declarations: [
MdList,
MdListItem,
MdListDivider,
MdListAvatarCssMatStyler,
MdListIconCssMatStyler,
MdListCssMatStyler,
MdNavListCssMatStyler,
MdDividerCssMatStyler,
MdListSubheaderCssMatStyler,
MdSelectionList,
MdListOption
],
})
export class MdListModule {}
export * from './list-module';
export * from './list';
export * from './selection-list';
export * from './mat-exports';
-527
View File
@@ -1,527 +0,0 @@
/**
* @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 {
MD_AUTOCOMPLETE_SCROLL_STRATEGY,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER,
MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY,
MD_AUTOCOMPLETE_VALUE_ACCESSOR,
MdAutocomplete,
MdAutocompleteModule,
MdAutocompleteTrigger,
} from '@angular/material/autocomplete';
import {
MdAnchor,
MdButton,
MdButtonBase,
MdButtonCssMatStyler,
MdButtonModule,
MdFab,
MdIconButtonCssMatStyler,
MdMiniFab,
MdRaisedButtonCssMatStyler,
} from '@angular/material/button';
import {
MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR,
MdButtonToggle,
MdButtonToggleChange,
MdButtonToggleGroup,
MdButtonToggleGroupBase,
MdButtonToggleGroupMultiple,
MdButtonToggleModule,
} from '@angular/material/button-toggle';
import {
MdCard,
MdCardActions,
MdCardAvatar,
MdCardContent,
MdCardFooter,
MdCardHeader,
MdCardImage,
MdCardLgImage,
MdCardMdImage,
MdCardModule,
MdCardSmImage,
MdCardSubtitle,
MdCardTitle,
MdCardTitleGroup,
MdCardXlImage,
} from '@angular/material/card';
import {
MD_CHECKBOX_CONTROL_VALUE_ACCESSOR,
MD_CHECKBOX_REQUIRED_VALIDATOR,
MdCheckbox,
MdCheckboxBase,
MdCheckboxChange,
MdCheckboxModule,
MdCheckboxRequiredValidator,
} from '@angular/material/checkbox';
import {
MdBasicChip,
MdChip,
MdChipBase,
MdChipEvent,
MdChipInput,
MdChipInputEvent,
MdChipList,
MdChipRemove,
MdChipsModule,
} from '@angular/material/chips';
import {
MD_DATE_FORMATS,
MD_ERROR_GLOBAL_OPTIONS,
MD_NATIVE_DATE_FORMATS,
MD_PLACEHOLDER_GLOBAL_OPTIONS,
MD_RIPPLE_GLOBAL_OPTIONS,
MdCommonModule,
MdDateFormats,
MdLine,
MdLineModule,
MdLineSetter,
MdNativeDateModule,
MdOptgroup,
MdOptgroupBase,
MdOption,
MdOptionModule,
MdOptionSelectionChange,
MdPseudoCheckbox,
MdPseudoCheckboxModule,
MdPseudoCheckboxState,
MdRipple,
MdRippleModule,
} from '@angular/material/core';
import {
MD_DATEPICKER_SCROLL_STRATEGY,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY,
MD_DATEPICKER_VALIDATORS,
MD_DATEPICKER_VALUE_ACCESSOR,
MdCalendar,
MdCalendarBody,
MdCalendarCell,
MdDatepicker,
MdDatepickerContent,
MdDatepickerInput,
MdDatepickerInputEvent,
MdDatepickerIntl,
MdDatepickerModule,
MdDatepickerToggle,
MdMonthView,
MdYearView,
} from '@angular/material/datepicker';
import {
MD_DIALOG_DATA,
MD_DIALOG_SCROLL_STRATEGY,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER,
MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdDialog,
MdDialogActions,
MdDialogClose,
MdDialogConfig,
MdDialogContainer,
MdDialogContent,
MdDialogModule,
MdDialogRef,
MdDialogTitle,
} from '@angular/material/dialog';
import {
MdAccordion,
MdAccordionDisplayMode,
MdExpansionModule,
MdExpansionPanel,
MdExpansionPanelActionRow,
MdExpansionPanelDescription,
MdExpansionPanelHeader,
MdExpansionPanelState,
MdExpansionPanelTitle,
} from '@angular/material/expansion';
import {
MdError,
MdFormField,
MdFormFieldControl,
MdFormFieldModule,
MdHint,
MdPlaceholder,
MdPrefix,
MdSuffix,
} from '@angular/material/form-field';
import {MdGridList, MdGridListModule, MdGridTile} from '@angular/material/grid-list';
import {MdIcon, MdIconBase, MdIconModule, MdIconRegistry} from '@angular/material/icon';
import {MdInput, MdInputModule, MdTextareaAutosize} from '@angular/material/input';
import {
MdDividerCssMatStyler,
MdList,
MdListAvatarCssMatStyler,
MdListBase,
MdListCssMatStyler,
MdListDivider,
MdListIconCssMatStyler,
MdListItem,
MdListItemBase,
MdListModule,
MdListOption,
MdListOptionBase,
MdListSubheaderCssMatStyler,
MdNavListCssMatStyler,
MdSelectionList,
MdSelectionListBase,
MdSelectionListOptionEvent,
} from '@angular/material/list';
import {
MD_MENU_DEFAULT_OPTIONS,
MdMenu,
MdMenuDefaultOptions,
MdMenuItem,
MdMenuModule,
MdMenuPanel,
MdMenuTrigger,
} from '@angular/material/menu';
import {MdPaginator, MdPaginatorIntl, MdPaginatorModule} from '@angular/material/paginator';
import {MdProgressBar, MdProgressBarModule} from '@angular/material/progress-bar';
import {
MdProgressSpinner,
MdProgressSpinnerBase,
MdProgressSpinnerCssMatStyler,
MdProgressSpinnerModule,
MdSpinner,
} from '@angular/material/progress-spinner';
import {
MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
MdRadioButton,
MdRadioButtonBase,
MdRadioChange,
MdRadioGroup,
MdRadioGroupBase,
MdRadioModule,
} from '@angular/material/radio';
import {
MD_SELECT_SCROLL_STRATEGY,
MD_SELECT_SCROLL_STRATEGY_PROVIDER,
MD_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdSelect,
MdSelectBase,
MdSelectChange,
MdSelectModule,
MdSelectTrigger,
} from '@angular/material/select';
import {
MdDrawer,
MdDrawerContainer,
MdDrawerToggleResult,
MdSidenav,
MdSidenavContainer,
MdSidenavModule,
} from '@angular/material/sidenav';
import {
MD_SLIDE_TOGGLE_VALUE_ACCESSOR,
MdSlideToggle,
MdSlideToggleBase,
MdSlideToggleChange,
MdSlideToggleModule,
} from '@angular/material/slide-toggle';
import {
MD_SLIDER_VALUE_ACCESSOR,
MdSlider,
MdSliderBase,
MdSliderChange,
MdSliderModule,
} from '@angular/material/slider';
import {
MD_SNACK_BAR_DATA,
MdSnackBar,
MdSnackBarConfig,
MdSnackBarContainer,
MdSnackBarModule,
MdSnackBarRef,
} from '@angular/material/snack-bar';
import {
MdSort,
MdSortable,
MdSortHeader,
MdSortHeaderIntl,
MdSortModule,
} from '@angular/material/sort';
import {
MdCell,
MdCellDef,
MdColumnDef,
MdHeaderCell,
MdHeaderCellDef,
MdHeaderRow,
MdRow,
MdTable,
MdTableModule,
} from '@angular/material/table';
import {
MdInkBar,
MdTab,
MdTabBody,
MdTabBodyOriginState,
MdTabBodyPositionState,
MdTabChangeEvent,
MdTabGroup,
MdTabGroupBase,
MdTabHeader,
MdTabHeaderPosition,
MdTabLabel,
MdTabLabelWrapper,
MdTabLink,
MdTabNav,
MdTabsModule,
} from '@angular/material/tabs';
import {MdToolbar, MdToolbarBase, MdToolbarModule, MdToolbarRow} from '@angular/material/toolbar';
import {
MD_TOOLTIP_SCROLL_STRATEGY,
MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER,
MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdTooltip,
MdTooltipModule,
} from '@angular/material/tooltip';
/* tslint:disable:max-line-length */
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY as MAT_AUTOCOMPLETE_SCROLL_STRATEGY};
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER as MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER};
export {MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_AUTOCOMPLETE_VALUE_ACCESSOR as MAT_AUTOCOMPLETE_VALUE_ACCESSOR};
export {MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR as MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR};
export {MD_CHECKBOX_CONTROL_VALUE_ACCESSOR as MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR};
export {MD_CHECKBOX_REQUIRED_VALIDATOR as MAT_CHECKBOX_REQUIRED_VALIDATOR};
export {MD_DATE_FORMATS as MAT_DATE_FORMATS};
export {MD_DATEPICKER_SCROLL_STRATEGY as MAT_DATEPICKER_SCROLL_STRATEGY};
export {MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER as MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER};
export {MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_DATEPICKER_VALIDATORS as MAT_DATEPICKER_VALIDATORS};
export {MD_DATEPICKER_VALUE_ACCESSOR as MAT_DATEPICKER_VALUE_ACCESSOR};
export {MD_DIALOG_DATA as MAT_DIALOG_DATA};
export {MD_DIALOG_SCROLL_STRATEGY as MAT_DIALOG_SCROLL_STRATEGY};
export {MD_DIALOG_SCROLL_STRATEGY_PROVIDER as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER};
export {MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_ERROR_GLOBAL_OPTIONS as MAT_ERROR_GLOBAL_OPTIONS};
export {MD_MENU_DEFAULT_OPTIONS as MAT_MENU_DEFAULT_OPTIONS};
export {MD_NATIVE_DATE_FORMATS as MAT_NATIVE_DATE_FORMATS};
export {MD_PLACEHOLDER_GLOBAL_OPTIONS as MAT_PLACEHOLDER_GLOBAL_OPTIONS};
export {MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR as MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR};
export {MD_RIPPLE_GLOBAL_OPTIONS as MAT_RIPPLE_GLOBAL_OPTIONS};
export {MD_SELECT_SCROLL_STRATEGY as MAT_SELECT_SCROLL_STRATEGY};
export {MD_SELECT_SCROLL_STRATEGY_PROVIDER as MAT_SELECT_SCROLL_STRATEGY_PROVIDER};
export {MD_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MD_SLIDE_TOGGLE_VALUE_ACCESSOR as MAT_SLIDE_TOGGLE_VALUE_ACCESSOR};
export {MD_SLIDER_VALUE_ACCESSOR as MAT_SLIDER_VALUE_ACCESSOR};
export {MD_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA};
export {MD_TOOLTIP_SCROLL_STRATEGY as MAT_TOOLTIP_SCROLL_STRATEGY};
export {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER as MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER};
export {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MdAccordion as MatAccordion};
export {MdAccordionDisplayMode as MatAccordionDisplayMode};
export {MdAnchor as MatAnchor};
export {MdAutocomplete as MatAutocomplete};
export {MdAutocompleteModule as MatAutocompleteModule};
export {MdAutocompleteTrigger as MatAutocompleteTrigger};
export {MdBasicChip as MatBasicChip};
export {MdButton as MatButton};
export {MdButtonBase as MatButtonBase};
export {MdButtonCssMatStyler as MatButtonCssMatStyler};
export {MdButtonModule as MatButtonModule};
export {MdButtonToggle as MatButtonToggle};
export {MdButtonToggleChange as MatButtonToggleChange};
export {MdButtonToggleGroup as MatButtonToggleGroup};
export {MdButtonToggleGroupBase as MatButtonToggleGroupBase};
export {MdButtonToggleGroupMultiple as MatButtonToggleGroupMultiple};
export {MdButtonToggleModule as MatButtonToggleModule};
export {MdCalendar as MatCalendar};
export {MdCalendarBody as MatCalendarBody};
export {MdCalendarCell as MatCalendarCell};
export {MdCard as MatCard};
export {MdCardActions as MatCardActions};
export {MdCardAvatar as MatCardAvatar};
export {MdCardContent as MatCardContent};
export {MdCardFooter as MatCardFooter};
export {MdCardHeader as MatCardHeader};
export {MdCardImage as MatCardImage};
export {MdCardLgImage as MatCardLgImage};
export {MdCardMdImage as MatCardMatImage};
export {MdCardModule as MatCardModule};
export {MdCardSmImage as MatCardSmImage};
export {MdCardSubtitle as MatCardSubtitle};
export {MdCardTitle as MatCardTitle};
export {MdCardTitleGroup as MatCardTitleGroup};
export {MdCardXlImage as MatCardXlImage};
export {MdCell as MatCell};
export {MdCellDef as MatCellDef};
export {MdCheckbox as MatCheckbox};
export {MdCheckboxBase as MatCheckboxBase};
export {MdCheckboxChange as MatCheckboxChange};
export {MdCheckboxModule as MatCheckboxModule};
export {MdCheckboxRequiredValidator as MatCheckboxRequiredValidator};
export {MdChip as MatChip};
export {MdChipBase as MatChipBase};
export {MdChipEvent as MatChipEvent};
export {MdChipInput as MatChipInput};
export {MdChipInputEvent as MatChipInputEvent};
export {MdChipList as MatChipList};
export {MdChipRemove as MatChipRemove};
export {MdChipsModule as MatChipsModule};
export {MdColumnDef as MatColumnDef};
export {MdCommonModule as MatCommonModule};
export {MdDateFormats as MatDateFormats};
export {MdDatepicker as MatDatepicker};
export {MdDatepickerContent as MatDatepickerContent};
export {MdDatepickerInput as MatDatepickerInput};
export {MdDatepickerInputEvent as MatDatepickerInputEvent};
export {MdDatepickerIntl as MatDatepickerIntl};
export {MdDatepickerModule as MatDatepickerModule};
export {MdDatepickerToggle as MatDatepickerToggle};
export {MdDialog as MatDialog};
export {MdDialogActions as MatDialogActions};
export {MdDialogClose as MatDialogClose};
export {MdDialogConfig as MatDialogConfig};
export {MdDialogContainer as MatDialogContainer};
export {MdDialogContent as MatDialogContent};
export {MdDialogModule as MatDialogModule};
export {MdDialogRef as MatDialogRef};
export {MdDialogTitle as MatDialogTitle};
export {MdDividerCssMatStyler as MatDividerCssMatStyler};
export {MdDrawerToggleResult as MatDrawerToggleResult};
export {MdDrawer as MatDrawer};
export {MdDrawerContainer as MatDrawerContainer};
export {MdExpansionModule as MatExpansionModule};
export {MdExpansionPanel as MatExpansionPanel};
export {MdExpansionPanelActionRow as MatExpansionPanelActionRow};
export {MdExpansionPanelDescription as MatExpansionPanelDescription};
export {MdExpansionPanelHeader as MatExpansionPanelHeader};
export {MdExpansionPanelState as MatExpansionPanelState};
export {MdExpansionPanelTitle as MatExpansionPanelTitle};
export {MdFab as MatFab};
export {MdGridList as MatGridList};
export {MdGridListModule as MatGridListModule};
export {MdGridTile as MatGridTile};
export {MdHeaderCell as MatHeaderCell};
export {MdHeaderCellDef as MatHeaderCellDef};
export {MdHeaderRow as MatHeaderRow};
export {MdIcon as MatIcon};
export {MdIconBase as MatIconBase};
export {MdIconButtonCssMatStyler as MatIconButtonCssMatStyler};
export {MdIconModule as MatIconModule};
export {MdIconRegistry as MatIconRegistry};
export {MdInkBar as MatInkBar};
export {MdInput as MatInput};
export {MdInputModule as MatInputModule};
export {MdLine as MatLine};
export {MdLineModule as MatLineModule};
export {MdLineSetter as MatLineSetter};
export {MdList as MatList};
export {MdListAvatarCssMatStyler as MatListAvatarCssMatStyler};
export {MdListBase as MatListBase};
export {MdListCssMatStyler as MatListCssMatStyler};
export {MdListDivider as MatListDivider};
export {MdListIconCssMatStyler as MatListIconCssMatStyler};
export {MdListItem as MatListItem};
export {MdListItemBase as MatListItemBase};
export {MdListModule as MatListModule};
export {MdListOption as MatListOption};
export {MdListOptionBase as MatListOptionBase};
export {MdListSubheaderCssMatStyler as MatListSubheaderCssMatStyler};
export {MdMenu as MatMenu};
export {MdMenuDefaultOptions as MatMenuDefaultOptions};
export {MdMenuItem as MatMenuItem};
export {MdMenuModule as MatMenuModule};
export {MdMenuPanel as MatMenuPanel};
export {MdMenuTrigger as MatMenuTrigger};
export {MdMiniFab as MatMiniFab};
export {MdMonthView as MatMonthView};
export {MdNativeDateModule as MatNativeDateModule};
export {MdNavListCssMatStyler as MatNavListCssMatStyler};
export {MdOptgroup as MatOptgroup};
export {MdOptgroupBase as MatOptgroupBase};
export {MdOption as MatOption};
export {MdOptionModule as MatOptionModule};
export {MdOptionSelectionChange as MatOptionSelectionChange};
export {MdPaginator as MatPaginator};
export {MdPaginatorIntl as MatPaginatorIntl};
export {MdPaginatorModule as MatPaginatorModule};
export {MdProgressBar as MatProgressBar};
export {MdProgressBarModule as MatProgressBarModule};
export {MdProgressSpinner as MatProgressSpinner};
export {MdProgressSpinnerBase as MatProgressSpinnerBase};
export {MdProgressSpinnerCssMatStyler as MatProgressSpinnerCssMatStyler};
export {MdProgressSpinnerModule as MatProgressSpinnerModule};
export {MdPseudoCheckbox as MatPseudoCheckbox};
export {MdPseudoCheckboxModule as MatPseudoCheckboxModule};
export {MdPseudoCheckboxState as MatPseudoCheckboxState};
export {MdRadioButton as MatRadioButton};
export {MdRadioButtonBase as MatRadioButtonBase};
export {MdRadioChange as MatRadioChange};
export {MdRadioGroup as MatRadioGroup};
export {MdRadioGroupBase as MatRadioGroupBase};
export {MdRadioModule as MatRadioModule};
export {MdRaisedButtonCssMatStyler as MatRaisedButtonCssMatStyler};
export {MdRipple as MatRipple};
export {MdRippleModule as MatRippleModule};
export {MdRow as MatRow};
export {MdSelect as MatSelect};
export {MdSelectBase as MatSelectBase};
export {MdSelectChange as MatSelectChange};
export {MdSelectionList as MatSelectionList};
export {MdSelectionListBase as MatSelectionListBase};
export {MdSelectionListOptionEvent as MatSelectionListOptionEvent};
export {MdSelectModule as MatSelectModule};
export {MdSelectTrigger as MatSelectTrigger};
export {MdSidenav as MatSidenav};
export {MdSidenavContainer as MatSidenavContainer};
export {MdSidenavModule as MatSidenavModule};
export {MdSlider as MatSlider};
export {MdSliderBase as MatSliderBase};
export {MdSliderChange as MatSliderChange};
export {MdSliderModule as MatSliderModule};
export {MdSlideToggle as MatSlideToggle};
export {MdSlideToggleBase as MatSlideToggleBase};
export {MdSlideToggleChange as MatSlideToggleChange};
export {MdSlideToggleModule as MatSlideToggleModule};
export {MdSnackBar as MatSnackBar};
export {MdSnackBarConfig as MatSnackBarConfig};
export {MdSnackBarContainer as MatSnackBarContainer};
export {MdSnackBarModule as MatSnackBarModule};
export {MdSnackBarRef as MatSnackBarRef};
export {MdSort as MatSort};
export {MdSortable as MatSortable};
export {MdSortHeader as MatSortHeader};
export {MdSortHeaderIntl as MatSortHeaderIntl};
export {MdSortModule as MatSortModule};
export {MdSpinner as MatSpinner};
export {MdTab as MatTab};
export {MdTabBody as MatTabBody};
export {MdTabBodyOriginState as MatTabBodyOriginState};
export {MdTabBodyPositionState as MatTabBodyPositionState};
export {MdTabChangeEvent as MatTabChangeEvent};
export {MdTabGroup as MatTabGroup};
export {MdTabGroupBase as MatTabGroupBase};
export {MdTabHeader as MatTabHeader};
export {MdTabHeaderPosition as MatTabHeaderPosition};
export {MdTabLabel as MatTabLabel};
export {MdTabLabelWrapper as MatTabLabelWrapper};
export {MdTable as MatTable};
export {MdTableModule as MatTableModule};
export {MdTabLink as MatTabLink};
export {MdTabNav as MatTabNav};
export {MdTabsModule as MatTabsModule};
export {MdTextareaAutosize as MatTextareaAutosize};
export {MdToolbar as MatToolbar};
export {MdToolbarBase as MatToolbarBase};
export {MdToolbarModule as MatToolbarModule};
export {MdToolbarRow as MatToolbarRow};
export {MdTooltip as MatTooltip};
export {MdTooltipModule as MatTooltipModule};
export {MdYearView as MatYearView};
export {MdFormFieldModule as MatFormFieldModule};
export {MdError as MatError};
export {MdFormField as MatFormField};
export {MdFormFieldControl as MatFormFieldControl};
export {MdHint as MatHint};
export {MdPlaceholder as MatPlaceholder};
export {MdPrefix as MatPrefix};
export {MdSuffix as MatSuffix};
+26
View File
@@ -0,0 +1,26 @@
/**
* @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 {
MD_MENU_DEFAULT_OPTIONS,
MdMenu,
MdMenuDefaultOptions,
MdMenuItem,
MdMenuPanel,
MdMenuTrigger,
} from './menu';
import {MdMenuModule} from './menu-module';
export {MD_MENU_DEFAULT_OPTIONS as MAT_MENU_DEFAULT_OPTIONS};
export {MdMenu as MatMenu};
export {MdMenuDefaultOptions as MatMenuDefaultOptions};
export {MdMenuItem as MatMenuItem};
export {MdMenuModule as MatMenuModule};
export {MdMenuPanel as MatMenuPanel};
export {MdMenuTrigger as MatMenuTrigger};
+40
View File
@@ -0,0 +1,40 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdMenu, MD_MENU_DEFAULT_OPTIONS} from './menu-directive';
import {MdMenuItem} from './menu-item';
import {MdMenuTrigger, MD_MENU_SCROLL_STRATEGY_PROVIDER} from './menu-trigger';
import {MdRippleModule} from '@angular/material/core';
@NgModule({
imports: [
OverlayModule,
CommonModule,
MdRippleModule,
MdCommonModule,
],
exports: [MdMenu, MdMenuItem, MdMenuTrigger, MdCommonModule],
declarations: [MdMenu, MdMenuItem, MdMenuTrigger],
providers: [
MD_MENU_SCROLL_STRATEGY_PROVIDER,
{
provide: MD_MENU_DEFAULT_OPTIONS,
useValue: {
overlapTrigger: true,
xPosition: 'after',
yPosition: 'below',
},
}
],
})
export class MdMenuModule {}
+2 -34
View File
@@ -6,40 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdMenu, MD_MENU_DEFAULT_OPTIONS} from './menu-directive';
import {MdMenuItem} from './menu-item';
import {MdMenuTrigger, MD_MENU_SCROLL_STRATEGY_PROVIDER} from './menu-trigger';
import {MdRippleModule} from '@angular/material/core';
@NgModule({
imports: [
OverlayModule,
CommonModule,
MdRippleModule,
MdCommonModule,
],
exports: [MdMenu, MdMenuItem, MdMenuTrigger, MdCommonModule],
declarations: [MdMenu, MdMenuItem, MdMenuTrigger],
providers: [
MD_MENU_SCROLL_STRATEGY_PROVIDER,
{
provide: MD_MENU_DEFAULT_OPTIONS,
useValue: {
overlapTrigger: true,
xPosition: 'after',
yPosition: 'below',
},
}
],
})
export class MdMenuModule {}
export * from './menu-module';
export * from './menu';
export {MD_MENU_SCROLL_STRATEGY} from './menu-trigger';
export {fadeInItems, transformMenu} from './menu-animations';
export * from './mat-exports';
+16
View File
@@ -0,0 +1,16 @@
/**
* @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 {MdPaginator} from './paginator';
import {MdPaginatorIntl} from './paginator-intl';
import {MdPaginatorModule} from './paginator-module';
export {MdPaginator as MatPaginator};
export {MdPaginatorIntl as MatPaginatorIntl};
export {MdPaginatorModule as MatPaginatorModule};
+29
View File
@@ -0,0 +1,29 @@
/**
* @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 {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdSelectModule} from '@angular/material/select';
import {MdTooltipModule} from '@angular/material/tooltip';
import {MdPaginator} from './paginator';
import {MdPaginatorIntl} from './paginator-intl';
@NgModule({
imports: [
CommonModule,
MdButtonModule,
MdSelectModule,
MdTooltipModule,
],
exports: [MdPaginator],
declarations: [MdPaginator],
providers: [MdPaginatorIntl],
})
export class MdPaginatorModule {}
+2 -23
View File
@@ -6,28 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdSelectModule} from '@angular/material/select';
import {MdTooltipModule} from '@angular/material/tooltip';
import {MdPaginator} from './paginator';
import {MdPaginatorIntl} from './paginator-intl';
@NgModule({
imports: [
CommonModule,
MdButtonModule,
MdSelectModule,
MdTooltipModule,
],
exports: [MdPaginator],
declarations: [MdPaginator],
providers: [MdPaginatorIntl],
})
export class MdPaginatorModule {}
export * from './paginator-module';
export * from './paginator';
export * from './paginator-intl';
export * from './mat-exports';
+14
View File
@@ -0,0 +1,14 @@
/**
* @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 {MdProgressBar} from './progress-bar';
import {MdProgressBarModule} from './progress-bar-module';
export {MdProgressBar as MatProgressBar};
export {MdProgressBarModule as MatProgressBarModule};
@@ -0,0 +1,20 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
import {MdProgressBar} from './progress-bar';
@NgModule({
imports: [CommonModule, MdCommonModule],
exports: [MdProgressBar, MdCommonModule],
declarations: [MdProgressBar],
})
export class MdProgressBarModule {}
+2 -14
View File
@@ -6,18 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
import {MdProgressBar} from './progress-bar';
@NgModule({
imports: [CommonModule, MdCommonModule],
exports: [MdProgressBar, MdCommonModule],
declarations: [MdProgressBar],
})
export class MdProgressBarModule {}
export * from './progress-bar-module';
export * from './progress-bar';
export * from './mat-exports';
+22
View File
@@ -0,0 +1,22 @@
/**
* @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 {
MdProgressSpinner,
MdProgressSpinnerBase,
MdProgressSpinnerCssMatStyler,
MdSpinner,
} from './progress-spinner';
import {MdProgressSpinnerModule} from './progress-spinner-module';
export {MdProgressSpinner as MatProgressSpinner};
export {MdProgressSpinnerBase as MatProgressSpinnerBase};
export {MdProgressSpinnerCssMatStyler as MatProgressSpinnerCssMatStyler};
export {MdProgressSpinnerModule as MatProgressSpinnerModule};
export {MdSpinner as MatSpinner};
@@ -0,0 +1,32 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {
MdProgressSpinner,
MdSpinner,
MdProgressSpinnerCssMatStyler,
} from './progress-spinner';
@NgModule({
imports: [MdCommonModule],
exports: [
MdProgressSpinner,
MdSpinner,
MdCommonModule,
MdProgressSpinnerCssMatStyler
],
declarations: [
MdProgressSpinner,
MdSpinner,
MdProgressSpinnerCssMatStyler
],
})
export class MdProgressSpinnerModule {}
+2 -26
View File
@@ -6,30 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {
MdProgressSpinner,
MdSpinner,
MdProgressSpinnerCssMatStyler,
} from './progress-spinner';
@NgModule({
imports: [MdCommonModule],
exports: [
MdProgressSpinner,
MdSpinner,
MdCommonModule,
MdProgressSpinnerCssMatStyler
],
declarations: [
MdProgressSpinner,
MdSpinner,
MdProgressSpinnerCssMatStyler
],
})
class MdProgressSpinnerModule {}
export {MdProgressSpinnerModule};
export * from './progress-spinner-module';
export * from './progress-spinner';
export * from './mat-exports';
-9
View File
@@ -6,15 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of Angular Material.
*/
export * from './version';
export * from '@angular/material/autocomplete';
export * from '@angular/material/button';
export * from '@angular/material/button-toggle';
@@ -46,4 +38,3 @@ export * from '@angular/material/table';
export * from '@angular/material/tabs';
export * from '@angular/material/toolbar';
export * from '@angular/material/tooltip';
export * from './mat-exports';
+26
View File
@@ -0,0 +1,26 @@
/**
* @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 {
MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
MdRadioButton,
MdRadioButtonBase,
MdRadioChange,
MdRadioGroup,
MdRadioGroupBase,
} from './radio';
import {MdRadioModule} from './radio-module';
export {MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR as MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR};
export {MdRadioButton as MatRadioButton};
export {MdRadioButtonBase as MatRadioButtonBase};
export {MdRadioChange as MatRadioChange};
export {MdRadioGroup as MatRadioGroup};
export {MdRadioGroupBase as MatRadioGroupBase};
export {MdRadioModule as MatRadioModule};
+2 -20
View File
@@ -6,24 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {VIEWPORT_RULER_PROVIDER} from '@angular/cdk/overlay';
import {
MdRippleModule,
MdCommonModule,
UNIQUE_SELECTION_DISPATCHER_PROVIDER,
} from '@angular/material/core';
import {MdRadioGroup, MdRadioButton} from './radio';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdRippleModule, MdCommonModule, A11yModule],
exports: [MdRadioGroup, MdRadioButton, MdCommonModule],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER, VIEWPORT_RULER_PROVIDER],
declarations: [MdRadioGroup, MdRadioButton],
})
export class MdRadioModule {}
export * from './radio-module';
export * from './radio';
export * from './mat-exports';
+26
View File
@@ -0,0 +1,26 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {VIEWPORT_RULER_PROVIDER} from '@angular/cdk/overlay';
import {
MdRippleModule,
MdCommonModule,
UNIQUE_SELECTION_DISPATCHER_PROVIDER,
} from '@angular/material/core';
import {MdRadioGroup, MdRadioButton} from './radio';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdRippleModule, MdCommonModule, A11yModule],
exports: [MdRadioGroup, MdRadioButton, MdCommonModule],
providers: [UNIQUE_SELECTION_DISPATCHER_PROVIDER, VIEWPORT_RULER_PROVIDER],
declarations: [MdRadioGroup, MdRadioButton],
})
export class MdRadioModule {}
+28
View File
@@ -0,0 +1,28 @@
/**
* @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 {
MD_SELECT_SCROLL_STRATEGY,
MD_SELECT_SCROLL_STRATEGY_PROVIDER,
MD_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdSelect,
MdSelectBase,
MdSelectChange,
MdSelectTrigger,
} from './select';
import {MdSelectModule} from './select-module';
export {MD_SELECT_SCROLL_STRATEGY as MAT_SELECT_SCROLL_STRATEGY};
export {MD_SELECT_SCROLL_STRATEGY_PROVIDER as MAT_SELECT_SCROLL_STRATEGY_PROVIDER};
export {MD_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY};
export {MdSelect as MatSelect};
export {MdSelectBase as MatSelectBase};
export {MdSelectChange as MatSelectChange};
export {MdSelectModule as MatSelectModule};
export {MdSelectTrigger as MatSelectTrigger};
+2 -21
View File
@@ -6,26 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdSelect, MdSelectTrigger, MD_SELECT_SCROLL_STRATEGY_PROVIDER} from './select';
import {MdCommonModule, MdOptionModule} from '@angular/material/core';
import {OverlayModule} from '@angular/cdk/overlay';
@NgModule({
imports: [
CommonModule,
OverlayModule,
MdOptionModule,
MdCommonModule,
],
exports: [MdSelect, MdSelectTrigger, MdOptionModule, MdCommonModule],
declarations: [MdSelect, MdSelectTrigger],
providers: [MD_SELECT_SCROLL_STRATEGY_PROVIDER]
})
export class MdSelectModule {}
export * from './select-module';
export * from './select';
export {fadeInContent, transformPanel, transformPlaceholder} from './select-animations';
export * from './mat-exports';
+27
View File
@@ -0,0 +1,27 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MdSelect, MdSelectTrigger, MD_SELECT_SCROLL_STRATEGY_PROVIDER} from './select';
import {MdCommonModule, MdOptionModule} from '@angular/material/core';
import {OverlayModule} from '@angular/cdk/overlay';
@NgModule({
imports: [
CommonModule,
OverlayModule,
MdOptionModule,
MdCommonModule,
],
exports: [MdSelect, MdSelectTrigger, MdOptionModule, MdCommonModule],
declarations: [MdSelect, MdSelectTrigger],
providers: [MD_SELECT_SCROLL_STRATEGY_PROVIDER]
})
export class MdSelectModule {}
+19
View File
@@ -0,0 +1,19 @@
/**
* @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 {MdDrawer, MdDrawerContainer, MdDrawerToggleResult} from './drawer';
import {MdSidenav, MdSidenavContainer} from './sidenav';
import {MdSidenavModule} from './sidenav-module';
export {MdDrawerToggleResult as MatDrawerToggleResult};
export {MdDrawer as MatDrawer};
export {MdDrawerContainer as MatDrawerContainer};
export {MdSidenav as MatSidenav};
export {MdSidenavContainer as MatSidenavContainer};
export {MdSidenavModule as MatSidenavModule};
+2 -17
View File
@@ -6,22 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {A11yModule} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdCommonModule} from '@angular/material/core';
import {MdDrawer, MdDrawerContainer} from './drawer';
import {MdSidenav, MdSidenavContainer} from './sidenav';
@NgModule({
imports: [CommonModule, MdCommonModule, A11yModule, OverlayModule],
exports: [MdDrawerContainer, MdDrawer, MdSidenavContainer, MdSidenav, MdCommonModule],
declarations: [MdDrawerContainer, MdDrawer, MdSidenavContainer, MdSidenav],
})
export class MdSidenavModule {}
export * from './sidenav-module';
export * from './drawer';
export * from './sidenav';
export * from './mat-exports';
+23
View File
@@ -0,0 +1,23 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {A11yModule} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {MdCommonModule} from '@angular/material/core';
import {MdDrawer, MdDrawerContainer} from './drawer';
import {MdSidenav, MdSidenavContainer} from './sidenav';
@NgModule({
imports: [CommonModule, MdCommonModule, A11yModule, OverlayModule],
exports: [MdDrawerContainer, MdDrawer, MdSidenavContainer, MdSidenav, MdCommonModule],
declarations: [MdDrawerContainer, MdDrawer, MdSidenavContainer, MdSidenav],
})
export class MdSidenavModule {}
+22
View File
@@ -0,0 +1,22 @@
/**
* @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 {
MD_SLIDE_TOGGLE_VALUE_ACCESSOR,
MdSlideToggle,
MdSlideToggleBase,
MdSlideToggleChange,
} from './slide-toggle';
import {MdSlideToggleModule} from './slide-toggle-module';
export {MD_SLIDE_TOGGLE_VALUE_ACCESSOR as MAT_SLIDE_TOGGLE_VALUE_ACCESSOR};
export {MdSlideToggle as MatSlideToggle};
export {MdSlideToggleBase as MatSlideToggleBase};
export {MdSlideToggleChange as MatSlideToggleChange};
export {MdSlideToggleModule as MatSlideToggleModule};
+2 -24
View File
@@ -6,28 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ObserversModule} from '@angular/cdk/observers';
import {PlatformModule} from '@angular/cdk/platform';
import {NgModule} from '@angular/core';
import {
GestureConfig,
MdCommonModule,
MdRippleModule,
} from '@angular/material/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {A11yModule} from '@angular/cdk/a11y';
import {MdSlideToggle} from './slide-toggle';
@NgModule({
imports: [MdRippleModule, MdCommonModule, PlatformModule, ObserversModule, A11yModule],
exports: [MdSlideToggle, MdCommonModule],
declarations: [MdSlideToggle],
providers: [
{provide: HAMMER_GESTURE_CONFIG, useClass: GestureConfig}
],
})
export class MdSlideToggleModule {}
export * from './slide-toggle-module';
export * from './slide-toggle';
export * from './mat-exports';
@@ -0,0 +1,30 @@
/**
* @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 {ObserversModule} from '@angular/cdk/observers';
import {PlatformModule} from '@angular/cdk/platform';
import {NgModule} from '@angular/core';
import {
GestureConfig,
MdCommonModule,
MdRippleModule,
} from '@angular/material/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {A11yModule} from '@angular/cdk/a11y';
import {MdSlideToggle} from './slide-toggle';
@NgModule({
imports: [MdRippleModule, MdCommonModule, PlatformModule, ObserversModule, A11yModule],
exports: [MdSlideToggle, MdCommonModule],
declarations: [MdSlideToggle],
providers: [
{provide: HAMMER_GESTURE_CONFIG, useClass: GestureConfig}
],
})
export class MdSlideToggleModule {}
+22
View File
@@ -0,0 +1,22 @@
/**
* @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 {
MD_SLIDER_VALUE_ACCESSOR,
MdSlider,
MdSliderBase,
MdSliderChange,
} from './slider';
import {MdSliderModule} from './slider-module';
export {MD_SLIDER_VALUE_ACCESSOR as MAT_SLIDER_VALUE_ACCESSOR};
export {MdSlider as MatSlider};
export {MdSliderBase as MatSliderBase};
export {MdSliderChange as MatSliderChange};
export {MdSliderModule as MatSliderModule};
+2 -18
View File
@@ -6,22 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {CommonModule} from '@angular/common';
import {MdCommonModule, GestureConfig} from '@angular/material/core';
import {MdSlider} from './slider';
import {BidiModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdCommonModule, BidiModule, A11yModule],
exports: [MdSlider, MdCommonModule],
declarations: [MdSlider],
providers: [{provide: HAMMER_GESTURE_CONFIG, useClass: GestureConfig}]
})
export class MdSliderModule {}
export * from './slider-module';
export * from './slider';
export * from './mat-exports';
+24
View File
@@ -0,0 +1,24 @@
/**
* @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 {NgModule} from '@angular/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {CommonModule} from '@angular/common';
import {MdCommonModule, GestureConfig} from '@angular/material/core';
import {MdSlider} from './slider';
import {BidiModule} from '@angular/material/core';
import {A11yModule} from '@angular/cdk/a11y';
@NgModule({
imports: [CommonModule, MdCommonModule, BidiModule, A11yModule],
exports: [MdSlider, MdCommonModule],
declarations: [MdSlider],
providers: [{provide: HAMMER_GESTURE_CONFIG, useClass: GestureConfig}]
})
export class MdSliderModule {}
+21
View File
@@ -0,0 +1,21 @@
/**
* @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 {MdSnackBar} from './snack-bar';
import {MD_SNACK_BAR_DATA, MdSnackBarConfig} from './snack-bar-config';
import {MdSnackBarContainer} from './snack-bar-container';
import {MdSnackBarModule} from './snack-bar-module';
import {MdSnackBarRef} from './snack-bar-ref';
export {MD_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA};
export {MdSnackBar as MatSnackBar};
export {MdSnackBarConfig as MatSnackBarConfig};
export {MdSnackBarContainer as MatSnackBarContainer};
export {MdSnackBarModule as MatSnackBarModule};
export {MdSnackBarRef as MatSnackBarRef};
+2 -26
View File
@@ -6,34 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalModule} from '@angular/cdk/portal';
import {LIVE_ANNOUNCER_PROVIDER} from '@angular/cdk/a11y';
import {MdCommonModule} from '@angular/material/core';
import {MdSnackBar} from './snack-bar';
import {MdSnackBarContainer} from './snack-bar-container';
import {SimpleSnackBar} from './simple-snack-bar';
@NgModule({
imports: [
OverlayModule,
PortalModule,
CommonModule,
MdCommonModule,
],
exports: [MdSnackBarContainer, MdCommonModule],
declarations: [MdSnackBarContainer, SimpleSnackBar],
entryComponents: [MdSnackBarContainer, SimpleSnackBar],
providers: [MdSnackBar, LIVE_ANNOUNCER_PROVIDER]
})
export class MdSnackBarModule {}
export * from './snack-bar-module';
export * from './snack-bar';
export * from './snack-bar-container';
export * from './snack-bar-config';
export * from './snack-bar-ref';
export * from './simple-snack-bar';
export * from './mat-exports';
+32
View File
@@ -0,0 +1,32 @@
/**
* @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 {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalModule} from '@angular/cdk/portal';
import {LIVE_ANNOUNCER_PROVIDER} from '@angular/cdk/a11y';
import {MdCommonModule} from '@angular/material/core';
import {MdSnackBar} from './snack-bar';
import {MdSnackBarContainer} from './snack-bar-container';
import {SimpleSnackBar} from './simple-snack-bar';
@NgModule({
imports: [
OverlayModule,
PortalModule,
CommonModule,
MdCommonModule,
],
exports: [MdSnackBarContainer, MdCommonModule],
declarations: [MdSnackBarContainer, SimpleSnackBar],
entryComponents: [MdSnackBarContainer, SimpleSnackBar],
providers: [MdSnackBar, LIVE_ANNOUNCER_PROVIDER]
})
export class MdSnackBarModule {}
+19
View File
@@ -0,0 +1,19 @@
/**
* @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 {MdSort, MdSortable} from './sort';
import {MdSortHeader} from './sort-header';
import {MdSortHeaderIntl} from './sort-header-intl';
import {MdSortModule} from './sort-module';
export {MdSort as MatSort};
export {MdSortable as MatSortable};
export {MdSortHeader as MatSortHeader};
export {MdSortHeaderIntl as MatSortHeaderIntl};
export {MdSortModule as MatSortModule};
+2 -14
View File
@@ -6,21 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdSortHeader} from './sort-header';
import {MdSort} from './sort';
import {MdSortHeaderIntl} from './sort-header-intl';
import {CommonModule} from '@angular/common';
export * from './sort-module';
export * from './sort-direction';
export * from './sort-header';
export * from './sort-header-intl';
export * from './sort';
@NgModule({
imports: [CommonModule],
exports: [MdSort, MdSortHeader],
declarations: [MdSort, MdSortHeader],
providers: [MdSortHeaderIntl]
})
export class MdSortModule {}
export * from './mat-exports';
+22
View File
@@ -0,0 +1,22 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdSortHeader} from './sort-header';
import {MdSort} from './sort';
import {MdSortHeaderIntl} from './sort-header-intl';
import {CommonModule} from '@angular/common';
@NgModule({
imports: [CommonModule],
exports: [MdSort, MdSortHeader],
declarations: [MdSort, MdSortHeader],
providers: [MdSortHeaderIntl]
})
export class MdSortModule {}
+29
View File
@@ -0,0 +1,29 @@
/**
* @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 {
MdHorizontalStepper,
MdStep,
MdStepper,
MdVerticalStepper,
} from './stepper';
import {MdStepHeader} from './step-header';
import {MdStepLabel} from './step-label';
import {MdStepperNext, MdStepperPrevious} from './stepper-button';
import {MdStepperModule} from './stepper-module';
export {MdStep as MatStep};
export {MdStepHeader as MatStepHeader};
export {MdStepLabel as MatStepLabel};
export {MdStepper as MatStepper};
export {MdHorizontalStepper as MatHorizontalStepper};
export {MdStepperModule as MatStepperModule};
export {MdVerticalStepper as MatVerticalStepper};
export {MdStepperPrevious as MatStepperPrevious};
export {MdStepperNext as MatStepperNext};
+2 -38
View File
@@ -6,45 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {PortalModule} from '@angular/cdk/portal';
import {CdkStepperModule} from '@angular/cdk/stepper';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdCommonModule} from '@angular/material/core';
import {MdIconModule} from '@angular/material/icon';
import {MdStepHeader} from './step-header';
import {MdStepLabel} from './step-label';
import {MdHorizontalStepper, MdStep, MdStepper, MdVerticalStepper} from './stepper';
import {MdStepperNext, MdStepperPrevious} from './stepper-button';
@NgModule({
imports: [
MdCommonModule,
CommonModule,
PortalModule,
MdButtonModule,
CdkStepperModule,
MdIconModule
],
exports: [
MdCommonModule,
MdHorizontalStepper,
MdVerticalStepper,
MdStep,
MdStepLabel,
MdStepper,
MdStepperNext,
MdStepperPrevious,
MdStepHeader
],
declarations: [MdHorizontalStepper, MdVerticalStepper, MdStep, MdStepLabel, MdStepper,
MdStepperNext, MdStepperPrevious, MdStepHeader],
})
export class MdStepperModule {}
export * from './stepper-module';
export * from './step-label';
export * from './stepper';
export * from './stepper-button';
export * from './step-header';
export * from './mat-exports';
+45
View File
@@ -0,0 +1,45 @@
/**
* @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 {PortalModule} from '@angular/cdk/portal';
import {CdkStepperModule} from '@angular/cdk/stepper';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdButtonModule} from '@angular/material/button';
import {MdCommonModule} from '@angular/material/core';
import {MdIconModule} from '@angular/material/icon';
import {MdStepHeader} from './step-header';
import {MdStepLabel} from './step-label';
import {MdHorizontalStepper, MdStep, MdStepper, MdVerticalStepper} from './stepper';
import {MdStepperNext, MdStepperPrevious} from './stepper-button';
@NgModule({
imports: [
MdCommonModule,
CommonModule,
PortalModule,
MdButtonModule,
CdkStepperModule,
MdIconModule
],
exports: [
MdCommonModule,
MdHorizontalStepper,
MdVerticalStepper,
MdStep,
MdStepLabel,
MdStepper,
MdStepperNext,
MdStepperPrevious,
MdStepHeader
],
declarations: [MdHorizontalStepper, MdVerticalStepper, MdStep, MdStepLabel, MdStepper,
MdStepperNext, MdStepperPrevious, MdStepHeader],
})
export class MdStepperModule {}
+23
View File
@@ -0,0 +1,23 @@
/**
* @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 {MdCell, MdCellDef, MdColumnDef, MdHeaderCell, MdHeaderCellDef} from './cell';
import {MdHeaderRow, MdRow} from './row';
import {MdTable} from './table';
import {MdTableModule} from './table-module';
export {MdCell as MatCell};
export {MdCellDef as MatCellDef};
export {MdColumnDef as MatColumnDef};
export {MdHeaderCell as MatHeaderCell};
export {MdHeaderCellDef as MatHeaderCellDef};
export {MdHeaderRow as MatHeaderRow};
export {MdRow as MatRow};
export {MdTable as MatTable};
export {MdTableModule as MatTableModule};
+2 -21
View File
@@ -6,27 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdTable} from './table';
import {CdkTableModule} from '@angular/cdk/table';
import {MdCell, MdHeaderCell, MdCellDef, MdHeaderCellDef, MdColumnDef} from './cell';
import {MdHeaderRow, MdRow, MdHeaderRowDef, MdRowDef, MatHeaderRowDef, MatRowDef} from './row';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
export * from './table-module';
export * from './cell';
export * from './table';
export * from './row';
@NgModule({
imports: [CdkTableModule, CommonModule, MdCommonModule],
exports: [MdTable, MdCellDef, MdHeaderCellDef, MdColumnDef,
MdHeaderRowDef, MdRowDef,
MdHeaderCell, MdCell, MdHeaderRow, MdRow,
MatHeaderRowDef, MatRowDef],
declarations: [MdTable, MdCellDef, MdHeaderCellDef, MdColumnDef,
MdHeaderRowDef, MdRowDef,
MdHeaderCell, MdCell, MdHeaderRow, MdRow,
MatHeaderRowDef, MatRowDef],
})
export class MdTableModule {}
export * from './mat-exports';
+28
View File
@@ -0,0 +1,28 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdTable} from './table';
import {CdkTableModule} from '@angular/cdk/table';
import {MdCell, MdHeaderCell, MdCellDef, MdHeaderCellDef, MdColumnDef} from './cell';
import {MdHeaderRow, MdRow, MdHeaderRowDef, MdRowDef, MatHeaderRowDef, MatRowDef} from './row';
import {CommonModule} from '@angular/common';
import {MdCommonModule} from '@angular/material/core';
@NgModule({
imports: [CdkTableModule, CommonModule, MdCommonModule],
exports: [MdTable, MdCellDef, MdHeaderCellDef, MdColumnDef,
MdHeaderRowDef, MdRowDef,
MdHeaderCell, MdCell, MdHeaderRow, MdRow,
MatHeaderRowDef, MatRowDef],
declarations: [MdTable, MdCellDef, MdHeaderCellDef, MdColumnDef,
MdHeaderRowDef, MdRowDef,
MdHeaderCell, MdCell, MdHeaderRow, MdRow,
MatHeaderRowDef, MatRowDef],
})
export class MdTableModule {}
+34
View File
@@ -0,0 +1,34 @@
/**
* @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 {MdInkBar} from './ink-bar';
import {MdTab} from './tab';
import {MdTabBody, MdTabBodyOriginState, MdTabBodyPositionState} from './tab-body';
import {MdTabChangeEvent, MdTabGroup, MdTabGroupBase, MdTabHeaderPosition} from './tab-group';
import {MdTabHeader} from './tab-header';
import {MdTabLabel} from './tab-label';
import {MdTabLabelWrapper} from './tab-label-wrapper';
import {MdTabLink, MdTabNav} from './tab-nav-bar/index';
import {MdTabsModule} from './tabs-module';
export {MdInkBar as MatInkBar};
export {MdTab as MatTab};
export {MdTabBody as MatTabBody};
export {MdTabBodyOriginState as MatTabBodyOriginState};
export {MdTabBodyPositionState as MatTabBodyPositionState};
export {MdTabChangeEvent as MatTabChangeEvent};
export {MdTabGroup as MatTabGroup};
export {MdTabGroupBase as MatTabGroupBase};
export {MdTabHeader as MatTabHeader};
export {MdTabHeaderPosition as MatTabHeaderPosition};
export {MdTabLabel as MatTabLabel};
export {MdTabLabelWrapper as MatTabLabelWrapper};
export {MdTabLink as MatTabLink};
export {MdTabNav as MatTabNav};
export {MdTabsModule as MatTabsModule};
+2 -50
View File
@@ -6,56 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {ObserversModule} from '@angular/cdk/observers';
import {PortalModule} from '@angular/cdk/portal';
import {ScrollDispatchModule, VIEWPORT_RULER_PROVIDER} from '@angular/cdk/scrolling';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdCommonModule, MdRippleModule} from '@angular/material/core';
import {MdInkBar} from './ink-bar';
import {MdTab} from './tab';
import {MdTabBody} from './tab-body';
import {MdTabGroup} from './tab-group';
import {MdTabHeader} from './tab-header';
import {MdTabLabel} from './tab-label';
import {MdTabLabelWrapper} from './tab-label-wrapper';
import {MdTabLink, MdTabNav} from './tab-nav-bar/tab-nav-bar';
@NgModule({
imports: [
CommonModule,
MdCommonModule,
PortalModule,
MdRippleModule,
ObserversModule,
ScrollDispatchModule,
],
// Don't export all components because some are only to be used internally.
exports: [
MdCommonModule,
MdTabGroup,
MdTabLabel,
MdTab,
MdTabNav,
MdTabLink,
],
declarations: [
MdTabGroup,
MdTabLabel,
MdTab,
MdInkBar,
MdTabLabelWrapper,
MdTabNav,
MdTabLink,
MdTabBody,
MdTabHeader
],
providers: [VIEWPORT_RULER_PROVIDER],
})
export class MdTabsModule {}
export * from './tabs-module';
export * from './tab-group';
export {MdInkBar} from './ink-bar';
export {MdTabBody, MdTabBodyOriginState, MdTabBodyPositionState} from './tab-body';
@@ -65,3 +16,4 @@ export {MdTab} from './tab';
export {MdTabLabel} from './tab-label';
export {MdTabNav, MdTabLink} from './tab-nav-bar/index';
export * from './mat-exports';
+56
View File
@@ -0,0 +1,56 @@
/**
* @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 {ObserversModule} from '@angular/cdk/observers';
import {PortalModule} from '@angular/cdk/portal';
import {ScrollDispatchModule, VIEWPORT_RULER_PROVIDER} from '@angular/cdk/scrolling';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdCommonModule, MdRippleModule} from '@angular/material/core';
import {MdInkBar} from './ink-bar';
import {MdTab} from './tab';
import {MdTabBody} from './tab-body';
import {MdTabGroup} from './tab-group';
import {MdTabHeader} from './tab-header';
import {MdTabLabel} from './tab-label';
import {MdTabLabelWrapper} from './tab-label-wrapper';
import {MdTabLink, MdTabNav} from './tab-nav-bar/tab-nav-bar';
@NgModule({
imports: [
CommonModule,
MdCommonModule,
PortalModule,
MdRippleModule,
ObserversModule,
ScrollDispatchModule,
],
// Don't export all components because some are only to be used internally.
exports: [
MdCommonModule,
MdTabGroup,
MdTabLabel,
MdTab,
MdTabNav,
MdTabLink,
],
declarations: [
MdTabGroup,
MdTabLabel,
MdTab,
MdInkBar,
MdTabLabelWrapper,
MdTabNav,
MdTabLink,
MdTabBody,
MdTabHeader
],
providers: [VIEWPORT_RULER_PROVIDER],
})
export class MdTabsModule {}
+16
View File
@@ -0,0 +1,16 @@
/**
* @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 {MdToolbar, MdToolbarBase, MdToolbarRow} from './toolbar';
import {MdToolbarModule} from './toolbar-module';
export {MdToolbar as MatToolbar};
export {MdToolbarBase as MatToolbarBase};
export {MdToolbarModule as MatToolbarModule};
export {MdToolbarRow as MatToolbarRow};
+2 -13
View File
@@ -6,17 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MdToolbar, MdToolbarRow} from './toolbar';
@NgModule({
imports: [MdCommonModule],
exports: [MdToolbar, MdToolbarRow, MdCommonModule],
declarations: [MdToolbar, MdToolbarRow],
})
export class MdToolbarModule {}
export * from './toolbar-module';
export * from './toolbar';
export * from './mat-exports';
+19
View File
@@ -0,0 +1,19 @@
/**
* @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 {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MdToolbar, MdToolbarRow} from './toolbar';
@NgModule({
imports: [MdCommonModule],
exports: [MdToolbar, MdToolbarRow, MdCommonModule],
declarations: [MdToolbar, MdToolbarRow],
})
export class MdToolbarModule {}
+23
View File
@@ -0,0 +1,23 @@
/**
* @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 {
MD_TOOLTIP_SCROLL_STRATEGY,
MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER,
MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY,
MdTooltip,
} from './tooltip';
import {MdTooltipModule} from './tooltip-module';
/* tslint:disable:max-line-length */
export {MdTooltip as MatTooltip};
export {MdTooltipModule as MatTooltipModule};
export {MD_TOOLTIP_SCROLL_STRATEGY as MAT_TOOLTIP_SCROLL_STRATEGY};
export {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER as MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER};
export {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_TOOLTIP_SCROLL_STRATEGY_PROVIDER_FACTORY};
+2 -25
View File
@@ -6,29 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
import {A11yModule, ARIA_DESCRIBER_PROVIDER} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {PlatformModule} from '@angular/cdk/platform';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER, MdTooltip, TooltipComponent} from './tooltip';
@NgModule({
imports: [
CommonModule,
OverlayModule,
MdCommonModule,
PlatformModule,
A11yModule,
],
exports: [MdTooltip, TooltipComponent, MdCommonModule],
declarations: [MdTooltip, TooltipComponent],
entryComponents: [TooltipComponent],
providers: [MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER, ARIA_DESCRIBER_PROVIDER],
})
export class MdTooltipModule {}
export * from './tooltip-module';
export * from './tooltip';
export * from './mat-exports';
+31
View File
@@ -0,0 +1,31 @@
/**
* @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 {A11yModule, ARIA_DESCRIBER_PROVIDER} from '@angular/cdk/a11y';
import {OverlayModule} from '@angular/cdk/overlay';
import {PlatformModule} from '@angular/cdk/platform';
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MdCommonModule} from '@angular/material/core';
import {MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER, MdTooltip, TooltipComponent} from './tooltip';
@NgModule({
imports: [
CommonModule,
OverlayModule,
MdCommonModule,
PlatformModule,
A11yModule,
],
exports: [MdTooltip, TooltipComponent, MdCommonModule],
declarations: [MdTooltip, TooltipComponent],
entryComponents: [TooltipComponent],
providers: [MD_TOOLTIP_SCROLL_STRATEGY_PROVIDER, ARIA_DESCRIBER_PROVIDER],
})
export class MdTooltipModule {}
@@ -48,7 +48,7 @@ export function getSecondaryEntryPointsForPackage(pkg: BuildPackage) {
.split('\n')
.filter(n => n)
.map(importStatement => importStatement.match(importRegex)![1])
.filter(n => nodeLookup.has(n))
.filter(n => nodeLookup.has(n) && n !== node.name)
.map(depName => nodeLookup.get(depName)!) || [];
});