Chore: Prettier line length changed to 120 from 100 Fix: Hard coded the face as the primary color to make the buttons stand out
75 lines
2.6 KiB
TypeScript
75 lines
2.6 KiB
TypeScript
import { A11yModule } from '@angular/cdk/a11y';
|
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
import { CommonModule } from '@angular/common';
|
|
import { NgModule } from '@angular/core';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatCardModule } from '@angular/material/card';
|
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
|
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatInputModule } from '@angular/material/input';
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
import { MatSortModule } from '@angular/material/sort';
|
|
import { MatTableModule } from '@angular/material/table';
|
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
|
|
import { SharedModule } from '../shared/shared.module';
|
|
|
|
import { SettingsRoutingModule } from './settings-routing.module';
|
|
import { SettingsComponent } from './settings.component';
|
|
|
|
export const MY_FORMATS = {
|
|
parse: {
|
|
dateInput: 'DD-MMM-YYYY',
|
|
},
|
|
display: {
|
|
dateInput: 'DD-MMM-YYYY',
|
|
monthYearLabel: 'MMM YYYY',
|
|
dateA11yLabel: 'DD-MMM-YYYY',
|
|
monthYearA11yLabel: 'MMM YYYY',
|
|
},
|
|
};
|
|
|
|
@NgModule({
|
|
imports: [
|
|
A11yModule,
|
|
CommonModule,
|
|
CdkTableModule,
|
|
MatAutocompleteModule,
|
|
MatButtonModule,
|
|
MatCardModule,
|
|
MatCheckboxModule,
|
|
MatDatepickerModule,
|
|
MatDialogModule,
|
|
MatSlideToggleModule,
|
|
MatFormFieldModule,
|
|
MatIconModule,
|
|
MatInputModule,
|
|
MatNativeDateModule,
|
|
MatPaginatorModule,
|
|
MatProgressSpinnerModule,
|
|
MatSelectModule,
|
|
MatSortModule,
|
|
MatTableModule,
|
|
MatTabsModule,
|
|
ReactiveFormsModule,
|
|
SharedModule,
|
|
SettingsRoutingModule,
|
|
],
|
|
declarations: [SettingsComponent],
|
|
providers: [
|
|
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE] },
|
|
{ provide: MAT_DATE_FORMATS, useValue: MY_FORMATS },
|
|
],
|
|
})
|
|
export class SettingsModule {}
|